cli

package
v0.0.0-...-b5e13e0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 15 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"

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

	FlagCommissionRate          = "commission-rate"
	FlagCommissionMaxRate       = "commission-max-rate"
	FlagCommissionMaxChangeRate = "commission-max-change-rate"

	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)

	FsCommissionCreate = flag.NewFlagSet("", flag.ContinueOnError)

	FsMinSelfDelegation = flag.NewFlagSet("", flag.ContinueOnError)
)

common flagsets to add to various functions

Functions

func BuildCreateValidatorMsg

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

BuildCreateValidatorMsg makes a new MsgCreateValidator. * BuildCreateValidatorMsg创建一个新的MsgCreateValidator。 todo 这个方法两个地方调用 1、 在 Gaia 的main中 做到注册该Tx的Msg 2、在Gaiacli的 main中 做到组装该Tx的Msg 给客户端调用发起交易

func GetCmdCreateValidator

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

GetCmdCreateValidator implements the create validator command handler. TODO: Add full description * TODO 发起质押 (创建验证人) 获取 创建一个质押交易的命令行

func GetCmdDelegate

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

GetCmdDelegate implements the delegate command. * TODO 创建一个委托

func GetCmdEditValidator

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

GetCmdEditValidator implements the create edit validator command. TODO: add full description * TODO 修改验证人信息

func GetCmdQueryDelegation

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

GetCmdQueryDelegation the query delegation command.

func GetCmdQueryDelegations

func GetCmdQueryDelegations(storeName 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

GetCmdQueryPool implements the params query command.

func GetCmdQueryPool

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

GetCmdQueryPool implements the pool query command.

func GetCmdQueryRedelegation

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

GetCmdQueryRedelegation implements the command to query a single redelegation record.

func GetCmdQueryRedelegations

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

GetCmdQueryRedelegations implements the command to query all the redelegation records for a delegator.

func GetCmdQueryUnbondingDelegation

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

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

func GetCmdQueryUnbondingDelegations

func GetCmdQueryUnbondingDelegations(storeName 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(storeKey string, cdc *codec.Codec) *cobra.Command

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

func GetCmdQueryValidatorRedelegations

func GetCmdQueryValidatorRedelegations(storeKey string, cdc *codec.Codec) *cobra.Command

GetCmdQueryValidatorRedelegations implements the query all redelegatations from a validator command.

func GetCmdQueryValidatorUnbondingDelegations

func GetCmdQueryValidatorUnbondingDelegations(storeKey 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 GetCmdRedelegate

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

GetCmdRedelegate the begin redelegation command. * TODO 重置委托

func GetCmdUnbond

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

GetCmdUnbond implements the unbond validator command. * TODO 解除 委托

Types

This section is empty.

Jump to

Keyboard shortcuts

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