keeper

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 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

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.Codec,
	storeKey storetypes.StoreKey,
	ak nft.AccountKeeper,
	bk nft.BankKeeper,
) Keeper

func (Keeper) BurnPNFT

func (k Keeper) BurnPNFT(
	ctx sdk.Context,
	denomId string,
	id string,
	burner string,
) error

func (Keeper) DeleteDenom

func (k Keeper) DeleteDenom(ctx sdk.Context, id string, remover string) error

func (Keeper) Denom

func (Keeper) Denoms

func (Keeper) DenomsByOwner

func (Keeper) GetAllDenoms

func (k Keeper) GetAllDenoms(ctx sdk.Context) ([]*types.Denom, error)

func (Keeper) GetDenom

func (k Keeper) GetDenom(ctx sdk.Context, id string) (*types.Denom, error)

func (Keeper) GetPNFT

func (k Keeper) GetPNFT(
	ctx sdk.Context,
	denomId string,
	id string,
) (*types.Pnft, error)

func (Keeper) GetPNFTsByDenomId

func (k Keeper) GetPNFTsByDenomId(ctx sdk.Context, denomId string) ([]*types.Pnft, error)

func (Keeper) GetPNFTsByDenomIdAndOwner

func (k Keeper) GetPNFTsByDenomIdAndOwner(ctx sdk.Context, denomId, owner string) ([]*types.Pnft, error)

func (Keeper) Logger

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

func (Keeper) MintPNFT

func (k Keeper) MintPNFT(
	ctx sdk.Context,
	pnft *types.Pnft,
) error

func (Keeper) PNFT

func (Keeper) PNFTs

func (Keeper) ParseDenoms

func (k Keeper) ParseDenoms(classes []*nft.Class) ([]*types.Denom, error)

func (Keeper) SaveDenom

func (k Keeper) SaveDenom(
	ctx sdk.Context,
	denom *types.Denom,
) error

func (Keeper) TransferDenomOwner

func (k Keeper) TransferDenomOwner(
	ctx sdk.Context,
	id string,
	sender string,
	receiver string,
) error

func (Keeper) TransferPNFT

func (k Keeper) TransferPNFT(
	ctx sdk.Context,
	denomId string,
	id string,
	sender string,
	receiver string,
) error

func (Keeper) UpdateDenom

func (k Keeper) UpdateDenom(ctx sdk.Context, msg *types.Denom) error

Jump to

Keyboard shortcuts

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