Add a script to generate genesis file using given allocation amounts #10

Merged
nabarun merged 6 commits from pm-update-genesis-gen into main 2024-08-08 07:44:19 +00:00
3 changed files with 6 additions and 2 deletions
Showing only changes of commit d6cf829199 - Show all commits

View File

@ -7,6 +7,7 @@ services:
TEST_AUCTION_ENABLED: ${TEST_AUCTION_ENABLED:-false}
TEST_REGISTRY_EXPIRY: ${TEST_REGISTRY_EXPIRY:-false}
ONBOARDING_ENABLED: ${ONBOARDING_ENABLED:-false}
STAKING_AMOUNT: ${STAKING_AMOUNT:-1000000000000000}
GENESIS_FILE: /var/tmp/genesis.json
volumes:
- laconicd-data:/root/.laconicd

View File

@ -96,9 +96,11 @@ Instructions for running a laconicd fixturenet along with registry CLI and conso
```bash
# Optional
# Set to true to enable adding participants functionality of the onboarding module
# (default: false)
# Set to true to enable adding participants functionality of the onboarding module (default: false)
ONBOARDING_ENABLED=
# Staking amount to use for the default validator account (default: 1000000000000000)
STAKING_AMOUNT=
```
* Inside the `laconic-console-deployment` deployment directory, open `config.env` file and set following env variables:

View File

@ -7,6 +7,7 @@ set -u
# Check args
if [ "$#" -ne 3 ]; then
echo "Usage: $0 <stage0-deployment-dir-absolute> <participant-allocation> <validator-allocation>"
echo "Example: $0 /home/user/stage0-deployment 1000000 1000000000000"
exit 1
fi