Expand description
Provider trait implementations. Contains the main provider types and traits for interacting with the blockchain’s storage.
Structs§
- Blockchain
Provider - The main type for interacting with the blockchain.
- Consistent
DbView - A consistent view over state in the database.
- Database
Provider - A provider struct that fetches data from the database.
Wrapper around [
DbTx
] and [DbTxMut
]. Example:HeaderProvider
BlockHashReader
- Database
ProviderRW - A
DatabaseProvider
that holds a read-write database transaction. - Historical
State Provider - State provider for a given block number.
For more detailed description, see
HistoricalStateProviderRef
. - Historical
State Provider Ref - State provider for a given block number which takes a tx reference.
- Latest
State Provider - State provider for the latest state.
- Latest
State Provider Ref - State provider over latest state that takes tx reference.
- Lowest
Available Blocks - Lowest blocks at which different parts of the state are available. They may be Some if pruning is enabled.
- Provider
Factory - A common provider that fetches data from a database or static file.
- Provider
Factory Builder - Helper type to create a
ProviderFactory
. - Read
Only Config - Settings for how to open the database and static files.
- Static
File JarProvider - Provider over a specific
NippyJar
and range. - Static
File Provider StaticFileProvider
manages all existingStaticFileJarProvider
.- Static
File ProviderRW - Extends
StaticFileProvider
with writing capabilities - Static
File ProviderRW RefMut - Mutable reference to a
StaticFileProviderRW
behind a [RwLockWriteGuard
].
Enums§
- Consistent
View Error - Consistent database view error.
- Static
File Access - Access mode on a static file provider. RO/RW.
Traits§
- Chain
Storage - Trait that provides access to implementations of
ChainStorage
- Node
Types ForProvider - Helper trait to bound
NodeTypes
so that combined with database they satisfyProviderNodeTypes
. - Provider
Node Types - Helper trait keeping common requirements of providers for
NodeTypesWithDB
. - Static
File Writer - Helper trait to manage different
StaticFileProviderRW
of anArc<StaticFileProvider
Type Aliases§
- Database
ProviderRO - A
DatabaseProvider
that holds a read-only database transaction.