feat: EthApi traits abstraction (#13170)

This commit is contained in:
Arsenii Kulikov
2024-12-06 16:30:50 +04:00
committed by GitHub
parent ab87f22cab
commit cf2a6a1ee8
53 changed files with 851 additions and 511 deletions

View File

@ -4,6 +4,7 @@ pub mod body;
pub mod header;
use alloc::fmt;
use alloy_rlp::{Decodable, Encodable};
use crate::{
BlockBody, BlockHeader, FullBlockBody, FullBlockHeader, InMemorySize, MaybeArbitrary,
@ -39,6 +40,8 @@ pub trait Block:
+ InMemorySize
+ MaybeSerde
+ MaybeArbitrary
+ Encodable
+ Decodable
{
/// Header part of the block.
type Header: BlockHeader;