Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

[Uniques V2] Minting options #12483

Merged
Merged
Show file tree
Hide file tree
Changes from 80 commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
97a7e30
Basics
jsidorenko Sep 21, 2022
a85608f
WIP: change the data format
jsidorenko Sep 23, 2022
6db840a
Refactor
jsidorenko Sep 24, 2022
fa3a2a7
Remove redundant new() method
jsidorenko Sep 24, 2022
472a753
Rename settings
jsidorenko Sep 24, 2022
2611dd4
Enable tests
jsidorenko Sep 24, 2022
52d7d38
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-feature-f…
jsidorenko Sep 24, 2022
46a6b7e
Chore
jsidorenko Sep 24, 2022
5ff7048
Change params order
jsidorenko Sep 24, 2022
f7ddfed
Delete the config on collection removal
jsidorenko Sep 24, 2022
d0d1d60
Chore
jsidorenko Sep 24, 2022
7d4b31f
Remove redundant system features
jsidorenko Sep 24, 2022
dd84637
Rename force_item_status to force_collection_status
jsidorenko Sep 24, 2022
4920a0c
Update node runtime
jsidorenko Sep 26, 2022
7456e73
Chore
jsidorenko Sep 26, 2022
9ff45b8
Remove thaw_collection
jsidorenko Sep 26, 2022
c41a48c
Chore
jsidorenko Sep 26, 2022
fee3ade
Connect collection.is_frozen to config
jsidorenko Sep 26, 2022
a9ab6f8
Allow to lock the collection in a new way
jsidorenko Sep 26, 2022
254816d
Move free_holding into settings
jsidorenko Sep 26, 2022
5878197
Connect collection's metadata locker to feature flags
jsidorenko Sep 26, 2022
95e21fb
DRY
jsidorenko Sep 27, 2022
17b7c9e
Chore
jsidorenko Sep 27, 2022
dc6d2f0
Connect pallet level feature flags
jsidorenko Sep 27, 2022
cc64873
Prepare tests for the new changes
jsidorenko Sep 27, 2022
5153080
Implement Item settings
jsidorenko Sep 27, 2022
08a2048
Allow to lock the metadata or attributes of an item
jsidorenko Sep 27, 2022
1551714
Common -> Settings
jsidorenko Sep 27, 2022
8830a4c
Extract settings related code to a separate file
jsidorenko Sep 27, 2022
f8800df
Move feature flag checks inside the do_* methods
jsidorenko Sep 28, 2022
3ccf04e
Split settings.rs into parts
jsidorenko Sep 28, 2022
f83fb73
Extract repeated code into macro
jsidorenko Sep 28, 2022
df97cce
Extract macros into their own file
jsidorenko Sep 28, 2022
3bb6eb5
Chore
jsidorenko Sep 28, 2022
8563a31
Fix traits
jsidorenko Sep 29, 2022
09aca13
Fix traits
jsidorenko Sep 29, 2022
114e519
Test SystemFeatures
jsidorenko Sep 29, 2022
d6536fc
Fix benchmarks
jsidorenko Sep 29, 2022
09a4ed6
Add missing benchmark
jsidorenko Sep 29, 2022
d408b32
Fix node/runtime/lib.rs
jsidorenko Sep 29, 2022
fd86e41
".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
Oct 3, 2022
c002f8b
Keep item's config on burn if it's not empty
jsidorenko Oct 5, 2022
b16435a
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-feature-f…
jsidorenko Oct 5, 2022
d0ee824
Fix the merge artifacts
jsidorenko Oct 5, 2022
0eb568e
Fmt
jsidorenko Oct 5, 2022
998691e
Add SystemFeature::NoSwaps check
jsidorenko Oct 6, 2022
b8c6f5e
Rename SystemFeatures to PalletFeatures
jsidorenko Oct 7, 2022
8bef776
Rename errors
jsidorenko Oct 7, 2022
ddaa884
Add docs
jsidorenko Oct 7, 2022
4c01fc5
Change error message
jsidorenko Oct 7, 2022
30d2bde
Change the format of CollectionConfig to store more data
jsidorenko Oct 10, 2022
9449641
Move max supply to the CollectionConfig and allow to change it
jsidorenko Oct 10, 2022
443578d
Remove ItemConfig from the mint() function and use the one set in min…
jsidorenko Oct 11, 2022
0efc4ec
Add different mint options
jsidorenko Oct 11, 2022
2ab076f
Allow to change the mint settings
jsidorenko Oct 11, 2022
ad083ce
Add a force_mint() method
jsidorenko Oct 12, 2022
4ca6f00
Check mint params
jsidorenko Oct 12, 2022
340cb81
Some optimisations
jsidorenko Oct 12, 2022
025cfdd
Cover with tests
jsidorenko Oct 12, 2022
50b617c
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-minting-o…
jsidorenko Oct 19, 2022
6b96856
Remove merge artifacts
jsidorenko Oct 19, 2022
45227f5
Chore
jsidorenko Oct 19, 2022
f36d4b9
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-minting-o…
jsidorenko Oct 20, 2022
277d1a6
Use the new has_role() method
jsidorenko Oct 20, 2022
9d1d11b
Rework item deposits
jsidorenko Oct 20, 2022
8ffe4fd
More tests
jsidorenko Oct 21, 2022
c7dcdb0
Refactoring
jsidorenko Oct 21, 2022
e1195c5
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-minting-o…
jsidorenko Oct 23, 2022
1ab5043
Address comments
jsidorenko Nov 1, 2022
387bf2c
Refactor lock_collection()
jsidorenko Nov 1, 2022
1c51efd
Update frame/nfts/src/types.rs
jsidorenko Nov 8, 2022
9e9b969
Update frame/nfts/src/types.rs
jsidorenko Nov 8, 2022
b82fbe9
Update frame/nfts/src/lib.rs
jsidorenko Nov 8, 2022
e495da6
Update frame/nfts/src/lib.rs
jsidorenko Nov 8, 2022
670bb28
Private => Issuer
jsidorenko Nov 8, 2022
5093b89
Add more tests
jsidorenko Nov 8, 2022
c376b43
Fix benchmarks
jsidorenko Nov 8, 2022
7fe301a
Add benchmarks for new methods
jsidorenko Nov 8, 2022
f246c52
Merge branch 'js/uniques-v2-minting-options_' into js/uniques-v2-mint…
jsidorenko Nov 8, 2022
cfa90dd
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-minting-o…
jsidorenko Nov 8, 2022
d667fb7
[Uniques v2] Refactoring (#12570)
jsidorenko Nov 14, 2022
0ef95b7
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-minting-o…
jsidorenko Nov 14, 2022
820891c
Split force_collection_status into 2 methods
jsidorenko Nov 15, 2022
51328b0
Fix benchmarks
jsidorenko Nov 15, 2022
c1e71a2
Fix benchmarks
jsidorenko Nov 15, 2022
011db15
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-minting-o…
jsidorenko Nov 16, 2022
67d5643
Update deps
jsidorenko Nov 16, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 54 additions & 11 deletions frame/nfts/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#![cfg(feature = "runtime-benchmarks")]

use super::*;
use enumflags2::{BitFlag, BitFlags};
use frame_benchmarking::{
account, benchmarks_instance_pallet, whitelist_account, whitelisted_caller,
};
Expand All @@ -46,7 +47,7 @@ fn create_collection<T: Config<I>, I: 'static>(
assert_ok!(Nfts::<T, I>::force_create(
SystemOrigin::Root.into(),
caller_lookup.clone(),
CollectionConfig::all_settings_enabled()
default_collection_config::<T, I>()
));
(collection, caller, caller_lookup)
}
Expand Down Expand Up @@ -78,8 +79,7 @@ fn mint_item<T: Config<I>, I: 'static>(
SystemOrigin::Signed(caller.clone()).into(),
T::Helper::collection(0),
item,
caller_lookup.clone(),
ItemConfig::all_settings_enabled(),
None,
));
(item, caller, caller_lookup)
}
Expand Down Expand Up @@ -128,6 +128,24 @@ fn assert_last_event<T: Config<I>, I: 'static>(generic_event: <T as Config<I>>::
assert_eq!(event, &system_event);
}

