provcli

package
v1.19.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagAuthority = "authority"
)

Variables

View Source
var (
	// DefaultAuthorityAddr is the default authority to provide governance proposal messages.
	// It is defined as a sdk.AccAddress to be independent of global bech32 HRP definition.
	DefaultAuthorityAddr = authtypes.NewModuleAddress(govtypes.ModuleName)
)

Functions

func AddAuthorityFlagToCmd

func AddAuthorityFlagToCmd(cmd *cobra.Command)

AddAuthorityFlagToCmd adds the authority flag to a command.

func GenerateOrBroadcastTxCLIAsGovProp

func GenerateOrBroadcastTxCLIAsGovProp(clientCtx client.Context, flagSet *pflag.FlagSet, msgs ...sdk.Msg) error

GenerateOrBroadcastTxCLIAsGovProp wraps the provided msgs in a governance proposal and calls GenerateOrBroadcastTxCLI for that proposal. At least one msg is required.

This uses flags added by govcli.AddGovPropFlagsToCmd to fill in the rest of the proposal.

func GetAuthority

func GetAuthority(flagSet *pflag.FlagSet) string

GetAuthority gets the authority string from the flagSet or returns the default.

Types

This section is empty.

Jump to

Keyboard shortcuts

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