Skip to main content

create-predict-manager

Calls predict::create_manager against the live Predict package. Predict shares the manager internally; the script picks the new PredictManager id from objectChanges and prints it.
pnpm predict:new-manager --execute
Paste the id into .env as AGENT_PREDICT_MANAGER_ID.

fund-manager

Splits a DUSDC coin from the wallet and calls predict_manager::deposit<T> to fund the PredictManager’s internal balance. Required before mint.
pnpm predict:fund --amount 100 --execute
Flags
FlagRequiredDescription
--amountyesWhole DUSDC amount
--managernoOverride AGENT_PREDICT_MANAGER_ID
--executenoSign + submit

supply-plp

Splits a DUSDC coin and calls predict::supply<T>(predict, coin, clock, ctx) → Coin<PLP>, plus a predict_facade::attribute_plp_supply event so the indexer credits the supply.
pnpm plp:supply --amount 50 --execute
Receives Coin<PLP> representing your share of the Predict shared vault.

predict-mint-smoke

Builds a predict::mint<T> PTB with inline market_key::new against testnet using AGENT_KEY + AGENT_PREDICT_MANAGER_ID. Prerequisite: fund-manager deposited DUSDC first.
pnpm smoke:mint --oracle-svi 0x... --execute
Flags
FlagRequiredDescription
--oracle-sviyesOracleSVI id (per asset/expiry)
--strikenoStrike in whole units (default: nearest $500 to spot)
--sidenoup or down (default: up)
--amountnoDUSDC spend (default: 2)
--executenoSign + submit
Used during bootstrap (SETUP step 7) to validate the Predict integration end-to-end.