Now you can P2P bet on the results of football matches using smart contracts:
TKT4UESIKTTRALRRLWS4SENSTJX6ODCW is the address of the sports oracle who will post the result of the game. This oracle is also a witness.
After the result is known, chat with the sports oracle, its pairing code is Ar1O7dGgkkcABYNAbShlY2Pbx6LmUzoyRh6F14vM0vTZ@byteball.org/bb#0000.
Then the backer can unlock the contract if his prediction was correct. Otherwise, the layer can unlock the contract after the contract expires.
A small guide about composing the contract:
1. Oracle address is TKT4UESIKTTRALRRLWS4SENSTJX6ODCW
2. Data feed name is in the format HOMETEAM_AWAYTEAM_YYYY-MM-DD
3. Remove common abbreviations from the team names such as FC, AS, etc
4. Write team names in upper case
5. Remove spaces from multi-word team names. Manchester United becomes MANCHESTERUNITED
6. Date of the match is in YYYY-MM-DD format
7. Value of the feed is the name of the winner team formatted according to the same rules, or DRAW
You don't need to tell the bot the date of the match, it will find the most recent game between the two teams within the last 7 days. When talking with the bot, type the names of the teams as they are commonly known (without FC, AS, etc).
Source code:
https://github.com/byteball/sports-oracleYupiiiiii... that's amazing... Great new feature for byteball