Skip to content

Commit c3b7302

Browse files
authored
Support new contracts Schedule (#2582)
1 parent a5800b1 commit c3b7302

File tree

1 file changed

+58
-1
lines changed

1 file changed

+58
-1
lines changed

packages/types/src/interfaces/contracts/definitions.ts

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export default {
132132
enablePrintln: 'bool',
133133
maxSubjectLen: 'u32'
134134
},
135-
Schedule: {
135+
ScheduleTo258: {
136136
version: 'u32',
137137
putCodePerByteCost: 'Gas',
138138
growMemCost: 'Gas',
@@ -150,6 +150,63 @@ export default {
150150
enablePrintln: 'bool',
151151
maxSubjectLen: 'u32'
152152
},
153+
Schedule: {
154+
version: 'u32',
155+
opCostGrowMem: 'Weight',
156+
opCostRegular: 'Weight',
157+
apiCostCaller: 'Weight',
158+
apiCostAddress: 'Weight',
159+
apiCostGasLeft: 'Weight',
160+
apiCostBalance: 'Weight',
161+
apiCostValueTransferred: 'Weight',
162+
apiCostMinimumBalance: 'Weight',
163+
apiCostTombstoneDeposit: 'Weight',
164+
apiCostRentAllowance: 'Weight',
165+
apiCostBlockNumber: 'Weight',
166+
apiCostNow: 'Weight',
167+
apiCostWeightToFee: 'Weight',
168+
apiCostGas: 'Weight',
169+
apiCostInput: 'Weight',
170+
apiCostInputPerByte: 'Weight',
171+
apiCostReturn: 'Weight',
172+
apiCostReturnPerByte: 'Weight',
173+
apiCostTerminate: 'Weight',
174+
apiCostRestoreTo: 'Weight',
175+
apiCostRestoreToPer_delta: 'Weight',
176+
apiCostRandom: 'Weight',
177+
apiCostDepositEvent: 'Weight',
178+
apiCostDepositEventPerTopic: 'Weight',
179+
apiCostDepositEventPerByte: 'Weight',
180+
apiCostSetRentAllowance: 'Weight',
181+
apiCostSetStorage: 'Weight',
182+
apiCostSetStoragePerByte: 'Weight',
183+
apiCostClearStorage: 'Weight',
184+
apiCostGetStorage: 'Weight',
185+
apiCostGetStoragePerByte: 'Weight',
186+
apiCostTransfer: 'Weight',
187+
apiCostCall: 'Weight',
188+
apiCostCallTransferSurcharge: 'Weight',
189+
apiCostCallPerInputByte: 'Weight',
190+
apiCostCallPerOutputByte: 'Weight',
191+
apiCostInstantiate: 'Weight',
192+
apiCostInstantiatePerInputByte: 'Weight',
193+
apiCostInstantiatePerOutputByte: 'Weight',
194+
apiCostHashSha2256: 'Weight',
195+
apiCostHashSha2256PerByte: 'Weight',
196+
apiCostHashKeccak256: 'Weight',
197+
apiCostHashKeccak256PerByte: 'Weight',
198+
apiCostHashBlake2256: 'Weight',
199+
apiCostHashBlake2256PerByte: 'Weight',
200+
apiCostHashBlake2128: 'Weight',
201+
apiCostHashBlake2128PerByte: 'Weight',
202+
enablePrintln: 'bool',
203+
maxEventTopics: 'u32',
204+
maxStackHeight: 'u32',
205+
maxMemoryPages: 'u32',
206+
maxTableSize: 'u32',
207+
maxSubjectLen: 'u32',
208+
maxCodeSize: 'u32'
209+
},
153210
SeedOf: 'Hash',
154211
TombstoneContractInfo: 'Hash',
155212
TrieId: 'Bytes'

0 commit comments

Comments
 (0)