Add scripts for onboarding testnet participants from stage 0 to 1 laconicd chain #2
@ -2,7 +2,7 @@ services:
|
|||||||
laconicd:
|
laconicd:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: cerc/laconic2d:local
|
image: cerc/laconic2d:local
|
||||||
command: ["sh", "/docker-entrypoint-scripts.d/create-fixturenet.sh"]
|
command: ["bash", "/docker-entrypoint-scripts.d/create-fixturenet.sh"]
|
||||||
environment:
|
environment:
|
||||||
TEST_AUCTION_ENABLED: ${TEST_AUCTION_ENABLED:-false}
|
TEST_AUCTION_ENABLED: ${TEST_AUCTION_ENABLED:-false}
|
||||||
TEST_REGISTRY_EXPIRY: ${TEST_REGISTRY_EXPIRY:-false}
|
TEST_REGISTRY_EXPIRY: ${TEST_REGISTRY_EXPIRY:-false}
|
||||||
|
@ -16,6 +16,9 @@ fi
|
|||||||
|
|
||||||
OUTPUT_FILE=$1
|
OUTPUT_FILE=$1
|
||||||
|
|
||||||
|
# Trust locally-trusted development certificates created by mkcert
|
||||||
|
export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"
|
||||||
|
|
||||||
# Run the nitro-rpc-client command and process the output with jq
|
# Run the nitro-rpc-client command and process the output with jq
|
||||||
npm exec -c "nitro-rpc-client get-all-ledger-channels -p 4006" | jq -s '[.[] | {ethereum_address: .Balance.Them, balance: .Balance.TheirBalance}]' > "$OUTPUT_FILE"
|
npm exec -c "nitro-rpc-client get-all-ledger-channels -p 4006" | jq -s '[.[] | {ethereum_address: .Balance.Them, balance: .Balance.TheirBalance}]' > "$OUTPUT_FILE"
|
||||||
|
|
||||||
|
@ -19,6 +19,9 @@ laconicd init $STAGE1_MONIKER --chain-id $CHAINID --default-denom photon
|
|||||||
participants=$(jq -c '.participants' $onboarding_state_file)
|
participants=$(jq -c '.participants' $onboarding_state_file)
|
||||||
jq --argjson p "$participants" '.app_state.onboarding.participants = $p' "$stage1_genesis_file" > tmp.$$.json && mv tmp.$$.json "$stage1_genesis_file"
|
jq --argjson p "$participants" '.app_state.onboarding.participants = $p' "$stage1_genesis_file" > tmp.$$.json && mv tmp.$$.json "$stage1_genesis_file"
|
||||||
|
|
||||||
|
# Disable bank module transfers
|
||||||
|
jq '.app_state["bank"]["params"]["default_send_enabled"]=false' "$stage1_genesis_file" > tmp.$$.json && mv tmp.$$.json "$stage1_genesis_file"
|
||||||
|
|
||||||
# Read and assign allocations
|
# Read and assign allocations
|
||||||
jq -c '.[]' "$stage1_allocations_file" | while IFS= read -r line; do
|
jq -c '.[]' "$stage1_allocations_file" | while IFS= read -r line; do
|
||||||
cosmos_address=$(jq -r '.cosmos_address' <<< "$line")
|
cosmos_address=$(jq -r '.cosmos_address' <<< "$line")
|
||||||
|
Loading…
Reference in New Issue
Block a user