@mysten/deepbook-v3 2.5.1 → 2.6.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.
- package/CHANGELOG.md +29 -0
- package/PREDICT.md +160 -12
- package/dist/contracts/account/account.d.mts +23 -23
- package/dist/contracts/account/account_events.d.mts +20 -20
- package/dist/contracts/account/account_events.d.mts.map +1 -1
- package/dist/contracts/account/account_registry.d.mts +13 -13
- package/dist/contracts/deepbook/balances.d.mts +4 -4
- package/dist/contracts/deepbook/order.d.mts +12 -12
- package/dist/contracts/deepbook_predict/admin.d.mts +4 -4
- package/dist/contracts/deepbook_predict/builder_code.d.mts +11 -11
- package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
- package/dist/contracts/deepbook_predict/config_events.d.mts +67 -67
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +176 -96
- package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/expiry_market.mjs +114 -1
- package/dist/contracts/deepbook_predict/expiry_market.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/market_manager.d.mts +27 -27
- package/dist/contracts/deepbook_predict/order_events.d.mts +50 -50
- package/dist/contracts/deepbook_predict/pause_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/plp.d.mts +72 -72
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/predict_account.d.mts +14 -14
- package/dist/contracts/deepbook_predict/pricing.d.mts +53 -53
- package/dist/contracts/deepbook_predict/protocol_config.d.mts +64 -64
- package/dist/contracts/deepbook_predict/range_codec.d.mts +2 -2
- package/dist/contracts/deepbook_predict/registry.d.mts +28 -28
- package/dist/contracts/deepbook_predict/strike_exposure.mjs +12 -0
- package/dist/contracts/deepbook_predict/strike_exposure.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/vault_events.d.mts +105 -105
- package/dist/contracts/deepbook_sessions/session_config.d.mts +4 -4
- package/dist/contracts/deepbook_sessions/sessions.d.mts +35 -10
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/contracts/deepbook_sessions/sessions.mjs +44 -1
- package/dist/contracts/deepbook_sessions/sessions.mjs.map +1 -1
- package/dist/deployments/mainnet.d.mts.map +1 -1
- package/dist/deployments/mainnet.mjs +2 -0
- package/dist/deployments/mainnet.mjs.map +1 -1
- package/dist/deployments/testnet.d.mts.map +1 -1
- package/dist/deployments/testnet.mjs +4 -2
- package/dist/deployments/testnet.mjs.map +1 -1
- package/dist/deployments/types.d.mts +1 -1
- package/dist/predict/client.d.mts +12 -3
- package/dist/predict/client.d.mts.map +1 -1
- package/dist/predict/client.mjs +39 -18
- package/dist/predict/client.mjs.map +1 -1
- package/dist/predict/config/generated.d.mts +3 -2
- package/dist/predict/config/generated.d.mts.map +1 -1
- package/dist/predict/config/generated.mjs +1 -0
- package/dist/predict/config/generated.mjs.map +1 -1
- package/dist/predict/config/types.d.mts +3 -0
- package/dist/predict/config/types.d.mts.map +1 -1
- package/dist/predict/cost.d.mts +353 -0
- package/dist/predict/cost.d.mts.map +1 -0
- package/dist/predict/cost.mjs +555 -0
- package/dist/predict/cost.mjs.map +1 -0
- package/dist/predict/decode.mjs +6 -7
- package/dist/predict/decode.mjs.map +1 -1
- package/dist/predict/index.d.mts +3 -2
- package/dist/predict/index.mjs +2 -1
- package/dist/predict/pricing.mjs +1 -1
- package/dist/predict/reads/positions.mjs +1 -1
- package/dist/predict/reads/positions.mjs.map +1 -1
- package/dist/predict/tx/trade.d.mts.map +1 -1
- package/dist/predict/tx/trade.mjs +18 -2
- package/dist/predict/tx/trade.mjs.map +1 -1
- package/dist/sessions.d.mts +17 -1
- package/dist/sessions.d.mts.map +1 -1
- package/dist/sessions.mjs +22 -2
- package/dist/sessions.mjs.map +1 -1
- package/dist/transactions/balanceManager.d.mts +12 -12
- package/dist/transactions/deepbook.d.mts +20 -20
- package/dist/transactions/deepbookAdmin.d.mts +4 -4
- package/dist/transactions/deepbookAdmin.d.mts.map +1 -1
- package/dist/transactions/marginAdmin.d.mts +7 -7
- package/dist/transactions/marginAdmin.d.mts.map +1 -1
- package/dist/transactions/marginLiquidations.d.mts +3 -3
- package/dist/transactions/marginMaintainer.d.mts +5 -5
- package/dist/transactions/marginMaintainer.d.mts.map +1 -1
- package/dist/transactions/marginManager.d.mts +32 -32
- package/dist/transactions/marginPool.d.mts +18 -18
- package/dist/transactions/marginRegistry.d.mts +16 -16
- package/dist/transactions/marginTPSL.d.mts +10 -10
- package/dist/transactions/poolProxy.d.mts +8 -8
- package/package.json +2 -2
- package/src/contracts/deepbook_predict/expiry_market.ts +160 -0
- package/src/contracts/deepbook_predict/strike_exposure.ts +14 -0
- package/src/contracts/deepbook_sessions/sessions.ts +68 -0
- package/src/deployments/mainnet.ts +4 -1
- package/src/deployments/testnet.ts +6 -3
- package/src/deployments/types.ts +4 -2
- package/src/predict/client.ts +80 -27
- package/src/predict/config/generated.ts +4 -2
- package/src/predict/config/types.ts +3 -0
- package/src/predict/cost.ts +1022 -0
- package/src/predict/decode.ts +8 -8
- package/src/predict/index.ts +9 -0
- package/src/predict/reads/positions.ts +1 -1
- package/src/predict/tx/trade.ts +30 -1
- package/src/sessions.ts +37 -2
|
@@ -1,74 +1,74 @@
|
|
|
1
1
|
import { ConfigValue, MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs307 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions212 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict/expiry_market.d.ts
|
|
7
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 };
|
|
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, MintExactCostArguments, MintExactCostOptions, MintExactQuantityArguments, MintExactQuantityOptions, MintPausedArguments, MintPausedOptions, MintQuote, PayoutLiabilityArguments, PayoutLiabilityOptions, PenaltyFeeArguments, PenaltyFeeOptions, PremiumArguments, PremiumOptions, PropbookUnderlyingIdArguments, PropbookUnderlyingIdOptions, QuantityArguments, QuantityOptions, QuoteMintArguments, QuoteMintExactCostForAccountArguments, QuoteMintExactCostForAccountOptions, 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, mintExactCost, mintExactQuantity, mintPaused, payoutLiability, penaltyFee, premium, propbookUnderlyingId, quantity, quoteMint, quoteMintExactCostForAccount, quoteMintForAccount, redeemLive, redeemSettled, redeemSettledPermissionless, referenceTick, referenceTickSourceTimestampMs, requiredCash, setMintPaused, setReferenceTick, settledOrderPayout, settlementPrice, tickSize, tradingFee, trySettle, trySettlementPrice };
|
|
9
9
|
}
|
|
10
10
|
declare const ValuationStamp: MoveStruct<{
|
|
11
|
-
flush_seq:
|
|
12
|
-
snapshot_cash:
|
|
13
|
-
snapshot_impact_reserve:
|
|
11
|
+
flush_seq: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">; /** `cash.balance()` at the snapshot instant. */
|
|
12
|
+
snapshot_cash: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">; /** `cash.inventory_impact_reserve()` at the snapshot instant. */
|
|
13
|
+
snapshot_impact_reserve: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
14
14
|
}, "@local-pkg/deepbook_predict::expiry_market::ValuationStamp">;
|
|
15
15
|
declare const ExpiryMarket: MoveStruct<{
|
|
16
|
-
id:
|
|
17
|
-
propbook_underlying_id:
|
|
18
|
-
expiry:
|
|
16
|
+
id: _mysten_sui_bcs307.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; /** Propbook underlying this market was created for. */
|
|
17
|
+
propbook_underlying_id: _mysten_sui_bcs307.BcsType<number, number, "u32">;
|
|
18
|
+
expiry: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">; /** USDC custody and payout backing. */
|
|
19
19
|
cash: MoveStruct<{
|
|
20
20
|
cash_balance: MoveStruct<{
|
|
21
|
-
value:
|
|
21
|
+
value: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
22
22
|
}, "0x2::balance::Balance<phantom T>">;
|
|
23
|
-
inventory_impact_reserve:
|
|
23
|
+
inventory_impact_reserve: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
24
24
|
}, "@local-pkg/deepbook_predict::expiry_cash::ExpiryCash">; /** Sponsor-funded USDC available to subsidize this market's taker fees. */
|
|
25
25
|
fee_incentive_balance: MoveStruct<{
|
|
26
|
-
value:
|
|
26
|
+
value: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
27
27
|
}, "0x2::balance::Balance<phantom T>">; /** Exposure lifecycle state for this expiry's strike ticks. */
|
|
28
28
|
strike_exposure: MoveStruct<{
|
|
29
|
-
expiry_market_id:
|
|
30
|
-
tick_size:
|
|
31
|
-
admission_tick_size:
|
|
32
|
-
reference_tick_source_timestamp_ms:
|
|
33
|
-
reference_tick:
|
|
29
|
+
expiry_market_id: _mysten_sui_bcs307.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
30
|
+
tick_size: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
31
|
+
admission_tick_size: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
32
|
+
reference_tick_source_timestamp_ms: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
33
|
+
reference_tick: _mysten_sui_bcs307.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
34
34
|
config: MoveStruct<{
|
|
35
|
-
backing_buffer_lambda:
|
|
36
|
-
base_fee:
|
|
37
|
-
min_fee:
|
|
38
|
-
min_entry_probability:
|
|
39
|
-
max_entry_probability:
|
|
40
|
-
expiry_fee_window_ms:
|
|
41
|
-
expiry_fee_max_multiplier:
|
|
42
|
-
inventory_impact_max_rate:
|
|
35
|
+
backing_buffer_lambda: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
36
|
+
base_fee: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
37
|
+
min_fee: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
38
|
+
min_entry_probability: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
39
|
+
max_entry_probability: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
40
|
+
expiry_fee_window_ms: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
41
|
+
expiry_fee_max_multiplier: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
42
|
+
inventory_impact_max_rate: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
43
43
|
}, "@local-pkg/deepbook_predict::strike_exposure_config::StrikeExposureConfig">;
|
|
44
|
-
inventory_impact_scale:
|
|
45
|
-
next_order_sequence:
|
|
46
|
-
settlement_price:
|
|
47
|
-
settled_payout_liability:
|
|
44
|
+
inventory_impact_scale: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
45
|
+
next_order_sequence: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
46
|
+
settlement_price: _mysten_sui_bcs307.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
47
|
+
settled_payout_liability: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
48
48
|
payout: MoveStruct<{
|
|
49
|
-
root:
|
|
49
|
+
root: _mysten_sui_bcs307.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
50
50
|
nodes: MoveStruct<{
|
|
51
|
-
id:
|
|
52
|
-
size:
|
|
51
|
+
id: _mysten_sui_bcs307.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
52
|
+
size: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
53
53
|
}, "0x2::table::Table<phantom K, phantom V>">;
|
|
54
|
-
node_count:
|
|
55
|
-
base:
|
|
56
|
-
snapshot_seq:
|
|
57
|
-
snapshot_active:
|
|
58
|
-
snapshot_base:
|
|
54
|
+
node_count: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
55
|
+
base: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
56
|
+
snapshot_seq: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
57
|
+
snapshot_active: _mysten_sui_bcs307.BcsType<boolean, boolean, "bool">;
|
|
58
|
+
snapshot_base: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
59
59
|
}, "@local-pkg/deepbook_predict::strike_payout_tree::StrikePayoutTree">;
|
|
60
60
|
}, "@local-pkg/deepbook_predict::strike_exposure::StrikeExposure">; /** Smoothed gas-price stats backing the congestion trade penalty. */
|
|
61
61
|
ewma: MoveStruct<{
|
|
62
|
-
mean:
|
|
63
|
-
variance:
|
|
64
|
-
last_updated_timestamp_ms:
|
|
62
|
+
mean: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
63
|
+
variance: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
64
|
+
last_updated_timestamp_ms: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
65
65
|
}, "@local-pkg/deepbook_predict::ewma::EwmaState">;
|
|
66
66
|
/**
|
|
67
67
|
* When true, new mints on this expiry abort. Other flows stay available. Admin
|
|
68
68
|
* sets/unsets it (version-gated); a `PauseCap` holder can force it true one-way
|
|
69
69
|
* through the registry (ungated kill switch).
|
|
70
70
|
*/
|
|
71
|
-
mint_paused:
|
|
71
|
+
mint_paused: _mysten_sui_bcs307.BcsType<boolean, boolean, "bool">;
|
|
72
72
|
/**
|
|
73
73
|
* `Some` from the flush's snapshot stage until this market's `value_expiry` (or
|
|
74
74
|
* lazily discarded once the stamp goes stale — see `ValuationStamp`). Trading is
|
|
@@ -76,7 +76,7 @@ declare const ExpiryMarket: MoveStruct<{
|
|
|
76
76
|
* at the snapshot instant, and the payout tree captures its own boundary shadows
|
|
77
77
|
* as trades first touch each node.
|
|
78
78
|
*/
|
|
79
|
-
valuation_stamp:
|
|
79
|
+
valuation_stamp: _mysten_sui_bcs307.BcsType<{
|
|
80
80
|
flush_seq: bigint;
|
|
81
81
|
snapshot_cash: bigint;
|
|
82
82
|
snapshot_impact_reserve: bigint;
|
|
@@ -87,15 +87,15 @@ declare const ExpiryMarket: MoveStruct<{
|
|
|
87
87
|
} | null | undefined, "Option<@local-pkg/deepbook_predict::expiry_market::ValuationStamp>">;
|
|
88
88
|
}, "@local-pkg/deepbook_predict::expiry_market::ExpiryMarket">;
|
|
89
89
|
declare const MintQuote: MoveStruct<{
|
|
90
|
-
quantity:
|
|
91
|
-
entry_probability:
|
|
92
|
-
premium:
|
|
93
|
-
trading_fee:
|
|
94
|
-
fee_incentive_subsidy:
|
|
95
|
-
builder_fee:
|
|
96
|
-
penalty_fee:
|
|
97
|
-
inventory_impact_charge:
|
|
98
|
-
all_in_cost:
|
|
90
|
+
quantity: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
91
|
+
entry_probability: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
92
|
+
premium: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
93
|
+
trading_fee: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
94
|
+
fee_incentive_subsidy: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
95
|
+
builder_fee: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
96
|
+
penalty_fee: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
97
|
+
inventory_impact_charge: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
98
|
+
all_in_cost: _mysten_sui_bcs307.BcsType<bigint, string | number | bigint, "u64">;
|
|
99
99
|
}, "@local-pkg/deepbook_predict::expiry_market::MintQuote">;
|
|
100
100
|
interface IdArguments {
|
|
101
101
|
market: RawTransactionArgument<string>;
|
|
@@ -108,7 +108,7 @@ interface IdOptions {
|
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
110
|
/** Return the market object ID for external discovery and PTB construction. */
|
|
111
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
111
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
112
112
|
interface PropbookUnderlyingIdArguments {
|
|
113
113
|
market: RawTransactionArgument<string>;
|
|
114
114
|
}
|
|
@@ -120,7 +120,7 @@ interface PropbookUnderlyingIdOptions {
|
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
/** Return the Propbook underlying for SDK and devInspect market reads. */
|
|
123
|
-
declare function propbookUnderlyingId(options: PropbookUnderlyingIdOptions): (tx: Transaction) =>
|
|
123
|
+
declare function propbookUnderlyingId(options: PropbookUnderlyingIdOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
124
124
|
interface ExpiryArguments {
|
|
125
125
|
market: RawTransactionArgument<string>;
|
|
126
126
|
}
|
|
@@ -132,7 +132,7 @@ interface ExpiryOptions {
|
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
/** Return the expiry timestamp for SDK and devInspect market reads. */
|
|
135
|
-
declare function expiry(options: ExpiryOptions): (tx: Transaction) =>
|
|
135
|
+
declare function expiry(options: ExpiryOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
136
136
|
interface SettlementPriceArguments {
|
|
137
137
|
market: RawTransactionArgument<string>;
|
|
138
138
|
}
|
|
@@ -144,7 +144,7 @@ interface SettlementPriceOptions {
|
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
146
|
/** Return the recorded settlement price. Aborts if the market is not settled. */
|
|
147
|
-
declare function settlementPrice(options: SettlementPriceOptions): (tx: Transaction) =>
|
|
147
|
+
declare function settlementPrice(options: SettlementPriceOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
148
148
|
interface IsSettledArguments {
|
|
149
149
|
market: RawTransactionArgument<string>;
|
|
150
150
|
}
|
|
@@ -159,7 +159,7 @@ interface IsSettledOptions {
|
|
|
159
159
|
* Return whether terminal settlement has been recorded for this market. Public
|
|
160
160
|
* read for SDK/devInspect settlement-state checks.
|
|
161
161
|
*/
|
|
162
|
-
declare function isSettled(options: IsSettledOptions): (tx: Transaction) =>
|
|
162
|
+
declare function isSettled(options: IsSettledOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
163
163
|
interface TrySettlementPriceArguments {
|
|
164
164
|
market: RawTransactionArgument<string>;
|
|
165
165
|
}
|
|
@@ -174,7 +174,7 @@ interface TrySettlementPriceOptions {
|
|
|
174
174
|
* Return the recorded settlement price, or `none` while the market is live.
|
|
175
175
|
* Non-aborting companion to `settlement_price` for SDK/devInspect reads.
|
|
176
176
|
*/
|
|
177
|
-
declare function trySettlementPrice(options: TrySettlementPriceOptions): (tx: Transaction) =>
|
|
177
|
+
declare function trySettlementPrice(options: TrySettlementPriceOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
178
178
|
interface CashBalanceArguments {
|
|
179
179
|
market: RawTransactionArgument<string>;
|
|
180
180
|
}
|
|
@@ -186,7 +186,7 @@ interface CashBalanceOptions {
|
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
/** Return expiry USDC custody for SDK and devInspect state reads. */
|
|
189
|
-
declare function cashBalance(options: CashBalanceOptions): (tx: Transaction) =>
|
|
189
|
+
declare function cashBalance(options: CashBalanceOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
190
190
|
interface InventoryImpactReserveArguments {
|
|
191
191
|
market: RawTransactionArgument<string>;
|
|
192
192
|
}
|
|
@@ -198,7 +198,7 @@ interface InventoryImpactReserveOptions {
|
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
200
|
/** Return the isolated inventory-impact escrow for SDK and devInspect state reads. */
|
|
201
|
-
declare function inventoryImpactReserve(options: InventoryImpactReserveOptions): (tx: Transaction) =>
|
|
201
|
+
declare function inventoryImpactReserve(options: InventoryImpactReserveOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
202
202
|
interface FeeIncentiveBalanceArguments {
|
|
203
203
|
market: RawTransactionArgument<string>;
|
|
204
204
|
}
|
|
@@ -210,7 +210,7 @@ interface FeeIncentiveBalanceOptions {
|
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
/** Return local fee incentives for SDK and devInspect state reads. */
|
|
213
|
-
declare function feeIncentiveBalance(options: FeeIncentiveBalanceOptions): (tx: Transaction) =>
|
|
213
|
+
declare function feeIncentiveBalance(options: FeeIncentiveBalanceOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
214
214
|
interface BackingBufferLambdaArguments {
|
|
215
215
|
market: RawTransactionArgument<string>;
|
|
216
216
|
}
|
|
@@ -222,7 +222,7 @@ interface BackingBufferLambdaOptions {
|
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
224
|
/** Return the snapshotted backing-buffer lambda for SDK and devInspect reads. */
|
|
225
|
-
declare function backingBufferLambda(options: BackingBufferLambdaOptions): (tx: Transaction) =>
|
|
225
|
+
declare function backingBufferLambda(options: BackingBufferLambdaOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
226
226
|
interface ExpiryFeeWindowMsArguments {
|
|
227
227
|
market: RawTransactionArgument<string>;
|
|
228
228
|
}
|
|
@@ -234,7 +234,7 @@ interface ExpiryFeeWindowMsOptions {
|
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
/** Return the snapshotted fee-ramp window for SDK and devInspect reads. */
|
|
237
|
-
declare function expiryFeeWindowMs(options: ExpiryFeeWindowMsOptions): (tx: Transaction) =>
|
|
237
|
+
declare function expiryFeeWindowMs(options: ExpiryFeeWindowMsOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
238
238
|
interface ExpiryFeeMaxMultiplierArguments {
|
|
239
239
|
market: RawTransactionArgument<string>;
|
|
240
240
|
}
|
|
@@ -246,7 +246,7 @@ interface ExpiryFeeMaxMultiplierOptions {
|
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
248
|
/** Return the snapshotted fee-ramp multiplier for SDK and devInspect reads. */
|
|
249
|
-
declare function expiryFeeMaxMultiplier(options: ExpiryFeeMaxMultiplierOptions): (tx: Transaction) =>
|
|
249
|
+
declare function expiryFeeMaxMultiplier(options: ExpiryFeeMaxMultiplierOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
250
250
|
interface InventoryImpactMaxRateArguments {
|
|
251
251
|
market: RawTransactionArgument<string>;
|
|
252
252
|
}
|
|
@@ -261,7 +261,7 @@ interface InventoryImpactMaxRateOptions {
|
|
|
261
261
|
* Return this market's immutable maximum marginal inventory-impact rate for SDK
|
|
262
262
|
* and devInspect state reads.
|
|
263
263
|
*/
|
|
264
|
-
declare function inventoryImpactMaxRate(options: InventoryImpactMaxRateOptions): (tx: Transaction) =>
|
|
264
|
+
declare function inventoryImpactMaxRate(options: InventoryImpactMaxRateOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
265
265
|
interface InventoryImpactScaleArguments {
|
|
266
266
|
market: RawTransactionArgument<string>;
|
|
267
267
|
}
|
|
@@ -276,7 +276,7 @@ interface InventoryImpactScaleOptions {
|
|
|
276
276
|
* Return the immutable USDC scale of this market's inventory-impact curve for SDK
|
|
277
277
|
* and devInspect state reads.
|
|
278
278
|
*/
|
|
279
|
-
declare function inventoryImpactScale(options: InventoryImpactScaleOptions): (tx: Transaction) =>
|
|
279
|
+
declare function inventoryImpactScale(options: InventoryImpactScaleOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
280
280
|
interface TickSizeArguments {
|
|
281
281
|
market: RawTransactionArgument<string>;
|
|
282
282
|
}
|
|
@@ -291,7 +291,7 @@ interface TickSizeOptions {
|
|
|
291
291
|
* Return the strike tick size for SDK and devInspect range construction. Raw
|
|
292
292
|
* strikes are `tick * tick_size`.
|
|
293
293
|
*/
|
|
294
|
-
declare function tickSize(options: TickSizeOptions): (tx: Transaction) =>
|
|
294
|
+
declare function tickSize(options: TickSizeOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
295
295
|
interface AdmissionTickSizeArguments {
|
|
296
296
|
market: RawTransactionArgument<string>;
|
|
297
297
|
}
|
|
@@ -303,7 +303,7 @@ interface AdmissionTickSizeOptions {
|
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
305
|
/** Return the admission-grid step for SDK and devInspect range construction. */
|
|
306
|
-
declare function admissionTickSize(options: AdmissionTickSizeOptions): (tx: Transaction) =>
|
|
306
|
+
declare function admissionTickSize(options: AdmissionTickSizeOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
307
307
|
interface ReferenceTickArguments {
|
|
308
308
|
market: RawTransactionArgument<string>;
|
|
309
309
|
}
|
|
@@ -315,7 +315,7 @@ interface ReferenceTickOptions {
|
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
317
|
/** Return the admitted reference tick for SDK and devInspect range construction. */
|
|
318
|
-
declare function referenceTick(options: ReferenceTickOptions): (tx: Transaction) =>
|
|
318
|
+
declare function referenceTick(options: ReferenceTickOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
319
319
|
interface ReferenceTickSourceTimestampMsArguments {
|
|
320
320
|
market: RawTransactionArgument<string>;
|
|
321
321
|
}
|
|
@@ -327,7 +327,7 @@ interface ReferenceTickSourceTimestampMsOptions {
|
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
329
|
/** Return the reference observation timestamp for SDK and devInspect reads. */
|
|
330
|
-
declare function referenceTickSourceTimestampMs(options: ReferenceTickSourceTimestampMsOptions): (tx: Transaction) =>
|
|
330
|
+
declare function referenceTickSourceTimestampMs(options: ReferenceTickSourceTimestampMsOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
331
331
|
interface PayoutLiabilityArguments {
|
|
332
332
|
market: RawTransactionArgument<string>;
|
|
333
333
|
}
|
|
@@ -342,7 +342,7 @@ interface PayoutLiabilityOptions {
|
|
|
342
342
|
* Return payout reserve or settled liability for external accounting
|
|
343
343
|
* observability.
|
|
344
344
|
*/
|
|
345
|
-
declare function payoutLiability(options: PayoutLiabilityOptions): (tx: Transaction) =>
|
|
345
|
+
declare function payoutLiability(options: PayoutLiabilityOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
346
346
|
interface RequiredCashArguments {
|
|
347
347
|
market: RawTransactionArgument<string>;
|
|
348
348
|
}
|
|
@@ -354,7 +354,7 @@ interface RequiredCashOptions {
|
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
356
|
/** Return required expiry cash for external accounting observability. */
|
|
357
|
-
declare function requiredCash(options: RequiredCashOptions): (tx: Transaction) =>
|
|
357
|
+
declare function requiredCash(options: RequiredCashOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
358
358
|
interface LoadLivePricerArguments {
|
|
359
359
|
market: RawTransactionArgument<string>;
|
|
360
360
|
config?: RawTransactionArgument<string>;
|
|
@@ -384,7 +384,7 @@ interface LoadLivePricerOptions {
|
|
|
384
384
|
* compares observation `writer_digest` to `tx_context::digest()`, not sender
|
|
385
385
|
* identity, and does not prohibit reads of older observations.
|
|
386
386
|
*/
|
|
387
|
-
declare function loadLivePricer(options: LoadLivePricerOptions): (tx: Transaction) =>
|
|
387
|
+
declare function loadLivePricer(options: LoadLivePricerOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
388
388
|
interface IsPendingValuationArguments {
|
|
389
389
|
market: RawTransactionArgument<string>;
|
|
390
390
|
config?: RawTransactionArgument<string>;
|
|
@@ -404,7 +404,7 @@ interface IsPendingValuationOptions {
|
|
|
404
404
|
* settlement-invariant, so a stamped market settles the instant it expires. Do not
|
|
405
405
|
* defer a settlement attempt on this read.
|
|
406
406
|
*/
|
|
407
|
-
declare function isPendingValuation(options: IsPendingValuationOptions): (tx: Transaction) =>
|
|
407
|
+
declare function isPendingValuation(options: IsPendingValuationOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
408
408
|
interface CurrentNavArguments {
|
|
409
409
|
market: RawTransactionArgument<string>;
|
|
410
410
|
pricer: TransactionArgument;
|
|
@@ -422,7 +422,7 @@ interface CurrentNavOptions {
|
|
|
422
422
|
* `Pricer`; an expired but unsettled market cannot be valued through this path.
|
|
423
423
|
* Public for PTB composition and devInspect pool valuation.
|
|
424
424
|
*/
|
|
425
|
-
declare function currentNav(options: CurrentNavOptions): (tx: Transaction) =>
|
|
425
|
+
declare function currentNav(options: CurrentNavOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
426
426
|
interface LiveOrderValueArguments {
|
|
427
427
|
market: RawTransactionArgument<string>;
|
|
428
428
|
pricer: TransactionArgument;
|
|
@@ -440,7 +440,7 @@ interface LiveOrderValueOptions {
|
|
|
440
440
|
* market-bound `Pricer` and does not prove account ownership of `order_id`. Public
|
|
441
441
|
* for SDK, PTB, and devInspect position valuation.
|
|
442
442
|
*/
|
|
443
|
-
declare function liveOrderValue(options: LiveOrderValueOptions): (tx: Transaction) =>
|
|
443
|
+
declare function liveOrderValue(options: LiveOrderValueOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
444
444
|
interface SettledOrderPayoutArguments {
|
|
445
445
|
market: RawTransactionArgument<string>;
|
|
446
446
|
orderId: RawTransactionArgument<number | bigint>;
|
|
@@ -456,7 +456,7 @@ interface SettledOrderPayoutOptions {
|
|
|
456
456
|
* Return one settled order's terminal payout. This function does not prove account
|
|
457
457
|
* ownership of `order_id`. Public for SDK, PTB, and devInspect position valuation.
|
|
458
458
|
*/
|
|
459
|
-
declare function settledOrderPayout(options: SettledOrderPayoutOptions): (tx: Transaction) =>
|
|
459
|
+
declare function settledOrderPayout(options: SettledOrderPayoutOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
460
460
|
interface MintPausedArguments {
|
|
461
461
|
market: RawTransactionArgument<string>;
|
|
462
462
|
}
|
|
@@ -468,7 +468,7 @@ interface MintPausedOptions {
|
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
470
|
/** Return the market mint-pause state for SDK and devInspect reads. */
|
|
471
|
-
declare function mintPaused(options: MintPausedOptions): (tx: Transaction) =>
|
|
471
|
+
declare function mintPaused(options: MintPausedOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
472
472
|
interface QuoteMintArguments {
|
|
473
473
|
market: RawTransactionArgument<string>;
|
|
474
474
|
config?: RawTransactionArgument<string>;
|
|
@@ -495,7 +495,7 @@ interface QuoteMintOptions {
|
|
|
495
495
|
* balance, slippage caps, or exposure-index capacity. Its penalty uses the current
|
|
496
496
|
* pre-update EWMA state. Public for SDK and devInspect pre-trade pricing.
|
|
497
497
|
*/
|
|
498
|
-
declare function quoteMint(options: QuoteMintOptions): (tx: Transaction) =>
|
|
498
|
+
declare function quoteMint(options: QuoteMintOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
499
499
|
interface QuoteMintForAccountArguments {
|
|
500
500
|
market: RawTransactionArgument<string>;
|
|
501
501
|
wrapper: RawTransactionArgument<string>;
|
|
@@ -520,7 +520,35 @@ interface QuoteMintForAccountOptions {
|
|
|
520
520
|
* code. Budget mode caps premium by total account balance, including unsettled
|
|
521
521
|
* accumulator funds. Public for SDK and devInspect pre-trade pricing.
|
|
522
522
|
*/
|
|
523
|
-
declare function quoteMintForAccount(options: QuoteMintForAccountOptions): (tx: Transaction) =>
|
|
523
|
+
declare function quoteMintForAccount(options: QuoteMintForAccountOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
524
|
+
interface QuoteMintExactCostForAccountArguments {
|
|
525
|
+
market: RawTransactionArgument<string>;
|
|
526
|
+
wrapper: RawTransactionArgument<string>;
|
|
527
|
+
config?: RawTransactionArgument<string>;
|
|
528
|
+
pricer: TransactionArgument;
|
|
529
|
+
lowerTick: RawTransactionArgument<number | bigint>;
|
|
530
|
+
higherTick: RawTransactionArgument<number | bigint>;
|
|
531
|
+
maxCost: RawTransactionArgument<number | bigint>;
|
|
532
|
+
minQuantity: RawTransactionArgument<number | bigint>;
|
|
533
|
+
}
|
|
534
|
+
interface QuoteMintExactCostForAccountOptions {
|
|
535
|
+
package?: string;
|
|
536
|
+
arguments: QuoteMintExactCostForAccountArguments;
|
|
537
|
+
config?: {
|
|
538
|
+
protocolConfig: ConfigValue;
|
|
539
|
+
predictPackageId?: string;
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* Quote `mint_exact_cost` for one account: the fill that mint would size for
|
|
544
|
+
* `max_cost`, capped by total account balance including unsettled accumulator
|
|
545
|
+
* funds, with that fill's cost decomposition. Applies the mint's live-mint gates,
|
|
546
|
+
* sizing, `min_quantity` floor, and admission, but does not preflight
|
|
547
|
+
* exposure-index capacity or cash backing. `quantity` is the figure to derive a
|
|
548
|
+
* `min_quantity` slippage floor from. Public for SDK and devInspect pre-trade
|
|
549
|
+
* pricing.
|
|
550
|
+
*/
|
|
551
|
+
declare function quoteMintExactCostForAccount(options: QuoteMintExactCostForAccountOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
524
552
|
interface QuantityArguments {
|
|
525
553
|
quote: TransactionArgument;
|
|
526
554
|
}
|
|
@@ -532,7 +560,7 @@ interface QuantityOptions {
|
|
|
532
560
|
};
|
|
533
561
|
}
|
|
534
562
|
/** Return the sized quantity for SDK and devInspect quote consumers. */
|
|
535
|
-
declare function quantity(options: QuantityOptions): (tx: Transaction) =>
|
|
563
|
+
declare function quantity(options: QuantityOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
536
564
|
interface EntryProbabilityArguments {
|
|
537
565
|
quote: TransactionArgument;
|
|
538
566
|
}
|
|
@@ -544,7 +572,7 @@ interface EntryProbabilityOptions {
|
|
|
544
572
|
};
|
|
545
573
|
}
|
|
546
574
|
/** Return the quoted range probability for SDK and devInspect consumers. */
|
|
547
|
-
declare function entryProbability(options: EntryProbabilityOptions): (tx: Transaction) =>
|
|
575
|
+
declare function entryProbability(options: EntryProbabilityOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
548
576
|
interface PremiumArguments {
|
|
549
577
|
quote: TransactionArgument;
|
|
550
578
|
}
|
|
@@ -556,7 +584,7 @@ interface PremiumOptions {
|
|
|
556
584
|
};
|
|
557
585
|
}
|
|
558
586
|
/** Return the quoted premium for SDK and devInspect consumers. */
|
|
559
|
-
declare function premium(options: PremiumOptions): (tx: Transaction) =>
|
|
587
|
+
declare function premium(options: PremiumOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
560
588
|
interface TradingFeeArguments {
|
|
561
589
|
quote: TransactionArgument;
|
|
562
590
|
}
|
|
@@ -568,7 +596,7 @@ interface TradingFeeOptions {
|
|
|
568
596
|
};
|
|
569
597
|
}
|
|
570
598
|
/** Return the quoted trading fee before subsidy for SDK and devInspect consumers. */
|
|
571
|
-
declare function tradingFee(options: TradingFeeOptions): (tx: Transaction) =>
|
|
599
|
+
declare function tradingFee(options: TradingFeeOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
572
600
|
interface FeeIncentiveSubsidyArguments {
|
|
573
601
|
quote: TransactionArgument;
|
|
574
602
|
}
|
|
@@ -583,7 +611,7 @@ interface FeeIncentiveSubsidyOptions {
|
|
|
583
611
|
* Return the sponsor-funded portion of the quoted fee for SDK and devInspect
|
|
584
612
|
* consumers.
|
|
585
613
|
*/
|
|
586
|
-
declare function feeIncentiveSubsidy(options: FeeIncentiveSubsidyOptions): (tx: Transaction) =>
|
|
614
|
+
declare function feeIncentiveSubsidy(options: FeeIncentiveSubsidyOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
587
615
|
interface BuilderFeeArguments {
|
|
588
616
|
quote: TransactionArgument;
|
|
589
617
|
}
|
|
@@ -595,7 +623,7 @@ interface BuilderFeeOptions {
|
|
|
595
623
|
};
|
|
596
624
|
}
|
|
597
625
|
/** Return the quoted builder fee for SDK and devInspect consumers. */
|
|
598
|
-
declare function builderFee(options: BuilderFeeOptions): (tx: Transaction) =>
|
|
626
|
+
declare function builderFee(options: BuilderFeeOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
599
627
|
interface PenaltyFeeArguments {
|
|
600
628
|
quote: TransactionArgument;
|
|
601
629
|
}
|
|
@@ -607,7 +635,7 @@ interface PenaltyFeeOptions {
|
|
|
607
635
|
};
|
|
608
636
|
}
|
|
609
637
|
/** Return the quoted EWMA congestion surcharge for SDK and devInspect consumers. */
|
|
610
|
-
declare function penaltyFee(options: PenaltyFeeOptions): (tx: Transaction) =>
|
|
638
|
+
declare function penaltyFee(options: PenaltyFeeOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
611
639
|
interface InventoryImpactChargeArguments {
|
|
612
640
|
quote: TransactionArgument;
|
|
613
641
|
}
|
|
@@ -622,7 +650,7 @@ interface InventoryImpactChargeOptions {
|
|
|
622
650
|
* Return the separate inventory-impact charge for SDK and devInspect quote
|
|
623
651
|
* consumers.
|
|
624
652
|
*/
|
|
625
|
-
declare function inventoryImpactCharge(options: InventoryImpactChargeOptions): (tx: Transaction) =>
|
|
653
|
+
declare function inventoryImpactCharge(options: InventoryImpactChargeOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
626
654
|
interface AllInCostArguments {
|
|
627
655
|
quote: TransactionArgument;
|
|
628
656
|
}
|
|
@@ -634,7 +662,7 @@ interface AllInCostOptions {
|
|
|
634
662
|
};
|
|
635
663
|
}
|
|
636
664
|
/** Return the total quoted account withdrawal for SDK and devInspect consumers. */
|
|
637
|
-
declare function allInCost(options: AllInCostOptions): (tx: Transaction) =>
|
|
665
|
+
declare function allInCost(options: AllInCostOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
638
666
|
interface MintExactQuantityArguments {
|
|
639
667
|
market: RawTransactionArgument<string>;
|
|
640
668
|
wrapper: RawTransactionArgument<string>;
|
|
@@ -670,7 +698,7 @@ interface MintExactQuantityOptions {
|
|
|
670
698
|
* `std::u64::max_value!()` for either uncapped guard. Returns the minted order ID
|
|
671
699
|
* for future order-scoped flows.
|
|
672
700
|
*/
|
|
673
|
-
declare function mintExactQuantity(options: MintExactQuantityOptions): (tx: Transaction) =>
|
|
701
|
+
declare function mintExactQuantity(options: MintExactQuantityOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
674
702
|
interface MintExactAmountArguments {
|
|
675
703
|
market: RawTransactionArgument<string>;
|
|
676
704
|
wrapper: RawTransactionArgument<string>;
|
|
@@ -706,7 +734,59 @@ interface MintExactAmountOptions {
|
|
|
706
734
|
* dust remains in the account because order quantity must be an integer number of
|
|
707
735
|
* `position_lot_size` lots.
|
|
708
736
|
*/
|
|
709
|
-
declare function mintExactAmount(options: MintExactAmountOptions): (tx: Transaction) =>
|
|
737
|
+
declare function mintExactAmount(options: MintExactAmountOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
738
|
+
interface MintExactCostArguments {
|
|
739
|
+
market: RawTransactionArgument<string>;
|
|
740
|
+
wrapper: RawTransactionArgument<string>;
|
|
741
|
+
auth: TransactionArgument;
|
|
742
|
+
config?: RawTransactionArgument<string>;
|
|
743
|
+
pricer: TransactionArgument;
|
|
744
|
+
lowerTick: RawTransactionArgument<number | bigint>;
|
|
745
|
+
higherTick: RawTransactionArgument<number | bigint>;
|
|
746
|
+
maxCost: RawTransactionArgument<number | bigint>;
|
|
747
|
+
minQuantity: RawTransactionArgument<number | bigint>;
|
|
748
|
+
}
|
|
749
|
+
interface MintExactCostOptions {
|
|
750
|
+
package?: string;
|
|
751
|
+
arguments: MintExactCostArguments;
|
|
752
|
+
config?: {
|
|
753
|
+
protocolConfig: ConfigValue;
|
|
754
|
+
predictPackageId?: string;
|
|
755
|
+
};
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
* Mint a lot-rounded position within an all-in `max_cost` budget.
|
|
759
|
+
*
|
|
760
|
+
* Unlike `mint_exact_amount`, fees are sized inside the budget: the quantity
|
|
761
|
+
* search evaluates the all-in withdrawal the mint charges
|
|
762
|
+
* (`premium + trader-paid fee + builder_fee + EWMA penalty + inventory_impact_charge`)
|
|
763
|
+
* against the fee-incentive, congestion, and book state at execution, so the debit
|
|
764
|
+
* never exceeds `max_cost`. `max_cost` is first capped to the account's available
|
|
765
|
+
* USDC after settlement, so `std::u64::max_value!()` sizes against the whole
|
|
766
|
+
* balance.
|
|
767
|
+
*
|
|
768
|
+
* The budget search finds the largest fitting quantity. If that quantity costs
|
|
769
|
+
* more than its maximum payout, a conservative search tries a smaller fill;
|
|
770
|
+
* rounding can make that fallback miss a larger admissible fill. Only when the
|
|
771
|
+
* budget is the limiting constraint is the remainder less than the incremental
|
|
772
|
+
* all-in cost of one more lot. Payout-limited fills and lot-cap saturation can
|
|
773
|
+
* leave more. Insufficient expiry cash backing aborts the mint; sizing does not
|
|
774
|
+
* shrink the fill to available backing, and the quote does not preflight it.
|
|
775
|
+
*
|
|
776
|
+
* `min_quantity` is this entrypoint's slippage guard. The budget is fixed, so
|
|
777
|
+
* every adverse move between building the transaction and executing it — the
|
|
778
|
+
* price, the congestion surcharge, the sponsor subsidy, the inventory-impact
|
|
779
|
+
* charge — shows up as fewer contracts, and a fill below `min_quantity` aborts
|
|
780
|
+
* `EMintQuantityBelowMin`. It bounds the all-in price per contract at
|
|
781
|
+
* `max_cost / min_quantity`, which is why the shape carries no separate
|
|
782
|
+
* probability cap; passing `0` accepts any fill the budget buys. A budget too
|
|
783
|
+
* small to admit `constants::min_premium` aborts `EPremiumBelowMinimum` rather
|
|
784
|
+
* than minting nothing, and zero is such a budget: unlike `mint_exact_amount`
|
|
785
|
+
* there is no `max_cost` cap to require, because here the budget IS the sizing
|
|
786
|
+
* input. Other requirements match `mint_exact_quantity`. Returns the minted order
|
|
787
|
+
* ID.
|
|
788
|
+
*/
|
|
789
|
+
declare function mintExactCost(options: MintExactCostOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
710
790
|
interface RedeemLiveArguments {
|
|
711
791
|
market: RawTransactionArgument<string>;
|
|
712
792
|
wrapper: RawTransactionArgument<string>;
|
|
@@ -740,7 +820,7 @@ interface RedeemLiveOptions {
|
|
|
740
820
|
* (`redeem_amount` minus trading fee, builder fee, and EWMA penalty), the mirror
|
|
741
821
|
* of mint's all-in `max_cost`.
|
|
742
822
|
*/
|
|
743
|
-
declare function redeemLive(options: RedeemLiveOptions): (tx: Transaction) =>
|
|
823
|
+
declare function redeemLive(options: RedeemLiveOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
744
824
|
interface RedeemSettledArguments {
|
|
745
825
|
market: RawTransactionArgument<string>;
|
|
746
826
|
wrapper: RawTransactionArgument<string>;
|
|
@@ -763,7 +843,7 @@ interface RedeemSettledOptions {
|
|
|
763
843
|
* Explicit owner auth remains available when Predict app automation is
|
|
764
844
|
* deauthorized; another authorized app may also supply valid account auth.
|
|
765
845
|
*/
|
|
766
|
-
declare function redeemSettled(options: RedeemSettledOptions): (tx: Transaction) =>
|
|
846
|
+
declare function redeemSettled(options: RedeemSettledOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
767
847
|
interface RedeemSettledPermissionlessArguments {
|
|
768
848
|
market: RawTransactionArgument<string>;
|
|
769
849
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -786,7 +866,7 @@ interface RedeemSettledPermissionlessOptions {
|
|
|
786
866
|
* `deauthorize_app<PredictApp>` disables this automation. Owners can still use
|
|
787
867
|
* `redeem_settled` with owner auth to redeem their own settled positions.
|
|
788
868
|
*/
|
|
789
|
-
declare function redeemSettledPermissionless(options: RedeemSettledPermissionlessOptions): (tx: Transaction) =>
|
|
869
|
+
declare function redeemSettledPermissionless(options: RedeemSettledPermissionlessOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
790
870
|
interface SetReferenceTickArguments {
|
|
791
871
|
market: RawTransactionArgument<string>;
|
|
792
872
|
config?: RawTransactionArgument<string>;
|
|
@@ -810,7 +890,7 @@ interface SetReferenceTickOptions {
|
|
|
810
890
|
* the reference tick shapes mint admission only, and a mint it admits mid-flush is
|
|
811
891
|
* invisible to the captured snapshot like any other.
|
|
812
892
|
*/
|
|
813
|
-
declare function setReferenceTick(options: SetReferenceTickOptions): (tx: Transaction) =>
|
|
893
|
+
declare function setReferenceTick(options: SetReferenceTickOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
814
894
|
interface SetMintPausedArguments {
|
|
815
895
|
market: RawTransactionArgument<string>;
|
|
816
896
|
config?: RawTransactionArgument<string>;
|
|
@@ -830,7 +910,7 @@ interface SetMintPausedOptions {
|
|
|
830
910
|
* version-gated. A `PauseCap` holder can force-engage the pause one-way under a
|
|
831
911
|
* version freeze via `registry::pause_expiry_market_mint_pause_cap`.
|
|
832
912
|
*/
|
|
833
|
-
declare function setMintPaused(options: SetMintPausedOptions): (tx: Transaction) =>
|
|
913
|
+
declare function setMintPaused(options: SetMintPausedOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
834
914
|
interface TrySettleArguments {
|
|
835
915
|
market: RawTransactionArgument<string>;
|
|
836
916
|
config?: RawTransactionArgument<string>;
|
|
@@ -853,7 +933,7 @@ interface TrySettleOptions {
|
|
|
853
933
|
* compiled grace period. Permissionless and idempotent; missing or unusable
|
|
854
934
|
* observations leave the market unsettled.
|
|
855
935
|
*/
|
|
856
|
-
declare function trySettle(options: TrySettleOptions): (tx: Transaction) =>
|
|
936
|
+
declare function trySettle(options: TrySettleOptions): (tx: Transaction) => _mysten_sui_transactions212.TransactionResult;
|
|
857
937
|
//#endregion
|
|
858
938
|
export { expiry_market_d_exports };
|
|
859
939
|
//# sourceMappingURL=expiry_market.d.mts.map
|