cli

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagAddressValidator    = "validator"
	FlagAddressValidatorSrc = "addr-validator-source"
	FlagAddressValidatorDst = "addr-validator-dest"
	FlagPubKey              = "pubkey"
	FlagAmount              = "amount"
	FlagSharesAmount        = "shares-amount"
	FlagSharesFraction      = "shares-fraction"
	FlagRewardAddress       = "reward-addr"

	FlagMoniker         = "moniker"
	FlagIdentity        = "identity"
	FlagWebsite         = "website"
	FlagSecurityContact = "security-contact"
	FlagDetails         = "details"

	FlagCommissionRate = "commission-rate"

	FlagGenesisFormat = "genesis-format"
	FlagNodeID        = "node-id"
	FlagIP            = "ip"
)

Variables

View Source
var (
	FsPk                = flag.NewFlagSet("", flag.ContinueOnError)
	FsAmount            = flag.NewFlagSet("", flag.ContinueOnError)
	FsShares            = flag.NewFlagSet("", flag.ContinueOnError)
	FsDescriptionCreate = flag.NewFlagSet("", flag.ContinueOnError)
	FsCommissionCreate  = flag.NewFlagSet("", flag.ContinueOnError)
	FsCommissionUpdate  = flag.NewFlagSet("", flag.ContinueOnError)
	FsDescriptionEdit   = flag.NewFlagSet("", flag.ContinueOnError)
	FsValidator         = flag.NewFlagSet("", flag.ContinueOnError)
)

common flagsets to add to various functions

Functions

func BuildCreateValidatorMsg

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

BuildCreateValidatorMsg makes a new MsgCreateValidator.

func CreateValidatorMsgHelpers

func CreateValidatorMsgHelpers(ipDefault string) (fs *flag.FlagSet, nodeIDFlag, pubkeyFlag, amountFlag, defaultsDesc string)

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

func GetCmdDeclareCandidate

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

GetCmdDeclareCandidate is the CLI command for doing CreateValidator

func GetCmdQueryDelegatedCoin

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

GetCmdQueryDelegatedCoin implements the delegated coin query command.

func GetCmdQueryDelegatedCoins

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

GetCmdQueryDelegatedCoins implements the delegated coins query command.

func GetCmdQueryDelegation

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

GetCmdQueryDelegation the query delegation command.

func GetCmdQueryDelegations

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

GetCmdQueryDelegations implements the command to query all the delegations made from one delegator.

func GetCmdQueryParams

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

GetCmdQueryParams implements the params query command.

func GetCmdQueryPool

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

GetCmdQueryPool implements the pool query command.

func GetCmdQueryUnbondingDelegation

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

GetCmdQueryUnbondingDelegation implements the command to query a single unbonding-delegation record.

func GetCmdQueryUnbondingDelegations

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

GetCmdQueryUnbondingDelegations implements the command to query all the unbonding-delegation records for a delegator.

func GetCmdQueryValidator

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

GetCmdQueryValidator implements the validator query command.

func GetCmdQueryValidatorDelegations

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

GetCmdQueryValidatorDelegations implements the command to query all the delegations to a specific validator.

func GetCmdQueryValidatorUnbondingDelegations

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

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

func GetCmdQueryValidators

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

GetCmdQueryValidators implements the query all validators command.

func GetDelegate

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

GetDelegate .

func GetDelegateNFT

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

func GetEditCandidate

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

GetEditCandidate .

func GetQueryCmd

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

GetQueryCmd returns the cli query commands for this module

func GetSetOffline

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

GetSetOffline .

func GetSetOnline

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

GetSetOnline .

func GetTxCmd

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

GetTxCmd returns the transaction commands for this module

func GetUnbond

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

GetUnbond .

func GetUnbondNFT

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

GetUnbondNFT .

func PrepareFlagsForTxCreateValidator

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

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