|
24 | 24 | }
|
25 | 25 | }
|
26 | 26 | ],
|
27 |
| - "deposit": "15000000muno", |
| 27 | + "deposit": "15000000au", |
28 | 28 | "title": "${version}",
|
29 | 29 | "summary": "Upgrade to ${version}"
|
30 | 30 | }' > proposal-${version}.json
|
|
39 | 39 | '';
|
40 | 40 |
|
41 | 41 | upgradeTo = version: height: ''
|
42 |
| - union.succeed('docker cp ${mkUpgradeProposal version height}/proposal-${version}.json devnet-union-minimal-union-minimal-0-1:/proposal-${version}.json') |
| 42 | + union.succeed('docker cp ${mkUpgradeProposal version height}/proposal-${version}.json union-v1-union-v1-0-1:/proposal-${version}.json') |
43 | 43 |
|
44 |
| - print(union.succeed('docker exec devnet-union-minimal-union-minimal-0-1 ${unionvisorBin} --root ./.unionvisor call --bundle ${bundle} -- tx gov submit-proposal proposal-${version}.json --from valoper-0 --keyring-backend test -y --gas auto --gas-adjustment 1.4 --gas-prices 1muno')) |
| 44 | + print(union.succeed('docker exec union-v1-union-v1-0-1 ${unionvisorBin} --root ./.unionvisor call --bundle ${bundle} -- tx gov submit-proposal proposal-${version}.json --from valoper-0 --keyring-backend test -y --gas auto --gas-adjustment 1.4 --gas-prices 1au')) |
45 | 45 |
|
46 |
| - print(union.succeed("docker exec devnet-union-minimal-union-minimal-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query gov proposal ${toString (height / 10)} --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.proposal.status == \"PROPOSAL_STATUS_VOTING_PERIOD\"'")) |
47 |
| - union.wait_until_succeeds("[[ $(docker exec devnet-union-minimal-union-minimal-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query gov proposal ${toString (height / 10)} --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.proposal.status == \"PROPOSAL_STATUS_VOTING_PERIOD\"') == true ]]", timeout=30) |
| 46 | + print(union.succeed("docker exec union-v1-union-v1-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query gov proposal ${toString (height / 10)} --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.proposal.status == \"PROPOSAL_STATUS_VOTING_PERIOD\"'")) |
| 47 | + union.wait_until_succeeds("[[ $(docker exec union-v1-union-v1-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query gov proposal ${toString (height / 10)} --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.proposal.status == \"PROPOSAL_STATUS_VOTING_PERIOD\"') == true ]]", timeout=30) |
48 | 48 |
|
49 | 49 | ${forEachNode (
|
50 | 50 | id:
|
51 |
| - "print(union.succeed('docker exec devnet-union-minimal-union-minimal-${id}-1 ${unionvisorBin} --root ./.unionvisor call --bundle ${bundle} -- tx gov vote ${toString (height / 10)} yes --keyring-backend test --from valoper-${id} -y --gas auto --gas-adjustment 1.8 --gas-prices 1muno'))" |
| 51 | + "print(union.succeed('docker exec union-v1-union-v1-${id}-1 ${unionvisorBin} --root ./.unionvisor call --bundle ${bundle} -- tx gov vote ${toString (height / 10)} yes --keyring-backend test --from valoper-${id} -y --gas auto --gas-adjustment 1.8 --gas-prices 1au'))" |
52 | 52 | )}
|
53 | 53 |
|
54 |
| - union.wait_until_succeeds("[[ $(docker exec devnet-union-minimal-union-minimal-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query gov proposal ${toString (height / 10)} --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.proposal.status == \"PROPOSAL_STATUS_PASSED\"') == true ]]", timeout=60) |
| 54 | + union.wait_until_succeeds("[[ $(docker exec union-v1-union-v1-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query gov proposal ${toString (height / 10)} --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.proposal.status == \"PROPOSAL_STATUS_PASSED\"') == true ]]", timeout=60) |
55 | 55 |
|
56 | 56 | union.wait_until_succeeds('[[ $(curl "http://localhost:26660/block" --fail --silent | ${pkgs.lib.meta.getExe pkgs.jq} ".result.block.header.height | tonumber > ${toString height}") == "true" ]]', timeout=120)
|
57 | 57 | '';
|
|
71 | 71 | union.wait_until_succeeds('[[ $(curl "http://localhost:26660/block" --fail --silent | ${pkgs.lib.meta.getExe pkgs.jq} ".result.block.header.height | tonumber > 40") == "true" ]]', timeout=120)
|
72 | 72 |
|
73 | 73 | # Ensure foundation owns 4 delegations
|
74 |
| - union.succeed("[[ $(docker exec devnet-union-minimal-union-minimal-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query staking delegations union1jk9psyhvgkrt2cumz8eytll2244m2nnz4yt2g2 --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.pagination.total | tonumber == 4') == true ]]") |
| 74 | + union.succeed("[[ $(docker exec union-v1-union-v1-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query staking delegations union1jk9psyhvgkrt2cumz8eytll2244m2nnz4yt2g2 --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.pagination.total | tonumber == 4') == true ]]") |
75 | 75 |
|
76 | 76 | # Ensure vals have 0 delegations
|
77 |
| - union.succeed("[[ $(docker exec devnet-union-minimal-union-minimal-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query staking delegations union1qp4uzhet2sd9mrs46kemse5dt9ncz4k3hjst5m --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.delegation_responses') == null ]]") |
78 |
| - union.succeed("[[ $(docker exec devnet-union-minimal-union-minimal-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query staking delegations union1d348dktd9nz0y6afzh3az5j39qahc93cmwkdjf --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.delegation_responses') == null ]]") |
79 |
| - union.succeed("[[ $(docker exec devnet-union-minimal-union-minimal-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query staking delegations union1asxs295fuy7jph8p8eqtc2r8zxggdc204s7unx --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.delegation_responses') == null ]]") |
80 |
| - union.succeed("[[ $(docker exec devnet-union-minimal-union-minimal-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query staking delegations union1fktal7292h36h7glff5edq59vpdfn7504duw5m --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.delegation_responses') == null ]]") |
| 77 | + union.succeed("[[ $(docker exec union-v1-union-v1-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query staking delegations union1qp4uzhet2sd9mrs46kemse5dt9ncz4k3hjst5m --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.delegation_responses') == null ]]") |
| 78 | + union.succeed("[[ $(docker exec union-v1-union-v1-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query staking delegations union1d348dktd9nz0y6afzh3az5j39qahc93cmwkdjf --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.delegation_responses') == null ]]") |
| 79 | + union.succeed("[[ $(docker exec union-v1-union-v1-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query staking delegations union1asxs295fuy7jph8p8eqtc2r8zxggdc204s7unx --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.delegation_responses') == null ]]") |
| 80 | + union.succeed("[[ $(docker exec union-v1-union-v1-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query staking delegations union1fktal7292h36h7glff5edq59vpdfn7504duw5m --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.delegation_responses') == null ]]") |
81 | 81 |
|
82 | 82 | # Ensure legacy tokens are burnt
|
83 |
| - union.succeed("[[ $(docker exec devnet-union-minimal-union-minimal-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query bank denom-owners muno --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.denom_owners') == null ]]") |
84 |
| - union.succeed("[[ $(docker exec devnet-union-minimal-union-minimal-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query bank denom-owners ugas --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.denom_owners') == null ]]") |
85 |
| - union.succeed("[[ $(docker exec devnet-union-minimal-union-minimal-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query bank denom-owners upoa --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.denom_owners') == null ]]") |
| 83 | + union.succeed("[[ $(docker exec union-v1-union-v1-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query bank denom-owners au --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.denom_owners') == null ]]") |
| 84 | + union.succeed("[[ $(docker exec union-v1-union-v1-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query bank denom-owners ugas --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.denom_owners') == null ]]") |
| 85 | + union.succeed("[[ $(docker exec union-v1-union-v1-0-1 ${unionvisorBin} -l off --root ./.unionvisor call --bundle ${bundle} -- query bank denom-owners upoa --output json | ${pkgs.lib.meta.getExe pkgs.jq} '.denom_owners') == null ]]") |
86 | 86 | '';
|
87 | 87 |
|
88 | 88 | nodes = {
|
|
0 commit comments