deepbook-predict-registry
Installation
SKILL.md
DeepBook Predict: Registry & Protocol Administration
The Registry shared object coordinates governance and operator controls. It tracks deployed Predict shared objects, associates oracles with their respective operator capabilities, and manages asset configurations and risk settings.
1. Move Smart Contract API (registry module)
Setup & Deployments
public fun create_predict<QuoteAsset>(registry: &mut Registry, admin_cap: &AdminCap, ctx: &mut TxContext)Deploys the sharedPredictobject once for a specific quote asset, registering its object ID in the registry.
Oracle Registration
public fun create_oracle_cap(registry: &mut Registry, admin_cap: &AdminCap, ctx: &mut TxContext): OracleSVICapMints a newOracleSVICapcapability.public fun create_oracle(registry: &mut Registry, cap: &OracleSVICap, underlying: String, expiry: u64, strike_grid: vector<u64>, ctx: &mut TxContext)Creates a newOracleSVIobject linked to the calling cap, and initializes the vault's strike-matrix grids for the specified strikes.