Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 900 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 900 Bytes

Lottery

Version Prerequisite

On-chain Lottery smart contract with Random Number VRF Consumer using ChainLink VRF

Documentation

Setup

  • yarn
  • yarn global add hardhat-shorthand

Run local node

  • yarn node

Environment File (.env)

  • Configure the following environment variables on a .env in the package root:
    • Mnemonic - Deployment Owner(s) BIP-32 Mnemonic phrase
    • Lottery Participant Entry Fee in Wei
    • Owner Fee in Wei

Compile & migrate (Deploy) Contracts

  • yarn deploy (Default network: Kovan Ethereum Testnet)

image

Run Tests

  • yarn test