Skip to content

Commit 3996dff

Browse files
dmakarovmvines
authored andcommitted
Move sys main to bin/ and rename
1 parent f2f0cda commit 3996dff

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

src/main.rs src/bin/sys.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
mod amount;
2-
mod db;
3-
mod field_as_string;
4-
mod get_transaction_balance_change;
5-
mod rpc_client_utils;
6-
71
use {
8-
crate::{amount::Amount, get_transaction_balance_change::*},
92
chrono::prelude::*,
103
chrono_humanize::HumanTime,
114
clap::{
@@ -44,7 +37,9 @@ use {
4437
time::Duration,
4538
},
4639
sys::{
40+
amount::Amount,
4741
exchange::{self, *},
42+
get_transaction_balance_change::*,
4843
metrics::{self, dp, MetricsConfig},
4944
notifier::*,
5045
priority_fee::{apply_priority_fee, PriorityFee},

src/db.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use {
2-
crate::{field_as_string, metrics::MetricsConfig},
2+
crate::{exchange::*, field_as_string, metrics::MetricsConfig, token::*},
33
chrono::{prelude::*, NaiveDate},
44
pickledb::{PickleDb, PickleDbDumpPolicy},
55
rust_decimal::prelude::*,
@@ -17,7 +17,6 @@ use {
1717
time::{SystemTime, UNIX_EPOCH},
1818
},
1919
strum::{EnumString, IntoStaticStr},
20-
sys::{exchange::*, token::*},
2120
thiserror::Error,
2221
};
2322

src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,20 @@ use {
1111
},
1212
};
1313

14+
pub mod amount;
1415
pub mod binance_exchange;
1516
pub mod coin_gecko;
1617
pub mod coinbase_exchange;
18+
pub mod db;
1719
pub mod exchange;
20+
pub mod field_as_string;
21+
pub mod get_transaction_balance_change;
1822
pub mod helius_rpc;
1923
pub mod kraken_exchange;
2024
pub mod metrics;
2125
pub mod notifier;
2226
pub mod priority_fee;
27+
pub mod rpc_client_utils;
2328
pub mod token;
2429
pub mod vendor;
2530

0 commit comments

Comments
 (0)