Module storage

Module storage 

Source
Available on crate feature storage-api only.
Expand description

Re-exported reth storage api types

Modules§

errors
Commonly used error types used when interacting with storage.
noop
Various noop implementations for traits.

Structs§

EthStorage
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
AccountInfoReader
Minimal requirements to read a full account, for example, to validate its new transactions
AccountReader
Account reader
BlockBodyIndicesProvider
Client trait for fetching block body indices related data.
BlockBodyReader
Trait that implements how block bodies are read from the storage.
BlockBodyWriter
Trait that implements how block bodies are written to the storage.
BlockExecutionWriter
BlockExecution Writer
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.
BlockWriter
Block Writer
BytecodeReader
Trait for reading bytecode associated with a given code hash.
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.
ChainStorageReader
Trait that implements how chain-specific types are read from storage.
ChainStorageWriter
Trait that implements how chain-specific types are written to the storage.
ChangeSetReader
AccountChange reader
DBProvider
Database provider.
DatabaseProviderFactory
Database provider factory.
FullRpcProvider
Helper trait to unify all provider traits required to support eth RPC server behaviour, for simplicity.
HashedPostStateProvider
Trait that provides the hashed state from various sources.
HashingWriter
Hashing Writer
HeaderProvider
Client trait for fetching Header related data.
HeaderSyncGapProvider
Provider for getting the local tip header for sync gap calculation.
HistoryWriter
History Writer
NodePrimitivesProvider
Provider implementation that knows configured NodePrimitives.
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.
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.
StateReader
This just receives state, or ExecutionOutcome, from the provider
StateRootProvider
A type that can compute the state root of a given post state.
StateWriter
A trait specifically for writing state changes or reverts
StatsReader
The trait for fetching provider statistics.
StorageChangeSetReader
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.

Type Aliases§

FactoryTx
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.
ReadBodyInput
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.