Skip to content

Commit 930ec91

Browse files
committed
fix: rename minimal to v1
1 parent e810b65 commit 930ec91

File tree

6 files changed

+111
-28
lines changed

6 files changed

+111
-28
lines changed

draft_metadata.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"title": "Update Slashing Params",
3+
"authors": [
4+
"Union Foundation"
5+
],
6+
"summary": "Update slashing params",
7+
"details": "Updates slashing params to enforce more strict uptime and punish double slashing",
8+
"proposal_forum_url": ".",
9+
"vote_option_context": "yes/no"
10+
}

draft_proposal.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"messages": [
3+
{
4+
"@type": "/cosmos.slashing.v1beta1.MsgUpdateParams",
5+
"authority": "union10d07y265gmmuvt4z0w9aw880jnsr700js4jdcz",
6+
"params": {
7+
"signed_blocks_window": "80000",
8+
"min_signed_per_window": "0.800000000000000000",
9+
"downtime_jail_duration": "1m0s",
10+
"slash_fraction_double_sign": "0.050000000000000000",
11+
"slash_fraction_downtime": "0.000000000000000000"
12+
}
13+
}
14+
],
15+
"metadata": "",
16+
"deposit": "300000000000000000000000au",
17+
"title": "Update Slashing Params",
18+
"summary": "Update slashing params to enforce more strict up-time and punish double signing",
19+
"expedited": false
20+
}

e2e/e2e.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
memorySize = 4 * 1024;
9797
arion = {
9898
backend = "docker";
99-
projects.union-devnet.settings = networks.modules.devnet-union-minimal;
99+
projects.union-devnet.settings = networks.modules.union-v1;
100100
};
101101
};
102102
};

e2e/upgrades.nix

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ let
3939
'';
4040

4141
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')
4343
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 1au'))
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'))
4545
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)
4848
4949
${forEachNode (
5050
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 1au'))"
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'))"
5252
)}
5353
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)
5555
5656
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)
5757
'';
@@ -71,18 +71,18 @@ in
7171
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)
7272
7373
# 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 ]]")
7575
7676
# 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 ]]")
8181
8282
# 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 au --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 ]]")
8686
'';
8787

8888
nodes = {

networks/devnet.nix

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,11 @@
181181
portIncrease = 300;
182182
};
183183

