diff --git a/crates/erc20_payment_lib/src/account_balance.rs b/crates/erc20_payment_lib/src/account_balance.rs index 5d66d121..d687f2d8 100644 --- a/crates/erc20_payment_lib/src/account_balance.rs +++ b/crates/erc20_payment_lib/src/account_balance.rs @@ -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, - - #[structopt(long = "hide-gas")] - pub hide_gas: bool, - - #[structopt(long = "hide-token")] - pub hide_token: bool, - - #[structopt(long = "block-number")] - pub block_number: Option, - - #[structopt(long = "tasks", default_value = "1")] - pub tasks: usize, - #[structopt(long = "interval")] pub interval: Option, diff --git a/crates/erc20_payment_lib/src/runtime.rs b/crates/erc20_payment_lib/src/runtime.rs index 948c3552..d58ee6e2 100644 --- a/crates/erc20_payment_lib/src/runtime.rs +++ b/crates/erc20_payment_lib/src/runtime.rs @@ -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), }; diff --git a/src/options.rs b/src/options.rs index 4bf8d52e..3d355664 100644 --- a/src/options.rs +++ b/src/options.rs @@ -110,67 +110,6 @@ pub struct MintTestTokensOptions { #[structopt(long = "account-no", help = "Address by index (for convenience)")] pub account_no: Option, - - #[structopt( - long = "mint-loop", - help = "Address where to sent tokens minted in the loop" - )] - pub mint_loop_address: Option
, -} - -#[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
, - - #[structopt(long = "account-no", help = "Address by index (for convenience)")] - pub account_no: Option, - - #[structopt( - short = "a", - long = "amount", - help = "Amount (decimal, full precision, i.e. 0.01)" - )] - pub amount: Option, - - #[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
, - - #[structopt(long = "account-no", help = "Address by index (for convenience)")] - pub account_no: Option, - - #[structopt( - short = "a", - long = "amount", - help = "Amount (decimal, full precision, i.e. 0.01)" - )] - pub amount: Option, - - #[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)]