A lightweight ethereum evm bytecode instruction registry, disassembler and evmcode manipulation library
Bot releases are visible (Hide)
BASEFEE
, SELFBALANCE
, CHAINID
- #4published to pypi: https://pypi.org/project/evmdasm/0.1.10/
Published by tintinweb about 6 years ago
feature release
EvmProgram
#3 see wiki
EvmInstructions
#3Published by tintinweb about 6 years ago
minor update
Published by tintinweb about 6 years ago
feature release
Instruction.fork
(e.g. constantinople
)pushes
, pops
for cases where pushes/pops is not len(returns)
and len(args)
inserting
and Instruction
to a disassembly (``EvmInstructions`) now automatically fixes addresses of instruction objects in the list. Handy for manipulating and generating custom code.str(EvmByteCode)
now returns 0x<evmcode as hexstr>
Published by tintinweb about 6 years ago
bugfix release
Published by tintinweb about 6 years ago
minor update
Instruction.clone(_template_cls)
now takes an optional _template_cls
to clone the current instruction into a user provided class that at least takes the same constructor arguments as Instruction()
InstructionRegistry()
that allows to create a registry based on a caller provided Instruction()
subclass. check out the testcase in tests/test_registry
for how to use this. Allows you to quickly build a registry for your own Instruction class.Published by tintinweb about 6 years ago
interface changes
Instruction()
len(Instruction(...))
is now returing the byte length of instruction+operandInstruction.operand
now updates all necessary fields automaticallyPublished by tintinweb about 6 years ago
initial release 🎈