From 0e47d7e5420c6072db7d974091a4be21b99e22e5 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Wed, 25 Sep 2024 18:47:12 +0200 Subject: [PATCH] Added web3 account server --- crates/erc20_payment_lib/src/account_balance.rs | 1 + crates/erc20_payment_lib/src/sender/service.rs | 2 ++ src/options.rs | 3 +++ 3 files changed, 6 insertions(+) diff --git a/crates/erc20_payment_lib/src/account_balance.rs b/crates/erc20_payment_lib/src/account_balance.rs index 5d66d121..b9a0ed7e 100644 --- a/crates/erc20_payment_lib/src/account_balance.rs +++ b/crates/erc20_payment_lib/src/account_balance.rs @@ -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 { diff --git a/crates/erc20_payment_lib/src/sender/service.rs b/crates/erc20_payment_lib/src/sender/service.rs index de7abe53..1b7b50d1 100644 --- a/crates/erc20_payment_lib/src/sender/service.rs +++ b/crates/erc20_payment_lib/src/sender/service.rs @@ -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" diff --git a/src/options.rs b/src/options.rs index 4bf8d52e..747ffd01 100644 --- a/src/options.rs +++ b/src/options.rs @@ -99,6 +99,7 @@ pub struct GetDevEthOptions { pub account_no: Option, } +#[allow(dead_code)] #[derive(StructOpt)] #[structopt(about = "Mint test token options")] pub struct MintTestTokensOptions { @@ -118,6 +119,7 @@ pub struct MintTestTokensOptions { pub mint_loop_address: Option
, } +#[allow(dead_code)] #[derive(StructOpt)] #[structopt(about = "Deposit token options")] pub struct DepositTokensOptions { @@ -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 {