Documentation ¶
Index ¶
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (k Keeper) BuyItem(ctx sdk.Context, key string, receiver sdk.AccAddress) (err error)
- func (k Keeper) CreateItem(ctx sdk.Context, item types.Item) (err error)
- func (k Keeper) DeleteItem(ctx sdk.Context, key string)
- func (k Keeper) GetCollection(ctx sdk.Context, denom string) (collection types.Collection, found bool)
- func (k Keeper) GetItem(ctx sdk.Context, key string) (types.Item, error)
- func (k Keeper) GetItemOwner(ctx sdk.Context, key string) sdk.AccAddress
- func (k Keeper) GetOwner(ctx sdk.Context, addr sdk.AccAddress) (owner types.Owner, found bool)
- func (k Keeper) ItemExists(ctx sdk.Context, key string) bool
- func (k Keeper) IterateItems(ctx sdk.Context, handler func(item types.Item) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetCollection(ctx sdk.Context, denom string, collection types.Collection)
- func (k Keeper) SetItem(ctx sdk.Context, item types.Item)
- func (k Keeper) SetOwner(ctx sdk.Context, addr sdk.AccAddress, owner types.Owner)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier creates a new querier for affondra clients.
Types ¶
type Keeper ¶
type Keeper struct { CoinKeeper bank.Keeper // paramspace types.ParamSubspace // add NFTKeeper NFTKeeper nft.Keeper // contains filtered or unexported fields }
Keeper of the affondra store
func NewKeeper ¶
func NewKeeper(coinKeeper bank.Keeper, nftKeeper nft.Keeper, cdc *codec.Codec, key sdk.StoreKey) Keeper
NewKeeper creates a affondra keeper
func (Keeper) CreateItem ¶
CreateItem creates a item
func (Keeper) DeleteItem ¶
DeleteItem deletes a item
func (Keeper) GetCollection ¶
func (k Keeper) GetCollection(ctx sdk.Context, denom string) (collection types.Collection, found bool)
GetCollection returns a collection of Items
func (Keeper) GetItemOwner ¶
GetItemOwner returns creator of the item
func (Keeper) ItemExists ¶
ItemExists check if the key exists in the store
func (Keeper) IterateItems ¶
IterateItems iterates over collections and performs a function
func (Keeper) SetCollection ¶
SetCollection sets the entire collection of a single denom
Click to show internal directories.
Click to hide internal directories.