multiversx_sc_meta_lib/ei/
ei_1_1.rs

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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
/// New hooks added in Q4 2021.
///
/// Added a few more managed type & ESDT utilities.
///
/// This list of hooks is reconstructed from history.
pub const EI_1_1_NAMES: &[&str] = &[
    "getGasLeft",
    "getSCAddress",
    "getOwnerAddress",
    "getShardOfAddress",
    "isSmartContract",
    "signalError",
    "getExternalBalance",
    "getBlockHash",
    "getESDTBalance",
    "getESDTNFTNameLength",
    "getESDTNFTAttributeLength",
    "getESDTNFTURILength",
    "getESDTTokenData",
    "getESDTLocalRoles",
    "validateTokenIdentifier",
    "transferValue",
    "transferValueExecute",
    "transferESDTExecute",
    "transferESDTNFTExecute",
    "multiTransferESDTNFTExecute",
    "createAsyncCall",
    "setAsyncContextCallback",
    "upgradeContract",
    "upgradeFromSourceContract",
    "deleteContract",
    "asyncCall",
    "getArgumentLength",
    "getArgument",
    "getFunction",
    "getNumArguments",
    "storageStore",
    "storageLoadLength",
    "storageLoadFromAddress",
    "storageLoad",
    "setStorageLock",
    "getStorageLock",
    "isStorageLocked",
    "clearStorageLock",
    "getCaller",
    "checkNoPayment",
    "getCallValue",
    "getESDTValue",
    "getESDTValueByIndex",
    "getESDTTokenName",
    "getESDTTokenNameByIndex",
    "getESDTTokenNonce",
    "getESDTTokenNonceByIndex",
    "getCurrentESDTNFTNonce",
    "getESDTTokenType",
    "getESDTTokenTypeByIndex",
    "getNumESDTTransfers",
    "getCallValueTokenName",
    "getCallValueTokenNameByIndex",
    "writeLog",
    "writeEventLog",
    "getBlockTimestamp",
    "getBlockNonce",
    "getBlockRound",
    "getBlockEpoch",
    "getBlockRandomSeed",
    "getStateRootHash",
    "getPrevBlockTimestamp",
    "getPrevBlockNonce",
    "getPrevBlockRound",
    "getPrevBlockEpoch",
    "getPrevBlockRandomSeed",
    "finish",
    "executeOnSameContext",
    "executeOnDestContext",
    "executeReadOnly",
    "createContract",
    "deployFromSourceContract",
    "getNumReturnData",
    "getReturnDataSize",
    "getReturnData",
    "cleanReturnData",
    "deleteFromReturnData",
    "getOriginalTxHash",
    "getCurrentTxHash",
    "getPrevTxHash",
    "managedSCAddress",
    "managedOwnerAddress",
    "managedCaller",
    "managedSignalError",
    "managedWriteLog",
    "managedGetOriginalTxHash",
    "managedGetStateRootHash",
    "managedGetBlockRandomSeed",
    "managedGetPrevBlockRandomSeed",
    "managedGetReturnData",
    "managedGetMultiESDTCallValue",
    "managedGetESDTBalance",
    "managedGetESDTTokenData",
    "managedAsyncCall",
    "managedUpgradeFromSourceContract",
    "managedUpgradeContract",
    "managedDeleteContract",
    "managedDeployFromSourceContract",
    "managedCreateContract",
    "managedExecuteReadOnly",
    "managedExecuteOnSameContext",
    "managedExecuteOnDestContext",
    "managedMultiTransferESDTNFTExecute",
    "managedTransferValueExecute",
    "bigIntGetUnsignedArgument",
    "bigIntGetSignedArgument",
    "bigIntStorageStoreUnsigned",
    "bigIntStorageLoadUnsigned",
    "bigIntGetCallValue",
    "bigIntGetESDTCallValue",
    "bigIntGetESDTCallValueByIndex",
    "bigIntGetExternalBalance",
    "bigIntGetESDTExternalBalance",
    "bigIntNew",
    "bigIntUnsignedByteLength",
    "bigIntSignedByteLength",
    "bigIntGetUnsignedBytes",
    "bigIntGetSignedBytes",
    "bigIntSetUnsignedBytes",
    "bigIntSetSignedBytes",
    "bigIntIsInt64",
    "bigIntGetInt64",
    "bigIntSetInt64",
    "bigIntAdd",
    "bigIntSub",
    "bigIntMul",
    "bigIntTDiv",
    "bigIntTMod",
    "bigIntEDiv",
    "bigIntEMod",
    "bigIntSqrt",
    "bigIntPow",
    "bigIntLog2",
    "bigIntAbs",
    "bigIntNeg",
    "bigIntSign",
    "bigIntCmp",
    "bigIntNot",
    "bigIntAnd",
    "bigIntOr",
    "bigIntXor",
    "bigIntShr",
    "bigIntShl",
    "bigIntFinishUnsigned",
    "bigIntFinishSigned",
    "mBufferNew",
    "mBufferNewFromBytes",
    "mBufferGetLength",
    "mBufferGetBytes",
    "mBufferGetByteSlice",
    "mBufferCopyByteSlice",
    "mBufferEq",
    "mBufferSetBytes",
    "mBufferSetByteSlice",
    "mBufferAppend",
    "mBufferAppendBytes",
    "mBufferToBigIntUnsigned",
    "mBufferToBigIntSigned",
    "mBufferFromBigIntUnsigned",
    "mBufferFromBigIntSigned",
    "mBufferStorageStore",
    "mBufferStorageLoad",
    "mBufferStorageLoadFromAddress",
    "mBufferGetArgument",
    "mBufferFinish",
    "mBufferSetRandom",
    "managedMapNew",
    "managedMapPut",
    "managedMapGet",
    "managedMapRemove",
    "managedMapContains",
    "smallIntGetUnsignedArgument",
    "smallIntGetSignedArgument",
    "smallIntFinishUnsigned",
    "smallIntFinishSigned",
    "smallIntStorageStoreUnsigned",
    "smallIntStorageStoreSigned",
    "smallIntStorageLoadUnsigned",
    "smallIntStorageLoadSigned",
    "int64getArgument",
    "int64finish",
    "int64storageStore",
    "int64storageLoad",
    "sha256",
    "managedSha256",
    "keccak256",
    "managedKeccak256",
    "ripemd160",
    "verifyBLS",
    "verifyEd25519",
    "verifyCustomSecp256k1",
    "verifySecp256k1",
    "encodeSecp256k1DerSignature",
    "addEC",
    "doubleEC",
    "isOnCurveEC",
    "scalarBaseMultEC",
    "scalarMultEC",
    "marshalEC",
    "marshalCompressedEC",
    "unmarshalEC",
    "unmarshalCompressedEC",
    "generateKeyEC",
    "createEC",
    "getCurveLengthEC",
    "getPrivKeyByteLengthEC",
    "ellipticCurveGetValues",
];