@mysten/deepbook-v3 2.1.4 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/PREDICT.md +17 -5
  3. package/dist/account.d.mts.map +1 -1
  4. package/dist/account.mjs +3 -1
  5. package/dist/account.mjs.map +1 -1
  6. package/dist/client.d.mts +2 -2
  7. package/dist/contracts/account/account_events.d.mts +20 -20
  8. package/dist/contracts/deepbook/account.d.mts +18 -18
  9. package/dist/contracts/deepbook/balances.d.mts +4 -4
  10. package/dist/contracts/deepbook/order.d.mts +12 -12
  11. package/dist/contracts/deepbook_predict/deps/sui/vec_map.mjs +37 -0
  12. package/dist/contracts/deepbook_predict/deps/sui/vec_map.mjs.map +1 -0
  13. package/dist/contracts/deepbook_predict/expiry_cash.mjs +1 -1
  14. package/dist/contracts/deepbook_predict/expiry_cash.mjs.map +1 -1
  15. package/dist/contracts/deepbook_predict/expiry_market.mjs +15 -6
  16. package/dist/contracts/deepbook_predict/expiry_market.mjs.map +1 -1
  17. package/dist/contracts/deepbook_predict/market_manager.mjs.map +1 -1
  18. package/dist/contracts/deepbook_predict/order_events.mjs.map +1 -1
  19. package/dist/contracts/deepbook_predict/plp.mjs +53 -31
  20. package/dist/contracts/deepbook_predict/plp.mjs.map +1 -1
  21. package/dist/contracts/deepbook_predict/pool_accounting.mjs +7 -7
  22. package/dist/contracts/deepbook_predict/pool_accounting.mjs.map +1 -1
  23. package/dist/contracts/deepbook_predict/predict_account.mjs +1 -1
  24. package/dist/contracts/deepbook_predict/predict_account.mjs.map +1 -1
  25. package/dist/contracts/deepbook_predict/pricing.mjs +13 -1
  26. package/dist/contracts/deepbook_predict/pricing.mjs.map +1 -1
  27. package/dist/contracts/deepbook_predict/registry.mjs +2 -1
  28. package/dist/contracts/deepbook_predict/registry.mjs.map +1 -1
  29. package/dist/contracts/deepbook_predict/strike_exposure.mjs.map +1 -1
  30. package/dist/contracts/deepbook_predict/strike_payout_tree.mjs +13 -1
  31. package/dist/contracts/deepbook_predict/strike_payout_tree.mjs.map +1 -1
  32. package/dist/contracts/deepbook_predict/vault_events.mjs +19 -7
  33. package/dist/contracts/deepbook_predict/vault_events.mjs.map +1 -1
  34. package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
  35. package/dist/contracts/deepbook_sessions/session_config.d.mts.map +1 -1
  36. package/dist/contracts/deepbook_sessions/sessions.d.mts +22 -22
  37. package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
  38. package/dist/deployments/index.d.mts +3 -2
  39. package/dist/deployments/index.d.mts.map +1 -1
  40. package/dist/deployments/index.mjs +4 -1
  41. package/dist/deployments/index.mjs.map +1 -1
  42. package/dist/deployments/mainnet.d.mts +14 -0
  43. package/dist/deployments/mainnet.d.mts.map +1 -0
  44. package/dist/deployments/mainnet.mjs +73 -0
  45. package/dist/deployments/mainnet.mjs.map +1 -0
  46. package/dist/deployments/testnet.mjs +23 -23
  47. package/dist/deployments/testnet.mjs.map +1 -1
  48. package/dist/deployments/types.d.mts +1 -1
  49. package/dist/predict/client.d.mts +25 -4
  50. package/dist/predict/client.d.mts.map +1 -1
  51. package/dist/predict/client.mjs +4 -4
  52. package/dist/predict/client.mjs.map +1 -1
  53. package/dist/predict/config/index.d.mts +2 -0
  54. package/dist/predict/config/index.d.mts.map +1 -1
  55. package/dist/predict/config/index.mjs +4 -1
  56. package/dist/predict/config/index.mjs.map +1 -1
  57. package/dist/predict/config/mainnet.d.mts +17 -0
  58. package/dist/predict/config/mainnet.d.mts.map +1 -0
  59. package/dist/predict/config/mainnet.mjs +26 -0
  60. package/dist/predict/config/mainnet.mjs.map +1 -0
  61. package/dist/predict/config/types.d.mts +6 -0
  62. package/dist/predict/config/types.d.mts.map +1 -1
  63. package/dist/predict/index.d.mts +4 -2
  64. package/dist/predict/index.mjs +3 -1
  65. package/dist/predict/pricing.d.mts +6 -6
  66. package/dist/predict/pricing.d.mts.map +1 -1
  67. package/dist/predict/pricing.mjs +6 -6
  68. package/dist/predict/pricing.mjs.map +1 -1
  69. package/dist/predict/reads/balances.mjs.map +1 -1
  70. package/dist/predict/reads/markets.mjs +1 -1
  71. package/dist/predict/reads/markets.mjs.map +1 -1
  72. package/dist/predict/reads/pricing.d.mts +2 -1
  73. package/dist/predict/reads/pricing.d.mts.map +1 -1
  74. package/dist/predict/reads/pricing.mjs.map +1 -1
  75. package/dist/sessions.d.mts.map +1 -1
  76. package/dist/sessions.mjs +3 -1
  77. package/dist/sessions.mjs.map +1 -1
  78. package/dist/transactions/balanceManager.d.mts +12 -12
  79. package/dist/transactions/balanceManager.d.mts.map +1 -1
  80. package/dist/transactions/deepbook.d.mts +20 -20
  81. package/dist/transactions/deepbook.d.mts.map +1 -1
  82. package/dist/transactions/deepbookAdmin.d.mts +4 -4
  83. package/dist/transactions/deepbookAdmin.d.mts.map +1 -1
  84. package/dist/transactions/marginAdmin.d.mts +7 -7
  85. package/dist/transactions/marginLiquidations.d.mts +3 -3
  86. package/dist/transactions/marginMaintainer.d.mts +5 -5
  87. package/dist/transactions/marginManager.d.mts +32 -32
  88. package/dist/transactions/marginPool.d.mts +18 -18
  89. package/dist/transactions/marginPool.d.mts.map +1 -1
  90. package/dist/transactions/marginRegistry.d.mts +16 -16
  91. package/dist/transactions/marginTPSL.d.mts +10 -10
  92. package/dist/transactions/poolProxy.d.mts +8 -8
  93. package/package.json +3 -3
  94. package/src/account.ts +3 -1
  95. package/src/contracts/deepbook_predict/builder_code.ts +3 -3
  96. package/src/contracts/deepbook_predict/config_events.ts +9 -2
  97. package/src/contracts/deepbook_predict/deps/sui/vec_map.ts +33 -0
  98. package/src/contracts/deepbook_predict/expiry_cash.ts +1 -1
  99. package/src/contracts/deepbook_predict/expiry_market.ts +70 -11
  100. package/src/contracts/deepbook_predict/market_lifecycle_cap.ts +3 -10
  101. package/src/contracts/deepbook_predict/market_manager.ts +2 -2
  102. package/src/contracts/deepbook_predict/order_events.ts +6 -6
  103. package/src/contracts/deepbook_predict/plp.ts +263 -81
  104. package/src/contracts/deepbook_predict/pool_accounting.ts +14 -14
  105. package/src/contracts/deepbook_predict/pool_valuation_cap.ts +69 -0
  106. package/src/contracts/deepbook_predict/predict_account.ts +1 -1
  107. package/src/contracts/deepbook_predict/pricing.ts +16 -4
  108. package/src/contracts/deepbook_predict/protocol_config.ts +202 -7
  109. package/src/contracts/deepbook_predict/registry.ts +91 -17
  110. package/src/contracts/deepbook_predict/strike_exposure.ts +1 -1
  111. package/src/contracts/deepbook_predict/strike_payout_tree.ts +27 -0
  112. package/src/contracts/deepbook_predict/vault_events.ts +45 -14
  113. package/src/contracts/propbook/block_scholes_store.ts +8 -42
  114. package/src/deployments/index.ts +13 -3
  115. package/src/deployments/mainnet.ts +107 -0
  116. package/src/deployments/testnet.ts +25 -25
  117. package/src/deployments/types.ts +1 -1
  118. package/src/predict/client.ts +45 -15
  119. package/src/predict/config/index.ts +7 -2
  120. package/src/predict/config/mainnet.ts +27 -0
  121. package/src/predict/config/types.ts +7 -1
  122. package/src/predict/index.ts +5 -0
  123. package/src/predict/pricing.ts +11 -9
  124. package/src/predict/reads/balances.ts +1 -1
  125. package/src/predict/reads/markets.ts +1 -1
  126. package/src/predict/reads/pricing.ts +2 -1
  127. package/src/sessions.ts +4 -1
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,MAAM,cAAc;AACpB,MAAa,mBAAmB,IAAI,WAAW;CAC9C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,MAAM,IAAI,OAAO,IAAI;EACrB,OAAOA;EACP,YAAY;EAKZ,MAAM;EACN;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;EACX,SAAS;EACT;CACD,CAAC"}
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"}
@@ -63,7 +63,7 @@ const WithdrawRequested = new MoveStruct({
63
63
  recipient: bcs.Address,
64
64
  index: U64,
65
65
  amount: U64,
66
- min_dusdc_out: U64,
66
+ min_usdc_out: U64,
67
67
  requests_pending_after: U64
68
68
  }
69
69
  });
