Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) Authorize(ctx sdk.Context, denomID, ID string, owner sdk.AccAddress) (types.NFT, error)
- func (k Keeper) BurnNFT(ctx sdk.Context, classID, ID string, owner sdk.AccAddress) error
- func (q Keeper) Class(c context.Context, req *types.QueryClassRequest) (*types.QueryClassResponse, error)
- func (q Keeper) Classes(c context.Context, req *types.QueryClassesRequest) (*types.QueryClassesResponse, error)
- func (k Keeper) EditNFT(ctx sdk.Context, classID, ID, name, uri, data string, owner sdk.AccAddress) error
- func (k Keeper) GetClassByID(ctx sdk.Context, id string) (denom types.Class, ok bool)
- func (k Keeper) GetClasses(ctx sdk.Context) (denoms []types.Class)
- func (k Keeper) GetCollections(ctx sdk.Context) (list []types.Collection)
- func (k Keeper) GetNFT(ctx sdk.Context, denomID, ID string) (types.NFTI, error)
- func (k Keeper) GetNFTs(ctx sdk.Context, denomID string) (nfts []types.NFTI)
- func (k Keeper) GetPaginateCollection(ctx sdk.Context, req *types.QueryNFTsRequest, denomID string) ([]types.NFTI, *query.PageResponse, error)
- func (k Keeper) GetTotalSupply(ctx sdk.Context, denomID string) uint64
- func (k Keeper) HasClassByID(ctx sdk.Context, id string) bool
- func (k Keeper) HasNFTByID(ctx sdk.Context, denomID, nftID string) bool
- func (k Keeper) IssueClass(ctx sdk.Context, id, name, schema, symbol string, owner sdk.AccAddress, ...) error
- func (k Keeper) IssueNFT(ctx sdk.Context, classID, ID, name, uri, data string, owner sdk.AccAddress) error
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (q Keeper) NFT(c context.Context, req *types.QueryNFTRequest) (*types.QueryNFTResponse, error)
- func (q Keeper) NFTs(c context.Context, req *types.QueryNFTsRequest) (*types.QueryNFTsResponse, error)
- func (q Keeper) Owner(c context.Context, req *types.QueryOwnerRequest) (*types.QueryOwnerResponse, error)
- func (k Keeper) SetClass(ctx sdk.Context, denom types.Class) error
- func (k Keeper) SetCollection(ctx sdk.Context, collection types.Collection) error
- func (q Keeper) Supply(c context.Context, req *types.QuerySupplyRequest) (*types.QuerySupplyResponse, error)
- func (k Keeper) TransferClassToOwner(ctx sdk.Context, owner, recipient sdk.AccAddress, classID string) error
- func (k Keeper) TransferNFTToOwner(ctx sdk.Context, owner, recipient sdk.AccAddress, nftID, classID string) error
- func (k Keeper) UpdateDenom(ctx sdk.Context, denom types.Class) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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.Codec, storeKey sdk.StoreKey, ak types.AccountKeeper, bk types.BankKeeper, ) *Keeper
func (Keeper) Authorize ¶ added in v0.7.1
func (k Keeper) Authorize(ctx sdk.Context, denomID, ID string, owner sdk.AccAddress) (types.NFT, error)
Authorize checks if the sender is the owner of the given NFT
func (Keeper) Class ¶ added in v0.7.2
func (q Keeper) Class(c context.Context, req *types.QueryClassRequest) (*types.QueryClassResponse, error)
func (Keeper) Classes ¶ added in v0.7.2
func (q Keeper) Classes(c context.Context, req *types.QueryClassesRequest) (*types.QueryClassesResponse, error)
func (Keeper) GetClassByID ¶ added in v0.7.2
func (Keeper) GetClasses ¶ added in v0.7.2
func (Keeper) GetCollections ¶ added in v0.7.2
func (k Keeper) GetCollections(ctx sdk.Context) (list []types.Collection)
func (Keeper) GetPaginateCollection ¶ added in v0.7.1
func (Keeper) GetTotalSupply ¶ added in v0.7.1
get denom count
func (Keeper) HasClassByID ¶ added in v0.7.2
func (Keeper) HasNFTByID ¶ added in v0.7.1
func (Keeper) IssueClass ¶ added in v0.7.2
func (Keeper) NFT ¶ added in v0.7.1
func (q Keeper) NFT(c context.Context, req *types.QueryNFTRequest) (*types.QueryNFTResponse, error)
func (Keeper) NFTs ¶ added in v1.1.0
func (q Keeper) NFTs(c context.Context, req *types.QueryNFTsRequest) (*types.QueryNFTsResponse, error)
func (Keeper) Owner ¶ added in v0.7.1
func (q Keeper) Owner(c context.Context, req *types.QueryOwnerRequest) (*types.QueryOwnerResponse, error)
func (Keeper) SetCollection ¶ added in v0.7.2
func (Keeper) Supply ¶ added in v0.7.1
func (q Keeper) Supply(c context.Context, req *types.QuerySupplyRequest) (*types.QuerySupplyResponse, error)
func (Keeper) TransferClassToOwner ¶ added in v0.7.2
func (Keeper) TransferNFTToOwner ¶ added in v0.7.1
Click to show internal directories.
Click to hide internal directories.