This is an ekt contract that sends all accrued value to coinbase.
To setup a dev environment capable of assembling, analyzing, and executing the
repository's assembly you will need to install foundry and
etk. This can be accomplished by running:
$ curl -L https://foundry.paradigm.xyz | bash
$ cargo install --features cli etk-asm etk-dasm etk-analyzeTo assemble src/main.etk you will need to invoke eas:
$ eas src/main.etkIt's also possible to remove the etk preproccessing by doing a roundtrip --
first assembling the program, then disassembling the program:
$ disease --code 0x$(eas src/main.etk)etk has the ability to generate a control-flow graph to analyze the
possible paths the code may execute under. To generate, you need graphviz.
Installation instructions can be found here.
The diagram can then be generated using the following:
ecfg -c 0x$(eas ./src/main.etk) | dot -Tpng -o out.pngOpen out.png with your choice of image viewer.
The tests can be executed using the builder-wrapper script with the same
arguments as forge:
$ ./build-wrapper test
[⠆] Compiling...
No files changed, compilation skipped
Running 2 tests for test/Contract.t.sol:ContractTest
[PASS] testRead() (gas: 18514)
[PASS] testUpdate() (gas: 53953)
Test result: ok. 2 passed; 0 failed; 0 skipped; finished in 3.35ms
Ran 1 test suites: 2 tests passed, 0 failed, 0 skipped (2 total tests)A step-by-step debugger can be brought up using ./build-wrapper test --debug {test name}.