keeper

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 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 NewMsgServerImpl

func NewMsgServerImpl(keeper *Keeper) types.MsgServer

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

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.Codec,
	storeKey storetypes.StoreKey,
) Keeper

func (Keeper) GetAllMsgs

func (k Keeper) GetAllMsgs(ctx sdk.Context) []types.Msg

GetallMsgs returns all msgs

func (Keeper) GetLastMsgId

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

GetLastMsgId returns last msg id

func (Keeper) GetMsgById

func (k Keeper) GetMsgById(ctx sdk.Context, id uint64) (*types.Msg, error)

GetMsgById returns msg by id

func (Keeper) GetMsgsByReceiver

func (k Keeper) GetMsgsByReceiver(ctx sdk.Context, receiver, topics string) []*types.Msg

GetMsgsByReceiver returns all msgs by receiver

func (Keeper) GetMsgsBySender

func (k Keeper) GetMsgsBySender(ctx sdk.Context, sender string) []*types.Msg

GetMsgsBySender returns all msgs by sender

func (Keeper) Logger

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

func (Keeper) ReceivedMessages

ReceivedMessages returns messages received by user

func (Keeper) Send

func (k Keeper) Send(ctx sdk.Context, mm *types.MsgSend) (id uint64, err error)

Send sends a new message

func (Keeper) SentMessages

SentMessages returns messages sent from user

func (Keeper) SetLastMsgId

func (k Keeper) SetLastMsgId(ctx sdk.Context, id uint64)

SetLastMsgId set last msg id

func (Keeper) SetMsg

func (k Keeper) SetMsg(ctx sdk.Context, msg *types.Msg)

SetMsg stores Msg to store

Jump to

Keyboard shortcuts

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