blueskymanner / Dice-Game-Solidity

dice gambling using solidity smart contract

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

Coinflip Betting dApp

Project Coinflip utilizes Ethereum smart contracts and a front-end built in React which culminates into a betting dApp. Part of the complexity herein lies in the random number problem in blockchain. This dApp fetches a random number by sending a call to the Provable (formerly Oraclize) oracle and waiting for a callback which holds the "random number"--randomized by Provable--that can also be confirmed by the network.

Local

  1. git clone this repo to your local environment.
  2. cd project-coinflip-v-6 into your project directory.
  3. npm the required dependencies.
  4. Confgure the truffle-config.js file to Ganache or another Ethereum node.
  5. Initialize node.
  6. In the command line, run truffle migrate.
  7. Run npm run start to get the front end running.
  8. Fetch the coinflip contract address from the build abi and replace the existing address inside of ../src/components/Main
  9. Make bets and flip some coins!

About

dice gambling using solidity smart contract


Languages

Language:Solidity 61.9%Language:JavaScript 36.2%Language:HTML 1.6%Language:CSS 0.3%