JSPM

@eth-optimism/ethereumjs-vm

4.2.0-alpha.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 612
  • Score
    100M100P100Q97502F
  • License MPL-2.0

An Ethereum VM implementation

Package Exports

  • @eth-optimism/ethereumjs-vm

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@eth-optimism/ethereumjs-vm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ethereumjs-ovm

Implements Optimism's OVM in Javascript. Forked with <3 from ethereumjs-vm!

Logging

This fork provides some custom logging tools for introspecting the OVM via the debug package. Particularly, the environment variable DEBUG='ethjs-ovm:interpreter will allow you to log various degrees of internal EVM execution such as calls, stack, and memory. You must also add DEBUG_OVM=true to enable debugging. The logging namespace includes the start and ending bytes of the address and the call depth (e.g. js-ovm:intrp:0xdeadde..ad0005:d5)

Available namespaces are:

  • All OVM debug logging (warning, lots of logs): DEBUG='*'
  • Call logging: DEBUG='*:calls (recommended to run first)
  • Step logging: DEBUG='*:calls:steps (recommended to run filtered by address, e.g. DEBUG='*:calls,js-ovm:intrp:0xdeadde..ad0005:d2:calls:steps')
  • Memory logging: DEBUG=*:calls:memory (recommended to run filtered by address, see above)

Or mix and match any of the above to get your desired logging level.

LICENSE

MPL-2.0