Onchain trading
Market creation, staking, resolution, dispute, stale-dispute cancel, and claim are contract interactions.
AuraPredict Docs
Arc Testnet prediction market documentation
AuraPredict is a YES/NO prediction market dapp on Arc Testnet. It combines stablecoin staking, AI-assisted evidence review, dispute protection, protocol fees, a public AuraPredict indexer, wallet profiles, searchable bet history, and Aura Points. Its current contract adds onchain source/rule terms, enforced resolution timing, configurable settlement assets, signed-Aura hooks, and Circle Agent Wallet-backed authority/oracle proposal support.
AuraPredict is a testnet prediction market venue for binary questions. Traders stake stablecoins on YES or NO, results follow an evidence and review flow, and winners claim payout from the contract. The product is designed to make public forecasting measurable: every wallet can build history, PNL, win rate, Aura Points, and creator reputation.
Market creation, staking, resolution, dispute, stale-dispute cancel, and claim are contract interactions.
The indexer reads Arc events and exposes market stats, per-token USDC/EURC volume, activity, wallet-searchable history, and leaderboard data.
Profiles, comments, evidence links, follows, share links, and reputation make forecasting public.
AI drafts markets, checks duplicate risk, helps define source-based rules, and shows resolution suggestions.
Every new market stores its primary source, fallback source, and resolution rule onchain.
A visible suggested outcome, confidence, receipt, and settlement report assist resolution. The contract can anchor evidence and receipt hashes in the signed proposal, and can later accept signed Aura attestations.
The indexer can submit eligible high-confidence Oracle proposals through a configured Circle Agent Wallet when the market's resolution mode allows that signer.
Operational controls can pause new market exposure, allowlist creators, or block new positions while preserving settlement and claims for existing markets.
The protocol owner wallet can open a private management view for project metrics, user activity, token volume, fee balances, and fee withdrawal.
Creator sets trading close time, resolution time, settlement asset, primary source, fallback source, resolution rule, and a resolution mode; bond and any configured creation fee are locked in that asset.
Users stake the market's configured stablecoin on YES or NO before trading closes. The app checks selected-token balance and allowance before sending the transaction.
The contract rejects proposals before its onchain resolution time. Depending on mode, creator, owner, configured authority, Circle Agent Wallet signer, signed Aura attestation, or an approved adapter can guide YES, NO, or Cancel.
Only users with a position in that market can dispute during the dispute window with a dispute bond.
If a dispute is not finalized after the grace period, anyone can cancel it and refund users.
After finalization, winners claim payout or both sides refund if canceled. Bonds and refunds use pull withdrawals to avoid blocking settlement.
VITE_AURAPREDICT_V5_ADDRESS and VITE_AURAPREDICT_V5_DEPLOYMENT_BLOCK.
0x3600000000000000000000000000000000000000 for allowance-based settlement and keeps amounts at 6 decimals.
USDC <-> EURC quote on Arc Testnet. Aura tries Circle App Kit first when VITE_CIRCLE_APP_KIT_KEY is configured, then falls back to LI.FI if no App Kit route is available. The UI shows estimated and minimum receive amounts, supports user-selected price tolerance, and expires old quotes to reduce failed swaps when testnet liquidity moves. The trader signs that swap in their wallet before staking; the market still settles, refunds, and pays winners only in its configured token.
Market browsing: market cards are compact click-through summaries with category, status, question, YES/NO percentages, pool sizes, market id, and volume. Betting and settlement actions live inside the market detail page.
AuraPredict keeps Aura Agent's calculation off-chain. After the event timestamp in the rule, Resolution actions can show a suggested YES or NO outcome, confidence, supporting detail, a receipt, and a settlement report. The report compares Aura's suggestion, an optional Oracle proposal, the creator or resolver proposal, dispute/review status, pool balances, volume, and timing windows before final action. The market's source and rule are already onchain, and the wallet-signed proposal can commit the evidence hash and AI receipt hash while the detailed report remains in the indexer.
At creation, the market records a source link, an exact UTC event timestamp, and a clear YES/NO rule.
Trading may close first, but the app does not expose result proposal actions until the rule's actual timestamp has passed.
The resolver sees or requests Aura's outcome suggestion and confidence, then can open the detailed rationale and receipt.
The resolver, configured authority, or Circle Agent Wallet signer can use the suggested outcome or choose another permitted outcome; only a signed proposal changes contract state and stores evidence and receipt commitments.
A mismatch with Aura can be held for authority review. A user dispute also routes the result for review before final settlement.
Resolution actions show Aura's suggested YES or NO outcome and confidence above the proposal buttons. The settlement report stays in the same area so reviewers can see AI choice, creator proposal, dispute status, and deadline context before signing.
Opening a market can display a previously saved receipt without spending a new AI request. Only asking or refreshing Aura requests a new evaluation.
AuraPredict now has a source-based Oracle proposal layer in the indexer. It is separate from Aura Agent: it is designed for objective markets that can be checked by fetching data from a known source, not for open-ended news interpretation. The Oracle result appears in the market's settlement report beside Aura's suggestion, the creator/resolver proposal, dispute state, pools, volume, and timing windows.
Checks BTC, ETH, SOL, BNB, XRP, ADA, DOGE, AVAX, and LINK markets against Binance 1-minute klines, with a near-time CoinGecko fallback when exact-minute data is unavailable.
Checks gold and US Dollar Index markets against Yahoo chart data near the market's onchain resolution timestamp.
Reads official BLS releases for CPI/PPI markets, FRED data for Fed target-rate markets, and EIA weekly data for crude inventory markets.
Checks equity closing-price markets against Yahoo chart data at the resolution timestamp, with weekend and holiday calendar guards.
Uses deterministic schedule and final-score data such as the MLB schedule API and league scoreboards instead of inferring results from memory.
Checks API health endpoints, JSON ok: true responses, HTTP 200 status, and supported public status pages.
If YES pool or NO pool is empty, Oracle suggests Cancel/Refund instead of allowing a one-sided YES/NO resolution.
Oracle proposals are deterministic source checks and do not consume Gemini/OpenAI requests. Aura Agent is still used for reasoning-heavy market review.
Listing, legal tender, complex sports, ambiguous news, or unsupported sources return needs-review/unsupported instead of a false automated answer.
The contract and UI wait until the onchain resolution timestamp before result actions are available.
The Oracle route attempts a matching adapter based on the market question, source URL, and resolution rule.
The reviewer sees Oracle suggestion, confidence, observed value, source links, and checks alongside Aura and dispute context.
A permitted resolver can sign manually, or the indexer can auto-submit the first proposal through Circle Agent Wallet when automation is enabled and confidence is high enough.
Auto-propose does not auto-finalize funded markets. Dispute, owner review, finalization, cancel, and claim still run through the contract.
AuraPredict is not only a YES/NO trading UI. The current stack exposes reusable market data, AI insight, public oracle receipts, embeddable market cards, and Unified Balance funding flows so other Arc apps can route users into prediction-market activity without rebuilding the whole settlement layer.
Builders can read live markets, activity, AI insight, hot-market summaries, public receipts, and oracle reputation from the indexer.
A compact market HTML endpoint can be embedded in partner pages, docs, and demos while users still open AuraPredict for wallet-signed actions.
Each AI/Oracle check can expose outcome, confidence, evidence links, receipt hash, data hash, tx hash, and dispute state.
The app helps users bring testnet USDC toward Arc before staking; market contracts still hold funds and enforce final settlement.
The frontend can read directly from Arc RPC, but production UX is smoother with the AuraPredict indexer. The indexer reads contract events, stores JSON snapshots, and serves fast read endpoints for stats, market rows, activity, leaderboard views, social data, AI resolution receipts, and objective Oracle proposals.
https://api.auraon.xyznpm run indexer
npm run dev
Owner-only operations live behind the connected protocol owner wallet in the app. The Owner page shows market counts, player activity, trades, comments, evidence rows, USDC/EURC volume, protocol fee balances, contract controls, and fee withdrawal actions.
npm install
npm run compile
npm test
npm run build
VITE_AURAPREDICT_V5_ADDRESS=0xb3B74ee71a02a25eB668A6206ed3F74b3444611A
VITE_PREDICTION_MARKET_ADDRESS=0xb3B74ee71a02a25eB668A6206ed3F74b3444611A
VITE_ARC_EURC_TOKEN_ADDRESS=0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a
VITE_AURA_INDEXER_URL=https://api.auraon.xyz
VITE_AURAPREDICT_V5_DEPLOYMENT_BLOCK=47380000
VITE_WALLETCONNECT_PROJECT_ID=your_project_id
VITE_CIRCLE_APP_KIT_KEY=optional_app_kit_key
AI provider credentials and resolution policy are server-only deployment secrets. They are never placed in frontend environment variables or exposed to app users.
Self-hosted builders can review .env.example in the repository for local setup fields.
AURA_ORACLE_AUTO_PROPOSE=1
AURA_RESOLVER_SIGNER_MODE=circle-cli
AURA_CIRCLE_AGENT_WALLET_ADDRESS=0x...
AURA_CIRCLE_AGENT_CHAIN=ARC-TESTNET
AURA_ORACLE_AUTO_PROPOSE_MIN_CONFIDENCE=78
The agent wallet must be the market authority, owner, resolver, or approved adapter for the selected resolution mode.
PRIVATE_KEY=0x...
ARC_RPC_URL=https://rpc.testnet.arc.network
ARC_USDC_TOKEN_ADDRESS=0x3600000000000000000000000000000000000000
ARC_EURC_TOKEN_ADDRESS=0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a
npm run deploy:arc
AuraPredict uses one GitHub repo but should use separate Vercel projects when deploying
different roots. The app project deploys the repo root. The docs project deploys the
docs folder.
docs.Other...docs.auraon.xyz.Type: CNAME
Name: docs
Value: cname.vercel-dns.com
AuraPredict never receives private keys. Every transaction is confirmed in the user's wallet.
The current deployment is for Arc Testnet validation and should not be treated as audited mainnet infrastructure, a regulated exchange, a gambling platform, an investment product, or financial advice.
Aura Agent and AI receipts assist research and outcome calculation. They are not a trustless oracle.
Creator or authority-led resolution requires clear criteria, evidence, and dispute review to avoid ambiguous settlement.
AI run tokens, Gemini keys, and optional resolver private keys must stay in private deployment secrets.
Policy gates are operational safeguards for new activity, not a complete regulatory compliance system.