Documentation ¶
Index ¶
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(k *stakingkeeper.Keeper, storeKey storetypes.StoreKey) *Keeper
func (Keeper) GetAllowance ¶
func (k Keeper) GetAllowance(ctx sdk.Context, valAddr sdk.ValAddress, owner, spender sdk.AccAddress) *big.Int
GetAllowance returns the allowance of a spender for a delegator.
func (Keeper) IterateAllAllowance ¶
func (k Keeper) IterateAllAllowance(ctx sdk.Context, handler func(valAddr sdk.ValAddress, owner, spender sdk.AccAddress, allowance *big.Int) (stop bool))
IterateAllAllowance iterates over the allowances and performs a callback function.
func (Keeper) SetAllowance ¶
func (k Keeper) SetAllowance(ctx sdk.Context, valAddr sdk.ValAddress, owner, spender sdk.AccAddress, shares *big.Int)
SetAllowance sets the allowance of a spender for a delegator. shares must be non-negative.
Click to show internal directories.
Click to hide internal directories.