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[] |
|
$participants[] |
|
||||||
{
|
{
|
||||||
cosmos_address: .cosmos_address,
|
laconic_address: .laconic_address,
|
||||||
balance: (if .role == "validator" then $validator_allocation else $participant_allocation end)
|
balance: (if .role == "validator" then $validator_allocation else $participant_allocation end)
|
||||||
}
|
}
|
||||||
]' > $stage1_allocations_file
|
]' > $stage1_allocations_file
|
||||||
|
@ -49,7 +49,7 @@ jq -n --argjson holdings "$eth_account_holdings" --argjson participants "$stage0
|
|||||||
$participants[] |
|
$participants[] |
|
||||||
select((.nitro_address | ascii_downcase) == ($holding.nitro_address | ascii_downcase)) |
|
select((.nitro_address | ascii_downcase) == ($holding.nitro_address | ascii_downcase)) |
|
||||||
{
|
{
|
||||||
cosmos_address: .cosmos_address,
|
laconic_address: .laconic_address,
|
||||||
balance: $holding.balance
|
balance: $holding.balance
|
||||||
}
|
}
|
||||||
]' > $stage1_allocations_file
|
]' > $stage1_allocations_file
|
||||||
|
@ -25,11 +25,11 @@ jq '.app_state["bank"]["params"]["default_send_enabled"]=false' "$stage1_genesis
|
|||||||
|
|
||||||
# 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")
|
laconic_address=$(jq -r '.laconic_address' <<< "$line")
|
||||||
balance=$(jq -r '.balance' <<< "$line")
|
balance=$(jq -r '.balance' <<< "$line")
|
||||||
|
|
||||||
# Add a genesis account for participant's laconic address with required balance
|
# 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
|
done
|
||||||
|
|
||||||
# Ensure that resulting genesis file is valid
|
# Ensure that resulting genesis file is valid
|
||||||
|
Loading…
Reference in New Issue
Block a user