cli

package
v1.3.0-dev.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagAddress = "address"
	FlagPubKey  = "pubkey"

	FlagMoniker  = "moniker"
	FlagIdentity = "identity"
	FlagWebsite  = "website"
	FlagDetails  = "details"

	FlagNodeID = "node-id"
	FlagIP     = "ip"
	FlagState  = "state"

	FlagGenesisFormat = "genesis-format"
	FlagInfo          = "info"
)

Variables

View Source
var DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds())

Functions

func BuildCreateValidatorMsg

func BuildCreateValidatorMsg(clientCtx client.Context, config TxCreateValidatorConfig, txBldr tx.Factory, generateOnly bool) (tx.Factory, sdk.Msg, error)

BuildCreateValidatorMsg makes a new MsgCreateValidator.

func CmdApproveDisableValidator added in v0.10.0

func CmdApproveDisableValidator() *cobra.Command

func CmdCreateValidator added in v0.6.0

func CmdCreateValidator() *cobra.Command

func CmdDisableValidator added in v0.10.0

func CmdDisableValidator() *cobra.Command

func CmdEnableValidator added in v0.10.0

func CmdEnableValidator() *cobra.Command

func CmdListDisabledValidator added in v0.10.0

func CmdListDisabledValidator() *cobra.Command

func CmdListLastValidatorPower added in v0.6.0

func CmdListLastValidatorPower() *cobra.Command

func CmdListProposedDisableValidator added in v0.10.0

func CmdListProposedDisableValidator() *cobra.Command

func CmdListRejectedNode added in v0.11.0

func CmdListRejectedNode() *cobra.Command

func CmdListValidator added in v0.6.0

func CmdListValidator() *cobra.Command

func CmdProposeDisableValidator added in v0.10.0

func CmdProposeDisableValidator() *cobra.Command

func CmdRejectDisableValidator added in v0.11.0

func CmdRejectDisableValidator() *cobra.Command

func CmdShowDisabledValidator added in v0.10.0

func CmdShowDisabledValidator() *cobra.Command

func CmdShowLastValidatorPower added in v0.6.0

func CmdShowLastValidatorPower() *cobra.Command

func CmdShowProposedDisableValidator added in v0.10.0

func CmdShowProposedDisableValidator() *cobra.Command

func CmdShowRejectedNode added in v0.11.0

func CmdShowRejectedNode() *cobra.Command

func CmdShowValidator added in v0.6.0

func CmdShowValidator() *cobra.Command

func CreateValidatorMsgFlagSet added in v0.6.0

func CreateValidatorMsgFlagSet(ipDefault string) (fs *flag.FlagSet)

Return the flagset, particular flags, and a description of defaults this is anticipated to be used with the gen-tx.

func FlagSetPublicKey added in v0.6.0

func FlagSetPublicKey() *flag.FlagSet

FlagSetPublicKey Returns the flagset for Public Key related operations.

func GetQueryCmd

func GetQueryCmd(queryRoute string) *cobra.Command

GetQueryCmd returns the cli query commands for this module.

func GetTxCmd

func GetTxCmd() *cobra.Command

GetTxCmd returns the transaction commands for this module.

Types

type TxCreateValidatorConfig added in v0.6.0

type TxCreateValidatorConfig struct {
	ChainID string
	NodeID  string
	Moniker string

	PubKey cryptotypes.PubKey

	IP       string
	Website  string
	Details  string
	Identity string
}

func PrepareConfigForTxCreateValidator added in v0.6.0

func PrepareConfigForTxCreateValidator(flagSet *flag.FlagSet, moniker, nodeID, chainID string, valPubKey cryptotypes.PubKey) (TxCreateValidatorConfig, error)

Jump to

Keyboard shortcuts

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