Documentation ¶
Overview ¶
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/cosmos/modules/incubator/nft/internal/keeper ALIASGEN: github.com/cosmos/modules/incubator/nft/internal/types
Index ¶
- Constants
- Variables
- func EndBlocker(ctx sdk.Context, k keeper.Keeper) []abci.ValidatorUpdate
- func GenericHandler(k keeper.Keeper) sdk.Handler
- func HandleMsgBurnNFT(ctx sdk.Context, msg types.MsgBurnNFT, k keeper.Keeper) sdk.Result
- func HandleMsgEditNFTMetadata(ctx sdk.Context, msg types.MsgEditNFTMetadata, k keeper.Keeper) sdk.Result
- func HandleMsgMintNFT(ctx sdk.Context, msg types.MsgMintNFT, k keeper.Keeper) sdk.Result
- func HandleMsgTransferNFT(ctx sdk.Context, msg types.MsgTransferNFT, k keeper.Keeper) sdk.Result
- func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState)
- type AppModule
- func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type AppModuleSimulation
- type BaseNFT
- type CodeType
- type Collection
- type CollectionJSON
- type Collections
- type GenesisState
- type IDCollection
- type IDCollections
- type Keeper
- type MsgBurnNFT
- type MsgEditNFTMetadata
- type MsgMintNFT
- type MsgTransferNFT
- type NFTJSON
- type NFTs
- type Owner
- type QueryBalanceParams
- type QueryCollectionParams
- type QueryNFTParams
Constants ¶
const ( QuerySupply = keeper.QuerySupply QueryOwner = keeper.QueryOwner QueryOwnerByDenom = keeper.QueryOwnerByDenom QueryCollection = keeper.QueryCollection QueryDenoms = keeper.QueryDenoms QueryNFT = keeper.QueryNFT DefaultCodespace = types.DefaultCodespace CodeInvalidCollection = types.CodeInvalidCollection CodeUnknownCollection = types.CodeUnknownCollection CodeInvalidNFT = types.CodeInvalidNFT CodeUnknownNFT = types.CodeUnknownNFT CodeNFTAlreadyExists = types.CodeNFTAlreadyExists CodeEmptyMetadata = types.CodeEmptyMetadata ModuleName = types.ModuleName StoreKey = types.StoreKey QuerierRoute = types.QuerierRoute RouterKey = types.RouterKey )
Variables ¶
var ( // functions aliases RegisterInvariants = keeper.RegisterInvariants AllInvariants = keeper.AllInvariants SupplyInvariant = keeper.SupplyInvariant NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier RegisterCodec = types.RegisterCodec NewCollection = types.NewCollection EmptyCollection = types.EmptyCollection NewCollections = types.NewCollections ErrInvalidCollection = types.ErrInvalidCollection ErrUnknownCollection = types.ErrUnknownCollection ErrInvalidNFT = types.ErrInvalidNFT ErrNFTAlreadyExists = types.ErrNFTAlreadyExists ErrUnknownNFT = types.ErrUnknownNFT ErrEmptyMetadata = types.ErrEmptyMetadata NewGenesisState = types.NewGenesisState DefaultGenesisState = types.DefaultGenesisState ValidateGenesis = types.ValidateGenesis GetCollectionKey = types.GetCollectionKey SplitOwnerKey = types.SplitOwnerKey GetOwnersKey = types.GetOwnersKey GetOwnerKey = types.GetOwnerKey NewMsgTransferNFT = types.NewMsgTransferNFT NewMsgEditNFTMetadata = types.NewMsgEditNFTMetadata NewMsgMintNFT = types.NewMsgMintNFT NewMsgBurnNFT = types.NewMsgBurnNFT NewBaseNFT = types.NewBaseNFT NewNFTs = types.NewNFTs NewIDCollection = types.NewIDCollection NewOwner = types.NewOwner NewQueryCollectionParams = types.NewQueryCollectionParams NewQueryBalanceParams = types.NewQueryBalanceParams NewQueryNFTParams = types.NewQueryNFTParams // variable aliases ModuleCdc = types.ModuleCdc EventTypeTransfer = types.EventTypeTransfer EventTypeEditNFTMetadata = types.EventTypeEditNFTMetadata EventTypeMintNFT = types.EventTypeMintNFT EventTypeBurnNFT = types.EventTypeBurnNFT AttributeValueCategory = types.AttributeValueCategory AttributeKeySender = types.AttributeKeySender AttributeKeyRecipient = types.AttributeKeyRecipient AttributeKeyOwner = types.AttributeKeyOwner AttributeKeyNFTID = types.AttributeKeyNFTID AttributeKeyNFTTokenURI = types.AttributeKeyNFTTokenURI AttributeKeyDenom = types.AttributeKeyDenom CollectionsKeyPrefix = types.CollectionsKeyPrefix OwnersKeyPrefix = types.OwnersKeyPrefix )
Functions ¶
func EndBlocker ¶
EndBlocker is run at the end of the block
func GenericHandler ¶
GenericHandler routes the messages to the handlers
func HandleMsgBurnNFT ¶
HandleMsgBurnNFT handles MsgBurnNFT
func HandleMsgEditNFTMetadata ¶
func HandleMsgEditNFTMetadata(ctx sdk.Context, msg types.MsgEditNFTMetadata, k keeper.Keeper, ) sdk.Result
HandleMsgEditNFTMetadata handler for MsgEditNFTMetadata
func HandleMsgMintNFT ¶
HandleMsgMintNFT handles MsgMintNFT
func HandleMsgTransferNFT ¶
HandleMsgTransferNFT handler for MsgTransferNFT
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState)
InitGenesis sets nft information for genesis.
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic AppModuleSimulation // contains filtered or unexported fields }
AppModule supply app module
func NewAppModule ¶
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
BeginBlock module begin-block
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock module end-block
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis module export genesis
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis module init-genesis
func (AppModule) NewHandler ¶
NewHandler module handler
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler module querier
func (AppModule) QuerierRoute ¶
QuerierRoute module querier route name
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants registers the nft module invariants
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic app module basics object
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis default genesis state
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd gets the root query command of this module
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd gets the root tx command of this module
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec registers module codec
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes registers rest routes
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis module validate genesis
type AppModuleSimulation ¶
type AppModuleSimulation struct{}
AppModuleSimulation defines the module simulation functions used by the gov module.
func (AppModuleSimulation) GenerateGenesisState ¶
func (AppModuleSimulation) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the nft module.
func (AppModuleSimulation) RandomizedParams ¶
func (AppModuleSimulation) RandomizedParams(_ *rand.Rand) []sim.ParamChange
RandomizedParams doesn't create randomized nft param changes for the simulator.
func (AppModuleSimulation) RegisterStoreDecoder ¶
func (AppModuleSimulation) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for nft module's types
type Collection ¶
type Collection = types.Collection
type CollectionJSON ¶
type CollectionJSON = types.CollectionJSON
type Collections ¶
type Collections = types.Collections
type GenesisState ¶
type GenesisState = types.GenesisState
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
type IDCollection ¶
type IDCollection = types.IDCollection
type IDCollections ¶
type IDCollections = types.IDCollections
type MsgBurnNFT ¶
type MsgBurnNFT = types.MsgBurnNFT
type MsgEditNFTMetadata ¶
type MsgEditNFTMetadata = types.MsgEditNFTMetadata
type MsgMintNFT ¶
type MsgMintNFT = types.MsgMintNFT
type MsgTransferNFT ¶
type MsgTransferNFT = types.MsgTransferNFT
type QueryBalanceParams ¶
type QueryBalanceParams = types.QueryBalanceParams
type QueryCollectionParams ¶
type QueryCollectionParams = types.QueryCollectionParams
type QueryNFTParams ¶
type QueryNFTParams = types.QueryNFTParams