mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
39 lines
1.1 KiB
Rust
39 lines
1.1 KiB
Rust
#![warn(missing_docs, unreachable_pub)]
|
|
#![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, BlockHashProvider, BlockProvider, HeaderProvider, StateProvider,
|
|
StateProviderFactory,
|
|
};
|
|
|
|
/// Provider trait implementations.
|
|
pub mod providers;
|
|
pub use providers::{
|
|
HistoricalStateProvider, HistoricalStateProviderRef, LatestStateProvider,
|
|
LatestStateProviderRef, ShareableDatabase,
|
|
};
|
|
|
|
/// 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::Error;
|