etk
)
EVM Toolkit (
etk
is a collection of tools for writing, reading, and analyzing EVM bytecode.
Documentation
The etk
book is the most comprehensive guide to using etk
.
There are also several examples in the etk-asm/tests/asm
directory. For further questions, join us on Telegram.
Quickstart
Installation
etk
requires the latest rustc
from the stable channel.
cargo install --features cli etk-asm etk-dasm
Syntax Highlighting
Usage
contract.etk
:
push1 42
push1 13
add
pop
$ eas contract.etk out.hex
$ disease --hex-file out.hex
0: PUSH1 0x2a
2: PUSH1 0x0d
4: ADD
5: POP
Dependencies
ecfg
requires z3 to build
Ubuntu Installation Instructions (example):
sudo apt-get update -y
sudo apt-get install -y z3
sudo apt-get install -y libz3-dev
Check the system logs to confirm that there are no related errors.