Skip to content

Commit

Permalink
Document all method below the debug namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jul 30, 2018
1 parent b6c8170 commit 7b42139
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions contract_interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ Debug-mode is a special VM option, where an additional set of debugging interfac
symbols should be rejected.

The imports are available under the `debug` namespace:
- `print(i64)`: print a number
- `printMem(i32 offset, i32 length)`: print a string as pointed by `offset`
- `printMemHex(i32 offset, i32 length)`: print a hex representation of the memory pointed to by `offset`
- `print32(value: i32)` - print value
- `print64(value: i64)` - print value
- `printMem(offset: i32, len: i32)` - print memory segment as printable characters
- `printMemHex(offset: i32, len: i32)` - print memory segment as hex
- `printStorage(pathOffset: i32)` - print storage value as printable characters
- `printStorageHex(pathOffset: i32)` - print storage value as hex

### Exports

Expand Down

0 comments on commit 7b42139

Please sign in to comment.