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

Commit 1ca6b68

Browse files
authored
Expose Uniques helper functions and DestroyWitness fields (#10529)
1 parent 88a0032 commit 1ca6b68

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

frame/uniques/src/functions.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use frame_support::{ensure, traits::Get};
2222
use sp_runtime::{DispatchError, DispatchResult};
2323

2424
impl<T: Config<I>, I: 'static> Pallet<T, I> {
25-
pub(crate) fn do_transfer(
25+
pub fn do_transfer(
2626
class: T::ClassId,
2727
instance: T::InstanceId,
2828
dest: T::AccountId,
@@ -53,7 +53,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
5353
Ok(())
5454
}
5555

56-
pub(super) fn do_create_class(
56+
pub fn do_create_class(
5757
class: T::ClassId,
5858
owner: T::AccountId,
5959
admin: T::AccountId,
@@ -86,7 +86,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
8686
Ok(())
8787
}
8888

89-
pub(super) fn do_destroy_class(
89+
pub fn do_destroy_class(
9090
class: T::ClassId,
9191
witness: DestroyWitness,
9292
maybe_check_owner: Option<T::AccountId>,
@@ -122,7 +122,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
122122
})
123123
}
124124

125-
pub(super) fn do_mint(
125+
pub fn do_mint(
126126
class: T::ClassId,
127127
instance: T::InstanceId,
128128
owner: T::AccountId,
@@ -157,7 +157,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
157157
Ok(())
158158
}
159159

160-
pub(super) fn do_burn(
160+
pub fn do_burn(
161161
class: T::ClassId,
162162
instance: T::InstanceId,
163163
with_details: impl FnOnce(&ClassDetailsFor<T, I>, &InstanceDetailsFor<T, I>) -> DispatchResult,

frame/uniques/src/types.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ pub struct ClassDetails<AccountId, DepositBalance> {
5858
pub struct DestroyWitness {
5959
/// The total number of outstanding instances of this asset class.
6060
#[codec(compact)]
61-
pub(super) instances: u32,
61+
pub instances: u32,
6262
/// The total number of outstanding instance metadata of this asset class.
6363
#[codec(compact)]
64-
pub(super) instance_metadatas: u32,
64+
pub instance_metadatas: u32,
6565
#[codec(compact)]
6666
/// The total number of attributes for this asset class.
67-
pub(super) attributes: u32,
67+
pub attributes: u32,
6868
}
6969

7070
impl<AccountId, DepositBalance> ClassDetails<AccountId, DepositBalance> {

0 commit comments

Comments
 (0)