Module providers

Source
Expand description

Provider trait implementations.

Structs§

BlockchainProvider
The main type for interacting with the blockchain.
BlockchainProvider2
The main type for interacting with the blockchain.
BundleStateProvider
A state provider that resolves to data from either a wrapped crate::ExecutionOutcome or an underlying state provider.
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.
ProviderFactory
A common provider that fetches data from a database or static file.
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.
NodeTypesForTree
A helper trait with requirements for NodeTypesForProvider to be used within legacy blockchain tree.
ProviderNodeTypes
Helper trait keeping common requirements of providers for [NodeTypesWithDB].
StaticFileWriter
Helper trait to manage different StaticFileProviderRW of an Arc<StaticFileProvider
TreeNodeTypes
Helper trait with requirements for ProviderNodeTypes to be used within legacy blockchain tree.

Type Aliases§

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