Skip to content

Commit 891e5a5

Browse files
Move the poller files to a separate folder in src
1 parent 75a88de commit 891e5a5

File tree

5 files changed

+50
-44
lines changed

5 files changed

+50
-44
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
pub mod config;
22
pub mod db;
3-
pub mod payments;
3+
pub mod poller;
44
pub mod server;

aggregation_mode/batcher/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::env;
22

33
use agg_mode_batcher::config::Config;
4-
use agg_mode_batcher::payments::PaymentsPoller;
4+
use agg_mode_batcher::poller::payments::PaymentsPoller;
55
use agg_mode_batcher::{db::Db, server::http::BatcherServer};
66
use tracing_subscriber::{EnvFilter, FmtSubscriber};
77

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pub mod payments;
2+
mod types;

aggregation_mode/batcher/src/payments.rs renamed to aggregation_mode/batcher/src/poller/payments.rs

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -4,51 +4,12 @@ use crate::{config::Config, db::Db};
44
use alloy::{
55
primitives::Address,
66
providers::{Provider, ProviderBuilder},
7-
sol,
87
};
98
use sqlx::types::BigDecimal;
109

11-
sol!(
12-
#[sol(rpc)]
13-
AggregationModePaymentService,
14-
"abi/AggregationModePaymentService.json"
15-
);
16-
17-
type AggregationModePaymentServiceContract =
18-
AggregationModePaymentService::AggregationModePaymentServiceInstance<
19-
alloy::providers::fillers::FillProvider<
20-
alloy::providers::fillers::JoinFill<
21-
alloy::providers::Identity,
22-
alloy::providers::fillers::JoinFill<
23-
alloy::providers::fillers::GasFiller,
24-
alloy::providers::fillers::JoinFill<
25-
alloy::providers::fillers::BlobGasFiller,
26-
alloy::providers::fillers::JoinFill<
27-
alloy::providers::fillers::NonceFiller,
28-
alloy::providers::fillers::ChainIdFiller,
29-
>,
30-
>,
31-
>,
32-
>,
33-
alloy::providers::RootProvider,
34-
>,
35-
>;
36-
type RpcProvider = alloy::providers::fillers::FillProvider<
37-
alloy::providers::fillers::JoinFill<
38-
alloy::providers::Identity,
39-
alloy::providers::fillers::JoinFill<
40-
alloy::providers::fillers::GasFiller,
41-
alloy::providers::fillers::JoinFill<
42-
alloy::providers::fillers::BlobGasFiller,
43-
alloy::providers::fillers::JoinFill<
44-
alloy::providers::fillers::NonceFiller,
45-
alloy::providers::fillers::ChainIdFiller,
46-
>,
47-
>,
48-
>,
49-
>,
50-
alloy::providers::RootProvider,
51-
>;
10+
use crate::poller::types::{
11+
AggregationModePaymentService, AggregationModePaymentServiceContract, RpcProvider,
12+
};
5213

5314
pub struct PaymentsPoller {
5415
db: Db,
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
use alloy::sol;
2+
3+
sol!(
4+
#[sol(rpc)]
5+
AggregationModePaymentService,
6+
"abi/AggregationModePaymentService.json"
7+
);
8+
9+
pub(crate) type AggregationModePaymentServiceContract =
10+
AggregationModePaymentService::AggregationModePaymentServiceInstance<
11+
alloy::providers::fillers::FillProvider<
12+
alloy::providers::fillers::JoinFill<
13+
alloy::providers::Identity,
14+
alloy::providers::fillers::JoinFill<
15+
alloy::providers::fillers::GasFiller,
16+
alloy::providers::fillers::JoinFill<
17+
alloy::providers::fillers::BlobGasFiller,
18+
alloy::providers::fillers::JoinFill<
19+
alloy::providers::fillers::NonceFiller,
20+
alloy::providers::fillers::ChainIdFiller,
21+
>,
22+
>,
23+
>,
24+
>,
25+
alloy::providers::RootProvider,
26+
>,
27+
>;
28+
pub(crate) type RpcProvider = alloy::providers::fillers::FillProvider<
29+
alloy::providers::fillers::JoinFill<
30+
alloy::providers::Identity,
31+
alloy::providers::fillers::JoinFill<
32+
alloy::providers::fillers::GasFiller,
33+
alloy::providers::fillers::JoinFill<
34+
alloy::providers::fillers::BlobGasFiller,
35+
alloy::providers::fillers::JoinFill<
36+
alloy::providers::fillers::NonceFiller,
37+
alloy::providers::fillers::ChainIdFiller,
38+
>,
39+
>,
40+
>,
41+
>,
42+
alloy::providers::RootProvider,
43+
>;

0 commit comments

Comments
 (0)