@@ -31,58 +31,63 @@ type BaseOperationCost struct {
3131
3232// BaseOpsAPICost defines the API operations gas cost config structure
3333type BaseOpsAPICost struct {
34- GetSCAddress uint64
35- GetOwnerAddress uint64
36- IsSmartContract uint64
37- GetShardOfAddress uint64
38- GetExternalBalance uint64
39- GetBlockHash uint64
40- GetOriginalTxHash uint64
41- GetCurrentTxHash uint64
42- GetPrevTxHash uint64
43- TransferValue uint64
44- GetArgument uint64
45- GetFunction uint64
46- GetNumArguments uint64
47- StorageStore uint64
48- StorageLoad uint64
49- CachedStorageLoad uint64
50- GetCaller uint64
51- GetCallValue uint64
52- Log uint64
53- Finish uint64
54- SignalError uint64
55- GetBlockTimeStamp uint64
56- GetGasLeft uint64
57- Int64GetArgument uint64
58- Int64StorageStore uint64
59- Int64StorageLoad uint64
60- Int64Finish uint64
61- GetStateRootHash uint64
62- GetBlockNonce uint64
63- GetBlockEpoch uint64
64- GetBlockRound uint64
65- GetBlockRandomSeed uint64
66- ExecuteOnSameContext uint64
67- ExecuteOnDestContext uint64
68- DelegateExecution uint64
69- ExecuteReadOnly uint64
70- AsyncCallStep uint64
71- AsyncCallbackGasLock uint64
72- CreateAsyncCall uint64
73- SetAsyncCallback uint64
74- SetAsyncGroupCallback uint64
75- SetAsyncContextCallback uint64
76- GetCallbackClosure uint64
77- CreateContract uint64
78- GetReturnData uint64
79- GetNumReturnData uint64
80- GetReturnDataSize uint64
81- CleanReturnData uint64
82- DeleteFromReturnData uint64
83- GetCodeMetadata uint64
84- IsBuiltinFunction uint64
85- IsReservedFunctionName uint64
34+ GetSCAddress uint64
35+ GetOwnerAddress uint64
36+ IsSmartContract uint64
37+ GetShardOfAddress uint64
38+ GetExternalBalance uint64
39+ GetBlockHash uint64
40+ GetOriginalTxHash uint64
41+ GetCurrentTxHash uint64
42+ GetPrevTxHash uint64
43+ TransferValue uint64
44+ GetArgument uint64
45+ GetFunction uint64
46+ GetNumArguments uint64
47+ StorageStore uint64
48+ StorageLoad uint64
49+ CachedStorageLoad uint64
50+ GetCaller uint64
51+ GetCallValue uint64
52+ Log uint64
53+ Finish uint64
54+ SignalError uint64
55+ GetBlockTimeStamp uint64
56+ GetGasLeft uint64
57+ Int64GetArgument uint64
58+ Int64StorageStore uint64
59+ Int64StorageLoad uint64
60+ Int64Finish uint64
61+ GetStateRootHash uint64
62+ GetBlockNonce uint64
63+ GetBlockEpoch uint64
64+ GetBlockRound uint64
65+ GetBlockRandomSeed uint64
66+ ExecuteOnSameContext uint64
67+ ExecuteOnDestContext uint64
68+ DelegateExecution uint64
69+ ExecuteReadOnly uint64
70+ AsyncCallStep uint64
71+ AsyncCallbackGasLock uint64
72+ CreateAsyncCall uint64
73+ SetAsyncCallback uint64
74+ SetAsyncGroupCallback uint64
75+ SetAsyncContextCallback uint64
76+ GetCallbackClosure uint64
77+ CreateContract uint64
78+ GetReturnData uint64
79+ GetNumReturnData uint64
80+ GetReturnDataSize uint64
81+ CleanReturnData uint64
82+ DeleteFromReturnData uint64
83+ GetCodeMetadata uint64
84+ GetCodeHash uint64
85+ IsBuiltinFunction uint64
86+ IsReservedFunctionName uint64
87+ GetRoundTime uint64
88+ EpochStartBlockTimeStamp uint64
89+ EpochStartBlockNonce uint64
90+ EpochStartBlockRound uint64
8691}
8792
8893// DynamicStorageLoadCostCoefficients holds the signed coefficients of the func that will compute the gas cost
@@ -152,24 +157,25 @@ type BigIntAPICost struct {
152157
153158// BigFloatAPICost defines the big float operations gas cost config structure
154159type BigFloatAPICost struct {
155- BigFloatNewFromParts uint64
156- BigFloatAdd uint64
157- BigFloatSub uint64
158- BigFloatMul uint64
159- BigFloatDiv uint64
160- BigFloatTruncate uint64
161- BigFloatNeg uint64
162- BigFloatClone uint64
163- BigFloatCmp uint64
164- BigFloatAbs uint64
165- BigFloatSqrt uint64
166- BigFloatPow uint64
167- BigFloatFloor uint64
168- BigFloatCeil uint64
169- BigFloatIsInt uint64
170- BigFloatSetBigInt uint64
171- BigFloatSetInt64 uint64
172- BigFloatGetConst uint64
160+ BigFloatNewFromParts uint64
161+ BigFloatAdd uint64
162+ BigFloatSub uint64
163+ BigFloatMul uint64
164+ BigFloatDiv uint64
165+ BigFloatTruncate uint64
166+ BigFloatNeg uint64
167+ BigFloatClone uint64
168+ BigFloatCmp uint64
169+ BigFloatAbs uint64
170+ BigFloatSqrt uint64
171+ BigFloatPow uint64
172+ BigFloatPowPerIteration uint64
173+ BigFloatFloor uint64
174+ BigFloatCeil uint64
175+ BigFloatIsInt uint64
176+ BigFloatSetBigInt uint64
177+ BigFloatSetInt64 uint64
178+ BigFloatGetConst uint64
173179}
174180
175181// CryptoAPICost defines the crypto operations gas cost config structure
@@ -198,26 +204,30 @@ type CryptoAPICost struct {
198204
199205// ManagedBufferAPICost defines the managed buffer operations gas cost config structure
200206type ManagedBufferAPICost struct {
201- MBufferNew uint64
202- MBufferNewFromBytes uint64
203- MBufferGetLength uint64
204- MBufferGetBytes uint64
205- MBufferGetByteSlice uint64
206- MBufferCopyByteSlice uint64
207- MBufferSetBytes uint64
208- MBufferAppend uint64
209- MBufferAppendBytes uint64
210- MBufferToBigIntUnsigned uint64
211- MBufferToBigIntSigned uint64
212- MBufferFromBigIntUnsigned uint64
213- MBufferFromBigIntSigned uint64
214- MBufferToBigFloat uint64
215- MBufferFromBigFloat uint64
216- MBufferStorageStore uint64
217- MBufferStorageLoad uint64
218- MBufferGetArgument uint64
219- MBufferFinish uint64
220- MBufferSetRandom uint64
207+ MBufferNew uint64
208+ MBufferNewFromBytes uint64
209+ MBufferGetLength uint64
210+ MBufferGetBytes uint64
211+ MBufferGetByteSlice uint64
212+ MBufferCopyByteSlice uint64
213+ MBufferSetBytes uint64
214+ MBufferAppend uint64
215+ MBufferAppendBytes uint64
216+ MBufferToBigIntUnsigned uint64
217+ MBufferToBigIntSigned uint64
218+ MBufferFromBigIntUnsigned uint64
219+ MBufferFromBigIntSigned uint64
220+ MBufferToSmallIntUnsigned uint64
221+ MBufferToSmallIntSigned uint64
222+ MBufferFromSmallIntUnsigned uint64
223+ MBufferFromSmallIntSigned uint64
224+ MBufferToBigFloat uint64
225+ MBufferFromBigFloat uint64
226+ MBufferStorageStore uint64
227+ MBufferStorageLoad uint64
228+ MBufferGetArgument uint64
229+ MBufferFinish uint64
230+ MBufferSetRandom uint64
221231}
222232
223233// ManagedMapAPICost defines the managed map operations gas cost config structure
0 commit comments