Documentation ¶
Index ¶
- Constants
- Variables
- func BuildCreateValidatorMsg(clientCtx client.Context, txBldr tx.Factory) (tx.Factory, sdk.Msg, error)
- func CreateValidatorMsgHelpers(ipDefault string) (fs *flag.FlagSet, pubkeyFlag, powerFlag, defaultsDesc string)
- func GetCmdQueryNode() *cobra.Command
- func GetCmdQueryNodes() *cobra.Command
- func GetCmdQueryParams() *cobra.Command
- func GetCmdQueryValidator() *cobra.Command
- func GetCmdQueryValidators() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func NewCreateValidatorCmd() *cobra.Command
- func NewGrantNodeCmd() *cobra.Command
- func NewRemoveValidatorCmd() *cobra.Command
- func NewRevokeNodeCmd() *cobra.Command
- func NewTxCmd() *cobra.Command
- func NewUpdateValidatorCmd() *cobra.Command
- func PrepareFlagsForTxCreateValidator(config *cfg.Config, nodeID, chainID string, cert string)
Constants ¶
const ( FlagName = "name" FlagCert = "cert" FlagPower = "power" FlagDescription = "description" FlagNodeID = "node-id" FlagIP = "ip" )
Variables ¶
var ( FsCreateValidator = flag.NewFlagSet("", flag.ContinueOnError) FsUpdateValidator = flag.NewFlagSet("", flag.ContinueOnError) FsGrantNode = flag.NewFlagSet("", flag.ContinueOnError) )
common flagsets to add to various functions
Functions ¶
func BuildCreateValidatorMsg ¶
func BuildCreateValidatorMsg(clientCtx client.Context, txBldr tx.Factory) (tx.Factory, sdk.Msg, error)
BuildCreateValidatorMsg makes a new MsgCreateValidator.
func CreateValidatorMsgHelpers ¶
func CreateValidatorMsgHelpers(ipDefault string) (fs *flag.FlagSet, pubkeyFlag, powerFlag, defaultsDesc string)
CreateValidatorMsgHelpers Return the flagset, particular flags, and a description of defaults this is anticipated to be used with the gen-tx
func GetCmdQueryNode ¶
GetCmdQueryNode implements the query node command.
func GetCmdQueryNodes ¶
GetCmdQueryNodes implements the query nodes command.
func GetCmdQueryParams ¶
GetCmdQueryParams implements the params query command.
func GetCmdQueryValidator ¶
GetCmdQueryValidator implements the validator query command.
func GetCmdQueryValidators ¶
GetCmdQueryValidators implements the query all validators command.
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module
func NewCreateValidatorCmd ¶
NewCreateValidatorCmd implements the create validator command handler.
func NewGrantNodeCmd ¶
NewGrantNodeCmd implements granting a node access command
func NewRemoveValidatorCmd ¶
NewRemoveValidatorCmd implements the remove validator command handler.
func NewRevokeNodeCmd ¶
NewRevokeNodeCmd implements revoking access from a node command
func NewUpdateValidatorCmd ¶
NewUpdateValidatorCmd implements the update validator command handler.
Types ¶
This section is empty.