@mysten/deepbook-v3 2.9.2 → 2.10.1
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 +58 -0
- package/README.md +21 -0
- package/dist/account-bindings/account-registry.d.mts +109 -0
- package/dist/account-bindings/account-registry.d.mts.map +1 -0
- package/dist/account-bindings/account-registry.mjs +56 -0
- package/dist/account-bindings/account-registry.mjs.map +1 -0
- package/dist/account-bindings/account.d.mts +176 -0
- package/dist/account-bindings/account.d.mts.map +1 -0
- package/dist/account-bindings/account.mjs +94 -0
- package/dist/account-bindings/account.mjs.map +1 -0
- package/dist/account-bindings/latest.d.mts +12 -0
- package/dist/account-bindings/latest.d.mts.map +1 -0
- package/dist/account-bindings/latest.mjs +19 -0
- package/dist/account-bindings/latest.mjs.map +1 -0
- package/dist/account.d.mts +46 -3
- package/dist/account.d.mts.map +1 -1
- package/dist/account.mjs +51 -2
- package/dist/account.mjs.map +1 -1
- package/dist/contracts/account/account.d.mts +25 -97
- package/dist/contracts/account/account.d.mts.map +1 -1
- package/dist/contracts/account/account.mjs +43 -35
- package/dist/contracts/account/account.mjs.map +1 -1
- 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 +7 -54
- package/dist/contracts/account/account_registry.d.mts.map +1 -1
- package/dist/contracts/account/account_registry.mjs +2 -22
- package/dist/contracts/account/account_registry.mjs.map +1 -1
- package/dist/contracts/deepbook/account.d.mts +18 -18
- package/dist/contracts/deepbook/balances.d.mts +4 -4
- package/dist/contracts/deepbook/deep_price.d.mts +3 -3
- package/dist/contracts/deepbook/order.d.mts +12 -12
- package/dist/contracts/deepbook_predict/admin.d.mts +4 -4
- package/dist/contracts/deepbook_predict/admin.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/builder_code.d.mts +60 -13
- package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/builder_code.mjs +55 -1
- package/dist/contracts/deepbook_predict/builder_code.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
- package/dist/contracts/deepbook_predict/config_events.d.mts +88 -84
- package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/config_events.mjs +8 -0
- package/dist/contracts/deepbook_predict/config_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +262 -101
- package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/expiry_market.mjs +320 -41
- 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 +56 -54
- package/dist/contracts/deepbook_predict/order_events.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/order_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pause_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/plp.d.mts +74 -74
- package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +5 -5
- package/dist/contracts/deepbook_predict/predict_account.d.mts +22 -17
- package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/predict_account.mjs +12 -6
- package/dist/contracts/deepbook_predict/predict_account.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pricing.d.mts +67 -67
- package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/protocol_config.d.mts +127 -83
- package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict/protocol_config.mjs +59 -1
- package/dist/contracts/deepbook_predict/protocol_config.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/range_codec.d.mts +2 -2
- package/dist/contracts/deepbook_predict/registry.d.mts +32 -32
- package/dist/contracts/deepbook_predict/vault_events.d.mts +131 -131
- package/dist/contracts/deepbook_predict_math/lazer_price.d.mts +13 -13
- package/dist/contracts/deepbook_predict_math/math.d.mts +14 -14
- package/dist/contracts/deepbook_predict_orders/delayed_execution_config.d.mts +30 -30
- package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.mjs +6 -0
- package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.mjs.map +1 -1
- package/dist/contracts/deepbook_predict_orders/desk.d.mts +28 -28
- package/dist/contracts/deepbook_predict_orders/order_queue.d.mts +187 -187
- package/dist/contracts/deepbook_predict_orders/queue.d.mts +240 -62
- package/dist/contracts/deepbook_predict_orders/queue.d.mts.map +1 -1
- package/dist/contracts/deepbook_predict_orders/queue.mjs +306 -41
- package/dist/contracts/deepbook_predict_orders/queue.mjs.map +1 -1
- package/dist/contracts/deepbook_predict_orders/queue_events.d.mts +140 -140
- package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
- package/dist/contracts/deepbook_sessions/session_config.d.mts.map +1 -1
- package/dist/contracts/deepbook_sessions/sessions.d.mts +271 -31
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/contracts/deepbook_sessions/sessions.mjs +363 -3
- package/dist/contracts/deepbook_sessions/sessions.mjs.map +1 -1
- package/dist/deployments/mainnet.mjs.map +1 -1
- package/dist/deployments/testnet.d.mts.map +1 -1
- package/dist/deployments/testnet.mjs +7 -4
- package/dist/deployments/testnet.mjs.map +1 -1
- package/dist/predict/bindings/expiry-market.d.mts +57 -7
- package/dist/predict/bindings/expiry-market.d.mts.map +1 -1
- package/dist/predict/bindings/expiry-market.mjs +48 -2
- package/dist/predict/bindings/expiry-market.mjs.map +1 -1
- package/dist/predict/bindings/protocol-config.d.mts +5 -5
- package/dist/predict/bindings/protocol-config.mjs +4 -1
- package/dist/predict/bindings/protocol-config.mjs.map +1 -1
- package/dist/predict/bindings/queue.d.mts +30 -0
- package/dist/predict/bindings/queue.d.mts.map +1 -0
- package/dist/predict/bindings/queue.mjs +59 -0
- package/dist/predict/bindings/queue.mjs.map +1 -0
- package/dist/predict/bindings/rename.mjs +5 -1
- package/dist/predict/bindings/rename.mjs.map +1 -1
- package/dist/predict/client.d.mts.map +1 -1
- package/dist/predict/client.mjs +11 -5
- package/dist/predict/client.mjs.map +1 -1
- package/dist/predict/config/generated.d.mts +1 -1
- 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/mainnet.mjs +3 -1
- package/dist/predict/config/mainnet.mjs.map +1 -1
- package/dist/predict/config/testnet.mjs +3 -1
- package/dist/predict/config/testnet.mjs.map +1 -1
- package/dist/predict/config/types.d.mts +23 -0
- package/dist/predict/config/types.d.mts.map +1 -1
- package/dist/predict/cost.d.mts +9 -1
- package/dist/predict/cost.d.mts.map +1 -1
- package/dist/predict/cost.mjs.map +1 -1
- package/dist/predict/errors.d.mts.map +1 -1
- package/dist/predict/errors.mjs +6 -2
- package/dist/predict/errors.mjs.map +1 -1
- package/dist/predict/index.d.mts +1 -1
- package/dist/predict/index.mjs +2 -2
- package/dist/predict/queue.d.mts +8 -4
- package/dist/predict/queue.d.mts.map +1 -1
- package/dist/predict/queue.mjs +8 -4
- package/dist/predict/queue.mjs.map +1 -1
- package/dist/predict/reads/balances.mjs +1 -1
- package/dist/predict/reads/queue.d.mts +3 -2
- package/dist/predict/reads/queue.d.mts.map +1 -1
- package/dist/predict/reads/queue.mjs +5 -4
- package/dist/predict/reads/queue.mjs.map +1 -1
- package/dist/predict/tx/authed.mjs +1 -1
- package/dist/predict/tx/common.d.mts.map +1 -1
- package/dist/predict/tx/common.mjs +3 -2
- package/dist/predict/tx/common.mjs.map +1 -1
- package/dist/predict/tx/trade.d.mts.map +1 -1
- package/dist/predict/tx/trade.mjs +3 -2
- package/dist/predict/tx/trade.mjs.map +1 -1
- package/dist/sessions.d.mts +10 -1
- package/dist/sessions.d.mts.map +1 -1
- package/dist/sessions.mjs.map +1 -1
- package/dist/transactions/balanceManager.d.mts +12 -12
- package/dist/transactions/balanceManager.d.mts.map +1 -1
- package/dist/transactions/deepbook.d.mts +20 -20
- package/dist/transactions/deepbook.d.mts.map +1 -1
- 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/marginManager.d.mts.map +1 -1
- package/dist/transactions/marginPool.d.mts +18 -18
- package/dist/transactions/marginPool.d.mts.map +1 -1
- package/dist/transactions/marginRegistry.d.mts +16 -16
- package/dist/transactions/marginTPSL.d.mts +10 -10
- package/dist/transactions/marginTPSL.d.mts.map +1 -1
- package/dist/transactions/poolProxy.d.mts +8 -8
- package/dist/transactions/poolProxy.d.mts.map +1 -1
- package/dist/utils/constants.d.mts.map +1 -1
- package/dist/utils/constants.mjs +2 -2
- package/dist/utils/constants.mjs.map +1 -1
- package/package.json +1 -1
- package/src/account-bindings/account-registry.ts +39 -0
- package/src/account-bindings/account.ts +73 -0
- package/src/account-bindings/latest.ts +41 -0
- package/src/account.ts +89 -5
- package/src/contracts/account/account.ts +73 -4
- package/src/contracts/account/account_registry.ts +1 -1
- package/src/contracts/deepbook_predict/builder_code.ts +94 -2
- package/src/contracts/deepbook_predict/config_events.ts +7 -0
- package/src/contracts/deepbook_predict/expiry_market.ts +490 -44
- package/src/contracts/deepbook_predict/order_events.ts +6 -4
- package/src/contracts/deepbook_predict/predict_account.ts +12 -6
- package/src/contracts/deepbook_predict/protocol_config.ts +85 -0
- package/src/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.ts +14 -0
- package/src/contracts/deepbook_predict_orders/order_flow.ts +4 -0
- package/src/contracts/deepbook_predict_orders/queue.ts +495 -9
- package/src/contracts/deepbook_sessions/sessions.ts +538 -3
- package/src/deployments/mainnet.ts +4 -4
- package/src/deployments/testnet.ts +18 -7
- package/src/deployments/types.ts +14 -0
- package/src/predict/bindings/expiry-market.ts +87 -0
- package/src/predict/bindings/queue.ts +42 -0
- package/src/predict/bindings/rename.ts +5 -1
- package/src/predict/client.ts +25 -3
- package/src/predict/config/generated.ts +3 -0
- package/src/predict/config/mainnet.ts +4 -0
- package/src/predict/config/testnet.ts +4 -0
- package/src/predict/config/types.ts +23 -0
- package/src/predict/cost.ts +9 -1
- package/src/predict/errors.ts +11 -1
- package/src/predict/index.ts +1 -1
- package/src/predict/queue.ts +8 -4
- package/src/predict/reads/queue.ts +7 -4
- package/src/predict/tx/common.ts +2 -0
- package/src/predict/tx/trade.ts +3 -1
- package/src/sessions.ts +10 -1
- package/src/utils/constants.ts +8 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigValue, MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs50 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions161 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict/plp.d.ts
|
|
@@ -8,22 +8,22 @@ declare namespace plp_d_exports {
|
|
|
8
8
|
export { ActiveExpiryMarketsArguments, ActiveExpiryMarketsOptions, ActiveLiveExpiryCountArguments, ActiveLiveExpiryCountOptions, AddUsdcToPlpArguments, AddUsdcToPlpOptions, CancelSupplyRequestArguments, CancelSupplyRequestOptions, CancelWithdrawRequestArguments, CancelWithdrawRequestOptions, FeeIncentiveReserveArguments, FeeIncentiveReserveOptions, FinishFlushArguments, FinishFlushOptions, IdArguments, IdOptions, IdleBalanceArguments, IdleBalanceOptions, LockCapitalArguments, LockCapitalOptions, PLP, PendingProtocolProfitArguments, PendingProtocolProfitOptions, PlpTotalSupplyArguments, PlpTotalSupplyOptions, PoolValuation, PoolValuationProof, PoolVault, ProfitBasisCreditsArguments, ProfitBasisCreditsOptions, ProfitBasisDebitsArguments, ProfitBasisDebitsOptions, ProtocolReserveBalanceArguments, ProtocolReserveBalanceOptions, RebalanceExpiryCashArguments, RebalanceExpiryCashOptions, RequestSupplyArguments, RequestSupplyOptions, RequestWithdrawArguments, RequestWithdrawOptions, SealValuationSnapshotArguments, SealValuationSnapshotOptions, SnapshotExpiryPricerArguments, SnapshotExpiryPricerOptions, SnapshotStage, SponsorFeeIncentivesArguments, SponsorFeeIncentivesOptions, StartPoolValuationArguments, StartPoolValuationOptions, SupplyRequestsPendingArguments, SupplyRequestsPendingOptions, ValueExpiryArguments, ValueExpiryOptions, WithdrawFeeIncentivesArguments, WithdrawFeeIncentivesOptions, WithdrawRequestsPendingArguments, WithdrawRequestsPendingOptions, activeExpiryMarkets, activeLiveExpiryCount, addUsdcToPlp, cancelSupplyRequest, cancelWithdrawRequest, feeIncentiveReserve, finishFlush, id, idleBalance, lockCapital, pendingProtocolProfit, plpTotalSupply, profitBasisCredits, profitBasisDebits, protocolReserveBalance, rebalanceExpiryCash, requestSupply, requestWithdraw, sealValuationSnapshot, snapshotExpiryPricer, sponsorFeeIncentives, startPoolValuation, supplyRequestsPending, valueExpiry, withdrawFeeIncentives, withdrawRequestsPending };
|
|
9
9
|
}
|
|
10
10
|
declare const PLP: MoveStruct<{
|
|
11
|
-
dummy_field:
|
|
11
|
+
dummy_field: _mysten_sui_bcs50.BcsType<boolean, boolean, "bool">;
|
|
12
12
|
}, "@local-pkg/deepbook_predict::plp::PLP">;
|
|
13
13
|
declare const PoolValuationProof: MoveStruct<{
|
|
14
|
-
dummy_field:
|
|
14
|
+
dummy_field: _mysten_sui_bcs50.BcsType<boolean, boolean, "bool">;
|
|
15
15
|
}, "@local-pkg/deepbook_predict::plp::PoolValuationProof">;
|
|
16
16
|
declare const SnapshotStage: MoveStruct<{
|
|
17
|
-
dummy_field:
|
|
17
|
+
dummy_field: _mysten_sui_bcs50.BcsType<boolean, boolean, "bool">;
|
|
18
18
|
}, "@local-pkg/deepbook_predict::plp::SnapshotStage">;
|
|
19
19
|
declare const PoolValuation: MoveStruct<{
|
|
20
|
-
/** Active expiry markets snapshotted at start; every one must be valued. */expected_expiry_markets:
|
|
20
|
+
/** Active expiry markets snapshotted at start; every one must be valued. */expected_expiry_markets: _mysten_sui_bcs50.BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
21
21
|
length: number;
|
|
22
22
|
}, string>; /** Markets valued so far this flush; folded against `expected` at finish. */
|
|
23
|
-
valued_expiry_markets:
|
|
23
|
+
valued_expiry_markets: _mysten_sui_bcs50.BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
|
|
24
24
|
length: number;
|
|
25
25
|
}, string>; /** Running Σ of each valued market's snapshot NAV (settled markets contribute 0). */
|
|
26
|
-
total_nav:
|
|
26
|
+
total_nav: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
27
27
|
/**
|
|
28
28
|
* Oracle state frozen during the snapshot stage, one entry per expected market.
|
|
29
29
|
* Keyed by market id so a `Pricer` can never be applied to the wrong market.
|
|
@@ -33,7 +33,7 @@ declare const PoolValuation: MoveStruct<{
|
|
|
33
33
|
* clock or oracle state can change a market's contribution.
|
|
34
34
|
*/
|
|
35
35
|
frozen_pricers: MoveStruct<{
|
|
36
|
-
contents:
|
|
36
|
+
contents: _mysten_sui_bcs50.BcsType<{
|
|
37
37
|
key: string;
|
|
38
38
|
value: {
|
|
39
39
|
expiry_market_id: string;
|
|
@@ -89,22 +89,22 @@ declare const PoolValuation: MoveStruct<{
|
|
|
89
89
|
* Set by `seal_valuation_snapshot`; no market may be valued before it. Nothing may
|
|
90
90
|
* be snapshotted after it because sealing consumes the `SnapshotStage`.
|
|
91
91
|
*/
|
|
92
|
-
sealed:
|
|
93
|
-
started_at_ms:
|
|
92
|
+
sealed: _mysten_sui_bcs50.BcsType<boolean, boolean, "bool">; /** Clock time the flush was started, for the stuck-flush deadline. */
|
|
93
|
+
started_at_ms: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
94
94
|
/**
|
|
95
95
|
* Drain budgets committed at start (the cap owner's choice), bounding how many
|
|
96
96
|
* requests each queue processes at finish. `finish_flush` takes no budget, so the
|
|
97
97
|
* flush operator who completes it drains at exactly these.
|
|
98
98
|
*/
|
|
99
|
-
supply_budget:
|
|
100
|
-
withdraw_budget:
|
|
99
|
+
supply_budget: _mysten_sui_bcs50.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
100
|
+
withdraw_budget: _mysten_sui_bcs50.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
101
101
|
/**
|
|
102
102
|
* Each LP queue's `next_index` at the snapshot instant: the drain fills only
|
|
103
103
|
* requests indexed strictly below these, so nobody can watch the frozen mark form
|
|
104
104
|
* and then submit against a price they already know is stale.
|
|
105
105
|
*/
|
|
106
|
-
supply_request_cutoff:
|
|
107
|
-
withdraw_request_cutoff:
|
|
106
|
+
supply_request_cutoff: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
107
|
+
withdraw_request_cutoff: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
108
108
|
/**
|
|
109
109
|
* Vault-side figures captured by `seal_valuation_snapshot`. With every market's
|
|
110
110
|
* cash frozen in its stamp and these frozen here, the mark is a pure function of
|
|
@@ -113,69 +113,69 @@ declare const PoolValuation: MoveStruct<{
|
|
|
113
113
|
* during the snapshot stage, so their recoverable cash sits inside
|
|
114
114
|
* `frozen_idle_balance`.
|
|
115
115
|
*/
|
|
116
|
-
frozen_idle_balance:
|
|
117
|
-
frozen_profit_basis_credits:
|
|
118
|
-
frozen_profit_basis_debits:
|
|
119
|
-
frozen_pending_protocol_profit:
|
|
116
|
+
frozen_idle_balance: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
117
|
+
frozen_profit_basis_credits: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
118
|
+
frozen_profit_basis_debits: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
119
|
+
frozen_pending_protocol_profit: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
120
120
|
}, "@local-pkg/deepbook_predict::plp::PoolValuation">;
|
|
121
121
|
declare const PoolVault: MoveStruct<{
|
|
122
|
-
id:
|
|
122
|
+
id: _mysten_sui_bcs50.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
123
123
|
/**
|
|
124
124
|
* Protocol-owned USDC excluded from PLP redemption. No package entrypoint
|
|
125
125
|
* withdraws this balance.
|
|
126
126
|
*/
|
|
127
127
|
protocol_reserve_balance: MoveStruct<{
|
|
128
|
-
value:
|
|
128
|
+
value: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
129
129
|
}, "0x2::balance::Balance<phantom T>">;
|
|
130
130
|
/**
|
|
131
131
|
* Sponsor-funded USDC reserved for taker fee sponsorship, excluded from PLP NAV.
|
|
132
132
|
* Admin may reclaim it through `withdraw_fee_incentives`.
|
|
133
133
|
*/
|
|
134
134
|
fee_incentive_reserve: MoveStruct<{
|
|
135
|
-
value:
|
|
135
|
+
value: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
136
136
|
}, "0x2::balance::Balance<phantom T>">; /** PLP share issuance plus queued supply/withdraw escrow. */
|
|
137
137
|
lp: MoveStruct<{
|
|
138
138
|
treasury_cap: MoveStruct<{
|
|
139
|
-
id:
|
|
139
|
+
id: _mysten_sui_bcs50.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
140
140
|
total_supply: MoveStruct<{
|
|
141
|
-
value:
|
|
141
|
+
value: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
142
142
|
}, "0x2::balance::Supply<phantom T>">;
|
|
143
143
|
}, "0x2::coin::TreasuryCap<phantom T>">;
|
|
144
144
|
supply_queue: MoveStruct<{
|
|
145
145
|
pages: MoveStruct<{
|
|
146
|
-
id:
|
|
147
|
-
size:
|
|
146
|
+
id: _mysten_sui_bcs50.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
147
|
+
size: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
148
148
|
}, "0x2::table::Table<phantom K, phantom V>">;
|
|
149
|
-
head_page_id:
|
|
150
|
-
tail_page_id:
|
|
151
|
-
next_index:
|
|
152
|
-
pending:
|
|
149
|
+
head_page_id: _mysten_sui_bcs50.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
150
|
+
tail_page_id: _mysten_sui_bcs50.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
151
|
+
next_index: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
152
|
+
pending: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
153
153
|
escrow: MoveStruct<{
|
|
154
|
-
value:
|
|
154
|
+
value: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
155
155
|
}, "0x2::balance::Balance<phantom T>">;
|
|
156
156
|
}, "@local-pkg/deepbook_predict::lp_book::RequestQueue<phantom T>">;
|
|
157
157
|
withdraw_queue: MoveStruct<{
|
|
158
158
|
pages: MoveStruct<{
|
|
159
|
-
id:
|
|
160
|
-
size:
|
|
159
|
+
id: _mysten_sui_bcs50.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
160
|
+
size: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
161
161
|
}, "0x2::table::Table<phantom K, phantom V>">;
|
|
162
|
-
head_page_id:
|
|
163
|
-
tail_page_id:
|
|
164
|
-
next_index:
|
|
165
|
-
pending:
|
|
162
|
+
head_page_id: _mysten_sui_bcs50.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
163
|
+
tail_page_id: _mysten_sui_bcs50.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
164
|
+
next_index: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
165
|
+
pending: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
166
166
|
escrow: MoveStruct<{
|
|
167
|
-
value:
|
|
167
|
+
value: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
168
168
|
}, "0x2::balance::Balance<phantom T>">;
|
|
169
169
|
}, "@local-pkg/deepbook_predict::lp_book::RequestQueue<phantom T>">;
|
|
170
170
|
locked_lp: MoveStruct<{
|
|
171
|
-
value:
|
|
171
|
+
value: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
172
172
|
}, "0x2::balance::Balance<phantom T>">;
|
|
173
173
|
}, "@local-pkg/deepbook_predict::lp_book::LpBook<phantom LP>">; /** Idle USDC custody, registered expiries, and per-expiry cash-flow rows. */
|
|
174
174
|
expiry_accounting: MoveStruct<{
|
|
175
175
|
idle_balance: MoveStruct<{
|
|
176
|
-
value:
|
|
176
|
+
value: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
177
177
|
}, "0x2::balance::Balance<phantom T>">;
|
|
178
|
-
active_expiry_markets:
|
|
178
|
+
active_expiry_markets: _mysten_sui_bcs50.BcsType<{
|
|
179
179
|
expiry_market_id: string;
|
|
180
180
|
expiry_ms: bigint;
|
|
181
181
|
}[], Iterable<{
|
|
@@ -185,19 +185,19 @@ declare const PoolVault: MoveStruct<{
|
|
|
185
185
|
length: number;
|
|
186
186
|
}, string>;
|
|
187
187
|
registered_expiries: MoveStruct<{
|
|
188
|
-
id:
|
|
189
|
-
size:
|
|
188
|
+
id: _mysten_sui_bcs50.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
189
|
+
size: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
190
190
|
}, "0x2::table::Table<phantom K, phantom V>">;
|
|
191
|
-
profit_basis_debits:
|
|
192
|
-
profit_basis_credits:
|
|
193
|
-
net_losses_to_fill:
|
|
194
|
-
pending_protocol_profit:
|
|
191
|
+
profit_basis_debits: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
192
|
+
profit_basis_credits: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
193
|
+
net_losses_to_fill: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
194
|
+
pending_protocol_profit: _mysten_sui_bcs50.BcsType<bigint, string | number | bigint, "u64">;
|
|
195
195
|
}, "@local-pkg/deepbook_predict::pool_accounting::Ledger">;
|
|
196
196
|
/**
|
|
197
197
|
* In-flight full-pool valuation, held across transactions. `Some` exactly while
|
|
198
198
|
* the `ProtocolConfig` valuation flag is engaged.
|
|
199
199
|
*/
|
|
200
|
-
valuation:
|
|
200
|
+
valuation: _mysten_sui_bcs50.BcsType<{
|
|
201
201
|
expected_expiry_markets: string[];
|
|
202
202
|
valued_expiry_markets: string[];
|
|
203
203
|
total_nav: bigint;
|
|
@@ -299,7 +299,7 @@ interface IdOptions {
|
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
301
|
/** Return the pool vault object ID for external discovery and PTB construction. */
|
|
302
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
302
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
303
303
|
interface IdleBalanceArguments {
|
|
304
304
|
vault?: RawTransactionArgument<string>;
|
|
305
305
|
}
|
|
@@ -312,7 +312,7 @@ interface IdleBalanceOptions {
|
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
314
|
/** Return idle USDC for SDK and devInspect state reads. */
|
|
315
|
-
declare function idleBalance(options: IdleBalanceOptions): (tx: Transaction) =>
|
|
315
|
+
declare function idleBalance(options: IdleBalanceOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
316
316
|
interface ProtocolReserveBalanceArguments {
|
|
317
317
|
vault?: RawTransactionArgument<string>;
|
|
318
318
|
}
|
|
@@ -325,7 +325,7 @@ interface ProtocolReserveBalanceOptions {
|
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
327
|
/** Return protocol-owned USDC for SDK and devInspect state reads. */
|
|
328
|
-
declare function protocolReserveBalance(options: ProtocolReserveBalanceOptions): (tx: Transaction) =>
|
|
328
|
+
declare function protocolReserveBalance(options: ProtocolReserveBalanceOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
329
329
|
interface FeeIncentiveReserveArguments {
|
|
330
330
|
vault?: RawTransactionArgument<string>;
|
|
331
331
|
}
|
|
@@ -338,7 +338,7 @@ interface FeeIncentiveReserveOptions {
|
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
/** Return sponsor-funded fee reserves for SDK and devInspect state reads. */
|
|
341
|
-
declare function feeIncentiveReserve(options: FeeIncentiveReserveOptions): (tx: Transaction) =>
|
|
341
|
+
declare function feeIncentiveReserve(options: FeeIncentiveReserveOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
342
342
|
interface PlpTotalSupplyArguments {
|
|
343
343
|
vault?: RawTransactionArgument<string>;
|
|
344
344
|
}
|
|
@@ -351,7 +351,7 @@ interface PlpTotalSupplyOptions {
|
|
|
351
351
|
};
|
|
352
352
|
}
|
|
353
353
|
/** Return total PLP supply for SDK and devInspect state reads. */
|
|
354
|
-
declare function plpTotalSupply(options: PlpTotalSupplyOptions): (tx: Transaction) =>
|
|
354
|
+
declare function plpTotalSupply(options: PlpTotalSupplyOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
355
355
|
interface SupplyRequestsPendingArguments {
|
|
356
356
|
vault?: RawTransactionArgument<string>;
|
|
357
357
|
}
|
|
@@ -364,7 +364,7 @@ interface SupplyRequestsPendingOptions {
|
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
366
|
/** Return pending LP supply count for SDK and devInspect queue reads. */
|
|
367
|
-
declare function supplyRequestsPending(options: SupplyRequestsPendingOptions): (tx: Transaction) =>
|
|
367
|
+
declare function supplyRequestsPending(options: SupplyRequestsPendingOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
368
368
|
interface WithdrawRequestsPendingArguments {
|
|
369
369
|
vault?: RawTransactionArgument<string>;
|
|
370
370
|
}
|
|
@@ -377,7 +377,7 @@ interface WithdrawRequestsPendingOptions {
|
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
379
|
/** Return pending LP withdrawal count for SDK and devInspect queue reads. */
|
|
380
|
-
declare function withdrawRequestsPending(options: WithdrawRequestsPendingOptions): (tx: Transaction) =>
|
|
380
|
+
declare function withdrawRequestsPending(options: WithdrawRequestsPendingOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
381
381
|
interface ActiveExpiryMarketsArguments {
|
|
382
382
|
vault?: RawTransactionArgument<string>;
|
|
383
383
|
}
|
|
@@ -390,7 +390,7 @@ interface ActiveExpiryMarketsOptions {
|
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
392
|
/** Return active expiry IDs for external PTB construction and pool inspection. */
|
|
393
|
-
declare function activeExpiryMarkets(options: ActiveExpiryMarketsOptions): (tx: Transaction) =>
|
|
393
|
+
declare function activeExpiryMarkets(options: ActiveExpiryMarketsOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
394
394
|
interface ActiveLiveExpiryCountArguments {
|
|
395
395
|
vault?: RawTransactionArgument<string>;
|
|
396
396
|
}
|
|
@@ -403,7 +403,7 @@ interface ActiveLiveExpiryCountOptions {
|
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
405
|
/** Return the pre-expiry active count for SDK and devInspect capacity reads. */
|
|
406
|
-
declare function activeLiveExpiryCount(options: ActiveLiveExpiryCountOptions): (tx: Transaction) =>
|
|
406
|
+
declare function activeLiveExpiryCount(options: ActiveLiveExpiryCountOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
407
407
|
interface ProfitBasisDebitsArguments {
|
|
408
408
|
vault?: RawTransactionArgument<string>;
|
|
409
409
|
}
|
|
@@ -416,7 +416,7 @@ interface ProfitBasisDebitsOptions {
|
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
418
|
/** Return the profit-basis debits for external accounting observability. */
|
|
419
|
-
declare function profitBasisDebits(options: ProfitBasisDebitsOptions): (tx: Transaction) =>
|
|
419
|
+
declare function profitBasisDebits(options: ProfitBasisDebitsOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
420
420
|
interface ProfitBasisCreditsArguments {
|
|
421
421
|
vault?: RawTransactionArgument<string>;
|
|
422
422
|
}
|
|
@@ -429,7 +429,7 @@ interface ProfitBasisCreditsOptions {
|
|
|
429
429
|
};
|
|
430
430
|
}
|
|
431
431
|
/** Return the profit-basis credits for external accounting observability. */
|
|
432
|
-
declare function profitBasisCredits(options: ProfitBasisCreditsOptions): (tx: Transaction) =>
|
|
432
|
+
declare function profitBasisCredits(options: ProfitBasisCreditsOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
433
433
|
interface PendingProtocolProfitArguments {
|
|
434
434
|
vault?: RawTransactionArgument<string>;
|
|
435
435
|
}
|
|
@@ -442,7 +442,7 @@ interface PendingProtocolProfitOptions {
|
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
444
|
/** Return deferred protocol profit for external accounting observability. */
|
|
445
|
-
declare function pendingProtocolProfit(options: PendingProtocolProfitOptions): (tx: Transaction) =>
|
|
445
|
+
declare function pendingProtocolProfit(options: PendingProtocolProfitOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
446
446
|
interface StartPoolValuationArguments {
|
|
447
447
|
config?: RawTransactionArgument<string>;
|
|
448
448
|
vault?: RawTransactionArgument<string>;
|
|
@@ -467,7 +467,7 @@ interface StartPoolValuationOptions {
|
|
|
467
467
|
* snapshot stage: freeze every active market's pricer under the returned
|
|
468
468
|
* `SnapshotStage`, then seal it in the same transaction.
|
|
469
469
|
*/
|
|
470
|
-
declare function startPoolValuation(options: StartPoolValuationOptions): (tx: Transaction) =>
|
|
470
|
+
declare function startPoolValuation(options: StartPoolValuationOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
471
471
|
interface SnapshotExpiryPricerArguments {
|
|
472
472
|
vault?: RawTransactionArgument<string>;
|
|
473
473
|
Stage: TransactionArgument;
|
|
@@ -510,7 +510,7 @@ interface SnapshotExpiryPricerOptions {
|
|
|
510
510
|
* flag is never left engaged. Settle it first, then start the flush; settlement is
|
|
511
511
|
* never blocked by a flush, so that ordering is always available.
|
|
512
512
|
*/
|
|
513
|
-
declare function snapshotExpiryPricer(options: SnapshotExpiryPricerOptions): (tx: Transaction) =>
|
|
513
|
+
declare function snapshotExpiryPricer(options: SnapshotExpiryPricerOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
514
514
|
interface SealValuationSnapshotArguments {
|
|
515
515
|
vault?: RawTransactionArgument<string>;
|
|
516
516
|
stage: TransactionArgument;
|
|
@@ -538,7 +538,7 @@ interface SealValuationSnapshotOptions {
|
|
|
538
538
|
* land between a stamp and this capture. Valuation may then resume across as many
|
|
539
539
|
* transactions as it needs.
|
|
540
540
|
*/
|
|
541
|
-
declare function sealValuationSnapshot(options: SealValuationSnapshotOptions): (tx: Transaction) =>
|
|
541
|
+
declare function sealValuationSnapshot(options: SealValuationSnapshotOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
542
542
|
interface ValueExpiryArguments {
|
|
543
543
|
vault?: RawTransactionArgument<string>;
|
|
544
544
|
market: RawTransactionArgument<string>;
|
|
@@ -568,7 +568,7 @@ interface ValueExpiryOptions {
|
|
|
568
568
|
* mid-window is valued at its frozen pre-expiry mark; its settlement does not wait
|
|
569
569
|
* for this call, because settlement is never blocked by a flush.
|
|
570
570
|
*/
|
|
571
|
-
declare function valueExpiry(options: ValueExpiryOptions): (tx: Transaction) =>
|
|
571
|
+
declare function valueExpiry(options: ValueExpiryOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
572
572
|
interface FinishFlushArguments {
|
|
573
573
|
vault?: RawTransactionArgument<string>;
|
|
574
574
|
config?: RawTransactionArgument<string>;
|
|
@@ -617,7 +617,7 @@ interface FinishFlushOptions {
|
|
|
617
617
|
* completes a flush keeps idle predictable for the keeper that funds markets for
|
|
618
618
|
* queued orders.
|
|
619
619
|
*/
|
|
620
|
-
declare function finishFlush(options: FinishFlushOptions): (tx: Transaction) =>
|
|
620
|
+
declare function finishFlush(options: FinishFlushOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
621
621
|
interface RebalanceExpiryCashArguments {
|
|
622
622
|
vault?: RawTransactionArgument<string>;
|
|
623
623
|
market: RawTransactionArgument<string>;
|
|
@@ -653,7 +653,7 @@ interface RebalanceExpiryCashOptions {
|
|
|
653
653
|
* between a market's stamp and the seal's vault capture would skew the frozen
|
|
654
654
|
* figures, so it is structurally rejected rather than corrected for.
|
|
655
655
|
*/
|
|
656
|
-
declare function rebalanceExpiryCash(options: RebalanceExpiryCashOptions): (tx: Transaction) =>
|
|
656
|
+
declare function rebalanceExpiryCash(options: RebalanceExpiryCashOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
657
657
|
interface SponsorFeeIncentivesArguments {
|
|
658
658
|
vault?: RawTransactionArgument<string>;
|
|
659
659
|
config?: RawTransactionArgument<string>;
|
|
@@ -675,7 +675,7 @@ interface SponsorFeeIncentivesOptions {
|
|
|
675
675
|
* sponsor: admin can withdraw any of the reserve through
|
|
676
676
|
* `withdraw_fee_incentives`.
|
|
677
677
|
*/
|
|
678
|
-
declare function sponsorFeeIncentives(options: SponsorFeeIncentivesOptions): (tx: Transaction) =>
|
|
678
|
+
declare function sponsorFeeIncentives(options: SponsorFeeIncentivesOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
679
679
|
interface WithdrawFeeIncentivesArguments {
|
|
680
680
|
vault?: RawTransactionArgument<string>;
|
|
681
681
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -707,7 +707,7 @@ interface WithdrawFeeIncentivesOptions {
|
|
|
707
707
|
* excluded from PLP NAV and no flush figure, frozen or live, reads it, so a
|
|
708
708
|
* withdrawal cannot reach the mark.
|
|
709
709
|
*/
|
|
710
|
-
declare function withdrawFeeIncentives(options: WithdrawFeeIncentivesOptions): (tx: Transaction) =>
|
|
710
|
+
declare function withdrawFeeIncentives(options: WithdrawFeeIncentivesOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
711
711
|
interface AddUsdcToPlpArguments {
|
|
712
712
|
vault?: RawTransactionArgument<string>;
|
|
713
713
|
config?: RawTransactionArgument<string>;
|
|
@@ -765,7 +765,7 @@ interface AddUsdcToPlpOptions {
|
|
|
765
765
|
* gate. `rebalance_expiry_cash` may run mid-window because it only moves cash
|
|
766
766
|
* between two figures the seal already froze; new value is different.
|
|
767
767
|
*/
|
|
768
|
-
declare function addUsdcToPlp(options: AddUsdcToPlpOptions): (tx: Transaction) =>
|
|
768
|
+
declare function addUsdcToPlp(options: AddUsdcToPlpOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
769
769
|
interface LockCapitalArguments {
|
|
770
770
|
vault?: RawTransactionArgument<string>;
|
|
771
771
|
config?: RawTransactionArgument<string>;
|
|
@@ -790,7 +790,7 @@ interface LockCapitalOptions {
|
|
|
790
790
|
* Supply, withdrawal, and flush flows remain disabled until the locked liquidity
|
|
791
791
|
* has been created.
|
|
792
792
|
*/
|
|
793
|
-
declare function lockCapital(options: LockCapitalOptions): (tx: Transaction) =>
|
|
793
|
+
declare function lockCapital(options: LockCapitalOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
794
794
|
interface RequestSupplyArguments {
|
|
795
795
|
vault?: RawTransactionArgument<string>;
|
|
796
796
|
wrapper: RawTransactionArgument<string>;
|
|
@@ -823,7 +823,7 @@ interface RequestSupplyOptions {
|
|
|
823
823
|
* that many flushes first. Returns the queue index, the handle used to cancel
|
|
824
824
|
* before the flush.
|
|
825
825
|
*/
|
|
826
|
-
declare function requestSupply(options: RequestSupplyOptions): (tx: Transaction) =>
|
|
826
|
+
declare function requestSupply(options: RequestSupplyOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
827
827
|
interface RequestWithdrawArguments {
|
|
828
828
|
vault?: RawTransactionArgument<string>;
|
|
829
829
|
wrapper: RawTransactionArgument<string>;
|
|
@@ -855,7 +855,7 @@ interface RequestWithdrawOptions {
|
|
|
855
855
|
* there and then; a higher configured count lets it rest and retry that many
|
|
856
856
|
* flushes first. Returns the queue index used to cancel before the flush.
|
|
857
857
|
*/
|
|
858
|
-
declare function requestWithdraw(options: RequestWithdrawOptions): (tx: Transaction) =>
|
|
858
|
+
declare function requestWithdraw(options: RequestWithdrawOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
859
859
|
interface CancelSupplyRequestArguments {
|
|
860
860
|
vault?: RawTransactionArgument<string>;
|
|
861
861
|
wrapper: RawTransactionArgument<string>;
|
|
@@ -876,7 +876,7 @@ interface CancelSupplyRequestOptions {
|
|
|
876
876
|
* Cancel a still-pending supply request, refunding its escrowed USDC straight into
|
|
877
877
|
* the requesting account. `account` must be the request's recorded recipient.
|
|
878
878
|
*/
|
|
879
|
-
declare function cancelSupplyRequest(options: CancelSupplyRequestOptions): (tx: Transaction) =>
|
|
879
|
+
declare function cancelSupplyRequest(options: CancelSupplyRequestOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
880
880
|
interface CancelWithdrawRequestArguments {
|
|
881
881
|
vault?: RawTransactionArgument<string>;
|
|
882
882
|
wrapper: RawTransactionArgument<string>;
|
|
@@ -897,7 +897,7 @@ interface CancelWithdrawRequestOptions {
|
|
|
897
897
|
* Cancel a still-pending withdraw request, refunding its escrowed PLP straight
|
|
898
898
|
* into the requesting account. `account` must be the request's recorded recipient.
|
|
899
899
|
*/
|
|
900
|
-
declare function cancelWithdrawRequest(options: CancelWithdrawRequestOptions): (tx: Transaction) =>
|
|
900
|
+
declare function cancelWithdrawRequest(options: CancelWithdrawRequestOptions): (tx: Transaction) => _mysten_sui_transactions161.TransactionResult;
|
|
901
901
|
//#endregion
|
|
902
902
|
export { plp_d_exports };
|
|
903
903
|
//# sourceMappingURL=plp.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plp.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/plp.ts"],"mappings":";;;;;;;;;cAkCa,GAAA,EAAG,UAAA;eAKd,
|
|
1
|
+
{"version":3,"file":"plp.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/plp.ts"],"mappings":";;;;;;;;;cAkCa,GAAA,EAAG,UAAA;eAKd,iBAAA,CAAA,OAAA;AAAA;AAAA,cACW,kBAAA,EAAkB,UAAA;eAK7B,iBAAA,CAAA,OAAA;AAAA;AAAA,cACW,aAAA,EAAa,UAAA;eAKxB,iBAAA,CAAA,OAAA;AAAA;AAAA,cACW,aAAA,EAAa,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAZ1B;;;+DAA+B;;;;;AAM/B;;;;EAA0B;;;;;;;;;;;;;;;;;;;;cA2Db,SAAA,EAAS,UAAA;;;;;;;;;;;;;;;0CArDI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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WAAA;IACX,cAAA,EAAgB,WAAA;IAChB,gBAAA;EAAA;AAAA;;;;;iBAOc,qBAAA,CAAsB,OAAA,EAAS,4BAAA,IAatC,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs96 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions190 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict/pool_valuation_cap.d.ts
|
|
@@ -8,7 +8,7 @@ declare namespace pool_valuation_cap_d_exports {
|
|
|
8
8
|
export { DestroyArguments, DestroyOptions, IdArguments, IdOptions, PoolValuationCap, destroy, id };
|
|
9
9
|
}
|
|
10
10
|
declare const PoolValuationCap: MoveStruct<{
|
|
11
|
-
id:
|
|
11
|
+
id: _mysten_sui_bcs96.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
12
|
}, "@local-pkg/deepbook_predict::pool_valuation_cap::PoolValuationCap">;
|
|
13
13
|
interface IdArguments {
|
|
14
14
|
cap: RawTransactionArgument<string>;
|
|
@@ -21,7 +21,7 @@ interface IdOptions {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
/** Returns the capability identity used by the registry allowlist. */
|
|
24
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
24
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions190.TransactionResult;
|
|
25
25
|
interface DestroyArguments {
|
|
26
26
|
cap: RawTransactionArgument<string>;
|
|
27
27
|
}
|
|
@@ -33,7 +33,7 @@ interface DestroyOptions {
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
/** Destroy a `PoolValuationCap` the holder no longer needs. */
|
|
36
|
-
declare function destroy(options: DestroyOptions): (tx: Transaction) =>
|
|
36
|
+
declare function destroy(options: DestroyOptions): (tx: Transaction) => _mysten_sui_transactions190.TransactionResult;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { pool_valuation_cap_d_exports };
|
|
39
39
|
//# sourceMappingURL=pool_valuation_cap.d.mts.map
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { MoveStruct, MoveTuple, RawTransactionArgument } from "../utils/index.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_bcs97 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions192 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_predict/predict_account.d.ts
|
|
7
7
|
declare namespace predict_account_d_exports {
|
|
8
8
|
export { BuilderCodeIdArguments, BuilderCodeIdOptions, HasPositionArguments, HasPositionOptions, Position, PositionKey, PredictApp, PredictData, SetBuilderCodeArguments, SetBuilderCodeOptions, UnsetBuilderCodeArguments, UnsetBuilderCodeOptions, builderCodeId, hasPosition, setBuilderCode, unsetBuilderCode };
|
|
9
9
|
}
|
|
10
|
-
declare const PredictApp: MoveTuple<readonly [
|
|
10
|
+
declare const PredictApp: MoveTuple<readonly [_mysten_sui_bcs97.BcsType<boolean, boolean, "bool">], "@local-pkg/deepbook_predict::predict_account::PredictApp">;
|
|
11
11
|
declare const PositionKey: MoveStruct<{
|
|
12
|
-
expiry_market_id:
|
|
13
|
-
order_id:
|
|
12
|
+
expiry_market_id: _mysten_sui_bcs97.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
13
|
+
order_id: _mysten_sui_bcs97.BcsType<bigint, string | number | bigint, "u256">;
|
|
14
14
|
}, "@local-pkg/deepbook_predict::predict_account::PositionKey">;
|
|
15
15
|
declare const Position: MoveStruct<{
|
|
16
|
-
/** Root order ID, carried forward unchanged across partial-close replacements. */root_id:
|
|
16
|
+
/** Root order ID, carried forward unchanged across partial-close replacements. */root_id: _mysten_sui_bcs97.BcsType<bigint, string | number | bigint, "u256">;
|
|
17
17
|
/**
|
|
18
18
|
* On-chain time (`clock.timestamp_ms()`) the position was opened, carried forward
|
|
19
19
|
* unchanged across partial-close replacements. A live redeem in the same timestamp
|
|
20
20
|
* is rejected, blocking an atomic mint -> oracle-update -> redeem in one
|
|
21
21
|
* transaction.
|
|
22
22
|
*/
|
|
23
|
-
opened_at_ms:
|
|
23
|
+
opened_at_ms: _mysten_sui_bcs97.BcsType<bigint, string | number | bigint, "u64">;
|
|
24
24
|
}, "@local-pkg/deepbook_predict::predict_account::Position">;
|
|
25
25
|
declare const PredictData: MoveStruct<{
|
|
26
26
|
/** Open positions scoped by expiry market. */positions: MoveStruct<{
|
|
27
|
-
id:
|
|
28
|
-
size:
|
|
27
|
+
id: _mysten_sui_bcs97.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
28
|
+
size: _mysten_sui_bcs97.BcsType<bigint, string | number | bigint, "u64">;
|
|
29
29
|
}, "0x2::table::Table<phantom K, phantom V>">; /** Sticky builder-code attribution for future trades, if set. */
|
|
30
|
-
builder_code_id:
|
|
30
|
+
builder_code_id: _mysten_sui_bcs97.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
|
|
31
31
|
}, "@local-pkg/deepbook_predict::predict_account::PredictData">;
|
|
32
32
|
interface HasPositionArguments {
|
|
33
33
|
account: TransactionArgument;
|
|
@@ -42,7 +42,7 @@ interface HasPositionOptions {
|
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
/** Return whether an account holds a position for SDK and devInspect state reads. */
|
|
45
|
-
declare function hasPosition(options: HasPositionOptions): (tx: Transaction) =>
|
|
45
|
+
declare function hasPosition(options: HasPositionOptions): (tx: Transaction) => _mysten_sui_transactions192.TransactionResult;
|
|
46
46
|
interface BuilderCodeIdArguments {
|
|
47
47
|
account: TransactionArgument;
|
|
48
48
|
}
|
|
@@ -54,7 +54,7 @@ interface BuilderCodeIdOptions {
|
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
/** Return the sticky builder-code ID, if set. */
|
|
57
|
-
declare function builderCodeId(options: BuilderCodeIdOptions): (tx: Transaction) =>
|
|
57
|
+
declare function builderCodeId(options: BuilderCodeIdOptions): (tx: Transaction) => _mysten_sui_transactions192.TransactionResult;
|
|
58
58
|
interface SetBuilderCodeArguments {
|
|
59
59
|
wrapper: RawTransactionArgument<string>;
|
|
60
60
|
auth: TransactionArgument;
|
|
@@ -68,10 +68,12 @@ interface SetBuilderCodeOptions {
|
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
|
-
* Set sticky builder
|
|
72
|
-
*
|
|
71
|
+
* Set the sticky builder code using valid account auth. Owner auth and
|
|
72
|
+
* authorized-app auth both satisfy the account borrow boundary. Kept for
|
|
73
|
+
* compatibility: it no longer affects fees, since a trade names its builder and
|
|
74
|
+
* fee itself.
|
|
73
75
|
*/
|
|
74
|
-
declare function setBuilderCode(options: SetBuilderCodeOptions): (tx: Transaction) =>
|
|
76
|
+
declare function setBuilderCode(options: SetBuilderCodeOptions): (tx: Transaction) => _mysten_sui_transactions192.TransactionResult;
|
|
75
77
|
interface UnsetBuilderCodeArguments {
|
|
76
78
|
wrapper: RawTransactionArgument<string>;
|
|
77
79
|
auth: TransactionArgument;
|
|
@@ -83,8 +85,11 @@ interface UnsetBuilderCodeOptions {
|
|
|
83
85
|
predictPackageId?: string;
|
|
84
86
|
};
|
|
85
87
|
}
|
|
86
|
-
/**
|
|
87
|
-
|
|
88
|
+
/**
|
|
89
|
+
* Clear the sticky builder code using valid owner or authorized-app auth. Kept for
|
|
90
|
+
* compatibility: the code no longer affects fees.
|
|
91
|
+
*/
|
|
92
|
+
declare function unsetBuilderCode(options: UnsetBuilderCodeOptions): (tx: Transaction) => _mysten_sui_transactions192.TransactionResult;
|
|
88
93
|
//#endregion
|
|
89
94
|
export { predict_account_d_exports };
|
|
90
95
|
//# sourceMappingURL=predict_account.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predict_account.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/predict_account.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"predict_account.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/predict_account.ts"],"mappings":";;;;;;;;;cA6Ba,UAAA,EAAU,SAAA,WAGrB,iBAAA,CAHqB,OAAA;AAAA,cAIV,WAAA,EAAW,UAAA;;;;cAOX,QAAA,EAAQ,UAAA;6FAanB,iBAAA,CAAA,OAAA;EArBA;;;;AACF;;;;cAqBa,WAAA,EAAW,UAAA;;;;iDArBA;;;UA8BP,oBAAA;EAChB,OAAA,EAAS,mBAAA;EACT,cAAA,EAAgB,sBAAA;EAChB,OAAA,EAAS,sBAAA;AAAA;AAAA,UAEO,kBAAA;EAChB,OAAA;EACA,SAAA,EACG,oBAAA,IAEA,OAAA,EAAS,mBAAA,EACT,cAAA,EAAgB,sBAAA,UAChB,OAAA,EAAS,sBAAA;EAEZ,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,WAAA,CAAY,OAAA,EAAS,kBAAA,IAK5B,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAQP,sBAAA;EAChB,OAAA,EAAS,mBAAA;AAAA;AAAA,UAEO,oBAAA;EAChB,OAAA;EACA,SAAA,EAAW,sBAAA,IAA0B,OAAA,EAAS,mBAAA;EAC9C,MAAA;IACC,gBAAA;EAAA;AAAA;;iBAIc,aAAA,CAAc,OAAA,EAAS,oBAAA,IAK9B,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA,UAQP,uBAAA;EAChB,OAAA,EAAS,sBAAA;EACT,IAAA,EAAM,mBAAA;EACN,IAAA,EAAM,sBAAA;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