- Add participants to the system
- Each player must pay 4 tRIF(ERC20) to enter
- Each account can only participate once.
- The list of participants should be reset after the lottery ends
- Only allow owner to start/end lottery manually
- Ownership of the Lottery contract should be transferable.
- users will only be able to join if the lottery has been started.
- Random choice of winner when Lottery is ended
- Once the lottery is ended, the sum of all the tRIF tokens should be awarded to the randomly picked winner.
- Test implementation using hardhat ethers
- It should be possible in the future to query past winners