Documentation ¶
Index ¶
- func QueryDelegationRewards(cliCtx context.CLIContext, queryRoute, delAddr, valAddr string) ([]byte, int64, error)
- func QueryDelegatorValidators(cliCtx context.CLIContext, queryRoute string, delegatorId chainType.AccountID) ([]byte, error)
- func QueryValidatorCommission(cliCtx context.CLIContext, queryRoute string, validatorId chainType.AccountID) ([]byte, error)
- func WithdrawAllDelegatorRewards(cliCtx context.CLIContext, auth sdk.AccAddress, queryRoute string, ...) ([]sdk.Msg, error)
- func WithdrawValidatorRewardsAndCommission(validatorAcc chainType.AccountID) ([]sdk.Msg, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryDelegationRewards ¶
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 ¶
func QueryDelegatorValidators(cliCtx context.CLIContext, queryRoute string, delegatorId chainType.AccountID) ([]byte, error)
QueryDelegatorValidators returns delegator's list of validators it submitted delegations to.
func QueryValidatorCommission ¶
func QueryValidatorCommission(cliCtx context.CLIContext, queryRoute string, validatorId chainType.AccountID) ([]byte, error)
QueryValidatorCommission returns a validator's commission.
func WithdrawAllDelegatorRewards ¶
func WithdrawAllDelegatorRewards(cliCtx context.CLIContext, auth sdk.AccAddress, queryRoute string, delegatorId chainType.AccountID) ([]sdk.Msg, error)
WithdrawAllDelegatorRewards builds a multi-message slice to be used to withdraw all delegations rewards for the given delegator.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.