From 7273165e2c7ae9259f217fa3439199d79e85b1a8 Mon Sep 17 00:00:00 2001 From: Nabarun Date: Mon, 29 Jul 2024 12:55:23 +0000 Subject: [PATCH] Add laconicd RPC URL to stack (#5) Part of [laconicd testnet validator enrollment](https://www.notion.so/laconicd-testnet-validator-enrollment-6fc1d3cafcc64fef8c5ed3affa27c675) Reviewed-on: https://git.vdb.to/cerc-io/laconic-wallet-web/pulls/5 Co-authored-by: Nabarun Co-committed-by: Nabarun --- .../compose/docker-compose-laconic-wallet-web.yml | 1 + stack/stack-orchestrator/config/app/run.sh | 2 ++ stack/stack-orchestrator/stack/laconic-wallet-web/README.md | 3 +++ 3 files changed, 6 insertions(+) diff --git a/stack/stack-orchestrator/compose/docker-compose-laconic-wallet-web.yml b/stack/stack-orchestrator/compose/docker-compose-laconic-wallet-web.yml index 785058b..90b154b 100644 --- a/stack/stack-orchestrator/compose/docker-compose-laconic-wallet-web.yml +++ b/stack/stack-orchestrator/compose/docker-compose-laconic-wallet-web.yml @@ -8,6 +8,7 @@ services: WALLET_CONNECT_ID: ${WALLET_CONNECT_ID} CERC_DEFAULT_GAS_PRICE: ${CERC_DEFAULT_GAS_PRICE:-0.025} CERC_GAS_ADJUSTMENT: ${CERC_GAS_ADJUSTMENT:-2} + CERC_LACONICD_RPC_URL: ${CERC_LACONICD_RPC_URL:-https://laconicd.laconic.com} command: ["bash", "/scripts/run.sh"] volumes: - ../config/app/run.sh:/scripts/run.sh diff --git a/stack/stack-orchestrator/config/app/run.sh b/stack/stack-orchestrator/config/app/run.sh index 95d8d4c..ae38f1c 100755 --- a/stack/stack-orchestrator/config/app/run.sh +++ b/stack/stack-orchestrator/config/app/run.sh @@ -9,11 +9,13 @@ echo "Using the following env variables:" echo "WALLET_CONNECT_ID: ${WALLET_CONNECT_ID}" echo "CERC_DEFAULT_GAS_PRICE: ${CERC_DEFAULT_GAS_PRICE}" echo "CERC_GAS_ADJUSTMENT: ${CERC_GAS_ADJUSTMENT}" +echo "CERC_LACONICD_RPC_URL: ${CERC_LACONICD_RPC_URL}" # Build with required env REACT_APP_WALLET_CONNECT_PROJECT_ID=$WALLET_CONNECT_ID \ REACT_APP_DEFAULT_GAS_PRICE=$CERC_DEFAULT_GAS_PRICE \ REACT_APP_GAS_ADJUSTMENT=$CERC_GAS_ADJUSTMENT \ +REACT_APP_LACONICD_RPC_URL=$CERC_LACONICD_RPC_URL \ yarn build http-server --proxy http://localhost:80? -p 80 /app/build diff --git a/stack/stack-orchestrator/stack/laconic-wallet-web/README.md b/stack/stack-orchestrator/stack/laconic-wallet-web/README.md index 1e36827..2f4b190 100644 --- a/stack/stack-orchestrator/stack/laconic-wallet-web/README.md +++ b/stack/stack-orchestrator/stack/laconic-wallet-web/README.md @@ -57,6 +57,9 @@ Instructions for running the `laconic-wallet-web` using [laconic-so](https://git # Gas adjustment (default: 2) # Reference: https://github.com/cosmos/cosmos-sdk/issues/16020 CERC_GAS_ADJUSTMENT= + + # RPC endpoint of laconicd node (default: https://laconicd.laconic.com) + CERC_LACONICD_RPC_URL= ``` ## Start the deployment