keeper

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBytesFromUInt64 added in v0.3.3

func GetBytesFromUInt64(id uint64) []byte

GetBytesFromUInt64 returns the byte representation of the UInt64

func GetIDFromBytes added in v0.3.3

func GetIDFromBytes(bz []byte) uint64

func GetUInt64FromBytes added in v0.3.3

func GetUInt64FromBytes(bz []byte) uint64

GetUInt64FromBytes returns uint64 format from a byte array

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) 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) GetNftTotalToAccount added in v0.3.3

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

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) NftIdListOfOwner added in v0.3.3

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)

func (Keeper) SetNftItemToAccount added in v0.3.3

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

func (Keeper) SetNftTotalToAccount added in v0.3.3

func (k Keeper) SetNftTotalToAccount(ctx sdk.Context, address string, total uint64)

Jump to

Keyboard shortcuts

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