types

package
v2.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2023 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DistributionHooks

type DistributionHooks interface {
	AfterWithdrawDelegationRewards(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, rewards sdk.Coins) error
	AfterWithdrawValidatorCommission(ctx sdk.Context, valAddr sdk.ValAddress, commission sdk.Coins) error
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL