@mysten/deepbook-v3 2.1.4 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +70 -0
- package/PREDICT.md +154 -48
- package/README.md +18 -13
- package/dist/account.d.mts.map +1 -1
- package/dist/account.mjs +3 -1
- package/dist/account.mjs.map +1 -1
- package/dist/client.d.mts +2 -2
- package/dist/contracts/account/account.d.mts +23 -23
- package/dist/contracts/account/account.d.mts.map +1 -1
- package/dist/contracts/account/account_events.d.mts +20 -20
- package/dist/contracts/account/account_registry.d.mts +19 -19
- package/dist/contracts/deepbook/account.d.mts +18 -18
- package/dist/contracts/deepbook/account.d.mts.map +1 -1
- package/dist/contracts/deepbook/balances.d.mts +4 -4
- package/dist/contracts/deepbook/balances.d.mts.map +1 -1
- package/dist/contracts/deepbook/deep_price.d.mts +3 -3
- package/dist/contracts/deepbook/deep_price.d.mts.map +1 -1
- package/dist/contracts/deepbook/order.d.mts +12 -12
- package/dist/contracts/deepbook_predict/admin.d.mts +27 -0
- package/dist/contracts/deepbook_predict/admin.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/admin.mjs +38 -0
- package/dist/contracts/deepbook_predict/admin.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/builder_code.d.mts +81 -0
- package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/builder_code.mjs +103 -0
- package/dist/contracts/deepbook_predict/builder_code.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts +25 -0
- package/dist/contracts/deepbook_predict/builder_code_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/builder_code_events.mjs +7 -1
- package/dist/contracts/deepbook_predict/builder_code_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/config_events.d.mts +104 -0
- package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/config_events.mjs +155 -0
- package/dist/contracts/deepbook_predict/config_events.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/deps/sui/vec_map.mjs +37 -0
- package/dist/contracts/deepbook_predict/deps/sui/vec_map.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/ewma_config.mjs +28 -0
- package/dist/contracts/deepbook_predict/ewma_config.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/expiry_cash.mjs +1 -1
- package/dist/contracts/deepbook_predict/expiry_cash.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/expiry_market.d.mts +859 -0
- package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/expiry_market.mjs +662 -7
- package/dist/contracts/deepbook_predict/expiry_market.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +39 -0
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.mjs +51 -0
- package/dist/contracts/deepbook_predict/market_lifecycle_cap.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/market_manager.d.mts +159 -0
- package/dist/contracts/deepbook_predict/market_manager.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/market_manager.mjs +88 -2
- package/dist/contracts/deepbook_predict/market_manager.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/order_events.d.mts +101 -0
- package/dist/contracts/deepbook_predict/order_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/order_events.mjs +7 -1
- package/dist/contracts/deepbook_predict/order_events.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pause_cap.d.mts +39 -0
- package/dist/contracts/deepbook_predict/pause_cap.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/pause_cap.mjs +51 -0
- package/dist/contracts/deepbook_predict/pause_cap.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/plp.d.mts +801 -0
- package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/plp.mjs +511 -32
- package/dist/contracts/deepbook_predict/plp.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pool_accounting.mjs +7 -7
- package/dist/contracts/deepbook_predict/pool_accounting.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +39 -0
- package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/pool_valuation_cap.mjs +52 -0
- package/dist/contracts/deepbook_predict/pool_valuation_cap.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/predict_account.d.mts +90 -0
- package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/predict_account.mjs +25 -2
- package/dist/contracts/deepbook_predict/predict_account.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pricing.d.mts +127 -0
- package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/pricing.mjs +37 -1
- package/dist/contracts/deepbook_predict/pricing.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/pricing_config.mjs +28 -0
- package/dist/contracts/deepbook_predict/pricing_config.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/protocol_config.d.mts +665 -0
- package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/protocol_config.mjs +841 -0
- package/dist/contracts/deepbook_predict/protocol_config.mjs.map +1 -0
- package/dist/contracts/deepbook_predict/range_codec.d.mts +30 -0
- package/dist/contracts/deepbook_predict/range_codec.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/range_codec.mjs +6 -1
- package/dist/contracts/deepbook_predict/range_codec.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/registry.d.mts +382 -0
- package/dist/contracts/deepbook_predict/registry.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/registry.mjs +458 -2
- package/dist/contracts/deepbook_predict/registry.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/strike_exposure.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/strike_payout_tree.mjs +13 -1
- package/dist/contracts/deepbook_predict/strike_payout_tree.mjs.map +1 -1
- package/dist/contracts/deepbook_predict/vault_events.d.mts +199 -0
- package/dist/contracts/deepbook_predict/vault_events.d.mts.map +1 -0
- package/dist/contracts/deepbook_predict/vault_events.mjs +38 -8
- package/dist/contracts/deepbook_predict/vault_events.mjs.map +1 -1
- 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 +22 -22
- package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
- package/dist/deployments/index.d.mts +3 -2
- package/dist/deployments/index.d.mts.map +1 -1
- package/dist/deployments/index.mjs +4 -1
- package/dist/deployments/index.mjs.map +1 -1
- package/dist/deployments/mainnet.d.mts +14 -0
- package/dist/deployments/mainnet.d.mts.map +1 -0
- package/dist/deployments/mainnet.mjs +73 -0
- package/dist/deployments/mainnet.mjs.map +1 -0
- package/dist/deployments/testnet.mjs +23 -23
- package/dist/deployments/testnet.mjs.map +1 -1
- package/dist/deployments/types.d.mts +1 -1
- package/dist/predict/client.d.mts +28 -6
- package/dist/predict/client.d.mts.map +1 -1
- package/dist/predict/client.mjs +7 -6
- package/dist/predict/client.mjs.map +1 -1
- package/dist/predict/config/index.d.mts +2 -0
- package/dist/predict/config/index.d.mts.map +1 -1
- package/dist/predict/config/index.mjs +4 -1
- package/dist/predict/config/index.mjs.map +1 -1
- package/dist/predict/config/mainnet.d.mts +17 -0
- package/dist/predict/config/mainnet.d.mts.map +1 -0
- package/dist/predict/config/mainnet.mjs +26 -0
- package/dist/predict/config/mainnet.mjs.map +1 -0
- package/dist/predict/config/types.d.mts +6 -0
- package/dist/predict/config/types.d.mts.map +1 -1
- package/dist/predict/index.d.mts +21 -2
- package/dist/predict/index.mjs +20 -1
- package/dist/predict/pricing.d.mts +6 -6
- package/dist/predict/pricing.d.mts.map +1 -1
- package/dist/predict/pricing.mjs +6 -6
- package/dist/predict/pricing.mjs.map +1 -1
- package/dist/predict/reads/balances.mjs.map +1 -1
- package/dist/predict/reads/markets.mjs +1 -1
- package/dist/predict/reads/markets.mjs.map +1 -1
- package/dist/predict/reads/pricing.d.mts +2 -1
- package/dist/predict/reads/pricing.d.mts.map +1 -1
- package/dist/predict/reads/pricing.mjs.map +1 -1
- package/dist/sessions.d.mts.map +1 -1
- package/dist/sessions.mjs +3 -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/marginLiquidations.d.mts +3 -3
- package/dist/transactions/marginMaintainer.d.mts +5 -5
- package/dist/transactions/marginManager.d.mts +32 -32
- 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/poolProxy.d.mts +8 -8
- package/package.json +3 -3
- package/src/account.ts +3 -1
- package/src/contracts/deepbook_predict/builder_code.ts +3 -3
- package/src/contracts/deepbook_predict/config_events.ts +9 -2
- package/src/contracts/deepbook_predict/deps/sui/vec_map.ts +33 -0
- package/src/contracts/deepbook_predict/expiry_cash.ts +1 -1
- package/src/contracts/deepbook_predict/expiry_market.ts +70 -11
- package/src/contracts/deepbook_predict/market_lifecycle_cap.ts +3 -10
- package/src/contracts/deepbook_predict/market_manager.ts +2 -2
- package/src/contracts/deepbook_predict/order_events.ts +6 -6
- package/src/contracts/deepbook_predict/plp.ts +263 -81
- package/src/contracts/deepbook_predict/pool_accounting.ts +14 -14
- package/src/contracts/deepbook_predict/pool_valuation_cap.ts +69 -0
- package/src/contracts/deepbook_predict/predict_account.ts +1 -1
- package/src/contracts/deepbook_predict/pricing.ts +16 -4
- package/src/contracts/deepbook_predict/protocol_config.ts +202 -7
- package/src/contracts/deepbook_predict/registry.ts +91 -17
- package/src/contracts/deepbook_predict/strike_exposure.ts +1 -1
- package/src/contracts/deepbook_predict/strike_payout_tree.ts +27 -0
- package/src/contracts/deepbook_predict/vault_events.ts +45 -14
- package/src/contracts/propbook/block_scholes_store.ts +8 -42
- package/src/deployments/index.ts +13 -3
- package/src/deployments/mainnet.ts +107 -0
- package/src/deployments/testnet.ts +25 -25
- package/src/deployments/types.ts +1 -1
- package/src/predict/client.ts +48 -17
- package/src/predict/config/index.ts +7 -2
- package/src/predict/config/mainnet.ts +27 -0
- package/src/predict/config/types.ts +7 -1
- package/src/predict/index.ts +31 -2
- package/src/predict/pricing.ts +11 -9
- package/src/predict/reads/balances.ts +1 -1
- package/src/predict/reads/markets.ts +1 -1
- package/src/predict/reads/pricing.ts +2 -1
- package/src/sessions.ts +4 -1
|
@@ -36,6 +36,12 @@ import { bcs } from "@mysten/sui/bcs";
|
|
|
36
36
|
* abort depends on which prefixes a given shape happens to visit, so it is not a
|
|
37
37
|
* desync detector — the per-boundary underflow in `apply_net_delta` is the
|
|
38
38
|
* authority.
|
|
39
|
+
*
|
|
40
|
+
* The module also owns the valuation snapshot for the resumable flush: while a
|
|
41
|
+
* flush generation is active, each node lazily captures its boundary quantities
|
|
42
|
+
* immediately before its first mutation under that generation (an untouched node
|
|
43
|
+
* is its own snapshot), and `walk_linear_frozen` prices the tree exactly as it
|
|
44
|
+
* stood at the snapshot instant through the same walk the live read uses.
|
|
39
45
|
*/
|
|
40
46
|
const $moduleName = "@local-pkg/deepbook_predict::strike_payout_tree";
|
|
41
47
|
const StrikePayoutTree = new MoveStruct({
|
|
@@ -44,7 +50,10 @@ const StrikePayoutTree = new MoveStruct({
|
|
|
44
50
|
root: bcs.option(U64),
|
|
45
51
|
nodes: Table,
|
|
46
52
|
node_count: U64,
|
|
47
|
-
base: U64
|
|
53
|
+
base: U64,
|
|
54
|
+
snapshot_seq: U64,
|
|
55
|
+
snapshot_active: bcs.bool(),
|
|
56
|
+
snapshot_base: U64
|
|
48
57
|
}
|
|
49
58
|
});
|
|
50
59
|
const PayoutSummary = new MoveStruct({
|
|
@@ -63,6 +72,9 @@ const PayoutNode = new MoveStruct({
|
|
|
63
72
|
right: bcs.option(U64),
|
|
64
73
|
local_start: U64,
|
|
65
74
|
local_end: U64,
|
|
75
|
+
snapshot_local_start: U64,
|
|
76
|
+
snapshot_local_end: U64,
|
|
77
|
+
snapshot_seq: U64,
|
|
66
78
|
summary: PayoutSummary
|
|
67
79
|
}
|
|
68
80
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strike_payout_tree.mjs","names":["table.Table"],"sources":["../../../src/contracts/deepbook_predict/strike_payout_tree.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Sparse strike exposure index for payout-liability accounting.\n *\n * The tree keys finite interval boundaries by absolute tick, matching the tick\n * pair packed into the durable order ID. Raw strikes are recovered only at the\n * pricing/settlement boundary, where callers pass the owning market's `tick_size`\n * (`raw_strike = tick * tick_size`); the tree stores no grid geometry.\n *\n * This height-balanced (AVL) tree stores finite interval boundaries touched by\n * positions. Boundary ticks are caller-chosen, so the balancing rule must not read\n * anything the caller supplies: rotations are driven by measured subtree height,\n * which bounds depth at `O(log n)` for _every_ tick set rather than in expectation\n * over a random one. Depth is the cost model that matters — each node is a\n * dynamic-field child, and `apply_at` and `settlement_prefix_payout` touch one per\n * level against a per-transaction cached-object ceiling.\n *\n * It tracks each order's quantity, which is also its settled payout: a winning\n * order pays its full quantity. Live cash backing is the max-point payout plus a\n * buffer over the disjoint-book gap; the tree's max-point term is the floor anchor\n * of that enforced reserve.\n *\n * Shape carries no value for a consistent index: `combine_summaries` is\n * associative over the in-order sequence, so any arrangement of the same\n * boundaries yields identical summaries, settlement prefixes, and linear-walk\n * totals. That holds only while every prefix is non-negative, which a consistent\n * book guarantees. Under a caller/index desync the settlement walk's underflow\n * abort depends on which prefixes a given shape happens to visit, so it is not a\n * desync detector — the per-boundary underflow in `apply_net_delta` is the\n * authority.\n */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U64 } from '../../bcs/integers.js';\nimport * as table from './deps/sui/table.js';\nconst $moduleName = '@local-pkg/deepbook_predict::strike_payout_tree';\nexport const StrikePayoutTree = new MoveStruct({\n\tname: `${$moduleName}::StrikePayoutTree`,\n\tfields: {\n\t\troot: bcs.option(U64),\n\t\tnodes: table.Table,\n\t\tnode_count: U64,\n\t\t/**\n\t\t * Aggregate order quantity over the open-lower prefix, which is also its aggregate\n\t\t * settled payout.\n\t\t */\n\t\tbase: U64,\n\t},\n});\nexport const PayoutSummary = new MoveStruct({\n\tname: `${$moduleName}::PayoutSummary`,\n\tfields: {\n\t\tstart: U64,\n\t\tend: U64,\n\t\t/**\n\t\t * Never exceeds `start`, by construction in `boundary_summary` and\n\t\t * `combine_summaries`. That bound is what makes `combine_summaries` associative at\n\t\t * u64 scale — and therefore what makes the tree's shape irrelevant to every value\n\t\t * it reports. A summary term that could outgrow `start` would break\n\t\t * shape-independence with no test to catch it, and would also abort\n\t\t * `strike_exposure`'s plain `total - max` subtraction.\n\t\t */\n\t\tmax_payout_prefix_gain: U64,\n\t},\n});\nexport const PayoutNode = new MoveStruct({\n\tname: `${$moduleName}::PayoutNode`,\n\tfields: {\n\t\t/**\n\t\t * Longest root-to-leaf path in this subtree, counting this node. A leaf is 1; an\n\t\t * absent child is 0. Maintained by `resummarize` alongside `summary`, and read\n\t\t * only by `rebalance` — never by a caller, and never derived from a tick.\n\t\t */\n\t\theight: U64,\n\t\tleft: bcs.option(U64),\n\t\tright: bcs.option(U64),\n\t\t/**\n\t\t * This node's own boundary terms, stored so the subtree `summary` can be\n\t\t * recomputed without deriving locals by subtracting child summaries.\n\t\t */\n\t\tlocal_start: U64,\n\t\tlocal_end: U64,\n\t\tsummary: PayoutSummary,\n\t},\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"strike_payout_tree.mjs","names":["table.Table"],"sources":["../../../src/contracts/deepbook_predict/strike_payout_tree.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Sparse strike exposure index for payout-liability accounting.\n *\n * The tree keys finite interval boundaries by absolute tick, matching the tick\n * pair packed into the durable order ID. Raw strikes are recovered only at the\n * pricing/settlement boundary, where callers pass the owning market's `tick_size`\n * (`raw_strike = tick * tick_size`); the tree stores no grid geometry.\n *\n * This height-balanced (AVL) tree stores finite interval boundaries touched by\n * positions. Boundary ticks are caller-chosen, so the balancing rule must not read\n * anything the caller supplies: rotations are driven by measured subtree height,\n * which bounds depth at `O(log n)` for _every_ tick set rather than in expectation\n * over a random one. Depth is the cost model that matters — each node is a\n * dynamic-field child, and `apply_at` and `settlement_prefix_payout` touch one per\n * level against a per-transaction cached-object ceiling.\n *\n * It tracks each order's quantity, which is also its settled payout: a winning\n * order pays its full quantity. Live cash backing is the max-point payout plus a\n * buffer over the disjoint-book gap; the tree's max-point term is the floor anchor\n * of that enforced reserve.\n *\n * Shape carries no value for a consistent index: `combine_summaries` is\n * associative over the in-order sequence, so any arrangement of the same\n * boundaries yields identical summaries, settlement prefixes, and linear-walk\n * totals. That holds only while every prefix is non-negative, which a consistent\n * book guarantees. Under a caller/index desync the settlement walk's underflow\n * abort depends on which prefixes a given shape happens to visit, so it is not a\n * desync detector — the per-boundary underflow in `apply_net_delta` is the\n * authority.\n *\n * The module also owns the valuation snapshot for the resumable flush: while a\n * flush generation is active, each node lazily captures its boundary quantities\n * immediately before its first mutation under that generation (an untouched node\n * is its own snapshot), and `walk_linear_frozen` prices the tree exactly as it\n * stood at the snapshot instant through the same walk the live read uses.\n */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U64 } from '../../bcs/integers.js';\nimport * as table from './deps/sui/table.js';\nconst $moduleName = '@local-pkg/deepbook_predict::strike_payout_tree';\nexport const StrikePayoutTree = new MoveStruct({\n\tname: `${$moduleName}::StrikePayoutTree`,\n\tfields: {\n\t\troot: bcs.option(U64),\n\t\tnodes: table.Table,\n\t\tnode_count: U64,\n\t\t/**\n\t\t * Aggregate order quantity over the open-lower prefix, which is also its aggregate\n\t\t * settled payout.\n\t\t */\n\t\tbase: U64,\n\t\t/**\n\t\t * Flush generation whose snapshot this tree holds. Node shadows are valid only\n\t\t * against this value; monotonically increasing, 0 = never snapshotted.\n\t\t */\n\t\tsnapshot_seq: U64,\n\t\t/**\n\t\t * True from `activate_snapshot` until `release_snapshot`/`deactivate_snapshot`.\n\t\t * While set, mutations capture shadows and emptied nodes with shadow quantities\n\t\t * are retained for the frozen walk instead of removed.\n\t\t */\n\t\tsnapshot_active: bcs.bool(),\n\t\t/** `base` as of the snapshot instant, captured eagerly at activation. */\n\t\tsnapshot_base: U64,\n\t},\n});\nexport const PayoutSummary = new MoveStruct({\n\tname: `${$moduleName}::PayoutSummary`,\n\tfields: {\n\t\tstart: U64,\n\t\tend: U64,\n\t\t/**\n\t\t * Never exceeds `start`, by construction in `boundary_summary` and\n\t\t * `combine_summaries`. That bound is what makes `combine_summaries` associative at\n\t\t * u64 scale — and therefore what makes the tree's shape irrelevant to every value\n\t\t * it reports. A summary term that could outgrow `start` would break\n\t\t * shape-independence with no test to catch it, and would also abort\n\t\t * `strike_exposure`'s plain `total - max` subtraction.\n\t\t */\n\t\tmax_payout_prefix_gain: U64,\n\t},\n});\nexport const PayoutNode = new MoveStruct({\n\tname: `${$moduleName}::PayoutNode`,\n\tfields: {\n\t\t/**\n\t\t * Longest root-to-leaf path in this subtree, counting this node. A leaf is 1; an\n\t\t * absent child is 0. Maintained by `resummarize` alongside `summary`, and read\n\t\t * only by `rebalance` — never by a caller, and never derived from a tick.\n\t\t */\n\t\theight: U64,\n\t\tleft: bcs.option(U64),\n\t\tright: bcs.option(U64),\n\t\t/**\n\t\t * This node's own boundary terms, stored so the subtree `summary` can be\n\t\t * recomputed without deriving locals by subtracting child summaries.\n\t\t */\n\t\tlocal_start: U64,\n\t\tlocal_end: U64,\n\t\t/**\n\t\t * Boundary terms at generation `snapshot_seq`'s instant, captured before the first\n\t\t * mutation under it. Active generation + zero shadows = created post-snapshot;\n\t\t * older generation = untouched, live terms ARE the shadow.\n\t\t */\n\t\tsnapshot_local_start: U64,\n\t\tsnapshot_local_end: U64,\n\t\tsnapshot_seq: U64,\n\t\tsummary: PayoutSummary,\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,MAAM,cAAc;AACpB,MAAa,mBAAmB,IAAI,WAAW;CAC9C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,MAAM,IAAI,OAAO,IAAI;EACrB,OAAOA;EACP,YAAY;EAKZ,MAAM;EAKN,cAAc;EAMd,iBAAiB,IAAI,MAAM;EAE3B,eAAe;EACf;CACD,CAAC;AACF,MAAa,gBAAgB,IAAI,WAAW;CAC3C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,OAAO;EACP,KAAK;EASL,wBAAwB;EACxB;CACD,CAAC;AACF,MAAa,aAAa,IAAI,WAAW;CACxC,MAAM,GAAG,YAAY;CACrB,QAAQ;EAMP,QAAQ;EACR,MAAM,IAAI,OAAO,IAAI;EACrB,OAAO,IAAI,OAAO,IAAI;EAKtB,aAAa;EACb,WAAW;EAMX,sBAAsB;EACtB,oBAAoB;EACpB,cAAc;EACd,SAAS;EACT;CACD,CAAC"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { MoveStruct } from "../utils/index.mjs";
|
|
2
|
+
import * as _mysten_sui_bcs371 from "@mysten/sui/bcs";
|
|
3
|
+
|
|
4
|
+
//#region src/contracts/deepbook_predict/vault_events.d.ts
|
|
5
|
+
declare namespace vault_events_d_exports {
|
|
6
|
+
export { CapitalLocked, ExpiryCashRebalanced, ExpiryCashReceived, ExpiryProfitMaterialized, FeeIncentivesAllocated, FeeIncentivesReturned, FeeIncentivesSponsored, FlushExecuted, FlushRestarted, RequestCancelled, RequestLimitMissed, SupplyFilled, SupplyRequested, WithdrawFilled, WithdrawRequested };
|
|
7
|
+
}
|
|
8
|
+
declare const ExpiryCashReceived: MoveStruct<{
|
|
9
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
|
+
expiry_market_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
11
|
+
settlement_price: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
12
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
13
|
+
}, "@local-pkg/deepbook_predict::vault_events::ExpiryCashReceived">;
|
|
14
|
+
declare const ExpiryCashRebalanced: MoveStruct<{
|
|
15
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
16
|
+
expiry_market_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
17
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
18
|
+
to_expiry: _mysten_sui_bcs371.BcsType<boolean, boolean, "bool">;
|
|
19
|
+
target_cash: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
20
|
+
protocol_profit_realized: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
21
|
+
}, "@local-pkg/deepbook_predict::vault_events::ExpiryCashRebalanced">;
|
|
22
|
+
declare const ExpiryProfitMaterialized: MoveStruct<{
|
|
23
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
24
|
+
expiry_market_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
25
|
+
lp_profit: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
26
|
+
protocol_profit: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
27
|
+
protocol_reserve_balance_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
28
|
+
profit_basis_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
29
|
+
pending_protocol_profit_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
30
|
+
}, "@local-pkg/deepbook_predict::vault_events::ExpiryProfitMaterialized">;
|
|
31
|
+
declare const SupplyRequested: MoveStruct<{
|
|
32
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
33
|
+
account_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
34
|
+
recipient: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
35
|
+
index: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
36
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
37
|
+
min_plp_out: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
38
|
+
requests_pending_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
39
|
+
}, "@local-pkg/deepbook_predict::vault_events::SupplyRequested">;
|
|
40
|
+
declare const WithdrawRequested: MoveStruct<{
|
|
41
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
42
|
+
account_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
43
|
+
recipient: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
44
|
+
index: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
45
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
46
|
+
min_usdc_out: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
47
|
+
requests_pending_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
48
|
+
}, "@local-pkg/deepbook_predict::vault_events::WithdrawRequested">;
|
|
49
|
+
declare const RequestCancelled: MoveStruct<{
|
|
50
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
51
|
+
account_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
52
|
+
recipient: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
53
|
+
index: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
54
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
55
|
+
is_supply: _mysten_sui_bcs371.BcsType<boolean, boolean, "bool">;
|
|
56
|
+
/**
|
|
57
|
+
* 0=user, 1=non-executable frozen mark, 2=quote below the request's minimum
|
|
58
|
+
* output.
|
|
59
|
+
*/
|
|
60
|
+
reason: _mysten_sui_bcs371.BcsType<number, number, "u8">;
|
|
61
|
+
requests_pending_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
62
|
+
}, "@local-pkg/deepbook_predict::vault_events::RequestCancelled">;
|
|
63
|
+
declare const RequestLimitMissed: MoveStruct<{
|
|
64
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
65
|
+
account_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
66
|
+
recipient: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
67
|
+
index: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
68
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
69
|
+
is_supply: _mysten_sui_bcs371.BcsType<boolean, boolean, "bool">;
|
|
70
|
+
quoted_output: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
71
|
+
min_output: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
72
|
+
missed_flushes: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
73
|
+
max_misses: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
74
|
+
}, "@local-pkg/deepbook_predict::vault_events::RequestLimitMissed">;
|
|
75
|
+
declare const SupplyFilled: MoveStruct<{
|
|
76
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
77
|
+
account_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
78
|
+
recipient: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
79
|
+
index: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
80
|
+
/**
|
|
81
|
+
* USDC actually taken into the pool, which is less than the request's escrow when
|
|
82
|
+
* the supply cap left only part of it room. Shares were priced on
|
|
83
|
+
* `usdc_amount - fee_usdc`.
|
|
84
|
+
*/
|
|
85
|
+
usdc_amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
86
|
+
shares_minted: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">; /** Supply fee withheld from `usdc_amount` and retained by the pool. */
|
|
87
|
+
fee_usdc: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
88
|
+
/**
|
|
89
|
+
* Escrow still queued at the head after a partial fill; `0` on a full fill, in
|
|
90
|
+
* which case the request is gone. `usdc_amount + usdc_remaining` is the amount the
|
|
91
|
+
* request carried into this flush.
|
|
92
|
+
*/
|
|
93
|
+
usdc_remaining: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
94
|
+
requests_pending_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
95
|
+
}, "@local-pkg/deepbook_predict::vault_events::SupplyFilled">;
|
|
96
|
+
declare const WithdrawFilled: MoveStruct<{
|
|
97
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
98
|
+
account_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
99
|
+
recipient: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
100
|
+
index: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
101
|
+
shares_burned: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
102
|
+
/**
|
|
103
|
+
* Net USDC delivered to `recipient`. The gross marked value of `shares_burned` was
|
|
104
|
+
* `usdc_amount + fee_usdc`.
|
|
105
|
+
*/
|
|
106
|
+
usdc_amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">; /** Withdraw fee withheld from the payout and retained by the pool. */
|
|
107
|
+
fee_usdc: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
108
|
+
/**
|
|
109
|
+
* Escrowed PLP still queued at the head after a partial fill; `0` on a full fill,
|
|
110
|
+
* in which case the request is gone. `shares_burned + shares_remaining` is the
|
|
111
|
+
* amount the request carried into this flush.
|
|
112
|
+
*/
|
|
113
|
+
shares_remaining: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
114
|
+
requests_pending_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
115
|
+
}, "@local-pkg/deepbook_predict::vault_events::WithdrawFilled">;
|
|
116
|
+
declare const FlushExecuted: MoveStruct<{
|
|
117
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
118
|
+
epoch: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
119
|
+
/**
|
|
120
|
+
* LP-attributable pool NAV every fill was priced at: idle plus
|
|
121
|
+
* `active_market_nav`, excluding unrealized and pending protocol profit.
|
|
122
|
+
*/
|
|
123
|
+
pool_value: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">; /** PLP supply in the frozen pre-drain mark used to price every fill. */
|
|
124
|
+
total_supply: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
125
|
+
/**
|
|
126
|
+
* Supply-leg fee rate in FLOAT_SCALING, frozen with the mark and charged on every
|
|
127
|
+
* supply fill in this flush.
|
|
128
|
+
*/
|
|
129
|
+
supply_fee_rate: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">; /** Withdraw-leg fee rate in FLOAT_SCALING, frozen alongside it. */
|
|
130
|
+
withdraw_fee_rate: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
131
|
+
/**
|
|
132
|
+
* Sum of the marked NAV contributed by each active market; settled markets add
|
|
133
|
+
* zero.
|
|
134
|
+
*/
|
|
135
|
+
active_market_nav: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">; /** Number of active markets valued for this flush. */
|
|
136
|
+
market_count: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
137
|
+
/**
|
|
138
|
+
* LIVE idle USDC read at finish time, immediately before the drain — NOT a mark
|
|
139
|
+
* input. It brackets the drain with `idle_balance_after`; because maintenance,
|
|
140
|
+
* settlement sweeps, and trading run mid-window, it can differ from
|
|
141
|
+
* `frozen_idle_balance` below. Drain telemetry, not the mark.
|
|
142
|
+
*/
|
|
143
|
+
idle_balance_before: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
144
|
+
/**
|
|
145
|
+
* The mark's idle component: idle USDC FROZEN at the seal. `frozen_idle_balance
|
|
146
|
+
*
|
|
147
|
+
* - active_market_nav`reconstructs the priced mark's gross; every fill in the flush is priced from this, never from`idle_balance_before`.
|
|
148
|
+
*/
|
|
149
|
+
frozen_idle_balance: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
150
|
+
supplies_filled: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
151
|
+
withdrawals_filled: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
152
|
+
requests_processed: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
153
|
+
idle_balance_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">; /** PLP supply after the drain's completed mints and burns. */
|
|
154
|
+
total_supply_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
155
|
+
/**
|
|
156
|
+
* Each queue's `next_index` at this flush's snapshot instant; the drain filled
|
|
157
|
+
* only requests indexed strictly below these.
|
|
158
|
+
*/
|
|
159
|
+
supply_request_cutoff: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
160
|
+
withdraw_request_cutoff: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
161
|
+
/**
|
|
162
|
+
* Clock instant the snapshot stage froze every market's pricer — the moment the
|
|
163
|
+
* mark prices the pool at. Fills execute later in the same flush; this is the
|
|
164
|
+
* timestamp they were priced as of.
|
|
165
|
+
*/
|
|
166
|
+
snapshot_timestamp_ms: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
167
|
+
}, "@local-pkg/deepbook_predict::vault_events::FlushExecuted">;
|
|
168
|
+
declare const FlushRestarted: MoveStruct<{
|
|
169
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
170
|
+
expected_market_count: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
171
|
+
valued_market_count: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
172
|
+
}, "@local-pkg/deepbook_predict::vault_events::FlushRestarted">;
|
|
173
|
+
declare const CapitalLocked: MoveStruct<{
|
|
174
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
175
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
176
|
+
}, "@local-pkg/deepbook_predict::vault_events::CapitalLocked">;
|
|
177
|
+
declare const FeeIncentivesSponsored: MoveStruct<{
|
|
178
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
179
|
+
sponsor: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
180
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
181
|
+
reserve_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
182
|
+
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesSponsored">;
|
|
183
|
+
declare const FeeIncentivesAllocated: MoveStruct<{
|
|
184
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
185
|
+
expiry_market_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
186
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
187
|
+
pool_reserve_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
188
|
+
expiry_incentive_balance_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
189
|
+
expiry_incentives_allocated_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
190
|
+
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesAllocated">;
|
|
191
|
+
declare const FeeIncentivesReturned: MoveStruct<{
|
|
192
|
+
pool_vault_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
193
|
+
expiry_market_id: _mysten_sui_bcs371.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
194
|
+
amount: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
195
|
+
pool_reserve_after: _mysten_sui_bcs371.BcsType<bigint, string | number | bigint, "u64">;
|
|
196
|
+
}, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesReturned">;
|
|
197
|
+
//#endregion
|
|
198
|
+
export { vault_events_d_exports };
|
|
199
|
+
//# sourceMappingURL=vault_events.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault_events.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/vault_events.ts"],"mappings":";;;;;;;cAaa,kBAAA,EAAkB,UAAA;;;;;;cASlB,oBAAA,EAAoB,UAAA;;;;;;;;cAWpB,wBAAA,EAAwB,UAAA;;;;;;;;;cAYxB,eAAA,EAAe,UAAA;;;;;;;;;cAYf,iBAAA,EAAiB,UAAA;;;;;;;;;cAYjB,gBAAA,EAAgB,UAAA;;;;;;;;;;;;;;cAiBhB,kBAAA,EAAkB,UAAA;;;;;;;;;;;;cAelB,YAAA,EAAY,UAAA;;;;;;;;;;;sFAzDvB;;;;;;;;;;cAkFW,cAAA,EAAc,UAAA;;;;;;EA7FU;;;;;;;;;;;;;;cAqHxB,aAAA,EAAa,UAAA;;;;;;AAzG1B;;;;;;;;;;;;;0FAA4B;;EAAA;;;;;;;;;;;;;;;;;;;;;;;;EAuB1B;;;;;;;cA6IW,cAAA,EAAc,UAAA;;;;;cAQd,aAAA,EAAa,UAAA;;;;cAOb,sBAAA,EAAsB,UAAA;;;;;;cAStB,sBAAA,EAAsB,UAAA;;;;;;;;cAWtB,qBAAA,EAAqB,UAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __exportAll } from "../../_virtual/rolldown_runtime.mjs";
|
|
1
2
|
import { MoveStruct } from "../utils/index.mjs";
|
|
2
3
|
import { U64 } from "../../bcs/integers.mjs";
|
|
3
4
|
import { bcs } from "@mysten/sui/bcs";
|
|
@@ -10,6 +11,23 @@ import { bcs } from "@mysten/sui/bcs";
|
|
|
10
11
|
* Pool-vault events for expiry cash and profit, fee incentives, and the queued LP
|
|
11
12
|
* request lifecycle. A flush records the frozen pool mark used by fills.
|
|
12
13
|
*/
|
|
14
|
+
var vault_events_exports = /* @__PURE__ */ __exportAll({
|
|
15
|
+
CapitalLocked: () => CapitalLocked,
|
|
16
|
+
ExpiryCashRebalanced: () => ExpiryCashRebalanced,
|
|
17
|
+
ExpiryCashReceived: () => ExpiryCashReceived,
|
|
18
|
+
ExpiryProfitMaterialized: () => ExpiryProfitMaterialized,
|
|
19
|
+
FeeIncentivesAllocated: () => FeeIncentivesAllocated,
|
|
20
|
+
FeeIncentivesReturned: () => FeeIncentivesReturned,
|
|
21
|
+
FeeIncentivesSponsored: () => FeeIncentivesSponsored,
|
|
22
|
+
FlushExecuted: () => FlushExecuted,
|
|
23
|
+
FlushRestarted: () => FlushRestarted,
|
|
24
|
+
RequestCancelled: () => RequestCancelled,
|
|
25
|
+
RequestLimitMissed: () => RequestLimitMissed,
|
|
26
|
+
SupplyFilled: () => SupplyFilled,
|
|
27
|
+
SupplyRequested: () => SupplyRequested,
|
|
28
|
+
WithdrawFilled: () => WithdrawFilled,
|
|
29
|
+
WithdrawRequested: () => WithdrawRequested
|
|
30
|
+
});
|
|
13
31
|
const $moduleName = "@local-pkg/deepbook_predict::vault_events";
|
|
14
32
|
const ExpiryCashReceived = new MoveStruct({
|
|
15
33
|
name: `${$moduleName}::ExpiryCashReceived`,
|
|
@@ -63,7 +81,7 @@ const WithdrawRequested = new MoveStruct({
|
|
|
63
81
|
recipient: bcs.Address,
|
|
64
82
|
index: U64,
|
|
65
83
|
amount: U64,
|
|
66
|
-
|
|
84
|
+
min_usdc_out: U64,
|
|
67
85
|
requests_pending_after: U64
|
|
68
86
|
}
|
|
69
87
|
});
|
|
@@ -102,10 +120,10 @@ const SupplyFilled = new MoveStruct({
|
|
|
102
120
|
account_id: bcs.Address,
|
|
103
121
|
recipient: bcs.Address,
|
|
104
122
|
index: U64,
|
|
105
|
-
|
|
123
|
+
usdc_amount: U64,
|
|
106
124
|
shares_minted: U64,
|
|
107
|
-
|
|
108
|
-
|
|
125
|
+
fee_usdc: U64,
|
|
126
|
+
usdc_remaining: U64,
|
|
109
127
|
requests_pending_after: U64
|
|
110
128
|
}
|
|
111
129
|
});
|
|
@@ -117,8 +135,8 @@ const WithdrawFilled = new MoveStruct({
|
|
|
117
135
|
recipient: bcs.Address,
|
|
118
136
|
index: U64,
|
|
119
137
|
shares_burned: U64,
|
|
120
|
-
|
|
121
|
-
|
|
138
|
+
usdc_amount: U64,
|
|
139
|
+
fee_usdc: U64,
|
|
122
140
|
shares_remaining: U64,
|
|
123
141
|
requests_pending_after: U64
|
|
124
142
|
}
|
|
@@ -135,11 +153,23 @@ const FlushExecuted = new MoveStruct({
|
|
|
135
153
|
active_market_nav: U64,
|
|
136
154
|
market_count: U64,
|
|
137
155
|
idle_balance_before: U64,
|
|
156
|
+
frozen_idle_balance: U64,
|
|
138
157
|
supplies_filled: U64,
|
|
139
158
|
withdrawals_filled: U64,
|
|
140
159
|
requests_processed: U64,
|
|
141
160
|
idle_balance_after: U64,
|
|
142
|
-
total_supply_after: U64
|
|
161
|
+
total_supply_after: U64,
|
|
162
|
+
supply_request_cutoff: U64,
|
|
163
|
+
withdraw_request_cutoff: U64,
|
|
164
|
+
snapshot_timestamp_ms: U64
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
const FlushRestarted = new MoveStruct({
|
|
168
|
+
name: `${$moduleName}::FlushRestarted`,
|
|
169
|
+
fields: {
|
|
170
|
+
pool_vault_id: bcs.Address,
|
|
171
|
+
expected_market_count: U64,
|
|
172
|
+
valued_market_count: U64
|
|
143
173
|
}
|
|
144
174
|
});
|
|
145
175
|
const CapitalLocked = new MoveStruct({
|
|
@@ -180,5 +210,5 @@ const FeeIncentivesReturned = new MoveStruct({
|
|
|
180
210
|
});
|
|
181
211
|
|
|
182
212
|
//#endregion
|
|
183
|
-
export { RequestCancelled, SupplyRequested, WithdrawRequested };
|
|
213
|
+
export { RequestCancelled, SupplyRequested, WithdrawRequested, vault_events_exports };
|
|
184
214
|
//# sourceMappingURL=vault_events.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vault_events.mjs","names":[],"sources":["../../../src/contracts/deepbook_predict/vault_events.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Pool-vault events for expiry cash and profit, fee incentives, and the queued LP\n * request lifecycle. A flush records the frozen pool mark used by fills.\n */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U64 } from '../../bcs/integers.js';\nconst $moduleName = '@local-pkg/deepbook_predict::vault_events';\nexport const ExpiryCashReceived = new MoveStruct({\n\tname: `${$moduleName}::ExpiryCashReceived`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tsettlement_price: U64,\n\t\tamount: U64,\n\t},\n});\nexport const ExpiryCashRebalanced = new MoveStruct({\n\tname: `${$moduleName}::ExpiryCashRebalanced`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tamount: U64,\n\t\tto_expiry: bcs.bool(),\n\t\ttarget_cash: U64,\n\t\tprotocol_profit_realized: U64,\n\t},\n});\nexport const ExpiryProfitMaterialized = new MoveStruct({\n\tname: `${$moduleName}::ExpiryProfitMaterialized`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tlp_profit: U64,\n\t\tprotocol_profit: U64,\n\t\tprotocol_reserve_balance_after: U64,\n\t\tprofit_basis_after: U64,\n\t\tpending_protocol_profit_after: U64,\n\t},\n});\nexport const SupplyRequested = new MoveStruct({\n\tname: `${$moduleName}::SupplyRequested`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tamount: U64,\n\t\tmin_plp_out: U64,\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const WithdrawRequested = new MoveStruct({\n\tname: `${$moduleName}::WithdrawRequested`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tamount: U64,\n\t\tmin_dusdc_out: U64,\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const RequestCancelled = new MoveStruct({\n\tname: `${$moduleName}::RequestCancelled`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tamount: U64,\n\t\tis_supply: bcs.bool(),\n\t\t/**\n\t\t * 0=user, 1=non-executable frozen mark, 2=quote below the request's minimum\n\t\t * output.\n\t\t */\n\t\treason: bcs.u8(),\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const RequestLimitMissed = new MoveStruct({\n\tname: `${$moduleName}::RequestLimitMissed`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tamount: U64,\n\t\tis_supply: bcs.bool(),\n\t\tquoted_output: U64,\n\t\tmin_output: U64,\n\t\tmissed_flushes: U64,\n\t\tmax_misses: U64,\n\t},\n});\nexport const SupplyFilled = new MoveStruct({\n\tname: `${$moduleName}::SupplyFilled`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\t/**\n\t\t * DUSDC actually taken into the pool, which is less than the request's escrow when\n\t\t * the supply cap left only part of it room. Shares were priced on\n\t\t * `dusdc_amount - fee_dusdc`.\n\t\t */\n\t\tdusdc_amount: U64,\n\t\tshares_minted: U64,\n\t\t/** Supply fee withheld from `dusdc_amount` and retained by the pool. */\n\t\tfee_dusdc: U64,\n\t\t/**\n\t\t * Escrow still queued at the head after a partial fill; `0` on a full fill, in\n\t\t * which case the request is gone. `dusdc_amount + dusdc_remaining` is the amount\n\t\t * the request carried into this flush.\n\t\t */\n\t\tdusdc_remaining: U64,\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const WithdrawFilled = new MoveStruct({\n\tname: `${$moduleName}::WithdrawFilled`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tshares_burned: U64,\n\t\t/**\n\t\t * Net DUSDC delivered to `recipient`. The gross marked value of `shares_burned`\n\t\t * was `dusdc_amount + fee_dusdc`.\n\t\t */\n\t\tdusdc_amount: U64,\n\t\t/** Withdraw fee withheld from the payout and retained by the pool. */\n\t\tfee_dusdc: U64,\n\t\t/**\n\t\t * Escrowed PLP still queued at the head after a partial fill; `0` on a full fill,\n\t\t * in which case the request is gone. `shares_burned + shares_remaining` is the\n\t\t * amount the request carried into this flush.\n\t\t */\n\t\tshares_remaining: U64,\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const FlushExecuted = new MoveStruct({\n\tname: `${$moduleName}::FlushExecuted`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\tepoch: U64,\n\t\t/**\n\t\t * LP-attributable pool NAV every fill was priced at: idle plus\n\t\t * `active_market_nav`, excluding unrealized and pending protocol profit.\n\t\t */\n\t\tpool_value: U64,\n\t\t/** PLP supply in the frozen pre-drain mark used to price every fill. */\n\t\ttotal_supply: U64,\n\t\t/**\n\t\t * Supply-leg fee rate in FLOAT_SCALING, frozen with the mark and charged on every\n\t\t * supply fill in this flush.\n\t\t */\n\t\tsupply_fee_rate: U64,\n\t\t/** Withdraw-leg fee rate in FLOAT_SCALING, frozen alongside it. */\n\t\twithdraw_fee_rate: U64,\n\t\t/**\n\t\t * Sum of the marked NAV contributed by each active market; settled markets add\n\t\t * zero.\n\t\t */\n\t\tactive_market_nav: U64,\n\t\t/** Number of active markets valued for this flush. */\n\t\tmarket_count: U64,\n\t\t/** Idle DUSDC held by the pool at valuation time, before the drain. */\n\t\tidle_balance_before: U64,\n\t\tsupplies_filled: U64,\n\t\twithdrawals_filled: U64,\n\t\trequests_processed: U64,\n\t\tidle_balance_after: U64,\n\t\t/** PLP supply after the drain's completed mints and burns. */\n\t\ttotal_supply_after: U64,\n\t},\n});\nexport const CapitalLocked = new MoveStruct({\n\tname: `${$moduleName}::CapitalLocked`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\tamount: U64,\n\t},\n});\nexport const FeeIncentivesSponsored = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentivesSponsored`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\tsponsor: bcs.Address,\n\t\tamount: U64,\n\t\treserve_after: U64,\n\t},\n});\nexport const FeeIncentivesAllocated = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentivesAllocated`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tamount: U64,\n\t\tpool_reserve_after: U64,\n\t\texpiry_incentive_balance_after: U64,\n\t\texpiry_incentives_allocated_after: U64,\n\t},\n});\nexport const FeeIncentivesReturned = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentivesReturned`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tamount: U64,\n\t\tpool_reserve_after: U64,\n\t},\n});\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"vault_events.mjs","names":[],"sources":["../../../src/contracts/deepbook_predict/vault_events.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/**\n * Pool-vault events for expiry cash and profit, fee incentives, and the queued LP\n * request lifecycle. A flush records the frozen pool mark used by fills.\n */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport { U64 } from '../../bcs/integers.js';\nconst $moduleName = '@local-pkg/deepbook_predict::vault_events';\nexport const ExpiryCashReceived = new MoveStruct({\n\tname: `${$moduleName}::ExpiryCashReceived`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tsettlement_price: U64,\n\t\tamount: U64,\n\t},\n});\nexport const ExpiryCashRebalanced = new MoveStruct({\n\tname: `${$moduleName}::ExpiryCashRebalanced`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tamount: U64,\n\t\tto_expiry: bcs.bool(),\n\t\ttarget_cash: U64,\n\t\tprotocol_profit_realized: U64,\n\t},\n});\nexport const ExpiryProfitMaterialized = new MoveStruct({\n\tname: `${$moduleName}::ExpiryProfitMaterialized`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tlp_profit: U64,\n\t\tprotocol_profit: U64,\n\t\tprotocol_reserve_balance_after: U64,\n\t\tprofit_basis_after: U64,\n\t\tpending_protocol_profit_after: U64,\n\t},\n});\nexport const SupplyRequested = new MoveStruct({\n\tname: `${$moduleName}::SupplyRequested`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tamount: U64,\n\t\tmin_plp_out: U64,\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const WithdrawRequested = new MoveStruct({\n\tname: `${$moduleName}::WithdrawRequested`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tamount: U64,\n\t\tmin_usdc_out: U64,\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const RequestCancelled = new MoveStruct({\n\tname: `${$moduleName}::RequestCancelled`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tamount: U64,\n\t\tis_supply: bcs.bool(),\n\t\t/**\n\t\t * 0=user, 1=non-executable frozen mark, 2=quote below the request's minimum\n\t\t * output.\n\t\t */\n\t\treason: bcs.u8(),\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const RequestLimitMissed = new MoveStruct({\n\tname: `${$moduleName}::RequestLimitMissed`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tamount: U64,\n\t\tis_supply: bcs.bool(),\n\t\tquoted_output: U64,\n\t\tmin_output: U64,\n\t\tmissed_flushes: U64,\n\t\tmax_misses: U64,\n\t},\n});\nexport const SupplyFilled = new MoveStruct({\n\tname: `${$moduleName}::SupplyFilled`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\t/**\n\t\t * USDC actually taken into the pool, which is less than the request's escrow when\n\t\t * the supply cap left only part of it room. Shares were priced on\n\t\t * `usdc_amount - fee_usdc`.\n\t\t */\n\t\tusdc_amount: U64,\n\t\tshares_minted: U64,\n\t\t/** Supply fee withheld from `usdc_amount` and retained by the pool. */\n\t\tfee_usdc: U64,\n\t\t/**\n\t\t * Escrow still queued at the head after a partial fill; `0` on a full fill, in\n\t\t * which case the request is gone. `usdc_amount + usdc_remaining` is the amount the\n\t\t * request carried into this flush.\n\t\t */\n\t\tusdc_remaining: U64,\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const WithdrawFilled = new MoveStruct({\n\tname: `${$moduleName}::WithdrawFilled`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\taccount_id: bcs.Address,\n\t\trecipient: bcs.Address,\n\t\tindex: U64,\n\t\tshares_burned: U64,\n\t\t/**\n\t\t * Net USDC delivered to `recipient`. The gross marked value of `shares_burned` was\n\t\t * `usdc_amount + fee_usdc`.\n\t\t */\n\t\tusdc_amount: U64,\n\t\t/** Withdraw fee withheld from the payout and retained by the pool. */\n\t\tfee_usdc: U64,\n\t\t/**\n\t\t * Escrowed PLP still queued at the head after a partial fill; `0` on a full fill,\n\t\t * in which case the request is gone. `shares_burned + shares_remaining` is the\n\t\t * amount the request carried into this flush.\n\t\t */\n\t\tshares_remaining: U64,\n\t\trequests_pending_after: U64,\n\t},\n});\nexport const FlushExecuted = new MoveStruct({\n\tname: `${$moduleName}::FlushExecuted`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\tepoch: U64,\n\t\t/**\n\t\t * LP-attributable pool NAV every fill was priced at: idle plus\n\t\t * `active_market_nav`, excluding unrealized and pending protocol profit.\n\t\t */\n\t\tpool_value: U64,\n\t\t/** PLP supply in the frozen pre-drain mark used to price every fill. */\n\t\ttotal_supply: U64,\n\t\t/**\n\t\t * Supply-leg fee rate in FLOAT_SCALING, frozen with the mark and charged on every\n\t\t * supply fill in this flush.\n\t\t */\n\t\tsupply_fee_rate: U64,\n\t\t/** Withdraw-leg fee rate in FLOAT_SCALING, frozen alongside it. */\n\t\twithdraw_fee_rate: U64,\n\t\t/**\n\t\t * Sum of the marked NAV contributed by each active market; settled markets add\n\t\t * zero.\n\t\t */\n\t\tactive_market_nav: U64,\n\t\t/** Number of active markets valued for this flush. */\n\t\tmarket_count: U64,\n\t\t/**\n\t\t * LIVE idle USDC read at finish time, immediately before the drain — NOT a mark\n\t\t * input. It brackets the drain with `idle_balance_after`; because maintenance,\n\t\t * settlement sweeps, and trading run mid-window, it can differ from\n\t\t * `frozen_idle_balance` below. Drain telemetry, not the mark.\n\t\t */\n\t\tidle_balance_before: U64,\n\t\t/**\n\t\t * The mark's idle component: idle USDC FROZEN at the seal. `frozen_idle_balance\n\t\t *\n\t\t * - active_market_nav`reconstructs the priced mark's gross; every fill in the flush is priced from this, never from`idle_balance_before`.\n\t\t */\n\t\tfrozen_idle_balance: U64,\n\t\tsupplies_filled: U64,\n\t\twithdrawals_filled: U64,\n\t\trequests_processed: U64,\n\t\tidle_balance_after: U64,\n\t\t/** PLP supply after the drain's completed mints and burns. */\n\t\ttotal_supply_after: U64,\n\t\t/**\n\t\t * Each queue's `next_index` at this flush's snapshot instant; the drain filled\n\t\t * only requests indexed strictly below these.\n\t\t */\n\t\tsupply_request_cutoff: U64,\n\t\twithdraw_request_cutoff: U64,\n\t\t/**\n\t\t * Clock instant the snapshot stage froze every market's pricer — the moment the\n\t\t * mark prices the pool at. Fills execute later in the same flush; this is the\n\t\t * timestamp they were priced as of.\n\t\t */\n\t\tsnapshot_timestamp_ms: U64,\n\t},\n});\nexport const FlushRestarted = new MoveStruct({\n\tname: `${$moduleName}::FlushRestarted`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpected_market_count: U64,\n\t\tvalued_market_count: U64,\n\t},\n});\nexport const CapitalLocked = new MoveStruct({\n\tname: `${$moduleName}::CapitalLocked`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\tamount: U64,\n\t},\n});\nexport const FeeIncentivesSponsored = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentivesSponsored`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\tsponsor: bcs.Address,\n\t\tamount: U64,\n\t\treserve_after: U64,\n\t},\n});\nexport const FeeIncentivesAllocated = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentivesAllocated`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tamount: U64,\n\t\tpool_reserve_after: U64,\n\t\texpiry_incentive_balance_after: U64,\n\t\texpiry_incentives_allocated_after: U64,\n\t},\n});\nexport const FeeIncentivesReturned = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentivesReturned`,\n\tfields: {\n\t\tpool_vault_id: bcs.Address,\n\t\texpiry_market_id: bcs.Address,\n\t\tamount: U64,\n\t\tpool_reserve_after: U64,\n\t},\n});\n"],"mappings":"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"}
|
|
@@ -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_bcs23 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions33 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_sessions/session_config.d.ts
|
|
@@ -8,11 +8,11 @@ declare namespace session_config_d_exports {
|
|
|
8
8
|
export { BumpVersionWatermarkArguments, BumpVersionWatermarkOptions, IdArguments, IdOptions, SessionsAdminCap, SessionsConfig, VersionWatermarkArguments, VersionWatermarkOptions, bumpVersionWatermark, id, versionWatermark };
|
|
9
9
|
}
|
|
10
10
|
declare const SessionsConfig: MoveStruct<{
|
|
11
|
-
id:
|
|
12
|
-
version_watermark:
|
|
11
|
+
id: _mysten_sui_bcs23.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
|
+
version_watermark: _mysten_sui_bcs23.BcsType<bigint, string | number | bigint, "u64">;
|
|
13
13
|
}, "@local-pkg/deepbook_sessions::session_config::SessionsConfig">;
|
|
14
14
|
declare const SessionsAdminCap: MoveStruct<{
|
|
15
|
-
id:
|
|
15
|
+
id: _mysten_sui_bcs23.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
16
16
|
}, "@local-pkg/deepbook_sessions::session_config::SessionsAdminCap">;
|
|
17
17
|
interface IdArguments {
|
|
18
18
|
config?: RawTransactionArgument<string>;
|
|
@@ -26,7 +26,7 @@ interface IdOptions {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
/** Return the config object ID for external PTB construction. */
|
|
29
|
-
declare function id(options: IdOptions): (tx: Transaction) =>
|
|
29
|
+
declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions33.TransactionResult;
|
|
30
30
|
interface VersionWatermarkArguments {
|
|
31
31
|
config?: RawTransactionArgument<string>;
|
|
32
32
|
}
|
|
@@ -39,7 +39,7 @@ interface VersionWatermarkOptions {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
/** Return the minimum Sessions package version accepted by gated entrypoints. */
|
|
42
|
-
declare function versionWatermark(options: VersionWatermarkOptions): (tx: Transaction) =>
|
|
42
|
+
declare function versionWatermark(options: VersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions33.TransactionResult;
|
|
43
43
|
interface BumpVersionWatermarkArguments {
|
|
44
44
|
config?: RawTransactionArgument<string>;
|
|
45
45
|
AdminCap: RawTransactionArgument<string>;
|
|
@@ -57,7 +57,7 @@ interface BumpVersionWatermarkOptions {
|
|
|
57
57
|
* so an upgraded package can retire older versions, and it cannot accept a
|
|
58
58
|
* caller-selected target.
|
|
59
59
|
*/
|
|
60
|
-
declare function bumpVersionWatermark(options: BumpVersionWatermarkOptions): (tx: Transaction) =>
|
|
60
|
+
declare function bumpVersionWatermark(options: BumpVersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions33.TransactionResult;
|
|
61
61
|
//#endregion
|
|
62
62
|
export { session_config_d_exports };
|
|
63
63
|
//# sourceMappingURL=session_config.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session_config.d.mts","names":[],"sources":["../../../src/contracts/deepbook_sessions/session_config.ts"],"mappings":";;;;;;;;;cAgBa,cAAA,EAAc,UAAA;;;;cAOd,gBAAA,EAAgB,UAAA;;;UAMZ,WAAA;EAChB,MAAA,GAAS,sBAAA;AAAA;AAAA,UAEO,SAAA;EAChB,OAAA;EACA,SAAA,GAAY,WAAA;EACZ,MAAA;IACC,cAAA,EAAgB,WAAA;IAChB,iBAAA;EAAA;AAAA;;iBAIc,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,
|
|
1
|
+
{"version":3,"file":"session_config.d.mts","names":[],"sources":["../../../src/contracts/deepbook_sessions/session_config.ts"],"mappings":";;;;;;;;;cAgBa,cAAA,EAAc,UAAA;;;;cAOd,gBAAA,EAAgB,UAAA;;;UAMZ,WAAA;EAChB,MAAA,GAAS,sBAAA;AAAA;AAAA,UAEO,SAAA;EAChB,OAAA;EACA,SAAA,GAAY,WAAA;EACZ,MAAA;IACC,cAAA,EAAgB,WAAA;IAChB,iBAAA;EAAA;AAAA;;iBAIc,EAAA,CAAG,OAAA,EAAS,SAAA,IAKnB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAeP,yBAAA;EAChB,MAAA,GAAS,sBAAA;AAAA;AAAA,UAEO,uBAAA;EAChB,OAAA;EACA,SAAA,GAAY,yBAAA;EACZ,MAAA;IACC,cAAA,EAAgB,WAAA;IAChB,iBAAA;EAAA;AAAA;;iBAIc,gBAAA,CAAiB,OAAA,EAAS,uBAAA,IAKjC,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA,UAeP,6BAAA;EAChB,MAAA,GAAS,sBAAA;EACT,QAAA,EAAU,sBAAA;AAAA;AAAA,UAEM,2BAAA;EAChB,OAAA;EACA,SAAA,EAAW,6BAAA;EACX,MAAA;IACC,cAAA,EAAgB,WAAA;IAChB,iBAAA;EAAA;AAAA;;;;;AAzEF;iBAiFgB,oBAAA,CAAqB,OAAA,EAAS,2BAAA,IAKrC,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA"}
|
|
@@ -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_bcs26 from "@mysten/sui/bcs";
|
|
3
|
+
import * as _mysten_sui_transactions143 from "@mysten/sui/transactions";
|
|
4
4
|
import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
|
|
5
5
|
|
|
6
6
|
//#region src/contracts/deepbook_sessions/sessions.d.ts
|
|
@@ -8,11 +8,11 @@ declare namespace sessions_d_exports {
|
|
|
8
8
|
export { AuthorizeSessionArguments, AuthorizeSessionOptions, CancelLiveOrderArguments, CancelLiveOrderOptions, CancelLiveOrdersArguments, CancelLiveOrdersOptions, MintExactAmountArguments, MintExactAmountOptions, MintExactQuantityArguments, MintExactQuantityOptions, PlaceLimitOrderArguments, PlaceLimitOrderOptions, PlaceMarketOrderArguments, PlaceMarketOrderOptions, RedeemLiveArguments, RedeemLiveOptions, RedeemSettledArguments, RedeemSettledOptions, RevokeSessionArguments, RevokeSessionOptions, SessionAuthorized, SessionExpirationMsArguments, SessionExpirationMsOptions, SessionRevoked, SessionsApp, SessionsData, WithdrawSettledAmountsArguments, WithdrawSettledAmountsOptions, authorizeSession, cancelLiveOrder, cancelLiveOrders, mintExactAmount, mintExactQuantity, placeLimitOrder, placeMarketOrder, redeemLive, redeemSettled, revokeSession, sessionExpirationMs, withdrawSettledAmounts };
|
|
9
9
|
}
|
|
10
10
|
declare const SessionsApp: MoveStruct<{
|
|
11
|
-
dummy_field:
|
|
11
|
+
dummy_field: _mysten_sui_bcs26.BcsType<boolean, boolean, "bool">;
|
|
12
12
|
}, "@local-pkg/deepbook_sessions::sessions::SessionsApp">;
|
|
13
13
|
declare const SessionsData: MoveStruct<{
|
|
14
14
|
sessions: MoveStruct<{
|
|
15
|
-
contents:
|
|
15
|
+
contents: _mysten_sui_bcs26.BcsType<{
|
|
16
16
|
key: string;
|
|
17
17
|
value: bigint;
|
|
18
18
|
}[], Iterable<{
|
|
@@ -24,14 +24,14 @@ declare const SessionsData: MoveStruct<{
|
|
|
24
24
|
}, "0x2::vec_map::VecMap<bytes[32], u64>">;
|
|
25
25
|
}, "@local-pkg/deepbook_sessions::sessions::SessionsData">;
|
|
26
26
|
declare const SessionAuthorized: MoveStruct<{
|
|
27
|
-
account_id:
|
|
28
|
-
session:
|
|
29
|
-
expires_at_ms:
|
|
27
|
+
account_id: _mysten_sui_bcs26.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
28
|
+
session: _mysten_sui_bcs26.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
29
|
+
expires_at_ms: _mysten_sui_bcs26.BcsType<bigint, string | number | bigint, "u64">;
|
|
30
30
|
}, "@local-pkg/deepbook_sessions::sessions::SessionAuthorized">;
|
|
31
31
|
declare const SessionRevoked: MoveStruct<{
|
|
32
|
-
account_id:
|
|
33
|
-
session:
|
|
34
|
-
expires_at_ms:
|
|
32
|
+
account_id: _mysten_sui_bcs26.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
33
|
+
session: _mysten_sui_bcs26.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
34
|
+
expires_at_ms: _mysten_sui_bcs26.BcsType<bigint, string | number | bigint, "u64">;
|
|
35
35
|
}, "@local-pkg/deepbook_sessions::sessions::SessionRevoked">;
|
|
36
36
|
interface SessionExpirationMsArguments {
|
|
37
37
|
wrapper: RawTransactionArgument<string>;
|
|
@@ -45,7 +45,7 @@ interface SessionExpirationMsOptions {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
/** Return a known session's expiration timestamp for SDK and devInspect reads. */
|
|
48
|
-
declare function sessionExpirationMs(options: SessionExpirationMsOptions): (tx: Transaction) =>
|
|
48
|
+
declare function sessionExpirationMs(options: SessionExpirationMsOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
49
49
|
interface AuthorizeSessionArguments {
|
|
50
50
|
wrapper: RawTransactionArgument<string>;
|
|
51
51
|
sessionsConfig?: RawTransactionArgument<string>;
|
|
@@ -64,7 +64,7 @@ interface AuthorizeSessionOptions {
|
|
|
64
64
|
* Authorize `session` from execution time for at most 30 days. Accounts may store
|
|
65
65
|
* at most 20 addresses; reauthorization replaces in place.
|
|
66
66
|
*/
|
|
67
|
-
declare function authorizeSession(options: AuthorizeSessionOptions): (tx: Transaction) =>
|
|
67
|
+
declare function authorizeSession(options: AuthorizeSessionOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
68
68
|
interface RevokeSessionArguments {
|
|
69
69
|
wrapper: RawTransactionArgument<string>;
|
|
70
70
|
session: RawTransactionArgument<string>;
|
|
@@ -80,7 +80,7 @@ interface RevokeSessionOptions {
|
|
|
80
80
|
* Revoke `session` if it is present. Only the Account owner may call this
|
|
81
81
|
* function.
|
|
82
82
|
*/
|
|
83
|
-
declare function revokeSession(options: RevokeSessionOptions): (tx: Transaction) =>
|
|
83
|
+
declare function revokeSession(options: RevokeSessionOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
84
84
|
interface PlaceLimitOrderArguments {
|
|
85
85
|
pool: RawTransactionArgument<string>;
|
|
86
86
|
deepbookRegistry: RawTransactionArgument<string>;
|
|
@@ -106,7 +106,7 @@ interface PlaceLimitOrderOptions {
|
|
|
106
106
|
typeArguments: [string, string];
|
|
107
107
|
}
|
|
108
108
|
/** Place a DeepBook spot limit order for an Account with an active session. */
|
|
109
|
-
declare function placeLimitOrder(options: PlaceLimitOrderOptions): (tx: Transaction) =>
|
|
109
|
+
declare function placeLimitOrder(options: PlaceLimitOrderOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
110
110
|
interface PlaceMarketOrderArguments {
|
|
111
111
|
pool: RawTransactionArgument<string>;
|
|
112
112
|
deepbookRegistry: RawTransactionArgument<string>;
|
|
@@ -130,7 +130,7 @@ interface PlaceMarketOrderOptions {
|
|
|
130
130
|
typeArguments: [string, string];
|
|
131
131
|
}
|
|
132
132
|
/** Place a DeepBook spot market order for an Account with an active session. */
|
|
133
|
-
declare function placeMarketOrder(options: PlaceMarketOrderOptions): (tx: Transaction) =>
|
|
133
|
+
declare function placeMarketOrder(options: PlaceMarketOrderOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
134
134
|
interface CancelLiveOrderArguments {
|
|
135
135
|
pool: RawTransactionArgument<string>;
|
|
136
136
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -148,7 +148,7 @@ interface CancelLiveOrderOptions {
|
|
|
148
148
|
typeArguments: [string, string];
|
|
149
149
|
}
|
|
150
150
|
/** Cancel a DeepBook spot order for an Account with an active session. */
|
|
151
|
-
declare function cancelLiveOrder(options: CancelLiveOrderOptions): (tx: Transaction) =>
|
|
151
|
+
declare function cancelLiveOrder(options: CancelLiveOrderOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
152
152
|
interface CancelLiveOrdersArguments {
|
|
153
153
|
pool: RawTransactionArgument<string>;
|
|
154
154
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -166,7 +166,7 @@ interface CancelLiveOrdersOptions {
|
|
|
166
166
|
typeArguments: [string, string];
|
|
167
167
|
}
|
|
168
168
|
/** Cancel multiple DeepBook spot orders for an Account with an active session. */
|
|
169
|
-
declare function cancelLiveOrders(options: CancelLiveOrdersOptions): (tx: Transaction) =>
|
|
169
|
+
declare function cancelLiveOrders(options: CancelLiveOrdersOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
170
170
|
interface WithdrawSettledAmountsArguments {
|
|
171
171
|
pool: RawTransactionArgument<string>;
|
|
172
172
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -183,7 +183,7 @@ interface WithdrawSettledAmountsOptions {
|
|
|
183
183
|
typeArguments: [string, string];
|
|
184
184
|
}
|
|
185
185
|
/** Sweep settled DeepBook spot proceeds into an Account with an active session. */
|
|
186
|
-
declare function withdrawSettledAmounts(options: WithdrawSettledAmountsOptions): (tx: Transaction) =>
|
|
186
|
+
declare function withdrawSettledAmounts(options: WithdrawSettledAmountsOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
187
187
|
interface MintExactQuantityArguments {
|
|
188
188
|
market: RawTransactionArgument<string>;
|
|
189
189
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -206,7 +206,7 @@ interface MintExactQuantityOptions {
|
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
208
|
/** Mint an exact Predict position quantity for an Account with an active session. */
|
|
209
|
-
declare function mintExactQuantity(options: MintExactQuantityOptions): (tx: Transaction) =>
|
|
209
|
+
declare function mintExactQuantity(options: MintExactQuantityOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
210
210
|
interface MintExactAmountArguments {
|
|
211
211
|
market: RawTransactionArgument<string>;
|
|
212
212
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -229,7 +229,7 @@ interface MintExactAmountOptions {
|
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
231
|
/** Mint a budget-sized Predict position for an Account with an active session. */
|
|
232
|
-
declare function mintExactAmount(options: MintExactAmountOptions): (tx: Transaction) =>
|
|
232
|
+
declare function mintExactAmount(options: MintExactAmountOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
233
233
|
interface RedeemLiveArguments {
|
|
234
234
|
market: RawTransactionArgument<string>;
|
|
235
235
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -251,7 +251,7 @@ interface RedeemLiveOptions {
|
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
/** Redeem a live Predict order for an Account with an active session. */
|
|
254
|
-
declare function redeemLive(options: RedeemLiveOptions): (tx: Transaction) =>
|
|
254
|
+
declare function redeemLive(options: RedeemLiveOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
255
255
|
interface RedeemSettledArguments {
|
|
256
256
|
market: RawTransactionArgument<string>;
|
|
257
257
|
accountRegistry: RawTransactionArgument<string>;
|
|
@@ -269,7 +269,7 @@ interface RedeemSettledOptions {
|
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
/** Redeem a settled Predict order for an Account with an active session. */
|
|
272
|
-
declare function redeemSettled(options: RedeemSettledOptions): (tx: Transaction) =>
|
|
272
|
+
declare function redeemSettled(options: RedeemSettledOptions): (tx: Transaction) => _mysten_sui_transactions143.TransactionResult;
|
|
273
273
|
//#endregion
|
|
274
274
|
export { SessionAuthorized, SessionRevoked, SessionsApp, SessionsData, sessions_d_exports };
|
|
275
275
|
//# sourceMappingURL=sessions.d.mts.map
|