mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(sdk): Add NodePrimitives::BlockHeader and NodePrimitives::BlockBody (#12647)
This commit is contained in:
@ -39,6 +39,7 @@ reth-optimism-rpc.workspace = true
|
||||
reth-optimism-chainspec.workspace = true
|
||||
reth-optimism-consensus.workspace = true
|
||||
reth-optimism-forks.workspace = true
|
||||
reth-optimism-primitives.workspace = true
|
||||
|
||||
# revm with required optimism features
|
||||
revm = { workspace = true, features = ["secp256k1", "blst", "c-kzg"] }
|
||||
@ -119,3 +120,7 @@ test-utils = [
|
||||
"revm/test-utils",
|
||||
"reth-optimism-node/test-utils",
|
||||
]
|
||||
reth-codec = [
|
||||
"reth-primitives/reth-codec",
|
||||
"reth-optimism-primitives/reth-codec",
|
||||
]
|
||||
@ -9,8 +9,7 @@ use reth_db::transaction::{DbTx, DbTxMut};
|
||||
use reth_evm::{execute::BasicBlockExecutorProvider, ConfigureEvm};
|
||||
use reth_network::{NetworkConfig, NetworkHandle, NetworkManager, PeersInfo};
|
||||
use reth_node_api::{
|
||||
AddOnsContext, EngineValidator, FullNodeComponents, FullNodePrimitives, NodeAddOns,
|
||||
PayloadBuilder,
|
||||
AddOnsContext, EngineValidator, FullNodeComponents, NodeAddOns, PayloadBuilder,
|
||||
};
|
||||
use reth_node_builder::{
|
||||
components::{
|
||||
@ -25,12 +24,13 @@ use reth_optimism_chainspec::OpChainSpec;
|
||||
use reth_optimism_consensus::OpBeaconConsensus;
|
||||
use reth_optimism_evm::{OpEvmConfig, OpExecutionStrategyFactory};
|
||||
use reth_optimism_payload_builder::builder::OpPayloadTransactions;
|
||||
use reth_optimism_primitives::OpPrimitives;
|
||||
use reth_optimism_rpc::{
|
||||
witness::{DebugExecutionWitnessApiServer, OpDebugWitnessApi},
|
||||
OpEthApi,
|
||||
};
|
||||
use reth_payload_builder::{PayloadBuilderHandle, PayloadBuilderService};
|
||||
use reth_primitives::{Block, BlockBody, Receipt, TransactionSigned, TxType};
|
||||
use reth_primitives::BlockBody;
|
||||
use reth_provider::{
|
||||
providers::ChainStorage, BlockBodyWriter, CanonStateSubscriptions, DBProvider, EthStorage,
|
||||
ProviderResult,
|
||||
@ -49,16 +49,6 @@ use crate::{
|
||||
txpool::{OpTransactionPool, OpTransactionValidator},
|
||||
OpEngineTypes,
|
||||
};
|
||||
/// Optimism primitive types.
|
||||
#[derive(Debug, Default, Clone, PartialEq, Eq)]
|
||||
pub struct OpPrimitives;
|
||||
|
||||
impl FullNodePrimitives for OpPrimitives {
|
||||
type Block = Block;
|
||||
type SignedTx = TransactionSigned;
|
||||
type TxType = TxType;
|
||||
type Receipt = Receipt;
|
||||
}
|
||||
|
||||
/// Storage implementation for Optimism.
|
||||
#[derive(Debug, Default, Clone)]
|
||||
|
||||
Reference in New Issue
Block a user