Documentation
¶
Index ¶
- func GetNftItemIDBytes(id uint64) []byte
- func GetNftItemIDFromBytes(bz []byte) uint64
- func GetNftItemIDFromBytesTemp(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddNftItemToAccount(ctx sdk.Context, address string, nftID uint64)
- func (k Keeper) AppendNftItem(ctx sdk.Context, nftItem types.NftItem) uint64
- func (k Keeper) BalanceOf(goCtx context.Context, req *types.QueryBalanceOfRequest) (*types.QueryBalanceOfResponse, error)
- func (k Keeper) GetAllNftItem(ctx sdk.Context) (list []types.NftItem)
- func (k Keeper) GetNftItem(ctx sdk.Context, id uint64) types.NftItem
- func (k Keeper) GetNftItemCount(ctx sdk.Context) uint64
- func (k Keeper) GetNftItemOwner(ctx sdk.Context, id uint64) string
- func (k Keeper) HasNftItem(ctx sdk.Context, id uint64) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) NftItem(c context.Context, req *types.QueryGetNftItemRequest) (*types.QueryGetNftItemResponse, error)
- func (k Keeper) NftItemAll(c context.Context, req *types.QueryAllNftItemRequest) (*types.QueryAllNftItemResponse, error)
- func (k Keeper) RemoveNftItem(ctx sdk.Context, id uint64)
- func (k Keeper) RemoveNftItemToAccount(ctx sdk.Context, address string, nftID uint64)
- func (k Keeper) SetNftItem(ctx sdk.Context, nftItem types.NftItem)
- func (k Keeper) SetNftItemCount(ctx sdk.Context, count uint64)
- func (k Keeper) TokenOfOwnerByIndex(goCtx context.Context, req *types.QueryTokenOfOwnerByIndexRequest) (*types.QueryTokenOfOwnerByIndexResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNftItemIDBytes ¶
GetNftItemIDBytes returns the byte representation of the ID
func GetNftItemIDFromBytes ¶
GetNftItemIDFromBytes 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) AddNftItemToAccount ¶
func (Keeper) AppendNftItem ¶
func (Keeper) BalanceOf ¶
func (k Keeper) BalanceOf(goCtx context.Context, req *types.QueryBalanceOfRequest) (*types.QueryBalanceOfResponse, error)
func (Keeper) GetAllNftItem ¶
GetAllNftItem returns all nftItem
func (Keeper) GetNftItem ¶
GetNftItem returns a nftItem from its id
func (Keeper) GetNftItemCount ¶
GetNftItemCount get the total number of TypeName.LowerCamel
func (Keeper) GetNftItemOwner ¶
GetNftItemOwner returns the creator of the
func (Keeper) HasNftItem ¶
HasNftItem checks if the nftItem exists in the store
func (Keeper) NftItem ¶
func (k Keeper) NftItem(c context.Context, req *types.QueryGetNftItemRequest) (*types.QueryGetNftItemResponse, error)
func (Keeper) NftItemAll ¶
func (k Keeper) NftItemAll(c context.Context, req *types.QueryAllNftItemRequest) (*types.QueryAllNftItemResponse, error)
func (Keeper) RemoveNftItem ¶
RemoveNftItem removes a nftItem from the store
func (Keeper) RemoveNftItemToAccount ¶
func (Keeper) SetNftItem ¶
SetNftItem set a specific nftItem in the store
func (Keeper) TokenOfOwnerByIndex ¶
func (k Keeper) TokenOfOwnerByIndex(goCtx context.Context, req *types.QueryTokenOfOwnerByIndexRequest) (*types.QueryTokenOfOwnerByIndexResponse, error)
Click to show internal directories.
Click to hide internal directories.