diff --git a/crates/rpc/rpc-types/src/lib.rs b/crates/rpc/rpc-types/src/lib.rs index 6a73c740213a..47c10e881579 100644 --- a/crates/rpc/rpc-types/src/lib.rs +++ b/crates/rpc/rpc-types/src/lib.rs @@ -11,8 +11,11 @@ #![cfg_attr(not(test), warn(unused_crate_dependencies))] #[allow(hidden_glob_reexports)] mod eth; -mod peer; +/// Alias for a peer identifier +pub type PeerId = B512; + +use alloy_primitives::B512; // re-export for convenience pub use alloy_rpc_types::serde_helpers; @@ -51,5 +54,3 @@ pub use eth::{ error::ToRpcError, transaction::{self, TransactionRequest, TypedTransactionRequest}, }; - -pub use peer::*; diff --git a/crates/rpc/rpc-types/src/net.rs b/crates/rpc/rpc-types/src/net.rs deleted file mode 100644 index eb77ac7922d4..000000000000 --- a/crates/rpc/rpc-types/src/net.rs +++ /dev/null @@ -1,13 +0,0 @@ -use alloy_rpc_types_admin::EthProtocolInfo; -use serde::{Deserialize, Serialize}; - -/// The status of the network being ran by the local node. -#[derive(Clone, Debug, Serialize, Deserialize)] -pub struct NetworkStatus { - /// The local node client version. - pub client_version: String, - /// The current ethereum protocol version - pub protocol_version: u64, - /// Information about the Ethereum Wire Protocol. - pub eth_protocol_info: EthProtocolInfo, -} diff --git a/crates/rpc/rpc-types/src/peer.rs b/crates/rpc/rpc-types/src/peer.rs deleted file mode 100644 index a07e61d00285..000000000000 --- a/crates/rpc/rpc-types/src/peer.rs +++ /dev/null @@ -1,4 +0,0 @@ -use alloy_primitives::B512; - -/// Alias for a peer identifier -pub type PeerId = B512;