cli

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagAddressValidator    = "validator"
	FlagAddressValidatorSrc = "addr-validator-source"
	FlagAddressValidatorDst = "addr-validator-dest"
	FlagPubKey              = "pubkey"

	FlagBlockHash = "blockhash"

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

	FlagMinSelfDelegation = "min-self-delegation"

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

nolint

Variables

View Source
var (
	FsPk     = flag.NewFlagSet("", flag.ContinueOnError)
	FsAmount = flag.NewFlagSet("", flag.ContinueOnError)

	DefaultClientHome = os.ExpandEnv("$HOME/.clif")
)

common flagsets to add to various functions

Functions

func BuildCreateValidatorMsg added in v0.3.0

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

BuildCreateValidatorMsg implements for adding validator module spec

func GetCmdBonding

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

GetCmdBonding is the CLI command for bonding

func GetCmdContractRun added in v0.5.0

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

func GetCmdCreateValidator added in v0.3.0

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

GetCmdCreateValidator implements the create validator command handler.

func GetCmdEditValidator added in v0.5.0

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

GetCmdEditValidator implements the create edit validator command.

func GetCmdQuery

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

GetCmdQuery is a EE query getter

func GetCmdQueryBalance

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

GetCmdQueryBalance is a getter of the balance of the address

func GetCmdQueryValidator added in v0.5.0

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

GetCmdQueryValidator implements the validator query command.

func GetCmdTransfer

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

GetCmdTransfer is the CLI command for transfer

func GetCmdUnbonding

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

GetCmdUnbonding is the CLI command for unbonding

func GetContractCmd added in v0.5.0

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

GetContractCmd implements custom command especially for contract

func GetExecutionLayerQueryCmd

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

GetExecutionLayerQueryCmd controls GET type CLI controller

func GetHdacCustomCmd added in v0.5.0

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

GetHdacCustomCmd implements custom command especially for Hdac-related contract

Types

This section is empty.

Jump to

Keyboard shortcuts

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