{"repo":"geektechniquestudios/ChessWager","free":true,"listed":false,"github":"https://github.com/geektechniquestudios/ChessWager","clone":"git clone https://github.com/geektechniquestudios/ChessWager.git","description":"Bet on live professional chess games","language":"TypeScript","stars":11,"topics":["avalanche","betting","blockchain"],"license":"AGPL-3.0","category":"blockchain-web3","readme_excerpt":"ChessWager is a highly performant hybrid dApp that uses smart contracts to securely facilitate betting on the top professional games being played on LichessTV --- ChessWager is live. A mainnet currency is not supported yet, but you can play on the Avalanche testnet. Download Metamask, switch to the Avalanche Testnet, and add some test currency to play at https://chesswager.io/. Watch A Demo Data Flow The client relies on a Firestore serverless infrastructure. When a page loads, the client subscribes to the LichessTV API and loads real-time data about chats, bets, and users from the Firestore database. For performance reasons, the browser never loads data directly from the contract. A few distinct programs run in an isolated cloud environment to interact with the smart contract. One of those programs listens for user payments on the smart contract. Once two users agree to a wager, their Metamask wallets will prompt each user with the appropriate amount. When a user sends a transaction to the contract, the contract listener writes an update to the Firestore database. These changes are reflected immediately in the UI, visually informing users that their payment was received. When a bet is matched, the conditions of the bet are compared in the smart contract. If the values don't perfectly match, the transaction is rejected. Another isolated backend program subscribes to the LichessTV API. At the end of each game, that program interacts with the smart contract telling it to comple","default_branch":null,"files":null,"tree":[],"storefront":"/r/geektechniquestudios","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/geektechniquestudios/ChessWager/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}