Skip to content

Lottery contracts written in solidity with various functionality where people can enter the lottery and win lottery in some given elapsed time.

Notifications You must be signed in to change notification settings

BelugaWhaleSam/lottery-chainlink

Repository files navigation

lottery-chainlink

Introduction

  • Lottery contracts written in solidity with various functionality where people can enter the lottery and win lottery in some given elapsed time.

  • Various staging and unit tests are written to test each functionality of the contract and events emitted with gas usage using chai-mocha library.

  • Also, I've provided with the mock deploy scripts to the local testnet and main deploy scripts to the actual goerli testnet.

  • I have implemented the chainlink VRF Randomness using the chainlink keepUp and performkeepUp to get truly decentralised random number using subId.

  • Also deployed the smart contract on the goerli testnet with some contract address, also verified programmatically on the Etherscan using its API_KEY.

Tech-Stack used

  • Hardhat Ethereum development environment

  • Solidity for writing smart contracts

  • Assertion tests in chai-mocha

  • Used Alchemy as the RPC node provider, and various other API such as Etherscan for verifying contract, CoinmarketCap for gas-usage

  • Used solidity coverage to check if all the functionalities lines are covered in the tests.

About

Lottery contracts written in solidity with various functionality where people can enter the lottery and win lottery in some given elapsed time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published