bpolitiadis / hh-lottery-fcc

DeKino is a smart contract lottery.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DeKino Decentralized Lottery

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

About The Project

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.

Getting Started

Prerequisites

Quickstart

Clone and build the repo

git clone https://github.com/bpolitiadis/hh-lottery-fcc.git
cd hh-lottery-fcc
yarn

Usage

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

License

Distributed under the MIT License.

Acknowledgments

This project is built for educational purposes only and has been tested only in local enviroment and the Goerli Testnet.

About

DeKino is a smart contract lottery.


Languages

Language:JavaScript 78.9%Language:Solidity 21.1%