184-
devnet-union-minimal = mkCosmosDevnet {
184+
union-v1 = mkCosmosDevnet {
185185
node = (get-flake inputs.v1_0_0).packages.${system}.uniond;
186-
chainId = "union-minimal-devnet-1";
187-
chainName = "union-minimal";
188-
denom = "au";
186+
chainId = "union-v1-1";
187+
chainName = "union-v1";
188+
denom = "muno";
189189
keyType = "bn254";
190190
validatorCount = 4;
191191
portIncrease = 0;
@@ -199,7 +199,7 @@
199199
tokenfactory.params = {
200200
denom_creation_fee = [
201201
{
202-
denom = "au";
202+
denom = "muno";
203203
amount = "10000000";
204204
}
205205
];
@@ -217,8 +217,8 @@
217217
export UNIONVISOR_BUNDLE=${self'.packages.bundle-union-1-next}
218218
219219
${pkgs.lib.getExe self'.packages.unionvisor} init \
220-
--moniker union-devnet-minimal \
221-
--network union-minimal-devnet-1 \
220+
--moniker union-v1 \
221+
--network union-v1-1 \
222222
--seeds "" \
223223
224224
cp --no-preserve=mode -RL home/* .unionvisor/home
@@ -232,7 +232,7 @@
232232
--api.rpc-max-body-bytes 100000000 \
233233
--grpc.address 0.0.0.0:9090 \
234234
--log_level rpc-server:warn,x/wasm:debug,*:info \
235-
--minimum-gas-prices "0au" \
235+
--minimum-gas-prices "0muno,0au" \
236236
--rpc.laddr tcp://0.0.0.0:26657 \
237237
--rpc.pprof_laddr 0.0.0.0:6060 \
238238
--rpc.unsafe
@@ -252,7 +252,7 @@
252252
devnet-stargaze = devnet-stargaze.services;
253253
devnet-osmosis = devnet-osmosis.services;
254254

255-
devnet-union-minimal = devnet-union-minimal.services;
255+
union-v1 = union-v1.services;
256256

257257
devnet-eth =
258258
{
@@ -337,7 +337,7 @@
337337
// mkNamedModule "devnet-stargaze"
338338
// mkNamedModule "devnet-osmosis"
339339
// mkNamedModule "devnet-simd"
340-
// mkNamedModule "devnet-union-minimal"
340+
// mkNamedModule "union-v1"
341341
// mkNamedModule "devnet-union";
342342

343343
mkNamedSpec = name: {
@@ -357,7 +357,7 @@
357357
// mkNamedSpec "devnet-stargaze"
358358
// mkNamedSpec "devnet-osmosis"
359359
// mkNamedSpec "devnet-simd"
360-
// mkNamedSpec "devnet-union-minimal"
360+
// mkNamedSpec "union-v1"
361361
// mkNamedSpec "devnet-union";
362362

363363
mkNamedBuild = name: {
@@ -371,7 +371,7 @@
371371
// mkNamedBuild "devnet-stargaze"
372372
// mkNamedBuild "devnet-osmosis"
373373
// mkNamedBuild "devnet-simd"
374-
// mkNamedBuild "devnet-union-minimal"
374+
// mkNamedBuild "union-v1"
375375
// mkNamedBuild "devnet-union";
376376

377377
mkArionBuild = name: ciCondition: {
@@ -452,7 +452,7 @@
452452
// (mkArionBuild "devnet-stargaze" (system == "x86_64-linux"))
453453
// (mkArionBuild "devnet-osmosis" (system == "x86_64-linux"))
454454
// (mkArionBuild "devnet-eth" (system == "x86_64-linux"))
455-
// (mkArionBuild "devnet-union-minimal" (system == "x86_64-linux"))
455+
// (mkArionBuild "union-v1" (system == "x86_64-linux"))
456456
// (builtins.foldl' (acc: elem: elem.scripts or { } // acc) { } allCosmosDevnets);
457457

458458
_module.args.networks.modules = modules;

slashing-tx.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"body": {
3+
"messages": [
4+
{
5+
"@type": "/cosmos.gov.v1.MsgSubmitProposal",
6+
"messages": [
7+
{
8+
"@type": "/cosmos.slashing.v1beta1.MsgUpdateParams",
9+
"authority": "union10d07y265gmmuvt4z0w9aw880jnsr700js4jdcz",
10+
"params": {
11+
"signed_blocks_window": "80000",
12+
"min_signed_per_window": "0.800000000000000000",
13+
"downtime_jail_duration": "60s",
14+
"slash_fraction_double_sign": "0.050000000000000000",
15+
"slash_fraction_downtime": "0.000000000000000000"
16+
}
17+
}
18+
],
19+
"initial_deposit": [
20+
{
21+
"denom": "au",
22+
"amount": "300000000000000000000000"
23+
}
24+
],
25+
"proposer": "union1jghf26u5vwrxfnd57jxezsnshzczwwgyhxwjpe",
26+
"metadata": "",
27+
"title": "Update Slashing Params",
28+
"summary": "Update slashing params to enforce more strict up-time and punish double signing",
29+
"expedited": false
30+
}
31+
],
32+
"memo": "",
33+
"timeout_height": "0",
34+
"extension_options": [],
35+
"non_critical_extension_options": []
36+
},
37+
"auth_info": {
38+
"signer_infos": [],
39+
"fee": {
40+
"amount": [
41+
{
42+
"denom": "au",
43+
"amount": "71535600000000"
44+
}
45+
],
46+
"gas_limit": "715356",
47+
"payer": "",
48+
"granter": ""
49+
},
50+
"tip": null
51+
},
52+
"signatures": []
53+
}

0 commit comments

Comments
 (0)