Skip to content

Commit

Permalink
Added account server useful for storage of provisioned accounts (#188)
Browse files Browse the repository at this point in the history
* Added account server useful for storage of provisioned accounts

* added file name argument

* fix error server ready

* fix lack of license
  • Loading branch information
scx1332 authored Sep 25, 2024
1 parent 4200567 commit 2efc549
Show file tree
Hide file tree
Showing 10 changed files with 1,650 additions and 3 deletions.
33 changes: 31 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ members = [
"crates/erc20_payment_lib_common",
"crates/erc20_payment_lib_extra",
"crates/erc20_payment_lib_test",
"crates/web3_account_server",
"crates/web3_test_proxy_client",
"crates/web3_test_proxy",
"crates/erc20_rpc_pool",
Expand All @@ -23,8 +24,9 @@ license = "MIT"

[workspace.dependencies]
actix = "0.13"
actix-cors = "0.6"
actix-cors = "0.7"
actix-files = "0.6"
actix-web-httpauth = "0.8"
actix-web = { version = "4", default-features = false, features = [
"macros",
] }
Expand Down Expand Up @@ -136,6 +138,14 @@ awc = { workspace = true }
# if you have very good reason then ask first
#test-case = "3.1.0"

[profile.dev]
debug = false
incremental = false

# Set the default for dependencies.
[profile.dev.package."*"]
opt-level = 2

[profile.release-fast]
inherits = "release"
incremental = false
Expand Down
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 crates/web3_account_server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/target
/data.json
/.idea/
Loading

0 comments on commit 2efc549

Please sign in to comment.