Versions in this module Expand all Collapse all v0 v0.2.0 May 10, 2022 v0.1.0 Mar 18, 2022 Changes in this version + const StoreKey + var ClassKey = []byte + var ClassTotalSupply = []byte + var Delimiter = []byte + var NFTKey = []byte + var NFTOfClassByOwnerKey = []byte + var OwnerKey = []byte + var Placeholder = []byte + type Keeper struct + func NewKeeper(key storetypes.StoreKey, cdc codec.BinaryCodec, ak nft.AccountKeeper, ...) Keeper + func (k Keeper) Balance(goCtx context.Context, r *nft.QueryBalanceRequest) (*nft.QueryBalanceResponse, error) + func (k Keeper) Burn(ctx sdk.Context, classID string, nftID string) error + func (k Keeper) Class(goCtx context.Context, r *nft.QueryClassRequest) (*nft.QueryClassResponse, error) + func (k Keeper) Classes(goCtx context.Context, r *nft.QueryClassesRequest) (*nft.QueryClassesResponse, error) + func (k Keeper) ExportGenesis(ctx sdk.Context) *nft.GenesisState + func (k Keeper) GetBalance(ctx sdk.Context, classID string, owner sdk.AccAddress) uint64 + func (k Keeper) GetClass(ctx sdk.Context, classID string) (nft.Class, bool) + func (k Keeper) GetClasses(ctx sdk.Context) (classes []*nft.Class) + func (k Keeper) GetNFT(ctx sdk.Context, classID, nftID string) (nft.NFT, bool) + func (k Keeper) GetNFTsOfClass(ctx sdk.Context, classID string) (nfts []nft.NFT) + func (k Keeper) GetNFTsOfClassByOwner(ctx sdk.Context, classID string, owner sdk.AccAddress) (nfts []nft.NFT) + func (k Keeper) GetOwner(ctx sdk.Context, classID string, nftID string) sdk.AccAddress + func (k Keeper) GetTotalSupply(ctx sdk.Context, classID string) uint64 + func (k Keeper) HasClass(ctx sdk.Context, classID string) bool + func (k Keeper) HasNFT(ctx sdk.Context, classID, id string) bool + func (k Keeper) InitGenesis(ctx sdk.Context, data *nft.GenesisState) + func (k Keeper) Mint(ctx sdk.Context, token nft.NFT, receiver sdk.AccAddress) error + func (k Keeper) NFT(goCtx context.Context, r *nft.QueryNFTRequest) (*nft.QueryNFTResponse, error) + func (k Keeper) NFTs(goCtx context.Context, r *nft.QueryNFTsRequest) (*nft.QueryNFTsResponse, error) + func (k Keeper) Owner(goCtx context.Context, r *nft.QueryOwnerRequest) (*nft.QueryOwnerResponse, error) + func (k Keeper) SaveClass(ctx sdk.Context, class nft.Class) error + func (k Keeper) Send(goCtx context.Context, msg *nft.MsgSend) (*nft.MsgSendResponse, error) + func (k Keeper) Supply(goCtx context.Context, r *nft.QuerySupplyRequest) (*nft.QuerySupplyResponse, error) + func (k Keeper) Transfer(ctx sdk.Context, classID string, nftID string, receiver sdk.AccAddress) error + func (k Keeper) Update(ctx sdk.Context, token nft.NFT) error + func (k Keeper) UpdateClass(ctx sdk.Context, class nft.Class) error