Skip to content

hirosystems/platform-template-ordyswap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ordinals Swap

Demonstrates trustless atomic swaps between Ordinals and Stacks.

Know your Contract

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-transfer function validates the transfer of an Ordinal
  • finalize-offer finalizes the transfer offer
  • cancel-offer function can be used to cancel a pending offer
  • refund-cancelled-offer function is used to refund a canceled offer back to the owner

To add new contracts, use Clarinet.

Test your Contract

  • You can manually test your your contracts in the Clarinet console.
  • You can programmatically test your contracts with unit tests.

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published