Demonstrates trustless atomic swaps between Ordinals and Stacks.
For more details about this protocol in Stacks, please refer to Mechanism's Ordyswap project.
The ord-swap.clar contract includes the following functionality.
validate-offer-transferfunction validates the transfer of an Ordinalfinalize-offerfinalizes the transfer offercancel-offerfunction can be used to cancel a pending offerrefund-cancelled-offerfunction is used to refund a canceled offer back to the owner
To add new contracts, use Clarinet.
- You can manually test your your contracts in the Clarinet console.
- You can programmatically test your contracts with unit tests.