All projects

Merchantier

Merchantier is an AI-Powered Prediction Market built and tested using Tenderly, sepolia and Chainlink CRE capabilities.

CRE & AI Prediction Markets Tenderly

What it is

An innovative prediction market platform built with Chainlink CRE (Confidential Reporting Engine) that leverages AI to enable decentralized market settlement. This project combines smart contracts, event-driven workflows, and AI-powered oracles to create autonomous prediction markets.

How it Works

This prediction market platform is built to allow users to:

  • Create prediction markets for any binary question (Yes/No)
  • Make predictions by staking ETH on their beliefs
  • Earn rewards if their prediction is correct
  • Automate settlement using AI and Chainlink CRE for trustless market resolution
    The platform uses Chainlink's CRE infrastructure to trigger AI analysis when markets request settlement, ensuring objective and decentralized decision-making without relying on centralized authorities.
    🏗️ Architecture

Smart Contracts (/contracts/src)

PredictionMarket.sol

  • Core contract managing market lifecycle
  • Handles market creation, predictions, and settlement
  • Stores market data and user predictions
  • Implements secure fund management and payout distribution
    Key Features:
  • Binary prediction markets (Yes/No outcomes)
  • Pool-based reward distribution
  • Confidence-weighted settlement
  • Secure fund transfers with validation
    Workflow Engine (/my-workflow)

The workflow automates market settlement through two main triggers:
HTTP Trigger (Market Creation)

  • Receives market creation requests

  • Triggers AI analysis via Google's Gemini LLM

  • Processes settlement recommendations
    Log Trigger (Event-Driven Settlement)

  • Monitors SettlementRequested events on-chain

  • Automatically triggers AI analysis when markets request settlement

  • Ensures timely and reliable market resolution
    API Integration

  • Google Gemini LLM: Analyzes market questions and generates settlement recommendations

  • Chainlink CRE SDK: Manages decentralized workflow execution

  • EVM Compatible: Works with Ethereum Sepolia testnet

Links

Created by

  • Kaks Via