cli

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FlagName        = "name"
	FlagCert        = "cert"
	FlagPower       = "power"
	FlagDescription = "description"

	FlagNodeID = "node-id"
	FlagIP     = "ip"
)

Variables

View Source
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

func GetCmdQueryNode() *cobra.Command

GetCmdQueryNode implements the query node command.

func GetCmdQueryNodes

func GetCmdQueryNodes() *cobra.Command

GetCmdQueryNodes implements the query nodes command.

func GetCmdQueryParams

func GetCmdQueryParams() *cobra.Command

GetCmdQueryParams implements the params query command.

func GetCmdQueryValidator

func GetCmdQueryValidator() *cobra.Command

GetCmdQueryValidator implements the validator query command.

func GetCmdQueryValidators

func GetCmdQueryValidators() *cobra.Command

GetCmdQueryValidators implements the query all validators command.

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the cli query commands for this module

func NewCreateValidatorCmd

func NewCreateValidatorCmd() *cobra.Command

NewCreateValidatorCmd implements the create validator command handler.

func NewGrantNodeCmd

func NewGrantNodeCmd() *cobra.Command

NewGrantNodeCmd implements granting a node access command

func NewRemoveValidatorCmd

func NewRemoveValidatorCmd() *cobra.Command

NewRemoveValidatorCmd implements the remove validator command handler.

func NewRevokeNodeCmd

func NewRevokeNodeCmd() *cobra.Command

NewRevokeNodeCmd implements revoking access from a node command

func NewTxCmd

func NewTxCmd() *cobra.Command

func NewUpdateValidatorCmd

func NewUpdateValidatorCmd() *cobra.Command

NewUpdateValidatorCmd implements the update validator command handler.

func PrepareFlagsForTxCreateValidator

func PrepareFlagsForTxCreateValidator(config *cfg.Config, nodeID, chainID string, cert string)

PrepareFlagsForTxCreateValidator prepare flags in config

Types

This section is empty.

Jump to

Keyboard shortcuts

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