keeper

package
v2.1.1-0...-d24ec66 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type Keeper

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

func NewKeeper

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

func (Keeper) GetAllNotiCounter

func (k Keeper) GetAllNotiCounter(ctx sdk.Context) (list []types.NotiCounter)

GetAllNotiCounter returns all notiCounter

func (Keeper) GetAllNotifications

func (k Keeper) GetAllNotifications(ctx sdk.Context) (list []types.Notifications)

GetAllNotifications returns all notifications

func (Keeper) GetAllNotificationsForUser

func (k Keeper) GetAllNotificationsForUser(ctx sdk.Context, address string) (list []types.Notifications)

GetAllNotificationsForUser returns all notifications for a user

func (Keeper) GetNotiCounter

func (k Keeper) GetNotiCounter(
	ctx sdk.Context,
	address string,
) (val types.NotiCounter, found bool)

GetNotiCounter returns a notiCounter from its index

func (Keeper) GetNotifications

func (k Keeper) GetNotifications(
	ctx sdk.Context,
	count uint64,
	address string,
) (val types.Notifications, found bool)

GetNotifications returns a notifications from its index

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) Logger

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

func (Keeper) Notifications

This one is querying a single notification given its index--it was auto generated and is a little bit useless

func (Keeper) Params

func (Keeper) RemoveNotiCounter

func (k Keeper) RemoveNotiCounter(
	ctx sdk.Context,
	address string,
)

RemoveNotiCounter removes a notiCounter from the store

func (Keeper) RemoveNotifications

func (k Keeper) RemoveNotifications(
	ctx sdk.Context,
	count uint64,
	address string,
)

RemoveNotifications removes a notifications from the store

func (Keeper) SetNotiCounter

func (k Keeper) SetNotiCounter(ctx sdk.Context, notiCounter types.NotiCounter)

SetNotiCounter set a specific notiCounter in the store from its index

func (Keeper) SetNotifications

func (k Keeper) SetNotifications(ctx sdk.Context, notifications types.Notifications, address string)

SetNotifications set a specific notifications in the store from its index

func (Keeper) SetParams

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

SetParams set the params

type Migrator

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

Migrator is a struct for handling in-place store migrations.

func NewMigrator

func NewMigrator(keeper Keeper) Migrator

NewMigrator returns a new Migrator

func (Migrator) Migrate1to2

func (m Migrator) Migrate1to2(ctx sdk.Context) error

Migrate1to2 migrates from version 1 to 2.

Jump to

Keyboard shortcuts

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