Documentation ¶
Index ¶
- func GetCmdCandidate(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdCandidateDelegators(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdCandidates(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdDelegator(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdEditCandidateDescription(cdc *codec.Codec) *cobra.Command
- func GetCmdQueryParams(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdReward(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdRewardStats(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdSetTransactors(cdc *codec.Codec) *cobra.Command
- func GetCmdSyncer(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdValidator(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdValidators(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdWithdrawReward(cdc *codec.Codec) *cobra.Command
- func GetQueryCmd(storeKey string, cdc *codec.Codec) *cobra.Command
- func GetTxCmd(storeKey string, cdc *codec.Codec) *cobra.Command
- func QueryBondedValidators(cliCtx context.CLIContext, storeName string) (validators stakingTypes.Validators, err error)
- func QueryCandidate(cliCtx context.CLIContext, queryRoute, ethAddress string) (candidate types.Candidate, err error)
- func QueryCandidateDelegators(cliCtx context.CLIContext, queryRoute, ethAddress string) (delegators []types.Delegator, err error)
- func QueryCandidates(cliCtx context.CLIContext, queryRoute string) (candidates []types.Candidate, err error)
- func QueryDelegator(cliCtx context.CLIContext, ...) (delegator types.Delegator, err error)
- func QueryParams(cliCtx context.CLIContext, queryRoute string) (params types.Params, err error)
- func QueryReward(cliCtx context.CLIContext, queryRoute string, ethAddress string) (reward types.Reward, err error)
- func QueryRewardStats(cliCtx context.CLIContext, queryRoute string) (stats types.RewardStats, err error)
- func QuerySyncer(cliCtx context.CLIContext, queryRoute string) (syncer types.Syncer, err error)
- func QueryValidator(cliCtx context.CLIContext, storeName string, addrStr string) (validator stakingTypes.Validator, err error)
- func QueryValidators(cliCtx context.CLIContext, storeName string) (validators stakingTypes.Validators, err error)
- type CandidateDelegatorsOutput
- type CandidateOutput
- type DelegatorOutput
- type RewardOutput
- type SigndReward
- type ValidatorOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCmdCandidate ¶
GetCmdCandidate queries request info
func GetCmdCandidateDelegators ¶ added in v0.2.3
GetCmdCandidateDelegators queries request info TODO: support pagination
func GetCmdCandidates ¶ added in v0.2.5
func GetCmdDelegator ¶
GetCmdDelegator queries request info
func GetCmdEditCandidateDescription ¶ added in v0.2.3
GetCmdEditCandidateDescription is the CLI command for sending a EditCandidateDescription transaction
func GetCmdQueryParams ¶ added in v0.2.3
GetCmdQueryParams implements the params query command.
func GetCmdReward ¶
GetCmdReward queries reward info
func GetCmdRewardStats ¶ added in v0.2.5
func GetCmdSetTransactors ¶ added in v0.2.0
GetCmdSetTransactors is the CLI command for sending a SetTransactors transaction
func GetCmdSyncer ¶ added in v0.2.3
GetCmdSyncer queries syncer info
func GetCmdValidator ¶ added in v0.2.3
GetCmdValidator queries validator info
func GetCmdValidators ¶ added in v0.2.3
GetCmdValidator queries validator info
func GetCmdWithdrawReward ¶
GetCmdWithdrawReward is the CLI command for sending a WithdrawReward transaction
func QueryBondedValidators ¶
func QueryBondedValidators(cliCtx context.CLIContext, storeName string) (validators stakingTypes.Validators, err error)
QueryBondedValidators is an interface for convenience to query bonded validators in staking module
func QueryCandidate ¶
func QueryCandidateDelegators ¶ added in v0.2.3
func QueryCandidates ¶ added in v0.2.5
func QueryDelegator ¶
func QueryParams ¶ added in v0.2.4
Query params info
func QueryReward ¶
func QueryReward(cliCtx context.CLIContext, queryRoute string, ethAddress string) (reward types.Reward, err error)
Query reward info
func QueryRewardStats ¶ added in v0.2.5
func QueryRewardStats(cliCtx context.CLIContext, queryRoute string) (stats types.RewardStats, err error)
func QuerySyncer ¶ added in v0.2.3
Query syncer info
func QueryValidator ¶
func QueryValidator(cliCtx context.CLIContext, storeName string, addrStr string) (validator stakingTypes.Validator, err error)
addrStr should be bech32 sgn account address with prefix sgn
func QueryValidators ¶
func QueryValidators(cliCtx context.CLIContext, storeName string) (validators stakingTypes.Validators, err error)
QueryValidators is an interface for convenience to query (all) validators in staking module
Types ¶
type CandidateDelegatorsOutput ¶ added in v0.2.3
type CandidateDelegatorsOutput struct { Candidate string `json:"candidate"` Delegators []DelegatorOutput `json:"delegators"` }
type CandidateOutput ¶ added in v0.2.5
type DelegatorOutput ¶ added in v0.2.3
type RewardOutput ¶ added in v0.2.3
type SigndReward ¶ added in v0.2.3
type ValidatorOutput ¶ added in v0.2.3
type ValidatorOutput struct { AccountAddress sdk.AccAddress `json:"account_address" yaml:"account_address"` // address of the validator's account; bech encoded in JSON OperatorAddress sdk.ValAddress `json:"operator_address" yaml:"operator_address"` // address of the validator's operator; bech encoded in JSON ConsPubKey string `json:"consensus_pubkey" yaml:"consensus_pubkey"` // the consensus public key of the validator; bech encoded in JSON Status string `json:"status" yaml:"status"` // validator status (bonded/unbonding/unbonded) Tokens sdk.Int `json:"tokens" yaml:"tokens"` // delegated tokens (incl. self-delegation) CommissionRate sdk.Dec `json:"commission_rate" yaml:"commission_rate"` // commission rate of the validator EthAddress string `json:"eth_address" yaml:"eth_address"` // ETH address for the validator }