mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: NodePrimitivesProvider (#12855)
This commit is contained in:
@ -70,3 +70,6 @@ pub use stats::*;
|
||||
|
||||
mod legacy;
|
||||
pub use legacy::*;
|
||||
|
||||
mod primitives;
|
||||
pub use primitives::*;
|
||||
|
||||
8
crates/storage/storage-api/src/primitives.rs
Normal file
8
crates/storage/storage-api/src/primitives.rs
Normal file
@ -0,0 +1,8 @@
|
||||
use reth_primitives::NodePrimitives;
|
||||
|
||||
/// Provider implementation that knows configured [`NodePrimitives`].
|
||||
#[auto_impl::auto_impl(&, Arc, Box)]
|
||||
pub trait NodePrimitivesProvider {
|
||||
/// The node primitive types.
|
||||
type Primitives: NodePrimitives;
|
||||
}
|
||||
Reference in New Issue
Block a user