chore: remove reth-primitives dependency from reth-node-ethereum tests (#8898)

This commit is contained in:
joshieDo
2024-06-17 19:38:33 +02:00
committed by GitHub
parent 8182d2e632
commit 20102ee4aa
6 changed files with 10 additions and 6 deletions

3
Cargo.lock generated
View File

@ -7508,6 +7508,8 @@ dependencies = [
name = "reth-node-ethereum" name = "reth-node-ethereum"
version = "1.0.0-rc.1" version = "1.0.0-rc.1"
dependencies = [ dependencies = [
"alloy-genesis",
"alloy-primitives",
"eyre", "eyre",
"futures", "futures",
"futures-util", "futures-util",
@ -7528,7 +7530,6 @@ dependencies = [
"reth-node-builder", "reth-node-builder",
"reth-node-core", "reth-node-core",
"reth-payload-builder", "reth-payload-builder",
"reth-primitives",
"reth-provider", "reth-provider",
"reth-tracing", "reth-tracing",
"reth-transaction-pool", "reth-transaction-pool",

View File

@ -36,8 +36,9 @@ reth-db.workspace = true
reth-exex.workspace = true reth-exex.workspace = true
reth-node-api.workspace = true reth-node-api.workspace = true
reth-node-core.workspace = true reth-node-core.workspace = true
reth-primitives.workspace = true
reth-e2e-test-utils.workspace = true reth-e2e-test-utils.workspace = true
alloy-primitives.workspace = true
alloy-genesis.workspace = true
futures.workspace = true futures.workspace = true
tokio.workspace = true tokio.workspace = true
futures-util.workspace = true futures-util.workspace = true

View File

@ -1,5 +1,7 @@
use std::sync::Arc; use std::sync::Arc;
use alloy_genesis::Genesis;
use alloy_primitives::b256;
use reth::{ use reth::{
args::RpcServerArgs, args::RpcServerArgs,
builder::{NodeBuilder, NodeConfig, NodeHandle}, builder::{NodeBuilder, NodeConfig, NodeHandle},
@ -11,7 +13,6 @@ use reth_e2e_test_utils::{
node::NodeTestContext, transaction::TransactionTestContext, wallet::Wallet, node::NodeTestContext, transaction::TransactionTestContext, wallet::Wallet,
}; };
use reth_node_ethereum::EthereumNode; use reth_node_ethereum::EthereumNode;
use reth_primitives::{b256, Genesis};
use reth_transaction_pool::TransactionPool; use reth_transaction_pool::TransactionPool;
use crate::utils::eth_payload_attributes; use crate::utils::eth_payload_attributes;

View File

@ -1,9 +1,10 @@
use crate::utils::EthNode; use crate::utils::EthNode;
use alloy_genesis::Genesis;
use alloy_primitives::{b256, hex};
use futures::StreamExt; use futures::StreamExt;
use reth::rpc::eth::EthTransactions; use reth::rpc::eth::EthTransactions;
use reth_chainspec::ChainSpec; use reth_chainspec::ChainSpec;
use reth_e2e_test_utils::setup; use reth_e2e_test_utils::setup;
use reth_primitives::{b256, hex, Genesis};
use reth_provider::CanonStateSubscriptions; use reth_provider::CanonStateSubscriptions;
use std::sync::Arc; use std::sync::Arc;

View File

@ -1,4 +1,5 @@
use crate::utils::eth_payload_attributes; use crate::utils::eth_payload_attributes;
use alloy_genesis::Genesis;
use reth::{ use reth::{
args::RpcServerArgs, args::RpcServerArgs,
builder::{NodeBuilder, NodeConfig, NodeHandle}, builder::{NodeBuilder, NodeConfig, NodeHandle},
@ -9,7 +10,6 @@ use reth_e2e_test_utils::{
node::NodeTestContext, setup, transaction::TransactionTestContext, wallet::Wallet, node::NodeTestContext, setup, transaction::TransactionTestContext, wallet::Wallet,
}; };
use reth_node_ethereum::EthereumNode; use reth_node_ethereum::EthereumNode;
use reth_primitives::Genesis;
use std::sync::Arc; use std::sync::Arc;
#[tokio::test] #[tokio::test]

View File

@ -1,8 +1,8 @@
use alloy_primitives::{Address, B256};
use reth::rpc::types::engine::PayloadAttributes; use reth::rpc::types::engine::PayloadAttributes;
use reth_e2e_test_utils::NodeHelperType; use reth_e2e_test_utils::NodeHelperType;
use reth_node_ethereum::EthereumNode; use reth_node_ethereum::EthereumNode;
use reth_payload_builder::EthPayloadBuilderAttributes; use reth_payload_builder::EthPayloadBuilderAttributes;
use reth_primitives::{Address, B256};
/// Ethereum Node Helper type /// Ethereum Node Helper type
pub(crate) type EthNode = NodeHelperType<EthereumNode>; pub(crate) type EthNode = NodeHelperType<EthereumNode>;