referrerpolicy=no-referrer-when-downgrade

Type Alias pallet_nfts::PreSignedMintOf

source ·
pub type PreSignedMintOf<T, I = ()> = PreSignedMint<<T as Config<I>>::CollectionId, <T as Config<I>>::ItemId, <T as SystemConfig>::AccountId, BlockNumberFor<T>, BalanceOf<T, I>>;
Expand description

A type alias for the pre-signed minting configuration for a specified collection.

Aliased Type§

struct PreSignedMintOf<T, I = ()> {
    pub collection: <T as Config<I>>::CollectionId,
    pub item: <T as Config<I>>::ItemId,
    pub attributes: Vec<(Vec<u8>, Vec<u8>)>,
    pub metadata: Vec<u8>,
    pub only_account: Option<<T as Config>::AccountId>,
    pub deadline: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number,
    pub mint_price: Option<<<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance>,
}

Fields§

§collection: <T as Config<I>>::CollectionId

A collection of the item to be minted.

§item: <T as Config<I>>::ItemId

Item’s ID.

§attributes: Vec<(Vec<u8>, Vec<u8>)>

Additional item’s key-value attributes.

§metadata: Vec<u8>

Additional item’s metadata.

§only_account: Option<<T as Config>::AccountId>

Restrict the claim to a particular account.

§deadline: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number

A deadline for the signature.

§mint_price: Option<<<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance>

An optional price the claimer would need to pay for the mint.