@@ -102,10 +102,10 @@ const SupplyFilled = new MoveStruct({
102
102
  account_id: bcs.Address,
103
103
  recipient: bcs.Address,
104
104
  index: U64,
105
- dusdc_amount: U64,
105
+ usdc_amount: U64,
106
106
  shares_minted: U64,
107
- fee_dusdc: U64,
108
- dusdc_remaining: U64,
107
+ fee_usdc: U64,
108
+ usdc_remaining: U64,
109
109
  requests_pending_after: U64
110
110
  }
111
111
  });
@@ -117,8 +117,8 @@ const WithdrawFilled = new MoveStruct({
117
117
  recipient: bcs.Address,
118
118
  index: U64,
119
119
  shares_burned: U64,
120
- dusdc_amount: U64,
121
- fee_dusdc: U64,
120
+ usdc_amount: U64,
121
+ fee_usdc: U64,
122
122
  shares_remaining: U64,
123
123
  requests_pending_after: U64
124
124
  }
@@ -135,11 +135,23 @@ const FlushExecuted = new MoveStruct({
135
135
  active_market_nav: U64,
136
136
  market_count: U64,
137
137
  idle_balance_before: U64,
138
+ frozen_idle_balance: U64,
138
139
  supplies_filled: U64,
139
140
  withdrawals_filled: U64,
140
141
  requests_processed: U64,
141
142
  idle_balance_after: U64,
142
- total_supply_after: U64
143
+ total_supply_after: U64,
144
+ supply_request_cutoff: U64,
145
+ withdraw_request_cutoff: U64,
146
+ snapshot_timestamp_ms: U64
147
+ }
148
+ });
149
+ const FlushRestarted = new MoveStruct({
150
+ name: `${$moduleName}::FlushRestarted`,
151
+ fields: {
152
+ pool_vault_id: bcs.Address,
153
+ expected_market_count: U64,
154
+ valued_market_count: U64
143
155
  }
144
156
  });
