Documentation ¶
Index ¶
- func GetItemIDBytes(id uint64) []byte
- func GetItemIDFromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AppendItem(ctx sdk.Context, item types.Item) uint64
- func (k Keeper) GetAllItem(ctx sdk.Context) (list []types.Item)
- func (k Keeper) GetItem(ctx sdk.Context, id uint64) (val types.Item, found bool)
- func (k Keeper) GetItemCount(ctx sdk.Context) uint64
- func (k Keeper) Item(c context.Context, req *types.QueryGetItemRequest) (*types.QueryGetItemResponse, error)
- func (k Keeper) ItemAll(c context.Context, req *types.QueryAllItemRequest) (*types.QueryAllItemResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) RemoveItem(ctx sdk.Context, id uint64)
- func (k Keeper) SetItem(ctx sdk.Context, item types.Item)
- func (k Keeper) SetItemCount(ctx sdk.Context, count uint64)
- func (k Keeper) Transfer(ctx sdk.Context, id uint64, newOwner sdk.AccAddress) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetItemIDBytes ¶
GetItemIDBytes returns the byte representation of the ID
func GetItemIDFromBytes ¶
GetItemIDFromBytes returns ID in uint64 format from a byte array
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 (Keeper) AppendItem ¶
AppendItem appends a item in the store with a new id and update the count
func (Keeper) GetAllItem ¶
GetAllItem returns all item
func (Keeper) GetItemCount ¶
GetItemCount get the total number of item
func (Keeper) Item ¶
func (k Keeper) Item(c context.Context, req *types.QueryGetItemRequest) (*types.QueryGetItemResponse, error)
func (Keeper) ItemAll ¶
func (k Keeper) ItemAll(c context.Context, req *types.QueryAllItemRequest) (*types.QueryAllItemResponse, error)
func (Keeper) RemoveItem ¶
RemoveItem removes a item from the store
func (Keeper) SetItemCount ¶
SetItemCount set the total number of item
Click to show internal directories.
Click to hide internal directories.