chore(sdk): add adapters for header and body to NodeTypes (#12723)

This commit is contained in:
Emilia Hane
2024-11-21 19:17:16 +01:00
committed by GitHub
parent 3d477e7d6f
commit c2323b4e49
2 changed files with 9 additions and 3 deletions

View File

@ -232,3 +232,9 @@ where
{
type Engine = E;
}
/// Helper adapter type for accessing [`NodePrimitives::BlockHeader`] on [`NodeTypes`].
pub type HeaderTy<N> = <<N as NodeTypes>::Primitives as NodePrimitives>::BlockHeader;
/// Helper adapter type for accessing [`NodePrimitives::BlockBody`] on [`NodeTypes`].
pub type BodyTy<N> = <<N as NodeTypes>::Primitives as NodePrimitives>::BlockBody;