Documentation ¶
Index ¶
- Constants
- Variables
- func BuildCreateValidatorMsg(cliCtx context.CLIContext, txBldr auth.TxBuilder) (auth.TxBuilder, sdk.Msg, error)
- func CreateValidatorMsgHelpers(ipDefault string) (fs *flag.FlagSet, nodeIDFlag, pubkeyFlag, amountFlag, defaultsDesc string)
- func GetCmdAddShares(cdc *codec.Codec) *cobra.Command
- func GetCmdBindProxy(cdc *codec.Codec) *cobra.Command
- func GetCmdCreateValidator(cdc *codec.Codec) *cobra.Command
- func GetCmdDeposit(cdc *codec.Codec) *cobra.Command
- func GetCmdDestroyValidator(cdc *codec.Codec) *cobra.Command
- func GetCmdEditValidator(cdc *codec.Codec) *cobra.Command
- func GetCmdEditValidatorCommissionRate(cdc *codec.Codec) *cobra.Command
- func GetCmdProxy(cdc *codec.Codec) *cobra.Command
- func GetCmdQueryDelegator(storeName string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryParams(storeName string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryPool(storeName string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryProxy(storeName string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryValidator(storeName string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryValidatorShares(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryValidators(storeName string, cdc *codec.Codec) *cobra.Command
- func GetCmdRegProxy(cdc *codec.Codec) *cobra.Command
- func GetCmdUnbindProxy(cdc *codec.Codec) *cobra.Command
- func GetCmdUnregProxy(cdc *codec.Codec) *cobra.Command
- func GetCmdWithdraw(cdc *codec.Codec) *cobra.Command
- func GetQueryCmd(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetTxCmd(storeKey string, cdc *codec.Codec) *cobra.Command
- func PrepareFlagsForTxCreateValidator(config *cfg.Config, nodeID, chainID string, valPubKey crypto.PubKey)
- type DelegatorResponse
- type Delegators
Constants ¶
const ( FlagPubKey = "pubkey" FlagMoniker = "moniker" FlagIdentity = "identity" FlagWebsite = "website" FlagDetails = "details" FlagNodeID = "node-id" FlagIP = "ip" )
nolint
Variables ¶
var (
FsPk = 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 GetCmdAddShares ¶
GetCmdAddShares gets command for multi voting
func GetCmdBindProxy ¶
GetCmdBindProxy gets command for binding proxy
func GetCmdCreateValidator ¶
GetCmdCreateValidator gets the create validator command handler
func GetCmdDeposit ¶
GetCmdDeposit gets command for deposit
func GetCmdDestroyValidator ¶
GetCmdDestroyValidator gets command for destroying a validator and unbonding the min-self-delegation
func GetCmdEditValidator ¶
GetCmdEditValidator gets the create edit validator command TODO: add full description
func GetCmdEditValidatorCommissionRate ¶ added in v1.6.3
GetCmdEditValidatorCommissionRate gets the edit validator commission rate command
func GetCmdProxy ¶
GetCmdProxy gets subcommands for proxy voting
func GetCmdQueryDelegator ¶
GetCmdQueryDelegator gets command for querying the info of delegator about delegation and shares
func GetCmdQueryParams ¶
GetCmdQueryParams gets the params query command.
func GetCmdQueryPool ¶
GetCmdQueryPool gets the pool query command.
func GetCmdQueryProxy ¶
GetCmdQueryProxy gets command for querying the delegators by a specific proxy
func GetCmdQueryValidator ¶
GetCmdQueryValidator gets the validator query command.
func GetCmdQueryValidatorShares ¶
GetCmdQueryValidatorShares gets command for querying all shares added to a validator
func GetCmdQueryValidators ¶
GetCmdQueryValidators gets the query all validators command.
func GetCmdRegProxy ¶
GetCmdRegProxy gets command for proxy registering
func GetCmdUnbindProxy ¶
GetCmdUnbindProxy gets command for unbinding proxy
func GetCmdUnregProxy ¶
GetCmdUnregProxy gets command for proxy unregistering
func GetCmdWithdraw ¶
GetCmdWithdraw gets command for withdrawing the deposit
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for staking module
Types ¶
type DelegatorResponse ¶
type DelegatorResponse struct { DelegatorAddress sdk.AccAddress `json:"delegator_address" yaml:"delegator_address"` ValidatorAddresses []sdk.ValAddress `json:"validator_address" yaml:"validator_address"` Tokens sdk.Dec `json:"tokens" yaml:"tokens"` UnbondedTokens sdk.Dec `json:"unbonded_tokens" yaml:"unbonded_tokens"` CompletionTime time.Time `json:"completion_time" yaml:"completion_time"` IsProxy bool `json:"is_proxy" yaml:"is_proxy"` TotalDelegatedTokens sdk.Dec `json:"total_delegated_tokens" yaml:"total_delegated_tokens"` ProxyAddress sdk.AccAddress `json:"proxy_address" yaml:"proxy_address"` }
DelegatorResponse is designed for delegator info query
func (DelegatorResponse) String ¶
func (dr DelegatorResponse) String() (output string)
String returns a human readable string representation of DelegatorResponse
type Delegators ¶
type Delegators []sdk.AccAddress
Delegators is a type alias of sdk.AccAddress slice
func (Delegators) String ¶
func (as Delegators) String() (strFormat string)
String returns a human readable string representation of Delegators