mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-17 02:12:02 -05:00
50 lines
2.2 KiB
Rust
50 lines
2.2 KiB
Rust
//! Collection of traits and trait implementations for common database operations.
|
|
//!
|
|
//! ## Feature Flags
|
|
//!
|
|
//! - `test-utils`: Export utilities for testing
|
|
|
|
#![doc(
|
|
html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",
|
|
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
|
|
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
|
|
)]
|
|
#![warn(missing_debug_implementations, missing_docs, unreachable_pub, rustdoc::all)]
|
|
#![deny(unused_must_use, rust_2018_idioms)]
|
|
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
|
|
|
/// Various provider traits.
|
|
mod traits;
|
|
pub use traits::{
|
|
AccountExtReader, AccountReader, BlockExecutionWriter, BlockExecutor, BlockExecutorStats,
|
|
BlockHashReader, BlockIdReader, BlockNumReader, BlockReader, BlockReaderIdExt, BlockSource,
|
|
BlockWriter, BlockchainTreePendingStateProvider, BundleStateDataProvider, CanonChainTracker,
|
|
CanonStateNotification, CanonStateNotificationSender, CanonStateNotifications,
|
|
CanonStateSubscriptions, ChainSpecProvider, ChangeSetReader, EvmEnvProvider, ExecutorFactory,
|
|
HashingWriter, HeaderProvider, HeaderSyncGap, HeaderSyncGapProvider, HeaderSyncMode,
|
|
HistoryWriter, PrunableBlockExecutor, PruneCheckpointReader, PruneCheckpointWriter,
|
|
ReceiptProvider, ReceiptProviderIdExt, StageCheckpointReader, StageCheckpointWriter,
|
|
StateProvider, StateProviderBox, StateProviderFactory, StateRootProvider, StorageReader,
|
|
TransactionVariant, TransactionsProvider, TransactionsProviderExt, WithdrawalsProvider,
|
|
};
|
|
|
|
/// Provider trait implementations.
|
|
pub mod providers;
|
|
pub use providers::{
|
|
DatabaseProvider, DatabaseProviderRO, DatabaseProviderRW, HistoricalStateProvider,
|
|
HistoricalStateProviderRef, LatestStateProvider, LatestStateProviderRef, ProviderFactory,
|
|
};
|
|
|
|
#[cfg(any(test, feature = "test-utils"))]
|
|
/// Common test helpers for mocking the Provider.
|
|
pub mod test_utils;
|
|
|
|
/// Re-export provider error.
|
|
pub use reth_interfaces::provider::ProviderError;
|
|
|
|
pub mod chain;
|
|
pub use chain::{Chain, DisplayBlocksChain};
|
|
|
|
pub mod bundle_state;
|
|
pub use bundle_state::{BundleStateWithReceipts, OriginalValuesKnown, StateChanges, StateReverts};
|