Updated 103 days ago

Bringing UMA's Optimistic Oracle Solution to Secret Network

This project bridges UMA's Optimistic Oracle protocol to Secret Network via secure contract state and Axelar GMP

  • Crypto / Web3
  • CosmosHub
  • Secret Network
  • GameFi
  • App Chain
  • Axelar GMP
  • UMA Oracle

UMA's Optimistic Oracle on Secret Network

Overview

This project bridges UMA's Optimistic Oracle solution to Secret Network, enabling the secure and verifiable resolution of arbitrary questions and requests. UMAImageDiagram.png SP-OO-Axelar.png

Value Proposition

Integrating UMA's Oracle with Secret Network allows for the inclusion of complex data into the blockchain, which supports advanced applications like:

  • Privacy-preserving prediction markets
  • Regulated financial and medical protocols requiring real-time data and user confidentiality
  • Private lending and insurance protocols

How It Works

  1. Posting a Contest:

    • A contest consisting of an ID and event details (including the UMA request query) is posted to the Prediction Market smart contract on Secret Network.
  2. Querying Contests:

    • The SP-Relayer node continuously queries the PM contract for new contests that need resolution.
    • The query returns contest information and a signature verifying the data originated from the contract.
  3. Initializing the Market:

    • The SP-Relayer parses the query content to initialize a new Market (question/request) on the Sepolia SP-UMA-Request contract through a Sepolia network transaction.
  4. Asserting an Answer:

    • An answer is asserted as truthful and enters a dispute window, during which it can be challenged.
  5. Settling the Outcome:

    • If the answer is not challenged during the dispute window, the SP-Relayer node settles the outcome.
    • This action triggers the Axelar GMP route back to the SP-Answer Secret contract on Secret Network.
  6. Bet Resolution:

    • When a user claims their bet, the Prediction Market/Contest contract queries the Answer contract for the bet's resolution.

Decentralization and Automation

  • SP-Relayer Node: Exists solely for automation, ensuring smooth operations without requiring constant manual intervention.
  • Decentralized Fulfillment: Thanks to the public/private keys stored on Secret Network, any motivated entity can fulfill the steps usually handled by the SP-Relayer, ensuring the process remains decentralized and trustless.

Technical Implementation

  • Secret Network's Private Contract State: Utilizes public/private keys on-chain for verifiable sources of truth.
  • Axelar's General Message Passing Protocol: Ensures data integrity throughout the process.

Demonstration

Watch the video to see the process in action:

This integration can enhance the functionality of Secret Network by enabling complex, secure, and verifiable data processing.