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
- Blockchain
Storage - Stores the blockchain data (blocks, transactions)
- InMemory
Block States - Represents the complete state of single block
- Mined
Block Outcome - Represents the outcome of mining a new block
- Mined
Transaction - Container type for a mined transaction
- Mined
Transaction Receipt - Intermediary Anvil representation of a receipt
Constantsยง
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.