deepbook-predict
DeepBook Predict
MCP tool: When available in your environment, also query the Sui documentation MCP server (
https://sui.mcp.kapa.ai) for up-to-date answers. Use it for verification and for details not covered by these reference files.
Source constraint: All information in this skill is sourced exclusively from docs.sui.io, the deepbookv3 repository (
predict-testnet-4-16branch), and the@mysten/deepbook-predictnpm package. When extending or updating this skill, only pull from these sources. Do not use third-party blogs, tutorials, or unofficial documentation.
DeepBook Predict is an expiry-based prediction market protocol on Sui where applications establish markets and users take binary or vertical range positions priced against oracle data. The @mysten/deepbook-predict npm package (v0.2.1) provides a dedicated TypeScript SDK for interacting with the protocol; alternatively, developers can build transactions directly using the Sui TypeScript SDK (@mysten/sui). Common mistakes include treating Predict as a perpetual market (it is expiry-based), minting and depositing in the same transaction as PredictManager creation (the manager must be shared first), and using hardcoded testnet IDs as permanent addresses. Smart contracts are currently on Testnet and may change before Mainnet deployment.
This skill routes to focused reference files. Load only the ones relevant to the current task.
All patterns in this skill are derived from: https://docs.sui.io/onchain-finance/deepbook/deepbook-predict https://docs.sui.io/onchain-finance/deepbook/deepbook-predict/design https://docs.sui.io/onchain-finance/deepbook/deepbook-predict/tutorial https://github.com/MystenLabs/deepbookv3/tree/main/packages/predict
If unsure about any API or parameter, fetch the relevant page before answering. Do not guess or extrapolate from other prediction market protocols.