Documentation ¶
Index ¶
- Constants
- Variables
- func BuildCreateValidatorMsg(clientCtx client.Context, config TxCreateValidatorConfig, txBldr tx.Factory, ...) (tx.Factory, sdk.Msg, error)
- func CmdCreateValidator() *cobra.Command
- func CmdListLastValidatorPower() *cobra.Command
- func CmdListValidator() *cobra.Command
- func CmdShowLastValidatorPower() *cobra.Command
- func CmdShowValidator() *cobra.Command
- func CreateValidatorMsgFlagSet(ipDefault string) (fs *flag.FlagSet)
- func FlagSetPublicKey() *flag.FlagSet
- func GetQueryCmd(queryRoute string) *cobra.Command
- func GetTxCmd() *cobra.Command
- type TxCreateValidatorConfig
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" )
Variables ¶
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 CmdCreateValidator ¶ added in v0.6.0
func CmdListLastValidatorPower ¶ added in v0.6.0
func CmdListValidator ¶ added in v0.6.0
func CmdShowLastValidatorPower ¶ added in v0.6.0
func CmdShowValidator ¶ added in v0.6.0
func CreateValidatorMsgFlagSet ¶ added in v0.6.0
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
FlagSetPublicKey Returns the flagset for Public Key related operations.
func GetQueryCmd ¶
GetQueryCmd returns the cli query 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)
Click to show internal directories.
Click to hide internal directories.