Documentation ¶
Overview ¶
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/cosmos/modules/incubator/nft/keeper ALIASGEN: github.com/cosmos/modules/incubator/nft/types
Index ¶
- Constants
- Variables
- func BeginBlocker(ctx sdk.Context, k Keeper)
- func GenericHandler(k keeper.Keeper) sdk.Handler
- func HandleMsgBurnNFT(ctx sdk.Context, msg types.MsgBurnNFT, k keeper.Keeper) (*sdk.Result, error)
- func HandleMsgEditNFTMetadata(ctx sdk.Context, msg types.MsgEditNFTMetadata, k keeper.Keeper) (*sdk.Result, error)
- func HandleMsgMintNFT(ctx sdk.Context, msg types.MsgMintNFT, k keeper.Keeper) (*sdk.Result, error)
- func HandleMsgTransferNFT(ctx sdk.Context, msg types.MsgTransferNFT, k keeper.Keeper) (*sdk.Result, error)
- func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState)
- type AppModule
- func (am AppModule) BeginBlock(ctx 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 (AppModule) GenerateGenesisState(simState *module.SimulationState)
- 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) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
- func (AppModule) QuerierRoute() string
- func (AppModule) RandomizedParams(_ *rand.Rand) []sim.ParamChange
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
- func (AppModule) Route() string
- func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
- 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 BaseNFT
- 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
- type SortedIntArray
- type TokenOwner
Constants ¶
const ( QuerySupply = keeper.QuerySupply QueryOwner = keeper.QueryOwner QueryOwnerByDenom = keeper.QueryOwnerByDenom QueryCollection = keeper.QueryCollection QueryDenoms = keeper.QueryDenoms QueryNFT = keeper.QueryNFT ReservedPool = types.ReservedPool 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 ErrNotAllowedBurn = types.ErrNotAllowedBurn ErrNotAllowedMint = types.ErrNotAllowedMint ErrNotUniqueSubTokenIDs = types.ErrNotUniqueSubTokenIDs ErrNotUniqueTokenURI = types.ErrNotUniqueTokenURI ErrNotUniqueTokenID = types.ErrNotUniqueTokenID NewGenesisState = types.NewGenesisState DefaultGenesisState = types.DefaultGenesisState ValidateGenesis = types.ValidateGenesis NewBaseNFT = types.NewBaseNFT NewNFTs = types.NewNFTs NewMsgMintNFT = types.NewMsgMintNFT NewMsgBurnNFT = types.NewMsgBurnNFT NewMsgTranfserNFT = types.NewMsgTransferNFT NewMsgEditNFTMetadata = types.NewMsgEditNFTMetadata CheckUnique = types.CheckUnique // variable aliases ModuleCdc = types.ModuleCdc )
Functions ¶
func BeginBlocker ¶
func GenericHandler ¶
GenericHandler routes the messages to the handlers
func HandleMsgBurnNFT ¶
func HandleMsgBurnNFT(ctx sdk.Context, msg types.MsgBurnNFT, k keeper.Keeper, ) (*sdk.Result, error)
HandleMsgBurnNFT handles MsgBurnNFT
func HandleMsgEditNFTMetadata ¶
func HandleMsgEditNFTMetadata(ctx sdk.Context, msg types.MsgEditNFTMetadata, k keeper.Keeper, ) (*sdk.Result, error)
HandleMsgEditNFTMetadata handler for MsgEditNFTMetadata
func HandleMsgMintNFT ¶
func HandleMsgMintNFT(ctx sdk.Context, msg types.MsgMintNFT, k keeper.Keeper, ) (*sdk.Result, error)
HandleMsgMintNFT handles MsgMintNFT
func HandleMsgTransferNFT ¶
func HandleMsgTransferNFT(ctx sdk.Context, msg types.MsgTransferNFT, k keeper.Keeper, ) (*sdk.Result, error)
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 // contains filtered or unexported fields }
AppModule supply app module
func NewAppModule ¶
func NewAppModule(keeper Keeper, accountKeeper types.AccountKeeper) AppModule
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx 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) GenerateGenesisState ¶
func (AppModule) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the nft module.
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) ProposalContents ¶
func (AppModule) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
ProposalContents doesn't return any content functions for governance proposals.
func (AppModule) QuerierRoute ¶
QuerierRoute module querier route name
func (AppModule) RandomizedParams ¶
func (AppModule) RandomizedParams(_ *rand.Rand) []sim.ParamChange
RandomizedParams doesn't create randomized nft param changes for the simulator.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants registers the nft module invariants
func (AppModule) RegisterStoreDecoder ¶
func (AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for nft module's types
func (AppModule) WeightedOperations ¶
func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
WeightedOperations doesn't return any operation for the nft module.
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 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
type SortedIntArray ¶
type SortedIntArray = types.SortedIntArray
type TokenOwner ¶
type TokenOwner = types.TokenOwner