Skip to content

Commit 40bba40

Browse files
author
wanderer
authored
Update eth_interface.md
1 parent 1e45bb0 commit 40bba40

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

eth_interface.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ We also define the following WebAssembly data types:
1515
- `i32ptr`: same as `i32` in WebAssembly, but treated as a pointer to a WebAssembly memory offset
1616
- `i64`: same as `i64` in WebAssembly
1717

18+
# Tables
19+
A table named 'callbacks' must be exported if any callbacks are used
20+
1821
# API
1922

2023
## useGas
@@ -84,7 +87,7 @@ Sends a message with arbitrary date to a given address path
8487
- `resultLength` **i32** the maximal length of result data
8588
- `callBackIndex` **i32** an index of the callback function
8689

87-
**Callback Signature**
90+
**Callback Index**
8891

8992
- `result` **i32** 1 or 0 depending on if the VM trapped on the message or not
9093

@@ -131,7 +134,7 @@ data passed with the message call instruction or transaction.
131134
- `resultLength` **i32** the maximal length of result data
132135
- `callBackIndex` **i32** an index of the callback function
133136

134-
**Callback Signature**
137+
**Callback Index**
135138

136139
- `result` **i32** 1 or 0 depending on if the VM trapped on the message or not
137140

@@ -150,7 +153,7 @@ persisting the current values for sender and value.
150153
- `resultLength` **i32** the maximal length of result data
151154
- `callBackIndex` **i32** an index of the callback function
152155

153-
**Callback Signature**
156+
**Callback Index**
154157
- `result` **i32** Returns 1 or 0 depending on if the VM trapped on the message or not
155158

156159
## storageStore
@@ -177,7 +180,7 @@ Loads a 256-bit a value to memory from persistent storage
177180
- `resultOffset` **i32ptr** the memory offset to store the result at (`u256`)
178181
- `callBackIndex` **i32** an index of the callback function
179182

180-
**Callback Signature**
183+
**Callback Index**
181184

182185
*nothing*
183186

@@ -257,7 +260,7 @@ Creates a new contract with a given value.
257260
- `resultOffset` **i32ptr** the memory offset to write the new contract address to (`address`)
258261
- `callBackIndex` **i32** an index of the callback function
259262

260-
**Callback Signature**
263+
**Callback Index**
261264
- `result` **i32** 1 or 0 depending on if the VM trapped on the message or not
262265

263266

@@ -298,7 +301,7 @@ Get size of an account’s code.
298301
- `addressOffset` **i32ptr** the memory offset to load the address from (`address`)
299302
- `callBackIndex` **i32** an index of the callback function
300303

301-
**Callback Signature**
304+
**Callback Index**
302305

303306
- `extCodeSize` **i32**
304307

@@ -340,7 +343,7 @@ Gets price of gas in current environment.
340343

341344
## log
342345

343-
Creates a new log in the current environment
346+
Creates a new loSignatureg in the current environment
344347

345348
**Parameters**
346349

0 commit comments

Comments
 (0)