@@ -68,6 +68,61 @@ export interface ContractStorageKey extends U8aFixed {}
6868/** @name Gas */
6969export interface Gas extends u64 { }
7070
71+ /** @name HostFnWeights */
72+ export interface HostFnWeights extends Struct {
73+ readonly caller : Weight ;
74+ readonly address : Weight ;
75+ readonly gasLeft : Weight ;
76+ readonly balance : Weight ;
77+ readonly valueTransferred : Weight ;
78+ readonly minimumBalance : Weight ;
79+ readonly tombstoneDeposit : Weight ;
80+ readonly rentAllowance : Weight ;
81+ readonly blockNumber : Weight ;
82+ readonly now : Weight ;
83+ readonly weightToFee : Weight ;
84+ readonly gas : Weight ;
85+ readonly input : Weight ;
86+ readonly inputPerByte : Weight ;
87+ readonly return : Weight ;
88+ readonly returnPerByte : Weight ;
89+ readonly terminate : Weight ;
90+ readonly restoreTo : Weight ;
91+ readonly restoreToPerDelta : Weight ;
92+ readonly random : Weight ;
93+ readonly depositEvent : Weight ;
94+ readonly depositEventPerTopic : Weight ;
95+ readonly depositEventPerByte : Weight ;
96+ readonly setRentAllowance : Weight ;
97+ readonly setStorage : Weight ;
98+ readonly setStoragePerByte : Weight ;
99+ readonly clearStorage : Weight ;
100+ readonly getStorage : Weight ;
101+ readonly getStoragePerByte : Weight ;
102+ readonly transfer : Weight ;
103+ readonly call : Weight ;
104+ readonly callTransferSurcharge : Weight ;
105+ readonly callPerInputByte : Weight ;
106+ readonly callPerOutputByte : Weight ;
107+ readonly instantiate : Weight ;
108+ readonly instantiatePerInputByte : Weight ;
109+ readonly instantiatePerOutputByte : Weight ;
110+ readonly hashSha2256 : Weight ;
111+ readonly hashSha2256PerByte : Weight ;
112+ readonly hashKeccak256 : Weight ;
113+ readonly hashKeccak256PerByte : Weight ;
114+ readonly hashBlake2256 : Weight ;
115+ readonly hashBlake2256PerByte : Weight ;
116+ readonly hashBlake2128 : Weight ;
117+ readonly hashBlake2128PerByte : Weight ;
118+ }
119+
120+ /** @name InstructionWeights */
121+ export interface InstructionWeights extends Struct {
122+ readonly growMem : Weight ;
123+ readonly regular : Weight ;
124+ }
125+
71126/** @name PrefabWasmModule */
72127export interface PrefabWasmModule extends Struct {
73128 readonly scheduleVersion : Compact < u32 > ;
@@ -83,53 +138,8 @@ export interface PrefabWasmModuleReserved extends Option<Null> {}
83138/** @name Schedule */
84139export interface Schedule extends Struct {
85140 readonly version : u32 ;
86- readonly opCostGrowMem : Weight ;
87- readonly opCostRegular : Weight ;
88- readonly apiCostCaller : Weight ;
89- readonly apiCostAddress : Weight ;
90- readonly apiCostGasLeft : Weight ;
91- readonly apiCostBalance : Weight ;
92- readonly apiCostValueTransferred : Weight ;
93- readonly apiCostMinimumBalance : Weight ;
94- readonly apiCostTombstoneDeposit : Weight ;
95- readonly apiCostRentAllowance : Weight ;
96- readonly apiCostBlockNumber : Weight ;
97- readonly apiCostNow : Weight ;
98- readonly apiCostWeightToFee : Weight ;
99- readonly apiCostGas : Weight ;
100- readonly apiCostInput : Weight ;
101- readonly apiCostInputPerByte : Weight ;
102- readonly apiCostReturn : Weight ;
103- readonly apiCostReturnPerByte : Weight ;
104- readonly apiCostTerminate : Weight ;
105- readonly apiCostRestoreTo : Weight ;
106- readonly apiCostRestoreToPer_delta : Weight ;
107- readonly apiCostRandom : Weight ;
108- readonly apiCostDepositEvent : Weight ;
109- readonly apiCostDepositEventPerTopic : Weight ;
110- readonly apiCostDepositEventPerByte : Weight ;
111- readonly apiCostSetRentAllowance : Weight ;
112- readonly apiCostSetStorage : Weight ;
113- readonly apiCostSetStoragePerByte : Weight ;
114- readonly apiCostClearStorage : Weight ;
115- readonly apiCostGetStorage : Weight ;
116- readonly apiCostGetStoragePerByte : Weight ;
117- readonly apiCostTransfer : Weight ;
118- readonly apiCostCall : Weight ;
119- readonly apiCostCallTransferSurcharge : Weight ;
120- readonly apiCostCallPerInputByte : Weight ;
121- readonly apiCostCallPerOutputByte : Weight ;
122- readonly apiCostInstantiate : Weight ;
123- readonly apiCostInstantiatePerInputByte : Weight ;
124- readonly apiCostInstantiatePerOutputByte : Weight ;
125- readonly apiCostHashSha2256 : Weight ;
126- readonly apiCostHashSha2256PerByte : Weight ;
127- readonly apiCostHashKeccak256 : Weight ;
128- readonly apiCostHashKeccak256PerByte : Weight ;
129- readonly apiCostHashBlake2256 : Weight ;
130- readonly apiCostHashBlake2256PerByte : Weight ;
131- readonly apiCostHashBlake2128 : Weight ;
132- readonly apiCostHashBlake2128PerByte : Weight ;
141+ readonly instructionWeights : InstructionWeights ;
142+ readonly hostFnWeights : HostFnWeights ;
133143 readonly enablePrintln : bool ;
134144 readonly maxEventTopics : u32 ;
135145 readonly maxStackHeight : u32 ;
0 commit comments