Skip to content

Commit

Permalink
Make pallet_nfts storages public (paritytech#13517)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl authored and nathanwhit committed Jul 19, 2023
1 parent dacedc0 commit e41c208
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions frame/nfts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ pub mod pallet {

/// Details of a collection.
#[pallet::storage]
pub(super) type Collection<T: Config<I>, I: 'static = ()> = StorageMap<
pub type Collection<T: Config<I>, I: 'static = ()> = StorageMap<
_,
Blake2_128Concat,
T::CollectionId,
Expand All @@ -205,13 +205,13 @@ pub mod pallet {

/// The collection, if any, of which an account is willing to take ownership.
#[pallet::storage]
pub(super) type OwnershipAcceptance<T: Config<I>, I: 'static = ()> =
pub type OwnershipAcceptance<T: Config<I>, I: 'static = ()> =
StorageMap<_, Blake2_128Concat, T::AccountId, T::CollectionId>;

/// The items held by any given account; set out this way so that items owned by a single
/// account can be enumerated.
#[pallet::storage]
pub(super) type Account<T: Config<I>, I: 'static = ()> = StorageNMap<
pub type Account<T: Config<I>, I: 'static = ()> = StorageNMap<
_,
(
NMapKey<Blake2_128Concat, T::AccountId>, // owner
Expand All @@ -225,7 +225,7 @@ pub mod pallet {
/// The collections owned by any given account; set out this way so that collections owned by
/// a single account can be enumerated.
#[pallet::storage]
pub(super) type CollectionAccount<T: Config<I>, I: 'static = ()> = StorageDoubleMap<
pub type CollectionAccount<T: Config<I>, I: 'static = ()> = StorageDoubleMap<
_,
Blake2_128Concat,
T::AccountId,
Expand All @@ -238,7 +238,7 @@ pub mod pallet {
/// The items in existence and their ownership details.
#[pallet::storage]
/// Stores collection roles as per account.
pub(super) type CollectionRoleOf<T: Config<I>, I: 'static = ()> = StorageDoubleMap<
pub type CollectionRoleOf<T: Config<I>, I: 'static = ()> = StorageDoubleMap<
_,
Blake2_128Concat,
T::CollectionId,
Expand All @@ -250,7 +250,7 @@ pub mod pallet {

/// The items in existence and their ownership details.
#[pallet::storage]
pub(super) type Item<T: Config<I>, I: 'static = ()> = StorageDoubleMap<
pub type Item<T: Config<I>, I: 'static = ()> = StorageDoubleMap<
_,
Blake2_128Concat,
T::CollectionId,
Expand All @@ -262,7 +262,7 @@ pub mod pallet {

/// Metadata of a collection.
#[pallet::storage]
pub(super) type CollectionMetadataOf<T: Config<I>, I: 'static = ()> = StorageMap<
pub type CollectionMetadataOf<T: Config<I>, I: 'static = ()> = StorageMap<
_,
Blake2_128Concat,
T::CollectionId,
Expand All @@ -272,7 +272,7 @@ pub mod pallet {

/// Metadata of an item.
#[pallet::storage]
pub(super) type ItemMetadataOf<T: Config<I>, I: 'static = ()> = StorageDoubleMap<
pub type ItemMetadataOf<T: Config<I>, I: 'static = ()> = StorageDoubleMap<
_,
Blake2_128Concat,
T::CollectionId,
Expand All @@ -284,7 +284,7 @@ pub mod pallet {

/// Attributes of a collection.
#[pallet::storage]
pub(super) type Attribute<T: Config<I>, I: 'static = ()> = StorageNMap<
pub type Attribute<T: Config<I>, I: 'static = ()> = StorageNMap<
_,
(
NMapKey<Blake2_128Concat, T::CollectionId>,
Expand All @@ -298,7 +298,7 @@ pub mod pallet {

/// A price of an item.
#[pallet::storage]
pub(super) type ItemPriceOf<T: Config<I>, I: 'static = ()> = StorageDoubleMap<
pub type ItemPriceOf<T: Config<I>, I: 'static = ()> = StorageDoubleMap<
_,
Blake2_128Concat,
T::CollectionId,
Expand All @@ -310,7 +310,7 @@ pub mod pallet {

/// Item attribute approvals.
#[pallet::storage]
pub(super) type ItemAttributesApprovalsOf<T: Config<I>, I: 'static = ()> = StorageDoubleMap<
pub type ItemAttributesApprovalsOf<T: Config<I>, I: 'static = ()> = StorageDoubleMap<
_,
Blake2_128Concat,
T::CollectionId,
Expand All @@ -323,12 +323,12 @@ pub mod pallet {
/// Stores the `CollectionId` that is going to be used for the next collection.
/// This gets incremented whenever a new collection is created.
#[pallet::storage]
pub(super) type NextCollectionId<T: Config<I>, I: 'static = ()> =
pub type NextCollectionId<T: Config<I>, I: 'static = ()> =
StorageValue<_, T::CollectionId, OptionQuery>;

/// Handles all the pending swaps.
#[pallet::storage]
pub(super) type PendingSwapOf<T: Config<I>, I: 'static = ()> = StorageDoubleMap<
pub type PendingSwapOf<T: Config<I>, I: 'static = ()> = StorageDoubleMap<
_,
Blake2_128Concat,
T::CollectionId,
Expand All @@ -345,12 +345,12 @@ pub mod pallet {

/// Config of a collection.
#[pallet::storage]
pub(super) type CollectionConfigOf<T: Config<I>, I: 'static = ()> =
pub type CollectionConfigOf<T: Config<I>, I: 'static = ()> =
StorageMap<_, Blake2_128Concat, T::CollectionId, CollectionConfigFor<T, I>, OptionQuery>;

/// Config of an item.
#[pallet::storage]
pub(super) type ItemConfigOf<T: Config<I>, I: 'static = ()> = StorageDoubleMap<
pub type ItemConfigOf<T: Config<I>, I: 'static = ()> = StorageDoubleMap<
_,
Blake2_128Concat,
T::CollectionId,
Expand Down

0 comments on commit e41c208

Please sign in to comment.