Skip to content

edycutjong/clawsearch-darkdesk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

40 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ClawSearch DarkDesk Logo

ClawSearch DarkDesk πŸ›‘οΈ

AI-Brokered OTC Dark Pool for Confidential RWA Trading.

DoraHacks BUIDL Live Demo Pitch Video Built on iExec Nox ERC-7984 ChainGPT Arbitrum Sepolia


πŸ“Έ See it in Action

1. Landing & Features Overview

broll-landing-hero broll-feature-cards

2. Live OTC Dark Pool Trading Desk

broll-trade-desk

3. AI-Brokered OTC Negotiation

broll-ai-negotiation

4. Split-Screen Verification

broll-split-verifier

5. Confidential TEE Escrow Pipeline

broll-escrow-flow

πŸ’‘ The Problem & Solution

In today's world, when institutional players trade large blocks of tokenized Real World Assets (RWAs) β€” such as $5M of tokenized T-Bills β€” public blockchains broadcast every detail. MEV bots front-run, copy-traders pile on, and slippage costs 2–5% of trade value. In traditional finance, dark pools solve this. On-chain, there is no privacy layer for confidential OTC settlement. Result: The $15T RWA tokenization wave stays stuck because institutions can't trade without broadcasting their intent.

ClawSearch DarkDesk solves this by acting as an AI-brokered OTC dark pool built on iExec Confidential Tokens and the Nox Protocol.

Key Features:

  • πŸ€– AI Trade Negotiator: ChainGPT Web3 LLM-powered chat for natural-language OTC negotiation.
  • πŸ“ˆ Live RWA Price Oracle: Alpaca API for real-time T-Bill yields and stock prices β€” zero mocked data.
  • πŸ”’ Confidential Wrap/Unwrap: ERC-20 ↔ cToken conversion via iExec Nox Protocol (ERC-7984 TEE standard).
  • 🀝 Confidential Escrow: Atomic swap contract holding both parties' cTokens.
  • πŸ” Split-Screen Verifier: Side-by-side: Arbiscan (encrypted) vs. DarkDesk (real balances).

πŸ—οΈ Architecture & Tech Stack

We built the frontend using Next.js 16 and Tailwind CSS v4. The Web3 integration uses wagmi v2 and viem connected to Arbitrum Sepolia. We integrated the ChainGPT API to power the AI negotiator and the Alpaca Markets API for live off-chain oracle data. Our smart contracts are built with Solidity 0.8.28 using the iExec Nox Protocol ERC-7984 (TEE) implementation for Confidential Tokens:

Package Version Purpose
@iexec-nox/nox-confidential-contracts 0.1.0 ERC-7984 IERC7984 interface & ERC7984Base
@iexec-nox/nox-protocol-contracts 0.2.2 euint256 encrypted types & Nox SDK

ClawSearch DarkDesk Architecture

πŸ† Sponsor Tracks Targeted

  • [iExec]: We use the Nox Protocol ERC-7984 (TEE) implementation β€” not OZ/Zama FHE β€” for Confidential Tokens that hide OTC settlement amounts and balances. Imports IERC7984 and euint256 directly from @iexec-nox/* packages. See contracts/DarkDeskEscrow.sol.
  • [ChainGPT]: We used the ChainGPT Web3 LLM API to build the AI Negotiator that brokers the trade. The implementation can be found in src/lib/chaingpt.ts and src/app/api/chat/route.ts.

πŸš€ Run it Locally (For Judges)

  1. Clone the repo: git clone https://github.com/edycutjong/clawsearch-darkdesk.git
  2. Install dependencies: cd clawsearch-darkdesk && npm install
  3. Set up environment variables: Rename .env.example to .env.local and add your keys (see table below).
  4. Run the app: npm run dev

Note for Judges: Our front-end runs on http://localhost:3000. You will need to connect a wallet via RainbowKit. Please ensure you are connected to the Arbitrum Sepolia (Chain ID: 421614) testnet and have Testnet ETH to cover gas for the Escrow.

Environment Variables

Variable Source
CHAINGPT_API_KEY Contact @vladnazarxyz on Telegram
ALPACA_API_KEY / ALPACA_API_SECRET Alpaca Markets (free paper trading)
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID WalletConnect Cloud
NEXT_PUBLIC_ESCROW_CONTRACT_ADDRESS After deploying DarkDeskEscrow.sol to Sepolia

πŸ“ Project Structure

πŸ† clawsearch-darkdesk/
β”‚
β”œβ”€β”€ πŸ“‚ contracts/             # Solidity 0.8.28 β€” ERC-7984 Nox TEE Escrow
β”œβ”€β”€ πŸ“‚ docs/                  # Architecture diagrams and pitch assets
β”œβ”€β”€ πŸ“‚ public/                # Logos and app demonstration GIFs
β”œβ”€β”€ πŸ“‚ src/
β”‚   β”œβ”€β”€ πŸ“‚ app/               # Next.js 16 App Router (Pages & API Routes)
β”‚   β”œβ”€β”€ πŸ“‚ components/        # React 19 UI Components (Dark Pool features)
β”‚   └── πŸ“‚ lib/               # App Logic (ChainGPT & Alpaca Clients)
β”‚
β”œβ”€β”€ πŸ“„ .env.example           # Secure template for judges to configure API keys
β”œβ”€β”€ πŸ“„ feedback.md            # Required iExec developer feedback
β”œβ”€β”€ πŸ“„ README.md              # Project Pitch & Documentation
└── πŸ“„ package.json           

πŸ“„ License & Credits

MIT Β© 2026 Edy Cu

Built for iExec Vibe Coding Challenge | View BUIDL

By: @edycutjong | Tags: @iEx_ec @Chain_GPT

About

πŸ›‘οΈ AI-Brokered OTC Dark Pool for Confidential RWA Trading β€” ChainGPT + iExec Nox + Alpaca Markets | DoraHacks iExec Vibe Coding Challenge 2026

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors