feat: NodePrimitivesProvider (#12855)

This commit is contained in:
Arsenii Kulikov
2024-11-26 16:06:55 +04:00
committed by GitHub
parent b34fb7883a
commit 26fc701814
40 changed files with 239 additions and 148 deletions

View File

@ -70,3 +70,6 @@ pub use stats::*;
mod legacy;
pub use legacy::*;
mod primitives;
pub use primitives::*;

View 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;
}