chore(sdk): Complete adapters for NodePrimitives ATs (#14672)

This commit is contained in:
Emilia Hane
2025-02-24 17:26:49 +01:00
committed by GitHub
parent 64f639ae6e
commit 6074d8d92c
2 changed files with 7 additions and 1 deletions

View File

@@ -138,7 +138,7 @@ pub use size::InMemorySize;
/// Node traits
pub mod node;
pub use node::{BodyTy, FullNodePrimitives, HeaderTy, NodePrimitives, ReceiptTy};
pub use node::{BlockTy, BodyTy, FullNodePrimitives, HeaderTy, NodePrimitives, ReceiptTy, TxTy};
/// Helper trait that requires de-/serialize implementation since `serde` feature is enabled.
#[cfg(feature = "serde")]

View File

@@ -65,5 +65,11 @@ pub type HeaderTy<N> = <N as NodePrimitives>::BlockHeader;
/// Helper adapter type for accessing [`NodePrimitives`] block body types.
pub type BodyTy<N> = <N as NodePrimitives>::BlockBody;
/// Helper adapter type for accessing [`NodePrimitives`] block types.
pub type BlockTy<N> = <N as NodePrimitives>::Block;
/// Helper adapter type for accessing [`NodePrimitives`] receipt types.
pub type ReceiptTy<N> = <N as NodePrimitives>::Receipt;
/// Helper adapter type for accessing [`NodePrimitives`] signed transaction types.
pub type TxTy<N> = <N as NodePrimitives>::SignedTx;