This is a solidity project to show how to use Chainlink VRF and Chainlink Keepers. It consist on a descentralized and auromated lottery
-
Clone this repo
-
Install the dependencies with
npm install
yarn install
To fund Chainlink VRF subscription enter here To fund Chainlink Keeper enter here
- Chainlink
- Chainlink VRF V2
- Chainlink Keepers
- Hardhat
The tests are divided to check every contract functionality one by one. For the Unit test run any of this:
> npx hardhat test
> npm run test
> yarn hardhat test
> yarn test
For the staging test remember to deploy first, and fund your VRF and Keepers subscription. For the deploy run any of this comands
> yarn hardhat deploy --network rinkeby
> yarn rinkeby
Wait for the deploy and verification, and then run either of this ones > yarn hardhat test --network rinkeby > yarn staging
If you want to contribute just fork the repo and describe the changes you made.
MIT