0.5.1 • Published 7 months ago
sevm-cli v0.5.1
EVM-cli
:construction: Under heavy development. Feel free to open an issue if something is not right. :construction:
Install
Install using your package manager
yarn
yarn add --dev @acuarica/evm
npm
npm install --global @acuarica/evm
--help
$ evmjs --help
evmjs <cmd> <contract>
Commands:
evmjs abi <contract> Shows the ABI of the contract
evmjs dis <contract> Disassemble the bytecode into Opcodes
evmjs cfg <contract> Writes the cfg of the selected function in `dot` f
ormat into standard output
evmjs decompile <contract> Decompile the bytecode into Solidity-like source c
ode
evmjs console <contract> Opens the interactive viewer to inspect bytecode
evmjs config Shows cache path used to store downloaded bytecode
Options:
--version Show version number [boolean]
-s, --selector Function signature, e.g., `balanceOf(address)` or selector has
h to choose a specific function [string]
--help Show help [boolean]
Examples:
evmjs abi 0x00000000000C2E074eC69A0dFb29 shows the ABI of the ENS registry co
97BA6C7d2e1e ntract
evmjs decompile 0x00000000000C2E074eC69A decompiles the ENS registry contract
0dFb2997BA6C7d2e1e
See https://docs.soliditylang.org/en/latest/abi-spec.html#abi-json for more info
rmation regarding the ABI specification.
At least one command must be specified