InterPredict Documentation

Developer & User Guide — Regenerated from Smart Contract Implementation

Quick Start Guide

1. Connect Your Web3 Wallet

Connect your browser wallet to the Interlink Testnet (Chain ID: 19042026). The dApp will automatically prompt you to switch networks.

2. Browse or Create Markets

Browse existing prediction markets or create your own. Community markets cost 11 tITL (1 fee + 10 seed). Team markets cost 10 tITL.

3. Trade on Outcomes

Buy shares in your chosen outcomes. Prices adjust dynamically based on the pari-mutuel pool ratio. Minimum trade: 0.01 tITL.

4. Claim Winnings

After market finalization, winning positions can be claimed. Creators can claim fees and seed liquidity. DEC members can claim rewards.

Documentation Sections

Getting Started

  • • Connect wallet to Interlink Testnet (Chain ID: 19042026)
  • • Get tITL from the Interlink faucet
  • • Browse markets on the dApp Portal
  • • Configure environment variables for development

Market Creation

  • • Community: 11 tITL, requires DEC approval
  • • Team: 10 tITL, bypasses curation
  • • 2-4 outcomes, 18 categories
  • • Market thumbnails pending a backend upload endpoint

Trading

  • • Pari-mutuel pricing model
  • • 0.5% trading fee
  • • 5% settlement fee on winnings
  • • Minimum trade: 0.01 tITL

Resolution

  • • DEC resolution voting (3h window)
  • • Admin verification layer
  • • 1h dispute window after admin confirms — raising one costs a 10 tITL fee (admin-adjustable), refunded if upheld, forfeited otherwise
  • • Disputed outcomes go to the Resolution Board (3h) or timeout back to admin's call
  • • Claim winnings, creator fees, seed
  • • DEC rewards based on reputation

API & Contract Reference

API Endpoints

  • • GET /markets — Market list and detail
  • • GET /markets/:id/history — State timeline
  • • GET /markets/:id/votes — DEC proposal votes
  • • GET /trades — Trade history
  • • GET /dec/members — Committee directory
  • • GET /claims — Payout history

Contract Functions

  • • proposeMarket() — Propose community market
  • • createTeamMarket() — Create team market
  • • buyOutcome() / exitPosition() — Trade
  • • voteOnProposal() / voteOnResolution() — DEC voting
  • • claimWinnings() / claimCreatorFees() — Claims
  • • DECRegistry.claimDecRewards() — DEC rewards