Replace cosmos_address with laconic_address
This commit is contained in:
parent
81a3141db4
commit
62450f7a70
@ -41,7 +41,7 @@ jq -n --argjson participants "$stage0_participants" --arg participant_allocation
|
||||
[
|
||||
$participants[] |
|
||||
{
|
||||
cosmos_address: .cosmos_address,
|
||||
laconic_address: .laconic_address,
|
||||
balance: (if .role == "validator" then $validator_allocation else $participant_allocation end)
|
||||
}
|
||||
]' > $stage1_allocations_file
|
||||
|
@ -49,7 +49,7 @@ jq -n --argjson holdings "$eth_account_holdings" --argjson participants "$stage0
|
||||
$participants[] |
|
||||
select((.nitro_address | ascii_downcase) == ($holding.nitro_address | ascii_downcase)) |
|
||||
{
|
||||
cosmos_address: .cosmos_address,
|
||||
laconic_address: .laconic_address,
|
||||
balance: $holding.balance
|
||||
}
|
||||
]' > $stage1_allocations_file
|
||||
|
@ -25,11 +25,11 @@ jq '.app_state["bank"]["params"]["default_send_enabled"]=false' "$stage1_genesis
|
||||
|
||||
# Read and assign allocations
|
||||
jq -c '.[]' "$stage1_allocations_file" | while IFS= read -r line; do
|
||||
cosmos_address=$(jq -r '.cosmos_address' <<< "$line")
|
||||
laconic_address=$(jq -r '.laconic_address' <<< "$line")
|
||||
balance=$(jq -r '.balance' <<< "$line")
|
||||
|
||||
# Add a genesis account for participant's laconic address with required balance
|
||||
laconicd genesis add-genesis-account $cosmos_address ${balance}alnt
|
||||
laconicd genesis add-genesis-account $laconic_address ${balance}alnt
|
||||
done
|
||||
|
||||
# Ensure that resulting genesis file is valid
|
||||
|
Loading…
Reference in New Issue
Block a user