Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DistributionHooks ¶
type MultiDistributionHooks ¶
type MultiDistributionHooks []DistributionHooks
MultiDistributionHooks defines an array of DistributionHooks whose methods are called in order when executing distribution functionality.
func NewMultiDistributionHooks ¶
func NewMultiDistributionHooks(hooks ...DistributionHooks) MultiDistributionHooks
NewMultiDistributionHooks returns a new MultiDistributionHooks instance.
func (MultiDistributionHooks) AfterWithdrawDelegationRewards ¶
func (h MultiDistributionHooks) AfterWithdrawDelegationRewards(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, rewards sdk.Coins) error
AfterWithdrawDelegationRewards calls AfterWithdrawDelegationRewards method on each registered DistributionHooks.
func (MultiDistributionHooks) AfterWithdrawValidatorCommission ¶
func (h MultiDistributionHooks) AfterWithdrawValidatorCommission(ctx sdk.Context, valAddr sdk.ValAddress, commission sdk.Coins) error
AfterWithdrawValidatorCommission calls AfterWithdrawValidatorCommission method on each registered DistributionHooks.
Click to show internal directories.
Click to hide internal directories.