primitives: rm more alloy_primitives reexports (#11222)

This commit is contained in:
Thomas Coratger
2024-09-26 13:29:18 +02:00
committed by GitHub
parent edd8fe4648
commit f2a508df34
64 changed files with 146 additions and 104 deletions

View File

@ -18,6 +18,7 @@ reth-node-ethereum = { workspace = true, features = ["test-utils"] }
reth-tracing.workspace = true
alloy-genesis.workspace = true
alloy-rpc-types = { workspace = true, features = ["engine"] }
alloy-primitives.workspace = true
eyre.workspace = true
tokio.workspace = true

View File

@ -23,6 +23,7 @@ use serde::{Deserialize, Serialize};
use thiserror::Error;
use alloy_genesis::Genesis;
use alloy_primitives::Address;
use alloy_rpc_types::{
engine::{
ExecutionPayloadEnvelopeV2, ExecutionPayloadEnvelopeV3, ExecutionPayloadEnvelopeV4,
@ -63,7 +64,7 @@ use reth_payload_builder::{
EthBuiltPayload, EthPayloadBuilderAttributes, PayloadBuilderError, PayloadBuilderHandle,
PayloadBuilderService,
};
use reth_primitives::{Address, Withdrawals, B256};
use reth_primitives::{Withdrawals, B256};
use reth_tracing::{RethTracer, Tracer};
/// A custom payload attributes type.

View File

@ -15,6 +15,7 @@ reth-primitives.workspace = true
reth-node-ethereum = { workspace = true, features = ["test-utils"] }
reth-tracing.workspace = true
alloy-genesis.workspace = true
alloy-primitives.workspace = true
eyre.workspace = true
tokio.workspace = true

View File

@ -3,6 +3,7 @@
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
use alloy_genesis::Genesis;
use alloy_primitives::Address;
use reth::{
builder::{
components::{ExecutorBuilder, PayloadServiceBuilder},
@ -38,7 +39,7 @@ use reth_node_ethereum::{
};
use reth_primitives::{
revm_primitives::{CfgEnvWithHandlerCfg, TxEnv},
Address, Header, TransactionSigned, U256,
Header, TransactionSigned, U256,
};
use reth_tracing::{RethTracer, Tracer};
use std::sync::Arc;

View File

@ -12,3 +12,4 @@ reth-rpc-types.workspace = true
alloy-rpc-types.workspace = true
clap = { workspace = true, features = ["derive"] }
futures-util.workspace = true
alloy-primitives.workspace = true

View File

@ -10,6 +10,7 @@
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
use alloy_primitives::Address;
use alloy_rpc_types::state::EvmOverrides;
use clap::Parser;
use futures_util::StreamExt;
@ -17,7 +18,7 @@ use reth::{
args::utils::DefaultChainSpecParser,
builder::NodeHandle,
cli::Cli,
primitives::{Address, BlockNumberOrTag},
primitives::BlockNumberOrTag,
revm::{
inspector_handle_register,
interpreter::{Interpreter, OpCode},

View File

@ -16,6 +16,7 @@ reth-node-ethereum.workspace = true
reth-node-types.workspace = true
alloy-rpc-types.workspace = true
alloy-primitives.workspace = true
eyre.workspace = true

View File

@ -1,8 +1,9 @@
use alloy_primitives::Address;
use alloy_rpc_types::{Filter, FilteredParams};
use reth_chainspec::ChainSpecBuilder;
use reth_node_ethereum::EthereumNode;
use reth_node_types::NodeTypesWithDBAdapter;
use reth_primitives::{alloy_primitives::Sealable, Address, SealedHeader, B256};
use reth_primitives::{alloy_primitives::Sealable, SealedHeader, B256};
use reth_provider::{
providers::StaticFileProvider, AccountReader, BlockReader, BlockSource, HeaderProvider,
ProviderFactory, ReceiptProvider, StateProvider, TransactionsProvider,

View File

@ -14,6 +14,7 @@ reth-primitives.workspace = true
reth-node-ethereum = { workspace = true, features = ["test-utils"] }
reth-tracing.workspace = true
alloy-genesis.workspace = true
alloy-primitives.workspace = true
eyre.workspace = true
parking_lot.workspace = true

View File

@ -3,13 +3,14 @@
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
use alloy_genesis::Genesis;
use alloy_primitives::Address;
use parking_lot::RwLock;
use reth::{
api::NextBlockEnvAttributes,
builder::{components::ExecutorBuilder, BuilderContext, NodeBuilder},
primitives::{
revm_primitives::{BlockEnv, CfgEnvWithHandlerCfg, Env, PrecompileResult, TxEnv},
Address, Bytes, U256,
Bytes, U256,
},
revm::{
handler::register::EvmHandler,

View File

@ -11,3 +11,4 @@ reth-node-ethereum.workspace = true
alloy-rpc-types-trace.workspace = true
clap = { workspace = true, features = ["derive"] }
futures-util.workspace = true
alloy-primitives.workspace = true

View File

@ -10,11 +10,12 @@
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
use alloy_primitives::Address;
use alloy_rpc_types_trace::{parity::TraceType, tracerequest::TraceCallRequest};
use clap::Parser;
use futures_util::StreamExt;
use reth::{
args::utils::DefaultChainSpecParser, builder::NodeHandle, cli::Cli, primitives::Address,
args::utils::DefaultChainSpecParser, builder::NodeHandle, cli::Cli,
rpc::compat::transaction::transaction_to_call_request, transaction_pool::TransactionPool,
};
use reth_node_ethereum::node::EthereumNode;