chore(sdk): Move reth_optimism_node::OpPrimitives into reth-optimism-primitives (#12649)

This commit is contained in:
Emilia Hane
2024-11-19 13:53:34 +01:00
committed by GitHub
parent 0db10a13a5
commit da77ffc951
9 changed files with 84 additions and 67 deletions

View File

@ -1,8 +1,16 @@
//! Block body abstraction.
use crate::{InMemorySize, MaybeSerde};
use alloc::fmt;
use alloy_consensus::Transaction;
use reth_codecs::Compact;
use crate::{FullSignedTx, InMemorySize, MaybeSerde};
/// Helper trait that unifies all behaviour required by transaction to support full node operations.
pub trait FullBlockBody: BlockBody<Transaction: FullSignedTx> + Compact {}
impl<T> FullBlockBody for T where T: BlockBody<Transaction: FullSignedTx> + Compact {}
/// Abstraction for block's body.
#[auto_impl::auto_impl(&, Arc)]

View File

@ -36,7 +36,7 @@ pub use integer_list::{IntegerList, IntegerListError};
pub mod block;
pub use block::{
body::BlockBody,
body::{BlockBody, FullBlockBody},
header::{BlockHeader, FullBlockHeader},
Block, FullBlock,
};