Collection of Smart Contract for Stacks Blockchain in Clarity
A collection of various smart contracts written in Clarity. They run on the Stacks blockchain.
See also original Clarity tutorials by Blockstack.
More examples on
This repo is gitpod ready. Click the gitpod button to start editing and running the contracts. (Read more about Clarity Web IDE (gitpod based))
.
+-- contracts
| +-- license (OI License - contract to handle licenses for using UI apps, not data apps)
| +-- tokens (Token contracts with various properties)
| +-- experiments (All the rest)
+-- test
| +-- integration (Tests that run on mocknet or testnet)
| +-- unit (Test that run on clarity VM only)
Escrow contract: Simple token transfer via 3rd party (contract account). Video of demo
Flip coin contract: Random coin flipping, users can bet on the outcome.