Documentation
¶
Index ¶
- func GetDelegationDistInfo(storeName string, cliCtx context.CLIContext, delAddr sdk.AccAddress, ...) (ddi types.DelegationDistInfo)
- func GetFeePool(storeName string, cliCtx context.CLIContext) (feePool types.FeePool)
- func GetValidator(storeName string, cliCtx context.CLIContext, addr sdk.ValAddress) (validator stake.Validator)
- func GetValidatorDistInfo(storeName string, cliCtx context.CLIContext, operatorAddr sdk.ValAddress) (vdi types.ValidatorDistInfo)
- func GetWithdrawContext(storeName string, cliCtx context.CLIContext, feePool types.FeePool, ...) types.WithdrawContext
- type DelegationsReward
- type RewardsOutput
- type ValidatorDistInfoOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDelegationDistInfo ¶ added in v0.13.1
func GetDelegationDistInfo(storeName string, cliCtx context.CLIContext, delAddr sdk.AccAddress, valOperatorAddr sdk.ValAddress) (ddi types.DelegationDistInfo)
func GetFeePool ¶ added in v0.13.1
func GetFeePool(storeName string, cliCtx context.CLIContext) (feePool types.FeePool)
func GetValidator ¶ added in v0.13.1
func GetValidator(storeName string, cliCtx context.CLIContext, addr sdk.ValAddress) (validator stake.Validator)
func GetValidatorDistInfo ¶ added in v0.13.1
func GetValidatorDistInfo(storeName string, cliCtx context.CLIContext, operatorAddr sdk.ValAddress) (vdi types.ValidatorDistInfo)
func GetWithdrawContext ¶ added in v0.13.1
func GetWithdrawContext(storeName string, cliCtx context.CLIContext, feePool types.FeePool, height int64, validator stakeTypes.Validator) types.WithdrawContext
Types ¶
type DelegationsReward ¶ added in v0.13.1
type DelegationsReward struct {
Validator sdk.ValAddress `json:"validator"`
Reward sdk.Coins `json:"reward"`
}
type RewardsOutput ¶ added in v0.13.1
type RewardsOutput struct {
Total sdk.Coins `json:"total"`
Delegations []DelegationsReward `json:"delegations"`
Commission sdk.Coins `json:"commission"`
}
func GetRewards ¶ added in v0.13.1
func GetRewards(distrStoreName string, stakeStoreName string, cliCtx context.CLIContext, account sdk.AccAddress) RewardsOutput
type ValidatorDistInfoOutput ¶
type ValidatorDistInfoOutput struct {
OperatorAddr sdk.ValAddress `json:"operator_addr"`
FeePoolWithdrawalHeight int64 `json:"fee_pool_withdrawal_height"`
DelAccum distribution.TotalAccum `json:"del_accum"`
DelPool string `json:"del_pool"`
ValCommission string `json:"val_commission"`
}
distribution info for a particular validator
func ConvertToValidatorDistInfoOutput ¶
func ConvertToValidatorDistInfoOutput(cliCtx context.CLIContext, vdi distribution.ValidatorDistInfo) ValidatorDistInfoOutput
Click to show internal directories.
Click to hide internal directories.