Add env for zenithd RPC URL (#30)

Part of https://www.notion.so/Stage0-onboarding-flow-1e4a6b22d47280aba3b5da3ed1154ff5

Reviewed-on: LaconicNetwork/laconic-wallet-web#30
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
This commit is contained in:
Nabarun 2025-05-08 10:49:59 +00:00 committed by nabarun
parent 36208870ab
commit e1514e98af
5 changed files with 12 additions and 4 deletions

View File

@ -5,5 +5,7 @@ REACT_APP_DEFAULT_GAS_PRICE=0.025
REACT_APP_GAS_ADJUSTMENT=2
REACT_APP_LACONICD_RPC_URL=https://laconicd-sapo.laconic.com
REACT_APP_ZENITHD_RPC_URL=
# Example: https://example-url-1.com,https://example-url-2.com
REACT_APP_ALLOWED_URLS=

View File

@ -19,10 +19,10 @@ export const DEFAULT_NETWORKS: NetworksFormData[] = [
isDefault: true,
},
{
chainId: 'zenith-testnet',
networkName: 'zenithd testnet',
chainId: 'zenith-testnet-stage0',
networkName: 'zenithd stage 0 testnet',
namespace: COSMOS,
rpcUrl: 'https://zenith-node-rpc.com',
rpcUrl: process.env.REACT_APP_ZENITHD_RPC_URL || '',
blockExplorerUrl: '',
nativeDenom: 'znt',
addressPrefix: 'zenith',

View File

@ -10,6 +10,7 @@ services:
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}
CERC_ZENITHD_RPC_URL: ${CERC_ZENITHD_RPC_URL}
CERC_ALLOWED_URLS: ${CERC_ALLOWED_URLS}
command: ["bash", "/scripts/run.sh"]
volumes:

View File

@ -10,6 +10,7 @@ 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}"
echo "CERC_ZENITHD_RPC_URL: ${CERC_ZENITHD_RPC_URL}"
echo "CERC_ALLOWED_URLS: ${CERC_ALLOWED_URLS}"
# Build with required env
@ -17,6 +18,7 @@ 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 \
REACT_APP_ZENITHD_RPC_URL=$CERC_ZENITHD_RPC_URL \
REACT_APP_ALLOWED_URLS=$CERC_ALLOWED_URLS \
yarn build

View File

@ -7,7 +7,7 @@ Instructions for running the `laconic-wallet-web` using [laconic-so](https://git
* Clone the stack repo:
```bash
laconic-so fetch-stack git.vdb.to/cerc-io/laconic-wallet-web
laconic-so fetch-stack git.vdb.to/LaconicNetwork/laconic-wallet-web
```
* Build the container image:
@ -66,6 +66,9 @@ Instructions for running the `laconic-wallet-web` using [laconic-so](https://git
# RPC endpoint of laconicd node (default: https://laconicd.laconic.com)
CERC_LACONICD_RPC_URL=
# RPC endpoint of zenithd node
CERC_ZENITHD_RPC_URL=
```
## Start the deployment