mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +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:
@@ -226,7 +226,7 @@ pub mod pallet {
|
||||
/// that the revealer uses a shorter duration than the counterparty, to prevent the
|
||||
/// situation where the revealer reveals the proof too late around the end block.
|
||||
#[pallet::weight(T::DbWeight::get().reads_writes(1, 1).saturating_add(40_000_000))]
|
||||
pub(crate) fn create_swap(
|
||||
pub fn create_swap(
|
||||
origin: OriginFor<T>,
|
||||
target: T::AccountId,
|
||||
hashed_proof: HashedProof,
|
||||
@@ -268,7 +268,7 @@ pub mod pallet {
|
||||
.saturating_add((proof.len() as Weight).saturating_mul(100))
|
||||
.saturating_add(action.weight())
|
||||
)]
|
||||
pub(crate) fn claim_swap(
|
||||
pub fn claim_swap(
|
||||
origin: OriginFor<T>,
|
||||
proof: Vec<u8>,
|
||||
action: T::SwapAction,
|
||||
@@ -303,7 +303,7 @@ pub mod pallet {
|
||||
/// - `target`: Target of the original atomic swap.
|
||||
/// - `hashed_proof`: Hashed proof of the original atomic swap.
|
||||
#[pallet::weight(T::DbWeight::get().reads_writes(1, 1).saturating_add(40_000_000))]
|
||||
pub(crate) fn cancel_swap(
|
||||
pub fn cancel_swap(
|
||||
origin: OriginFor<T>,
|
||||
target: T::AccountId,
|
||||
hashed_proof: HashedProof,
|
||||
|
||||
Reference in New Issue
Block a user