This is a game. In each round, players will deposit tokens or NFTs into the pool. The system will then randomly select a lucky winner, the winner will receive all the money or NFTs in that game.
We completely use tools published by MorpheusLab to create this game.
For smart contract:
- Use Smart Contract Studio to create a contract, create a test case, deploy that smart contract and test it
- All findWinner logic will be on the smart contract to ensure it is truly a random choice
For backend:
- Use workflows to interact with GameContract (create, stop, ...), crawl user actions and save them in the database
- Use WF to create APIs
For UI:
- Use the interface module to create the interface for both admin and user pages
Here are the slides as well as a detailed video of my idea:
https://drive.google.com/drive/u/0/folders/1ZMlJLvo8mH-Uh2En-ASpKGtNhTpk4Mmj