Skip to main content

Module storage

Module storage 

Source
Expand description

In-memory blockchain storage

Re-exportsยง

use crate::eth::backend::db::MaybeFullDatabase; ๐Ÿ”’
use crate::eth::backend::db::SerializableBlock; ๐Ÿ”’
use crate::eth::backend::db::SerializableHistoricalStates; ๐Ÿ”’
use crate::eth::backend::db::SerializableTransaction; ๐Ÿ”’
use crate::eth::backend::db::StateDb; ๐Ÿ”’
use crate::eth::backend::mem::cache::DiskStateCache; ๐Ÿ”’
use crate::eth::backend::mem::tempo::TempoChain; ๐Ÿ”’
use crate::eth::pool::transactions::PoolTransaction; ๐Ÿ”’
use alloy_consensus::BlockHeader; ๐Ÿ”’
use alloy_eips::eip7928::BlockAccessList; ๐Ÿ”’
use alloy_network::Network; ๐Ÿ”’
use alloy_primitives::B256; ๐Ÿ”’
use alloy_primitives::Bytes; ๐Ÿ”’
use alloy_primitives::U256; ๐Ÿ”’
use alloy_primitives::map::HashMap; ๐Ÿ”’
use alloy_rpc_types::BlockId; ๐Ÿ”’
use alloy_rpc_types::BlockNumberOrTag; ๐Ÿ”’
use alloy_rpc_types::TransactionInfo as RethTransactionInfo; ๐Ÿ”’
use alloy_rpc_types::trace::otterscan::InternalOperation; ๐Ÿ”’
use alloy_rpc_types::trace::otterscan::OperationType; ๐Ÿ”’
use alloy_rpc_types::trace::parity::LocalizedTransactionTrace; ๐Ÿ”’
use anvil_core::eth::block::Block; ๐Ÿ”’
use anvil_core::eth::block::create_block; ๐Ÿ”’
use anvil_core::eth::transaction::MaybeImpersonatedTransaction; ๐Ÿ”’
use anvil_core::eth::transaction::TransactionInfo; ๐Ÿ”’
use foundry_evm::traces::CallKind; ๐Ÿ”’
use foundry_evm::traces::CallTraceNode; ๐Ÿ”’
use foundry_evm::traces::ParityTraceBuilder; ๐Ÿ”’
use foundry_evm::traces::TraceMemberOrder; ๐Ÿ”’
use foundry_evm::traces::TracingInspectorConfig; ๐Ÿ”’
use foundry_primitives::FoundryHeader; ๐Ÿ”’
use foundry_primitives::FoundryReceiptEnvelope; ๐Ÿ”’
use foundry_primitives::FoundryTxEnvelope; ๐Ÿ”’
use parking_lot::RwLock; ๐Ÿ”’
use std::collections::VecDeque; ๐Ÿ”’
use std::fmt; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::time::Duration; ๐Ÿ”’

Structsยง

Blockchain
A simple in-memory blockchain
BlockchainStorage
Stores the blockchain data (blocks, transactions)
InMemoryBlockStates
Represents the complete state of single block
MinedBlockOutcome
Represents the outcome of mining a new block
MinedTransaction
Container type for a mined transaction
MinedTransactionReceipt
Intermediary Anvil representation of a receipt

Constantsยง

DEFAULT_HISTORY_LIMIT
MAX_ON_DISK_HISTORY_LIMIT ๐Ÿ”’
MIN_HISTORY_LIMIT ๐Ÿ”’

Functionsยง

exclude_precompile_calls ๐Ÿ”’
Detaches precompile calls identified during execution from the call graph, as the tracing inspector does when configured to exclude precompile calls.