cli

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagPubKey          = "pubkey"
	FlagAmount          = "amount"
	FlagVestingAmount   = "vesting-amount"
	FlagMoniker         = "moniker"
	FlagIdentity        = "identity"
	FlagWebsite         = "website"
	FlagSecurityContact = "security-contact"
	FlagDetails         = "details"
	FlagNodeID          = "node-id"
	FlagIP              = "ip"
)

Variables

default values

Functions

func AddPaginationFlagsToCmd added in v0.5.2

func AddPaginationFlagsToCmd(cmd *cobra.Command, query string)

AddPaginationFlagsToCmd adds common pagination flags to cmd

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 CollectGenTxsCmd

func CollectGenTxsCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command

CollectGenTxsCmd - return the cobra command to collect genesis transactions

func CreateValidatorMsgFlagSet

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

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

func FlagSetAmounts added in v0.8.0

func FlagSetAmounts() *flag.FlagSet

FlagSetAmounts Returns the FlagSet for amount related operations.

func FlagSetPublicKey

func FlagSetPublicKey() *flag.FlagSet

FlagSetPublicKey Returns the flagset for Public Key related operations.

func GenTxCmd

func GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, genBalIterator GenesisBalancesIterator, defaultNodeHome string) *cobra.Command

GenTxCmd builds the application's gentx command.

func GetCmdQueryHistoricalInfo

func GetCmdQueryHistoricalInfo() *cobra.Command

GetCmdQueryHistoricalInfo implements the historical info query command

func GetCmdQueryUnbondingPeriod

func GetCmdQueryUnbondingPeriod() *cobra.Command

func GetCmdQueryValidator

func GetCmdQueryValidator() *cobra.Command

GetCmdQueryValidator implements the validator query command.

func GetCmdQueryValidatorDelegation

func GetCmdQueryValidatorDelegation() *cobra.Command

GetCmdQueryValidatorDelegation implements the command to query the self delegation of a specific validator.

func GetCmdQueryValidatorReward

func GetCmdQueryValidatorReward() *cobra.Command

GetCmdQueryValidatorReward implements the command to query the claimable reward of a specific validator.

func GetCmdQueryValidatorUnbondingDelegations

func GetCmdQueryValidatorUnbondingDelegations() *cobra.Command

GetCmdQueryValidatorUnbondingDelegations implements the query all unbonding delegatations from a validator command.

func GetCmdQueryValidators

func GetCmdQueryValidators() *cobra.Command

GetCmdQueryValidators implements the query all validators command.

func GetCmdShowPoEContract

func GetCmdShowPoEContract() *cobra.Command

func GetQueryCmd

func GetQueryCmd() *cobra.Command

func NewBuildCreateValidatorMsg

func NewBuildCreateValidatorMsg(clientCtx client.Context, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error)

func NewCreateValidatorCmd

func NewCreateValidatorCmd() *cobra.Command

func NewDelegateCmd

func NewDelegateCmd() *cobra.Command

func NewEditValidatorCmd

func NewEditValidatorCmd() *cobra.Command

func NewTxCmd

func NewTxCmd() *cobra.Command

NewTxCmd returns a root CLI command handler for all x/staking transaction commands.

func NewUnbondCmd

func NewUnbondCmd() *cobra.Command

func NewUnjailTxCmd added in v0.5.2

func NewUnjailTxCmd() *cobra.Command

func ValidateAccountInGenesis

func ValidateAccountInGenesis(
	appGenesisState map[string]json.RawMessage, genBalIterator GenesisBalancesIterator,
	addr sdk.Address, coins sdk.Coins, cdc codec.JSONCodec,
) error

ValidateAccountInGenesis checks that the provided account has a sufficient balance in the set of genesis accounts.

Types

type GenesisBalancesIterator

type GenesisBalancesIterator = genutiltypes.GenesisBalancesIterator

type TxCreateValidatorConfig

type TxCreateValidatorConfig struct {
	ChainID string
	NodeID  string
	Moniker string

	LiquidAmount  string
	VestingAmount string

	PubKey cryptotypes.PubKey

	IP              string
	Website         string
	SecurityContact string
	Details         string
	Identity        string
}

func PrepareConfigForTxCreateValidator

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