pub type CollectionDetailsFor<T, I> = CollectionDetails<<T as SystemConfig>::AccountId, DepositBalanceOf<T, I>>;
Expand description
A type alias representing the details of a collection.
Aliased Type§
struct CollectionDetailsFor<T, I> {
pub owner: <T as Config>::AccountId,
pub issuer: <T as Config>::AccountId,
pub admin: <T as Config>::AccountId,
pub freezer: <T as Config>::AccountId,
pub total_deposit: <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance,
pub free_holding: bool,
pub items: u32,
pub item_metadatas: u32,
pub attributes: u32,
pub is_frozen: bool,
}
Fields§
§owner: <T as Config>::AccountId
Can change owner
, issuer
, freezer
and admin
accounts.
issuer: <T as Config>::AccountId
Can mint tokens.
admin: <T as Config>::AccountId
Can thaw tokens, force transfers and burn tokens from any account.
freezer: <T as Config>::AccountId
Can freeze tokens.
total_deposit: <<T as Config<I>>::Currency as Currency<<T as Config>::AccountId>>::Balance
The total balance deposited for the all storage associated with this collection.
Used by destroy
.
free_holding: bool
If true
, then no deposit is needed to hold items of this collection.
items: u32
The total number of outstanding items of this collection.
item_metadatas: u32
The total number of outstanding item metadata of this collection.
attributes: u32
The total number of attributes for this collection.
is_frozen: bool
Whether the collection is frozen for non-admin transfers.