Skip to content

A lottery that uses ChainLink VRF V2 as an element of randomness.

Notifications You must be signed in to change notification settings

KumaCrypto/Lottery-ChainLink

Repository files navigation

Chainlink Dice


Lottery using Chainlink VRF V2(Verifiable Random Function)

A simple lottery in the blockchain in which the winner is chosen with provable randomness using Chainlink VRF V2 and automation from Chainlink Keepers.

Getting Started

Requirements

  • git

    • You'll know you did it right if you can run git --version and you see a response like git version x.x.x
  • Nodejs

    • You'll know you've installed nodejs right if you can run:
      • node --version and get an ouput like: vx.x.x

Quickstart

git clone https://github.com/KumaCrypto/Raffle-fcc

cd Raffle-fcc

npm install -D

Usage

Deploy:

npx hardhat deploy

Testing

npx hardhat test

Test Coverage

npx hardhat coverage