Documentation ¶
Index ¶
- Constants
- Variables
- func GetCmdDeposit(cdc *codec.Codec) *cobra.Command
- func GetCmdQueryDeposit(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryDeposits(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryParam(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryParams(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryProposal(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryProposals(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryProposer(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryTally(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryVote(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryVotes(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdSubmitProposal(cdc *codec.Codec) *cobra.Command
- func GetCmdVote(cdc *codec.Codec) *cobra.Command
- func GetQueryCmd(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetTxCmd(storeKey string, cdc *codec.Codec, pcmds []*cobra.Command) *cobra.Command
- func NewCmdDeposit(cdc codec.Marshaler, txg tx.Generator, ar tx.AccountRetriever) *cobra.Command
- func NewCmdSubmitProposal(cdc codec.Marshaler, txg tx.Generator, ar tx.AccountRetriever, ...) *cobra.Command
- func NewCmdVote(cdc codec.Marshaler, txg tx.Generator, ar tx.AccountRetriever) *cobra.Command
- func NewTxCmd(cdc codec.Marshaler, txg tx.Generator, ar tx.AccountRetriever, ...) *cobra.Command
Constants ¶
const ( FlagTitle = "title" FlagDescription = "description" 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 GetCmdDeposit ¶
GetCmdDeposit implements depositing tokens for an active proposal.
func GetCmdQueryDeposit ¶ added in v0.25.0
Command to Get a specific Deposit Information GetCmdQueryDeposit implements the query proposal deposit command.
func GetCmdQueryDeposits ¶ added in v0.25.0
GetCmdQueryDeposits implements the command to query for proposal deposits.
func GetCmdQueryParam ¶ added in v0.30.0
GetCmdQueryProposal implements the query proposal command.
func GetCmdQueryParams ¶ added in v0.27.0
GetCmdQueryProposal implements the query proposal command.
func GetCmdQueryProposal ¶
GetCmdQueryProposal implements the query proposal command.
func GetCmdQueryProposals ¶ added in v0.24.0
GetCmdQueryProposals implements a query proposals command.
func GetCmdQueryProposer ¶ added in v0.30.0
GetCmdQueryProposer implements the query proposer command.
func GetCmdQueryTally ¶ added in v0.25.0
GetCmdQueryTally implements the command to query for proposal tally result.
func GetCmdQueryVote ¶
Command to Get a Proposal Information GetCmdQueryVote implements the query proposal vote command.
func GetCmdQueryVotes ¶ added in v0.23.0
GetCmdQueryVotes implements the command to query for proposal votes.
func GetCmdSubmitProposal ¶
GetCmdSubmitProposal implements submitting a proposal transaction command.
func GetCmdVote ¶
GetCmdVote implements creating a new vote command.
func GetQueryCmd ¶ added in v1.0.0
GetQueryCmd returns the cli query commands for this module
func GetTxCmd ¶ added in v1.0.0
GetTxCmd 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).
func NewCmdDeposit ¶ added in v1.0.0
NewCmdDeposit implements depositing tokens for an active proposal.
func NewCmdSubmitProposal ¶ added in v1.0.0
func NewCmdSubmitProposal( cdc codec.Marshaler, txg tx.Generator, ar tx.AccountRetriever, newMsgFn func() types.MsgSubmitProposalI) *cobra.Command
NewCmdSubmitProposal implements submitting a proposal transaction command.
func NewCmdVote ¶ added in v1.0.0
NewCmdVote implements creating a new vote command.
func NewTxCmd ¶ added in v1.0.0
func NewTxCmd( cdc codec.Marshaler, txg tx.Generator, ar tx.AccountRetriever, newMsgFn func() types.MsgSubmitProposalI, pcmds []*cobra.Command) *cobra.Command
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.