cli

package
v0.48.86 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// Deprecated: only used for v1beta1 legacy proposals.
	FlagTitle = "title"
	// Deprecated: only used for v1beta1 legacy proposals.
	FlagDescription = "description"
	// Deprecated: only used for v1beta1 legacy proposals.
	FlagProposalType = "type"
	FlagDeposit      = "deposit"

	// Deprecated: only used for v1beta1 legacy proposals.
	FlagProposal = "proposal"
)

Proposal flags

Variables

ProposalFlags defines the core required fields of a legacy proposal. It is used to verify that these values are not provided in conjunction with a JSON proposal file.

Functions

func GetCmdQueryDeposit added in v0.25.0

func GetCmdQueryDeposit() *cobra.Command

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

func GetCmdQueryDeposits added in v0.25.0

func GetCmdQueryDeposits() *cobra.Command

GetCmdQueryDeposits implements the command to query for proposal deposits.

func GetCmdQueryParam added in v0.30.0

func GetCmdQueryParam() *cobra.Command

GetCmdQueryParam implements the query param command.

func GetCmdQueryParams added in v0.27.0

func GetCmdQueryParams() *cobra.Command

GetCmdQueryParams implements the query params command.

func GetCmdQueryProposal

func GetCmdQueryProposal() *cobra.Command

GetCmdQueryProposal implements the query proposal command.

func GetCmdQueryProposals added in v0.24.0

func GetCmdQueryProposals() *cobra.Command

GetCmdQueryProposals implements a query proposals command. Command to Get Proposals Information.

func GetCmdQueryProposer added in v0.30.0

func GetCmdQueryProposer() *cobra.Command

GetCmdQueryProposer implements the query proposer command.

func GetCmdQueryTally added in v0.25.0

func GetCmdQueryTally() *cobra.Command

GetCmdQueryTally implements the command to query for proposal tally result.

func GetCmdQueryVote

func GetCmdQueryVote() *cobra.Command

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

func GetCmdQueryVotes added in v0.23.0

func GetCmdQueryVotes() *cobra.Command

GetCmdQueryVotes implements the command to query for proposal votes.

func GetQueryCmd added in v0.48.84

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the cli query commands for this module

func NewCmdDeposit added in v0.48.84

func NewCmdDeposit() *cobra.Command

NewCmdDeposit implements depositing tokens for an active proposal.

func NewCmdDraftProposal added in v0.48.84

func NewCmdDraftProposal() *cobra.Command

NewCmdDraftProposal let a user generate a draft proposal.

func NewCmdSubmitLegacyProposal added in v0.48.84

func NewCmdSubmitLegacyProposal() *cobra.Command

NewCmdSubmitLegacyProposal implements submitting a proposal transaction command. Deprecated: please use NewCmdSubmitProposal instead.

func NewCmdSubmitProposal added in v0.48.84

func NewCmdSubmitProposal() *cobra.Command

NewCmdSubmitProposal implements submitting a proposal transaction command.

func NewCmdVote added in v0.48.84

func NewCmdVote() *cobra.Command

NewCmdVote implements creating a new vote command.

func NewCmdWeightedVote added in v0.48.84

func NewCmdWeightedVote() *cobra.Command

NewCmdWeightedVote implements creating a new weighted vote command.

func NewTxCmd added in v0.48.84

func NewTxCmd(legacyPropCmds []*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 legacy "proposal" child commands. These commands are respective to the proposal type handlers that are implemented in other modules but are mounted under the governance CLI (eg. parameter change proposals).

func Prompt added in v0.48.84

func Prompt[T any](data T, namePrefix string) (T, error)

Prompt prompts the user for all values of the given type. data is the struct to be filled namePrefix is the name to be displayed as "Enter <namePrefix> <field>"

Types

This section is empty.

Jump to

Keyboard shortcuts

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