145
157
  const CapitalLocked = new MoveStruct({
@@ -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":";;;;;;;;;;;;AAYA,MAAM,cAAc;AACpB,MAAa,qBAAqB,IAAI,WAAW;CAChD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,kBAAkB;EAClB,QAAQ;EACR;CACD,CAAC;AACF,MAAa,uBAAuB,IAAI,WAAW;CAClD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,QAAQ;EACR,WAAW,IAAI,MAAM;EACrB,aAAa;EACb,0BAA0B;EAC1B;CACD,CAAC;AACF,MAAa,2BAA2B,IAAI,WAAW;CACtD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,WAAW;EACX,iBAAiB;EACjB,gCAAgC;EAChC,oBAAoB;EACpB,+BAA+B;EAC/B;CACD,CAAC;AACF,MAAa,kBAAkB,IAAI,WAAW;CAC7C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,YAAY,IAAI;EAChB,WAAW,IAAI;EACf,OAAO;EACP,QAAQ;EACR,aAAa;EACb,wBAAwB;EACxB;CACD,CAAC;AACF,MAAa,oBAAoB,IAAI,WAAW;CAC/C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,YAAY,IAAI;EAChB,WAAW,IAAI;EACf,OAAO;EACP,QAAQ;EACR,eAAe;EACf,wBAAwB;EACxB;CACD,CAAC;AACF,MAAa,mBAAmB,IAAI,WAAW;CAC9C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,e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IAAI,WAAW;CACpD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,SAAS,IAAI;EACb,QAAQ;EACR,eAAe;EACf;CACD,CAAC;AACF,MAAa,yBAAyB,IAAI,WAAW;CACpD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,QAAQ;EACR,oBAAoB;EACpB,gCAAgC;EAChC,mCAAmC;EACnC;CACD,CAAC;AACF,MAAa,wBAAwB,IAAI,WAAW;CACnD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,QAAQ;EACR,oBAAoB;EACpB;CACD,CAAC"}
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":";;;;;;;;;;;;AAYA,MAAM,cAAc;AACpB,MAAa,qBAAqB,IAAI,WAAW;CAChD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,kBAAkB;EAClB,QAAQ;EACR;CACD,CAAC;AACF,MAAa,uBAAuB,IAAI,WAAW;CAClD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,QAAQ;EACR,WAAW,IAAI,MAAM;EACrB,aAAa;EACb,0BAA0B;EAC1B;CACD,CAAC;AACF,MAAa,2BAA2B,IAAI,WAAW;CACtD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,WAAW;EACX,iBAAiB;EACj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AO;EACP,eAAe;EAKf,aAAa;EAEb,UAAU;EAMV,kBAAkB;EAClB,wBAAwB;EACxB;CACD,CAAC;AACF,MAAa,gBAAgB,IAAI,WAAW;CAC3C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,OAAO;EAKP,YAAY;EAEZ,cAAc;EAKd,iBAAiB;EAEjB,mBAAmB;EAKnB,mBAAmB;EAEnB,cAAc;EAOd,qBAAqB;EAMrB,qBAAqB;EACrB,iBAAiB;EACjB,oBAAoB;EACpB,oBAAoB;EACpB,oBAAoB;EAEpB,oBAAoB;EAKpB,uBAAuB;EACvB,yBAAyB;EAMzB,uBAAuB;EACvB;CACD,CAAC;AACF,MAAa,iBAAiB,IAAI,WAAW;CAC5C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,uBAAuB;EACvB,qBAAqB;EACrB;CACD,CAAC;AACF,MAAa,gBAAgB,IAAI,WAAW;CAC3C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,QAAQ;EACR;CACD,CAAC;AACF,MAAa,yBAAyB,IAAI,WAAW;CACpD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,SAAS,IAAI;EACb,QAAQ;EACR,eAAe;EACf;CACD,CAAC;AACF,MAAa,yBAAyB,IAAI,WAAW;CACpD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,QAAQ;EACR,oBAAoB;EACpB,gCAAgC;EAChC,mCAAmC;EACnC;CACD,CAAC;AACF,MAAa,wBAAwB,IAAI,WAAW;CACnD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,eAAe,IAAI;EACnB,kBAAkB,IAAI;EACtB,QAAQ;EACR,oBAAoB;EACpB;CACD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { ConfigValue, MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs0 from "@mysten/sui/bcs";
3
- import * as _mysten_sui_transactions0 from "@mysten/sui/transactions";
2
+ import * as _mysten_sui_bcs26 from "@mysten/sui/bcs";
3
+ import * as _mysten_sui_transactions11 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: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
12
- version_watermark: _mysten_sui_bcs0.BcsType<bigint, string | number | bigint, "u64">;
11
+ id: _mysten_sui_bcs26.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
12
+ version_watermark: _mysten_sui_bcs26.BcsType<bigint, string | number | bigint, "u64">;
13
13
  }, "@local-pkg/deepbook_sessions::session_config::SessionsConfig">;
14
14
  declare const SessionsAdminCap: MoveStruct<{
15
- id: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
15
+ id: _mysten_sui_bcs26.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) => _mysten_sui_transactions0.TransactionResult;
29
+ declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions11.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) => _mysten_sui_transactions0.TransactionResult;
42
+ declare function versionWatermark(options: VersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions11.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) => _mysten_sui_transactions0.TransactionResult;
60
+ declare function bumpVersionWatermark(options: BumpVersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions11.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,yBAAA,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,yBAAA,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,yBAAA,CAAA,iBAAA"}
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 _mysten_sui_bcs21 from "@mysten/sui/bcs";
3
- import * as _mysten_sui_transactions2 from "@mysten/sui/transactions";
2
+ import * as _mysten_sui_bcs0 from "@mysten/sui/bcs";
3
+ import * as _mysten_sui_transactions0 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: _mysten_sui_bcs21.BcsType<boolean, boolean, "bool">;
11
+ dummy_field: _mysten_sui_bcs0.BcsType<boolean, boolean, "bool">;
12
12
  }, "@local-pkg/deepbook_sessions::sessions::SessionsApp">;
13
13
  declare const SessionsData: MoveStruct<{
14
14
  sessions: MoveStruct<{
15
- contents: _mysten_sui_bcs21.BcsType<{
15
+ contents: _mysten_sui_bcs0.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: _mysten_sui_bcs21.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
28
- session: _mysten_sui_bcs21.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
29
- expires_at_ms: _mysten_sui_bcs21.BcsType<bigint, string | number | bigint, "u64">;
27
+ account_id: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
28
+ session: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
29
+ expires_at_ms: _mysten_sui_bcs0.BcsType<bigint, string | number | bigint, "u64">;
30
30
  }, "@local-pkg/deepbook_sessions::sessions::SessionAuthorized">;
31
31
  declare const SessionRevoked: MoveStruct<{
32
- account_id: _mysten_sui_bcs21.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
33
- session: _mysten_sui_bcs21.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
34
- expires_at_ms: _mysten_sui_bcs21.BcsType<bigint, string | number | bigint, "u64">;
32
+ account_id: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
33
+ session: _mysten_sui_bcs0.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
34
+ expires_at_ms: _mysten_sui_bcs0.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) => _mysten_sui_transactions2.TransactionResult;
48
+ declare function sessionExpirationMs(options: SessionExpirationMsOptions): (tx: Transaction) => _mysten_sui_transactions0.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) => _mysten_sui_transactions2.TransactionResult;
67
+ declare function authorizeSession(options: AuthorizeSessionOptions): (tx: Transaction) => _mysten_sui_transactions0.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) => _mysten_sui_transactions2.TransactionResult;
83
+ declare function revokeSession(options: RevokeSessionOptions): (tx: Transaction) => _mysten_sui_transactions0.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) => _mysten_sui_transactions2.TransactionResult;
109
+ declare function placeLimitOrder(options: PlaceLimitOrderOptions): (tx: Transaction) => _mysten_sui_transactions0.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) => _mysten_sui_transactions2.TransactionResult;
133
+ declare function placeMarketOrder(options: PlaceMarketOrderOptions): (tx: Transaction) => _mysten_sui_transactions0.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) => _mysten_sui_transactions2.TransactionResult;
151
+ declare function cancelLiveOrder(options: CancelLiveOrderOptions): (tx: Transaction) => _mysten_sui_transactions0.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) => _mysten_sui_transactions2.TransactionResult;
169
+ declare function cancelLiveOrders(options: CancelLiveOrdersOptions): (tx: Transaction) => _mysten_sui_transactions0.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) => _mysten_sui_transactions2.TransactionResult;
186
+ declare function withdrawSettledAmounts(options: WithdrawSettledAmountsOptions): (tx: Transaction) => _mysten_sui_transactions0.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) => _mysten_sui_transactions2.TransactionResult;
209
+ declare function mintExactQuantity(options: MintExactQuantityOptions): (tx: Transaction) => _mysten_sui_transactions0.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) => _mysten_sui_transactions2.TransactionResult;
232
+ declare function mintExactAmount(options: MintExactAmountOptions): (tx: Transaction) => _mysten_sui_transactions0.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) => _mysten_sui_transactions2.TransactionResult;
254
+ declare function redeemLive(options: RedeemLiveOptions): (tx: Transaction) => _mysten_sui_transactions0.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) => _mysten_sui_transactions2.TransactionResult;
272
+ declare function redeemSettled(options: RedeemSettledOptions): (tx: Transaction) => _mysten_sui_transactions0.TransactionResult;
273
273
  //#endregion
