Expand description
Re-exports§
pub use weights::WeightInfo;
pub use pallet::*;
Modules§
- macros
- migration
- pallet
- The
pallet
module in each FRAME pallet hosts the most important items needed to construct this pallet. - weights
- Autogenerated weights for
pallet_nfts
Macros§
- _runtime_
benchmarks_ enabled - runtime_
benchmarks_ enabled - Enable/disable the given code depending on
feature = "runtime-benchmarks"
being enabled for the crate or not.
Structs§
- Attribute
Deposit - Information about the reserved attribute deposit.
- Cancel
Attributes Approval Witness - A witness data to cancel attributes approval operation.
- Collection
Config - Collection’s configuration.
- Collection
Details - Information about a collection.
- Collection
Metadata - Information about the collection’s metadata.
- Collection
Roles - A wrapper type that implements
Codec
. - Collection
Settings - Wrapper type for
BitFlags<CollectionSetting>
that implementsCodec
. - Destroy
Witness - Witness data for the destroy transactions.
- Item
Config - Item’s configuration.
- Item
Deposit - Information about the reserved item deposit.
- Item
Details - Information concerning the ownership of a single unique item.
- Item
Metadata - Information about the item’s metadata.
- Item
Metadata Deposit - Information about the reserved item’s metadata deposit.
- Item
Settings - Wrapper type for
BitFlags<ItemSetting>
that implementsCodec
. - ItemTip
- Information about the tip.
- Mint
Settings - Holds the information about minting.
- Mint
Witness - Witness data for items mint transactions.
- Pallet
Features - Wrapper type for
BitFlags<PalletFeature>
that implementsCodec
. - Pending
Swap - Information about the pending swap.
- PreSigned
Attributes - PreSigned
Mint - Price
With Direction - Holds the details about the price.
Enums§
- Attribute
Namespace - Attribute namespaces for non-fungible tokens.
- Collection
Role - Support for up to 8 different roles for collections.
- Collection
Setting - Support for up to 64 user-enabled features on a collection.
- Item
Setting - Support for up to 64 user-enabled features on an item.
- Mint
Type - Mint type. Can the NFT be create by anyone, or only the creator of the collection, or only by wallets that already hold an NFT from a certain collection? The ownership of a privately minted NFT is still publicly visible.
- Pallet
Attributes - A list of possible pallet-level attributes.
- Pallet
Feature - Support for up to 64 system-enabled features on a collection.
- Price
Direction - Specifies whether the tokens will be sent or received.
Constants§
- LOG_
TARGET - The log target of this pallet.
Type Aliases§
- Approvals
Of - A type alias for keeping track of approvals used by a single item.
- Attribute
Deposit Of - A type that holds the deposit amount for an item’s attribute.
- Balance
Of - A type alias for an accounts balance.
- Block
Number For - Collection
Config For - A type alias for the settings configuration of a collection.
- Collection
Details For - A type alias representing the details of a collection.
- Deposit
Balance Of - A type alias for handling balance deposits.
- Item
Attributes Approvals - A type alias for keeping track of approvals for an item’s attributes.
- Item
Deposit Of - A type that holds the deposit for a single item.
- Item
Details For - A type that holds the details of a single item.
- Item
Metadata Deposit Of - A type that holds the deposit amount for an item’s metadata.
- Item
Price - A type alias to represent the price of an item.
- Item
TipOf - A type alias for the tips held by a single item.
- PreSigned
Attributes Of - A type alias for the pre-signed minting configuration on the attribute level of an item.
- PreSigned
Mint Of - A type alias for the pre-signed minting configuration for a specified collection.