> ## Documentation Index
> Fetch the complete documentation index at: https://docs.darkpool.fun/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> The 7 modules in packages/move and the per-market binary template.

The DarkPool Move package ships **7 modules** plus a templated per-market binary package. Built clean (`sui move build`), unit-tested (`sui move test` to 17/17 pass), pinned to the DeepBook Predict `predict-testnet-4-16` branch.

## The 7 modules

| Module                                   | Lines | Job                                                                                                                        |
| ---------------------------------------- | ----- | -------------------------------------------------------------------------------------------------------------------------- |
| [`predict_facade`](/move/predict-facade) | \~150 | Attribution events alongside cross-package `predict::*` calls                                                              |
| [`market`](/move/market)                 | \~140 | `MarketLink` registry distinguishing price (kind=0) vs OO (kind=1) markets                                                 |
| [`settlement`](/move/settlement)         | \~120 | `AutoRedeemQueue` + `distribute_fees` (1% / 0.5% / 0.5%)                                                                   |
| [`seal_policy`](/move/seal-policy)       | \~80  | `AccessPolicy` (still used as opaque arg by `dark_pool::deposit`)                                                          |
| [`agent`](/move/agent)                   | \~190 | `TradeAgent` identity + signed-PnL + PLP score                                                                             |
| [`oo_resolution`](/move/oo-resolution)   | \~290 | Optimistic oracle (propose to dispute to vote to finalize)                                                                 |
| [`dark_pool`](/move/dark-pool)           | \~415 | `DarkPoolVault<T>`. BalanceManager + TradeCap ids, deposit / pull\_for\_mint / record\_mint / receive\_settlement / redeem |

## Per-market scaffolded packages

In [`binary-market-template/`](/move/binary-market-template):

* `yes.move`. `Coin<YES>` OTW + TreasuryCap
* `no.move`. `Coin<NO>` OTW + TreasuryCap
* `settlement.move`. `Settlement<COLLATERAL>` shared object, `ResolverCap`, `mint_pair` / `burn_pair` / `mark_resolved` / `redeem_{yes,no}`

Materialised + published once per market by [`scripts/create-binary-market.ts`](/scripts/binary-market).

## Build + test

```bash theme={"system"}
cd packages/move
sui move build      # clean
sui move test       # 17/17 pass
```

## Modules deleted in the V3 pivot

* `outcome_market.move` (internal AMM). V3 pools are the trading engine now.
* `position.move` (Seal-encrypted intent ledger). User chose vault-based privacy (k-anonymity) over Seal note encryption.

Both lived in v0.2 source; both are gone from v0.3 and the deployed package.

## Live deployment

Package `0x21c96c85907b9aabaf770d4b663874d6fa35175176765512cac1d77d969ec5df` contains all 7 modules. See [Live Testnet IDs](/deployment/live-ids) for the full shared-object table.
