-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(params) update docs for updating params (#132)
- Loading branch information
Showing
5 changed files
with
128 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
sidebar_position: 7 | ||
--- | ||
|
||
# Drafting a proposal | ||
|
||
The `draft-proposal` command in the Evmos CLI is part of the Cosmos-SDK | ||
governance module and is used to generate a draft proposal JSON file. | ||
This generated proposal JSON file contains a skeleton structure for a governance proposal. | ||
|
||
## Command Syntax | ||
|
||
```bash | ||
evmosd tx gov draft-proposal [flags] | ||
``` | ||
|
||
## Usage | ||
|
||
To create a draft proposal using the `evmosd tx gov draft-proposal` command, follow these steps: | ||
|
||
1. Run the command | ||
|
||
```bash | ||
evmosd tx gov draft-proposal | ||
``` | ||
|
||
2. The command will present a list of proposal types for selection. | ||
The available options typically include: | ||
|
||
```bash | ||
Use the arrow keys to navigate: ↓ ↑ → ← | ||
? Select proposal type: | ||
text | ||
community-pool-spend | ||
software-upgrade | ||
cancel-software-upgrade | ||
▸ other | ||
``` | ||
|
||
In case you don't find the required proposal (e.g. update params), | ||
choose the `other` option. It will show an extensive list of the supported messages: | ||
```bash | ||
✔ other | ||
Use the arrow keys to navigate: ↓ ↑ → ← | ||
? Select proposal message type:: | ||
↑ /evmos.erc20.v1.MsgUpdateParams | ||
▸ /evmos.incentives.v1.MsgUpdateParams | ||
/evmos.inflation.v1.MsgUpdateParams | ||
/evmos.recovery.v1.MsgUpdateParams | ||
↓ /evmos.revenue.v1.MsgCancelRevenue | ||
``` | ||
3. Follow the on-screen instructions to complete the process. | ||
The command will generate a JSON file that you can use for your proposal. | ||
4. Once the JSON file is generated, | ||
you can make any necessary changes to the proposal information within the file. | ||
5. Finally, use the generated JSON file as input when submitting | ||
your proposal using the `evmosd tx gov submit-proposal` command. | ||
```bash | ||
evmosd tx gov submit-proposal draft_proposal.json [flags] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters