chore: rm unused mods (#9602)

This commit is contained in:
Matthias Seitz
2024-07-18 12:19:59 +02:00
committed by GitHub
parent 85b65db14e
commit 0585bb28a1
3 changed files with 4 additions and 20 deletions

View File

@@ -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::*;

View File

@@ -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,
}

View File

@@ -1,4 +0,0 @@
use alloy_primitives::B512;
/// Alias for a peer identifier
pub type PeerId = B512;