keeper

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) interface{}

NewQuerier creates a new querier for the fluentum module

Types

type BankKeeper

type BankKeeper interface {
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
}

BankKeeper defines the expected bank keeper

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	ps paramtypes.Subspace,
	bk BankKeeper,
) *Keeper

func (Keeper) GetAllFluentum

func (k Keeper) GetAllFluentum(ctx sdk.Context) (list []types.Fluentum)

GetAllFluentum retrieves all fluentum from the store

func (Keeper) GetFluentum

func (k Keeper) GetFluentum(ctx sdk.Context, index string) (val types.Fluentum, found bool)

GetFluentum retrieves a fluentum from the store

func (Keeper) GetFluentumCount

func (k Keeper) GetFluentumCount(ctx sdk.Context) uint64

GetFluentumCount retrieves the fluentum count from the store

func (Keeper) GetParams

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

GetParams retrieves the params from the store

func (Keeper) Logger

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

func (Keeper) SetFluentum

func (k Keeper) SetFluentum(ctx sdk.Context, fluentum types.Fluentum)

SetFluentum stores a fluentum in the store

func (Keeper) SetFluentumCount

func (k Keeper) SetFluentumCount(ctx sdk.Context, count uint64)

SetFluentumCount sets the fluentum count in the store

func (Keeper) SetParams

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

SetParams sets the params in the store

type Querier

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

Querier defines the querier for the fluentum module

Jump to

Keyboard shortcuts

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