Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move sys main to bin/ and rename #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions src/main.rs → src/bin/sys.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
mod amount;
mod db;
mod field_as_string;
mod get_transaction_balance_change;
mod rpc_client_utils;

use {
crate::{amount::Amount, get_transaction_balance_change::*},
chrono::prelude::*,
chrono_humanize::HumanTime,
clap::{
Expand Down Expand Up @@ -44,7 +37,9 @@ use {
time::Duration,
},
sys::{
amount::Amount,
exchange::{self, *},
get_transaction_balance_change::*,
metrics::{self, dp, MetricsConfig},
notifier::*,
priority_fee::{apply_priority_fee, PriorityFee},
Expand Down
3 changes: 1 addition & 2 deletions src/db.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use {
crate::{field_as_string, metrics::MetricsConfig},
crate::{exchange::*, field_as_string, metrics::MetricsConfig, token::*},
chrono::{prelude::*, NaiveDate},
pickledb::{PickleDb, PickleDbDumpPolicy},
rust_decimal::prelude::*,
Expand All @@ -17,7 +17,6 @@ use {
time::{SystemTime, UNIX_EPOCH},
},
strum::{EnumString, IntoStaticStr},
sys::{exchange::*, token::*},
thiserror::Error,
};

Expand Down
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,20 @@ use {
},
};

pub mod amount;
pub mod binance_exchange;
pub mod coin_gecko;
pub mod coinbase_exchange;
pub mod db;
pub mod exchange;
pub mod field_as_string;
pub mod get_transaction_balance_change;
pub mod helius_rpc;
pub mod kraken_exchange;
pub mod metrics;
pub mod notifier;
pub mod priority_fee;
pub mod rpc_client_utils;
pub mod token;
pub mod vendor;

Expand Down
Loading