From fb64ea0ed3830dfcbe550d6d5ce5b0487457b3c2 Mon Sep 17 00:00:00 2001 From: Nabarun Date: Fri, 9 Aug 2024 15:03:15 +0530 Subject: [PATCH] Add CERC_STAKING_AMOUNT in stack --- .../compose/docker-compose-testnet-onboarding-app.yml | 1 + stack-orchestrator/config/app/onboarding-app-start.sh | 2 ++ stack-orchestrator/stacks/onboarding-app/README.md | 5 ++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stack-orchestrator/compose/docker-compose-testnet-onboarding-app.yml b/stack-orchestrator/compose/docker-compose-testnet-onboarding-app.yml index 2a6b907..d1cadb7 100644 --- a/stack-orchestrator/compose/docker-compose-testnet-onboarding-app.yml +++ b/stack-orchestrator/compose/docker-compose-testnet-onboarding-app.yml @@ -13,6 +13,7 @@ services: CERC_FAUCET_ENDPOINT: ${CERC_FAUCET_ENDPOINT:-http://localhost:4000} CERC_WALLET_META_URL: ${CERC_WALLET_META_URL:-http://localhost:3000} 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"] volumes: - ../config/app/onboarding-app-start.sh:/scripts/onboarding-app-start.sh diff --git a/stack-orchestrator/config/app/onboarding-app-start.sh b/stack-orchestrator/config/app/onboarding-app-start.sh index c67a7d3..c4f4612 100755 --- a/stack-orchestrator/config/app/onboarding-app-start.sh +++ b/stack-orchestrator/config/app/onboarding-app-start.sh @@ -14,6 +14,7 @@ echo "CERC_LACONICD_DENOM: ${CERC_LACONICD_DENOM}" echo "CERC_FAUCET_ENDPOINT: ${CERC_FAUCET_ENDPOINT}" echo "CERC_WALLET_META_URL: ${CERC_WALLET_META_URL}" echo "CERC_SUMSUB_API_ENDPOINT: ${CERC_SUMSUB_API_ENDPOINT}" +echo "CERC_STAKING_AMOUNT: ${CERC_STAKING_AMOUNT}" # Build with required env 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_WALLET_META_URL=$CERC_WALLET_META_URL \ REACT_APP_SUMSUB_API_ENDPOINT=$CERC_SUMSUB_API_ENDPOINT \ +REACT_APP_STAKING_AMOUNT=$CERC_STAKING_AMOUNT \ yarn build http-server --proxy http://localhost:80? -p 80 /app/build diff --git a/stack-orchestrator/stacks/onboarding-app/README.md b/stack-orchestrator/stacks/onboarding-app/README.md index fcce68c..305280e 100644 --- a/stack-orchestrator/stacks/onboarding-app/README.md +++ b/stack-orchestrator/stacks/onboarding-app/README.md @@ -66,7 +66,7 @@ Instructions for running the `testnet-onboarding-app` using [laconic-so](https:/ # laconicd RPC endpoint (default: http://laconicd:26657) CERC_LACONICD_RPC_ENDPOINT= - # laconicd token denom (default: photon) + # laconicd token denom (default: alnt) CERC_LACONICD_DENOM= # 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) CERC_SUMSUB_API_ENDPOINT= + + # Staking amount for validator creation (default: 1000000000000000) + CERC_STAKING_AMOUNT= ``` ## Start the deployment