Skip to content

Thaddeus19/evm-contract-draw

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EVM Draw Contract

This draws each byte of bycode in an EVM contract, allowing you to get a quick overview of the shape of a smart contract.

Example image

To Install

It's written in nim. You will need to install nim, and the one dependency that the code will complain about.

To Use

To use:

Edit the source to add the contract bytecode (without the leading 0x), then run:

nim compile --run evm_contract_draw.nim

This will print the name of the newly created image file.

Contributions

Contribute away! DM me on twitter at @DanielVF if you make a PR - my email is overloaded.

Wishlist:

  • Should be able take contract bytecode from std in
  • Seperate layout code from drawing code
  • Color themes
  • Better install instructions
  • Readme section to explain what this is showing
  • HTML output option with per instruction tooltips.

About

Draw EVM contract byte code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nim 100.0%