keeper

package
v4.2.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 13 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,
	rns types.RnsKeeper,
) *Keeper

func (Keeper) GetAllNotifications

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

GetAllNotifications returns all notifications

func (Keeper) GetAllNotificationsByAddress

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

GetAllNotificationsByAddress returns all notifications that belong to a given address

func (Keeper) GetNotification

func (k Keeper) GetNotification(
	ctx sdk.Context,
	to string,
	from string,
	timeStamp int64,
) (val types.Notification, found bool)

GetNotification returns a notification 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) IsBlocked

func (k Keeper) IsBlocked(
	ctx sdk.Context,
	owner string,
	from string,
) (found bool)

IsBlocked returns if a user is blocked

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) RemoveBlock

func (k Keeper) RemoveBlock(
	ctx sdk.Context,
	owner string,
	from string,
)

RemoveBlock removes a block from the store

func (Keeper) RemoveNotification

func (k Keeper) RemoveNotification(
	ctx sdk.Context,
	to string,
	from string,
	timeStamp int64,
)

RemoveNotification removes a notification from the store

func (Keeper) SetBlock

func (k Keeper) SetBlock(ctx sdk.Context, block types.Block)

SetBlock sets a specific block value in the store

func (Keeper) SetNotification

func (k Keeper) SetNotification(ctx sdk.Context, notification types.Notification)

SetNotification 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

Jump to

Keyboard shortcuts

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