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 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
evm
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)