Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper *Keeper) types.MsgServer
- type Keeper
- func (k Keeper) GetAllMsgs(ctx sdk.Context) []types.Msg
- func (k Keeper) GetLastMsgId(ctx sdk.Context) uint64
- func (k Keeper) GetMsgById(ctx sdk.Context, id uint64) (*types.Msg, error)
- func (k Keeper) GetMsgsByReceiver(ctx sdk.Context, receiver, topics string) []*types.Msg
- func (k Keeper) GetMsgsBySender(ctx sdk.Context, sender string) []*types.Msg
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) ReceivedMessages(c context.Context, req *types.ReceivedMessagesRequest) (*types.ReceivedMessagesResponse, error)
- func (k Keeper) Send(ctx sdk.Context, mm *types.MsgSend) (id uint64, err error)
- func (k Keeper) SentMessages(c context.Context, req *types.SentMessagesRequest) (*types.SentMessagesResponse, error)
- func (k Keeper) SetLastMsgId(ctx sdk.Context, id uint64)
- func (k Keeper) SetMsg(ctx sdk.Context, msg *types.Msg)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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 (Keeper) GetAllMsgs ¶
GetallMsgs returns all msgs
func (Keeper) GetLastMsgId ¶
GetLastMsgId returns last msg id
func (Keeper) GetMsgById ¶
GetMsgById returns msg by id
func (Keeper) GetMsgsByReceiver ¶
GetMsgsByReceiver returns all msgs by receiver
func (Keeper) GetMsgsBySender ¶
GetMsgsBySender returns all msgs by sender
func (Keeper) ReceivedMessages ¶
func (k Keeper) ReceivedMessages(c context.Context, req *types.ReceivedMessagesRequest) (*types.ReceivedMessagesResponse, error)
ReceivedMessages returns messages received by user
func (Keeper) SentMessages ¶
func (k Keeper) SentMessages(c context.Context, req *types.SentMessagesRequest) (*types.SentMessagesResponse, error)
SentMessages returns messages sent from user
func (Keeper) SetLastMsgId ¶
SetLastMsgId set last msg id
Click to show internal directories.
Click to hide internal directories.