Documentation ¶
Index ¶
- func GetMarketItemIDBytes(id uint64) []byte
- func GetMarketItemIDFromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AppendMarketItem(ctx sdk.Context, marketItem types.MarketItem) uint64
- func (k Keeper) GetAllMarketItem(ctx sdk.Context) (list []types.MarketItem)
- func (k Keeper) GetMarketItem(ctx sdk.Context, id uint64) (val types.MarketItem, found bool)
- func (k Keeper) GetMarketItemCount(ctx sdk.Context) uint64
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MarketItem(c context.Context, req *types.QueryGetMarketItemRequest) (*types.QueryGetMarketItemResponse, error)
- func (k Keeper) MarketItemAll(c context.Context, req *types.QueryAllMarketItemRequest) (*types.QueryAllMarketItemResponse, error)
- func (k Keeper) RemoveMarketItem(ctx sdk.Context, id uint64)
- func (k Keeper) SetMarketItem(ctx sdk.Context, marketItem types.MarketItem)
- func (k Keeper) SetMarketItemCount(ctx sdk.Context, count uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMarketItemIDBytes ¶
GetMarketItemIDBytes returns the byte representation of the ID
func GetMarketItemIDFromBytes ¶
GetMarketItemIDFromBytes 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 NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, storeKeeper types.StoreKeeper, ) *Keeper
func (Keeper) AppendMarketItem ¶
AppendMarketItem appends a marketItem in the store with a new id and update the count
func (Keeper) GetAllMarketItem ¶
func (k Keeper) GetAllMarketItem(ctx sdk.Context) (list []types.MarketItem)
GetAllMarketItem returns all marketItem
func (Keeper) GetMarketItem ¶
GetMarketItem returns a marketItem from its id
func (Keeper) GetMarketItemCount ¶
GetMarketItemCount get the total number of marketItem
func (Keeper) MarketItem ¶
func (k Keeper) MarketItem(c context.Context, req *types.QueryGetMarketItemRequest) (*types.QueryGetMarketItemResponse, error)
func (Keeper) MarketItemAll ¶
func (k Keeper) MarketItemAll(c context.Context, req *types.QueryAllMarketItemRequest) (*types.QueryAllMarketItemResponse, error)
func (Keeper) RemoveMarketItem ¶
RemoveMarketItem removes a marketItem from the store
func (Keeper) SetMarketItem ¶
func (k Keeper) SetMarketItem(ctx sdk.Context, marketItem types.MarketItem)
SetMarketItem set a specific marketItem in the store
Click to show internal directories.
Click to hide internal directories.