Expand description
Transaction-hash fork replay preparation and execution.
Re-exportsยง
use crate::config::ForkTransactionReplay;๐use crate::eth::backend::executor::AnvilBlockExecutor;๐use crate::mem::inspector::AnvilInspector;๐use crate::mem::inspector::InspectorTxConfig;๐use alloy_consensus::BlockHeader;๐use alloy_consensus::Transaction;๐use alloy_consensus::Typed2718;๐use alloy_consensus::transaction::Recovered;๐use alloy_consensus::transaction::SignerRecoverable;๐use alloy_consensus::transaction::TxHashRef;๐use alloy_evm::Evm;๐use alloy_evm::FromRecoveredTx;๐use alloy_evm::FromTxWithEncoded;๐use alloy_evm::RecoveredTx;๐use alloy_evm::block::BalIndexedDatabase;๐use alloy_evm::block::BlockExecutionError;๐use alloy_evm::block::BlockExecutionResult;๐use alloy_evm::block::BlockExecutor;๐use alloy_evm::block::StateDB;๐use alloy_evm::block::TxResult;๐use alloy_evm::precompiles::PrecompilesMap;๐use alloy_network::BlockResponse;๐use alloy_network::TransactionResponse;๐use alloy_primitives::Address;๐use alloy_primitives::B256;๐use anvil_core::eth::transaction::MaybeImpersonatedTransaction;๐use anvil_core::eth::transaction::TransactionInfo;๐use eyre::Context;๐use eyre::Result;๐use foundry_common::sh_warn;๐use foundry_evm::core::evm::IntoInstructionResult;๐use foundry_primitives::FoundryReceiptEnvelope;๐use foundry_primitives::FoundryTxEnvelope;๐use foundry_primitives::FoundryTxType;๐use revm::Database;๐use revm::context_interface::result::ExecutionResult;๐use revm::context_interface::result::Output;๐use revm::interpreter::InstructionResult;๐use revm::state::EvmState;๐
Structsยง
- Executed
Historical ๐Replay - The complete result of executing a historical prefix against an overlay.
- Historical
Replay ๐Transaction - A source transaction prepared for direct historical execution.
- Prepared
Fork ๐Transaction Replay - A validated transaction prefix together with its source block execution inputs.
Functionsยง
- execute_
historical_ ๐replay - Executes a prepared prefix strictly and captures changesets for deferred publication.
- execute_
historical_ ๐replay_ with - Executes a prepared prefix using a caller-selected network transaction entry point.
- prepare_
fork_ ๐transaction_ replay - Converts and validates every source-prefix transaction before database execution.