fn make_collection_config<T: Config<I>, I: 'static>(
disable_settings: BitFlags<CollectionSetting>,
) -> CollectionConfigFor<T, I> {
CollectionConfig {
settings: CollectionSettings::from_disabled(disable_settings),
max_supply: None,
mint_settings: MintSettings::default(),
}
}

fn default_collection_config<T: Config<I>, I: 'static>() -> CollectionConfigFor<T, I> {
make_collection_config::<T, I>(CollectionSetting::empty())
}

fn default_item_config() -> ItemConfig {
ItemConfig { settings: ItemSettings::all_enabled() }
}

benchmarks_instance_pallet! {
create {
let collection = T::Helper::collection(0);
Expand All @@ -136,7 +154,7 @@ benchmarks_instance_pallet! {
whitelist_account!(caller);
let admin = T::Lookup::unlookup(caller.clone());
T::Currency::make_free_balance_be(&caller, DepositBalanceOf::<T, I>::max_value());
let call = Call::<T, I>::create { admin, config: CollectionConfig::all_settings_enabled() };
let call = Call::<T, I>::create { admin, config: default_collection_config::<T, I>() };
}: { call.dispatch_bypass_filter(origin)? }
verify {
assert_last_event::<T, I>(Event::Created { collection: T::Helper::collection(0), creator: caller.clone(), owner: caller }.into());
Expand All @@ -145,7 +163,7 @@ benchmarks_instance_pallet! {
force_create {
let caller: T::AccountId = whitelisted_caller();
let caller_lookup = T::Lookup::unlookup(caller.clone());
}: _(SystemOrigin::Root, caller_lookup, CollectionConfig::all_settings_enabled())
}: _(SystemOrigin::Root, caller_lookup, default_collection_config::<T, I>())
verify {
assert_last_event::<T, I>(Event::ForceCreated { collection: T::Helper::collection(0), owner: caller }.into());
}
Expand All @@ -169,7 +187,15 @@ benchmarks_instance_pallet! {
mint {
let (collection, caller, caller_lookup) = create_collection::<T, I>();
let item = T::Helper::item(0);
}: _(SystemOrigin::Signed(caller.clone()), collection, item, caller_lookup, ItemConfig::all_settings_enabled())
}: _(SystemOrigin::Signed(caller.clone()), collection, item, None)
verify {
assert_last_event::<T, I>(Event::Issued { collection, item, owner: caller }.into());
}

force_mint {
let (collection, caller, caller_lookup) = create_collection::<T, I>();
let item = T::Helper::item(0);
}: _(SystemOrigin::Signed(caller.clone()), collection, item, caller_lookup, default_item_config())
verify {
assert_last_event::<T, I>(Event::Issued { collection, item, owner: caller }.into());
}
Expand All @@ -188,6 +214,7 @@ benchmarks_instance_pallet! {

let target: T::AccountId = account("target", 0, SEED);
let target_lookup = T::Lookup::unlookup(target.clone());
T::Currency::make_free_balance_be(&target, T::Currency::minimum_balance());
}: _(SystemOrigin::Signed(caller.clone()), collection, item, target_lookup)
verify {
assert_last_event::<T, I>(Event::Transferred { collection, item, from: caller, to: target }.into());
Expand All @@ -204,7 +231,7 @@ benchmarks_instance_pallet! {
caller_lookup.clone(),
caller_lookup.clone(),
caller_lookup,
CollectionConfig(CollectionSetting::DepositRequired.into()),
make_collection_config::<T, I>(CollectionSetting::DepositRequired.into()),
)?;
}: _(SystemOrigin::Signed(caller.clone()), collection, items.clone())
verify {
Expand Down Expand Up @@ -234,12 +261,13 @@ benchmarks_instance_pallet! {

lock_collection {
let (collection, caller, caller_lookup) = create_collection::<T, I>();
let lock_config = CollectionConfig(
let lock_settings = CollectionSettings::from_disabled(
CollectionSetting::TransferableItems |
CollectionSetting::UnlockedMetadata |
CollectionSetting::UnlockedAttributes,
CollectionSetting::UnlockedAttributes |
CollectionSetting::UnlockedMaxSupply,
);
}: _(SystemOrigin::Signed(caller.clone()), collection, lock_config)
}: _(SystemOrigin::Signed(caller.clone()), collection, lock_settings)
verify {
assert_last_event::<T, I>(Event::CollectionLocked { collection }.into());
}
Expand Down Expand Up @@ -280,7 +308,7 @@ benchmarks_instance_pallet! {
issuer: caller_lookup.clone(),
admin: caller_lookup.clone(),
freezer: caller_lookup,
config: CollectionConfig(CollectionSetting::DepositRequired.into()),
config: make_collection_config::<T, I>(CollectionSetting::DepositRequired.into()),
};
}: { call.dispatch_bypass_filter(origin)? }
verify {
Expand Down Expand Up @@ -414,6 +442,20 @@ benchmarks_instance_pallet! {
}.into());
}

update_mint_settings {
let (collection, caller, _) = create_collection::<T, I>();
let mint_settings = MintSettings {
mint_type: MintType::HolderOf(T::Helper::collection(0)),
start_block: Some(One::one()),
end_block: Some(One::one()),
price: Some(ItemPrice::<T, I>::from(1u32)),
default_item_settings: ItemSettings::all_enabled(),
};
}: _(SystemOrigin::Signed(caller.clone()), collection, mint_settings)
verify {
assert_last_event::<T, I>(Event::CollectionMintSettingsUpdated { collection }.into());
}

set_price {
let (collection, caller, _) = create_collection::<T, I>();
let (item, ..) = mint_item::<T, I>(0);
Expand Down Expand Up @@ -528,6 +570,7 @@ benchmarks_instance_pallet! {
let duration = T::MaxDeadlineDuration::get();
let target: T::AccountId = account("target", 0, SEED);
let target_lookup = T::Lookup::unlookup(target.clone());
T::Currency::make_free_balance_be(&target, T::Currency::minimum_balance());
let origin = SystemOrigin::Signed(caller.clone());
frame_system::Pallet::<T>::set_block_number(One::one());
Nfts::<T, I>::transfer(origin.clone().into(), collection, item2, target_lookup)?;
Expand Down
16 changes: 7 additions & 9 deletions frame/nfts/src/features/lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,21 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
pub(crate) fn do_lock_collection(
origin: T::AccountId,
collection: T::CollectionId,
lock_config: CollectionConfig,
lock_settings: CollectionSettings,
) -> DispatchResult {
ensure!(
Self::has_role(&collection, &origin, CollectionRole::Freezer),
Error::<T, I>::NoPermission
);
ensure!(
!lock_settings.is_disabled(CollectionSetting::DepositRequired),
Error::<T, I>::WrongSetting
);
CollectionConfigOf::<T, I>::try_mutate(collection, |maybe_config| {
let config = maybe_config.as_mut().ok_or(Error::<T, I>::NoConfig)?;

if lock_config.has_disabled_setting(CollectionSetting::TransferableItems) {
config.disable_setting(CollectionSetting::TransferableItems);
}
if lock_config.has_disabled_setting(CollectionSetting::UnlockedMetadata) {
config.disable_setting(CollectionSetting::UnlockedMetadata);
}
if lock_config.has_disabled_setting(CollectionSetting::UnlockedAttributes) {
config.disable_setting(CollectionSetting::UnlockedAttributes);
for setting in lock_settings.get_disabled() {
config.disable_setting(setting);
}

Self::deposit_event(Event::<T, I>::CollectionLocked { collection });
Expand Down
6 changes: 3 additions & 3 deletions frame/nfts/src/features/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ use frame_support::pallet_prelude::*;
impl<T: Config<I>, I: 'static> Pallet<T, I> {
pub(crate) fn get_collection_config(
collection_id: &T::CollectionId,
) -> Result<CollectionConfig, DispatchError> {
let config = CollectionConfigOf::<T, I>::get(&collection_id)
.ok_or(Error::<T, I>::UnknownCollection)?;
) -> Result<CollectionConfigFor<T, I>, DispatchError> {
let config =
CollectionConfigOf::<T, I>::get(&collection_id).ok_or(Error::<T, I>::NoConfig)?;
Ok(config)
}

Expand Down
44 changes: 33 additions & 11 deletions frame/nfts/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
Item::<T, I>::get(&collection, &item).ok_or(Error::<T, I>::UnknownItem)?;
with_details(&collection_details, &mut details)?;

if details.deposit.account == details.owner {
// Move the deposit to the new owner.
T::Currency::repatriate_reserved(
jsidorenko marked this conversation as resolved.
Show resolved Hide resolved
&details.owner,
&dest,
details.deposit.amount,
Reserved,
)?;
}

Account::<T, I>::remove((&details.owner, &collection, &item));
Account::<T, I>::insert((&dest, &collection, &item), ());
let origin = details.owner;
Expand Down Expand Up @@ -81,7 +91,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
collection: T::CollectionId,
owner: T::AccountId,
admin: T::AccountId,
config: CollectionConfig,
config: CollectionConfigFor<T, I>,
deposit: DepositBalanceOf<T, I>,
event: Event<T, I>,
) -> DispatchResult {
Expand Down Expand Up @@ -138,6 +148,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {

for (item, details) in Item::<T, I>::drain_prefix(&collection) {
Account::<T, I>::remove((&details.owner, &collection, &item));
T::Currency::unreserve(&details.deposit.account, details.deposit.amount);
jsidorenko marked this conversation as resolved.
Show resolved Hide resolved
}
#[allow(deprecated)]
ItemMetadataOf::<T, I>::remove_prefix(&collection, None);
Expand All @@ -151,7 +162,6 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
Attribute::<T, I>::remove_prefix((&collection,), None);
CollectionAccount::<T, I>::remove(&collection_details.owner, &collection);
T::Currency::unreserve(&collection_details.owner, collection_details.total_deposit);
CollectionMaxSupply::<T, I>::remove(&collection);
CollectionConfigOf::<T, I>::remove(&collection);
let _ = ItemConfigOf::<T, I>::clear_prefix(&collection, witness.items, None);

Expand All @@ -169,7 +179,12 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
collection: T::CollectionId,
item: T::ItemId,
owner: T::AccountId,
config: ItemConfig,
item_config: ItemConfig,
deposit_collection_owner: bool,
with_details_and_config: impl FnOnce(
jsidorenko marked this conversation as resolved.
Show resolved Hide resolved
&CollectionDetailsFor<T, I>,
&CollectionConfigFor<T, I>,
) -> DispatchResult,
) -> DispatchResult {
ensure!(!Item::<T, I>::contains_key(collection, item), Error::<T, I>::AlreadyExists);

Expand All @@ -179,7 +194,10 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
let collection_details =
maybe_collection_details.as_mut().ok_or(Error::<T, I>::UnknownCollection)?;

if let Ok(max_supply) = CollectionMaxSupply::<T, I>::try_get(&collection) {
let collection_config = Self::get_collection_config(&collection)?;
with_details_and_config(collection_details, &collection_config)?;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont get the design here why this callback is needed. You can just do the checks later and rollback the changes since we have transactional layers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That callback and another one in do_transfer allow calling those methods from different places and have different extra checks/actions tied to the upper method. For e.g. when we call do_mint from the force_mint, the only check we do is if a caller has the Issuer role.


if let Some(max_supply) = collection_config.max_supply {
ensure!(collection_details.items < max_supply, Error::<T, I>::MaxSupplyReached);
}

Expand All @@ -188,24 +206,29 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
collection_details.items = items;

let collection_config = Self::get_collection_config(&collection)?;
let deposit = match collection_config
let deposit_amount = match collection_config
.is_setting_enabled(CollectionSetting::DepositRequired)
{
true => T::ItemDeposit::get(),
false => Zero::zero(),
};
T::Currency::reserve(&collection_details.owner, deposit)?;
collection_details.total_deposit += deposit;
let deposit_account = match deposit_collection_owner {
true => collection_details.owner.clone(),
false => owner.clone(),
};

let owner = owner.clone();
Account::<T, I>::insert((&owner, &collection, &item), ());

if let Ok(existing_config) = ItemConfigOf::<T, I>::try_get(&collection, &item) {
ensure!(existing_config == config, Error::<T, I>::InconsistentItemConfig);
ensure!(existing_config == item_config, Error::<T, I>::InconsistentItemConfig);
} else {
ItemConfigOf::<T, I>::insert(&collection, &item, config);
ItemConfigOf::<T, I>::insert(&collection, &item, item_config);
}

T::Currency::reserve(&deposit_account, deposit_amount)?;

let deposit = ItemDeposit { account: deposit_account, amount: deposit_amount };
let details =
ItemDetails { owner, approvals: ApprovalsOf::<T, I>::default(), deposit };
Item::<T, I>::insert(&collection, &item, details);
Expand All @@ -232,8 +255,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
with_details(&details)?;

// Return the deposit.
T::Currency::unreserve(&collection_details.owner, details.deposit);
collection_details.total_deposit.saturating_reduce(details.deposit);
T::Currency::unreserve(&details.deposit.account, details.deposit.amount);
collection_details.items.saturating_dec();
Ok(details.owner)
},
Expand Down
20 changes: 13 additions & 7 deletions frame/nfts/src/impl_nonfungibles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ impl<T: Config<I>, I: 'static> Inspect<<T as SystemConfig>::AccountId> for Palle
}
}

impl<T: Config<I>, I: 'static> Create<<T as SystemConfig>::AccountId, CollectionConfig>
impl<T: Config<I>, I: 'static> Create<<T as SystemConfig>::AccountId, CollectionConfigFor<T, I>>
for Pallet<T, I>
{
/// Create a `collection` of nonfungible items to be owned by `who` and managed by `admin`.
fn create_collection(
collection: &Self::CollectionId,
who: &T::AccountId,
admin: &T::AccountId,
config: &CollectionConfig,
config: &CollectionConfigFor<T, I>,
) -> DispatchResult {
// DepositRequired can be disabled by calling the force_create() only
ensure!(
Expand Down Expand Up @@ -134,16 +134,22 @@ impl<T: Config<I>, I: 'static> Destroy<<T as SystemConfig>::AccountId> for Palle
}
}

impl<T: Config<I>, I: 'static> Mutate<<T as SystemConfig>::AccountId, ItemSettings>
for Pallet<T, I>
{
impl<T: Config<I>, I: 'static> Mutate<<T as SystemConfig>::AccountId, ItemConfig> for Pallet<T, I> {
fn mint_into(
collection: &Self::CollectionId,
item: &Self::ItemId,
who: &T::AccountId,
settings: &ItemSettings,
item_config: &ItemConfig,
deposit_collection_owner: bool,
) -> DispatchResult {
Self::do_mint(*collection, *item, who.clone(), ItemConfig(*settings))
Self::do_mint(
*collection,
*item,
who.clone(),
*item_config,
deposit_collection_owner,
|_, _| Ok(()),
)
}

fn burn(
Expand Down
Loading