friedger / clarity-smart-contracts

Collection of Smart Contract for Stacks Blockchain in Clarity
MIT License
82 stars 34 forks source link
blockstack clarity smart-contracts stacks

Gitpod ready-to-code

Clarity Smart Contracts

A collection of various smart contracts written in Clarity. They run on the Stacks blockchain.

See also original Clarity tutorials by Blockstack.

Repositories with Smart Contracts

More examples on

Smart Contracts in this Repository

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)

Documented Contracts

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.