keeper

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNftItemIDBytes

func GetNftItemIDBytes(id uint64) []byte

GetNftItemIDBytes returns the byte representation of the ID

func GetNftItemIDFromBytes

func GetNftItemIDFromBytes(bz []byte) uint64

GetNftItemIDFromBytes returns ID in uint64 format from a byte array

func GetNftItemIDFromBytesTemp

func GetNftItemIDFromBytesTemp(bz []byte) uint64

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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,

) *Keeper

func (Keeper) AddNftItemToAccount

func (k Keeper) AddNftItemToAccount(ctx sdk.Context, address string, nftID uint64)

func (Keeper) AppendNftItem

func (k Keeper) AppendNftItem(
	ctx sdk.Context,
	nftItem types.NftItem,
) uint64

func (Keeper) BalanceOf

func (Keeper) GetAllNftItem

func (k Keeper) GetAllNftItem(ctx sdk.Context) (list []types.NftItem)

GetAllNftItem returns all nftItem

func (Keeper) GetNftItem

func (k Keeper) GetNftItem(ctx sdk.Context, id uint64) types.NftItem

GetNftItem returns a nftItem from its id

func (Keeper) GetNftItemCount

func (k Keeper) GetNftItemCount(ctx sdk.Context) uint64

GetNftItemCount get the total number of TypeName.LowerCamel

func (Keeper) GetNftItemOwner

func (k Keeper) GetNftItemOwner(ctx sdk.Context, id uint64) string

GetNftItemOwner returns the creator of the

func (Keeper) HasNftItem

func (k Keeper) HasNftItem(ctx sdk.Context, id uint64) bool

HasNftItem checks if the nftItem exists in the store

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) RemoveNftItem

func (k Keeper) RemoveNftItem(ctx sdk.Context, id uint64)

RemoveNftItem removes a nftItem from the store

func (Keeper) RemoveNftItemToAccount

func (k Keeper) RemoveNftItemToAccount(ctx sdk.Context, address string, nftID uint64)

func (Keeper) SetNftItem

func (k Keeper) SetNftItem(ctx sdk.Context, nftItem types.NftItem)

SetNftItem set a specific nftItem in the store

func (Keeper) SetNftItemCount

func (k Keeper) SetNftItemCount(ctx sdk.Context, count uint64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL