Skip to main content

Crate foundry_evm_core

Crate foundry_evm_core 

Source
Expand description

Β§foundry-evm-core

Generic execution, environment, fork, backend, and state abstractions shared by Foundry tools.

evm::FoundryEvmNetwork binds an Alloy network to an evm::FoundryEvmFactory. The factory owns the concrete execution types and constructs a Foundry-compatible EVM context, while foundry-evm-networks owns runtime family selection. Keeping those responsibilities separate allows one compiled binary to dispatch to different execution families at runtime.

Re-exportsΒ§

pub(crate) use crate::constants::DEFAULT_CREATE2_DEPLOYER; πŸ”’
pub(crate) use op_alloy_rpc_types as _; πŸ”’ optimism
pub(crate) use Address; πŸ”’
pub(crate) use map::HashMap; πŸ”’
pub(crate) use auto_impl::auto_impl; πŸ”’
pub(crate) use foundry_evm_networks::NetworkConfigs; πŸ”’
pub(crate) use Inspector; πŸ”’
pub(crate) use inspector::NoOpInspector; πŸ”’
pub(crate) use interpreter::CreateInputs; πŸ”’
pub(crate) use revm_inspectors::access_list::AccessListInspector; πŸ”’
pub use env::*;

ModulesΒ§

abi
backend
Foundry’s main executor backend abstraction and implementation.
buffer
bytecode
constants
decode
Various utilities to decode test results.
eip2935
EIP-2935 history storage helpers.
env
Execution environment mutation, context access, and RPC transaction conversion.
evm
Shared EVM traits, associated types, and execution helpers.
fork
hardfork
ic
opts
precompiles
state_snapshot
Support for snapshotting different states
tempo
Tempo precompile and contract initialization for Foundry.
utils

TraitsΒ§

FoundryInspectorExt
A combined inspector trait that integrates revm’s [Inspector] with Foundry-specific extensions. Automatically implemented for any type that implements both [Inspector<CTX>] and InspectorExt.
InspectorExt
Foundry-specific inspector methods, decoupled from any particular EVM context type.

Type AliasesΒ§

Breakpoints
Map keyed by breakpoints char to their location (contract address, pc)