Skip to content

domininik/VRF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flip a (crypto) Coin

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.

Getting started

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