Documentation ¶
Index ¶
- func QueryDelegationRewards(cliCtx context.CLIContext, queryRoute, delAddr, valAddr string) ([]byte, int64, error)
- func QueryDelegatorValidators(cliCtx context.CLIContext, queryRoute string, delegatorAddr sdk.AccAddress) ([]byte, error)
- func QueryParams(cliCtx context.CLIContext, queryRoute string) (params types.Params, err error)
- func QueryValidatorCommission(cliCtx context.CLIContext, queryRoute string, validatorAddr sdk.ValAddress) ([]byte, error)
- func WithdrawAllDelegatorRewards(cliCtx context.CLIContext, queryRoute string, delegatorAddr sdk.AccAddress) ([]sdk.Msg, error)
- func WithdrawValidatorRewardsAndCommission(validatorAddr sdk.ValAddress) ([]sdk.Msg, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryDelegationRewards ¶ added in v1.6.3
func QueryDelegationRewards(cliCtx context.CLIContext, queryRoute, delAddr, valAddr string) ([]byte, int64, error)
QueryDelegationRewards queries a delegation rewards between a delegator and a validator.
func QueryDelegatorValidators ¶ added in v1.6.3
func QueryDelegatorValidators(cliCtx context.CLIContext, queryRoute string, delegatorAddr sdk.AccAddress) ([]byte, error)
QueryDelegatorValidators returns delegator's list of validators it submitted delegations to.
func QueryParams ¶
QueryParams actually queries distribution params
func QueryValidatorCommission ¶
func QueryValidatorCommission(cliCtx context.CLIContext, queryRoute string, validatorAddr sdk.ValAddress) ( []byte, error)
QueryValidatorCommission returns a validator's commission.
func WithdrawAllDelegatorRewards ¶ added in v1.6.3
func WithdrawAllDelegatorRewards(cliCtx context.CLIContext, queryRoute string, delegatorAddr sdk.AccAddress) ([]sdk.Msg, error)
WithdrawAllDelegatorRewards builds a multi-message slice to be used to withdraw all delegations rewards for the given delegator.
func WithdrawValidatorRewardsAndCommission ¶
func WithdrawValidatorRewardsAndCommission(validatorAddr sdk.ValAddress) ([]sdk.Msg, error)
WithdrawValidatorRewardsAndCommission builds a two-message message slice to be used to withdraw both validation's commission and self-delegation reward.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.