Documentation ¶
Index ¶
- func GetBytesFromUInt64(id uint64) []byte
- func GetIDFromBytes(bz []byte) uint64
- func GetUInt64FromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- 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) GetNftTotalToAccount(ctx sdk.Context, address string) uint64
- func (k Keeper) HasNftItem(ctx sdk.Context, id uint64) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) NftIdListOfOwner(goCtx context.Context, req *types.QueryNftIdListOfOwnerRequest) (*types.QueryNftIdListOfOwnerResponse, error)
- 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) SetNftItemToAccount(ctx sdk.Context, address string, nftID uint64)
- func (k Keeper) SetNftTotalToAccount(ctx sdk.Context, address string, total uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBytesFromUInt64 ¶
GetBytesFromUInt64 returns the byte representation of the UInt64
func GetIDFromBytes ¶
func GetUInt64FromBytes ¶
GetUInt64FromBytes returns 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) 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) GetNftTotalToAccount ¶
func (Keeper) HasNftItem ¶
HasNftItem checks if the nftItem exists in the store
func (Keeper) NftIdListOfOwner ¶
func (k Keeper) NftIdListOfOwner(goCtx context.Context, req *types.QueryNftIdListOfOwnerRequest) (*types.QueryNftIdListOfOwnerResponse, error)
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) SetNftItemToAccount ¶
Click to show internal directories.
Click to hide internal directories.