nft

package module
v0.0.0-...-9863cff Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 16 Imported by: 7

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

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

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

func EndBlocker(ctx sdk.Context, k keeper.Keeper) []abci.ValidatorUpdate

EndBlocker is run at the end of the block

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

HandleMsgBurnNFT handles MsgBurnNFT

func HandleMsgEditNFTMetadata

func HandleMsgEditNFTMetadata(ctx sdk.Context, msg types.MsgEditNFTMetadata, k keeper.Keeper,
) sdk.Result

HandleMsgEditNFTMetadata handler for MsgEditNFTMetadata

func HandleMsgMintNFT

func HandleMsgMintNFT(ctx sdk.Context, msg types.MsgMintNFT, k keeper.Keeper,
) sdk.Result

HandleMsgMintNFT handles MsgMintNFT

func HandleMsgTransferNFT

func HandleMsgTransferNFT(ctx sdk.Context, msg types.MsgTransferNFT, k keeper.Keeper,
) sdk.Result

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

func NewAppModule(keeper Keeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

func (AppModule) BeginBlock(_ 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) 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) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute module querier route name

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

RegisterInvariants registers the nft module invariants

func (AppModule) Route

func (AppModule) Route() string

Route module message route name

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 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 BaseNFT

type BaseNFT = types.BaseNFT

type CodeType

type CodeType = types.CodeType

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

Directories

Path Synopsis
client
cli
internal

Jump to

Keyboard shortcuts

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