شعار Deepbook Overview

Deepbook Overview

مؤسسة
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.

نظرة عامة

الناشرMystenLabs
المستودعskills
اسم المهارةdeepbook-overview
النجوم
21
التفريعات
12
الملفات المرفقة
3
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 3

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها MystenLabs على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Deepbook Overview في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/MystenLabs/skills/tree/main/deepbook-overview
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Deepbook Overview في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Deepbook Overview تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Deepbook Overview بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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...

لماذا تستخدم Deepbook Overview على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Deepbook Overview عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Deepbook Overview في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/MystenLabs/skills/tree/main/deepbook-overview. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Deepbook Overview؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Deepbook Overview؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Deepbook Overview معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Deepbook Overview مجانية؟

نعم. نشرها MystenLabs على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