47 releases (major breaking)

39.0.0 Jan 7, 2025
38.0.0 Sep 25, 2024
37.0.0 Jul 18, 2024
36.0.0 Jul 12, 2024
2.0.0-rc5 Jul 24, 2020

#11 in #cancel

Download history 25041/week @ 2024-11-16 26794/week @ 2024-11-23 20161/week @ 2024-11-30 28862/week @ 2024-12-07 21444/week @ 2024-12-14 5922/week @ 2024-12-21 10759/week @ 2024-12-28 20188/week @ 2025-01-04 31276/week @ 2025-01-11 27297/week @ 2025-01-18 24960/week @ 2025-01-25 28621/week @ 2025-02-01 30400/week @ 2025-02-08 33944/week @ 2025-02-15 10533/week @ 2025-02-22 2594/week @ 2025-03-01

83,247 downloads per month
Used in 15 crates (via polkadot-sdk)

Apache-2.0

3MB
47K SLoC

Atomic Swap

A module for atomically sending funds.

Overview

A module for atomically sending funds from an origin to a target. A proof is used to allow the target to approve (claim) the swap. If the swap is not claimed within a specified duration of time, the sender may cancel it.

Interface

Dispatchable Functions

  • create_swap - called by a sender to register a new atomic swap
  • claim_swap - called by the target to approve a swap
  • cancel_swap - may be called by a sender after a specified duration

License: Apache-2.0

Release

Polkadot SDK Stable 2412


lib.rs:

Atomic Swap

A pallet for atomically sending funds.

Overview

A pallet for atomically sending funds from an origin to a target. A proof is used to allow the target to approve (claim) the swap. If the swap is not claimed within a specified duration of time, the sender may cancel it.

Interface

Dispatchable Functions

  • create_swap - called by a sender to register a new atomic swap
  • claim_swap - called by the target to approve a swap
  • cancel_swap - may be called by a sender after a specified duration

Dependencies

~19–33MB
~567K SLoC