Skip to main content

Crate mega_evme

Crate mega_evme 

Source
Expand description

mega-evme library.

Holds all of the executable EVM logic for the mega-evme CLI. The binary at src/main.rs is a thin wrapper that only parses arguments and dispatches into this crate; integration tests in tests/*.rs link against the library directly and exercise the public API the same way an external consumer would.

Re-exports§

pub use cmd::*;
pub use common::*;

Modules§

cmd
Top-level CLI command parser and dispatch (MainCmd, Commands, Error).
common
Shared building blocks: RPC provider/session, state, env, error, output formatting, tracing, transaction utilities.
replay
Historical transaction replay command. Replay module for fetching and executing transactions from RPC
run
Arbitrary EVM bytecode execution command. Run module for executing arbitrary EVM bytecode
tx
Single-transaction execution command.

Functions§

set_thread_panic_hook
Install a thread panic hook that prints a custom backtrace and exits with a non-zero status. Lets failing tests and CLI runs surface a useful trace without relying on RUST_BACKTRACE.