mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: replace reth-chainspec dep with alloy chains (#12550)
This commit is contained in:
@ -13,7 +13,6 @@ workspace = true
|
||||
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-chainspec.workspace = true
|
||||
reth-codecs.workspace = true
|
||||
reth-primitives.workspace = true
|
||||
reth-ecies.workspace = true
|
||||
@ -23,6 +22,7 @@ reth-network-peers.workspace = true
|
||||
|
||||
# ethereum
|
||||
alloy-primitives.workspace = true
|
||||
alloy-chains.workspace = true
|
||||
|
||||
# metrics
|
||||
reth-metrics.workspace = true
|
||||
@ -69,10 +69,10 @@ arbitrary = [
|
||||
"reth-primitives/arbitrary",
|
||||
"reth-eth-wire-types/arbitrary",
|
||||
"dep:arbitrary",
|
||||
"reth-chainspec/arbitrary",
|
||||
"alloy-eips/arbitrary",
|
||||
"alloy-primitives/arbitrary",
|
||||
"reth-codecs/arbitrary"
|
||||
"reth-codecs/arbitrary",
|
||||
"alloy-chains/arbitrary"
|
||||
]
|
||||
serde = [
|
||||
"dep:serde",
|
||||
@ -82,7 +82,8 @@ serde = [
|
||||
"bytes/serde",
|
||||
"rand/serde",
|
||||
"secp256k1/serde",
|
||||
"reth-codecs/serde"
|
||||
"reth-codecs/serde",
|
||||
"alloy-chains/serde"
|
||||
]
|
||||
|
||||
[[test]]
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
use crate::{
|
||||
errors::P2PStreamError, message::MessageError, version::ParseVersionError, DisconnectReason,
|
||||
};
|
||||
use alloy_chains::Chain;
|
||||
use alloy_primitives::B256;
|
||||
use reth_chainspec::Chain;
|
||||
use reth_eth_wire_types::EthVersion;
|
||||
use reth_primitives::{GotExpected, GotExpectedBoxed, ValidationError};
|
||||
use std::io;
|
||||
|
||||
@ -365,9 +365,9 @@ mod tests {
|
||||
EthMessage, EthStream, EthVersion, HelloMessageWithProtocols, PassthroughCodec,
|
||||
ProtocolVersion, Status,
|
||||
};
|
||||
use alloy_chains::NamedChain;
|
||||
use alloy_primitives::{B256, U256};
|
||||
use futures::{SinkExt, StreamExt};
|
||||
use reth_chainspec::NamedChain;
|
||||
use reth_ecies::stream::ECIESStream;
|
||||
use reth_eth_wire_types::EthNetworkPrimitives;
|
||||
use reth_network_peers::pk2id;
|
||||
|
||||
@ -6,8 +6,8 @@ use crate::{
|
||||
hello::DEFAULT_TCP_PORT, EthVersion, HelloMessageWithProtocols, P2PStream, ProtocolVersion,
|
||||
Status, UnauthedP2PStream,
|
||||
};
|
||||
use alloy_chains::Chain;
|
||||
use alloy_primitives::{B256, U256};
|
||||
use reth_chainspec::Chain;
|
||||
use reth_network_peers::pk2id;
|
||||
use reth_primitives::{ForkFilter, Head};
|
||||
use secp256k1::{SecretKey, SECP256K1};
|
||||
|
||||
Reference in New Issue
Block a user