A specialized Ethereum Virtual Machine (EVM) implementation tailored for MegaETH specifications, built on top of revm and op-revm.
| Crate | Description |
|---|---|
| mega-evm | Core EVM implementation with MegaETH specs (EQUIVALENCE through REX6) |
| mega-system-contracts | Solidity system contracts with Rust bindings |
| mega-evme | CLI tool for EVM execution (run, tx, replay, cache) |
| mega-t8n | Standalone state transition (t8n) tool |
| mega-state-test | Ethereum state test fixtures and runner library (EEST-compatible) |
| state-test | Thin CLI front-end over mega-state-test |
Building mega-evme requires Foundry's forge.
From GitHub:
cargo install --git https://github.com/megaeth-labs/mega-evm --locked mega-evmeFrom a Git checkout:
git clone --recursive https://github.com/megaeth-labs/mega-evm
cd mega-evm
cargo install --locked --path bin/mega-evmeThis repository uses git submodules. Clone with submodules:
git clone --recursive https://github.com/megaeth-labs/mega-evm.gitOr if you've already cloned, initialize submodules:
git submodule update --init --recursivecargo buildcargo test --workspaceMIT OR Apache-2.0