governance

package
v2.10.0-beta.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// ModuleName is the name of the governance module name.
	// It should match the module name of the cosmossdk.io/x/gov module.
	ModuleName = "gov"

	FlagDeposit   = "deposit"
	FlagMetadata  = "metadata"
	FlagTitle     = "title"
	FlagSummary   = "summary"
	FlagExpedited = "expedited"
)

Variables

This section is empty.

Functions

func AddGovPropFlagsToCmd

func AddGovPropFlagsToCmd(cmd *cobra.Command)

AddGovPropFlagsToCmd adds governance proposal flags to the provided command.

func ReadGovPropCmdFlags

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

ReadGovPropCmdFlags parses a MsgSubmitProposal from the provided context and flags.

func SetGovMsgs

func SetGovMsgs(proposal *govv1.MsgSubmitProposal, msgs ...gogoproto.Message) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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