cli

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagAddress  = "validator-address"
	FlagPubKey   = "validator-pubkey"
	FlagName     = "name"
	FlagIdentity = "identity"
	FlagWebsite  = "website"
	FlagDetails  = "details"
	FlagNodeID   = "node-id"
	FlagIP       = "ip"
	FlagState    = "state"
)

nolint

Variables

This section is empty.

Functions

func BuildCreateValidatorMsg

func BuildCreateValidatorMsg(cliCtx context.CLIContext, txBldr auth.TxBuilder,
	isGenesis bool) (auth.TxBuilder, sdk.Msg, error)

BuildCreateValidatorMsg makes a new MsgCreateValidator.

func GetCmdCreateValidator

func GetCmdCreateValidator(cdc *codec.Codec) *cobra.Command

GetCmdCreateValidator implements the create validator command handler.

func GetCmdQueryValidator

func GetCmdQueryValidator(storeName string, cdc *codec.Codec) *cobra.Command

GetCmdQueryValidator implements the node query command.

func GetCmdQueryValidators

func GetCmdQueryValidators(storeName string, cdc *codec.Codec) *cobra.Command

GetCmdQueryValidators implements the query all nodes command.

func GetQueryCmd

func GetQueryCmd(queryRoute string, cdc *codec.Codec) *cobra.Command

GetQueryCmd returns the cli query commands for this module.

func GetTxCmd

func GetTxCmd(storeKey string, cdc *codec.Codec) *cobra.Command

GetTxCmd returns the transaction commands for this module.

func InitValidatorFlags

func InitValidatorFlags() (fs *flag.FlagSet)

Return the flagset for create validator command.

func PrepareFlagsForTxCreateValidator

func PrepareFlagsForTxCreateValidator(
	config *cfg.Config, nodeID, chainID string, valPubKey crypto.PubKey,
)

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