diff --git a/substrate/frame/uniques/src/lib.rs b/substrate/frame/uniques/src/lib.rs index 95ef8111f1..1b75d0b078 100644 --- a/substrate/frame/uniques/src/lib.rs +++ b/substrate/frame/uniques/src/lib.rs @@ -57,8 +57,10 @@ pub use pallet::*; pub use types::*; pub use weights::WeightInfo; +/// The log target for this pallet. const LOG_TARGET: &str = "runtime::uniques"; +/// A type alias for the account ID type used in the dispatchable functions of this pallet. type AccountIdLookupOf = <::Lookup as StaticLookup>::Source; #[frame_support::pallet] diff --git a/substrate/frame/uniques/src/types.rs b/substrate/frame/uniques/src/types.rs index 5b13998153..a2e804f245 100644 --- a/substrate/frame/uniques/src/types.rs +++ b/substrate/frame/uniques/src/types.rs @@ -24,12 +24,16 @@ use frame_support::{ }; use scale_info::TypeInfo; +/// A type alias for handling balance deposits. pub(super) type DepositBalanceOf = <>::Currency as Currency<::AccountId>>::Balance; +/// A type alias representing the details of a collection. pub(super) type CollectionDetailsFor = CollectionDetails<::AccountId, DepositBalanceOf>; +/// A type alias for the details of a single item. pub(super) type ItemDetailsFor = ItemDetails<::AccountId, DepositBalanceOf>; +/// A type alias to represent the price of an item. pub(super) type ItemPrice = <>::Currency as Currency<::AccountId>>::Balance;