Registry
The Registry shared object tracks the Predict object ID and the oracle IDs created by each OracleSVICap. The registry module also exposes admin entry points for setup, quote asset management, oracle creation, pricing configuration, risk configuration, and the withdrawal limiter.
Most app integrations do not call these functions directly. They are operator and governance surfaces for deploying and maintaining the protocol.
API
Read registered object IDs
Use these functions to read the active Predict object ID and the oracle IDs associated with an oracle cap.
packages/predict/sources/registry.move. You probably need to run `pnpm prebuild` and restart the site.Create the Predict object
The create_predict() function creates the shared Predict object once for a quote asset and records its ID in the registry.
packages/predict/sources/registry.move. You probably need to run `pnpm prebuild` and restart the site.Create and register oracle caps
Oracle caps authorize oracle operators to update oracles and tighten per-oracle ask bounds.
packages/predict/sources/registry.move. You probably need to run `pnpm prebuild` and restart the site.Create an oracle
The create_oracle() function creates an OracleSVI, associates it with the calling cap, and initializes the Predict vault's strike grid for that oracle.
packages/predict/sources/registry.move. You probably need to run `pnpm prebuild` and restart the site.Manage quote assets
Admins can enable or disable quote assets for new supply and mint inflows.
packages/predict/sources/registry.move. You probably need to run `pnpm prebuild` and restart the site.Configure pricing
These functions control global spread, minimum spread, utilization multiplier, and global ask price bounds.
packages/predict/sources/registry.move. You probably need to run `pnpm prebuild` and restart the site.Configure oracle ask bounds
Oracle ask-bound overrides are authorized by the oracle's cap and can only tighten the global bounds.
packages/predict/sources/registry.move. You probably need to run `pnpm prebuild` and restart the site.Configure trading and risk controls
These functions control the trading pause, max total exposure percentage, and LP withdrawal limiter.
packages/predict/sources/registry.move. You probably need to run `pnpm prebuild` and restart the site.Structs and events
Registry and AdminCap
packages/predict/sources/registry.move. You probably need to run `pnpm prebuild` and restart the site.Registry events
packages/predict/sources/registry.move. You probably need to run `pnpm prebuild` and restart the site.