Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) BeginRedelegation(ctx sdk.Context, delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress, ...) (completionTime time.Time, err error)
- func (k Keeper) BlockValidatorUpdates(ctx sdk.Context) []abci.ValidatorUpdate
- func (k *Keeper) CheckDenom(ctx sdk.Context)
- func (k Keeper) CompleteRedelegation(ctx sdk.Context, delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) (sdk.Coins, error)
- func (k Keeper) CompleteUnbonding(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error)
- func (k Keeper) GetVeDelegatedAmount(ctx sdk.Context, veID uint64) sdk.Int
- func (k Keeper) GetVeDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (delegation types.VeDelegation, found bool)
- func (k Keeper) GetVeRedelegation(ctx sdk.Context, delAddr sdk.AccAddress, valSrcAddr sdk.ValAddress, ...) (red types.VeRedelegation, found bool)
- func (k Keeper) GetVeUnbondingDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (ubd types.VeUnbondingDelegation, found bool)
- func (k Keeper) GetVeValidator(ctx sdk.Context, addr sdk.ValAddress) (validator types.VeValidator, found bool)
- func (k Keeper) RemoveVeDelegatedAmount(ctx sdk.Context, veID uint64)
- func (k Keeper) RemoveVeDelegation(ctx sdk.Context, delegation types.VeDelegation)
- func (k Keeper) RemoveVeRedelegation(ctx sdk.Context, red types.VeRedelegation)
- func (k Keeper) RemoveVeUnbondingDelegation(ctx sdk.Context, ubd types.VeUnbondingDelegation)
- func (k Keeper) RemoveVeValidator(ctx sdk.Context, addr sdk.ValAddress)
- func (k *Keeper) SetHooks(sh stakingtypes.StakingHooks) *Keeper
- func (k Keeper) SetVeDelegatedAmount(ctx sdk.Context, veID uint64, amount sdk.Int)
- func (k Keeper) SetVeDelegation(ctx sdk.Context, delegation types.VeDelegation)
- func (k Keeper) SetVeRedelegation(ctx sdk.Context, red types.VeRedelegation)
- func (k Keeper) SetVeRedelegationEntry(ctx sdk.Context, delegatorAddr sdk.AccAddress, valSrcAddr sdk.ValAddress, ...) types.VeRedelegation
- func (k Keeper) SetVeUnbondingDelegation(ctx sdk.Context, ubd types.VeUnbondingDelegation)
- func (k Keeper) SetVeUnbondingDelegationEntry(ctx sdk.Context, delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, ...) types.VeUnbondingDelegation
- func (k Keeper) SetVeValidator(ctx sdk.Context, validator types.VeValidator)
- func (k Keeper) SettleVeDelegation(ctx sdk.Context, delegation types.VeDelegation, ...) types.VeDelegation
- func (k Keeper) Slash(ctx sdk.Context, consAddr sdk.ConsAddress, infractionHeight int64, power int64, ...)
- func (k Keeper) SlashRedelegation(ctx sdk.Context, srcValidator stakingtypes.Validator, ...) (totalSlashAmount sdk.Int)
- func (k Keeper) SlashUnbondingDelegation(ctx sdk.Context, unbondingDelegation stakingtypes.UnbondingDelegation, ...) (totalSlashAmount sdk.Int)
- func (k Keeper) SlashVeDelegatedAmount(ctx sdk.Context, veID uint64, burnAmount sdk.Int)
- func (k Keeper) SubVeDelegatedAmount(ctx sdk.Context, veID uint64, subAmount sdk.Int)
- func (k Keeper) Unbond(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, ...) (amount sdk.Int, veTokens types.VeTokensSlice, err error)
- func (k Keeper) Undelegate(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, ...) (time.Time, error)
- func (k Keeper) VeDelegate(ctx sdk.Context, delAddr sdk.AccAddress, bondAmt sdk.Int, ...) (newShares sdk.Dec, err error)
- type MsgServer
- func (k MsgServer) BeginRedelegate(goCtx context.Context, msg *stakingtypes.MsgBeginRedelegate) (*stakingtypes.MsgBeginRedelegateResponse, error)
- func (k MsgServer) CreateValidator(goCtx context.Context, msg *stakingtypes.MsgCreateValidator) (*stakingtypes.MsgCreateValidatorResponse, error)
- func (k MsgServer) Delegate(goCtx context.Context, msg *stakingtypes.MsgDelegate) (*stakingtypes.MsgDelegateResponse, error)
- func (k MsgServer) EditValidator(goCtx context.Context, msg *stakingtypes.MsgEditValidator) (*stakingtypes.MsgEditValidatorResponse, error)
- func (k MsgServer) Undelegate(goCtx context.Context, msg *stakingtypes.MsgUndelegate) (*stakingtypes.MsgUndelegateResponse, error)
- func (k MsgServer) VeDelegate(goCtx context.Context, msg *types.MsgVeDelegate) (*types.MsgVeDelegateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct { stakingkeeper.Keeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, key sdk.StoreKey, ps paramtypes.Subspace, ak stakingtypes.AccountKeeper, bk stakingtypes.BankKeeper, nk types.NftKeeper, vk types.VeKeeper, ) Keeper
func (Keeper) BeginRedelegation ¶
func (Keeper) BlockValidatorUpdates ¶
func (k Keeper) BlockValidatorUpdates(ctx sdk.Context) []abci.ValidatorUpdate
BlockValidatorUpdates calculates the ValidatorUpdates for the current block Called in each EndBlock
func (*Keeper) CheckDenom ¶
func (Keeper) CompleteRedelegation ¶
func (k Keeper) CompleteRedelegation( ctx sdk.Context, delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress, ) (sdk.Coins, error)
func (Keeper) CompleteUnbonding ¶
func (k Keeper) CompleteUnbonding(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error)
func (Keeper) GetVeDelegatedAmount ¶
func (Keeper) GetVeDelegation ¶
func (k Keeper) GetVeDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (delegation types.VeDelegation, found bool)
GetVeDelegation returns a specific ve delegation.
func (Keeper) GetVeRedelegation ¶
func (k Keeper) GetVeRedelegation( ctx sdk.Context, delAddr sdk.AccAddress, valSrcAddr sdk.ValAddress, valDstAddr sdk.ValAddress, ) (red types.VeRedelegation, found bool)
func (Keeper) GetVeUnbondingDelegation ¶
func (k Keeper) GetVeUnbondingDelegation( ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, ) (ubd types.VeUnbondingDelegation, found bool)
func (Keeper) GetVeValidator ¶
func (k Keeper) GetVeValidator(ctx sdk.Context, addr sdk.ValAddress) (validator types.VeValidator, found bool)
func (Keeper) RemoveVeDelegatedAmount ¶
func (Keeper) RemoveVeDelegation ¶
func (k Keeper) RemoveVeDelegation(ctx sdk.Context, delegation types.VeDelegation)
RemoveVeDelegation deletes a ve delegation.
func (Keeper) RemoveVeRedelegation ¶
func (k Keeper) RemoveVeRedelegation( ctx sdk.Context, red types.VeRedelegation, )
func (Keeper) RemoveVeUnbondingDelegation ¶
func (k Keeper) RemoveVeUnbondingDelegation( ctx sdk.Context, ubd types.VeUnbondingDelegation, )
func (Keeper) RemoveVeValidator ¶
func (k Keeper) RemoveVeValidator(ctx sdk.Context, addr sdk.ValAddress)
func (*Keeper) SetHooks ¶
func (k *Keeper) SetHooks(sh stakingtypes.StakingHooks) *Keeper
func (Keeper) SetVeDelegatedAmount ¶
func (Keeper) SetVeDelegation ¶
func (k Keeper) SetVeDelegation(ctx sdk.Context, delegation types.VeDelegation)
SetVeDelegation sets a ve delegation.
func (Keeper) SetVeRedelegation ¶
func (k Keeper) SetVeRedelegation(ctx sdk.Context, red types.VeRedelegation)
func (Keeper) SetVeRedelegationEntry ¶
func (k Keeper) SetVeRedelegationEntry( ctx sdk.Context, delegatorAddr sdk.AccAddress, valSrcAddr sdk.ValAddress, valDstAddr sdk.ValAddress, totalAmount sdk.Int, veTokens types.VeTokensSlice, totalShares sdk.Dec, ) types.VeRedelegation
func (Keeper) SetVeUnbondingDelegation ¶
func (k Keeper) SetVeUnbondingDelegation(ctx sdk.Context, ubd types.VeUnbondingDelegation)
func (Keeper) SetVeUnbondingDelegationEntry ¶
func (k Keeper) SetVeUnbondingDelegationEntry( ctx sdk.Context, delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, veTokens types.VeTokensSlice, ) types.VeUnbondingDelegation
func (Keeper) SetVeValidator ¶
func (k Keeper) SetVeValidator(ctx sdk.Context, validator types.VeValidator)
func (Keeper) SettleVeDelegation ¶
func (k Keeper) SettleVeDelegation(ctx sdk.Context, delegation types.VeDelegation, validator stakingtypes.Validator) types.VeDelegation
func (Keeper) SlashRedelegation ¶
func (k Keeper) SlashRedelegation( ctx sdk.Context, srcValidator stakingtypes.Validator, redelegation stakingtypes.Redelegation, infractionHeight int64, slashFactor sdk.Dec, ) (totalSlashAmount sdk.Int)
func (Keeper) SlashUnbondingDelegation ¶
func (k Keeper) SlashUnbondingDelegation( ctx sdk.Context, unbondingDelegation stakingtypes.UnbondingDelegation, infractionHeight int64, slashFactor sdk.Dec, ) (totalSlashAmount sdk.Int)
func (Keeper) SlashVeDelegatedAmount ¶
func (Keeper) SubVeDelegatedAmount ¶
func (Keeper) Unbond ¶
func (k Keeper) Unbond( ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, shares sdk.Dec, updateVeAmt bool, ) (amount sdk.Int, veTokens types.VeTokensSlice, err error)
func (Keeper) Undelegate ¶
func (Keeper) VeDelegate ¶
func (k Keeper) VeDelegate( ctx sdk.Context, delAddr sdk.AccAddress, bondAmt sdk.Int, veTokens types.VeTokensSlice, tokenSrc stakingtypes.BondStatus, validator stakingtypes.Validator, subtractAccount bool, ) (newShares sdk.Dec, err error)
type MsgServer ¶
type MsgServer struct { stakingtypes.MsgServer Keeper }
func NewMsgServerImpl ¶
func (MsgServer) BeginRedelegate ¶
func (k MsgServer) BeginRedelegate(goCtx context.Context, msg *stakingtypes.MsgBeginRedelegate) (*stakingtypes.MsgBeginRedelegateResponse, error)
func (MsgServer) CreateValidator ¶
func (k MsgServer) CreateValidator(goCtx context.Context, msg *stakingtypes.MsgCreateValidator) (*stakingtypes.MsgCreateValidatorResponse, error)
func (MsgServer) Delegate ¶
func (k MsgServer) Delegate(goCtx context.Context, msg *stakingtypes.MsgDelegate) (*stakingtypes.MsgDelegateResponse, error)
func (MsgServer) EditValidator ¶
func (k MsgServer) EditValidator(goCtx context.Context, msg *stakingtypes.MsgEditValidator) (*stakingtypes.MsgEditValidatorResponse, error)
func (MsgServer) Undelegate ¶
func (k MsgServer) Undelegate(goCtx context.Context, msg *stakingtypes.MsgUndelegate) (*stakingtypes.MsgUndelegateResponse, error)
func (MsgServer) VeDelegate ¶
func (k MsgServer) VeDelegate(goCtx context.Context, msg *types.MsgVeDelegate) (*types.MsgVeDelegateResponse, error)
Click to show internal directories.
Click to hide internal directories.