testnet-onboarding-app-stack/stack-orchestrator/config/app/onboarding-app-start.sh
Nabarun bed329409e 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>
2024-08-09 09:49:41 +00:00

33 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
set -e
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
set -x
fi
echo "Using the following env variables:"
echo "WALLET_CONNECT_ID: ${WALLET_CONNECT_ID}"
echo "CERC_LACONICD_CHAIN_ID: ${CERC_LACONICD_CHAIN_ID}"
echo "CERC_REGISTRY_GQL_ENDPOINT: ${CERC_REGISTRY_GQL_ENDPOINT}"
echo "CERC_LACONICD_RPC_ENDPOINT: ${CERC_LACONICD_RPC_ENDPOINT}"
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 \
REACT_APP_ETHEREUM_MAINNET_CHAIN_ID=1 \
REACT_APP_LACONICD_CHAIN_ID=$CERC_LACONICD_CHAIN_ID \
REACT_APP_REGISTRY_GQL_ENDPOINT=$CERC_REGISTRY_GQL_ENDPOINT \
REACT_APP_LACONICD_RPC_ENDPOINT=$CERC_LACONICD_RPC_ENDPOINT \
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