From fa72dbd7bc1126d06ded2caaa35d190b4e5ecb55 Mon Sep 17 00:00:00 2001 From: Alexis Asseman Date: Mon, 1 May 2023 13:47:19 -0700 Subject: [PATCH] Refactor(aggregator): remove useless dependencies Signed-off-by: Alexis Asseman --- tap_aggregator/Cargo.toml | 3 --- tap_aggregator/src/aggregator.rs | 2 +- tap_aggregator/src/main.rs | 2 +- tap_aggregator/src/server.rs | 4 ++-- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/tap_aggregator/Cargo.toml b/tap_aggregator/Cargo.toml index b0619814..7761c9bc 100644 --- a/tap_aggregator/Cargo.toml +++ b/tap_aggregator/Cargo.toml @@ -14,11 +14,8 @@ path = "src/main.rs" anyhow = "1.0.70" tokio = { version = "1.27.0", features = ["macros", "signal"] } tap_core = { path = "../tap_core" } -ethereum-types = "0.14.1" jsonrpsee = { version = "0.18.0", features = ["server", "macros"] } -k256 = { version = "0.13.1", features = ["ecdsa", "serde"] } ethers-signers = "2.0.3" -coins-bip39 = { version = "0.8.6", default-features = false, features = ["english"] } clap = { version = "4.2.4", features = ["derive", "env"] } ethers-core = "2.0.3" diff --git a/tap_aggregator/src/aggregator.rs b/tap_aggregator/src/aggregator.rs index c0a62af2..eaa93be3 100644 --- a/tap_aggregator/src/aggregator.rs +++ b/tap_aggregator/src/aggregator.rs @@ -125,8 +125,8 @@ fn check_receipt_timestamps( #[cfg(test)] mod tests { use crate::aggregator; - use coins_bip39::English; use ethers_core::types::Address; + use ethers_signers::coins_bip39::English; use ethers_signers::LocalWallet; use ethers_signers::MnemonicBuilder; use ethers_signers::Signer; diff --git a/tap_aggregator/src/main.rs b/tap_aggregator/src/main.rs index 5a7712c2..0cadc39d 100644 --- a/tap_aggregator/src/main.rs +++ b/tap_aggregator/src/main.rs @@ -1,6 +1,6 @@ use anyhow::Result; use clap::Parser; -use coins_bip39::English; +use ethers_signers::coins_bip39::English; use ethers_signers::MnemonicBuilder; use tokio::signal::unix::{signal, SignalKind}; diff --git a/tap_aggregator/src/server.rs b/tap_aggregator/src/server.rs index 9a84936c..c3fd14c3 100644 --- a/tap_aggregator/src/server.rs +++ b/tap_aggregator/src/server.rs @@ -73,8 +73,8 @@ pub async fn run_server( #[cfg(test)] mod tests { use crate::server; - use coins_bip39::English; - use ethereum_types::Address; + use ethers_core::types::Address; + use ethers_signers::coins_bip39::English; use ethers_signers::LocalWallet; use ethers_signers::MnemonicBuilder; use ethers_signers::Signer;