Generate stage1 genesis file from CSV with subscribed participants #13

Merged
nabarun merged 2 commits from pm-update-genesis-gen into main 2024-08-16 14:52:08 +00:00
Showing only changes of commit 3dda82d172 - Show all commits

View File

@ -22,11 +22,12 @@ mkdir -p $STAGE1_GENESIS_DIR
# --------
# Export onboarding module state from stage0 laconicd chain
# Use cerc/laconicd-stage0:local image for stage0 laconicd build
onboarding_state_file="$STAGE1_GENESIS_DIR/stage0-onboarding-state.json"
docker run -it \
-v ${STAGE0_DEPLOYMENT_DIR}/data/laconicd-data:/root/stage0-deployment/.laconicd \
cerc/laconicd:local bash -c "laconicd export --home /root/stage0-deployment/.laconicd" \
cerc/laconicd-stage0:local bash -c "laconicd export --home /root/stage0-deployment/.laconicd" \
| jq .app_state.onboarding > "$onboarding_state_file"
stage0_participants=$(cat "$onboarding_state_file" | jq .participants)