Skip to content

Commit

Permalink
Test build nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Jun 22, 2024
1 parent 0cac436 commit 528aa8d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 87 deletions.
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

0 comments on commit 528aa8d

Please sign in to comment.