@mysten/deepbook-v3 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/PREDICT.md +149 -55
  3. package/README.md +18 -13
  4. package/dist/contracts/account/account.d.mts +23 -23
  5. package/dist/contracts/account/account.d.mts.map +1 -1
  6. package/dist/contracts/account/account_events.d.mts +20 -20
  7. package/dist/contracts/account/account_registry.d.mts +19 -19
  8. package/dist/contracts/deepbook/account.d.mts +18 -18
  9. package/dist/contracts/deepbook/account.d.mts.map +1 -1
  10. package/dist/contracts/deepbook/balances.d.mts +4 -4
  11. package/dist/contracts/deepbook/balances.d.mts.map +1 -1
  12. package/dist/contracts/deepbook/deep_price.d.mts +3 -3
  13. package/dist/contracts/deepbook/deep_price.d.mts.map +1 -1
  14. package/dist/contracts/deepbook/order.d.mts +12 -12
  15. package/dist/contracts/deepbook_predict/admin.d.mts +27 -0
  16. package/dist/contracts/deepbook_predict/admin.d.mts.map +1 -0
  17. package/dist/contracts/deepbook_predict/admin.mjs +38 -0
  18. package/dist/contracts/deepbook_predict/admin.mjs.map +1 -0
  19. package/dist/contracts/deepbook_predict/builder_code.d.mts +81 -0
  20. package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -0
  21. package/dist/contracts/deepbook_predict/builder_code.mjs +103 -0
  22. package/dist/contracts/deepbook_predict/builder_code.mjs.map +1 -0
  23. package/dist/contracts/deepbook_predict/builder_code_events.d.mts +25 -0
  24. package/dist/contracts/deepbook_predict/builder_code_events.d.mts.map +1 -0
  25. package/dist/contracts/deepbook_predict/builder_code_events.mjs +7 -1
  26. package/dist/contracts/deepbook_predict/builder_code_events.mjs.map +1 -1
  27. package/dist/contracts/deepbook_predict/config_events.d.mts +104 -0
  28. package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -0
  29. package/dist/contracts/deepbook_predict/config_events.mjs +155 -0
  30. package/dist/contracts/deepbook_predict/config_events.mjs.map +1 -0
  31. package/dist/contracts/deepbook_predict/ewma_config.mjs +28 -0
  32. package/dist/contracts/deepbook_predict/ewma_config.mjs.map +1 -0
  33. package/dist/contracts/deepbook_predict/expiry_market.d.mts +859 -0
  34. package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -0
  35. package/dist/contracts/deepbook_predict/expiry_market.mjs +647 -1
  36. package/dist/contracts/deepbook_predict/expiry_market.mjs.map +1 -1
  37. package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +39 -0
  38. package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts.map +1 -0
  39. package/dist/contracts/deepbook_predict/market_lifecycle_cap.mjs +51 -0
  40. package/dist/contracts/deepbook_predict/market_lifecycle_cap.mjs.map +1 -0
  41. package/dist/contracts/deepbook_predict/market_manager.d.mts +159 -0
  42. package/dist/contracts/deepbook_predict/market_manager.d.mts.map +1 -0
  43. package/dist/contracts/deepbook_predict/market_manager.mjs +88 -2
  44. package/dist/contracts/deepbook_predict/market_manager.mjs.map +1 -1
  45. package/dist/contracts/deepbook_predict/order_events.d.mts +101 -0
  46. package/dist/contracts/deepbook_predict/order_events.d.mts.map +1 -0
  47. package/dist/contracts/deepbook_predict/order_events.mjs +7 -1
  48. package/dist/contracts/deepbook_predict/order_events.mjs.map +1 -1
  49. package/dist/contracts/deepbook_predict/pause_cap.d.mts +39 -0
  50. package/dist/contracts/deepbook_predict/pause_cap.d.mts.map +1 -0
  51. package/dist/contracts/deepbook_predict/pause_cap.mjs +51 -0
  52. package/dist/contracts/deepbook_predict/pause_cap.mjs.map +1 -0
  53. package/dist/contracts/deepbook_predict/plp.d.mts +801 -0
  54. package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -0
  55. package/dist/contracts/deepbook_predict/plp.mjs +458 -1
  56. package/dist/contracts/deepbook_predict/plp.mjs.map +1 -1
  57. package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +39 -0
  58. package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts.map +1 -0
  59. package/dist/contracts/deepbook_predict/pool_valuation_cap.mjs +52 -0
  60. package/dist/contracts/deepbook_predict/pool_valuation_cap.mjs.map +1 -0
  61. package/dist/contracts/deepbook_predict/predict_account.d.mts +90 -0
  62. package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -0
  63. package/dist/contracts/deepbook_predict/predict_account.mjs +24 -1
  64. package/dist/contracts/deepbook_predict/predict_account.mjs.map +1 -1
  65. package/dist/contracts/deepbook_predict/pricing.d.mts +127 -0
  66. package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -0
  67. package/dist/contracts/deepbook_predict/pricing.mjs +25 -1
  68. package/dist/contracts/deepbook_predict/pricing.mjs.map +1 -1
  69. package/dist/contracts/deepbook_predict/pricing_config.mjs +28 -0
  70. package/dist/contracts/deepbook_predict/pricing_config.mjs.map +1 -0
  71. package/dist/contracts/deepbook_predict/protocol_config.d.mts +665 -0
  72. package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -0
  73. package/dist/contracts/deepbook_predict/protocol_config.mjs +841 -0
  74. package/dist/contracts/deepbook_predict/protocol_config.mjs.map +1 -0
  75. package/dist/contracts/deepbook_predict/range_codec.d.mts +30 -0
  76. package/dist/contracts/deepbook_predict/range_codec.d.mts.map +1 -0
  77. package/dist/contracts/deepbook_predict/range_codec.mjs +6 -1
  78. package/dist/contracts/deepbook_predict/range_codec.mjs.map +1 -1
  79. package/dist/contracts/deepbook_predict/registry.d.mts +382 -0
  80. package/dist/contracts/deepbook_predict/registry.d.mts.map +1 -0
  81. package/dist/contracts/deepbook_predict/registry.mjs +456 -1
  82. package/dist/contracts/deepbook_predict/registry.mjs.map +1 -1
  83. package/dist/contracts/deepbook_predict/vault_events.d.mts +199 -0
  84. package/dist/contracts/deepbook_predict/vault_events.d.mts.map +1 -0
  85. package/dist/contracts/deepbook_predict/vault_events.mjs +19 -1
  86. package/dist/contracts/deepbook_predict/vault_events.mjs.map +1 -1
  87. package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
  88. package/dist/contracts/deepbook_sessions/sessions.d.mts +22 -22
  89. package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
  90. package/dist/predict/client.d.mts +3 -2
  91. package/dist/predict/client.d.mts.map +1 -1
  92. package/dist/predict/client.mjs +3 -2
  93. package/dist/predict/client.mjs.map +1 -1
  94. package/dist/predict/index.d.mts +18 -1
  95. package/dist/predict/index.mjs +18 -1
  96. package/dist/transactions/balanceManager.d.mts +12 -12
  97. package/dist/transactions/deepbook.d.mts +20 -20
  98. package/dist/transactions/deepbookAdmin.d.mts +4 -4
  99. package/dist/transactions/marginAdmin.d.mts +7 -7
  100. package/dist/transactions/marginLiquidations.d.mts +3 -3
  101. package/dist/transactions/marginMaintainer.d.mts +5 -5
  102. package/dist/transactions/marginManager.d.mts +32 -32
  103. package/dist/transactions/marginPool.d.mts +18 -18
  104. package/dist/transactions/marginRegistry.d.mts +16 -16
  105. package/dist/transactions/marginTPSL.d.mts +10 -10
  106. package/dist/transactions/poolProxy.d.mts +8 -8
  107. package/package.json +1 -1
  108. package/src/predict/client.ts +3 -2
  109. package/src/predict/index.ts +26 -2
