DeKino is a sample project implementing a smart contract lottery system, developed in the context of the Full Stack Web3 Development with JavaScript – 32-Hour Course
DeKino was developed using the Hardhat suite to deploy and test the smart contract. It consists of the contract DeKino.sol which allows user to send funds and participate in the lottery draw. The winner will be automatically determined using the Chainlink VRF to get an off-chain random number. Chainlink Keepers is used to trigger the draw automatically based on a time interval if the lottery has at least one participant.
Clone and build the repo
git clone https://github.com/bpolitiadis/hh-lottery-fcc.git
cd hh-lottery-fcc
yarn
Create a .env file in the root of the project and reference the file .env.example for what needs to be provided.
Deploy:
yarn hardhat deploy
Test:
yarn hardhat test
Distributed under the MIT License.
This project is built for educational purposes only and has been tested only in local enviroment and the Goerli Testnet.