mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: move EthPrimitives to reth-ethereum-primitives (#14018)
This commit is contained in:
@ -25,3 +25,17 @@ pub type Block = alloy_consensus::Block<TransactionSigned>;
|
||||
|
||||
/// Type alias for the ethereum blockbody
|
||||
pub type BlockBody = alloy_consensus::BlockBody<TransactionSigned>;
|
||||
|
||||
/// Helper struct that specifies the ethereum
|
||||
/// [`NodePrimitives`](reth_primitives_traits::NodePrimitives) types.
|
||||
#[derive(Debug, Clone, Default, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
|
||||
#[non_exhaustive]
|
||||
pub struct EthPrimitives;
|
||||
|
||||
impl reth_primitives_traits::NodePrimitives for EthPrimitives {
|
||||
type Block = crate::Block;
|
||||
type BlockHeader = alloy_consensus::Header;
|
||||
type BlockBody = crate::BlockBody;
|
||||
type SignedTx = crate::TransactionSigned;
|
||||
type Receipt = crate::Receipt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user