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
evmosd tx gov draft-proposal [flags]
Usage
To create a draft proposal using the evmosd tx gov draft-proposal
command, follow these steps:
Run the command
evmosd tx gov draft-proposal
The command will present a list of proposal types for selection. The available options typically include:
Use the arrow keys to navigate: ↓ ↑ → ←
? Select proposal type:
text
community-pool-spend
software-upgrade
cancel-software-upgrade
▸ otherIn 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:✔ other
Use the arrow keys to navigate: ↓ ↑ → ←
? Select proposal message type::
↑ /evmos.erc20.v1.MsgConvertERC20
▸ /evmos.erc20.v1.MsgUpdateParams
/evmos.vesting.v2.MsgFundVestingAccount
/evmos.vesting.v2.MsgUpdateVestingFunder
↓ /evmos.inflation.v1.MsgUpdateParamsFollow the on-screen instructions to complete the process. The command will generate a JSON file that you can use for your proposal.
Once the JSON file is generated, you can make any necessary changes to the proposal information within the file.
Finally, use the generated JSON file as input when submitting your proposal using the
evmosd tx gov submit-proposal
command.evmosd tx gov submit-proposal draft_proposal.json [flags]