Code Monkey home page Code Monkey logo

gambelous's Introduction

Gambelous

Licence

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.

Table of Contents

  1. Tech Stack
    1. Backend
    2. Frontend
  2. Contract Address
    1. Goerli
  3. Frontend Domain
  4. How to Use
  5. Development Setup and Code Explanation
  6. Current State of The Project
  7. TODO
  8. Contributing
  9. Acknowledgments

Tech stack

Backend

Solidity JavaScript Ethereum Chainlink Hardhat

Frontend

React Next JS TypeScript Wagmi Milligram


Contract Address

Goerli

Etherscan link

0xA710Af3d0833FB7018c9C2A3365C3A44e29FD816

Frontend Domain

https://master--graceful-vacherin-c433a4.netlify.app/


How to Use

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.


Development Setup and Code Explanation

Each directory has its own readme file which will explain the code and how to use it.


Current State of The Project

Current state Current state

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.


TODO

  • Add documentation for the frontend
  • Add tests for frontend
  • Improve readme file for the frontend
  • Fix staging test

Contributing

  1. Fork it (https://github.com/Mahmood-Darwish/Gambelous/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request


Acknowledgments

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.