cli

package
v0.55.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 21 Imported by: 413 modules, 853 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	FlagTitle   = "title"
	FlagDeposit = "deposit"

	FlagMetadata  = "metadata"
	FlagSummary   = "summary"
	FlagExpedited = "expedited"

	// Deprecated: only used for v1beta1 legacy proposals.
	FlagProposal = "proposal"
	// Deprecated: only used for v1beta1 legacy proposals.
	FlagDescription = "description"
	// Deprecated: only used for v1beta1 legacy proposals.
	FlagProposalType = "type"
)

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 AddGovPropFlagsToCmd added in v0.47.1

func AddGovPropFlagsToCmd(cmd *cobra.Command)

AddGovPropFlagsToCmd adds flags for defining MsgSubmitProposal fields.

See also ReadGovPropFlags.

func NewCmdCancelProposal added in v0.50.1

func NewCmdCancelProposal() *cobra.Command

NewCmdCancelProposal implements submitting a cancel proposal transaction command.

func NewCmdDeposit

func NewCmdDeposit() *cobra.Command

NewCmdDeposit implements depositing tokens for an active proposal.

func NewCmdDraftProposal added in v0.46.2

func NewCmdDraftProposal() *cobra.Command

NewCmdDraftProposal let a user generate a draft proposal.

func NewCmdSubmitLegacyProposal deprecated added in v0.46.0

func NewCmdSubmitLegacyProposal() *cobra.Command

NewCmdSubmitLegacyProposal implements submitting a proposal transaction command.

Deprecated: please use NewCmdSubmitProposal instead.

func NewCmdSubmitProposal

func NewCmdSubmitProposal() *cobra.Command

NewCmdSubmitProposal implements submitting a proposal transaction command.

func NewCmdVote

func NewCmdVote() *cobra.Command

NewCmdVote implements creating a new vote command.

func NewCmdWeightedVote added in v0.43.0

func NewCmdWeightedVote() *cobra.Command

NewCmdWeightedVote implements creating a new weighted vote command.

func NewTxCmd

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

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>" TODO: when bringing this in autocli, use proto message instead this will simplify the get address logic

func PromptMetadata added in v0.47.5

func PromptMetadata(skip bool) (types.ProposalMetadata, error)

PromptMetadata prompts for proposal metadata or only title and summary if skip is true

func ReadGovPropCmdFlags added in v0.50.15

func ReadGovPropCmdFlags(proposer string, flagSet *pflag.FlagSet) (*govv1.MsgSubmitProposal, error)

ReadGovPropCmdFlags parses a MsgSubmitProposal from the provided context and flags. Setting the messages is up to the caller.

See also AddGovPropFlagsToCmd.

func ReadGovPropFlags deprecated added in v0.47.1

func ReadGovPropFlags(clientCtx client.Context, flagSet *pflag.FlagSet) (*govv1.MsgSubmitProposal, error)

ReadGovPropFlags parses a MsgSubmitProposal from the provided context and flags. Setting the messages is up to the caller.

See also AddGovPropFlagsToCmd.

Deprecated: use ReadPropCmdFlags instead, as this depends on global bech32 prefixes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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