274
274
  export { SessionAuthorized, SessionRevoked, SessionsApp, SessionsData, sessions_d_exports };
275
275
  //# sourceMappingURL=sessions.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.d.mts","names":[],"sources":["../../../src/contracts/deepbook_sessions/sessions.ts"],"mappings":";;;;;;;;;cAqBa,WAAA,EAAW,UAAA;eAKtB,iBAAA,CAAA,OAAA;AAAA;AAAA,cACW,YAAA,EAAY,UAAA;;;;;;;;;;;;;cAMZ,iBAAA,EAAiB,UAAA;;;;;cAQjB,cAAA,EAAc,UAAA;;;;;UAQV,4BAAA;EAChB,OAAA,EAAS,sBAAA;EACT,OAAA,EAAS,sBAAA;AAAA;AAAA,UAEO,0BAAA;EAChB,OAAA;EACA,SAAA,EACG,4BAAA,IACC,OAAA,EAAS,sBAAA,UAAgC,OAAA,EAAS,sBAAA;EACtD,MAAA;IACC,iBAAA;EAAA;AAAA;;iBAIc,mBAAA,CAAoB,OAAA,EAAS,0BAAA,IAKpC,EAAA,EAAI,WAAA,KAAW,yBAAA,CAAA,iBAAA;AAAA,UAQP,yBAAA;EAChB,OAAA,EAAS,sBAAA;EACT,cAAA,GAAiB,sBAAA;EACjB,OAAA,EAAS,sBAAA;EACT,UAAA,EAAY,sBAAA;AAAA;AAAA,UAEI,uBAAA;EAChB,OAAA;EACA,SAAA,EAAW,yBAAA;EACX,MAAA;IACC,cAAA,EAAgB,WAAA;IAChB,iBAAA;EAAA;AAAA;;;;;iBAOc,gBAAA,CAAiB,OAAA,EAAS,uBAAA,IAOjC,EAAA,EAAI,WAAA,KAAW,yBAAA,CAAA,iBAAA;AAAA,UAeP,sBAAA;EAChB,OAAA,EAAS,sBAAA;EACT,OAAA,EAAS,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AA,EAAW,wBAAA;EACX,MAAA;IACC,cAAA,EAAgB,WAAA;IAChB,iBAAA;EAAA;AAAA;;iBAIc,eAAA,CAAgB,OAAA,EAAS,sBAAA,IA+BhC,EAAA,EAAI,WAAA,KAAW,yBAAA,CAAA,iBAAA;AAAA,UAeP,mBAAA;EAChB,MAAA,EAAQ,sBAAA;EACR,eAAA,EAAiB,sBAAA;EACjB,OAAA,EAAS,sBAAA;EACT,cAAA,GAAiB,sBAAA;EACjB,MAAA,EAAQ,sBAAA;EACR,MAAA,EAAQ,mBAAA;EACR,OAAA,EAAS,sBAAA;EACT,aAAA,EAAe,sBAAA;EACf,cAAA,EAAgB,sBAAA;EAChB,WAAA,EAAa,sBAAA;AAAA;AAAA,UAEG,iBAAA;EAChB,OAAA;EACA,SAAA,EAAW,mBAAA;EACX,MAAA;IACC,cAAA,EAAgB,WAAA;IAChB,iBAAA;EAAA;AAAA;;iBAIc,UAAA,CAAW,OAAA,EAAS,iBAAA,IA6B3B,EAAA,EAAI,WAAA,KAAW,yBAAA,CAAA,iBAAA;AAAA,UAeP,sBAAA;EAChB,MAAA,EAAQ,sBAAA;EACR,eAAA,EAAiB,sBAAA;EACjB,OAAA,EAAS,sBAAA;EACT,cAAA,GAAiB,sBAAA;EACjB,MAAA,EAAQ,sBAAA;EACR,OAAA,EAAS,sBAAA;AAAA;AAAA,UAEO,oBAAA;EAChB,OAAA;EACA,SAAA,EAAW,sBAAA;EACX,MAAA;IACC,cAAA,EAAgB,WAAA;IAChB,iBAAA;EAAA;AAAA;AA7dF;AAAA,iBAiegB,aAAA,CAAc,OAAA,EAAS,oBAAA,IAqB9B,EAAA,EAAI,WAAA,KAAW,yBAAA,CAAA,iBAAA"}
@@ -1,10 +1,11 @@
1
1
  import { DeploymentInfo, DeploymentUnits } from "./types.mjs";
2
+ import { MAINNET_DEPLOYMENT, MAINNET_UNITS } from "./mainnet.mjs";
2
3
  import { TESTNET_DEPLOYMENT, TESTNET_UNITS } from "./testnet.mjs";
3
4
  import { SuiClientTypes } from "@mysten/sui/client";
4
5
 
5
6
  //#region src/deployments/index.d.ts
