Gov
This module provides the basic functionalities for Governance.
Available Commands
stafihubd query gov proposal
Query details of a proposal.
Query a proposal
stafihubd query gov proposals
Query proposals with optional filter.
Flags:
Query all proposals
Query proposals by conditions
stafihubd query gov vote
Query details of a single vote.
Query a vote
stafihubd query gov votes
Query votes on a proposal.
Query all votes of a proposal
stafihubd query gov deposit
Query details for a single proposal deposit on a proposal by its identifier.
Query a deposit of a proposal
stafihubd query gov deposits
Query details for all deposits on a proposal.
Query all deposits of a proposal
stafihubd query gov tally
Query tally of votes on a proposal. You can find the proposal-id by running "stafihubd query gov proposals".
Query the statistics of a proposal
stafihubd query gov param
Query the parameters (voting|tallying|deposit) of the governance process.
Example:
stafihubd query gov params
Query the all the parameters for the governance process.
stafihubd query gov proposer
Query which address proposed a proposal with a given ID.
stafihubd tx gov submit-proposal
Submit a proposal along with an initial deposit. Proposal title, description, type and deposit can be given directly or through a proposal JSON file. Available Commands: community-pool-spend
, param-change
, software-upgrade
, cancel-software-upgrade
.
stafihubd tx gov submit-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:
stafihubd tx gov submit-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:
stafihubd tx gov submit-proposal software-upgrade
Submit a software upgrade along with an initial deposit. Please specify a unique name and height OR time for the upgrade to take effect.
Flags:
stafihubd tx gov submit-proposal cancel-software-upgrade
Cancel a software upgrade along with an initial deposit.
Flags:
stafihubd tx gov deposit
Submit a deposit for an active proposal. You can find the proposal-id by running "stafihubd query gov proposals".
Deposit for an active proposal
stafihubd tx gov vote
Submit a vote for an active proposal. You can find the proposal-id by running "stafihubd query gov proposals". Vote for an active proposal, options: yes/no/no_with_veto/abstain.
Vote for an active proposal
Last updated