https://github.com/friedger/clarity-smart-contracts
Collection of Smart Contract for Stacks Blockchain in Clarity
https://github.com/friedger/clarity-smart-contracts
blockstack clarity smart-contracts stacks
Last synced: about 1 year ago
JSON representation
Collection of Smart Contract for Stacks Blockchain in Clarity
- Host: GitHub
- URL: https://github.com/friedger/clarity-smart-contracts
- Owner: friedger
- License: mit
- Created: 2019-07-10T12:49:25.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-04-18T10:22:10.000Z (about 2 years ago)
- Last Synced: 2024-10-12T20:27:35.359Z (over 1 year ago)
- Topics: blockstack, clarity, smart-contracts, stacks
- Language: TypeScript
- Homepage:
- Size: 2.43 MB
- Stars: 82
- Watchers: 16
- Forks: 34
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://gitpod.io/#https://github.com/friedger/clarity-smart-contracts)
# Clarity Smart Contracts
A collection of various smart contracts written in [Clarity](https://docs.blockstack.org/core/smart/clarityref). They run on the [Stacks blockchain](https://docs.blockstack.org).
See also [original Clarity tutorials](https://github.com/blockstack/clarity-js-sdk/tree/master/packages/clarity-tutorials) by Blockstack.
## Repositories with Smart Contracts
- [Swapr](https://github.com/psq/swapr) Trustless token exchange.
- [Flexr](https://github.com/psq/flexr) Token with an elastic supply, guaranteed by design to be uncorrelated to other tokens.
- [Stackstarter](https://github.com/MarvinJanssen/stackstarter) Crowdfunding
- [Marketplace](https://github.com/friedger/clarity-marketplace) Marketplace (NFTs that can get disabled + market).
- [Loopbomb Marketplace](https://github.com/radicleart/clarity-market) Marketplace for art NFTs and others.
- [Profit sharing token](https://github.com/friedger/clarity-profit-sharing-token) Token with included profit sharing on resale.
- [Blind Poll](https://github.com/zexxlin/clarity-blind-poll) Anonymous polls, where all submitted answers will be sealed until they're revealed by participants after the poll is closed.
- [Highscore](https://github.com/xmakina/clarity-high-score) Simple list of submitted scores.
- [Redistribution](https://github.com/xmakina/redistribution-contract) Pot for redistributing funds.
- [Endless list](https://github.com/xmakina/endless-list) A bottomless, paged, list of items.
- [Stacks loans](https://github.com/richardmichel/stacks-loans) Loans with fixed interest rates.
- [Advent calendar](https://github.com/friedger/clarity-advent-calendar) Open one door each day, open to everybody to add new doors.
More examples on
* the [list of winners](https://community.blockstack.org/clarity-winners#overall) of Clarity Hackathon 1.
* the [list of winners](https://blog.blockstack.org/announcing-the-winners-of-clarity-hack/) of Clarity Hack of Stacks 2.0 Hackathon Series.
## 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)](https://friedger.github.io/clarity-web-ide/))
```
.
+-- 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](docs/escrow.md): Simple token transfer via 3rd party (contract account). [Video of demo](https://www.youtube.com/watch?v=uZH1V-FNJIs)
[Flip coin contract](docs/flip-coin.md): Random coin flipping, users can bet on the outcome.