Skip to main content

Module replay

Module replay 

Source
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ยง

ExecutedHistoricalReplay ๐Ÿ”’
The complete result of executing a historical prefix against an overlay.
HistoricalReplayTransaction ๐Ÿ”’
A source transaction prepared for direct historical execution.
PreparedForkTransactionReplay ๐Ÿ”’
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.