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 ¶
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 ¶
GetAuthority gets the authority string from the flagSet or returns the default.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.