Documentation ¶
Index ¶
- func NewMsgServerImpl(k Keeper) types.MsgServer
- type Hooks
- type Keeper
- func (k Keeper) AfterWithdrawDelegationRewards(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, ...) error
- func (k Keeper) AfterWithdrawValidatorCommission(ctx sdk.Context, valAddr sdk.ValAddress, commission sdk.Coins) error
- func (k Keeper) Hooks() Hooks
- func (k *Keeper) SetHooks(hooks distributiontypes.DistributionHooks) *Keeper
- func (k Keeper) WithdrawDelegationRewards(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the distribution MsgServer interface for the provided Keeper.
Types ¶
type Hooks ¶
func (Hooks) AfterValidatorRemoved ¶
func (h Hooks) AfterValidatorRemoved(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress) error
AfterValidatorRemoved performs clean up after a validator is removed
func (Hooks) BeforeDelegationSharesModified ¶
func (h Hooks) BeforeDelegationSharesModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
BeforeDelegationSharesModified withdraw delegation rewards (which also increments period)
type Keeper ¶
func NewKeeper ¶
func NewKeeper(keeper keeper.Keeper, bankKeeper types.BankKeeper, stakingKeeper types.StakingKeeper) Keeper
NewKeeper creates a new distribution Keeper instance
func (Keeper) AfterWithdrawDelegationRewards ¶
func (k Keeper) AfterWithdrawDelegationRewards(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, rewards sdk.Coins) error
func (Keeper) AfterWithdrawValidatorCommission ¶
func (*Keeper) SetHooks ¶
func (k *Keeper) SetHooks(hooks distributiontypes.DistributionHooks) *Keeper
SetHooks sets the distribution hooks
func (Keeper) WithdrawDelegationRewards ¶
func (k Keeper) WithdrawDelegationRewards(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error)
WithdrawDelegationRewards withdraw rewards from a delegation
Click to show internal directories.
Click to hide internal directories.