Evmdasm

Latest version: v0.1.10

Safety actively analyzes 621329 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.1.10

* added missing opcodes: `BASEFEE`, `SELFBALANCE`, `CHAINID` - 4

published to pypi: https://pypi.org/project/evmdasm/0.1.10/

0.1.8

**feature release**

* added `EvmProgram` 3 see [wiki](https://github.com/tintinweb/evmdasm/wiki/evmdasm-assembler)
* performance improvements for the auto-address fixing in `EvmInstructions` 3

0.1.7

**minor update**

* EvmInstructions.get_required_gas
* EvmInstructions.append()
* EvmInstructions.get_stack_balance

0.1.6

**feature release**

* introducing argument types
* introducing forkversion as `Instruction.fork` (e.g. `constantinople`)
* introducing `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>`

0.1.5

**bugfix release**

* fix disassembler with custom instruction class
* multiple bugfixes
* fix attributeerror when disassembling invalid instructions

0.1.2

**minor update**

* added unittests to cover the registry interface
* `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()`
* added `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.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.