RohitShah1706 / lottery-hardhat-fcc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hardhat Lottery Smart Contract

This smart contract allows users to enter a lottery by funding the prize pool using GoerliETH.
Chainlink keepers call performUpKeep of the contract at regular intervals to decide a randomised
winner in a true decentralised manner using Chainlink VRF.

More info on Chainlink keepers - allows smart contract to access random variables without compromising security.
The proof for the randomised number is published and verified on chain before consuming it.

Frontend Hosted on Fleek - Lottery DAPP
Contract deployed using Hardhat - Lottery.sol
Hardhat code & Waffle tests - lottery-hardhat-fcc

Deployment

To intall this project run

  yarn install

To deploy this project

  yarn hardhat deploy

To run automated Waffle Tests

  yarn hardhat test 

Acknowledgements

Authors

About


Languages

Language:JavaScript 77.3%Language:Solidity 22.7%