From 8ee1ce84b3e62661377e5951793feede38d000d8 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 6 May 2022 01:40:43 +0000 Subject: [PATCH] move data files --- .gitignore | 2 +- config/example.toml | 26 +++++++++++++++++++ docker-compose.yml | 18 +++++++++++++ .../data/wrk => wrk}/getBlockNumber.lua | 0 .../wrk => wrk}/getLatestBlockByNumber.lua | 0 5 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 config/example.toml create mode 100644 docker-compose.yml rename {web3-proxy/data/wrk => wrk}/getBlockNumber.lua (100%) rename {web3-proxy/data/wrk => wrk}/getLatestBlockByNumber.lua (100%) diff --git a/.gitignore b/.gitignore index 5bb72f0d..f1bf4b01 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -/web3-proxy/data/config/*.toml +/config/*.toml flamegraph.svg perf.data perf.data.old diff --git a/config/example.toml b/config/example.toml new file mode 100644 index 00000000..f2cba3ad --- /dev/null +++ b/config/example.toml @@ -0,0 +1,26 @@ +[balanced_rpc_tiers] + +[balanced_rpc_tiers.0] + + [balanced_rpc_tiers.0.geth] + url = "ws://127.0.0.1:8546" + soft_limit = 200_000 + + +[private_rpcs] + + [private_rpcs.eden] + url = "https://api.edennetwork.io/v1/" + soft_limit = 1_805 + + [private_rpcs.eden_beta] + url = "https://api.edennetwork.io/v1/beta" + soft_limit = 5_861 + + [private_rpcs.ethermine] + url = "https://rpc.ethermine.org" + soft_limit = 5_861 + + [private_rpcs.flashbots] + url = "https://rpc.flashbots.net" + soft_limit = 7074 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..4003dd09 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +--- +version: "3.4" + +# docker run --rm -it -v $PWD/web3-proxy/data/config/production-arbitrum.toml:/config.toml satoshiandkin/web3-proxy --rpc-config-path /config.toml + + +base-service: + &base + data-transport-layer: + build: . + restart: unless-stopped + command: --rpc-config-path /config.toml + +services: + arbitrum: + <<: *base + volumes: + - ./web3-proxy/data/config/production-arbitrum.toml:/config.toml diff --git a/web3-proxy/data/wrk/getBlockNumber.lua b/wrk/getBlockNumber.lua similarity index 100% rename from web3-proxy/data/wrk/getBlockNumber.lua rename to wrk/getBlockNumber.lua diff --git a/web3-proxy/data/wrk/getLatestBlockByNumber.lua b/wrk/getLatestBlockByNumber.lua similarity index 100% rename from web3-proxy/data/wrk/getLatestBlockByNumber.lua rename to wrk/getLatestBlockByNumber.lua