Giter Site home page Giter Site logo

lcsouzamenezes / tokencasino Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brakid/tokencasino

1.0 0.0 0.0 7.13 MB

Ethereum SmartContract based dApp casino

Solidity 5.10% JavaScript 13.40% HTML 2.14% TypeScript 19.01% Shell 0.10% Jupyter Notebook 60.24%

tokencasino's Introduction

TokenCasino

Ethereum SmartContract based dApp casino

The dApp consists of:

  • a native token CasinoToken, issues by the Bank contract in exchange for USDC tokens. The conversion rate is defined at creation and cannot be changed afterwards. This token is not divisible. The token stores the USDC amount transferred to it and mints CasinoToken according to the conversion rate.
  • a pseudo-random number generator named RandomNumberOracle it is seeded by the admin and will product pseudo-random number required for the game in the Casino. To limit the cost it does not request a new random number from an external source for each request, but instead can be reseeded.
  • a Casino offering the player to place a bet in a higer card wins game: both players draw a card and the higher wins. In case of a draw, the Casino wins (this is the Casino edge).

The Casino can be called via a Webapp created using React JS. It integrates with MetaMask as Ethereum Wallet and uses ethers.js.

tokencasino's People

Contributors

brakid avatar

Stargazers

LUÍS CARLOS DE SOUZA  MENEZES avatar

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.