Skip to content

ParthThakkar08/foundry-evm-mini

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Foundry EVM Mini

A copy of https://github.com/foundry-rs/foundry

Foundry introduces new changes to their repo everyday, and this can cause projects using foundry-evm break every once in a while.

This foundry-evm-mini project is an attempt to take a snapshot of the library so that it never breaks again.

Currently supports:

  • SharedBackend (evm/executor/fork)
  • BlockchainDB (evm/executor/fork)
  • BlockchainDBMeta (evm/executor/fork)

Updated (2023.11.04):

  • AccessListTracer (evm/executor/inspector)

  • How to use?

To use this repo, you can configure your Cargo.toml as below:

[dependencies]
ethers = { version = "2.0", features = ["ethers-solc"] }

# EVM
bytes = "1"
hashbrown = { version = "0.13", features = ["serde"] }
revm = { version = "3", default-features = false, features = [
  "std",
  "serde",
  "memory_limit",
  "optional_eip3607",
  "optional_block_gas_limit",
  "optional_no_base_fee",
] }

foundry-evm-mini = { git = "https://github.com/solidquant/foundry-evm-mini.git" }

[patch.crates-io]
revm = { git = "https://github.com/bluealloy/revm/", rev = "80c909d6f242886cb26e6103a01d1a4bf9468426" }

Make sure revm version is patched to the commit at: 80c909d6f242886cb26e6103a01d1a4bf9468426 (v3.4)

About

Foundry EVM Standalone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%