A decentralized, AI-powered prediction market protocol for crypto price discovery, built on Hedera
- ๐ What Is Torch?
- ๐ Value Proposition
- ๐ Hackathon Scope
- ๐งฑ Monorepo Structure
- ๐ Projects Overview
- ๐ป Tech Stack
- ๐ How It Works: TorchPredictionMarket Step-by-Step
- ๐ ๏ธ Installation
- ๐ค Team
- ๐ Resources
Torch is a decentralized prediction system for high-resolution, real-time crypto price forecasting.
Unlike conventional markets focused on binary outcomes (like Polymarket), Torch allows users to predict price ranges across future timepoints, creating a dynamic priceโtime probability surface.
Torch blends AI agents and human traders in an InfoFi-aligned ecosystem, rewarding early, sharp, and high-conviction predictions.
| Problem | Torchโs Solution |
|---|---|
| โ Crypto traders lack continuous, high-resolution price forecasts | โ Torch builds a real-time priceโtime signal |
| โ Existing markets (e.g. Polymarket) are binary or categorical | โ Torch enables continuous predictions on a full probability surface |
| โ Fragmented market signals and incentives | โ Torch aligns humans and AI agents via economic incentives |
Weโre building a working Torch prototype as part of a hackathon.
- โ Core smart contracts for prediction lifecycle and payout logic
- โ Graph subgraph indexing for event querying
- โ Wallet authenticated frontend
- โ Realistic price resolution and reward distribution
โ ๏ธ Work in progress
torchpredictionmarket/
โโโ frontend/ # React Frontend
โโโ smartContracts/ # Hedera-compatible Solidity contracts
โโโ torch-subgraph/ # Subgraph indexing smart contract events
โโโ LICENSE
โโโ README.md
| Project | Description |
|---|---|
frontend/ |
React frontend with wallet connect, core integration of Smart Contract & Subgraph, prediction UI |
smartContracts/ |
Core Solidity smart contracts for placing, resolving, and claiming predictions |
torch-subgraph/ |
Graph protocol subgraph for indexing BetPlaced, BetFinalized, and BetClaimed events |
- Hardhat - EVM development environment and testing framework
- Javascript - Scripts to test smart contracts.
- Solidity - Smart contract programming language (version ^0.8.0)
- Foundry - Alternative EVM development toolkit (Rust-based)
- Forge - Foundry's testing and deployment tool
- Cast - Foundry's command-line tool for interacting with smart contracts
- Hedera Hashgraph - The target blockchain network
- Hedera JSON-RPC Relay - For interacting with Hedera network
- Hedera Local Node - For local development and testing
- HashScan for Transaction Monitoring - Track your smart contract deployments and interactions
- HashScan for Transaction History - Users can view their betting history and results
- React.js & Next.js - frontend frameworks for building user interfaces and server-side rendering
- TypeScript - for typed JavaScript development, improving code quality and maintainability
- GraphQL Apollo Client - to fetch queries and manage data state in the frontend
- CoinGecko API - to retrieve real-time cryptocurrency market data and price feeds
- Clerk - authentication and user management for admin access
- GraphQL/Protocol** - for indexing smart contract data & building Subgraphs.
- Graph Node** - running on a VPS, to index Hedera network smart contract events.
- PostgreSQL - database for graph-nodeโs indexing data.
- IPFS - decentralized storage used by the graph for metadata and manifests.
- Typescript & AssemblyScript
- Node.js
- Docker / Docker Compose
- Github
- Hetzner VPS
- Vercel
- Vercel {frontend} -Hetzner VPS {Subgraph Local Node}
| User | Predicted Range | USD Range | Bet | Sharpness | Expected |
|---|---|---|---|---|---|
| Alice | 2900โ3100 BPS | $0.29โ0.31 | 10 HBAR | Tight | โ Win |
| Bob | 2700โ3300 BPS | $0.27โ0.33 | 10 HBAR | Wide | โ Win |
| Charlie | 3500โ4000 BPS | $0.35โ0.40 | 10 HBAR | Off-target | โ Lose |
| User | Width BPS | Sharpness Multiplier | Net Stake | Weight |
|---|---|---|---|---|
| Alice | 200 | 0.5x | 9.95 HBAR | 4.975 |
| Bob | 600 | 0.3x | 9.95 HBAR | 2.985 |
| Charlie | 500 | 0.5x | 9.95 HBAR | 4.975 |
setPriceForTimestamp(targetTimestamp, 3000);processBatch(targetTimestamp);| User | Weight | Result | Winnings |
|---|---|---|---|
| Alice | 4.975 | โ Win | 18.66 HBAR |
| Bob | 2.985 | โ Win | 11.19 HBAR |
| Charlie | 4.975 | โ Lose | 0 HBAR |
git clone https://github.com/denchik37/TorchOriginsHackathon
cd TorchOriginsHackathoncd smartContracts && npm install
cd torch-subgraph && npm install
cd frontend && npm install| Name | Role | Contact / Profile |
|---|---|---|
| Denis Igin | PM, Marketing | GitHub |
| Balut Catalin-Mihai | Smart Contract Developer | Github |
| Sebastien Guibert | Blockchain Data Integration/Architect | Github |
| Sebastian Balaj | Frontend Developer | Github |
| Mohammad Hatif Osmani | Frontend Developer | Github |
| Resource | URL |
|---|---|
| ๐ Web | https://torch.bet |
| ๐ Litepaper | https://torch-1.gitbook.io/litepaper |
| โ๏ธ Blog | https://medium.com/torch-token-price-forecasting |
| ๐ฆ X (Twitter) | https://x.com/torchbet |