23 releases (major breaking)

new 20.0.0 Mar 26, 2023
19.0.0 Mar 5, 2023
18.0.0 Feb 26, 2023
17.0.0 Feb 19, 2023
2.0.0-rc5 Jul 24, 2020

#889 in Magic Beans

Download history 15/week @ 2022-12-08 158/week @ 2022-12-15 15/week @ 2022-12-22 1/week @ 2022-12-29 58/week @ 2023-01-05 29/week @ 2023-01-12 54/week @ 2023-01-19 25/week @ 2023-01-26 43/week @ 2023-02-02 75/week @ 2023-02-09 62/week @ 2023-02-16 28/week @ 2023-02-23 21/week @ 2023-03-02 2/week @ 2023-03-09 39/week @ 2023-03-16 38/week @ 2023-03-23

100 downloads per month

Apache-2.0

2MB
35K 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


lib.rs:

Atomic Swap

A pallet for atomically sending funds.

  • [Config]
  • [Call]
  • [Pallet]

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

~8–44MB
~747K SLoC