6
- /** Networks this package carries ids for. Predict and sessions are testnet-only so far. */
7
- type DeployedNetwork = 'testnet';
7
+ /** Networks this package carries ids for. */
8
+ type DeployedNetwork = 'testnet' | 'mainnet';
8
9
  /**
9
10
  * Accepts the same wide network type the Sui client exposes, so `getUnits(client.network)`
10
11
  * composes. Narrowing to `DeployedNetwork` would reject that, and listing
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/deployments/index.ts"],"mappings":";;;;;;KAkCY,eAAA;AAwBZ;;;;;;AAAA,KAhBY,UAAA,GAAa,cAAA,CAAe,OAAA;;;AA2BxC;;;;iBAXgB,aAAA,CAAc,OAAA,EAAS,UAAA,GAAa,cAAA;;;;;;;iBAWpC,QAAA,CAAS,OAAA,EAAS,UAAA,GAAa,eAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/deployments/index.ts"],"mappings":";;;;;;;KA0CY,eAAA;;;;;;;KAQA,UAAA,GAAa,cAAA,CAAe,OAAA;;AA4BxC;;;;;iBAZgB,aAAA,CAAc,OAAA,EAAS,UAAA,GAAa,cAAA;;;;;;;iBAYpC,QAAA,CAAS,OAAA,EAAS,UAAA,GAAa,eAAA"}
@@ -1,8 +1,9 @@
1
+ import { MAINNET_ACCOUNT, MAINNET_DEPLOYMENT, MAINNET_PREDICT, MAINNET_SESSIONS, MAINNET_UNITS } from "./mainnet.mjs";
1
2
  import { TESTNET_ACCOUNT, TESTNET_DEPLOYMENT, TESTNET_PREDICT, TESTNET_SESSIONS, TESTNET_UNITS } from "./testnet.mjs";
2
3
 
3
4
  //#region src/deployments/index.ts
4
5
  function unrecorded(network, override) {
5
- return /* @__PURE__ */ new Error(`@mysten/deepbook-v3: no deployment recorded for network '${network}'. Predict, sessions and the account primitive are testnet-only today. For your own deployment, ${override}`);
6
+ return /* @__PURE__ */ new Error(`@mysten/deepbook-v3: no deployment recorded for network '${network}'. Predict, sessions and the account primitive are recorded for testnet and mainnet. For your own deployment, ${override}`);
6
7
  }
7
8
  /**
8
9
  * @description Which deployment the ids on `network` came from — its name and the
@@ -12,6 +13,7 @@ function unrecorded(network, override) {
12
13
  */
13
14
  function getDeployment(network) {
14
15
  if (network === "testnet") return TESTNET_DEPLOYMENT;
16
+ if (network === "mainnet") return MAINNET_DEPLOYMENT;
15
17
  throw unrecorded(network, "read the deployment name and commit from your own deploy manifest.");
16
18
  }
17
19
  /**
@@ -22,6 +24,7 @@ function getDeployment(network) {
22
24
  */
23
25
  function getUnits(network) {
24
26
  if (network === "testnet") return TESTNET_UNITS;
27
+ if (network === "mainnet") return MAINNET_UNITS;
25
28
  throw unrecorded(network, "read these scale constants from your own deploy manifest.");
26
29
  }
