Ethereum smart contract gambling game.
A smart contract that implements multiple games on the Ethereum blockchain plus the next.js frontend that goes with it. The contract allows users to bet Ether on the results of the games.
- Tech Stack
- Contract Address
- Frontend Domain
- How to Use
- Development Setup and Code Explanation
- Current State of The Project
- TODO
- Contributing
- Acknowledgments
0xA710Af3d0833FB7018c9C2A3365C3A44e29FD816
https://master--graceful-vacherin-c433a4.netlify.app/
The contract is currently deployed on Goerli and you can use it in multiple ways.
First, you can write your own scripts to interact with contract. You only need to get the abi and the contract address on Goerli to do so. You can obtain both by either going to the Etherscan link or from the constants
folder in the frontend directory.
Second, you can use the use the Etherscan link and go to the contract tab and connect your wallet to manually call functions from the contract.
Third, you can use the deployed website at here.
Finally, you can run the frontend which will automatically connect with the contract on Goerli and then open localhost:3000
to interact with the contract using the UI.
Each directory has its own readme file which will explain the code and how to use it.
There is a TODO list in this readme file. In the future I might consider finishing it.
Currently, I'm going to fix bugs and problems in the project but I won't extend or add features. Please if you find a problem, mention it on the issues page in the GitHub repo.
- Add documentation for the frontend
- Add tests for frontend
- Improve readme file for the frontend
- Fix staging test
- Fork it (https://github.com/Mahmood-Darwish/Gambelous/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
I was able to implement this after taking this course. I own a lot of thanks to Patrick Collins for making the course. Check it out!