Skip to content

Commit fa86df3

Browse files
committed
Update instructions for submitting proposals
1 parent 57bf21c commit fa86df3

File tree

1 file changed

+18
-28
lines changed

1 file changed

+18
-28
lines changed

docs/upgrades/propose-software-upgrade.md

Lines changed: 18 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,26 @@ The next steps are describing the general flow for making a proposal:
2525
#### Command for sending proposal
2626

2727
```bash
28-
cheqd-noded tx gov submit-proposal software-upgrade upgrade_to_0.3 --title "Upgrade to 0.3 version" --description "This proposal is about new version of our application." --upgrade-height <upgrade height> --from <operator alias> --chain-id <chain_id>
28+
cheqd-noded tx gov submit-legacy-proposal software-upgrade <proposal_name> \
29+
--title "<proposal_title>" \
30+
--description "<proposal_description>" \
31+
--upgrade-height <upgrade_height> \
32+
--upgrade-info <upgrade_info> \
33+
--deposit 8000000000000ncheq \
34+
--from <operator_alias> \
35+
--chain-id cheqd-mainnet-1 \
36+
--gas auto \
37+
--gas-adjustment 1.4 \
38+
--gas-prices 50ncheq
2939
```
3040

3141
The main parameters here are:
3242

33-
- `upgrade_to_0.3` - name of proposal which will be used in `UpgradeHandler` in the new application,
34-
- `--upgrade-height` - height when upgrade process will be occurred,
35-
- `--from` - alias of a key which will be used for signing proposal,
43+
- `proposal_name` - name of proposal which will be used in `UpgradeHandler` in the new application,
44+
- `proposal_description` - proposal description; limited to 255 characters; you can use json markdown to provide links,
45+
- `upgrade_height` - height when upgrade process will be occurred. Keep in mind that this needs to be after voting period has ended.
46+
- `upgrade_info` - link to the upgrade info file, containing new binaries. Needs to contain sha256 checksum. See example - `https://raw.githubusercontent.com/cheqd/cheqd-node/refs/heads/main/networks/mainnet/upgrades/upgrade-v3.json?checksum=sha256:5989f7d5bca686598c315eb74e8eb507d7f9f417d71008a31a6b828c48ce45eb`
47+
- `operator_alias` - alias of a key which will be used for signing proposal,
3648
- `<chain_id>` - identifier of chain which will be used while creating the blockchain.
3749

3850
In case of successful submitting the next command can be used for getting `proposal_id`:
@@ -42,29 +54,6 @@ cheqd-noded query gov proposals
4254
```
4355

4456
This command will return list of all proposals. It's needed to find the last one with corresponding `name` and `title`.
45-
Please, remember this `proposal_id` because it will be used in next steps.
46-
47-
Also, the next command is very useful for getting information about proposal status:
48-
49-
```bash
50-
cheqd-noded query gov proposal <proposal_id>
51-
```
52-
53-
Expected result for this state is `PROPOSAL_STATUS_DEPOSIT_PERIOD`, It means, that pool is in waiting for the first deposit state.
54-
55-
#### Sending deposit
56-
57-
Since getting proposal, the `DEPOSIT` should be set to the pool.It will be return after finishing voting_preiod.
58-
For setting deposit the next command is used:
59-
60-
```bash
61-
cheqd-noded tx gov deposit <proposal_id> 10000000ncheq --from <operator_alias> --chain-id <chain_id>
62-
```
63-
64-
Parameters:
65-
66-
- `<proposal_id>` - proposal identifier from [step](#Command for sending proposal)
67-
In this example, amount of deposit is equal to current `min-deposit` value.
6857

6958
### Voting process
7059

@@ -74,12 +63,13 @@ After getting deposit from the previous step, the `VOTING_PERIOD` will be starte
7463
For setting vote, the next command can be used:
7564

7665
```bash
77-
cheqd-noded tx gov vote <proposal_id> yes --from <operator_alias> --chain-id <chain_id>
66+
cheqd-noded tx gov vote <proposal_id> <vote_option> --from <operator_alias> --chain-id <chain_id> --gas auto --gas-adjustment 1.5 --gas-prices 50ncheq
7867
```
7968

8069
The main parameters here:
8170

8271
- `<proposal_id>` - proposal identifier from [step](#Command for sending proposal)
72+
- `<vote_option>` - the actual vote (it can be `yes`, `no`, `abstain`, `no_with_veto`)
8373

8474
Votes can be queried by sending request:
8575

0 commit comments

Comments
 (0)