Skip to content

Commit 77ba43a

Browse files
committed
fix imports
1 parent 5ceec73 commit 77ba43a

File tree

4 files changed

+17
-54
lines changed

4 files changed

+17
-54
lines changed

apps/fortuna/src/keeper.rs

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
use {
22
crate::{
3-
api::{self, BlockchainState, ChainId},
4-
chain::{
5-
ethereum::{
6-
InstrumentedPythContract, InstrumentedSignablePythContract, PythContractCall,
7-
},
8-
reader::{BlockNumber, RequestedWithCallbackEvent},
9-
},
10-
config::EscalationPolicyConfig,
3+
api::{BlockchainState, ChainId},
4+
chain::ethereum::{InstrumentedPythContract, InstrumentedSignablePythContract},
115
config::EthereumConfig,
12-
eth_utils::traced_client::{RpcMetrics, TracedClient},
6+
eth_utils::traced_client::RpcMetrics,
137
keeper::block::{
148
get_latest_safe_block, process_backlog, process_new_blocks, watch_blocks_wrapper,
159
BlockRange,
@@ -20,23 +14,13 @@ use {
2014
keeper::track::track_balance,
2115
keeper::track::track_provider,
2216
},
23-
anyhow::{anyhow, Result},
24-
backoff::ExponentialBackoff,
25-
ethers::{
26-
providers::{Middleware, Provider, Ws},
27-
signers::Signer,
28-
types::{Address, U256},
29-
},
30-
futures::StreamExt,
17+
ethers::{signers::Signer, types::U256},
3118
keeper_metrics::{AccountLabel, KeeperMetrics},
32-
std::{
33-
collections::HashSet,
34-
sync::{atomic::AtomicU64, Arc},
35-
},
19+
std::{collections::HashSet, sync::Arc},
3620
tokio::{
3721
spawn,
3822
sync::{mpsc, RwLock},
39-
time::{self, timeout, Duration},
23+
time::{self, Duration},
4024
},
4125
tracing::{self, Instrument},
4226
};

apps/fortuna/src/keeper/block.rs

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,22 @@
11
use {
22
crate::{
3-
api::{self, BlockchainState, ChainId},
4-
chain::{
5-
ethereum::{
6-
InstrumentedPythContract, InstrumentedSignablePythContract, PythContractCall,
7-
},
8-
reader::{BlockNumber, RequestedWithCallbackEvent},
9-
},
3+
api::{self, BlockchainState},
4+
chain::{ethereum::InstrumentedSignablePythContract, reader::BlockNumber},
105
config::EscalationPolicyConfig,
11-
config::EthereumConfig,
12-
eth_utils::traced_client::{RpcMetrics, TracedClient},
136
keeper::keeper_metrics::KeeperMetrics,
147
keeper::process_event::process_event_with_backoff,
158
},
169
anyhow::{anyhow, Result},
17-
backoff::ExponentialBackoff,
1810
ethers::{
1911
providers::{Middleware, Provider, Ws},
20-
signers::Signer,
21-
types::{Address, U256},
12+
types::U256,
2213
},
2314
futures::StreamExt,
24-
std::{
25-
collections::HashSet,
26-
sync::{atomic::AtomicU64, Arc},
27-
},
15+
std::{collections::HashSet, sync::Arc},
2816
tokio::{
2917
spawn,
3018
sync::{mpsc, RwLock},
31-
time::{self, timeout, Duration},
19+
time::{self, Duration},
3220
},
3321
tracing::{self, Instrument},
3422
};

apps/fortuna/src/keeper/fee.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
use {
22
crate::{
3-
api::BlockchainState,
4-
chain::ethereum::{InstrumentedSignablePythContract, PythContractCall},
5-
chain::utils::estimate_tx_cost,
6-
chain::utils::send_and_confirm,
7-
keeper::AccountLabel,
8-
keeper::ChainId,
9-
keeper::KeeperMetrics,
3+
api::BlockchainState, chain::ethereum::InstrumentedSignablePythContract,
4+
chain::utils::estimate_tx_cost, chain::utils::send_and_confirm, keeper::AccountLabel,
5+
keeper::ChainId, keeper::KeeperMetrics,
106
},
117
anyhow::{anyhow, Result},
128
ethers::{

apps/fortuna/src/keeper/process_event.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
use {
22
super::keeper_metrics::{AccountLabel, KeeperMetrics},
33
crate::{
4-
api::{self, BlockchainState},
5-
chain::utils::send_and_confirm,
6-
chain::{
7-
ethereum::{InstrumentedSignablePythContract, PythContractCall},
8-
reader::RequestedWithCallbackEvent,
9-
},
4+
api::BlockchainState,
5+
chain::{ethereum::InstrumentedSignablePythContract, reader::RequestedWithCallbackEvent},
106
config::EscalationPolicyConfig,
117
},
128
anyhow::{anyhow, Result},
139
backoff::ExponentialBackoff,
1410
ethers::middleware::Middleware,
1511
ethers::signers::Signer,
16-
ethers::signers::Wallet,
17-
ethers::types::{Address, U256},
12+
ethers::types::U256,
1813
std::sync::{atomic::AtomicU64, Arc},
1914
tokio::time::{timeout, Duration},
2015
tracing::{self, Instrument},

0 commit comments

Comments
 (0)