Crate reth_storage_api

Source
Expand description

Collection of traits and types for common storage access.

Re-exports§

pub use reth_storage_errors as errors;

Modules§

noop
Various noop implementations for traits.

Structs§

EthStoragedb-api
Ethereum storage implementation.

Enums§

BlockSource
A helper enum that represents the origin of the requested block.
StorageLocation
An enum that represents the storage location for a piece of data.
TransactionVariant
Enum to control transaction hash inclusion.

Traits§

AccountExtReader
Account reader
AccountReader
Account reader
BlockBodyIndicesProvider
Client trait for fetching block body indices related data.
BlockBodyReaderdb-api
Trait that implements how block bodies are read from the storage.
BlockBodyWriterdb-api
Trait that implements how block bodies are written to the storage.
BlockExecutionForkProvider
Fork data needed for execution on it.
BlockHashReader
Client trait for fetching block hashes by number.
BlockIdReader
Client trait for transforming [BlockId] into block numbers or hashes.
BlockNumReader
Client trait for getting important block numbers (such as the latest block number), converting block hashes to numbers, and fetching a block hash from its block number.
BlockReader
Api trait for fetching Block related data.
BlockReaderIdExt
Trait extension for BlockReader, for types that implement BlockId conversion.
BlockchainTreePendingStateProvider
Blockchain trait provider that gives access to the blockchain state that is not yet committed (pending).
CanonChainTracker
A type that can track updates related to fork choice updates.
ChainStateBlockReader
Functionality to read the last known chain blocks from the database.
ChainStateBlockWriter
Functionality to write the last known chain blocks to the database.
ChainStorageReaderdb-api
Trait that implements how chain-specific types are read from storage.
ChainStorageWriterdb-api
Trait that implements how chain-specific types are written to the storage.
ChangeSetReader
AccountChange reader
DBProviderdb-api
Database provider.
DatabaseProviderFactorydb-api
Database provider factory.
ExecutionDataProvider
Provides data required for post-block execution.
FullExecutionDataProvider
Provides comprehensive post-execution state data required for further execution.
HashedPostStateProvider
Trait that provides the hashed state from various sources.
HashingWriterdb-api
Hashing Writer
HeaderProvider
Client trait for fetching Header related data.
HistoryWriterdb-api
History Writer
NodePrimitivesProvider
Provider implementation that knows configured [NodePrimitives].
OmmersProvider
Client trait for fetching ommers.
PruneCheckpointReader
The trait for fetching prune checkpoint related data.
PruneCheckpointWriter
The trait for updating prune checkpoint related data.
ReceiptProvider
Client trait for fetching receipt data.
ReceiptProviderIdExt
Trait extension for ReceiptProvider, for types that implement BlockId conversion.
StageCheckpointReader
The trait for fetching stage checkpoint related data.
StageCheckpointWriter
The trait for updating stage checkpoint related data.
StateCommitmentProviderdb-api
Trait implemented for database providers that can provide the [reth_trie_db::StateCommitment] type.
StateProofProvider
A type that can generate state proof on top of a given post state.
StateProvider
An abstraction for a type that provides state data.
StateProviderFactory
Light wrapper that returns StateProvider implementations that correspond to the given BlockNumber, the latest state, or the pending state.
StateRootProvider
A type that can compute the state root of a given post state.
StatsReaderdb-api
The trait for fetching provider statistics.
StorageChangeSetReaderdb-api
Storage ChangeSet reader
StorageReader
Storage reader
StorageRootProvider
A type that can compute the storage root for a given account.
StorageTrieWriter
Storage Trie Writer
TransactionsProvider
Client trait for fetching transactions related data.
TransactionsProviderExt
Client trait for fetching additional transactions related data.
TrieWriter
Trie Writer
TryIntoHistoricalStateProvider
Trait implemented for database providers that can be converted into a historical state provider.
WithdrawalsProvider
Client trait for fetching [alloy_eips::eip4895::Withdrawal] related data.

Type Aliases§

FactoryTxdb-api
Helper type alias to get the associated transaction type from a DatabaseProviderFactory.
ProviderBlock
A helper type alias to access BlockReader::Block.
ProviderHeader
A helper type alias to access HeaderProvider::Header.
ProviderReceipt
A helper type alias to access ReceiptProvider::Receipt.
ProviderTx
A helper type alias to access TransactionsProvider::Transaction.
ReadBodyInputdb-api
Input for reading a block body. Contains a header of block being read and a list of pre-fetched transactions.
StateProviderBox
Type alias of boxed StateProvider.