System Architecture Overview
Stack
Layer
Technology
Architecture Diagram
┌───────────────────────────────────────────────────────┐
│ USER │
│ (browser — no wallet extension needed) │
└──────────────────────┬────────────────────────────────┘
│ email / Google / Twitter / Discord
▼
┌──────────────────────────────────────────────────────┐
│ PRIVY AUTH LAYER │
│ Email OTP · Google · Twitter · Discord · GitHub │
│ │
│ Auto-creates: Embedded Wallet (EOA) │
│ Wraps in: Kernel Smart Account (ERC-4337) │
└──────────────────────┬───────────────────────────────┘
│
┌───────────────┼───────────────┐
│ │ │
▼ ▼ ▼
READ PATH WRITE PATH SESSION PATH
(multicall) (gasless tx) (no popup/trade)
│ │ │
▼ ▼ ▼
HTTP+Multicall3 UserOperation Session Key Tx
2s TTL cache via Bundler (pre-delegated)
│ │ │
└───────┬───────┘───────────────┘
▼
┌──────────────────┐
│ PAYMASTER │
│ (Pimlico) │
│ sponsors gas │
│ rate-limited │
└────────┬─────────┘
▼
┌───────────────────────────────────┐
│ EventlyMarkets.sol │
│ MegaETH Chain ID 4326 │
│ │
│ placeOrder / sellToAMM │
│ createMarket / resolveMarket │
│ claimRewards / cancelOrder │
└──────────────────┬────────────────┘
│ events
▼
┌────────────────────────────────────┐
│ MegaETH WebSocket │
│ wss://mainnet.megaeth.com/ws │
│ │
│ mini-blocks ~10 ms │
│ eth_sendRawTransactionSync │
│ watchContractEvent │
└──────────────────┬────────────────┘
│
▼
┌────────────────────────────────────┐
│ FRONTEND REALTIME ENGINE │
│ Instant confirmation (~10 ms) │
│ Live odds · Live order book │
│ No page refresh │
└────────────────────────────────────┘Gas Sponsorship Flow
Session Key Flow
Security Controls
Control
Value
Smart Contract Audit Result
Last updated
Was this helpful?

