项目作者: heiskama
项目描述 :
Ethereum smart contract for P2P betting
高级语言: Solidity
项目地址: git://github.com/heiskama/etherbet.git
BetList
Solidity smart contract for peer-to-peer betting. Current features:
- Players can view bets
- Players can post and accept each other’s bets
- The contract deployer acts as a referee who can resolve the bets
- The referee can terminate the contract. All remaining bets are cancelled and deposits returned.
Tests
To run the tests:
- Start Ganache on localhost:7545
- Run
truffle test --network ganache
Test frontend
A test frontend is available at http://etherbet.one
TODO
- Let the challenger cancel a bet if no one accepts it
- Referee can post bets willing to referee. Attached bets are resolved when the referee resolves the bet.
- Deploy contract to Rinkeby test net?
- …