@@ -24,6 +24,7 @@ use crate::{
24
24
ExecutionInput ,
25
25
Selector ,
26
26
} ,
27
+ types:: Gas ,
27
28
ContractEnv ,
28
29
Environment ,
29
30
Error ,
@@ -175,7 +176,12 @@ where
175
176
/// The code hash of the created contract.
176
177
code_hash : E :: Hash ,
177
178
/// The maximum gas costs allowed for the instantiation.
178
- gas_limit : u64 ,
179
+ /// todo: [AJ] ref_time_limit docs
180
+ ref_time_limit : Gas ,
181
+ /// todo: [AJ] `proof_time_limit` docs
182
+ proof_time_limit : Gas ,
183
+ /// todo: [AJ] `storage_deposit_limit` docs
184
+ storage_deposit_limit : Option < E :: Balance > ,
179
185
/// The endowment for the instantiated contract.
180
186
endowment : E :: Balance ,
181
187
/// The input data for the instantiation.
@@ -198,10 +204,21 @@ where
198
204
& self . code_hash
199
205
}
200
206
201
- /// The gas limit for the contract instantiation.
207
+ /// todo: [AJ] ref_time_limit docs
202
208
#[ inline]
203
- pub fn gas_limit ( & self ) -> u64 {
204
- self . gas_limit
209
+ pub fn ref_time_limit ( & self ) -> u64 {
210
+ self . ref_time_limit
211
+ }
212
+
213
+ /// todo: [AJ] proof_time_limit docs
214
+ #[ inline]
215
+ pub fn proof_time_limit ( & self ) -> u64 {
216
+ self . proof_time_limit
217
+ }
218
+
219
+ /// todo: [AJ] `storage_deposit_limit` docs
220
+ pub fn storage_deposit_limit ( & self ) -> u64 {
221
+ self . proof_time_limit
205
222
}
206
223
207
224
/// The endowment for the instantiated contract.
@@ -698,7 +715,7 @@ where
698
715
pub fn params ( self ) -> CreateParams < E , ContractRef , Args , Salt , RetType > {
699
716
CreateParams {
700
717
code_hash : self . code_hash . value ( ) ,
701
- gas_limit : self . gas_limit . unwrap_or_else ( || 0 ) ,
718
+ ref_time_limit : self . gas_limit . unwrap_or_else ( || 0 ) ,
702
719
endowment : self . endowment . value ( ) ,
703
720
exec_input : self . exec_input . value ( ) ,
704
721
salt_bytes : self . salt . value ( ) ,
0 commit comments