-
Notifications
You must be signed in to change notification settings - Fork 199
/
gasCost.go
34 lines (31 loc) · 934 Bytes
/
gasCost.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package process
// BaseOperationCost defines cost for base operation cost
type BaseOperationCost struct {
StorePerByte uint64
ReleasePerByte uint64
DataCopyPerByte uint64
PersistPerByte uint64
CompilePerByte uint64
AoTPreparePerByte uint64
}
// BuiltInCost defines cost for built-in methods
type BuiltInCost struct {
ChangeOwnerAddress uint64
ClaimDeveloperRewards uint64
SaveUserName uint64
SaveKeyValue uint64
ESDTTransfer uint64
ESDTBurn uint64
ESDTLocalMint uint64
ESDTLocalBurn uint64
ESDTNFTCreate uint64
ESDTNFTAddQuantity uint64
ESDTNFTBurn uint64
ESDTNFTTransfer uint64
ESDTNFTChangeCreateOwner uint64
}
// GasCost holds all the needed gas costs for system smart contracts
type GasCost struct {
BaseOperationCost BaseOperationCost
BuiltInCost BuiltInCost
}