Logo di Deepbook Overview

Deepbook Overview

Organizzazione
MystenLabs
deepbook-overview

Explains DeepBook V3 on Sui: the central limit order book (CLOB) design, how a Pool is built from Book, State, and Vault, the DEEP token's role in fees, staking and governance, the three integration models, and mainnet package and pool IDs. Use when the user asks what DeepBook is or how it compares to an AMM like Uniswap, asks about DeepBook Pool internals, BigVector, or order matching, asks whether to integrate via Move package, TypeScript SDK, or read-only queries, asks about DEEP fees, staking, whitelisted pools, or voting, or needs a DeepBook mainnet package ID, pool object ID, coin type, or fee tier.

Panoramica

Pubblicato daMystenLabs
Repositoryskills
Nome della skilldeepbook-overview
Stelle
21
Fork
12
File inclusi
3
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 3

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da MystenLabs su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Deepbook Overview in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/MystenLabs/skills/tree/main/deepbook-overview
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MystenLabs/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/deepbook-overview .claude/skills/deepbook-overview
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Deepbook Overview in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Deepbook Overview non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Deepbook Overview non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

DeepBook V3 Overview

Quick start

QuestionAnswer
What is it?A central limit order book (CLOB) on Sui — not an AMM. Price-time priority matching, limit and market orders, discrete tick and lot sizes. No end-user interface.
What is a Pool made of?Book (two BigVectors: bids, asks), State (Governance, History, Account), Vault (settlement + DeepPrice).
How do I integrate?Move package, TypeScript SDK & PTBs, or read-only queries — see §3.
What is DEEP for?Default fee token (or input token at +25%), taker-fee discounts via staking, and governance voting.
Mainnet v6 package0x337f4f4f6567fcd778d5454f27c16c70e2f274cc6377ea6249ddf491482ef497

Related skills: deepbook-sdk (TypeScript trading), deepbook-move (Move integration). Reference files: design.md (matching/injection, governance mechanics, epoch history, full order-placement flow), contract-info.md (all 23 mainnet pools, every coin type and decimals, historical package versions, registry IDs).


1. Explaining DeepBook vs an AMM

State all five points:

  • DeepBook V3 is a central limit order book (CLOB), not an AMM — there is no bonding curve, no LP pool pricing, and no constant-product formula.
  • Orders are matched by price-time priority: best price first, then earliest submission.
  • It supports limit orders (rest on the book as maker) and market orders (take immediately), plus flash loans via a hot potato pattern within a single PTB.
  • Prices move in tick size increments and quantities in lot size increments, set per pool. Orders not aligned to them are rejected. AMMs accept any continuous amount.
  • DeepBook ships no end-user interface. It is infrastructure for trading apps, bots, and protocols.

2. Pool internals (Book / State / Vault)

A Pool is one market (e.g. SUI/USDC) as a Sui shared object with three components:

  • Book — order storage and matching. Holds two BigVector structures, one for bids and one for asks. BigVector is implemented as a B+ tree, so insertion, cancellation, and in-price-order traversal stay efficient as the book grows.
  • State — three submodules: Governance (fee/stake proposals and epoch voting), History (per-epoch volumes, fees collected, rebates), Account (per-user balances, stake, open orders, settled amounts).
  • Vault — asset settlement: custodies pool balances, moves funds on fill and withdrawal, and maintains DeepPrice conversion rates so DEEP-denominated fees can be computed from the pool's own assets.

Full order placement flow, injection/matching details, and governance arithmetic: design.md.

3. Choosing an integration model

ModelUse whenDependency
Move packageA protocol needs on-chain logic guarantees and composability with other Move packagesdeepbook = { mvr = "@deepbook/core" }
SDK & PTBsApps, bots, and wallets submitting trades from TypeScriptnpm install @mysten/deepbook-v3
Read-only dataPrice and order book queries only, via indexer or RPCNone — query the endpoints directly

Checklist for a new integration:

  • Pick one model from the table above; default to SDK & PTBs unless on-chain composability is required.
  • Create one BalanceManager per user and reuse it; grant TradeCap/DepositCap/WithdrawCap for delegated access.
  • Fund the BalanceManager with the trading assets and DEEP (unless trading a whitelisted pool).
  • Read the pool's tick size, lot size, and current taker/maker fees on-chain before sizing orders.
  • Reference pools by SDK pool/coin keys, not hardcoded IDs, so the code works on mainnet and testnet.

4. The DEEP token

  • Default fee token. Trading fees on non-whitelisted pools are paid in DEEP from the BalanceManager.
  • Alternative: pay fees in the input token at a 25% premium.
  • Staking: staking DEEP reduces taker fees — up to halving them once stake and volume thresholds are met. Maker fees are unaffected.
  • Governance: stakers propose and vote on pool parameters each epoch — taker fee, maker fee, and stake requirement.
  • Whitelisted pools: DEEP/SUI and DEEP/USDC have 0% taker and 0% maker fees, providing gateway liquidity for DEEP.

5. Addresses and pools

Mainnet essentials:

  • Current package (v6): 0x337f4f4f6567fcd778d5454f27c16c70e2f274cc6377ea6249ddf491482ef497
  • SUI/USDC pool: 0xe05dafb5133bcffb8d59f4e12465dc0e9faeaa05e3e342a08fe135800e3e4407, 1 bps taker fee, 0 bps maker fee

Everything else — the other mainnet pools, coin types and decimals, historical package versions, registry IDs — is in contract-info.md. Load it before answering any address question not listed above; do not guess an ID.

Answer style for an address lookup — give the label, the full ID, and the fee tier, no truncation:

DeepBook V3 mainnet package (v6): 0x337f4f4f6567fcd778d5454f27c16c70e2f274cc6377ea6249ddf491482ef497 SUI/USDC pool: 0xe05dafb5133bcffb8d59f4e12465dc0e9faeaa05e3e342a08fe135800e3e4407 — 1 bps taker, 0 bps maker.

Pitfalls

  • No DEEP in the BalanceManager → trades fail on every non-whitelisted pool.
  • Hardcoded fees go stale. Governance can change taker/maker fees and stake requirements each epoch; read them on-chain.
  • Misaligned orders are rejected. Round price to tick size and quantity to lot size before submitting.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Deepbook Overview?

Explains DeepBook V3 on Sui: the central limit order book (CLOB) design, how a Pool is built from Book, State, and Vault, the DEEP token's role in fees, staking and governance, the three integration models, and mainnet package and pool IDs. Use when the user asks what DeepBook is or how it compares to an AMM like Uniswap, asks about DeepBook Pool internals, BigVector, or order matching, asks whether to integrate via Move package, TypeScript SDK, or read-only queries, asks about DEEP fees, staking, whitelisted pools, or voting, or needs a DeepBook mainnet package ID, pool object ID, coin typ...

Perché usare Deepbook Overview su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Deepbook Overview è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Deepbook Overview in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/MystenLabs/skills/tree/main/deepbook-overview. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Deepbook Overview?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Deepbook Overview?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Deepbook Overview: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Deepbook Overview è gratuita?

Sì. È pubblicata su GitHub da MystenLabs con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