internft

package
v3.0.0-rc0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountKeeper

type AccountKeeper interface {
	NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	// Set an account in the store.
	SetAccount(sdk.Context, authtypes.AccountI)
	GetModuleAddress(name string) sdk.AccAddress
}

AccountKeeper defines the contract required for account APIs.

type InterClass

type InterClass struct {
	ID   string
	URI  string
	Data string
}

func (InterClass) GetData

func (d InterClass) GetData() string

func (InterClass) GetID

func (d InterClass) GetID() string

func (InterClass) GetURI

func (d InterClass) GetURI() string

type InterNftKeeper

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

InterNftKeeper defines the ICS721 Keeper

func NewInterNftKeeper

func NewInterNftKeeper(cdc codec.Codec,
	k irismodnftkeeper.Keeper,
	ak AccountKeeper,
) InterNftKeeper

NewInterNftKeeper creates a new ics721 Keeper instance

func (InterNftKeeper) Burn

func (ik InterNftKeeper) Burn(ctx sdk.Context, classID string, tokenID string) error

Burn implement the method of ICS721Keeper.Burn

func (InterNftKeeper) CreateOrUpdateClass

func (ik InterNftKeeper) CreateOrUpdateClass(ctx sdk.Context,
	classID,
	classURI,
	classData string,
) error

CreateOrUpdateClass implement the method of ICS721Keeper.CreateOrUpdateClass

func (InterNftKeeper) GetClass

func (ik InterNftKeeper) GetClass(ctx sdk.Context, classID string) (nfttransfer.Class, bool)

GetClass implement the method of ICS721Keeper.GetClass

func (InterNftKeeper) GetNFT

func (ik InterNftKeeper) GetNFT(ctx sdk.Context, classID, tokenID string) (nfttransfer.NFT, bool)

GetNFT implement the method of ICS721Keeper.GetNFT

func (InterNftKeeper) GetOwner

func (ik InterNftKeeper) GetOwner(ctx sdk.Context, classID string, tokenID string) sdk.AccAddress

GetOwner implement the method of ICS721Keeper.GetOwner

func (InterNftKeeper) HasClass

func (ik InterNftKeeper) HasClass(ctx sdk.Context, classID string) bool

HasClass implement the method of ICS721Keeper.HasClass

func (InterNftKeeper) Logger

func (ik InterNftKeeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (InterNftKeeper) Mint

func (ik InterNftKeeper) Mint(ctx sdk.Context,
	classID,
	tokenID,
	tokenURI,
	tokenData string,
	receiver sdk.AccAddress,
) error

Mint implement the method of ICS721Keeper.Mint

func (InterNftKeeper) Transfer

func (ik InterNftKeeper) Transfer(
	ctx sdk.Context,
	classID,
	tokenID,
	tokenData string,
	receiver sdk.AccAddress,
) error

Transfer implement the method of ICS721Keeper.Transfer

type InterToken

type InterToken struct {
	ClassID string
	ID      string
	URI     string
	Data    string
}

func (InterToken) GetClassID

func (t InterToken) GetClassID() string

func (InterToken) GetData

func (t InterToken) GetData() string

func (InterToken) GetID

func (t InterToken) GetID() string

func (InterToken) GetURI

func (t InterToken) GetURI() string

Jump to

Keyboard shortcuts

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