keeper

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DistributeRewards added in v1.5.0

func DistributeRewards(ctx sdk.Context, k Keeper, distributionKeeper types.DistributionKeeper)

func NewQueryServer added in v1.5.0

func NewQueryServer(keeper Keeper, distributionKeeper types.DistributionKeeper) types.QueryServer

NewQueryServer returns an implementation of the QueryServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey sdk.StoreKey,
	paramSpace paramtypes.Subspace,
) *Keeper

func (Keeper) GetAccumulatedDelta added in v1.5.0

func (k Keeper) GetAccumulatedDelta(ctx sdk.Context) sdk.Dec

func (Keeper) GetBalance

func (k Keeper) GetBalance(ctx sdk.Context, address sdk.AccAddress) sdk.Dec

func (Keeper) GetBalanceDelta added in v1.4.0

func (k Keeper) GetBalanceDelta(ctx sdk.Context, address sdk.AccAddress) sdk.Dec

func (Keeper) GetParams added in v1.4.0

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

func (Keeper) IncAccumulatedDelta added in v1.5.0

func (k Keeper) IncAccumulatedDelta(ctx sdk.Context, amount sdk.Dec)

func (Keeper) IncTokens added in v1.5.0

func (k Keeper) IncTokens(ctx sdk.Context, address sdk.AccAddress, amount sdk.Dec)

func (Keeper) IsBanned added in v1.4.0

func (k Keeper) IsBanned(ctx sdk.Context, address sdk.AccAddress) bool

func (Keeper) IterateBalance added in v1.5.0

func (k Keeper) IterateBalance(ctx sdk.Context, handle func(address sdk.AccAddress, balance sdk.Dec) (stop bool))

func (Keeper) IterateBalanceDelta added in v1.5.0

func (k Keeper) IterateBalanceDelta(ctx sdk.Context, handle func(address sdk.AccAddress, delta sdk.Dec) (stop bool))

func (Keeper) IterateBanList added in v1.5.0

func (k Keeper) IterateBanList(ctx sdk.Context, handle func(address sdk.AccAddress) (stop bool))

func (Keeper) Logger added in v1.3.0

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) ResetAccount added in v1.4.0

func (k Keeper) ResetAccount(ctx sdk.Context, address sdk.AccAddress)

func (Keeper) SetBalance added in v1.0.0

func (k Keeper) SetBalance(ctx sdk.Context, address sdk.AccAddress, amount sdk.Dec)

func (Keeper) SetBalanceDelta added in v1.5.0

func (k Keeper) SetBalanceDelta(ctx sdk.Context, address sdk.AccAddress, amount sdk.Dec)

func (Keeper) SetBan added in v1.4.0

func (k Keeper) SetBan(ctx sdk.Context, address sdk.AccAddress, ban bool)

func (Keeper) SetParams added in v1.4.0

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

Jump to

Keyboard shortcuts

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