diff --git a/crates/node/builder/src/launch/mod.rs b/crates/node/builder/src/launch/mod.rs
index 9c7d562d1..db98fface 100644
--- a/crates/node/builder/src/launch/mod.rs
+++ b/crates/node/builder/src/launch/mod.rs
@@ -11,6 +11,7 @@ pub use exex::ExExLauncher;
use std::{future::Future, sync::Arc};
+use alloy_primitives::utils::format_ether;
use alloy_rpc_types::engine::ClientVersionV1;
use futures::{future::Either, stream, stream_select, StreamExt};
use reth_beacon_consensus::{
@@ -33,7 +34,6 @@ use reth_node_core::{
version::{CARGO_PKG_VERSION, CLIENT_CODE, NAME_CLIENT, VERGEN_GIT_SHA},
};
use reth_node_events::{cl::ConsensusLayerHealthEvents, node};
-use reth_primitives::format_ether;
use reth_provider::providers::BlockchainProvider;
use reth_rpc_engine_api::{capabilities::EngineCapabilities, EngineApi};
use reth_tasks::TaskExecutor;
diff --git a/crates/primitives/benches/recover_ecdsa_crit.rs b/crates/primitives/benches/recover_ecdsa_crit.rs
index e1e896dbb..8e8e279b2 100644
--- a/crates/primitives/benches/recover_ecdsa_crit.rs
+++ b/crates/primitives/benches/recover_ecdsa_crit.rs
@@ -1,8 +1,9 @@
#![allow(missing_docs)]
+use alloy_primitives::hex_literal::hex;
use alloy_rlp::Decodable;
use criterion::{criterion_group, criterion_main, Criterion};
use pprof::criterion::{Output, PProfProfiler};
-use reth_primitives::{hex_literal::hex, TransactionSigned};
+use reth_primitives::TransactionSigned;
/// Benchmarks the recovery of the public key from the ECDSA message using criterion.
pub fn criterion_benchmark(c: &mut Criterion) {
diff --git a/crates/primitives/src/block.rs b/crates/primitives/src/block.rs
index a5357fcec..78a98f78a 100644
--- a/crates/primitives/src/block.rs
+++ b/crates/primitives/src/block.rs
@@ -709,8 +709,8 @@ impl<'a> arbitrary::Arbitrary<'a> for BlockBody {
#[cfg(test)]
mod tests {
use super::{BlockNumberOrTag::*, *};
- use crate::hex_literal::hex;
use alloy_eips::eip1898::HexStringMissingPrefixError;
+ use alloy_primitives::hex_literal::hex;
use alloy_rlp::{Decodable, Encodable};
use std::str::FromStr;
diff --git a/crates/primitives/src/lib.rs b/crates/primitives/src/lib.rs
index b0564ed07..778230f5f 100644
--- a/crates/primitives/src/lib.rs
+++ b/crates/primitives/src/lib.rs
@@ -72,9 +72,7 @@ pub use transaction::{
pub use alloy_primitives::{
self, address, b256, bloom, bytes,
bytes::{Buf, BufMut, BytesMut},
- hex, hex_literal, ruint,
- utils::format_ether,
- Bytes, StorageValue, TxHash, TxIndex, TxNumber, B128, B256, B512, B64, U128, U256, U64,
+ hex, Bytes, TxHash, B256, U256, U64,
};
pub use reth_ethereum_forks::*;
pub use revm_primitives::{self, JumpTable};
diff --git a/crates/primitives/src/proofs.rs b/crates/primitives/src/proofs.rs
index 040ec3655..454524081 100644
--- a/crates/primitives/src/proofs.rs
+++ b/crates/primitives/src/proofs.rs
@@ -65,9 +65,9 @@ pub fn calculate_ommers_root(ommers: &[Header]) -> B256 {
#[cfg(test)]
mod tests {
use super::*;
- use crate::{constants::EMPTY_ROOT_HASH, hex_literal::hex, Block, U256};
+ use crate::{constants::EMPTY_ROOT_HASH, Block, U256};
use alloy_genesis::GenesisAccount;
- use alloy_primitives::{b256, Address};
+ use alloy_primitives::{b256, hex_literal::hex, Address};
use alloy_rlp::Decodable;
use reth_chainspec::{HOLESKY, MAINNET, SEPOLIA};
use reth_trie_common::root::{state_root_ref_unhashed, state_root_unhashed};
diff --git a/crates/primitives/src/receipt.rs b/crates/primitives/src/receipt.rs
index 6b43e77e9..0b32e0899 100644
--- a/crates/primitives/src/receipt.rs
+++ b/crates/primitives/src/receipt.rs
@@ -501,8 +501,7 @@ impl<'a> Encodable for ReceiptWithBloomEncoder<'a> {
#[cfg(test)]
mod tests {
use super::*;
- use crate::hex_literal::hex;
- use alloy_primitives::{address, b256, bytes};
+ use alloy_primitives::{address, b256, bytes, hex_literal::hex};
// Test vector from: https://eips.ethereum.org/EIPS/eip-2481
#[test]
diff --git a/crates/primitives/src/transaction/mod.rs b/crates/primitives/src/transaction/mod.rs
index 8e2f2977d..d7ab9a22b 100644
--- a/crates/primitives/src/transaction/mod.rs
+++ b/crates/primitives/src/transaction/mod.rs
@@ -1921,7 +1921,7 @@ mod tests {
#[test]
fn decode_raw_tx_and_recover_signer() {
- use crate::hex_literal::hex;
+ use alloy_primitives::hex_literal::hex;
// transaction is from ropsten
let hash: B256 =
diff --git a/crates/primitives/src/transaction/tx_type.rs b/crates/primitives/src/transaction/tx_type.rs
index 4017d8d4b..14ac420e0 100644
--- a/crates/primitives/src/transaction/tx_type.rs
+++ b/crates/primitives/src/transaction/tx_type.rs
@@ -1,5 +1,4 @@
-use crate::U64;
-use alloy_primitives::U8;
+use alloy_primitives::{U64, U8};
use alloy_rlp::{Decodable, Encodable};
use serde::{Deserialize, Serialize};
diff --git a/crates/revm/src/test_utils.rs b/crates/revm/src/test_utils.rs
index bbb456873..3f89d9912 100644
--- a/crates/revm/src/test_utils.rs
+++ b/crates/revm/src/test_utils.rs
@@ -136,7 +136,7 @@ impl StateProvider for StateProviderTest {
&self,
account: Address,
storage_key: StorageKey,
- ) -> ProviderResult