@@ -0,0 +1,859 @@
1
+ import { ConfigValue, MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
2
+ import * as _mysten_sui_bcs40 from "@mysten/sui/bcs";
3
+ import * as _mysten_sui_transactions161 from "@mysten/sui/transactions";
4
+ import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
5
+
6
+ //#region src/contracts/deepbook_predict/expiry_market.d.ts
7
+ declare namespace expiry_market_d_exports {
8
+ export { AdmissionTickSizeArguments, AdmissionTickSizeOptions, AllInCostArguments, AllInCostOptions, BackingBufferLambdaArguments, BackingBufferLambdaOptions, BuilderFeeArguments, BuilderFeeOptions, CashBalanceArguments, CashBalanceOptions, CurrentNavArguments, CurrentNavOptions, EntryProbabilityArguments, EntryProbabilityOptions, ExpiryArguments, ExpiryFeeMaxMultiplierArguments, ExpiryFeeMaxMultiplierOptions, ExpiryFeeWindowMsArguments, ExpiryFeeWindowMsOptions, ExpiryMarket, ExpiryOptions, FeeIncentiveBalanceArguments, FeeIncentiveBalanceOptions, FeeIncentiveSubsidyArguments, FeeIncentiveSubsidyOptions, IdArguments, IdOptions, InventoryImpactChargeArguments, InventoryImpactChargeOptions, InventoryImpactMaxRateArguments, InventoryImpactMaxRateOptions, InventoryImpactReserveArguments, InventoryImpactReserveOptions, InventoryImpactScaleArguments, InventoryImpactScaleOptions, IsPendingValuationArguments, IsPendingValuationOptions, IsSettledArguments, IsSettledOptions, LiveOrderValueArguments, LiveOrderValueOptions, LoadLivePricerArguments, LoadLivePricerOptions, MintExactAmountArguments, MintExactAmountOptions, MintExactQuantityArguments, MintExactQuantityOptions, MintPausedArguments, MintPausedOptions, MintQuote, PayoutLiabilityArguments, PayoutLiabilityOptions, PenaltyFeeArguments, PenaltyFeeOptions, PremiumArguments, PremiumOptions, PropbookUnderlyingIdArguments, PropbookUnderlyingIdOptions, QuantityArguments, QuantityOptions, QuoteMintArguments, QuoteMintForAccountArguments, QuoteMintForAccountOptions, QuoteMintOptions, RedeemLiveArguments, RedeemLiveOptions, RedeemSettledArguments, RedeemSettledOptions, RedeemSettledPermissionlessArguments, RedeemSettledPermissionlessOptions, ReferenceTickArguments, ReferenceTickOptions, ReferenceTickSourceTimestampMsArguments, ReferenceTickSourceTimestampMsOptions, RequiredCashArguments, RequiredCashOptions, SetMintPausedArguments, SetMintPausedOptions, SetReferenceTickArguments, SetReferenceTickOptions, SettledOrderPayoutArguments, SettledOrderPayoutOptions, SettlementPriceArguments, SettlementPriceOptions, TickSizeArguments, TickSizeOptions, TradingFeeArguments, TradingFeeOptions, TrySettleArguments, TrySettleOptions, TrySettlementPriceArguments, TrySettlementPriceOptions, ValuationStamp, admissionTickSize, allInCost, backingBufferLambda, builderFee, cashBalance, currentNav, entryProbability, expiry, expiryFeeMaxMultiplier, expiryFeeWindowMs, feeIncentiveBalance, feeIncentiveSubsidy, id, inventoryImpactCharge, inventoryImpactMaxRate, inventoryImpactReserve, inventoryImpactScale, isPendingValuation, isSettled, liveOrderValue, loadLivePricer, mintExactAmount, mintExactQuantity, mintPaused, payoutLiability, penaltyFee, premium, propbookUnderlyingId, quantity, quoteMint, quoteMintForAccount, redeemLive, redeemSettled, redeemSettledPermissionless, referenceTick, referenceTickSourceTimestampMs, requiredCash, setMintPaused, setReferenceTick, settledOrderPayout, settlementPrice, tickSize, tradingFee, trySettle, trySettlementPrice };
9
+ }
10
+ declare const ValuationStamp: MoveStruct<{
11
+ flush_seq: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">; /** `cash.balance()` at the snapshot instant. */
12
+ snapshot_cash: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">; /** `cash.inventory_impact_reserve()` at the snapshot instant. */
13
+ snapshot_impact_reserve: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
14
+ }, "@local-pkg/deepbook_predict::expiry_market::ValuationStamp">;
15
+ declare const ExpiryMarket: MoveStruct<{
16
+ id: _mysten_sui_bcs40.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; /** Propbook underlying this market was created for. */
17
+ propbook_underlying_id: _mysten_sui_bcs40.BcsType<number, number, "u32">;
18
+ expiry: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">; /** USDC custody and payout backing. */
19
+ cash: MoveStruct<{
20
+ cash_balance: MoveStruct<{
21
+ value: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
22
+ }, "0x2::balance::Balance<phantom T>">;
23
+ inventory_impact_reserve: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
24
+ }, "@local-pkg/deepbook_predict::expiry_cash::ExpiryCash">; /** Sponsor-funded USDC available to subsidize this market's taker fees. */
25
+ fee_incentive_balance: MoveStruct<{
26
+ value: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
27
+ }, "0x2::balance::Balance<phantom T>">; /** Exposure lifecycle state for this expiry's strike ticks. */
28
+ strike_exposure: MoveStruct<{
29
+ expiry_market_id: _mysten_sui_bcs40.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
30
+ tick_size: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
31
+ admission_tick_size: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
32
+ reference_tick_source_timestamp_ms: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
33
+ reference_tick: _mysten_sui_bcs40.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
34
+ config: MoveStruct<{
35
+ backing_buffer_lambda: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
36
+ base_fee: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
37
+ min_fee: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
38
+ min_entry_probability: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
39
+ max_entry_probability: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
40
+ expiry_fee_window_ms: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
41
+ expiry_fee_max_multiplier: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
42
+ inventory_impact_max_rate: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
43
+ }, "@local-pkg/deepbook_predict::strike_exposure_config::StrikeExposureConfig">;
44
+ inventory_impact_scale: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
45
+ next_order_sequence: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
46
+ settlement_price: _mysten_sui_bcs40.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
47
+ settled_payout_liability: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
48
+ payout: MoveStruct<{
49
+ root: _mysten_sui_bcs40.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
50
+ nodes: MoveStruct<{
51
+ id: _mysten_sui_bcs40.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
52
+ size: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
53
+ }, "0x2::table::Table<phantom K, phantom V>">;
54
+ node_count: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
55
+ base: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
56
+ snapshot_seq: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
57
+ snapshot_active: _mysten_sui_bcs40.BcsType<boolean, boolean, "bool">;
58
+ snapshot_base: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
59
+ }, "@local-pkg/deepbook_predict::strike_payout_tree::StrikePayoutTree">;
60
+ }, "@local-pkg/deepbook_predict::strike_exposure::StrikeExposure">; /** Smoothed gas-price stats backing the congestion trade penalty. */
61
+ ewma: MoveStruct<{
62
+ mean: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
63
+ variance: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
64
+ last_updated_timestamp_ms: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
65
+ }, "@local-pkg/deepbook_predict::ewma::EwmaState">;
66
+ /**
67
+ * When true, new mints on this expiry abort. Other flows stay available. Admin
68
+ * sets/unsets it (version-gated); a `PauseCap` holder can force it true one-way
69
+ * through the registry (ungated kill switch).
70
+ */
71
+ mint_paused: _mysten_sui_bcs40.BcsType<boolean, boolean, "bool">;
72
+ /**
73
+ * `Some` from the flush's snapshot stage until this market's `value_expiry` (or
74
+ * lazily discarded once the stamp goes stale — see `ValuationStamp`). Trading is
75
+ * never gated on it and never touches it: the cash rows are captured eagerly here
76
+ * at the snapshot instant, and the payout tree captures its own boundary shadows
77
+ * as trades first touch each node.
78
+ */
79
+ valuation_stamp: _mysten_sui_bcs40.BcsType<{
80
+ flush_seq: bigint;
81
+ snapshot_cash: bigint;
82
+ snapshot_impact_reserve: bigint;
83
+ } | null, {
84
+ flush_seq: string | number | bigint;
85
+ snapshot_cash: string | number | bigint;
86
+ snapshot_impact_reserve: string | number | bigint;
87
+ } | null | undefined, "Option<@local-pkg/deepbook_predict::expiry_market::ValuationStamp>">;
88
+ }, "@local-pkg/deepbook_predict::expiry_market::ExpiryMarket">;
89
+ declare const MintQuote: MoveStruct<{
90
+ quantity: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
91
+ entry_probability: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
92
+ premium: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
93
+ trading_fee: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
94
+ fee_incentive_subsidy: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
95
+ builder_fee: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
96
+ penalty_fee: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
97
+ inventory_impact_charge: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
98
+ all_in_cost: _mysten_sui_bcs40.BcsType<bigint, string | number | bigint, "u64">;
99
+ }, "@local-pkg/deepbook_predict::expiry_market::MintQuote">;
100
+ interface IdArguments {
101
+ market: RawTransactionArgument<string>;
102
+ }
103
+ interface IdOptions {
104
+ package?: string;
105
+ arguments: IdArguments | [market: RawTransactionArgument<string>];
106
+ config?: {
107
+ predictPackageId?: string;
108
+ };
109
+ }
110
+ /** Return the market object ID for external discovery and PTB construction. */
111
+ declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
112
+ interface PropbookUnderlyingIdArguments {
113
+ market: RawTransactionArgument<string>;
114
+ }
115
+ interface PropbookUnderlyingIdOptions {
116
+ package?: string;
117
+ arguments: PropbookUnderlyingIdArguments | [market: RawTransactionArgument<string>];
118
+ config?: {
119
+ predictPackageId?: string;
120
+ };
121
+ }
122
+ /** Return the Propbook underlying for SDK and devInspect market reads. */
123
+ declare function propbookUnderlyingId(options: PropbookUnderlyingIdOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
124
+ interface ExpiryArguments {
125
+ market: RawTransactionArgument<string>;
126
+ }
127
+ interface ExpiryOptions {
128
+ package?: string;
129
+ arguments: ExpiryArguments | [market: RawTransactionArgument<string>];
130
+ config?: {
131
+ predictPackageId?: string;
132
+ };
133
+ }
134
+ /** Return the expiry timestamp for SDK and devInspect market reads. */
135
+ declare function expiry(options: ExpiryOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
136
+ interface SettlementPriceArguments {
137
+ market: RawTransactionArgument<string>;
138
+ }
139
+ interface SettlementPriceOptions {
140
+ package?: string;
141
+ arguments: SettlementPriceArguments | [market: RawTransactionArgument<string>];
142
+ config?: {
143
+ predictPackageId?: string;
144
+ };
145
+ }
146
+ /** Return the recorded settlement price. Aborts if the market is not settled. */
147
+ declare function settlementPrice(options: SettlementPriceOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
148
+ interface IsSettledArguments {
149
+ market: RawTransactionArgument<string>;
150
+ }
151
+ interface IsSettledOptions {
152
+ package?: string;
153
+ arguments: IsSettledArguments | [market: RawTransactionArgument<string>];
154
+ config?: {
155
+ predictPackageId?: string;
156
+ };
157
+ }
158
+ /**
159
+ * Return whether terminal settlement has been recorded for this market. Public
160
+ * read for SDK/devInspect settlement-state checks.
161
+ */
162
+ declare function isSettled(options: IsSettledOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
163
+ interface TrySettlementPriceArguments {
164
+ market: RawTransactionArgument<string>;
165
+ }
166
+ interface TrySettlementPriceOptions {
167
+ package?: string;
168
+ arguments: TrySettlementPriceArguments | [market: RawTransactionArgument<string>];
169
+ config?: {
170
+ predictPackageId?: string;
171
+ };
172
+ }
173
+ /**
174
+ * Return the recorded settlement price, or `none` while the market is live.
175
+ * Non-aborting companion to `settlement_price` for SDK/devInspect reads.
176
+ */
177
+ declare function trySettlementPrice(options: TrySettlementPriceOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
178
+ interface CashBalanceArguments {
179
+ market: RawTransactionArgument<string>;
180
+ }
181
+ interface CashBalanceOptions {
182
+ package?: string;
183
+ arguments: CashBalanceArguments | [market: RawTransactionArgument<string>];
184
+ config?: {
185
+ predictPackageId?: string;
186
+ };
187
+ }
188
+ /** Return expiry USDC custody for SDK and devInspect state reads. */
189
+ declare function cashBalance(options: CashBalanceOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
190
+ interface InventoryImpactReserveArguments {
191
+ market: RawTransactionArgument<string>;
192
+ }
193
+ interface InventoryImpactReserveOptions {
194
+ package?: string;
195
+ arguments: InventoryImpactReserveArguments | [market: RawTransactionArgument<string>];
196
+ config?: {
197
+ predictPackageId?: string;
198
+ };
199
+ }
200
+ /** Return the isolated inventory-impact escrow for SDK and devInspect state reads. */
201
+ declare function inventoryImpactReserve(options: InventoryImpactReserveOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
202
+ interface FeeIncentiveBalanceArguments {
203
+ market: RawTransactionArgument<string>;
204
+ }
205
+ interface FeeIncentiveBalanceOptions {
206
+ package?: string;
207
+ arguments: FeeIncentiveBalanceArguments | [market: RawTransactionArgument<string>];
208
+ config?: {
209
+ predictPackageId?: string;
210
+ };
211
+ }
212
+ /** Return local fee incentives for SDK and devInspect state reads. */
213
+ declare function feeIncentiveBalance(options: FeeIncentiveBalanceOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
214
+ interface BackingBufferLambdaArguments {
215
+ market: RawTransactionArgument<string>;
216
+ }
217
+ interface BackingBufferLambdaOptions {
218
+ package?: string;
219
+ arguments: BackingBufferLambdaArguments | [market: RawTransactionArgument<string>];
220
+ config?: {
221
+ predictPackageId?: string;
222
+ };
223
+ }
224
+ /** Return the snapshotted backing-buffer lambda for SDK and devInspect reads. */
225
+ declare function backingBufferLambda(options: BackingBufferLambdaOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
226
+ interface ExpiryFeeWindowMsArguments {
227
+ market: RawTransactionArgument<string>;
228
+ }
229
+ interface ExpiryFeeWindowMsOptions {
230
+ package?: string;
231
+ arguments: ExpiryFeeWindowMsArguments | [market: RawTransactionArgument<string>];
232
+ config?: {
233
+ predictPackageId?: string;
234
+ };
235
+ }
236
+ /** Return the snapshotted fee-ramp window for SDK and devInspect reads. */
237
+ declare function expiryFeeWindowMs(options: ExpiryFeeWindowMsOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
238
+ interface ExpiryFeeMaxMultiplierArguments {
239
+ market: RawTransactionArgument<string>;
240
+ }
241
+ interface ExpiryFeeMaxMultiplierOptions {
242
+ package?: string;
243
+ arguments: ExpiryFeeMaxMultiplierArguments | [market: RawTransactionArgument<string>];
244
+ config?: {
245
+ predictPackageId?: string;
246
+ };
247
+ }
248
+ /** Return the snapshotted fee-ramp multiplier for SDK and devInspect reads. */
249
+ declare function expiryFeeMaxMultiplier(options: ExpiryFeeMaxMultiplierOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
250
+ interface InventoryImpactMaxRateArguments {
251
+ market: RawTransactionArgument<string>;
252
+ }
253
+ interface InventoryImpactMaxRateOptions {
254
+ package?: string;
255
+ arguments: InventoryImpactMaxRateArguments | [market: RawTransactionArgument<string>];
256
+ config?: {
257
+ predictPackageId?: string;
258
+ };
259
+ }
260
+ /**
261
+ * Return this market's immutable maximum marginal inventory-impact rate for SDK
262
+ * and devInspect state reads.
263
+ */
264
+ declare function inventoryImpactMaxRate(options: InventoryImpactMaxRateOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
265
+ interface InventoryImpactScaleArguments {
266
+ market: RawTransactionArgument<string>;
267
+ }
268
+ interface InventoryImpactScaleOptions {
269
+ package?: string;
270
+ arguments: InventoryImpactScaleArguments | [market: RawTransactionArgument<string>];
271
+ config?: {
272
+ predictPackageId?: string;
273
+ };
274
+ }
275
+ /**
276
+ * Return the immutable USDC scale of this market's inventory-impact curve for SDK
277
+ * and devInspect state reads.
278
+ */
279
+ declare function inventoryImpactScale(options: InventoryImpactScaleOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
280
+ interface TickSizeArguments {
281
+ market: RawTransactionArgument<string>;
282
+ }
283
+ interface TickSizeOptions {
284
+ package?: string;
285
+ arguments: TickSizeArguments | [market: RawTransactionArgument<string>];
286
+ config?: {
287
+ predictPackageId?: string;
288
+ };
289
+ }
290
+ /**
291
+ * Return the strike tick size for SDK and devInspect range construction. Raw
292
+ * strikes are `tick * tick_size`.
293
+ */
294
+ declare function tickSize(options: TickSizeOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
295
+ interface AdmissionTickSizeArguments {
296
+ market: RawTransactionArgument<string>;
297
+ }
298
+ interface AdmissionTickSizeOptions {
299
+ package?: string;
300
+ arguments: AdmissionTickSizeArguments | [market: RawTransactionArgument<string>];
301
+ config?: {
302
+ predictPackageId?: string;
303
+ };
304
+ }
305
+ /** Return the admission-grid step for SDK and devInspect range construction. */
306
+ declare function admissionTickSize(options: AdmissionTickSizeOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
307
+ interface ReferenceTickArguments {
308
+ market: RawTransactionArgument<string>;
309
+ }
310
+ interface ReferenceTickOptions {
311
+ package?: string;
312
+ arguments: ReferenceTickArguments | [market: RawTransactionArgument<string>];
313
+ config?: {
314
+ predictPackageId?: string;
315
+ };
316
+ }
317
+ /** Return the admitted reference tick for SDK and devInspect range construction. */
318
+ declare function referenceTick(options: ReferenceTickOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
319
+ interface ReferenceTickSourceTimestampMsArguments {
320
+ market: RawTransactionArgument<string>;
321
+ }
322
+ interface ReferenceTickSourceTimestampMsOptions {
323
+ package?: string;
324
+ arguments: ReferenceTickSourceTimestampMsArguments | [market: RawTransactionArgument<string>];
325
+ config?: {
326
+ predictPackageId?: string;
327
+ };
328
+ }
329
+ /** Return the reference observation timestamp for SDK and devInspect reads. */
330
+ declare function referenceTickSourceTimestampMs(options: ReferenceTickSourceTimestampMsOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
331
+ interface PayoutLiabilityArguments {
332
+ market: RawTransactionArgument<string>;
333
+ }
334
+ interface PayoutLiabilityOptions {
335
+ package?: string;
336
+ arguments: PayoutLiabilityArguments | [market: RawTransactionArgument<string>];
337
+ config?: {
338
+ predictPackageId?: string;
339
+ };
340
+ }
341
+ /**
342
+ * Return payout reserve or settled liability for external accounting
343
+ * observability.
344
+ */
345
+ declare function payoutLiability(options: PayoutLiabilityOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
346
+ interface RequiredCashArguments {
347
+ market: RawTransactionArgument<string>;
348
+ }
349
+ interface RequiredCashOptions {
350
+ package?: string;
351
+ arguments: RequiredCashArguments | [market: RawTransactionArgument<string>];
352
+ config?: {
353
+ predictPackageId?: string;
354
+ };
355
+ }
356
+ /** Return required expiry cash for external accounting observability. */
357
+ declare function requiredCash(options: RequiredCashOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
358
+ interface LoadLivePricerArguments {
359
+ market: RawTransactionArgument<string>;
360
+ config?: RawTransactionArgument<string>;
361
+ propbookRegistry?: RawTransactionArgument<string>;
362
+ pyth: RawTransactionArgument<string>;
363
+ bsValues: RawTransactionArgument<string>;
364
+ bsSvi: RawTransactionArgument<string>;
365
+ }
366
+ interface LoadLivePricerOptions {
367
+ package?: string;
368
+ arguments: LoadLivePricerArguments;
369
+ config?: {
370
+ protocolConfig: ConfigValue;
371
+ oracleRegistry: ConfigValue;
372
+ predictPackageId?: string;
373
+ };
374
+ }
375
+ /**
376
+ * Load a PTB-local live pricing snapshot for this market.
377
+ *
378
+ * The returned `Pricer` is bound to `market.id()` and can be passed into live
379
+ * mint, redeem, and NAV functions in the same transaction.
380
+ *
381
+ * Aborts `pricing::EOracleWrittenInThisTransaction` when any observation that
382
+ * feeds the returned forward or SVI was written in this transaction (RP-24).
383
+ * Independently submitted refresh-then-trade PTBs are unaffected: the guard
384
+ * compares observation `writer_digest` to `tx_context::digest()`, not sender
385
+ * identity, and does not prohibit reads of older observations.
386
+ */
387
+ declare function loadLivePricer(options: LoadLivePricerOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
388
+ interface IsPendingValuationArguments {
389
+ market: RawTransactionArgument<string>;
390
+ config?: RawTransactionArgument<string>;
391
+ }
392
+ interface IsPendingValuationOptions {
393
+ package?: string;
394
+ arguments: IsPendingValuationArguments;
395
+ config?: {
396
+ protocolConfig: ConfigValue;
397
+ predictPackageId?: string;
398
+ };
399
+ }
400
+ /**
401
+ * Return whether this market is snapshotted into the in-flight flush and still
402
+ * awaiting its `value_expiry`. For SDK, keeper, and devInspect reads. It gates
403
+ * nothing: settlement and trading both run regardless — the frozen mark is
404
+ * settlement-invariant, so a stamped market settles the instant it expires. Do not
405
+ * defer a settlement attempt on this read.
406
+ */
407
+ declare function isPendingValuation(options: IsPendingValuationOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
408
+ interface CurrentNavArguments {
409
+ market: RawTransactionArgument<string>;
410
+ pricer: TransactionArgument;
411
+ }
412
+ interface CurrentNavOptions {
413
+ package?: string;
414
+ arguments: CurrentNavArguments | [market: RawTransactionArgument<string>, pricer: TransactionArgument];
415
+ config?: {
416
+ predictPackageId?: string;
417
+ };
418
+ }
419
+ /**
420
+ * Return live marked NAV as free expiry cash minus the exposure book's marked
421
+ * liability, floored at zero. This read requires a market-bound pre-expiry
422
+ * `Pricer`; an expired but unsettled market cannot be valued through this path.
423
+ * Public for PTB composition and devInspect pool valuation.
424
+ */
425
+ declare function currentNav(options: CurrentNavOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
426
+ interface LiveOrderValueArguments {
427
+ market: RawTransactionArgument<string>;
428
+ pricer: TransactionArgument;
429
+ orderId: RawTransactionArgument<number | bigint>;
430
+ }
431
+ interface LiveOrderValueOptions {
432
+ package?: string;
433
+ arguments: LiveOrderValueArguments | [market: RawTransactionArgument<string>, pricer: TransactionArgument, orderId: RawTransactionArgument<number | bigint>];
434
+ config?: {
435
+ predictPackageId?: string;
436
+ };
437
+ }
438
+ /**
439
+ * Return one live order's full-close range value before fees. Requires a
440
+ * market-bound `Pricer` and does not prove account ownership of `order_id`. Public
441
+ * for SDK, PTB, and devInspect position valuation.
442
+ */
443
+ declare function liveOrderValue(options: LiveOrderValueOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
444
+ interface SettledOrderPayoutArguments {
445
+ market: RawTransactionArgument<string>;
446
+ orderId: RawTransactionArgument<number | bigint>;
447
+ }
448
+ interface SettledOrderPayoutOptions {
449
+ package?: string;
450
+ arguments: SettledOrderPayoutArguments | [market: RawTransactionArgument<string>, orderId: RawTransactionArgument<number | bigint>];
451
+ config?: {
452
+ predictPackageId?: string;
453
+ };
454
+ }
455
+ /**
456
+ * Return one settled order's terminal payout. This function does not prove account
457
+ * ownership of `order_id`. Public for SDK, PTB, and devInspect position valuation.
458
+ */
459
+ declare function settledOrderPayout(options: SettledOrderPayoutOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
460
+ interface MintPausedArguments {
461
+ market: RawTransactionArgument<string>;
462
+ }
463
+ interface MintPausedOptions {
464
+ package?: string;
465
+ arguments: MintPausedArguments | [market: RawTransactionArgument<string>];
466
+ config?: {
467
+ predictPackageId?: string;
468
+ };
469
+ }
470
+ /** Return the market mint-pause state for SDK and devInspect reads. */
471
+ declare function mintPaused(options: MintPausedOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
472
+ interface QuoteMintArguments {
473
+ market: RawTransactionArgument<string>;
474
+ config?: RawTransactionArgument<string>;
475
+ pricer: TransactionArgument;
476
+ lowerTick: RawTransactionArgument<number | bigint>;
477
+ higherTick: RawTransactionArgument<number | bigint>;
478
+ maxPremium: RawTransactionArgument<number | bigint>;
479
+ minQuantity: RawTransactionArgument<number | bigint>;
480
+ exactQuantity: RawTransactionArgument<boolean>;
481
+ }
482
+ interface QuoteMintOptions {
483
+ package?: string;
484
+ arguments: QuoteMintArguments;
485
+ config?: {
486
+ protocolConfig: ConfigValue;
487
+ predictPackageId?: string;
488
+ };
489
+ }
490
+ /**
491
+ * Quote the all-in cost of a mint request for an anonymous taker (no builder code)
492
+ * without mutating any market state. Exact-quantity mode uses `min_quantity`;
493
+ * budget mode conservatively sizes a lot-rounded fill under `max_premium`. The
494
+ * quote applies live-mint and admission gates but does not preflight account
495
+ * balance, slippage caps, or exposure-index capacity. Its penalty uses the current
496
+ * pre-update EWMA state. Public for SDK and devInspect pre-trade pricing.
497
+ */
498
+ declare function quoteMint(options: QuoteMintOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
499
+ interface QuoteMintForAccountArguments {
500
+ market: RawTransactionArgument<string>;
501
+ wrapper: RawTransactionArgument<string>;
502
+ config?: RawTransactionArgument<string>;
503
+ pricer: TransactionArgument;
504
+ lowerTick: RawTransactionArgument<number | bigint>;
505
+ higherTick: RawTransactionArgument<number | bigint>;
506
+ maxPremium: RawTransactionArgument<number | bigint>;
507
+ minQuantity: RawTransactionArgument<number | bigint>;
508
+ exactQuantity: RawTransactionArgument<boolean>;
509
+ }
510
+ interface QuoteMintForAccountOptions {
511
+ package?: string;
512
+ arguments: QuoteMintForAccountArguments;
513
+ config?: {
514
+ protocolConfig: ConfigValue;
515
+ predictPackageId?: string;
516
+ };
517
+ }
518
+ /**
519
+ * Quote the all-in cost of a mint request for one account, reading its builder
520
+ * code. Budget mode caps premium by total account balance, including unsettled
521
+ * accumulator funds. Public for SDK and devInspect pre-trade pricing.
522
+ */
523
+ declare function quoteMintForAccount(options: QuoteMintForAccountOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
524
+ interface QuantityArguments {
525
+ quote: TransactionArgument;
526
+ }
527
+ interface QuantityOptions {
528
+ package?: string;
529
+ arguments: QuantityArguments | [quote: TransactionArgument];
530
+ config?: {
531
+ predictPackageId?: string;
532
+ };
533
+ }
534
+ /** Return the sized quantity for SDK and devInspect quote consumers. */
535
+ declare function quantity(options: QuantityOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
536
+ interface EntryProbabilityArguments {
537
+ quote: TransactionArgument;
538
+ }
539
+ interface EntryProbabilityOptions {
540
+ package?: string;
541
+ arguments: EntryProbabilityArguments | [quote: TransactionArgument];
542
+ config?: {
543
+ predictPackageId?: string;
544
+ };
545
+ }
546
+ /** Return the quoted range probability for SDK and devInspect consumers. */
547
+ declare function entryProbability(options: EntryProbabilityOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
548
+ interface PremiumArguments {
549
+ quote: TransactionArgument;
550
+ }
551
+ interface PremiumOptions {
552
+ package?: string;
553
+ arguments: PremiumArguments | [quote: TransactionArgument];
554
+ config?: {
555
+ predictPackageId?: string;
556
+ };
557
+ }
558
+ /** Return the quoted premium for SDK and devInspect consumers. */
559
+ declare function premium(options: PremiumOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
560
+ interface TradingFeeArguments {
561
+ quote: TransactionArgument;
562
+ }
563
+ interface TradingFeeOptions {
564
+ package?: string;
565
+ arguments: TradingFeeArguments | [quote: TransactionArgument];
566
+ config?: {
567
+ predictPackageId?: string;
568
+ };
569
+ }
570
+ /** Return the quoted trading fee before subsidy for SDK and devInspect consumers. */
571
+ declare function tradingFee(options: TradingFeeOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
572
+ interface FeeIncentiveSubsidyArguments {
573
+ quote: TransactionArgument;
574
+ }
575
+ interface FeeIncentiveSubsidyOptions {
576
+ package?: string;
577
+ arguments: FeeIncentiveSubsidyArguments | [quote: TransactionArgument];
578
+ config?: {
579
+ predictPackageId?: string;
580
+ };
581
+ }
582
+ /**
583
+ * Return the sponsor-funded portion of the quoted fee for SDK and devInspect
584
+ * consumers.
585
+ */
586
+ declare function feeIncentiveSubsidy(options: FeeIncentiveSubsidyOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
587
+ interface BuilderFeeArguments {
588
+ quote: TransactionArgument;
589
+ }
590
+ interface BuilderFeeOptions {
591
+ package?: string;
592
+ arguments: BuilderFeeArguments | [quote: TransactionArgument];
593
+ config?: {
594
+ predictPackageId?: string;
595
+ };
596
+ }
597
+ /** Return the quoted builder fee for SDK and devInspect consumers. */
598
+ declare function builderFee(options: BuilderFeeOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
599
+ interface PenaltyFeeArguments {
600
+ quote: TransactionArgument;
601
+ }
602
+ interface PenaltyFeeOptions {
603
+ package?: string;
604
+ arguments: PenaltyFeeArguments | [quote: TransactionArgument];
605
+ config?: {
606
+ predictPackageId?: string;
607
+ };
608
+ }
609
+ /** Return the quoted EWMA congestion surcharge for SDK and devInspect consumers. */
610
+ declare function penaltyFee(options: PenaltyFeeOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
611
+ interface InventoryImpactChargeArguments {
612
+ quote: TransactionArgument;
613
+ }
614
+ interface InventoryImpactChargeOptions {
615
+ package?: string;
616
+ arguments: InventoryImpactChargeArguments | [quote: TransactionArgument];
617
+ config?: {
618
+ predictPackageId?: string;
619
+ };
620
+ }
621
+ /**
622
+ * Return the separate inventory-impact charge for SDK and devInspect quote
623
+ * consumers.
624
+ */
625
+ declare function inventoryImpactCharge(options: InventoryImpactChargeOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
626
+ interface AllInCostArguments {
627
+ quote: TransactionArgument;
628
+ }
629
+ interface AllInCostOptions {
630
+ package?: string;
631
+ arguments: AllInCostArguments | [quote: TransactionArgument];
632
+ config?: {
633
+ predictPackageId?: string;
634
+ };
635
+ }
636
+ /** Return the total quoted account withdrawal for SDK and devInspect consumers. */
637
+ declare function allInCost(options: AllInCostOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
638
+ interface MintExactQuantityArguments {
639
+ market: RawTransactionArgument<string>;
640
+ wrapper: RawTransactionArgument<string>;
641
+ auth: TransactionArgument;
642
+ config?: RawTransactionArgument<string>;
643
+ pricer: TransactionArgument;
644
+ lowerTick: RawTransactionArgument<number | bigint>;
645
+ higherTick: RawTransactionArgument<number | bigint>;
646
+ quantity: RawTransactionArgument<number | bigint>;
647
+ maxCost: RawTransactionArgument<number | bigint>;
648
+ maxProbability: RawTransactionArgument<number | bigint>;
649
+ }
650
+ interface MintExactQuantityOptions {
651
+ package?: string;
652
+ arguments: MintExactQuantityArguments;
653
+ config?: {
654
+ protocolConfig: ConfigValue;
655
+ predictPackageId?: string;
656
+ };
657
+ }
658
+ /**
659
+ * Mint an exact live position quantity against this expiry market.
660
+ *
661
+ * Requires the running package version to be at or above the protocol version
662
+ * watermark, per-market mint pause to be off, trading globally enabled, valid
663
+ * owner or authorized-app account auth, a market-bound live `Pricer`, and enough
664
+ * expiry cash to back the post-mint max payout. Mint fees are paid by routing a
665
+ * withdraw through the loaded account. The position's strike range is the tick
666
+ * pair `(lower_tick, higher_tick]` (`lower_tick = 0` is `-inf`,
667
+ * `higher_tick = pos_inf_tick` is `+inf`); the SDK converts raw strikes to ticks.
668
+ * `max_cost` caps the all-in USDC withdrawal, while `max_probability` caps the
669
+ * quoted per-contract probability before fees. Callers can pass
670
+ * `std::u64::max_value!()` for either uncapped guard. Returns the minted order ID
671
+ * for future order-scoped flows.
672
+ */
673
+ declare function mintExactQuantity(options: MintExactQuantityOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
674
+ interface MintExactAmountArguments {
675
+ market: RawTransactionArgument<string>;
676
+ wrapper: RawTransactionArgument<string>;
677
+ auth: TransactionArgument;
678
+ config?: RawTransactionArgument<string>;
679
+ pricer: TransactionArgument;
680
+ lowerTick: RawTransactionArgument<number | bigint>;
681
+ higherTick: RawTransactionArgument<number | bigint>;
682
+ maxPremium: RawTransactionArgument<number | bigint>;
683
+ minQuantity: RawTransactionArgument<number | bigint>;
684
+ maxCost: RawTransactionArgument<number | bigint>;
685
+ }
686
+ interface MintExactAmountOptions {
687
+ package?: string;
688
+ arguments: MintExactAmountArguments;
689
+ config?: {
690
+ protocolConfig: ConfigValue;
691
+ predictPackageId?: string;
692
+ };
693
+ }
694
+ /**
695
+ * Mint a conservatively sized lot-rounded position whose premium does not exceed
696
+ * `max_premium`. The result may be one lot below the largest fitting quantity and
697
+ * must meet `min_quantity`.
698
+ *
699
+ * Fees, builder fees, and EWMA congestion penalties are charged on top of
700
+ * `max_premium`, so `max_cost` — not `max_premium` — bounds the all-in USDC
701
+ * withdrawal (`premium + trader-paid fee + builder_fee + EWMA penalty`).
702
+ * `max_cost` is required: unlike `mint_exact_quantity`'s guards there is no value
703
+ * that disables it, because the budget shape exists to bound spend. The sizing
704
+ * budget is first capped to the account's available USDC after settlement; fees
705
+ * still require additional available USDC at payment time. Any unspent premium
706
+ * dust remains in the account because order quantity must be an integer number of
707
+ * `position_lot_size` lots.
708
+ */
709
+ declare function mintExactAmount(options: MintExactAmountOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
710
+ interface RedeemLiveArguments {
711
+ market: RawTransactionArgument<string>;
712
+ wrapper: RawTransactionArgument<string>;
713
+ auth: TransactionArgument;
714
+ config?: RawTransactionArgument<string>;
715
+ pricer: TransactionArgument;
716
+ orderId: RawTransactionArgument<number | bigint>;
717
+ closeQuantity: RawTransactionArgument<number | bigint>;
718
+ minProbability: RawTransactionArgument<number | bigint>;
719
+ minProceeds: RawTransactionArgument<number | bigint>;
720
+ }
721
+ interface RedeemLiveOptions {
722
+ package?: string;
723
+ arguments: RedeemLiveArguments;
724
+ config?: {
725
+ protocolConfig: ConfigValue;
726
+ predictPackageId?: string;
727
+ };
728
+ }
729
+ /**
730
+ * Redeem a live order you hold account authority over.
731
+ *
732
+ * A live order is priced and closed (partial or full). Settled orders must use
733
+ * `redeem_settled`. Returns a replacement order ID only when a partial close
734
+ * leaves quantity open.
735
+ *
736
+ * Two close-side slippage floors, the mirror of mint's `max_probability` /
737
+ * `max_cost` pair; pass `0` to disable either. `min_probability` floors the quoted
738
+ * per-contract range probability (same units as mint's `max_probability`).
739
+ * `min_proceeds` floors the all-in net USDC credited to the account
740
+ * (`redeem_amount` minus trading fee, builder fee, and EWMA penalty), the mirror
741
+ * of mint's all-in `max_cost`.
742
+ */
743
+ declare function redeemLive(options: RedeemLiveOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
744
+ interface RedeemSettledArguments {
745
+ market: RawTransactionArgument<string>;
746
+ wrapper: RawTransactionArgument<string>;
747
+ auth: TransactionArgument;
748
+ config?: RawTransactionArgument<string>;
749
+ orderId: RawTransactionArgument<number | bigint>;
750
+ }
751
+ interface RedeemSettledOptions {
752
+ package?: string;
753
+ arguments: RedeemSettledArguments;
754
+ config?: {
755
+ protocolConfig: ConfigValue;
756
+ predictPackageId?: string;
757
+ };
758
+ }
759
+ /**
760
+ * Redeem a settled order you hold account authority over.
761
+ *
762
+ * The market must be settled already; this flow does not run live pricing.
763
+ * Explicit owner auth remains available when Predict app automation is
764
+ * deauthorized; another authorized app may also supply valid account auth.
765
+ */
766
+ declare function redeemSettled(options: RedeemSettledOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
767
+ interface RedeemSettledPermissionlessArguments {
768
+ market: RawTransactionArgument<string>;
769
+ accountRegistry: RawTransactionArgument<string>;
770
+ wrapper: RawTransactionArgument<string>;
771
+ config?: RawTransactionArgument<string>;
772
+ orderId: RawTransactionArgument<number | bigint>;
773
+ }
774
+ interface RedeemSettledPermissionlessOptions {
775
+ package?: string;
776
+ arguments: RedeemSettledPermissionlessArguments;
777
+ config?: {
778
+ protocolConfig: ConfigValue;
779
+ predictPackageId?: string;
780
+ };
781
+ }
782
+ /**
783
+ * Permissionlessly redeem a settled order without account-owner authority.
784
+ *
785
+ * This keeper path uses Predict app-auth from the account registry, so
786
+ * `deauthorize_app<PredictApp>` disables this automation. Owners can still use
787
+ * `redeem_settled` with owner auth to redeem their own settled positions.
788
+ */
789
+ declare function redeemSettledPermissionless(options: RedeemSettledPermissionlessOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
790
+ interface SetReferenceTickArguments {
791
+ market: RawTransactionArgument<string>;
792
+ config?: RawTransactionArgument<string>;
793
+ propbookRegistry?: RawTransactionArgument<string>;
794
+ pyth: RawTransactionArgument<string>;
795
+ }
796
+ interface SetReferenceTickOptions {
797
+ package?: string;
798
+ arguments: SetReferenceTickArguments;
799
+ config?: {
800
+ protocolConfig: ConfigValue;
801
+ oracleRegistry: ConfigValue;
802
+ predictPackageId?: string;
803
+ };
804
+ }
805
+ /**
806
+ * Set this expiry's reference fine-grid tick from the exact previous-window
807
+ * Propbook Pyth observation. The source observation must be inserted into the feed
808
+ * at `reference_tick_source_timestamp_ms` before this call, and the normalized
809
+ * spot is floored to the market's `tick_size`. Not gated on the valuation lock:
810
+ * the reference tick shapes mint admission only, and a mint it admits mid-flush is
811
+ * invisible to the captured snapshot like any other.
812
+ */
813
+ declare function setReferenceTick(options: SetReferenceTickOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
814
+ interface SetMintPausedArguments {
815
+ market: RawTransactionArgument<string>;
816
+ config?: RawTransactionArgument<string>;
817
+ AdminCap: RawTransactionArgument<string>;
818
+ paused: RawTransactionArgument<boolean>;
819
+ }
820
+ interface SetMintPausedOptions {
821
+ package?: string;
822
+ arguments: SetMintPausedArguments;
823
+ config?: {
824
+ protocolConfig: ConfigValue;
825
+ predictPackageId?: string;
826
+ };
827
+ }
828
+ /**
829
+ * Set whether new mints are paused on this expiry market. Admin-only and
830
+ * version-gated. A `PauseCap` holder can force-engage the pause one-way under a
831
+ * version freeze via `registry::pause_expiry_market_mint_pause_cap`.
832
+ */
833
+ declare function setMintPaused(options: SetMintPausedOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
834
+ interface TrySettleArguments {
835
+ market: RawTransactionArgument<string>;
836
+ config?: RawTransactionArgument<string>;
837
+ propbookRegistry?: RawTransactionArgument<string>;
838
+ pyth: RawTransactionArgument<string>;
839
+ bsValues: RawTransactionArgument<string>;
840
+ }
841
+ interface TrySettleOptions {
842
+ package?: string;
843
+ arguments: TrySettleArguments;
844
+ config?: {
845
+ protocolConfig: ConfigValue;
846
+ oracleRegistry: ConfigValue;
847
+ predictPackageId?: string;
848
+ };
849
+ }
850
+ /**
851
+ * Settle from Propbook's exact positive Pyth spot at expiry, or from the exact
852
+ * Block Scholes minute-boundary spot when Pyth remains unavailable after the
853
+ * compiled grace period. Permissionless and idempotent; missing or unusable
854
+ * observations leave the market unsettled.
855
+ */
856
+ declare function trySettle(options: TrySettleOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
857
+ //#endregion
858
+ export { expiry_market_d_exports };
859
+ //# sourceMappingURL=expiry_market.d.mts.map