cli

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagTitle       = "title"
	FlagDescription = "description"

	FlagDeposit = "deposit"

	FlagProposal = "proposal"
)

Proposal flags

Variables

View Source
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

func GetCmdDeposit(cdc *codec.Codec) *cobra.Command

func GetCmdQueryDeposit

func GetCmdQueryDeposit(queryRoute string, cdc *codec.Codec) *cobra.Command

Command to Get a specific Deposit Information GetCmdQueryDeposit implements the query proposal deposit command.

func GetCmdQueryDeposits

func GetCmdQueryDeposits(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryDeposits implements the command to query for proposal deposits.

func GetCmdQueryParam

func GetCmdQueryParam(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryProposal implements the query proposal command.

func GetCmdQueryParams

func GetCmdQueryParams(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryProposal implements the query proposal command.

func GetCmdQueryProposal

func GetCmdQueryProposal(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryProposal implements the query proposal command.

func GetCmdQueryProposals

func GetCmdQueryProposals(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryProposals implements a query proposals command.

func GetCmdQueryProposer

func GetCmdQueryProposer(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryProposer implements the query proposer command.

func GetCmdQueryTally

func GetCmdQueryTally(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryTally implements the command to query for proposal tally result.

func GetCmdQueryVote

func GetCmdQueryVote(queryRoute string, cdc *codec.Codec) *cobra.Command

Command to Get a Proposal Information GetCmdQueryVote implements the query proposal vote command.

func GetCmdQueryVotes

func GetCmdQueryVotes(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryVotes implements the command to query for proposal votes.

func GetCmdSubmitProposal

func GetCmdSubmitProposal(cdc *codec.Codec) *cobra.Command

func GetCmdSubmitSoftwareUpgradeProposal

func GetCmdSubmitSoftwareUpgradeProposal(cdc *codec.Codec) *cobra.Command

func GetCmdVote

func GetCmdVote(cdc *codec.Codec) *cobra.Command

func GetQueryCmd

func GetQueryCmd(queryRoute string, cdc *codec.Codec) *cobra.Command

GetQueryCmd returns the cli query commands for this module

func GetTxCmd

func GetTxCmd(storeKey string, cdc *codec.Codec, pcmds []*cobra.Command) *cobra.Command

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).

Types

type SoftwareUpgradeProposalJSON

type SoftwareUpgradeProposalJSON struct {
	Title        string   `json:"title"`
	Description  string   `json:"description"`
	Type         string   `json:"type"`
	Deposit      sdk.Coin `json:"deposit"`
	Version      uint64   `json:"version"`
	Software     string   `json:"software"`
	SwitchHeight uint64   `json:"switch_height"`
	Threshold    sdk.Dec  `json:"threshold"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL