Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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).