Skip to content

Commit

Permalink
refactor: remove unused types
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Oct 31, 2024
1 parent c5751f9 commit 58c3849
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions pallets/api/src/nonfungibles/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub use pallet_nfts::{
MintWitness,
};
use scale_info::TypeInfo;
use sp_runtime::{BoundedBTreeMap, RuntimeDebug};
use sp_runtime::RuntimeDebug;

// Type aliases for pallet-nfts.
pub(super) type NftsOf<T> = pallet_nfts::Pallet<T>;
Expand All @@ -21,18 +21,10 @@ 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 ApprovalsOf<T> = BoundedBTreeMap<
AccountIdOf<T>,
Option<BlockNumberFor<T>>,
<T as pallet_nfts::Config>::ApprovalsLimit,
>;
pub(super) type ItemPriceOf<T, I = ()> = BalanceOf<T, I>;
// TODO: Multi-instances.
pub(super) type ItemDepositOf<T, I = ()> = ItemDeposit<BalanceOf<T, I>, AccountIdOf<T>>;
pub(super) type CollectionDetailsFor<T, I = ()> =
CollectionDetails<AccountIdOf<T>, BalanceOf<T, I>>;
pub(super) type ItemDetailsFor<T, I = ()> =
ItemDetails<AccountIdOf<T>, ItemDepositOf<T, I>, ApprovalsOf<T>>;
pub(super) type AttributeNamespaceOf<T> = AttributeNamespace<AccountIdOf<T>>;
pub(super) type CreateCollectionConfigFor<T, I = ()> =
CreateCollectionConfig<ItemPriceOf<T, I>, BlockNumberFor<T>, CollectionIdOf<T>>;
Expand Down

0 comments on commit 58c3849

Please sign in to comment.