Skip to content

v1.0.0

Choose a tag to compare

@joaquinbejar joaquinbejar released this 25 Oct 23:42
· 4 commits to main since this release
95a8a30

First stable release of the crankless Pinocchio redesign: a new order book in one growable account, with a new program, SDKs, clients and playground. Not compatible with 0.x markets.

Crates

Clients and SDK additions

  • matchbook CLI in Rust (client/) and TypeScript (ts-client/): markets, deposits and
    withdrawals, every order type including reverse orders, stops and OCO brackets, seatless
    swaps with exact quotes, book and balances, and session keys.
  • matchbook-mm market-making bot in both languages: inventory-skewed ladders requoted in
    one batch, session-key signing, position, notional, loss, stale-price and jump limits.
  • Rust SDK: event decoding, a seat's orders, stops and locked funds, delegates, error names.
  • TypeScript SDK: MarketView.locked.
  • scripts/e2e-clients.sh: both clients against a local validator.

The redesign

Added

  • matchbook-engine: a no_std order book over a byte buffer, with red-black trees in a
    node pool, cached book edges and a model test against a reference implementation.
  • Crankless matching: makers are settled inside the taker's instruction.
  • Order types: limit, post-only, post-only slide, IOC, fill or kill, quote budgets, expiry,
    client order ids, self-trade behaviors, batch updates of up to 32 cancels and 32 orders.
  • Reverse orders with a reserved node, so flips never fail for lack of space.
  • Stop orders and one-cancels-other brackets placed by the trades that reach them, plus a
    permissionless TriggerStops.
  • Session keys: up to 8 delegates per seat with trade or cancel permissions and expiry.
  • Seatless swaps with a minimum-out guard, referral fee sharing and permissioned markets.
  • Token-2022 support through transfer_checked.
  • Rust SDK with exact quotes and a Jupiter Amm adapter; TypeScript SDK on @solana/kit.
  • WebAssembly playground, deploy script and a demo-market example.
  • Benchmarks against Manifest, Phoenix v1 and OpenBook v2.

Removed

  • The Anchor program, crank, indexer, REST and WebSocket services and their deployment files.

Full changelog: v0.2.1...v1.0.0