Tedong Silaga
AI-powered prediction market for Torajan buffalo fighting, settled via Chainlink CRE + Facebook + Gemini AI.
What it is
Live APP: https://tedong.xyz/
Tedong Silaga is a decentralized prediction market built on World Chain that brings transparency to Ma'pasilaga Tedong, a centuries-old buffalo fighting tradition from Tana Toraja, Indonesia. During Rambu Solo' funeral festivals, thousands of spectators gather to watch prized water buffaloes clash in open arenas, sparking intense informal betting that can reach hundreds of millions of Indonesian Rupiah per event.
These are high-volume, high-energy events with deeply passionate communities. But until now, participation has been limited to those physically present at the ceremony. Only the local Torajan community knows about these events. The rest of the world has never had access.
By bringing this on-chain, we unlock a completely new prediction market category for the global crypto community. People worldwide can discover and participate in these thrilling, culturally rich events without traveling to the remote highlands of Sulawesi. In return, increased global engagement drives visibility and sustainable funding back to the Torajan community.
Everyone wins: the global audience gets a unique, exciting market unlike anything on existing prediction platforms; the local community gets cultural preservation funding through a built-in 1% cultural fund fee.
Our platform replaces the opaque, trust-based system with fully on-chain, verifiable settlement wrapped in a beautifully designed, immersive cinematic web interface. Users stake tokens on their chosen buffalo through smart contracts. When the match starts, the admin locks the market, emitting a MarketLocked event on World Chain. This triggers a Chainlink CRE Workflow that:
- Reads buffalo names and event data from the smart contract (EVM Read).
- Scrapes real Facebook community posts about the match result using Apify API.
- Analyzes the scraped text with Google Gemini AI to determine the winner.
- Settles the market on-chain through the CRE Forwarder using the ERC-165 onReport() pattern.
Winners claim their proportional share of the 98% pool. 1% goes to platform operations and 1% is automatically routed to a Torajan cultural preservation fund. No intermediary can manipulate results or run away with funds.
How it Works
Smart Contracts (Solidity + Foundry):
- MarketFactory.sol deploys per-match TedongMarket contracts
- TedongMarket.sol inherits ReceiverTemplate (ERC-165) to accept signed reports from the Chainlink CRE Forwarder via onReport()
- Built with OpenZeppelin (SafeERC20, IERC165), tested with 18 passing tests across 4 test suites
- Deployed and verified on World Chain Sepolia
CRE Workflow (TypeScript + CRE SDK v1.1.3):
- Trigger: EVM Log Trigger listens for MarketLocked(address, string) events.
- EVM Read: Reads buffaloIdA, buffaloIdB, and eventName from the contract.
- Facebook Scraping: Calls Apify Facebook Page Posts actor (sync API) to retrieve real community posts from a dedicated Facebook Page.
- AI Analysis: Sends scraped post text to Google Gemini (gemini-3-flash-preview) with a structured prompt that returns 1 (Buffalo A wins), 2 (Buffalo B wins), or 3 (Draw).
- EVM Write: Uses runtime.report() + evmClient.writeReport() to settle on-chain through the CRE Forwarder. The report is prefixed with 0x01 for contract-side routing via _processReport().
Data Source:
- A dedicated Facebook Page ("Tedong Silaga Result") where community members post match outcomes
- Apify scrapes the page posts; Gemini AI reads and judges the unstructured text
Links
Created by
- Yeheskiel Yunus Tame
- Secondio Prawiro