Make staking amount configurable using env variable
All checks were successful
Integration Tests / test-integration (pull_request) Successful in 2m39s
Build / build (pull_request) Successful in 2m48s
E2E Tests / test-e2e (pull_request) Successful in 4m9s
Unit Tests / test-unit (pull_request) Successful in 2m2s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 7m37s
SDK Tests / sdk_tests (pull_request) Successful in 8m54s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 14m4s

This commit is contained in:
Prathamesh Musale 2024-08-07 14:48:47 +05:30
parent 1ece659435
commit a1556cb107

View File

@ -1,11 +1,12 @@
#!/bin/bash #!/bin/bash
KEY="alice" KEY="alice"
CHAINID="laconic_9000-1" CHAINID=${CHAINID:-"laconic_9000-1"}
MONIKER="localtestnet" MONIKER=${MONIKER:-"localtestnet"}
KEYRING="test" KEYRING=${KEYRING:-"test"}
DENOM=alnt DENOM=${DENOM:-"alnt"}
LOGLEVEL="${LOGLEVEL:-info}" STAKING_AMOUNT=${STAKING_AMOUNT:-"1000000000000000"}
LOGLEVEL="${LOGLEVEL:-"info"}"
input_genesis_file=${GENESIS_FILE} input_genesis_file=${GENESIS_FILE}
@ -99,7 +100,7 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then
# Sign genesis transaction # Sign genesis transaction
# 10^15 alnt # 10^15 alnt
laconicd genesis gentx $KEY 1000000000000000$DENOM --keyring-backend $KEYRING --chain-id $CHAINID laconicd genesis gentx $KEY $STAKING_AMOUNT$DENOM --keyring-backend $KEYRING --chain-id $CHAINID
# Collect genesis tx # Collect genesis tx
laconicd genesis collect-gentxs laconicd genesis collect-gentxs