Documentation ¶
Index ¶
- type AccountKeeper
- type BankKeeper
- type ICS721Class
- type ICS721Token
- type Keeper
- func (k Keeper) Burn(ctx sdk.Context, classID string, tokenID string) error
- func (k Keeper) CreateOrUpdateClass(ctx sdk.Context, classID, classURI, classData string) error
- func (k Keeper) GetClass(ctx sdk.Context, classID string) (nfttransfer.Class, bool)
- func (k Keeper) GetNFT(ctx sdk.Context, classID, tokenID string) (nfttransfer.NFT, bool)
- func (k Keeper) GetOwner(ctx sdk.Context, classID string, tokenID string) sdk.AccAddress
- func (k Keeper) HasClass(ctx sdk.Context, classID string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Mint(ctx sdk.Context, classID, tokenID, tokenURI, tokenData string, ...) error
- func (k Keeper) Transfer(ctx sdk.Context, classID, tokenID, _ string, receiver sdk.AccAddress) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { NewAccountWithAddress(ctx context.Context, addr sdk.AccAddress) sdk.AccountI SetAccount(context.Context, sdk.AccountI) GetModuleAddress(name string) sdk.AccAddress }
AccountKeeper defines the contract required for account APIs.
type BankKeeper ¶
type BankKeeper interface {
BlockedAddr(addr sdk.AccAddress) bool
}
type ICS721Class ¶
func (ICS721Class) GetData ¶
func (c ICS721Class) GetData() string
func (ICS721Class) GetID ¶
func (c ICS721Class) GetID() string
func (ICS721Class) GetURI ¶
func (c ICS721Class) GetURI() string
type ICS721Token ¶
func (ICS721Token) GetClassID ¶
func (t ICS721Token) GetClassID() string
func (ICS721Token) GetData ¶
func (t ICS721Token) GetData() string
func (ICS721Token) GetID ¶
func (t ICS721Token) GetID() string
func (ICS721Token) GetURI ¶
func (t ICS721Token) GetURI() string
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper defines the ICS721 Keeper
func NewKeeper ¶
func NewKeeper(cdc codec.Codec, k onftkeeper.Keeper, ak AccountKeeper, bk BankKeeper, ) Keeper
NewKeeper creates a new ics721 Keeper instance
func (Keeper) CreateOrUpdateClass ¶
CreateOrUpdateClass implement the method of ICS721Keeper.CreateOrUpdateClass
Click to show internal directories.
Click to hide internal directories.