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.
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
Structs§
- EvmEnv
- Container type that holds both the configuration and block environment for EVM execution.
Traits§
- Foundry
Block - Extension of
Blockwith mutable setters, allowing EVM-agnostic mutation of block fields. - Foundry
Chain - Foundry extension for chain context type
- Foundry
Context Ext - Extension trait providing mutable field access to block, tx, and cfg environments.
- Foundry
Inspector Ext - A combined inspector trait that integrates revm’s
Inspectorwith Foundry-specific extensions. Automatically implemented for any type that implements bothInspector<CTX>andInspectorExt. - Foundry
Journal - Foundry extension for Journal type
- Foundry
Transaction - Extension of
Transactionwith mutable setters, allowing EVM-agnostic mutation of transaction fields. - From
AnyRpc Transaction - Trait for converting an [
AnyRpcTransaction] into a specificTxEnv. - Inspector
Ext - Foundry-specific inspector methods, decoupled from any particular EVM context type.
Functions§
- refresh_
chain_ journal - Refreshes journal state derived from a context’s active chain position.
Type Aliases§
- Breakpoints
- Map keyed by breakpoints char to their location (contract address, pc)