Gasless CLOB Prediction market powered by Yellow Network- instant trades, on-chain settlement.
OrderbookTrade-Yellow is a CLOB Matching engine based prediction market, Yellow Network's state channels and nirtrolite protocol(https://erc7824.org ).
After user deposit fund into Yellow, then trades (YES/NO)(Buy/Sell) can be executed without gas fee, and every trades update in the yellow's offchain state channel , while smart contracts guarantee final settlement.
@erc7824/nitrolite SDK for EIP-712 authentication and state channel management
WebSocket connection to Yellow Clearnode for real-time state sync
Session-based authentication: users sign once with MetaMask, get a session key for gasless operations
Frontend: Next.js 16 + React, real-time orderbook visualization, MetaMask wallet integration
Backend: Go orderbook engine with FIFO matching, WebSocket broadcasting, Yellow state channel updates
State Channel Flow: Every matched trade triggers UpdateState() with signed allocations to Yellow Network
Dual orderbook structure (YES/NO tokens) with price constraint: YES_price + NO_price = 1 USDC
Off-chain order matching with on-chain settlement capability via Yellow's Nitrolite protocol
Stack: TypeScript, Golang, Nitrolite SDK, WebSocket, EIP-712 Sign, State Channel

