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 REX7) |
| mega-system-contracts | Solidity system contracts with Rust bindings |
| mega-evme | CLI tool for EVM execution (run, tx, replay) |
| mega-t8n | Standalone state transition (t8n) tool |
| state-test | Ethereum state test runner |
Install the CLI tool from crates.io:
cargo install mega-evme --lockedThe --locked flag ensures the exact tested dependency versions are used.
Or build from source:
cargo build --release -p mega-evmeEvery release also attaches a prebuilt mega-evme (Linux x86_64, built on ubuntu-24.04) and a SHA256SUMS file to its GitHub Release.
Download both, verify the checksum, and make the binary executable:
sha256sum --check --ignore-missing SHA256SUMS
chmod +x mega-evme
./mega-evme --versionThe same binary is published to the MegaETH artifact registry for internal use.
This 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 testMIT OR Apache-2.0