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

Remove unused code #170

Merged
merged 1 commit into from
Jun 22, 2024
Merged
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
19 changes: 0 additions & 19 deletions crates/erc20_payment_lib/src/account_balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,6 @@ use web3::types::Address;
#[derive(Clone, StructOpt)]
#[structopt(about = "Payment statistics options")]
pub struct BalanceOptions2 {
#[structopt(short = "c", long = "chain-name", default_value = "mumbai")]
pub chain_name: String,

///list of accounts separated by comma
#[structopt(short = "a", long = "accounts")]
pub accounts: Option<String>,

#[structopt(long = "hide-gas")]
pub hide_gas: bool,

#[structopt(long = "hide-token")]
pub hide_token: bool,

#[structopt(long = "block-number")]
pub block_number: Option<u64>,

#[structopt(long = "tasks", default_value = "1")]
pub tasks: usize,

#[structopt(long = "interval")]
pub interval: Option<f64>,

Expand Down
7 changes: 0 additions & 7 deletions crates/erc20_payment_lib/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,13 +412,6 @@ impl PaymentRuntime {
}
let config_chain = config.chain.values().next().unwrap().clone();
let balance_options = BalanceOptions2 {
chain_name: "dev".to_string(),
//dead address
accounts: Some("0x2000000000000000000000000000000000000000".to_string()),
hide_gas: false,
hide_token: true,
block_number: None,
tasks: 0,
interval: Some(2.0),
debug_loop: Some(balance_check_loop),
};
Expand Down
61 changes: 0 additions & 61 deletions src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,67 +110,6 @@ pub struct MintTestTokensOptions {

#[structopt(long = "account-no", help = "Address by index (for convenience)")]
pub account_no: Option<usize>,

#[structopt(
long = "mint-loop",
help = "Address where to sent tokens minted in the loop"
)]
pub mint_loop_address: Option<Address>,
}

#[derive(StructOpt)]
#[structopt(about = "Deposit token options")]
pub struct DepositTokensOptions {
#[structopt(short = "c", long = "chain-name", default_value = "holesky")]
pub chain_name: String,

#[structopt(long = "address", help = "Address (has to have private key)")]
pub address: Option<Address>,

#[structopt(long = "account-no", help = "Address by index (for convenience)")]
pub account_no: Option<usize>,

#[structopt(
short = "a",
long = "amount",
help = "Amount (decimal, full precision, i.e. 0.01)"
)]
pub amount: Option<rust_decimal::Decimal>,

#[structopt(long = "all", help = "Deposit all available tokens")]
pub deposit_all: bool,

#[structopt(long = "skip-allowance", help = "Skip allowance check")]
pub skip_allowance: bool,

#[structopt(long = "skip-balance", help = "Skip balance check")]
pub skip_balance_check: bool,
}

#[derive(StructOpt)]
#[structopt(about = "Withdraw token options")]
pub struct WithdrawTokensOptions {
#[structopt(short = "c", long = "chain-name", default_value = "holesky")]
pub chain_name: String,

#[structopt(long = "address", help = "Address (has to have private key)")]
pub address: Option<Address>,

#[structopt(long = "account-no", help = "Address by index (for convenience)")]
pub account_no: Option<usize>,

#[structopt(
short = "a",
long = "amount",
help = "Amount (decimal, full precision, i.e. 0.01)"
)]
pub amount: Option<rust_decimal::Decimal>,

#[structopt(long = "all", help = "Withdraw all available tokens")]
pub withdraw_all: bool,

#[structopt(long = "skip-balance", help = "Skip balance check")]
pub skip_balance_check: bool,
}

#[derive(StructOpt)]
Expand Down
Loading