nft

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 20 Imported by: 1

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

View Source
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

View Source
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
	ErrNotAllowedUpdateRes  = types.ErrNotAllowedUpdateReserve
	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
	NewMsgUpdateReserveNFT  = types.NewMsgUpdateReserveNFT
	NewMsgTranfserNFT       = types.NewMsgTransferNFT
	NewMsgEditNFTMetadata   = types.NewMsgEditNFTMetadata

	CheckUnique = types.CheckUnique

	// variable aliases
	ModuleCdc = types.ModuleCdc
)

Functions

func BeginBlocker

func BeginBlocker(ctx sdk.Context, k Keeper)

func GenericHandler

func GenericHandler(k keeper.Keeper) sdk.Handler

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 HandleMsgUpdateReserveNFT added in v1.2.6

func HandleMsgUpdateReserveNFT(ctx sdk.Context, msg types.MsgUpdateReserveNFT, k keeper.Keeper,
) (*sdk.Result, error)

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

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) Name

func (AppModule) Name() string

Name defines module name

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler module handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler module querier

func (AppModule) ProposalContents

ProposalContents doesn't return any content functions for governance proposals.

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

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) Route

func (AppModule) Route() string

Route module message route name

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) Name

func (AppModuleBasic) Name() string

Name defines module name

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 BaseNFT

type BaseNFT = types.BaseNFT

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 Keeper

type Keeper = keeper.Keeper

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 MsgUpdateReserveNFT added in v1.2.12

type MsgUpdateReserveNFT = types.MsgUpdateReserveNFT

type NFTJSON

type NFTJSON = types.NFTJSON

type NFTs

type NFTs = types.NFTs

type Owner

type Owner = types.Owner

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

Directories

Path Synopsis
client
cli
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL