Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) GetAllNotiCounter(ctx sdk.Context) (list []types.NotiCounter)
- func (k Keeper) GetAllNotifications(ctx sdk.Context) (list []types.Notifications)
- func (k Keeper) GetAllNotificationsForUser(ctx sdk.Context, address string) (list []types.Notifications)
- func (k Keeper) GetNotiCounter(ctx sdk.Context, address string) (val types.NotiCounter, found bool)
- func (k Keeper) GetNotifications(ctx sdk.Context, count uint64, address string) (val types.Notifications, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) (p types.Params)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) NotiCounter(c context.Context, req *types.QueryGetNotiCounterRequest) (*types.QueryGetNotiCounterResponse, error)
- func (k Keeper) NotiCounterAll(c context.Context, req *types.QueryAllNotiCounterRequest) (*types.QueryAllNotiCounterResponse, error)
- func (k Keeper) Notifications(c context.Context, req *types.QueryGetNotificationsRequest) (*types.QueryGetNotificationsResponse, error)
- func (k Keeper) NotificationsAll(c context.Context, req *types.QueryAllNotificationsRequest) (*types.QueryAllNotificationsResponse, error)
- func (k Keeper) NotificationsByAddress(c context.Context, req *types.QueryAllNotificationsByAddressRequest) (*types.QueryAllNotificationsByAddressResponse, error)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveNotiCounter(ctx sdk.Context, address string)
- func (k Keeper) RemoveNotifications(ctx sdk.Context, count uint64, address string)
- func (k Keeper) SetNotiCounter(ctx sdk.Context, notiCounter types.NotiCounter)
- func (k Keeper) SetNotifications(ctx sdk.Context, notifications types.Notifications, address string)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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) NotiCounter ¶
func (k Keeper) NotiCounter(c context.Context, req *types.QueryGetNotiCounterRequest) (*types.QueryGetNotiCounterResponse, error)
func (Keeper) NotiCounterAll ¶
func (k Keeper) NotiCounterAll(c context.Context, req *types.QueryAllNotiCounterRequest) (*types.QueryAllNotiCounterResponse, error)
func (Keeper) Notifications ¶
func (k Keeper) Notifications(c context.Context, req *types.QueryGetNotificationsRequest) (*types.QueryGetNotificationsResponse, error)
This one is querying a single notification given its index--it was auto generated and is a little bit useless
func (Keeper) NotificationsAll ¶
func (k Keeper) NotificationsAll(c context.Context, req *types.QueryAllNotificationsRequest) (*types.QueryAllNotificationsResponse, error)
func (Keeper) NotificationsByAddress ¶
func (k Keeper) NotificationsByAddress(c context.Context, req *types.QueryAllNotificationsByAddressRequest) (*types.QueryAllNotificationsByAddressResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveNotiCounter ¶
RemoveNotiCounter removes a notiCounter from the store
func (Keeper) RemoveNotifications ¶
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