chore: use reth-ethereum in example (#14409)

This commit is contained in:
Matthias Seitz
2025-02-12 09:56:15 +01:00
committed by GitHub
parent ea40f78e59
commit e9b99b0610
7 changed files with 36 additions and 37 deletions

View File

@ -33,6 +33,9 @@ reth-ethereum-consensus = { workspace = true, optional = true }
reth-evm-ethereum = { workspace = true, optional = true }
reth-node-ethereum = { workspace = true, optional = true }
# alloy
alloy-rpc-types-eth = { workspace = true, optional = true }
[features]
default = ["std"]
std = [
@ -41,6 +44,7 @@ std = [
"reth-primitives-traits/std",
"reth-consensus?/std",
"reth-consensus-common?/std",
"alloy-rpc-types-eth?/std",
]
arbitrary = [
"std",
@ -48,6 +52,7 @@ arbitrary = [
"reth-ethereum-primitives/arbitrary",
"reth-primitives-traits/arbitrary",
"reth-db?/arbitrary",
"alloy-rpc-types-eth?/arbitrary",
]
test-utils = [
@ -69,7 +74,7 @@ consensus = ["dep:reth-consensus", "dep:reth-consensus-common", "dep:reth-ethere
evm = ["dep:reth-evm", "dep:reth-evm-ethereum"]
node-api = ["dep:reth-node-api"]
node = ["provider", "consensus", "evm", "node-api", "dep:reth-node-ethereum", "rpc"]
rpc = ["dep:reth-rpc", "dep:reth-rpc-builder", "dep:reth-rpc-api", "dep:reth-rpc-eth-types"]
rpc = ["dep:reth-rpc", "dep:reth-rpc-builder", "dep:reth-rpc-api", "dep:reth-rpc-eth-types", "dep:alloy-rpc-types-eth"]
js-tracer = ["rpc", "reth-rpc/js-tracer"]
network = ["dep:reth-network"]
provider = ["storage-api", "dep:reth-provider", "dep:reth-db"]

View File

@ -87,6 +87,12 @@ pub mod rpc {
pub use reth_rpc_api as api;
#[doc(inline)]
pub use reth_rpc_builder as builder;
#[doc(inline)]
pub use reth_rpc_eth_types as eth;
/// Re-exported eth types
pub mod eth {
#[doc(inline)]
pub use alloy_rpc_types_eth as primitives;
#[doc(inline)]
pub use reth_rpc_eth_types::*;
}
}

View File

@ -1,10 +1,11 @@
//! Block header data primitive.
use crate::{InMemorySize, MaybeCompact, MaybeSerde, MaybeSerdeBincodeCompat};
use alloy_primitives::Sealable;
use core::{fmt, hash::Hash};
use alloy_primitives::Sealable;
use crate::{InMemorySize, MaybeCompact, MaybeSerde, MaybeSerdeBincodeCompat};
/// Re-exported alias
pub use alloy_consensus::BlockHeader as AlloyBlockHeader;
/// Helper trait that unifies all behaviour required by block header to support full node
/// operations.

View File

@ -95,7 +95,7 @@ pub use transaction::{
pub mod block;
pub use block::{
body::{BlockBody, FullBlockBody},
header::{BlockHeader, FullBlockHeader},
header::{AlloyBlockHeader, BlockHeader, FullBlockHeader},
Block, FullBlock, RecoveredBlock, SealedBlock,
};