Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/berzanorg/starknet-coin-flip-contract
A No-Loss NFT-Rewarding Coin Flip Implementation Using Cairo Language & OpenZeppelin
https://github.com/berzanorg/starknet-coin-flip-contract
cairo cairo-lang coin-flip erc721 nft nfts openzeppelin openzeppelin-cairo scarb smart-contracts starkli starknet starknet-ecosystem token
Last synced: 29 days ago
JSON representation
A No-Loss NFT-Rewarding Coin Flip Implementation Using Cairo Language & OpenZeppelin
- Host: GitHub
- URL: https://github.com/berzanorg/starknet-coin-flip-contract
- Owner: BerzanOrg
- License: gpl-3.0
- Created: 2023-12-25T16:53:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-26T17:00:15.000Z (about 1 year ago)
- Last Synced: 2023-12-26T21:07:38.901Z (about 1 year ago)
- Topics: cairo, cairo-lang, coin-flip, erc721, nft, nfts, openzeppelin, openzeppelin-cairo, scarb, smart-contracts, starkli, starknet, starknet-ecosystem, token
- Language: Cairo
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# starknet-coin-flip-contract
## Environment Setup
Use [Dev Containers](https://code.visualstudio.com/docs/devcontainers/create-dev-container) to setup a development enviroment quickly.
Or install necessary tools manually by following the instructions in [`.devcontainer/Dockerfile`](/.devcontainer/Dockerfile).
## Developing
Build the contract by running the command below.
```shell
scarb build
```Declare the class hash of the contract by running the command below.
```shell
starkli declare target/dev/coin_flip_CoinFlip.contract_class.json
```Deploy an instance of the contract by running the command below.
```shell
starkli deploy
```## License
[GNU GPLv3](https://choosealicense.com/licenses/gpl-3.0/)
Made with ❤️ by [**Berzan**](https://berzan.org).