diff --git a/Cargo.toml b/Cargo.toml index 6f5bbc2d..d1b5453e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,9 +11,10 @@ axum-middleware = { path = "crates/axum-middleware" } clap = { version = "4.4.7", features = ["derive"] } common = { path = "crates/common" } ethers = { version = "2.0.10", features = ["abigen", "ws", "ipc", "rustls", "openssl"] } -ethers-throttle = { path = "crates/ethers-throttle"} +ethers-throttle = { path = "crates/ethers-throttle" } eyre = "0.6.8" futures = "0.3.28" +governor = "0.6.0" hex = "0.4.3" hyper = { version = "^0.14.27", features = ["server", "tcp", "http1", "http2"] } metrics = "0.21.1" @@ -29,10 +30,8 @@ thiserror = "1.0.49" tokio = { version = "1.32.0", features = ["sync", "macros"] } toml = "0.8.8" tracing = "0.1.37" -governor = "0.6.0" url = "2.4.1" - [dev-dependencies] reqwest = { version = "0.11.22", features = ["json"] } diff --git a/src/tree/block_scanner.rs b/src/tree/block_scanner.rs index 3ce31864..a2d2e100 100644 --- a/src/tree/block_scanner.rs +++ b/src/tree/block_scanner.rs @@ -1,10 +1,7 @@ use std::sync::atomic::{AtomicU64, Ordering}; use ethers::providers::Middleware; -use ethers::types::{ - Address, BlockNumber, Filter, FilterBlockOption, Log, Topic, ValueOrArray, - H160, -}; +use ethers::types::{BlockNumber, Filter, Log}; /// The `BlockScanner` utility tool enables allows parsing arbitrary onchain events pub struct BlockScanner { diff --git a/src/tree/tree_updater.rs b/src/tree/tree_updater.rs index 5f425296..14b9c053 100644 --- a/src/tree/tree_updater.rs +++ b/src/tree/tree_updater.rs @@ -1,6 +1,5 @@ -use std::sync::atomic::{AtomicU64, Ordering}; +use std::sync::atomic::AtomicU64; use std::sync::Arc; -use std::time::Duration; use ethers::abi::AbiDecode; use ethers::contract::{EthCall, EthEvent};