pub fn claim_swap<T: Config<I>, I: 'static>(
    send_collection: T::CollectionId,
    send_item: T::ItemId,
    receive_collection: T::CollectionId,
    receive_item: T::ItemId,
    witness_price: Option<PriceWithDirection<<<T as Config<I>>::Currency as Currency<<T as SystemConfig>::AccountId>>::Balance>>
)
Expand description

Claim an atomic swap. This method executes a pending swap, that was created by a counterpart before.

Origin must be Signed and must be an owner of the item.

  • send_collection: The collection of the item to be sent.
  • send_item: The item to be sent.
  • receive_collection: The collection of the item to be received.
  • receive_item: The item to be received.
  • witness_price: A price that was previously agreed on.

Emits SwapClaimed on success.

Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::claim_swap.