Code Monkey home page Code Monkey logo

betting's Introduction

Betting

A simple bet based on a Ethereum Smart Contract

Testing

Manual testing is available via these methods:

var bet = FootballBet.deployed();
var events = bet.allEvents(function(error, log){ if (!error) console.log(log.args); });
var accounts = ['0xb6460d8c1dac5e8e36f61e77ce92d8be6fa9a204', '0x089a6e9e19cc9e2109ef7d743336497acc078a8e', '0x6db9bbeab27b0645586b94c4cc850caaae0260d8', '0x78185129690ae1d7c1372d3d22e7935cfdd978cf', '0x08b94302f1e8de26b9b57fbd56f780c14d6e52a6', '0xe9b2c7b5335f41a9b60f0b9d0f2046204329c597', '0x165c2f89a3fc0912fca58938ed28ca76ba4f2132', '0xb92bd8719a53d45dc95e4c7d091a398e9e522a69', '0xc8af04d396b695ce61f85325f754c3bfe8aca006', '0xc5df1da6c8211978203a6a480a53580c49648e7c'];

bet.createGame.sendTransaction('152250', {'from':accounts[2], value:5000000000000000000});
bet.placeBet.sendTransaction('0', {'from':accounts[2], value:1000000000000000000});
bet.placeBet.sendTransaction('1', {'from':accounts[3], value:1000000000000000000});
bet.placeBet.sendTransaction('0', {'from':accounts[4], value:1000000000000000000});
bet.evaluate.sendTransaction({'from':accounts[2]});
bet.setWinners.sendTransaction({'from':accounts[2]});
bet.withdraw.sendTransaction({'from':accounts[3]});

betting's People

Contributors

alexceltare2 avatar

Watchers

 avatar  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.