cli

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2020 License: Apache-2.0 Imports: 19 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 GetCmdClaimReward added in v0.9.0

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

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 GetCmdDelegate added in v0.7.0

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

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 GetCmdQueryCommission added in v0.9.0

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

GetCmdQueryCommission is a getter of the commission of the address

func GetCmdQueryDelegator added in v0.8.0

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

GetCmdQueryDelegator implements the validator query command.

func GetCmdQueryReward added in v0.9.0

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

GetCmdQueryReward is a getter of the reward of the address

func GetCmdQueryStake added in v0.11.0

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

GetCmdQueryStake is a getter of the stake amount of the address

func GetCmdQueryValidator added in v0.5.0

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

GetCmdQueryValidator implements the validator query command.

func GetCmdQueryVote added in v0.11.0

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

GetCmdQueryVote is a getter of the dapp address of the address

func GetCmdQueryVoter added in v0.8.0

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

GetCmdQueryVoter implements the validator query command.

func GetCmdRedelegate added in v0.7.0

func GetCmdRedelegate(cdc *codec.Codec) *cobra.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 GetCmdUndelegate added in v0.7.0

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

func GetCmdUnvote added in v0.8.0

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

func GetCmdVote added in v0.8.0

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

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