Skip to content

megaeth-labs/foundry

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4,996 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Foundry (MegaETH Fork)

MegaETH's fork of Foundry, pinned at v1.3.0.

MegaETH Mode

Run forge test and forge coverage with MegaETH EVM semantics (gas forwarding, SALT gas metering, system contracts) via the --megaeth flag:

forge test --megaeth -vvv
forge coverage --megaeth --report lcov

Unsupported combinations (rejected with a clear error rather than silently degrading):

  • --megaeth --isolate / inline isolate = true — isolation mode not implemented.
  • --megaeth --fork-url <URL> — fork-aware external environment (Oracle / SALT bucket) not implemented.

Cheatcodes (vm.prank, vm.deal, vm.expectRevert, etc.) are silently skipped under --megaeth. Use pure Solidity assertions (require).

See testdata/megaeth/ for gas-divergence examples and cross-validation harness.

MegaETH ↔ mega-evm consistency

--megaeth is backed by the mega-evm library. To detect library-level drift:

Key Dependencies

Crate Version
revm 27.0.3
op-revm 8.0.3
alloy-evm 0.15.0
alloy 1.0.23
mega-evm 1.5.1

Upstream

License

Licensed under either of Apache License, Version 2.0 or MIT License at your option.

About

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 99.5%
  • Shell 0.4%
  • Solidity 0.1%
  • Dockerfile 0.0%
  • Makefile 0.0%
  • Nix 0.0%