All Projects → chrisdotn → Footballbet

chrisdotn / Footballbet

Licence: gpl-3.0
A simple bet based on a Ethereum Smart Contract

Programming Languages

javascript
184084 projects - #8 most used programming language
solidity
1140 projects

Projects that are alternatives of or similar to Footballbet

bitdegree-token-crowdsale
Token Website
Stars: ✭ 26 (-10.34%)
Mutual labels:  ethereum-contract
Augur
Augur - Prediction Market Protocol and Client
Stars: ✭ 294 (+913.79%)
Mutual labels:  ethereum-contract
React Ethereum Dapp Example
A starter boilerplate for an Ethereum dapp using web3.js v1.0, truffle, react, and parity
Stars: ✭ 384 (+1224.14%)
Mutual labels:  ethereum-contract
CryptoKitties
A simple implementation of CryptoKitties on Ethereum using ERC721 token.
Stars: ✭ 32 (+10.34%)
Mutual labels:  ethereum-contract
solidity-example-crowdfunding
An example for an Ethereum Smart Contract with Solidity
Stars: ✭ 33 (+13.79%)
Mutual labels:  ethereum-contract
Nmr
The Numeraire Ethereum Smart Contract
Stars: ✭ 316 (+989.66%)
Mutual labels:  ethereum-contract
defiprime
All things #DeFi - trustless and transparent financial products built on top of the blockchain.
Stars: ✭ 117 (+303.45%)
Mutual labels:  ethereum-contract
Solidity Smart Contracts
smart contracts which are built on ethereum wallet mist,truffle compiler using solidity language.
Stars: ✭ 11 (-62.07%)
Mutual labels:  ethereum-contract
Yearn Protocol
Yearn smart contracts
Stars: ✭ 277 (+855.17%)
Mutual labels:  ethereum-contract
Ethereum voting dapp
Simple Ethereum Voting dapp using Truffle framework
Stars: ✭ 355 (+1124.14%)
Mutual labels:  ethereum-contract
dala-smart-contracts
Smart contracts for the Dala token sale and ERC20 token
Stars: ✭ 19 (-34.48%)
Mutual labels:  ethereum-contract
sol-trace
Trace runtime failures for solidity
Stars: ✭ 26 (-10.34%)
Mutual labels:  ethereum-contract
Ethlist
The Comprehensive Ethereum Reading List
Stars: ✭ 3,576 (+12231.03%)
Mutual labels:  ethereum-contract
nft-market
NFT Marketplace prototype using Typescript, WalletConnect, Metamask, Web3, Solidity, React and Storybook
Stars: ✭ 385 (+1227.59%)
Mutual labels:  ethereum-contract
Augur Core
Augur back-end (Ethereum contracts)
Stars: ✭ 575 (+1882.76%)
Mutual labels:  ethereum-contract
HealthCare-Insurance-Ethereum
Medical insurance claiming DApp which uses a Multi-Sig type approach to grant claim (ConsenSys project)
Stars: ✭ 65 (+124.14%)
Mutual labels:  ethereum-contract
Bamboo
Bamboo see https://github.com/cornellblockchain/bamboo
Stars: ✭ 300 (+934.48%)
Mutual labels:  ethereum-contract
Textmessage.eth
Send SMS Text Messages within the Ethereum Blockchain - TextMessage.ETH
Stars: ✭ 11 (-62.07%)
Mutual labels:  ethereum-contract
Stromdao Businessobject
Abstract BusinessObject for StromDAO Energy Blockchain. Abstraction layer between blockchain technology and business logic providing energy market related entities and use cases.
Stars: ✭ 10 (-65.52%)
Mutual labels:  ethereum-contract
Colonynetwork
Colony Network smart contracts
Stars: ✭ 351 (+1110.34%)
Mutual labels:  ethereum-contract

footballBet

A simple bet based on a Ethereum Smart Contract

This smart contract is used as example for an introduction to use oracles in Ethereum.

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]});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].