Skip to content

ayyalu/ResolveX_Convergence

Repository files navigation

ResolveX Banner

ResolveX

AI-Powered Optimistic Dispute Resolution Oracle for Prediction Markets
Powered by Chainlink CRE

WebsiteResolveX IntroductionDemo VideoProcess FlowHow It WorksSmart Contracts


The Problem

Traditional optimistic oracles are fundamentally broken for the scale prediction markets need today:

Problem Impact
Manual Resolution Someone must manually propose every result — not scalable
Slow Settlement 24h verification + 24-48h dispute window = 72+ hours to claim winnings
High Cost Manual processes and on-chain compute drive up resolution fees
Single-Chain Deployed on 1-2 chains only; no multi-chain or Web2 integration
Poor UX Dispute voting requires complex on-chain encryption/decryption

With 4M+ prediction markets created annually and $288B+ in projected 2026 volume, manual resolution simply cannot keep up.


The Solution

ResolveX solves traditional oracle problems by combining off-chain AI compute and cross-chain actions powered by Chainlink CRE (Compute Runtime Environment).

┌─────────────────────────────────────────────────────────┐
│                    ResolveX Flow                        │
│                                                         │
│   Market Matures                                        │
│        │                                                │
│        ▼                                                │
│   AI Resolution (via CRE Workflow)                      │
│        │                                                │
│        ├── Confidence ≥ 90% ──▶ ⚡ INSTANT SETTLEMENT   │
│        │                        (under 60 seconds)      │
│        │                                                │
│        └── Confidence < 90% ──▶ 🔄 Dispute Workflow     │
│                                  (max 48 hours)         │
└─────────────────────────────────────────────────────────┘

80% of markets are resolved instantly. The remaining 20% settle within 48 hours max.

Key Differentiators

  • AI-First Resolution — Gemini AI + Google Grounding Search resolves markets with a confidence score
  • Powered by Chainlink CRE — Off-chain compute for AI inference, on-chain verification for trust
  • Multi-Chain from Day 1 — Cross-chain resolution via Chainlink CCIP

Process Flow

ResolveX Process Flow

Smart Contracts (Base Sepolia)

Contract Description
ResolveX Oracle Core contract — receives resolution requests, emits events for CRE, stores AI reports
ResolveX Token Protocol token used for staking and fee payments
Case Manager Manages the lifecycle of each resolution case
Disputer Registry Handles registration and staking for disputers
Juror Registry Manages jury panel registration and staking
Voting Engine Handles encrypted voting during dispute resolution
CRE Consumer Interface between Chainlink CRE workflows and on-chain contracts

CRE Workflows

Two Chainlink CRE workflows power the off-chain compute:

  1. AI Resolution Workflow — Triggers when ResolutionRequested event is emitted. Reads market data from Base Sepolia, resolves using Gemini AI with Google Grounding Search, and posts the confidence score + report back on-chain.

  2. Vote Decryption Workflow — Handles off-chain decryption of jury votes during the dispute process, eliminating expensive on-chain encryption/decryption.


How It Works

Happy Path (80% of cases) — AI Resolution

Prediction Market                ResolveX Contract              Chainlink CRE              Gemini AI
      │                                │                              │                        │
      │  1. Request Resolution         │                              │                        │
      │  (market question, outcomes)   │                              │                        │
      ├───────────────────────────────▶│                              │                        │
      │                                │  2. Emit ResolutionRequested │                        │
      │                                ├─────────────────────────────▶│                        │
      │                                │                              │  3. Resolve with AI    │
      │                                │                              ├───────────────────────▶│
      │                                │                              │                        │
      │                                │                              │  4. Confidence Score   │
      │                                │                              │◀────────────────────────┤
      │                                │  5. Post Report (score ≥90%) │                        │
      │                                │◀─────────────────────────────┤                        │
      │  6. Market Settled ⚡           │                              │                        │
      │◀───────────────────────────────┤                              │                        │
      │                                │                              │                        │
      │  ⏱️ Total Time: < 60 seconds   │                              │                        │

Dispute Path (20% of cases)

When AI confidence score is < 90%, the case enters the dispute workflow:

  1. Disputer stakes tokens and files a dispute
  2. Jury Panel (registered & staked jurors) cast encrypted votes
  3. CRE Vote Decryption Workflow decrypts votes off-chain
  4. Majority decision settles the market
  5. Total time: max 48 hours

Videos

📺 ResolveX Introduction 📺 Working Demo

Actors

Actor Role
Client Prediction market creator who places resolution requests
Disputer Disputes AI resolution when confidence < 90%
Jurors Registered & staked jury panel who vote on disputes

Demo Steps

1. Place Resolution Request

  • As a prediction market creator, call the ResolveX smart contract with market question, condition, and outcomes
  • Execute via Hardhat script → transaction confirmed on Base Sepolia
  • ResolutionRequested event emitted for CRE to monitor

2. Trigger CRE Workflow

  • Input transaction hash and event index
  • CRE reads market data from Base Sepolia testnet
  • Gemini AI + Google Grounding Search resolves the market

3. Instant Settlement

  • AI resolved with 100% confidence score
  • CRE wrote report back to ResolveX smart contract
  • Market settled instantly — under 60 seconds

Tech Stack

Layer Technology
Blockchain Base Sepolia (Testnet)
Smart Contracts Solidity, Hardhat
Oracle Infrastructure Chainlink CRE (Compute Runtime Environment)
AI Model Gemini AI with Google Grounding Search

Getting Started

Prerequisites

  • Node.js >= 18
  • Hardhat
  • Chainlink CRE access

Installation

# Clone the repository
git clone https://github.com/YOUR_USERNAME/ResolveX_Convergence.git
cd ResolveX_Convergence

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env
# Fill in your private key, RPC URL, and API keys

Configuration

Create a .env file with the following:

PRIVATE_KEY=your_wallet_private_key
BASE_SEPOLIA_RPC_URL=your_base_sepolia_rpc
GEMINI_API_KEY=your_gemini_api_key
CHAINLINK_CRE_CONFIG=your_cre_config

Chainlink Integration

ResolveX is deeply integrated with the Chainlink ecosystem:

Chainlink Product Usage in ResolveX
CRE (Compute Runtime Environment) Off-chain AI inference + vote decryption workflows
Price Feeds Reliable price data for financial market resolution
Automation Trigger-based resolution cycles

This integration creates significant value for the Chainlink ecosystem through substantial CRE utilization, deep Price Feed integration, and CCIP adoption — potentially scaling to millions of workflow calls.


Links

Resource URL
Website resolvex.xyz
ResolveX Introduction YouTube
Working Demo YouTube

License

This project is licensed under the MIT License — see the LICENSE file for details.


Resolve Markets in Minutes. Not Days.
Built for the high-speed resolution future.

About

AI powered dispute resolution oracle for prediction markets, powered by Chainlink CRE.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors