Documentation ¶
Index ¶
- Constants
- Variables
- func GetCmdQueryDeposit() *cobra.Command
- func GetCmdQueryDeposits() *cobra.Command
- func GetCmdQueryParam() *cobra.Command
- func GetCmdQueryParams() *cobra.Command
- func GetCmdQueryProposal() *cobra.Command
- func GetCmdQueryProposals() *cobra.Command
- func GetCmdQueryProposer() *cobra.Command
- func GetCmdQueryTally() *cobra.Command
- func GetCmdQueryVote() *cobra.Command
- func GetCmdQueryVotes() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func NewCmdDeposit() *cobra.Command
- func NewCmdSubmitProposal() *cobra.Command
- func NewCmdVote() *cobra.Command
- func NewCmdWeightedVote() *cobra.Command
- func NewTxCmd(propCmds []*cobra.Command) *cobra.Command
Constants ¶
const ( FlagTitle = "title" FlagDescription = "description" FlagProposalType = "type" FlagDeposit = "deposit" FlagProposal = "proposal" )
Proposal flags
Variables ¶
var ProposalFlags = []string{ FlagTitle, FlagDescription, FlagProposalType, FlagDeposit, }
ProposalFlags defines the core required fields of a proposal. It is used to verify that these values are not provided in conjunction with a JSON proposal file.
Functions ¶
func GetCmdQueryDeposit ¶
GetCmdQueryDeposit implements the query proposal deposit command. Command to get a specific Deposit Information
func GetCmdQueryDeposits ¶
GetCmdQueryDeposits implements the command to query for proposal deposits.
func GetCmdQueryParam ¶
GetCmdQueryParam implements the query param command.
func GetCmdQueryParams ¶
GetCmdQueryParams implements the query params command.
func GetCmdQueryProposal ¶
GetCmdQueryProposal implements the query proposal command.
func GetCmdQueryProposals ¶
GetCmdQueryProposals implements a query proposals command. Command to Get a Proposal Information.
func GetCmdQueryProposer ¶
GetCmdQueryProposer implements the query proposer command.
func GetCmdQueryTally ¶
GetCmdQueryTally implements the command to query for proposal tally result.
func GetCmdQueryVote ¶
GetCmdQueryVote implements the query proposal vote command. Command to Get a Proposal Information.
func GetCmdQueryVotes ¶
GetCmdQueryVotes implements the command to query for proposal votes.
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module
func NewCmdDeposit ¶ added in v0.43.0
NewCmdDeposit implements depositing tokens for an active proposal.
func NewCmdSubmitProposal ¶ added in v0.43.0
NewCmdSubmitProposal implements submitting a proposal transaction command.
func NewCmdVote ¶ added in v0.43.0
NewCmdVote implements creating a new vote command.
func NewCmdWeightedVote ¶ added in v0.45.0
NewCmdWeightedVote implements creating a new weighted vote command.
func NewTxCmd ¶ added in v0.43.0
NewTxCmd returns the transaction commands for this module governance ModuleClient is slightly different from other ModuleClients in that it contains a slice of "proposal" child commands. These commands are respective to proposal type handlers that are implemented in other modules but are mounted under the governance CLI (eg. parameter change proposals).
Types ¶
This section is empty.