mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-10 23:15:34 -05:00
48 lines
1.5 KiB
Rust
48 lines
1.5 KiB
Rust
#![warn(missing_docs, unreachable_pub, unused_crate_dependencies)]
|
|
#![deny(unused_must_use, rust_2018_idioms)]
|
|
#![doc(test(
|
|
no_crate_inject,
|
|
attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables))
|
|
))]
|
|
|
|
//! This crate contains a collection of traits and trait implementations for common database
|
|
//! operations.
|
|
|
|
/// Various provider traits.
|
|
mod traits;
|
|
pub use traits::{
|
|
AccountProvider, BlockExecutor, BlockHashProvider, BlockIdProvider, BlockProvider,
|
|
BlockchainTreePendingStateProvider, EvmEnvProvider, ExecutorFactory, HeaderProvider,
|
|
PostStateDataProvider, ReceiptProvider, StateProvider, StateProviderBox, StateProviderFactory,
|
|
TransactionsProvider, WithdrawalsProvider,
|
|
};
|
|
|
|
/// Provider trait implementations.
|
|
pub mod providers;
|
|
pub use providers::{
|
|
HistoricalStateProvider, HistoricalStateProviderRef, LatestStateProvider,
|
|
LatestStateProviderRef, ShareableDatabase,
|
|
};
|
|
|
|
/// Helper type for loading Merkle Patricia Trees from the database
|
|
pub mod trie;
|
|
|
|
/// Execution result
|
|
pub mod post_state;
|
|
pub use post_state::PostState;
|
|
|
|
/// Helper types for interacting with the database
|
|
mod transaction;
|
|
pub use transaction::{Transaction, TransactionError};
|
|
|
|
/// Common database utilities.
|
|
mod utils;
|
|
pub use utils::{insert_block, insert_canonical_block};
|
|
|
|
#[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;
|