From 3945f707bcfa465fa9f6e12e1ce8f07697022105 Mon Sep 17 00:00:00 2001 From: Ravi Shankar Date: Sun, 28 Jul 2024 21:53:54 +0530 Subject: [PATCH] Add scanner --- .gitignore | 1 + scripts/start.sh | 17 +++++++++++++---- server/Cargo.lock | 20 -------------------- 3 files changed, 14 insertions(+), 24 deletions(-) diff --git a/.gitignore b/.gitignore index 2f7896d..e08c794 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ target/ +.DS_Store diff --git a/scripts/start.sh b/scripts/start.sh index b2c8bc3..b6a5c92 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -16,10 +16,6 @@ docker run --name static \ -e PRIVATE_SOURCE=/private \ -e CONFIG=/config/static_server_config.json \ -e LOG_LEVEL=info \ - -e SMS_RECEIVER=${SMS_RECEIVER} \ - -e AWS_REGION=${AWS_REGION} \ - -e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \ - -e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \ -d wafflespeanut/static-server echo 'Launching ace game!' @@ -31,6 +27,19 @@ docker run --name ace-away \ --network waffles \ -d wafflespeanut/ace-away +echo 'Launching onchain scanner...' +docker pull wafflespeanut/onchain-scanner +docker run --name scanner \ + --restart always \ + --network waffles \ + -v /root/config:/config \ + -e ADDR=localhost:3001 \ + -e AUTH_KEY=${SCANNER_AUTH} \ + -e AWS_ACCESS_KEY=${AWS_ACCESS_KEY=} \ + -e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \ + -e CONFIG=/config/scanner-config.json \ + -d wafflespeanut/onchain-scanner + echo 'Deploying Nginx proxy...' docker run --name nginx \ --restart always \ diff --git a/server/Cargo.lock b/server/Cargo.lock index 3d66157..5e788c1 100644 --- a/server/Cargo.lock +++ b/server/Cargo.lock @@ -881,22 +881,6 @@ version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "658bd65b1cf4c852a3cc96f18a8ce7b5640f6b703f905c7d74532294c2a63984" -[[package]] -name = "femme" -version = "2.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc04871e5ae3aa2952d552dae6b291b3099723bf779a8054281c1366a54613ef" -dependencies = [ - "cfg-if 1.0.0", - "js-sys", - "log", - "serde", - "serde_derive", - "serde_json", - "wasm-bindgen", - "web-sys", -] - [[package]] name = "filetime" version = "0.2.23" @@ -1528,7 +1512,6 @@ version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" dependencies = [ - "serde", "value-bag", ] @@ -2597,7 +2580,6 @@ dependencies = [ "async-sse", "async-std", "async-trait", - "femme", "futures-util", "http-client", "http-types", @@ -2912,8 +2894,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" dependencies = [ "cfg-if 1.0.0", - "serde", - "serde_json", "wasm-bindgen-macro", ]