Skip to content

PROOF OF TOSS is a decentralized betting ecosystem that is aimed to modernize and change the betting industry. Our platform allows anyone to create wagers, bet and judge – all for the purpose of winning TOSS tokens. What sets PROOF OF TOSS apart from the rest, is that we also cater to existing Bookmakers and other “players” of the betting industry.

Notifications You must be signed in to change notification settings

TimsonX/proof-of-toss

 
 

Repository files navigation

Technologies

How to install

This project use solc (Solidity compiler) and truffle framework.

To install them execute:

$ npm install -g solc truffle

Project also required connection to rsk blockchain. For development it is possible to use testrpc:

$ npm install -g ganache-cli
  1. After that go to the project root directory and install dependencies:

    $ npm install
    
  2. Copy truffle.js.example to truffle.js

  3. Copy src/data/config.json.dist to src/data/config.json

  4. Compile and deploy contracts:

    $ truffle compile
    $ truffle --network test migrate
    
  5. Launch server:

    $ npm run start
    

After that open localhost:3000 in a browser

Metamask

It is necessary to use metamask browser extension to work with a wallet. It is possible to use original metamask, but there are few problems with it:

  • Invalid currency name. Should be SBTC
  • Invalid exchange rate

This problems solved in our fork of the original metamask.

Elastic search

We are using elastic search to store some information in it. It is necessary to install babel cli before. Then execute this command to launch this script:

$ ./node_modules/babel-cli/bin/babel-node.js scripts/app.js

This script will handle blockchain events and save them in elastic search

How to execute tests in testrpc blockchain

Solidity contracts tests

$ truffle --network test test

Frontend tests

$ npm run test

How to build frontend

To create html and js files execute:

$ npm run build

After that files will be in the ./build_webpack folder.

About

PROOF OF TOSS is a decentralized betting ecosystem that is aimed to modernize and change the betting industry. Our platform allows anyone to create wagers, bet and judge – all for the purpose of winning TOSS tokens. What sets PROOF OF TOSS apart from the rest, is that we also cater to existing Bookmakers and other “players” of the betting industry.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.5%
  • Other 0.5%