keeper

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQueryServer added in v1.5.0

func NewQueryServer(keeper Keeper) 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,
) *Keeper

func (Keeper) GetBalance

func (k Keeper) GetBalance(ctx sdk.Context, address sdk.AccAddress) 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) 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) 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)

Jump to

Keyboard shortcuts

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