Skip to content

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

License

Notifications You must be signed in to change notification settings

ankurdaharwal/lottery

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published