Documentation ¶
Index ¶
- type AccountKeeper
- type InterClass
- type InterNftKeeper
- func (ik InterNftKeeper) Burn(ctx sdk.Context, classID string, tokenID string) error
- func (ik InterNftKeeper) CreateOrUpdateClass(ctx sdk.Context, classID, classURI, classData string) error
- func (ik InterNftKeeper) GetClass(ctx sdk.Context, classID string) (nfttransfer.Class, bool)
- func (ik InterNftKeeper) GetNFT(ctx sdk.Context, classID, tokenID string) (nfttransfer.NFT, bool)
- func (ik InterNftKeeper) GetOwner(ctx sdk.Context, classID string, tokenID string) sdk.AccAddress
- func (ik InterNftKeeper) HasClass(ctx sdk.Context, classID string) bool
- func (ik InterNftKeeper) Logger(ctx sdk.Context) log.Logger
- func (ik InterNftKeeper) Mint(ctx sdk.Context, classID, tokenID, tokenURI, tokenData string, ...) error
- func (ik InterNftKeeper) Transfer(ctx sdk.Context, classID, tokenID, tokenData string, receiver sdk.AccAddress) error
- type InterToken
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 ¶
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 nftkeeper.Keeper, ak AccountKeeper, ) InterNftKeeper
NewInterNftKeeper creates a new ics721 Keeper instance
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 ¶
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
Click to show internal directories.
Click to hide internal directories.