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§
- Block
Source - A helper enum that represents the origin of the requested block.
- Storage
Location - An enum that represents the storage location for a piece of data.
- Transaction
Variant - Enum to control transaction hash inclusion.
Traits§
- Account
ExtReader - Account reader
- Account
Info Reader - Minimal requirements to read a full account, for example, to validate its new transactions
- Account
Reader - Account reader
- Block
Body Indices Provider - Client trait for fetching block body indices related data.
- Block
Body Reader - Trait that implements how block bodies are read from the storage.
- Block
Body Writer - Trait that implements how block bodies are written to the storage.
- Block
Execution Writer BlockExecution
Writer- Block
Hash Reader - Client trait for fetching block hashes by number.
- Block
IdReader - Client trait for transforming [
BlockId
] into block numbers or hashes. - Block
NumReader - 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.
- Block
Reader - Api trait for fetching
Block
related data. - Block
Reader IdExt - Trait extension for
BlockReader
, for types that implementBlockId
conversion. - Block
Writer - Block Writer
- Bytecode
Reader - Trait for reading bytecode associated with a given code hash.
- Canon
Chain Tracker - A type that can track updates related to fork choice updates.
- Chain
State Block Reader - Functionality to read the last known chain blocks from the database.
- Chain
State Block Writer - Functionality to write the last known chain blocks to the database.
- Chain
Storage Reader - Trait that implements how chain-specific types are read from storage.
- Chain
Storage Writer - Trait that implements how chain-specific types are written to the storage.
- Change
SetReader AccountChange
reader- DBProvider
- Database provider.
- Database
Provider Factory - Database provider factory.
- Full
RpcProvider - Helper trait to unify all provider traits required to support
eth
RPC server behaviour, for simplicity. - Hashed
Post State Provider - Trait that provides the hashed state from various sources.
- Hashing
Writer - Hashing Writer
- Header
Provider - Client trait for fetching
Header
related data. - Header
Sync GapProvider - Provider for getting the local tip header for sync gap calculation.
- History
Writer - History Writer
- Node
Primitives Provider - Provider implementation that knows configured
NodePrimitives
. - Prune
Checkpoint Reader - The trait for fetching prune checkpoint related data.
- Prune
Checkpoint Writer - The trait for updating prune checkpoint related data.
- Receipt
Provider - Client trait for fetching receipt data.
- Receipt
Provider IdExt - Trait extension for
ReceiptProvider
, for types that implementBlockId
conversion. - Stage
Checkpoint Reader - The trait for fetching stage checkpoint related data.
- Stage
Checkpoint Writer - The trait for updating stage checkpoint related data.
- State
Proof Provider - A type that can generate state proof on top of a given post state.
- State
Provider - An abstraction for a type that provides state data.
- State
Provider Factory - Light wrapper that returns
StateProvider
implementations that correspond to the givenBlockNumber
, the latest state, or the pending state. - State
Reader - This just receives state, or
ExecutionOutcome
, from the provider - State
Root Provider - A type that can compute the state root of a given post state.
- State
Writer - A trait specifically for writing state changes or reverts
- Stats
Reader - The trait for fetching provider statistics.
- Storage
Change SetReader - Storage
ChangeSet
reader - Storage
Reader - Storage reader
- Storage
Root Provider - A type that can compute the storage root for a given account.
- Storage
Trie Writer - Storage Trie Writer
- Transactions
Provider - Client trait for fetching transactions related data.
- Transactions
Provider Ext - Client trait for fetching additional transactions related data.
- Trie
Writer - Trie Writer
- TryInto
Historical State Provider - Trait implemented for database providers that can be converted into a historical state provider.
Type Aliases§
- Factory
Tx - Helper type alias to get the associated transaction type from a
DatabaseProviderFactory
. - Provider
Block - A helper type alias to access
BlockReader::Block
. - Provider
Header - A helper type alias to access
HeaderProvider::Header
. - Provider
Receipt - A helper type alias to access
ReceiptProvider::Receipt
. - Provider
Tx - A helper type alias to access
TransactionsProvider::Transaction
. - Read
Body Input - Input for reading a block body. Contains a header of block being read and a list of pre-fetched transactions.
- State
Provider Box - Type alias of boxed
StateProvider
.