1v1 Football Prediction Battle on Chiliz with encrypted predictions via FHE and Farcaster Composer Actions.
Clash of Balls is a decentralized 1v1 football prediction battle on Chiliz where users can make encrypted predictions using Fully Homomorphic Encryption (FHENIX). The app is built on Warpcast using Farcaster Composer Actions and Farcaster Frames. The project is built with Chainlink Functions Decentralized Oracle, Hyperlane, Fhenix, and Arbitrum. This project is developed for the ETHGlobal Online 2024 Hackathon.
Clash of Balls allows users to create and accept football prediction challenges using Chiliz (CHZ). The game is designed to be secure, transparent, and decentralized, offering users a unique way to engage with football fixtures and their favorite teams.
When creating a challenge, users can choose 5 + 1 predictions from the following 10 options:
Team A wins by 2 or more goals.
Points: 3
Team B scores in the first half.
Points: 2
Player X scores at least 1 goal.
Points: 2
The match ends in a draw.
Points: 3
Both teams score at least 1 goal.
Points: 1
Team A scores 3 or more goals.
Points: 4
Team B concedes fewer than 2 goals.
Points: 2
Player Y receives a yellow card.
Points: 2
The match ends with fewer than 3 total goals.
Points: 3
There are more than 10 corner kicks in the match.
Points: 4
These predictions allow users to engage with the game in a strategic way, choosing outcomes they believe are likely while balancing the potential points they can earn.