mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 03:27:58 +00:00
make all extrinsics public so they are available from outside (#9078)
Co-authored-by: thiolliere <gui.thiolliere@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user