27
30
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../src/deployments/index.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * Canonical per-network deployment ids.\n *\n * Every subpath reads its slice of this one record rather than carrying its own copy, so a\n * redeploy is a single regeneration (`pnpm sync-deployment`) and the subpaths cannot end up\n * addressing different deployments. The records themselves are generated from the deploy\n * tooling's manifest — see `scripts/sync-deployment.ts`.\n */\n\nimport type { SuiClientTypes } from '@mysten/sui/client';\n\nimport {\n\tTESTNET_ACCOUNT,\n\tTESTNET_DEPLOYMENT,\n\tTESTNET_PREDICT,\n\tTESTNET_SESSIONS,\n\tTESTNET_UNITS,\n} from './testnet.js';\nimport type { DeploymentInfo, DeploymentUnits } from './types.js';\n\nexport type {\n\tAccountIds,\n\tDeploymentInfo,\n\tDeploymentUnits,\n\tPredictIds,\n\tSessionsIds,\n} from './types.js';\n\nexport { TESTNET_ACCOUNT, TESTNET_DEPLOYMENT, TESTNET_PREDICT, TESTNET_SESSIONS, TESTNET_UNITS };\n\n/** Networks this package carries ids for. Predict and sessions are testnet-only so far. */\nexport type DeployedNetwork = 'testnet';\n\n/**\n * Accepts the same wide network type the Sui client exposes, so `getUnits(client.network)`\n * composes. Narrowing to `DeployedNetwork` would reject that, and listing\n * `'testnet' | 'mainnet'` would be worse still: it admits exactly one value that always\n * throws while rejecting `'devnet'` at compile time.\n */\nexport type NetworkArg = SuiClientTypes.Network;\n\nfunction unrecorded(network: string, override: string): Error {\n\treturn new Error(\n\t\t`@mysten/deepbook-v3: no deployment recorded for network '${network}'. ` +\n\t\t\t'Predict, sessions and the account primitive are testnet-only today. ' +\n\t\t\t`For your own deployment, ${override}`,\n\t);\n}\n\n/**\n * @description Which deployment the ids on `network` came from — its name and the\n * deepbookv3 commit they were generated at. Useful when a bug report needs to say which\n * on-chain deployment an SDK build was pinned to.\n * @throws if the network has no deployment recorded, rather than returning placeholder ids.\n */\nexport function getDeployment(network: NetworkArg): DeploymentInfo {\n\tif (network === 'testnet') return TESTNET_DEPLOYMENT;\n\tthrow unrecorded(network, 'read the deployment name and commit from your own deploy manifest.');\n}\n\n/**\n * @description Scale constants for `network` — lot size, fixed-point scale, and coin\n * decimals. Deployment-wide, so any subpath formatting a custody balance can read them\n * rather than hardcoding 6.\n * @throws if the network has no recorded deployment.\n */\nexport function getUnits(network: NetworkArg): DeploymentUnits {\n\tif (network === 'testnet') return TESTNET_UNITS;\n\tthrow unrecorded(network, 'read these scale constants from your own deploy manifest.');\n}\n"],"mappings":";;;AA4CA,SAAS,WAAW,SAAiB,UAAyB;AAC7D,wBAAO,IAAI,MACV,4DAA4D,QAAQ,kGAEvC,WAC7B;;;;;;;;AASF,SAAgB,cAAc,SAAqC;AAClE,KAAI,YAAY,UAAW,QAAO;AAClC,OAAM,WAAW,SAAS,qEAAqE;;;;;;;;AAShG,SAAgB,SAAS,SAAsC;AAC9D,KAAI,YAAY,UAAW,QAAO;AAClC,OAAM,WAAW,SAAS,4DAA4D"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/deployments/index.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * Canonical per-network deployment ids.\n *\n * Every subpath reads its slice of this one record rather than carrying its own copy, so a\n * redeploy is a single regeneration (`pnpm sync-deployment`) and the subpaths cannot end up\n * addressing different deployments. The records themselves are generated from the deploy\n * tooling's manifest — see `scripts/sync-deployment.ts`.\n */\n\nimport type { SuiClientTypes } from '@mysten/sui/client';\n\nimport {\n\tMAINNET_ACCOUNT,\n\tMAINNET_DEPLOYMENT,\n\tMAINNET_PREDICT,\n\tMAINNET_SESSIONS,\n\tMAINNET_UNITS,\n} from './mainnet.js';\nimport {\n\tTESTNET_ACCOUNT,\n\tTESTNET_DEPLOYMENT,\n\tTESTNET_PREDICT,\n\tTESTNET_SESSIONS,\n\tTESTNET_UNITS,\n} from './testnet.js';\nimport type { DeploymentInfo, DeploymentUnits } from './types.js';\n\nexport type {\n\tAccountIds,\n\tDeploymentInfo,\n\tDeploymentUnits,\n\tPredictIds,\n\tSessionsIds,\n} from './types.js';\n\nexport { TESTNET_ACCOUNT, TESTNET_DEPLOYMENT, TESTNET_PREDICT, TESTNET_SESSIONS, TESTNET_UNITS };\nexport { MAINNET_ACCOUNT, MAINNET_DEPLOYMENT, MAINNET_PREDICT, MAINNET_SESSIONS, MAINNET_UNITS };\n\n/** Networks this package carries ids for. */\nexport type DeployedNetwork = 'testnet' | 'mainnet';\n\n/**\n * Accepts the same wide network type the Sui client exposes, so `getUnits(client.network)`\n * composes. Narrowing to `DeployedNetwork` would reject that, and listing\n * `'testnet' | 'mainnet'` would be worse still: it admits exactly one value that always\n * throws while rejecting `'devnet'` at compile time.\n */\nexport type NetworkArg = SuiClientTypes.Network;\n\nfunction unrecorded(network: string, override: string): Error {\n\treturn new Error(\n\t\t`@mysten/deepbook-v3: no deployment recorded for network '${network}'. ` +\n\t\t\t'Predict, sessions and the account primitive are recorded for testnet and mainnet. ' +\n\t\t\t`For your own deployment, ${override}`,\n\t);\n}\n\n/**\n * @description Which deployment the ids on `network` came from — its name and the\n * deepbookv3 commit they were generated at. Useful when a bug report needs to say which\n * on-chain deployment an SDK build was pinned to.\n * @throws if the network has no deployment recorded, rather than returning placeholder ids.\n */\nexport function getDeployment(network: NetworkArg): DeploymentInfo {\n\tif (network === 'testnet') return TESTNET_DEPLOYMENT;\n\tif (network === 'mainnet') return MAINNET_DEPLOYMENT;\n\tthrow unrecorded(network, 'read the deployment name and commit from your own deploy manifest.');\n}\n\n/**\n * @description Scale constants for `network` — lot size, fixed-point scale, and coin\n * decimals. Deployment-wide, so any subpath formatting a custody balance can read them\n * rather than hardcoding 6.\n * @throws if the network has no recorded deployment.\n */\nexport function getUnits(network: NetworkArg): DeploymentUnits {\n\tif (network === 'testnet') return TESTNET_UNITS;\n\tif (network === 'mainnet') return MAINNET_UNITS;\n\tthrow unrecorded(network, 'read these scale constants from your own deploy manifest.');\n}\n"],"mappings":";;;;AAoDA,SAAS,WAAW,SAAiB,UAAyB;AAC7D,wBAAO,IAAI,MACV,4DAA4D,QAAQ,gHAEvC,WAC7B;;;;;;;;AASF,SAAgB,cAAc,SAAqC;AAClE,KAAI,YAAY,UAAW,QAAO;AAClC,KAAI,YAAY,UAAW,QAAO;AAClC,OAAM,WAAW,SAAS,qEAAqE;;;;;;;;AAShG,SAAgB,SAAS,SAAsC;AAC9D,KAAI,YAAY,UAAW,QAAO;AAClC,KAAI,YAAY,UAAW,QAAO;AAClC,OAAM,WAAW,SAAS,4DAA4D"}
@@ -0,0 +1,14 @@
1
+ import { DeploymentInfo, DeploymentUnits } from "./types.mjs";
2
+
3
+ //#region src/deployments/mainnet.d.ts
4
+ /** Which on-chain deployment the ids below came from. */
5
+ declare const MAINNET_DEPLOYMENT: DeploymentInfo;
6
+ /**
7
+ * Scale constants the deployment owns rather than the SDK. Deployment-wide:
8
+ * `quoteCoinDecimals` and `fixedPointScale` apply to any subpath formatting a custody
9
+ * balance, not just Predict.
10
+ */
11
+ declare const MAINNET_UNITS: DeploymentUnits;
12
+ //#endregion
13
+ export { MAINNET_DEPLOYMENT, MAINNET_UNITS };
14
+ //# sourceMappingURL=mainnet.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mainnet.d.mts","names":[],"sources":["../../src/deployments/mainnet.ts"],"mappings":";;;;cA2Ba,kBAAA,EAAoB,cAAA;;;;;;cAqCpB,aAAA,EAAe,eAAA"}
@@ -0,0 +1,73 @@
1
+ //#region src/deployments/mainnet.ts
2
+ /** Which on-chain deployment the ids below came from. */
3
+ const MAINNET_DEPLOYMENT = Object.freeze({
4
+ deployment: "deepbook-predict-mainnet",
5
+ network: "mainnet",
6
+ chainId: "35834a8a",
7
+ sourceCommit: "14a7e8f822e0397df2d61fbfbce3ef21086891c2"
8
+ });
9
+ /** Ids for the shared `account` primitive — the `/account` subpath's slice. */
10
+ const MAINNET_ACCOUNT = Object.freeze({
11
+ accountPackageId: "0xa6f1b22aaeb429f6fd8f01c13f605256e00876457fd122da8a0e2c1045c75929",
12
+ accountRegistry: "0x210ba485d973b5356e9078318837137efabdd5ffb9eeb3705ba7eef3340324fc"
13
+ });
14
+ /**
15
+ * Ids for time-limited sessions — the `/sessions` subpath's slice.
16
+ *
17
+ * `deepbookRegistry` is only needed by the DeepBook **spot** session wrappers; the Predict
18
+ * wrappers never take it. It is carried here so a spot caller does not have to reach into
19
+ * the package root for one id.
20
+ */
21
+ const MAINNET_SESSIONS = Object.freeze({
22
+ sessionsPackageId: "0xebfa125baee571c1f8c903c1dd54a5bc57949db82469b836c32eca251756c82a",
23
+ sessionsConfig: "0x0c5f64365b3bf1f67827d6975893190079cc048247f9ff0b08390aa9ee697c5c",
24
+ accountPackageId: "0xa6f1b22aaeb429f6fd8f01c13f605256e00876457fd122da8a0e2c1045c75929",
25
+ accountRegistry: "0x210ba485d973b5356e9078318837137efabdd5ffb9eeb3705ba7eef3340324fc",
26
+ deepbookRegistry: "0xaf16199a2dff736e9f07a845f23c5da6df6f756eddb631aed9d24a93efc4549d",
27
+ deepbookCoreAccountPackageId: "0xebcd5b403ee78021e3f78d1c77e2117a676caa8a9754dedb99e7b102b0d81872",
28
+ protocolConfig: "0x55e8800bcb31b792683ca4385bd533716e2a9721364236a69ee2c3bee61dd8f2"
29
+ });
30
+ /**
31
+ * Scale constants the deployment owns rather than the SDK. Deployment-wide:
32
+ * `quoteCoinDecimals` and `fixedPointScale` apply to any subpath formatting a custody
33
+ * balance, not just Predict.
34
+ */
35
+ const MAINNET_UNITS = Object.freeze({
36
+ positionLotSize: 1e4,
37
+ fixedPointScale: 1e9,
38
+ quoteCoinDecimals: 6,
39
+ positionQuantityDecimals: 6
40
+ });
41
+ /** Ids for DeepBook Predict — the `/predict` subpath's slice. */
42
+ const MAINNET_PREDICT = Object.freeze({
43
+ network: "mainnet",
44
+ packages: Object.freeze({
45
+ predict: "0x774f9555865a7b96e31ec982f62d5bdf9d74bf57a6468b5ed41340c231afd7df",
46
+ account: "0xa6f1b22aaeb429f6fd8f01c13f605256e00876457fd122da8a0e2c1045c75929",
47
+ propbook: "0x2a63e378ab0138cdcb12651a093f3799f8b8e4f6c927ce6de0e8bc7ded0ec49d"
48
+ }),
49
+ objects: Object.freeze({
50
+ registry: "0xc98e430d82bed9f777288061faa1988da705a97db7f0da9f215ab372c53a2362",
51
+ protocolConfig: "0x55e8800bcb31b792683ca4385bd533716e2a9721364236a69ee2c3bee61dd8f2",
52
+ poolVault: "0x3f80653bf9324162254d89724276aae7b36ba7c83d4650214afbf266da98f492",
53
+ oracleRegistry: "0x1ff67a8499b0af7c0fbb26ba82c319be25413af93d9a961ee60f8d1229e7de7c",
54
+ accountRegistry: "0x210ba485d973b5356e9078318837137efabdd5ffb9eeb3705ba7eef3340324fc"
55
+ }),
56
+ quoteCoinType: "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC",
57
+ coinTypes: Object.freeze({
58
+ plp: "0x774f9555865a7b96e31ec982f62d5bdf9d74bf57a6468b5ed41340c231afd7df::plp::PLP",
59
+ deep: "0xdeeb7a4662eec9f2f3def03fb937a663dddaa2e215b8078a284d026b7946c270::deep::DEEP"
60
+ }),
61
+ units: MAINNET_UNITS,
62
+ underlyings: Object.freeze({ BTC: Object.freeze({
63
+ symbol: "BTC",
64
+ propbookUnderlyingId: 1,
65
+ pythFeed: "0x44bd2e00549973bb6a58785836e97ed80b4979e67dc3bf312c997e56053e5376",
66
+ blockScholesValueStore: "0xe7c83ee4ac0c300d68d8d4c3d265d78287b4767dcbc5f279cd6f210b6248d493",
67
+ blockScholesSviStore: "0x8e5568aebf490c2adfd4e010a9b4ddcf7c774183f58c98fcd438bae1fc68f561"
68
+ }) })
69
+ });
70
+
71
+ //#endregion
72
+ export { MAINNET_ACCOUNT, MAINNET_DEPLOYMENT, MAINNET_PREDICT, MAINNET_SESSIONS, MAINNET_UNITS };
73
+ //# sourceMappingURL=mainnet.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mainnet.mjs","names":[],"sources":["../../src/deployments/mainnet.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// GENERATED by `pnpm sync-deployment` from the deploy tooling's own manifest\n// (`packages/predict/deployment/deployment.mainnet.json`). Do not hand-edit:\n// the next regeneration overwrites it, and a hand-patched id is exactly the drift this\n// file exists to prevent. To move to a new deployment, check the sibling deepbookv3\n// checkout out to the new anchor and re-run the script.\n//\n// Deployment: deepbook-predict-mainnet\n// sourceCommit: 14a7e8f822e0397df2d61fbfbce3ef21086891c2\n//\n// Runtime-dependency-free — every subpath reads a slice of this, so a value import here\n// would pull that module into all of their graphs. The type import below is erased.\n//\n// Frozen: these are shared module singletons, so an accessor handing one to a caller who\n// mutates it would change what every other caller sees.\n\nimport type {\n\tAccountIds,\n\tDeploymentInfo,\n\tDeploymentUnits,\n\tPredictIds,\n\tSessionsIds,\n} from './types.js';\n\n/** Which on-chain deployment the ids below came from. */\nexport const MAINNET_DEPLOYMENT: DeploymentInfo = Object.freeze({\n\tdeployment: 'deepbook-predict-mainnet',\n\tnetwork: 'mainnet',\n\tchainId: '35834a8a',\n\tsourceCommit: '14a7e8f822e0397df2d61fbfbce3ef21086891c2',\n});\n\n/** Ids for the shared `account` primitive — the `/account` subpath's slice. */\nexport const MAINNET_ACCOUNT: AccountIds = Object.freeze({\n\taccountPackageId: '0xa6f1b22aaeb429f6fd8f01c13f605256e00876457fd122da8a0e2c1045c75929',\n\taccountRegistry: '0x210ba485d973b5356e9078318837137efabdd5ffb9eeb3705ba7eef3340324fc',\n});\n\n/**\n * Ids for time-limited sessions — the `/sessions` subpath's slice.\n *\n * `deepbookRegistry` is only needed by the DeepBook **spot** session wrappers; the Predict\n * wrappers never take it. It is carried here so a spot caller does not have to reach into\n * the package root for one id.\n */\nexport const MAINNET_SESSIONS: SessionsIds = Object.freeze({\n\tsessionsPackageId: '0xebfa125baee571c1f8c903c1dd54a5bc57949db82469b836c32eca251756c82a',\n\tsessionsConfig: '0x0c5f64365b3bf1f67827d6975893190079cc048247f9ff0b08390aa9ee697c5c',\n\taccountPackageId: '0xa6f1b22aaeb429f6fd8f01c13f605256e00876457fd122da8a0e2c1045c75929',\n\taccountRegistry: '0x210ba485d973b5356e9078318837137efabdd5ffb9eeb3705ba7eef3340324fc',\n\tdeepbookRegistry: '0xaf16199a2dff736e9f07a845f23c5da6df6f756eddb631aed9d24a93efc4549d',\n\tdeepbookCoreAccountPackageId:\n\t\t'0xebcd5b403ee78021e3f78d1c77e2117a676caa8a9754dedb99e7b102b0d81872',\n\t/** Required by every Predict session wrapper — they all take `config: &ProtocolConfig`. */\n\tprotocolConfig: '0x55e8800bcb31b792683ca4385bd533716e2a9721364236a69ee2c3bee61dd8f2',\n});\n\n/**\n * Scale constants the deployment owns rather than the SDK. Deployment-wide:\n * `quoteCoinDecimals` and `fixedPointScale` apply to any subpath formatting a custody\n * balance, not just Predict.\n */\nexport const MAINNET_UNITS: DeploymentUnits = Object.freeze({\n\tpositionLotSize: 10000,\n\tfixedPointScale: 1000000000,\n\tquoteCoinDecimals: 6,\n\tpositionQuantityDecimals: 6,\n});\n\n/** Ids for DeepBook Predict — the `/predict` subpath's slice. */\nexport const MAINNET_PREDICT: PredictIds = Object.freeze({\n\tnetwork: 'mainnet',\n\tpackages: Object.freeze({\n\t\tpredict: '0x774f9555865a7b96e31ec982f62d5bdf9d74bf57a6468b5ed41340c231afd7df',\n\t\taccount: '0xa6f1b22aaeb429f6fd8f01c13f605256e00876457fd122da8a0e2c1045c75929',\n\t\tpropbook: '0x2a63e378ab0138cdcb12651a093f3799f8b8e4f6c927ce6de0e8bc7ded0ec49d',\n\t}),\n\tobjects: Object.freeze({\n\t\tregistry: '0xc98e430d82bed9f777288061faa1988da705a97db7f0da9f215ab372c53a2362',\n\t\tprotocolConfig: '0x55e8800bcb31b792683ca4385bd533716e2a9721364236a69ee2c3bee61dd8f2',\n\t\tpoolVault: '0x3f80653bf9324162254d89724276aae7b36ba7c83d4650214afbf266da98f492',\n\t\toracleRegistry: '0x1ff67a8499b0af7c0fbb26ba82c319be25413af93d9a961ee60f8d1229e7de7c',\n\t\taccountRegistry: '0x210ba485d973b5356e9078318837137efabdd5ffb9eeb3705ba7eef3340324fc',\n\t}),\n\tquoteCoinType: '0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC',\n\t/**\n\t * `plp` is the LP share coin type. It is NOT derivable from `packages.predict`: a Move\n\t * type tag keeps the ORIGINAL package id across an upgrade, while `packages.predict`\n\t * moves to the latest. They agree only while predict is at v1.\n\t */\n\tcoinTypes: Object.freeze({\n\t\tplp: '0x774f9555865a7b96e31ec982f62d5bdf9d74bf57a6468b5ed41340c231afd7df::plp::PLP',\n\t\tdeep: '0xdeeb7a4662eec9f2f3def03fb937a663dddaa2e215b8078a284d026b7946c270::deep::DEEP',\n\t}),\n\tunits: MAINNET_UNITS,\n\tunderlyings: Object.freeze({\n\t\tBTC: Object.freeze({\n\t\t\tsymbol: 'BTC',\n\t\t\tpropbookUnderlyingId: 1,\n\t\t\tpythFeed: '0x44bd2e00549973bb6a58785836e97ed80b4979e67dc3bf312c997e56053e5376',\n\t\t\tblockScholesValueStore: '0xe7c83ee4ac0c300d68d8d4c3d265d78287b4767dcbc5f279cd6f210b6248d493',\n\t\t\tblockScholesSviStore: '0x8e5568aebf490c2adfd4e010a9b4ddcf7c774183f58c98fcd438bae1fc68f561',\n\t\t}),\n\t}),\n});\n"],"mappings":";;AA2BA,MAAa,qBAAqC,OAAO,OAAO;CAC/D,YAAY;CACZ,SAAS;CACT,SAAS;CACT,cAAc;CACd,CAAC;;AAGF,MAAa,kBAA8B,OAAO,OAAO;CACxD,kBAAkB;CAClB,iBAAiB;CACjB,CAAC;;;;;;;;AASF,MAAa,mBAAgC,OAAO,OAAO;CAC1D,mBAAmB;CACnB,gBAAgB;CAChB,kBAAkB;CAClB,iBAAiB;CACjB,kBAAkB;CAClB,8BACC;CAED,gBAAgB;CAChB,CAAC;;;;;;AAOF,MAAa,gBAAiC,OAAO,OAAO;CAC3D,iBAAiB;CACjB,iBAAiB;CACjB,mBAAmB;CACnB,0BAA0B;CAC1B,CAAC;;AAGF,MAAa,kBAA8B,OAAO,OAAO;CACxD,SAAS;CACT,UAAU,OAAO,OAAO;EACvB,SAAS;EACT,SAAS;EACT,UAAU;EACV,CAAC;CACF,SAAS,OAAO,OAAO;EACtB,UAAU;EACV,gBAAgB;EAChB,WAAW;EACX,gBAAgB;EAChB,iBAAiB;EACjB,CAAC;CACF,eAAe;CAMf,WAAW,OAAO,OAAO;EACxB,KAAK;EACL,MAAM;EACN,CAAC;CACF,OAAO;CACP,aAAa,OAAO,OAAO,EAC1B,KAAK,OAAO,OAAO;EAClB,QAAQ;EACR,sBAAsB;EACtB,UAAU;EACV,wBAAwB;EACxB,sBAAsB;EACtB,CAAC,EACF,CAAC;CACF,CAAC"}