Expand description
Shared EVM traits, associated types, and execution helpers.
Each network module owns its network marker and concrete EVM implementations.
Re-exportsΒ§
use crate::FoundryBlock;πuse crate::FoundryChain;πuse crate::FoundryContextExt;πuse crate::FoundryInspectorExt;πuse crate::FoundryJournal;πuse crate::FoundryTransaction;πuse crate::FromAnyRpcTransaction;πuse crate::backend::DatabaseExt;πuse crate::backend::JournaledState;πuse alloy_consensus::SignableTransaction;πuse alloy_consensus::Signed;πuse alloy_consensus::transaction::SignerRecoverable;πuse alloy_evm::Evm;πuse alloy_evm::EvmEnv;πuse alloy_evm::EvmFactory;πuse alloy_evm::FromRecoveredTx;πuse alloy_evm::precompiles::PrecompilesMap;πuse alloy_network::Network;πuse alloy_primitives::Address;πuse alloy_primitives::Signature;πuse alloy_primitives::U256;πuse alloy_rlp::Decodable;πuse foundry_common::FoundryReceiptResponse;πuse foundry_common::FoundryTransactionBuilder;πuse foundry_common::fmt::UIfmt;πuse foundry_config::ExecutionSpec;πuse foundry_fork_db::DatabaseError;πuse foundry_fork_db::ForkBlockEnv;πuse revm::Database;πuse revm::context::ContextTr;πuse revm::context::JournalTr;πuse revm::context::LocalContextTr;πuse revm::context::result::EVMError;πuse revm::context::result::HaltReason;πuse revm::context::result::ResultAndState;πuse revm::handler::EvmTr;πuse revm::handler::FrameResult;πuse revm::inspector::InspectorEvmTr;πuse revm::inspector::InspectorHandler;πuse revm::inspector::NoOpInspector;πuse revm::interpreter::CallInput;πuse revm::interpreter::CallInputs;πuse revm::interpreter::CallScheme;πuse revm::interpreter::CallValue;πuse revm::interpreter::CreateInputs;πuse revm::interpreter::FrameInput;πuse revm::interpreter::GasTracker;πuse revm::interpreter::InstructionResult;πuse revm::interpreter::interpreter::EthInterpreter;πuse revm::interpreter::interpreter_action::FrameInit;πuse revm::primitives::hardfork::SpecId;πuse revm::state::AccountStatus;πuse revm::state::EvmState;πuse serde::Deserialize;πuse serde::Deserialize;πuse serde::Serialize;πuse serde::Serialize;πuse std::fmt::Debug;πuse std::fmt::Debug;πuse std::ops::DerefMut;πpub use eth::*;pub use tempo::*;pub use base::*;basepub use monad::*;monadpub use op::*;optimism
ModulesΒ§
TraitsΒ§
- Foundry
EvmFactory - Foundry
EvmNetwork - Foundryβs compatibility trait associating a [
Network] with aFoundryEvmFactory. - Into
Instruction Result - Converts a network-specific halt reason into an [
InstructionResult]. - Nested
Evm - Object-safe EVM operations used by nested execution and fork replay.
FunctionsΒ§
- get_
create2_ factory_ call_ inputs - Get the call inputs for the CREATE2 factory.
- merge_
child_ state - Merges a childβs returned account state into its suspended parent.
- prepare_
child_ state - Prepares account state for execution across a synthetic transaction boundary.
- run_
inspected_ πframe - Runs a nested frame with inspection and settles its gas into the parent frame.
- with_
inherited_ evm - Runs a child operation with the parentβs environment, journal, and native chain state.
Type AliasesΒ§
- Block
EnvFor - Block
Response For - Chain
For - EvmEnv
For - EvmFactory
For - Convenience type aliases for accessing associated types through
FoundryEvmNetwork. - Foundry
Context For - Halt
Reason For - Nested
EvmClosure - Closure type used by
CheatcodesExecutormethods that run nested EVM operations. - Nested
EvmClosure For - Nested EVM closure for a Foundry EVM network.
- Nested
EvmFor - Boxed nested EVM produced by a Foundry EVM factory.
- Network
For - Precompiles
For - SpecFor
- Transaction
Request For - Transaction
Response For - TxEnv
For - TxEnvelope
For