Documentation ¶
Index ¶
- Constants
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
- func SupplyInvariant(k Keeper) sdk.Invariant
- type Keeper
- func (k Keeper) Authorize(ctx sdk.Context, denomID, onftID string, owner sdk.AccAddress) error
- func (k Keeper) AuthorizeDenomCreator(ctx sdk.Context, id string, creator sdk.AccAddress) error
- func (k Keeper) BurnONFT(ctx sdk.Context, denomID, onftID string, owner sdk.AccAddress) error
- func (k Keeper) Collection(c context.Context, request *types.QueryCollectionRequest) (*types.QueryCollectionResponse, error)
- func (k Keeper) DeleteDenomFromStore(ctx sdk.Context, denomId string)
- func (k Keeper) Denom(c context.Context, request *types.QueryDenomRequest) (*types.QueryDenomResponse, error)
- func (k Keeper) Denoms(c context.Context, request *types.QueryDenomsRequest) (*types.QueryDenomsResponse, error)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetBalance(ctx sdk.Context, id string, owner sdk.AccAddress) (supply uint64)
- func (k Keeper) GetCollection(ctx sdk.Context, denomID string) (types.Collection, error)
- func (k Keeper) GetCollections(ctx sdk.Context) (collections []types.Collection, err error)
- func (k Keeper) GetDenomCreationFee(ctx sdk.Context) sdk.Coin
- func (k Keeper) GetDenomInfo(ctx sdk.Context, denomID string) (*types.Denom, error)
- func (k Keeper) GetDenoms(ctx sdk.Context) (denoms []types.Denom, err error)
- func (k Keeper) GetONFT(ctx sdk.Context, denomID, onftID string) (nft exported.ONFTI, err error)
- func (k Keeper) GetONFTModuleAccount(ctx sdk.Context) authtypes.ModuleAccountI
- func (k Keeper) GetONFTs(ctx sdk.Context, denomID string) (onfts []exported.ONFTI, err error)
- func (k Keeper) GetOwnerONFTs(ctx sdk.Context, denomID string, owner sdk.AccAddress) (onfts []exported.ONFTI, err error)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetTotalSupply(ctx sdk.Context, denomID string) uint64
- func (k Keeper) HasDenom(ctx sdk.Context, id string) bool
- func (k Keeper) HasONFT(ctx sdk.Context, denomID, onftID string) bool
- func (k Keeper) HasPermissionToMint(ctx sdk.Context, denomID string, sender sdk.AccAddress) bool
- func (k Keeper) IBCCollection(c context.Context, request *types.QueryIBCCollectionRequest) (*types.QueryCollectionResponse, error)
- func (k Keeper) IBCDenom(c context.Context, request *types.QueryIBCDenomRequest) (*types.QueryDenomResponse, error)
- func (k Keeper) IBCDenomONFT(c context.Context, request *types.QueryIBCDenomONFTRequest) (*types.QueryONFTResponse, error)
- func (k Keeper) IBCDenomSupply(c context.Context, request *types.QueryIBCDenomSupplyRequest) (*types.QuerySupplyResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintONFT(ctx sdk.Context, ...) error
- func (k Keeper) NFTkeeper() nftkeeper.Keeper
- func (k Keeper) ONFT(c context.Context, request *types.QueryONFTRequest) (*types.QueryONFTResponse, error)
- func (k Keeper) OwnerIBCDenomONFTs(c context.Context, request *types.QueryOwnerIBCDenomONFTsRequest) (*types.QueryOwnerONFTsResponse, error)
- func (k Keeper) OwnerONFTs(c context.Context, request *types.QueryOwnerONFTsRequest) (*types.QueryOwnerONFTsResponse, error)
- func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) PurgeDenom(ctx sdk.Context, denomID string, sender sdk.AccAddress) error
- func (k Keeper) SaveDenom(ctx sdk.Context, id, symbol, name, schema string, creator sdk.AccAddress, ...) error
- func (k Keeper) SetCollection(ctx sdk.Context, collection types.Collection) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error
- func (k Keeper) Supply(c context.Context, request *types.QuerySupplyRequest) (*types.QuerySupplyResponse, error)
- func (k Keeper) TransferDenomOwner(ctx sdk.Context, denomID string, srcOwner, dstOwner sdk.AccAddress) error
- func (k Keeper) TransferOwnership(ctx sdk.Context, denomID, onftID string, srcOwner, dstOwner sdk.AccAddress) error
- func (k Keeper) UpdateDenom(ctx sdk.Context, msg *types.MsgUpdateDenom) error
- type Migrator
Constants ¶
const IbcDenomPrefix = "ibc/"
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the NFT MsgServer interface for the provided Keeper.
func RegisterInvariants ¶
func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
RegisterInvariants registers all supply invariants
func SupplyInvariant ¶
SupplyInvariant checks that the total amount of NFTs on collections matches the total amount owned by addresses
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey storetypes.StoreKey, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, distrKeeper types.DistributionKeeper, authority string, ) Keeper
func (Keeper) AuthorizeDenomCreator ¶
func (Keeper) Collection ¶
func (k Keeper) Collection(c context.Context, request *types.QueryCollectionRequest) (*types.QueryCollectionResponse, error)
func (Keeper) DeleteDenomFromStore ¶ added in v2.1.0
func (Keeper) Denom ¶
func (k Keeper) Denom(c context.Context, request *types.QueryDenomRequest) (*types.QueryDenomResponse, error)
func (Keeper) Denoms ¶
func (k Keeper) Denoms(c context.Context, request *types.QueryDenomsRequest) (*types.QueryDenomsResponse, error)
func (Keeper) GetAuthority ¶
GetAuthority returns the onft module's authority.
func (Keeper) GetBalance ¶
GetBalance returns the amount of NFTs owned in a class by an account
func (Keeper) GetCollection ¶
func (Keeper) GetCollections ¶
func (Keeper) GetDenomCreationFee ¶
GetDenomCreationFee returns the current denom creation fee coins list and amounts.
func (Keeper) GetDenomInfo ¶
func (Keeper) GetONFTModuleAccount ¶
func (k Keeper) GetONFTModuleAccount(ctx sdk.Context) authtypes.ModuleAccountI
GetONFTModuleAccount returns oNFT ModuleAccount
func (Keeper) GetOwnerONFTs ¶
func (Keeper) GetTotalSupply ¶
func (Keeper) HasPermissionToMint ¶
func (Keeper) IBCCollection ¶
func (k Keeper) IBCCollection(c context.Context, request *types.QueryIBCCollectionRequest) (*types.QueryCollectionResponse, error)
func (Keeper) IBCDenom ¶
func (k Keeper) IBCDenom(c context.Context, request *types.QueryIBCDenomRequest) (*types.QueryDenomResponse, error)
func (Keeper) IBCDenomONFT ¶
func (k Keeper) IBCDenomONFT(c context.Context, request *types.QueryIBCDenomONFTRequest) (*types.QueryONFTResponse, error)
func (Keeper) IBCDenomSupply ¶
func (k Keeper) IBCDenomSupply(c context.Context, request *types.QueryIBCDenomSupplyRequest) (*types.QuerySupplyResponse, error)
func (Keeper) ONFT ¶
func (k Keeper) ONFT(c context.Context, request *types.QueryONFTRequest) (*types.QueryONFTResponse, error)
func (Keeper) OwnerIBCDenomONFTs ¶
func (k Keeper) OwnerIBCDenomONFTs( c context.Context, request *types.QueryOwnerIBCDenomONFTsRequest, ) (*types.QueryOwnerONFTsResponse, error)
func (Keeper) OwnerONFTs ¶
func (k Keeper) OwnerONFTs(c context.Context, request *types.QueryOwnerONFTsRequest) (*types.QueryOwnerONFTsResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params queries params of oNFT module
func (Keeper) PurgeDenom ¶ added in v2.1.0
PurgeDenom deletes the denom if no nfts in it
func (Keeper) SaveDenom ¶
func (k Keeper) SaveDenom( ctx sdk.Context, id, symbol, name, schema string, creator sdk.AccAddress, description, previewUri string, uri, uriHash, data string, royaltyReceivers []*types.WeightedAddress, ) error
SaveDenom saves a denom
func (Keeper) SetCollection ¶
func (Keeper) Supply ¶
func (k Keeper) Supply(c context.Context, request *types.QuerySupplyRequest) (*types.QuerySupplyResponse, error)
func (Keeper) TransferDenomOwner ¶
func (k Keeper) TransferDenomOwner( ctx sdk.Context, denomID string, srcOwner, dstOwner sdk.AccAddress, ) error
TransferDenomOwner transfers the ownership to new address
func (Keeper) TransferOwnership ¶
func (Keeper) UpdateDenom ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place state migrations.
func (Migrator) Migrate1to2 ¶
Migrate1to2 migrates the onft module state from the consensus version 1 to version 2. Specifically, it takes the parameters that are currently stored and managed by the x/params modules and stores them directly into the onft module state. and
migrates onft store to x/nft