Skip to content

Commit

Permalink
Added web3 account server
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Sep 25, 2024
1 parent 1659729 commit 0e47d7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/erc20_payment_lib/src/account_balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use std::sync::Arc;
use structopt::StructOpt;
use web3::types::Address;

#[allow(dead_code)]
#[derive(Clone, StructOpt)]
#[structopt(about = "Payment statistics options")]
pub struct BalanceOptions2 {
Expand Down
2 changes: 2 additions & 0 deletions crates/erc20_payment_lib/src/sender/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ pub async fn process_transactions(
shared_state.lock().unwrap().current_tx_info.remove(&tx.id);
continue;
};

#[allow(clippy::if_same_then_else)]
if tx.method.starts_with("MULTI.golemTransfer")
|| tx.method == "ERC20.transfer"
|| tx.method == "transfer"
Expand Down
3 changes: 3 additions & 0 deletions src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ pub struct GetDevEthOptions {
pub account_no: Option<usize>,
}

#[allow(dead_code)]
#[derive(StructOpt)]
#[structopt(about = "Mint test token options")]
pub struct MintTestTokensOptions {
Expand All @@ -118,6 +119,7 @@ pub struct MintTestTokensOptions {
pub mint_loop_address: Option<Address>,
}

#[allow(dead_code)]
#[derive(StructOpt)]
#[structopt(about = "Deposit token options")]
pub struct DepositTokensOptions {
Expand Down Expand Up @@ -147,6 +149,7 @@ pub struct DepositTokensOptions {
pub skip_balance_check: bool,
}

#[allow(dead_code)]
#[derive(StructOpt)]
#[structopt(about = "Withdraw token options")]
pub struct WithdrawTokensOptions {
Expand Down

0 comments on commit 0e47d7e

Please sign in to comment.