Skip to content

Commit

Permalink
refactor: types
Browse files Browse the repository at this point in the history
  • Loading branch information
PraetorP committed Oct 27, 2023
1 parent a8a4f3c commit 88cbfc4
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
Empty file removed xnft/src/common_functions.rs
Empty file.
1 change: 0 additions & 1 deletion xnft/src/impl_nonfungibles.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::*;
pub(crate) type ExecutorOf<T> = <T as Config>::NftExecutor;

impl<T: Config> Inspect<T::AccountId> for Pallet<T>
where
Expand Down
5 changes: 0 additions & 5 deletions xnft/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ pub mod pallet {
},
}

#[pallet::storage]
#[pallet::getter(fn local_assets)]
pub type LocalAssets<T: Config> =
StorageMap<_, Twox64Concat, MultiAsset, LocalAsset<CollectionIdOf<T>, ItemIdOf<T>>, OptionQuery>;

#[pallet::storage]
#[pallet::getter(fn assets)]
pub type AssetsMapping<T: Config> = StorageMap<_, Twox64Concat, AssetId, CollectionIdOf<T>, OptionQuery>;
Expand Down
6 changes: 0 additions & 6 deletions xnft/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,3 @@ pub type ItemIdOf<T> = <<T as Config>::NftExecutor as Inspect<<T as SystemConfig
pub type CollectionIdOf<T> = <<T as Config>::NftExecutor as Inspect<<T as SystemConfig>::AccountId>>::CollectionId;

pub type ExecutorOf<T> = <T as Config>::NftExecutor;

#[derive(Clone, Encode, Decode, Eq, PartialEq, RuntimeDebug, TypeInfo, MaxEncodedLen)]
pub struct LocalAsset<CollectionId, ItemId> {
pub collection_id: CollectionId,
pub item_id: ItemId,
}

0 comments on commit 88cbfc4

Please sign in to comment.