Files
reth/examples/custom-node/src/primitives/mod.rs
Soubhik Singha Mahapatra da95e5745e feat: use custom tx in custom-node (#16054)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2025-05-08 06:35:47 +00:00

30 lines
687 B
Rust

//! Contains the primitive types of this node.
pub mod header;
pub use header::*;
pub mod block;
pub use block::*;
pub mod tx;
pub use tx::*;
pub mod tx_type;
pub use tx_type::*;
pub mod extended_op_tx_envelope;
pub use extended_op_tx_envelope::*;
pub mod tx_custom;
pub use tx_custom::*;
use reth_ethereum::primitives::NodePrimitives;
use reth_op::OpReceipt;
#[derive(Debug, Clone, Default, PartialEq, Eq)]
pub struct CustomNodePrimitives;
impl NodePrimitives for CustomNodePrimitives {
type Block = Block;
type BlockHeader = CustomHeader;
type BlockBody = BlockBody;
type SignedTx = ExtendedOpTxEnvelope<CustomTransactionEnvelope>;
type Receipt = OpReceipt;
}