-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
use super::*; | ||
|
||
pub(super) type AccountIdOf<T> = <T as frame_system::Config>::AccountId; | ||
pub(super) type NftsOf<T> = pallet_nfts::Pallet<T, NftsInstanceOf<T>>; | ||
pub(super) type NftsErrorOf<T> = pallet_nfts::Error<T, NftsInstanceOf<T>>; | ||
pub(super) type NftsWeightInfoOf<T> = <T as pallet_nfts::Config<NftsInstanceOf<T>>>::WeightInfo; | ||
pub(super) type NftsInstanceOf<T> = <T as Config>::NftsInstance; | ||
pub(super) type BalanceOf<T> = | ||
<<T as pallet_nfts::Config<NftsInstanceOf<T>>>::Currency as Currency< | ||
<T as frame_system::Config>::AccountId, | ||
>>::Balance; | ||
pub(super) type CollectionIdOf<T> = | ||
<NftsOf<T> as Inspect<<T as frame_system::Config>::AccountId>>::CollectionId; | ||
pub(super) type ItemIdOf<T> = | ||
<NftsOf<T> as Inspect<<T as frame_system::Config>::AccountId>>::ItemId; | ||
pub(super) type ItemPriceOf<T> = BalanceOf<T>; | ||
pub(super) type CollectionDetailsFor<T> = CollectionDetails<AccountIdOf<T>, BalanceOf<T>>; | ||
pub(super) type AttributeNamespaceOf<T> = AttributeNamespace<AccountIdOf<T>>; | ||
pub(super) type CollectionConfigFor<T> = | ||
CollectionConfig<ItemPriceOf<T>, BlockNumberFor<T>, CollectionIdOf<T>>; | ||
// Public due to pop-api integration tests crate. | ||
pub type AccountBalanceOf<T> = pallet_nfts::AccountBalance<T, NftsInstanceOf<T>>; | ||
Check warning on line 22 in pallets/api/src/nonfungibles/types.rs GitHub Actions / clippymissing documentation for a type alias
|
||
pub type AttributeOf<T> = pallet_nfts::Attribute<T, NftsInstanceOf<T>>; | ||
Check warning on line 23 in pallets/api/src/nonfungibles/types.rs GitHub Actions / clippymissing documentation for a type alias
|
||
pub type AttributeKey<T> = BoundedVec<u8, <T as pallet_nfts::Config<NftsInstanceOf<T>>>::KeyLimit>; | ||
Check warning on line 24 in pallets/api/src/nonfungibles/types.rs GitHub Actions / clippymissing documentation for a type alias
|
||
pub type AttributeValue<T> = | ||
Check warning on line 25 in pallets/api/src/nonfungibles/types.rs GitHub Actions / clippymissing documentation for a type alias
|
||
BoundedVec<u8, <T as pallet_nfts::Config<NftsInstanceOf<T>>>::ValueLimit>; | ||
pub type CollectionOf<T> = pallet_nfts::Collection<T, NftsInstanceOf<T>>; | ||
Check warning on line 27 in pallets/api/src/nonfungibles/types.rs GitHub Actions / clippymissing documentation for a type alias
|
||
pub type CollectionConfigOf<T> = pallet_nfts::CollectionConfigOf<T, NftsInstanceOf<T>>; | ||
Check warning on line 28 in pallets/api/src/nonfungibles/types.rs GitHub Actions / clippymissing documentation for a type alias
|
||
pub type NextCollectionIdOf<T> = pallet_nfts::NextCollectionId<T, NftsInstanceOf<T>>; | ||
Check warning on line 29 in pallets/api/src/nonfungibles/types.rs GitHub Actions / clippymissing documentation for a type alias
|
||
pub type MetadataData<T> = | ||
Check warning on line 30 in pallets/api/src/nonfungibles/types.rs GitHub Actions / clippymissing documentation for a type alias
|
||
BoundedVec<u8, <T as pallet_nfts::Config<NftsInstanceOf<T>>>::StringLimit>; |