make all extrinsics public so they are available from outside (#9078)

Co-authored-by: thiolliere <gui.thiolliere@gmail.com>
This commit is contained in:
Alexander Popiak
2021-06-12 12:43:08 +02:00
committed by GitHub
parent ad5b8afa6e
commit 5dec6e5c81
21 changed files with 155 additions and 155 deletions
+5 -5
View File
@@ -90,7 +90,7 @@ pub mod pallet {
/// - DB Weight: 1 Read/Write (Accounts)
/// # </weight>
#[pallet::weight(T::WeightInfo::claim())]
pub(crate) fn claim(origin: OriginFor<T>, index: T::AccountIndex) -> DispatchResult {
pub fn claim(origin: OriginFor<T>, index: T::AccountIndex) -> DispatchResult {
let who = ensure_signed(origin)?;
Accounts::<T>::try_mutate(index, |maybe_value| {
@@ -123,7 +123,7 @@ pub mod pallet {
/// - Writes: Indices Accounts, System Account (recipient)
/// # </weight>
#[pallet::weight(T::WeightInfo::transfer())]
pub(crate) fn transfer(
pub fn transfer(
origin: OriginFor<T>,
new: T::AccountId,
index: T::AccountIndex,
@@ -162,7 +162,7 @@ pub mod pallet {
/// - DB Weight: 1 Read/Write (Accounts)
/// # </weight>
#[pallet::weight(T::WeightInfo::free())]
pub(crate) fn free(origin: OriginFor<T>, index: T::AccountIndex) -> DispatchResult {
pub fn free(origin: OriginFor<T>, index: T::AccountIndex) -> DispatchResult {
let who = ensure_signed(origin)?;
Accounts::<T>::try_mutate(index, |maybe_value| -> DispatchResult {
@@ -198,7 +198,7 @@ pub mod pallet {
/// - Writes: Indices Accounts, System Account (original owner)
/// # </weight>
#[pallet::weight(T::WeightInfo::force_transfer())]
pub(crate) fn force_transfer(
pub fn force_transfer(
origin: OriginFor<T>,
new: T::AccountId,
index: T::AccountIndex,
@@ -234,7 +234,7 @@ pub mod pallet {
/// - DB Weight: 1 Read/Write (Accounts)
/// # </weight>
#[pallet::weight(T::WeightInfo::freeze())]
pub(crate) fn freeze(origin: OriginFor<T>, index: T::AccountIndex) -> DispatchResult {
pub fn freeze(origin: OriginFor<T>, index: T::AccountIndex) -> DispatchResult {
let who = ensure_signed(origin)?;
Accounts::<T>::try_mutate(index, |maybe_value| -> DispatchResult {