import { ConfigValue, MoveStruct, MoveTuple, RawTransactionArgument } from "../utils/index.mjs"; import * as _mysten_sui_bcs187 from "@mysten/sui/bcs"; import * as _mysten_sui_transactions312 from "@mysten/sui/transactions"; import { Transaction } from "@mysten/sui/transactions"; //#region src/contracts/deepbook_predict/registry.d.ts declare namespace registry_d_exports { export { AddCadenceArguments, AddCadenceOptions, CadenceConfigArguments, CadenceConfigOptions, CadenceConfigsArguments, CadenceConfigsOptions, CadencePeriodsArguments, CadencePeriodsKey, CadencePeriodsOptions, CreateAndShareBuilderCodeArguments, CreateAndShareBuilderCodeOptions, CreateAndShareExpiryMarketArguments, CreateAndShareExpiryMarketAtArguments, CreateAndShareExpiryMarketAtOptions, CreateAndShareExpiryMarketOptions, CreateAndShareExpiryMarketWithBandArguments, CreateAndShareExpiryMarketWithBandOptions, ExpiryMarketIdArguments, ExpiryMarketIdOptions, FreezeProtocolPauseCapArguments, FreezeProtocolPauseCapOptions, GeneratePoolValuationProofArguments, GeneratePoolValuationProofOptions, IdArguments, IdOptions, MintLifecycleCapArguments, MintLifecycleCapOptions, MintPauseCapArguments, MintPauseCapOptions, MintPoolValuationCapArguments, MintPoolValuationCapOptions, PauseExpiryMarketMintPauseCapArguments, PauseExpiryMarketMintPauseCapOptions, PauseTradingPauseCapArguments, PauseTradingPauseCapOptions, RegisterUnderlyingArguments, RegisterUnderlyingOptions, Registry, RevokeLifecycleCapArguments, RevokeLifecycleCapOptions, RevokePauseCapArguments, RevokePauseCapOptions, RevokePoolValuationCapArguments, RevokePoolValuationCapOptions, SetTemplateCadenceConfigArguments, SetTemplateCadenceConfigOptions, addCadence, cadenceConfig, cadenceConfigs, cadencePeriods, createAndShareBuilderCode, createAndShareExpiryMarket, createAndShareExpiryMarketAt, createAndShareExpiryMarketWithBand, expiryMarketId, freezeProtocolPauseCap, generatePoolValuationProof, id, mintLifecycleCap, mintPauseCap, mintPoolValuationCap, pauseExpiryMarketMintPauseCap, pauseTradingPauseCap, registerUnderlying, revokeLifecycleCap, revokePauseCap, revokePoolValuationCap, setTemplateCadenceConfig }; } declare const Registry: MoveStruct<{ id: _mysten_sui_bcs187.BcsType, "bytes[32]">; /** * Market identity, cadence deployment terms, underlying watermarks, and * uniqueness. */ market_manager: MoveStruct<{ underlying_configs: MoveStruct<{ id: _mysten_sui_bcs187.BcsType, "bytes[32]">; size: _mysten_sui_bcs187.BcsType; }, "0x2::table::Table">; market_ids: MoveStruct<{ id: _mysten_sui_bcs187.BcsType, "bytes[32]">; size: _mysten_sui_bcs187.BcsType; }, "0x2::table::Table">; }, "@local-pkg/deepbook_predict::market_manager::MarketManager">; /** * IDs of `PauseCap` objects currently authorized to use pause-only entries. Admin * mints into this set and revokes from it. */ allowed_pause_caps: MoveStruct<{ contents: _mysten_sui_bcs187.BcsType> & { length: number; }, string>; }, "0x2::vec_set::VecSet">; /** * IDs of `MarketLifecycleCap` objects currently authorized to create expiry * markets. Admin mints into this set and revokes from it. */ allowed_lifecycle_caps: MoveStruct<{ contents: _mysten_sui_bcs187.BcsType> & { length: number; }, string>; }, "0x2::vec_set::VecSet">; /** * IDs of `PoolValuationCap` objects currently authorized to start the full-pool * valuation. Admin mints into this set and revokes from it. */ allowed_pool_valuation_caps: MoveStruct<{ contents: _mysten_sui_bcs187.BcsType> & { length: number; }, string>; }, "0x2::vec_set::VecSet">; }, "@local-pkg/deepbook_predict::registry::Registry">; declare const CadencePeriodsKey: MoveTuple], "@local-pkg/deepbook_predict::registry::CadencePeriodsKey">; interface IdArguments { registry?: RawTransactionArgument; } interface IdOptions { package?: string; arguments?: IdArguments; config?: { registry: ConfigValue; predictPackageId?: string; }; } /** Return the registry object ID for external discovery and PTB construction. */ declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface ExpiryMarketIdArguments { registry?: RawTransactionArgument; propbookUnderlyingId: RawTransactionArgument; expiry: RawTransactionArgument; } interface ExpiryMarketIdOptions { package?: string; arguments: ExpiryMarketIdArguments; config?: { registry: ConfigValue; predictPackageId?: string; }; } /** Resolve an expiry market ID for external discovery and PTB construction. */ declare function expiryMarketId(options: ExpiryMarketIdOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface CadenceConfigArguments { registry?: RawTransactionArgument; propbookUnderlyingId: RawTransactionArgument; cadenceId: RawTransactionArgument; } interface CadenceConfigOptions { package?: string; arguments: CadenceConfigArguments; config?: { registry: ConfigValue; predictPackageId?: string; }; } /** Return deployment policy for SDK and devInspect market discovery. */ declare function cadenceConfig(options: CadenceConfigOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface CadenceConfigsArguments { registry?: RawTransactionArgument; propbookUnderlyingId: RawTransactionArgument; } interface CadenceConfigsOptions { package?: string; arguments: CadenceConfigsArguments; config?: { registry: ConfigValue; predictPackageId?: string; }; } /** * Return one underlying's complete deployment policy as a single coherent * snapshot, for off-chain consumers (SDK and devInspect cadence discovery by the * keeper, price updater, and dashboard) that would otherwise need one read per * cadence. The vector holds one entry per cadence in `cadence_periods`, indexed by * cadence ID; disabled cadences are present as their all-zero configuration. * Aborts if the underlying is not registered. */ declare function cadenceConfigs(options: CadenceConfigsOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface CadencePeriodsArguments { registry?: RawTransactionArgument; } interface CadencePeriodsOptions { package?: string; arguments?: CadencePeriodsArguments; config?: { registry: ConfigValue; predictPackageId?: string; }; } /** * Return every cadence's period in milliseconds, indexed by cadence ID, for * devInspect cadence discovery by the keeper, price collector, and dashboard. The * table starts with the six built-in cadences and grows through `add_cadence`; * read it in the same transaction as `cadence_configs` for a consistent pair. */ declare function cadencePeriods(options: CadencePeriodsOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface MintPauseCapArguments { registry?: RawTransactionArgument; AdminCap: RawTransactionArgument; } interface MintPauseCapOptions { package?: string; arguments: MintPauseCapArguments; config?: { registry: ConfigValue; predictPackageId?: string; }; } /** * Mint a new `PauseCap`. This bypasses the version gate so emergency pause * authority remains available from a package version below the runtime floor. */ declare function mintPauseCap(options: MintPauseCapOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface RevokePauseCapArguments { registry?: RawTransactionArgument; AdminCap: RawTransactionArgument; pauseCapId: RawTransactionArgument; } interface RevokePauseCapOptions { package?: string; arguments: RevokePauseCapArguments; config?: { registry: ConfigValue; predictPackageId?: string; }; } /** Revoke a previously minted `PauseCap` by ID. Admin-only. */ declare function revokePauseCap(options: RevokePauseCapOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface MintLifecycleCapArguments { registry?: RawTransactionArgument; config?: RawTransactionArgument; AdminCap: RawTransactionArgument; } interface MintLifecycleCapOptions { package?: string; arguments: MintLifecycleCapArguments; config?: { registry: ConfigValue; protocolConfig: ConfigValue; predictPackageId?: string; }; } /** Mint a version-gated `MarketLifecycleCap` with market-creation authority. */ declare function mintLifecycleCap(options: MintLifecycleCapOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface RevokeLifecycleCapArguments { registry?: RawTransactionArgument; AdminCap: RawTransactionArgument; lifecycleCapId: RawTransactionArgument; } interface RevokeLifecycleCapOptions { package?: string; arguments: RevokeLifecycleCapArguments; config?: { registry: ConfigValue; predictPackageId?: string; }; } /** Revoke a `MarketLifecycleCap` by ID without applying the version gate. */ declare function revokeLifecycleCap(options: RevokeLifecycleCapOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface MintPoolValuationCapArguments { registry?: RawTransactionArgument; AdminCap: RawTransactionArgument; config?: RawTransactionArgument; } interface MintPoolValuationCapOptions { package?: string; arguments: MintPoolValuationCapArguments; config?: { registry: ConfigValue; protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Mint a version-gated `PoolValuationCap` with authority to start the full-pool * valuation. */ declare function mintPoolValuationCap(options: MintPoolValuationCapOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface RevokePoolValuationCapArguments { registry?: RawTransactionArgument; AdminCap: RawTransactionArgument; poolValuationCapId: RawTransactionArgument; } interface RevokePoolValuationCapOptions { package?: string; arguments: RevokePoolValuationCapArguments; config?: { registry: ConfigValue; predictPackageId?: string; }; } /** Revoke a `PoolValuationCap` by ID without applying the version gate. */ declare function revokePoolValuationCap(options: RevokePoolValuationCapOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface GeneratePoolValuationProofArguments { registry?: RawTransactionArgument; poolValuationCap: RawTransactionArgument; } interface GeneratePoolValuationProofOptions { package?: string; arguments: GeneratePoolValuationProofArguments; config?: { registry: ConfigValue; predictPackageId?: string; }; } /** * Generate a transaction-local proof that `pool_valuation_cap` is currently * allowlisted. `plp::start_pool_valuation` takes the proof by value so a revoked * cap cannot start a valuation. */ declare function generatePoolValuationProof(options: GeneratePoolValuationProofOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface PauseTradingPauseCapArguments { config?: RawTransactionArgument; registry?: RawTransactionArgument; pauseCap: RawTransactionArgument; } interface PauseTradingPauseCapOptions { package?: string; arguments: PauseTradingPauseCapArguments; config?: { protocolConfig: ConfigValue; registry: ConfigValue; predictPackageId?: string; }; } /** Force `trading_paused = true` via a valid `PauseCap`. One-way. */ declare function pauseTradingPauseCap(options: PauseTradingPauseCapOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface FreezeProtocolPauseCapArguments { config?: RawTransactionArgument; registry?: RawTransactionArgument; pauseCap: RawTransactionArgument; } interface FreezeProtocolPauseCapOptions { package?: string; arguments: FreezeProtocolPauseCapArguments; config?: { protocolConfig: ConfigValue; registry: ConfigValue; predictPackageId?: string; }; } /** * Force the protocol-wide emergency freeze via a valid `PauseCap`. One-way; * admin's `protocol_config::set_frozen` is needed to lift the freeze. */ declare function freezeProtocolPauseCap(options: FreezeProtocolPauseCapOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface PauseExpiryMarketMintPauseCapArguments { market: RawTransactionArgument; registry?: RawTransactionArgument; pauseCap: RawTransactionArgument; } interface PauseExpiryMarketMintPauseCapOptions { package?: string; arguments: PauseExpiryMarketMintPauseCapArguments; config?: { registry: ConfigValue; predictPackageId?: string; }; } /** * Force `mint_paused = true` on a single expiry market via a valid `PauseCap`. * One-way; admin's `expiry_market::set_mint_paused` is needed to unpause. */ declare function pauseExpiryMarketMintPauseCap(options: PauseExpiryMarketMintPauseCapOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface RegisterUnderlyingArguments { registry?: RawTransactionArgument; config?: RawTransactionArgument; AdminCap: RawTransactionArgument; propbookUnderlyingId: RawTransactionArgument; } interface RegisterUnderlyingOptions { package?: string; arguments: RegisterUnderlyingArguments; config?: { registry: ConfigValue; protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Record admin approval of one Propbook underlying. Source IDs and canonical * oracle object IDs remain owned by Propbook; this row only gates which * underlyings Predict will build markets on and stores deployment watermarks. */ declare function registerUnderlying(options: RegisterUnderlyingOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface AddCadenceArguments { registry?: RawTransactionArgument; config?: RawTransactionArgument; AdminCap: RawTransactionArgument; periodMs: RawTransactionArgument; } interface AddCadenceOptions { package?: string; arguments: AddCadenceArguments; config?: { registry: ConfigValue; protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Append a cadence with period `period_ms` to the cadence table and return its ID. * The period is a whole number of minutes, at most one year, and not already in * the table, which holds at most 16 cadences. A new cadence is disabled on every * underlying until `set_template_cadence_config` sets its terms; periods never * change, so retire a cadence by disabling it. */ declare function addCadence(options: AddCadenceOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface SetTemplateCadenceConfigArguments { registry?: RawTransactionArgument; config?: RawTransactionArgument; AdminCap: RawTransactionArgument; propbookUnderlyingId: RawTransactionArgument; cadenceId: RawTransactionArgument; tickSize: RawTransactionArgument; admissionTickSize: RawTransactionArgument; maxExpiryAllocation: RawTransactionArgument; initialExpiryCash: RawTransactionArgument; windowSize: RawTransactionArgument; } interface SetTemplateCadenceConfigOptions { package?: string; arguments: SetTemplateCadenceConfigArguments; config?: { registry: ConfigValue; protocolConfig: ConfigValue; predictPackageId?: string; }; } /** * Set all deployment terms for one underlying's cadence. Passing zero for all five * values disables the cadence; otherwise all values must be nonzero and valid. * Aborts if the underlying's enabled windows would sum past the pool's live-market * cap. */ declare function setTemplateCadenceConfig(options: SetTemplateCadenceConfigOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface CreateAndShareExpiryMarketArguments { registry?: RawTransactionArgument; poolVault?: RawTransactionArgument; config?: RawTransactionArgument; propbookRegistry?: RawTransactionArgument; lifecycleCap: RawTransactionArgument; propbookUnderlyingId: RawTransactionArgument; cadenceId: RawTransactionArgument; } interface CreateAndShareExpiryMarketOptions { package?: string; arguments: CreateAndShareExpiryMarketArguments; config?: { registry: ConfigValue; poolVault: ConfigValue; protocolConfig: ConfigValue; oracleRegistry: ConfigValue; predictPackageId?: string; }; } /** * Create the next deployable `ExpiryMarket` for one cadence on a Propbook * underlying. * * Requires an allowlisted lifecycle capability, a registered underlying with all * canonical feed objects bound, and an enabled cadence with a deployable slot. * Slots owned by a longer enabled cadence and existing markets are skipped. The * market snapshots cadence and expiry policy, starts with zero cash, and cannot * mint until pool rebalancing funds it. Live pricing reads current Propbook * bindings. */ declare function createAndShareExpiryMarket(options: CreateAndShareExpiryMarketOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface CreateAndShareExpiryMarketAtArguments { registry?: RawTransactionArgument; poolVault?: RawTransactionArgument; config?: RawTransactionArgument; propbookRegistry?: RawTransactionArgument; lifecycleCap: RawTransactionArgument; propbookUnderlyingId: RawTransactionArgument; cadenceId: RawTransactionArgument; expectedExpiry: RawTransactionArgument; } interface CreateAndShareExpiryMarketAtOptions { package?: string; arguments: CreateAndShareExpiryMarketAtArguments; config?: { registry: ConfigValue; poolVault: ConfigValue; protocolConfig: ConfigValue; oracleRegistry: ConfigValue; predictPackageId?: string; }; } /** * `create_and_share_expiry_market`, aborting unless the deployable expiry is * `expected_expiry`. A keeper that planned the expiry off chain uses this so that * a stale view of the cadence table fails instead of creating an unplanned market. */ declare function createAndShareExpiryMarketAt(options: CreateAndShareExpiryMarketAtOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface CreateAndShareExpiryMarketWithBandArguments { registry?: RawTransactionArgument; poolVault?: RawTransactionArgument; config?: RawTransactionArgument; propbookRegistry?: RawTransactionArgument; lifecycleCap: RawTransactionArgument; propbookUnderlyingId: RawTransactionArgument; cadenceId: RawTransactionArgument; expectedExpiry: RawTransactionArgument; minEntryProbability: RawTransactionArgument; maxEntryProbability: RawTransactionArgument; } interface CreateAndShareExpiryMarketWithBandOptions { package?: string; arguments: CreateAndShareExpiryMarketWithBandArguments; config?: { registry: ConfigValue; poolVault: ConfigValue; protocolConfig: ConfigValue; oracleRegistry: ConfigValue; predictPackageId?: string; }; } /** * `create_and_share_expiry_market` with the new market's mint entry band narrowed * to `[min_entry_probability, max_entry_probability]`, aborting unless the * deployable expiry is `expected_expiry` when that is set. The other two creation * entrypoints call this with `[0, u64::MAX]`, which keeps the template's band. * * The band can only tighten: each side keeps the tighter of the requested value * and the template's, so a bound looser than the template leaves that side at the * template's, and the call aborts when the two bands do not overlap. Like every * snapshotted term, the band is fixed for the market's life, and `MarketCreated` * reports it. A keeper uses this to admit fewer mints in markets open across a * chosen window. */ declare function createAndShareExpiryMarketWithBand(options: CreateAndShareExpiryMarketWithBandOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; interface CreateAndShareBuilderCodeArguments { registry?: RawTransactionArgument; config?: RawTransactionArgument; index: RawTransactionArgument; } interface CreateAndShareBuilderCodeOptions { package?: string; arguments: CreateAndShareBuilderCodeArguments; config?: { registry: ConfigValue; protocolConfig: ConfigValue; predictPackageId?: string; }; } /** Create a derived shared BuilderCode for the caller and index. */ declare function createAndShareBuilderCode(options: CreateAndShareBuilderCodeOptions): (tx: Transaction) => _mysten_sui_transactions312.TransactionResult; //#endregion export { registry_d_exports }; //# sourceMappingURL=registry.d.mts.map