Skip to content

Commit

Permalink
Support new contracts Schedule (#2582)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored Oct 8, 2020
1 parent a5800b1 commit c3b7302
Showing 1 changed file with 58 additions and 1 deletion.
59 changes: 58 additions & 1 deletion packages/types/src/interfaces/contracts/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default {
enablePrintln: 'bool',
maxSubjectLen: 'u32'
},
Schedule: {
ScheduleTo258: {
version: 'u32',
putCodePerByteCost: 'Gas',
growMemCost: 'Gas',
Expand All @@ -150,6 +150,63 @@ export default {
enablePrintln: 'bool',
maxSubjectLen: 'u32'
},
Schedule: {
version: 'u32',
opCostGrowMem: 'Weight',
opCostRegular: 'Weight',
apiCostCaller: 'Weight',
apiCostAddress: 'Weight',
apiCostGasLeft: 'Weight',
apiCostBalance: 'Weight',
apiCostValueTransferred: 'Weight',
apiCostMinimumBalance: 'Weight',
apiCostTombstoneDeposit: 'Weight',
apiCostRentAllowance: 'Weight',
apiCostBlockNumber: 'Weight',
apiCostNow: 'Weight',
apiCostWeightToFee: 'Weight',
apiCostGas: 'Weight',
apiCostInput: 'Weight',
apiCostInputPerByte: 'Weight',
apiCostReturn: 'Weight',
apiCostReturnPerByte: 'Weight',
apiCostTerminate: 'Weight',
apiCostRestoreTo: 'Weight',
apiCostRestoreToPer_delta: 'Weight',
apiCostRandom: 'Weight',
apiCostDepositEvent: 'Weight',
apiCostDepositEventPerTopic: 'Weight',
apiCostDepositEventPerByte: 'Weight',
apiCostSetRentAllowance: 'Weight',
apiCostSetStorage: 'Weight',
apiCostSetStoragePerByte: 'Weight',
apiCostClearStorage: 'Weight',
apiCostGetStorage: 'Weight',
apiCostGetStoragePerByte: 'Weight',
apiCostTransfer: 'Weight',
apiCostCall: 'Weight',
apiCostCallTransferSurcharge: 'Weight',
apiCostCallPerInputByte: 'Weight',
apiCostCallPerOutputByte: 'Weight',
apiCostInstantiate: 'Weight',
apiCostInstantiatePerInputByte: 'Weight',
apiCostInstantiatePerOutputByte: 'Weight',
apiCostHashSha2256: 'Weight',
apiCostHashSha2256PerByte: 'Weight',
apiCostHashKeccak256: 'Weight',
apiCostHashKeccak256PerByte: 'Weight',
apiCostHashBlake2256: 'Weight',
apiCostHashBlake2256PerByte: 'Weight',
apiCostHashBlake2128: 'Weight',
apiCostHashBlake2128PerByte: 'Weight',
enablePrintln: 'bool',
maxEventTopics: 'u32',
maxStackHeight: 'u32',
maxMemoryPages: 'u32',
maxTableSize: 'u32',
maxSubjectLen: 'u32',
maxCodeSize: 'u32'
},
SeedOf: 'Hash',
TombstoneContractInfo: 'Hash',
TrieId: 'Bytes'
Expand Down

0 comments on commit c3b7302

Please sign in to comment.