gov
This module provides the basic functionalities for Governance.
Available Commands
Name | Description |
---|---|
proposal | Query details of a single proposal |
proposals | Query proposals with optional filter |
vote | Query details of a single vote |
votes | Query votes on a proposal |
deposit | Query details of a deposit |
deposits | Query deposits on a proposal |
tally | Get the tally of a proposal vote |
param | Query the parameters (voting |
params | Query the parameters of the governance process |
proposer | Query which address proposed a proposal with a given ID. |
draft-proposal | Draft any type of proposal |
submit-proposal | Submit a proposal along with an initial deposit |
submit-legacy-proposal | Submit a legacy proposal along with an initial deposit |
deposit | Deposit tokens for an active proposal |
vote | Vote for an active proposal, options: yes/no/no_with_veto/abstain |
weighted-vote | Submit a weighted vote for a given governance proposal |
uptickd query gov proposal
Query details of a proposal.
Query a proposal
uptickd query gov proposals
Query proposals with optional filter.
Name, shorthand | Type | Required | Default | Description |
---|---|---|---|---|
--depositor | string | (optional) filter by proposals deposited on by depositor | ||
--limit | uint | pagination limit of proposals to query for (default 100) | ||
--status | string | (optional) filter proposals by proposal status, status: deposit_period/voting_period/passed/rejected | ||
--voter | string | (optional) filter by proposals voted on by voted |
Query all proposals
Query proposals by conditions
uptickd query gov vote
Query details of a single vote.
Query a vote
uptickd query gov votes
Query votes on a proposal.
Query all votes of a proposal
uptickd query gov deposits
Query details for all deposits on a proposal.
Query all deposits of a proposal
uptickd query gov tally
Query tally of votes on a proposal. You can find the proposal-id by running "uptickd query gov proposals".
Query the statistics of a proposal
uptickd query gov param
Query the parameters (voting|tallying|deposit) of the governance process.
Example:
uptickd query gov params
Query the all the parameters for the governance process.
uptickd query gov proposer
Query which address proposed a proposal with a given ID.
uptickd tx gov draft-proposal
The draft-proposal command allows users to draft any type of proposal. The command returns a draft_proposal.json, to be used by submit-proposal after being completed. The draft_metadata.json is meant to be uploaded to IPFS.
uptickd tx gov submit-proposal
The submit-proposal command allows users to submit a governance proposal along with some messages and metadata. Messages, metadata and deposit are defined in a JSON file.
where proposal.json contains:
uptickd tx gov submit-legacy-proposal
The submit-legacy-proposal command allows users to submit a governance legacy proposal along with an initial deposit. Proposal title, description, type and deposit can be given directly or through a proposal JSON file. Available Commands: , client-create
, client-upgrade
, relayer-register
, set-rules
.
Name, shorthand | Description |
---|---|
community-pool-spend | Submit a community pool spend proposal |
param-change | Submit a parameter change proposal |
software-upgrade | Submit a software upgrade proposal |
cancel-software-upgrade | Cancel the current software upgrade proposal |
uptickd tx gov submit-legacy-proposal community-pool-spend
Submit a community pool spend proposal along with an initial deposit. The proposal details must be supplied via a JSON file.
Where proposal.json contains:
uptickd tx gov submit-legacy-proposal param-change
Submit a parameter proposal along with an initial deposit. The proposal details must be supplied via a JSON file. For values that contains objects, only non-empty fields will be updated.IMPORTANT: Currently parameter changes are evaluated but not validated, so it is very important that any "value" change is valid (ie. correct type and within bounds) for its respective parameter, eg. "MaxValidators" should be an integer and not a decimal.Proper vetting of a parameter change proposal should prevent this from happening (no deposits should occur during the governance process), but it should be noted regardless.
Where proposal.json contains:
uptickd tx gov submit-legacy-proposal software-upgrade
Submit a software upgrade along with an initial deposit. Please specify a unique name and height for the upgrade to take effect.
Flags:
Name, shorthand | Type | Required | Default | Description |
---|---|---|---|---|
--deposit | string | Yes | Deposit of the proposal | |
--title | string | Yes | Title of proposal | |
--description | string | Yes | Description of proposal | |
--upgrade-height | int | The height at which the upgrade must happen |
uptickd tx gov submit-legacy-proposal cancel-software-upgrade
Cancel a software upgrade along with an initial deposit.
Flags:
Name, shorthand | Type | Required | Default | Description |
---|---|---|---|---|
--deposit | string | Yes | Deposit of the proposal | |
--title | string | Yes | Title of proposal | |
--description | string | Yes | Description of proposal |
uptickd tx gov deposit
Submit a deposit for an active proposal. You can find the proposal-id by running "uptickd query gov proposals".
Deposit for an active proposal
uptickd tx gov vote
Submit a vote for an active proposal. You can find the proposal-id by running "uptickd query gov proposals". Vote for an active proposal, options: yes/no/no_with_veto/abstain.
Vote for an active proposal
uptickd tx gov weighted-vote
The weighted-vote command allows users to submit a weighted vote for a given governance proposal.
Last updated