@@ -82,10 +82,11 @@ Sends a message with arbitrary date to a given address path
8282- ` dataLength ` ** i32** the length of data
8383- ` resultOffset ` ** i32ptr** the memory offset to store the result data at (` bytes ` )
8484- ` resultLength ` ** i32** the maximal length of result data
85+ - ` callBackIndex ` ** i32** an index of the callback function
8586
86- ** Returns **
87+ ** Callback Signature **
8788
88- ` result ` ** i32** Returns 1 or 0 depending on if the VM trapped on the message or not
89+ - ` result ` ** i32** 1 or 0 depending on if the VM trapped on the message or not
8990
9091## callDataCopy
9192
@@ -128,10 +129,11 @@ data passed with the message call instruction or transaction.
128129- ` dataLength ` ** i32** the length of data
129130- ` resultOffset ` ** i32ptr** the memory offset to store the result data at (` bytes ` )
130131- ` resultLength ` ** i32** the maximal length of result data
132+ - ` callBackIndex ` ** i32** an index of the callback function
131133
132- ** Returns **
134+ ** Callback Signature **
133135
134- ` result ` ** i32** Returns 1 or 0 depending on if the VM trapped on the message or not
136+ - ` result ` ** i32** 1 or 0 depending on if the VM trapped on the message or not
135137
136138## callDelegate
137139
@@ -146,10 +148,10 @@ persisting the current values for sender and value.
146148- ` dataLength ` ** i32** the length of data
147149- ` resultOffset ` ** i32ptr** the memory offset to store the result data at (` bytes ` )
148150- ` resultLength ` ** i32** the maximal length of result data
151+ - ` callBackIndex ` ** i32** an index of the callback function
149152
150- ** Returns**
151-
152- ` result ` ** i32** Returns 1 or 0 depending on if the VM trapped on the message or not
153+ ** Callback Signature**
154+ - ` result ` ** i32** Returns 1 or 0 depending on if the VM trapped on the message or not
153155
154156## storageStore
155157
@@ -160,7 +162,7 @@ Store 256-bit a value in memory to persistent storage
160162- ` pathOffest ` ** i32ptr** the memory offset to load the path from (` u256 ` )
161163- ` valueOffset ` ** i32ptr** the memory offset to load the value from (` u256 ` )
162164
163- ** Returns**
165+ ** Returns**
164166
165167* nothing*
166168
@@ -172,8 +174,9 @@ Loads a 256-bit a value to memory from persistent storage
172174
173175- ` pathOffest ` ** i32ptr** the memory offset to load the path from (` u256 ` )
174176- ` resultOffset ` ** i32ptr** the memory offset to store the result at (` u256 ` )
177+ - ` callBackIndex ` ** i32** an index of the callback function
175178
176- ** Returns **
179+ ** Callback Signature **
177180
178181* nothing*
179182
@@ -251,10 +254,11 @@ Creates a new contract with a given value.
251254- ` dataOffset ` ** i32ptr** the memory offset to load the code for the new contract from (` bytes ` )
252255- ` length ` ** i32** the data length
253256- ` resultOffset ` ** i32ptr** the memory offset to write the new contract address to (` address ` )
257+ - ` callBackIndex ` ** i32** an index of the callback function
254258
255- ** Returns**
259+ ** Callback Signature**
260+ - ` result ` ** i32** 1 or 0 depending on if the VM trapped on the message or not
256261
257- ` result ` ** i32** Returns 1 or 0 depending on if the VM trapped on the message or not
258262
259263## getBlockDifficulty
260264
@@ -278,8 +282,9 @@ Copies the code of an account to memory.
278282- ` resultOffset ` ** i32ptr** the memory offset to load the result into (` bytes ` )
279283- ` codeOffset ` ** i32** the offset within the code
280284- ` length ` ** i32** the length of code to copy
285+ - ` callBackIndex ` ** i32** an index of the callback function
281286
282- ** Returns **
287+ ** Callback Signature **
283288
284289* nothing*
285290
@@ -290,10 +295,11 @@ Get size of an account’s code.
290295** Parameters**
291296
292297- ` addressOffset ` ** i32ptr** the memory offset to load the address from (` address ` )
298+ - ` callBackIndex ` ** i32** an index of the callback function
293299
294- ** Returns **
300+ ** Callback Signature **
295301
296- ` extCodeSize ` ** i32**
302+ - ` extCodeSize ` ** i32**
297303
298304## getGasLeft
299305
0 commit comments