Add staking amount config for creating validator (#6)

Part of [laconicd testnet validator enrollment](https://www.notion.so/laconicd-testnet-validator-enrollment-6fc1d3cafcc64fef8c5ed3affa27c675)

Reviewed-on: #6
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
This commit is contained in:
Nabarun 2024-08-09 09:49:41 +00:00 committed by nabarun
parent aa6fa1ed82
commit bed329409e
3 changed files with 7 additions and 1 deletions

View File

@ -13,6 +13,7 @@ services:
CERC_FAUCET_ENDPOINT: ${CERC_FAUCET_ENDPOINT:-http://localhost:4000} CERC_FAUCET_ENDPOINT: ${CERC_FAUCET_ENDPOINT:-http://localhost:4000}
CERC_WALLET_META_URL: ${CERC_WALLET_META_URL:-http://localhost:3000} CERC_WALLET_META_URL: ${CERC_WALLET_META_URL:-http://localhost:3000}
CERC_SUMSUB_API_ENDPOINT: ${CERC_SUMSUB_API_ENDPOINT:-http://localhost:3001} CERC_SUMSUB_API_ENDPOINT: ${CERC_SUMSUB_API_ENDPOINT:-http://localhost:3001}
CERC_STAKING_AMOUNT: ${CERC_STAKING_AMOUNT:-1000000000000000}
command: ["bash", "/scripts/onboarding-app-start.sh"] command: ["bash", "/scripts/onboarding-app-start.sh"]
volumes: volumes:
- ../config/app/onboarding-app-start.sh:/scripts/onboarding-app-start.sh - ../config/app/onboarding-app-start.sh:/scripts/onboarding-app-start.sh

View File

@ -14,6 +14,7 @@ echo "CERC_LACONICD_DENOM: ${CERC_LACONICD_DENOM}"
echo "CERC_FAUCET_ENDPOINT: ${CERC_FAUCET_ENDPOINT}" echo "CERC_FAUCET_ENDPOINT: ${CERC_FAUCET_ENDPOINT}"
echo "CERC_WALLET_META_URL: ${CERC_WALLET_META_URL}" echo "CERC_WALLET_META_URL: ${CERC_WALLET_META_URL}"
echo "CERC_SUMSUB_API_ENDPOINT: ${CERC_SUMSUB_API_ENDPOINT}" echo "CERC_SUMSUB_API_ENDPOINT: ${CERC_SUMSUB_API_ENDPOINT}"
echo "CERC_STAKING_AMOUNT: ${CERC_STAKING_AMOUNT}"
# Build with required env # Build with required env
REACT_APP_WALLET_CONNECT_ID=$WALLET_CONNECT_ID \ REACT_APP_WALLET_CONNECT_ID=$WALLET_CONNECT_ID \
@ -25,6 +26,7 @@ REACT_APP_LACONICD_DENOM=$CERC_LACONICD_DENOM \
REACT_APP_FAUCET_ENDPOINT=$CERC_FAUCET_ENDPOINT \ REACT_APP_FAUCET_ENDPOINT=$CERC_FAUCET_ENDPOINT \
REACT_APP_WALLET_META_URL=$CERC_WALLET_META_URL \ REACT_APP_WALLET_META_URL=$CERC_WALLET_META_URL \
REACT_APP_SUMSUB_API_ENDPOINT=$CERC_SUMSUB_API_ENDPOINT \ REACT_APP_SUMSUB_API_ENDPOINT=$CERC_SUMSUB_API_ENDPOINT \
REACT_APP_STAKING_AMOUNT=$CERC_STAKING_AMOUNT \
yarn build yarn build
http-server --proxy http://localhost:80? -p 80 /app/build http-server --proxy http://localhost:80? -p 80 /app/build

View File

@ -66,7 +66,7 @@ Instructions for running the `testnet-onboarding-app` using [laconic-so](https:/
# laconicd RPC endpoint (default: http://laconicd:26657) # laconicd RPC endpoint (default: http://laconicd:26657)
CERC_LACONICD_RPC_ENDPOINT= CERC_LACONICD_RPC_ENDPOINT=
# laconicd token denom (default: photon) # laconicd token denom (default: alnt)
CERC_LACONICD_DENOM= CERC_LACONICD_DENOM=
# Faucet RPC endpoint (default: http://localhost:4000) # Faucet RPC endpoint (default: http://localhost:4000)
@ -77,6 +77,9 @@ Instructions for running the `testnet-onboarding-app` using [laconic-so](https:/
# Onboarding API endpoint (default: http://localhost:3001) # Onboarding API endpoint (default: http://localhost:3001)
CERC_SUMSUB_API_ENDPOINT= CERC_SUMSUB_API_ENDPOINT=
# Staking amount for validator creation (default: 1000000000000000)
CERC_STAKING_AMOUNT=
``` ```
## Start the deployment ## Start the deployment