mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
chore: changed import for custom-node(examples) (#15662)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use crate::primitives::CustomHeader;
|
||||
use reth_optimism_primitives::OpTransactionSigned;
|
||||
use reth_op::OpTransactionSigned;
|
||||
|
||||
/// The Block type of this node
|
||||
pub type Block = alloy_consensus::Block<OpTransactionSigned, CustomHeader>;
|
||||
|
||||
@@ -9,7 +9,7 @@ use alloy_primitives::{ChainId, TxHash};
|
||||
use alloy_rlp::{BufMut, Decodable, Encodable, Result as RlpResult};
|
||||
use op_alloy_consensus::{OpTxEnvelope, OpTxType};
|
||||
use reth_codecs::Compact;
|
||||
use reth_primitives_traits::{
|
||||
use reth_ethereum::primitives::{
|
||||
serde_bincode_compat::SerdeBincodeCompat, transaction::signed::RecoveryError, InMemorySize,
|
||||
SignedTransaction,
|
||||
};
|
||||
|
||||
@@ -4,7 +4,7 @@ use alloy_primitives::{
|
||||
};
|
||||
use alloy_rlp::{Encodable, RlpDecodable, RlpEncodable};
|
||||
use reth_codecs::Compact;
|
||||
use reth_primitives_traits::{BlockHeader, InMemorySize};
|
||||
use reth_ethereum::primitives::{BlockHeader, InMemorySize};
|
||||
use revm_primitives::keccak256;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
@@ -166,7 +166,7 @@ impl BlockHeader for CustomHeader {}
|
||||
|
||||
mod serde_bincode_compat {
|
||||
use alloy_consensus::serde_bincode_compat::Header;
|
||||
use reth_primitives_traits::serde_bincode_compat::SerdeBincodeCompat;
|
||||
use reth_ethereum::primitives::serde_bincode_compat::SerdeBincodeCompat;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
||||
@@ -9,8 +9,8 @@ pub use tx::*;
|
||||
pub mod extended_op_tx_envelope;
|
||||
pub use extended_op_tx_envelope::*;
|
||||
|
||||
use reth_optimism_primitives::{OpReceipt, OpTransactionSigned};
|
||||
use reth_primitives_traits::NodePrimitives;
|
||||
use reth_ethereum::primitives::NodePrimitives;
|
||||
use reth_op::{OpReceipt, OpTransactionSigned};
|
||||
|
||||
#[derive(Debug, Clone, Default, PartialEq, Eq)]
|
||||
pub struct CustomNodePrimitives;
|
||||
|
||||
@@ -3,14 +3,14 @@ use alloy_eips::{eip2718::Eip2718Result, Decodable2718, Encodable2718, Typed2718
|
||||
use alloy_primitives::TxHash;
|
||||
use alloy_rlp::{BufMut, Decodable, Encodable, Result as RlpResult};
|
||||
use reth_codecs::Compact;
|
||||
use reth_optimism_primitives::{
|
||||
serde_bincode_compat::OpTransactionSigned as BincodeCompatOpTransactionSigned,
|
||||
OpTransactionSigned,
|
||||
};
|
||||
use reth_primitives_traits::{
|
||||
use reth_ethereum::primitives::{
|
||||
serde_bincode_compat::SerdeBincodeCompat, transaction::signed::RecoveryError, InMemorySize,
|
||||
SignedTransaction,
|
||||
};
|
||||
use reth_op::{
|
||||
serde_bincode_compat::OpTransactionSigned as BincodeCompatOpTransactionSigned,
|
||||
OpTransactionSigned,
|
||||
};
|
||||
use revm_primitives::{Address, Bytes};
|
||||
|
||||
pub const TRANSFER_TX_TYPE_ID: u8 = 127;
|
||||
|
||||
Reference in New Issue
Block a user