keeper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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,

	accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper,
) *Keeper

func (Keeper) GetAllNft

func (k Keeper) GetAllNft(ctx sdk.Context) (list []types.Nft)

GetAllNft returns all nft

func (Keeper) GetNft

func (k Keeper) GetNft(
	ctx sdk.Context,
	index string,

) (val types.Nft, found bool)

GetNft returns a nft from its index

func (Keeper) Logger

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

func (Keeper) NftAll

func (Keeper) RemoveNft

func (k Keeper) RemoveNft(
	ctx sdk.Context,
	index string,

)

RemoveNft removes a nft from the store

func (Keeper) SetNft

func (k Keeper) SetNft(ctx sdk.Context, nft types.Nft)

SetNft set a specific nft in the store from its index

Jump to

Keyboard shortcuts

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