diff --git a/Cargo.lock b/Cargo.lock index 7f4b8d4ee9e..42b7c953bed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7145,6 +7145,7 @@ dependencies = [ name = "reth-eth-wire-types" version = "1.0.0" dependencies = [ + "alloy-chains", "alloy-genesis", "alloy-rlp", "arbitrary", diff --git a/crates/net/eth-wire-types/Cargo.toml b/crates/net/eth-wire-types/Cargo.toml index 242a7324367..0ee31a8b667 100644 --- a/crates/net/eth-wire-types/Cargo.toml +++ b/crates/net/eth-wire-types/Cargo.toml @@ -16,6 +16,9 @@ workspace = true reth-chainspec.workspace = true reth-codecs-derive.workspace = true reth-primitives.workspace = true + +# ethereum +alloy-chains = { workspace = true, features = ["rlp"] } alloy-rlp = { workspace = true, features = ["derive"] } alloy-genesis.workspace = true @@ -31,7 +34,7 @@ proptest-arbitrary-interop = { workspace = true, optional = true } [dev-dependencies] reth-primitives = { workspace = true, features = ["arbitrary"] } - +alloy-chains = { workspace = true, features = ["arbitrary"] } arbitrary = { workspace = true, features = ["derive"] } proptest.workspace = true proptest-arbitrary-interop.workspace = true @@ -42,6 +45,7 @@ rand.workspace = true default = ["serde"] arbitrary = [ "reth-primitives/arbitrary", + "alloy-chains/arbitrary", "dep:arbitrary", "dep:proptest", "dep:proptest-arbitrary-interop", diff --git a/crates/net/eth-wire-types/src/status.rs b/crates/net/eth-wire-types/src/status.rs index 873af22274b..85d09dcd592 100644 --- a/crates/net/eth-wire-types/src/status.rs +++ b/crates/net/eth-wire-types/src/status.rs @@ -1,7 +1,8 @@ use crate::EthVersion; +use alloy_chains::{Chain, NamedChain}; use alloy_genesis::Genesis; use alloy_rlp::{RlpDecodable, RlpEncodable}; -use reth_chainspec::{Chain, ChainSpec, NamedChain, MAINNET}; +use reth_chainspec::{ChainSpec, MAINNET}; use reth_codecs_derive::derive_arbitrary; use reth_primitives::{hex, EthereumHardfork, ForkId, Head, B256, U256}; #[cfg(feature = "serde")] diff --git a/crates/net/eth-wire/Cargo.toml b/crates/net/eth-wire/Cargo.toml index 120512af101..c27bb664fec 100644 --- a/crates/net/eth-wire/Cargo.toml +++ b/crates/net/eth-wire/Cargo.toml @@ -63,6 +63,7 @@ async-stream.workspace = true default = ["serde"] arbitrary = [ "reth-primitives/arbitrary", + "reth-eth-wire-types/arbitrary", "dep:arbitrary", ] optimism = ["reth-primitives/optimism"]