Dobby

A fully on‑chain parallel execution CLOB with order partitioning enabling safe concurrent matching

ETHOnline 2025Shipped October 10, 2025#defi#payments#infra
Visit Repo
Dobby banner

About

Problem solved:

Traditional on-chain CLOB attempts fail to scale because every order mutates shared best bid/ask and large monolithic queues, forcing strict sequential execution and raising latency. Dobby decomposes the hot path so most orders interact only with narrowly scoped state, enabling true horizontal throughput while staying L1-native (no off-chain sequencing trust).

Dobby is a fully on-chain central limit order book purpose-built for Arcology’s parallel-execution network. Instead of serializing every order placement and match like conventional on-chain DEX designs, Dobby restructures state (price level partitions, per-user balance shards, delta aggregation buffers) so Arcology’s speculative scheduler can safely execute multiple independent order flows concurrently while guaranteeing deterministic final state. This eliminates the need for off-chain match engines, sequencers, or batch auction intermediaries, preserving trust minimization and composability.

Core architecture:

- Storage partitioning: mapping(price => LevelBook) isolates queues; user collateral and reserved balances are striped to shrink transactional write sets. - Two-phase matching: inner loop accumulates BalanceDelta structs (no immediate balance writes), followed by a compressed commit phase touching only affected accounts and levels. - Deterministic identifiers: order IDs derived from user, side, price, and a local nonce avoid extra lookups, aiding conflict prediction. - Event-centric state reconstruction: granular events (OrderPlaced, Match, Cancel, Settlement) let external indexers rebuild the book without privileged access.

Arcology integration:

- Leverages parallel execution by minimizing key collisions; independent price levels and unrelated user fills can finalize in the same block. - Custom devnet (chain 118) exposes a trimmed JSON-RPC surface at http://65.109.227.117:8545 for deterministic benchmarking. - concurrentlib primitives conceptually map conflict domains (price buckets, user partitions) to maximize scheduler concurrency without unsafe optimistic merges.

Oracle layer (Pyth):

- Pyth ETH/USDC (and other pairs) feeds supply mark pricing for margin-style risk checks, order reasonableness bands, and settlement PnL. - Staleness + confidence interval gating prevents toxic order flow against stale marks. - Decoupled update path: oracle updates can be pushed independently; orders revert cleanly if data is outdated.

Benchmarking:

A Hardhat-driven script (benchmark-clob.ts) stress tests contention profiles (narrow vs dispersed price ladders), collects match throughput, fill latency, and reverted ratio (e.g. stale oracle, margin failure). Deterministic seeds provide reproducible performance baselines for iterative optimization.

Differentiators:

- Pure Solidity logic; no hidden off-chain path. - Parallelism is a first-order design constraint, not an afterthought. - Oracle-integrated risk gating without central operators. - Deterministic matching semantics preserving price-time priority inside each level.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

0xBook

On-chain order book DEX with parallel execution (23 TPS) built with Hardhat 3 on Arcology

Parallel Ledger

Parallel order book that will make blockchain more faster. Remove Sequential addition of blocks.

Parrallel-insurance

High-throughput rug pull insurance using Arcology concurrent primitives for parallel execution

Crossline

Cross-chain on/off-ramp powered by custom order matching using state channels and limit orders.