Pick a side (tails or heads). Deposit ETH. Flip a coin. Win 190% or loose 100% of your deposit.
This project utilizes Chainlink VRF (Verifiable Random Function) and it's just for demonstration purposes.
Install dependencies with
npm install
Run local node with
npx hardhat node
Deploy to local network with
npx hardhat run --network localhost scripts/deploy.js
Run tests with
npx hardhat test
Check tests coverage with
npx hardhat coverage