Module providers

Source
Expand description

Provider trait implementations. Contains the main provider types and traits for interacting with the blockchain’s storage.

Structs§

BlockchainProvider
The main type for interacting with the blockchain.
ConsistentDbView
A consistent view over state in the database.
DatabaseProvider
A provider struct that fetches data from the database. Wrapper around [DbTx] and [DbTxMut]. Example: HeaderProvider BlockHashReader
DatabaseProviderRW
A DatabaseProvider that holds a read-write database transaction.
HistoricalStateProvider
State provider for a given block number. For more detailed description, see HistoricalStateProviderRef.
HistoricalStateProviderRef
State provider for a given block number which takes a tx reference.
LatestStateProvider
State provider for the latest state.
LatestStateProviderRef
State provider over latest state that takes tx reference.
LowestAvailableBlocks
Lowest blocks at which different parts of the state are available. They may be Some if pruning is enabled.
ProviderFactory
A common provider that fetches data from a database or static file.
ProviderFactoryBuilder
Helper type to create a ProviderFactory.
ReadOnlyConfig
Settings for how to open the database and static files.
StaticFileJarProvider
Provider over a specific NippyJar and range.
StaticFileProvider
StaticFileProvider manages all existing StaticFileJarProvider.
StaticFileProviderRW
Extends StaticFileProvider with writing capabilities
StaticFileProviderRWRefMut
Mutable reference to a StaticFileProviderRW behind a [RwLockWriteGuard].

Enums§

ConsistentViewError
Consistent database view error.
StaticFileAccess
Access mode on a static file provider. RO/RW.

Traits§

ChainStorage
Trait that provides access to implementations of ChainStorage
NodeTypesForProvider
Helper trait to bound NodeTypes so that combined with database they satisfy ProviderNodeTypes.
ProviderNodeTypes
Helper trait keeping common requirements of providers for NodeTypesWithDB.
StaticFileWriter
Helper trait to manage different StaticFileProviderRW of an Arc<StaticFileProvider

Type Aliases§

DatabaseProviderRO
A DatabaseProvider that holds a read-only database transaction.