@mysten/deepbook-v3 2.9.1 → 2.10.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 (212) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +21 -0
  3. package/dist/account-bindings/account-registry.d.mts +109 -0
  4. package/dist/account-bindings/account-registry.d.mts.map +1 -0
  5. package/dist/account-bindings/account-registry.mjs +56 -0
  6. package/dist/account-bindings/account-registry.mjs.map +1 -0
  7. package/dist/account-bindings/account.d.mts +176 -0
  8. package/dist/account-bindings/account.d.mts.map +1 -0
  9. package/dist/account-bindings/account.mjs +94 -0
  10. package/dist/account-bindings/account.mjs.map +1 -0
  11. package/dist/account-bindings/latest.d.mts +12 -0
  12. package/dist/account-bindings/latest.d.mts.map +1 -0
  13. package/dist/account-bindings/latest.mjs +19 -0
  14. package/dist/account-bindings/latest.mjs.map +1 -0
  15. package/dist/account.d.mts +46 -3
  16. package/dist/account.d.mts.map +1 -1
  17. package/dist/account.mjs +51 -2
  18. package/dist/account.mjs.map +1 -1
  19. package/dist/client.d.mts +2 -2
  20. package/dist/contracts/account/account.d.mts +25 -97
  21. package/dist/contracts/account/account.d.mts.map +1 -1
  22. package/dist/contracts/account/account.mjs +43 -35
  23. package/dist/contracts/account/account.mjs.map +1 -1
  24. package/dist/contracts/account/account_events.d.mts +20 -20
  25. package/dist/contracts/account/account_events.d.mts.map +1 -1
  26. package/dist/contracts/account/account_registry.d.mts +7 -54
  27. package/dist/contracts/account/account_registry.d.mts.map +1 -1
  28. package/dist/contracts/account/account_registry.mjs +2 -22
  29. package/dist/contracts/account/account_registry.mjs.map +1 -1
  30. package/dist/contracts/deepbook/account.d.mts +18 -18
  31. package/dist/contracts/deepbook/balances.d.mts +4 -4
  32. package/dist/contracts/deepbook/deep_price.d.mts +3 -3
  33. package/dist/contracts/deepbook/order.d.mts +12 -12
  34. package/dist/contracts/deepbook_predict/admin.d.mts +4 -4
  35. package/dist/contracts/deepbook_predict/admin.d.mts.map +1 -1
  36. package/dist/contracts/deepbook_predict/builder_code.d.mts +60 -13
  37. package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -1
  38. package/dist/contracts/deepbook_predict/builder_code.mjs +55 -1
  39. package/dist/contracts/deepbook_predict/builder_code.mjs.map +1 -1
  40. package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
  41. package/dist/contracts/deepbook_predict/config_events.d.mts +88 -84
  42. package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -1
  43. package/dist/contracts/deepbook_predict/config_events.mjs +8 -0
  44. package/dist/contracts/deepbook_predict/config_events.mjs.map +1 -1
  45. package/dist/contracts/deepbook_predict/expiry_market.d.mts +262 -101
  46. package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -1
  47. package/dist/contracts/deepbook_predict/expiry_market.mjs +320 -41
  48. package/dist/contracts/deepbook_predict/expiry_market.mjs.map +1 -1
  49. package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +5 -5
  50. package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts.map +1 -1
  51. package/dist/contracts/deepbook_predict/market_manager.d.mts +27 -27
  52. package/dist/contracts/deepbook_predict/market_manager.d.mts.map +1 -1
  53. package/dist/contracts/deepbook_predict/order_events.d.mts +56 -54
  54. package/dist/contracts/deepbook_predict/order_events.d.mts.map +1 -1
  55. package/dist/contracts/deepbook_predict/order_events.mjs.map +1 -1
  56. package/dist/contracts/deepbook_predict/pause_cap.d.mts +5 -5
  57. package/dist/contracts/deepbook_predict/pause_cap.d.mts.map +1 -1
  58. package/dist/contracts/deepbook_predict/plp.d.mts +74 -74
  59. package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -1
  60. package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +5 -5
  61. package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts.map +1 -1
  62. package/dist/contracts/deepbook_predict/predict_account.d.mts +22 -17
  63. package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -1
  64. package/dist/contracts/deepbook_predict/predict_account.mjs +12 -6
  65. package/dist/contracts/deepbook_predict/predict_account.mjs.map +1 -1
  66. package/dist/contracts/deepbook_predict/pricing.d.mts +67 -67
  67. package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -1
  68. package/dist/contracts/deepbook_predict/protocol_config.d.mts +127 -83
  69. package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -1
  70. package/dist/contracts/deepbook_predict/protocol_config.mjs +59 -1
  71. package/dist/contracts/deepbook_predict/protocol_config.mjs.map +1 -1
  72. package/dist/contracts/deepbook_predict/range_codec.d.mts +2 -2
  73. package/dist/contracts/deepbook_predict/range_codec.d.mts.map +1 -1
  74. package/dist/contracts/deepbook_predict/registry.d.mts +32 -32
  75. package/dist/contracts/deepbook_predict/registry.d.mts.map +1 -1
  76. package/dist/contracts/deepbook_predict/vault_events.d.mts +131 -131
  77. package/dist/contracts/deepbook_predict_math/lazer_price.d.mts +13 -13
  78. package/dist/contracts/deepbook_predict_math/math.d.mts +14 -14
  79. package/dist/contracts/deepbook_predict_orders/delayed_execution_config.d.mts +30 -30
  80. package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.mjs +6 -0
  81. package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.mjs.map +1 -1
  82. package/dist/contracts/deepbook_predict_orders/desk.d.mts +28 -28
  83. package/dist/contracts/deepbook_predict_orders/desk.d.mts.map +1 -1
  84. package/dist/contracts/deepbook_predict_orders/order_queue.d.mts +187 -187
  85. package/dist/contracts/deepbook_predict_orders/queue.d.mts +240 -62
  86. package/dist/contracts/deepbook_predict_orders/queue.d.mts.map +1 -1
  87. package/dist/contracts/deepbook_predict_orders/queue.mjs +306 -41
  88. package/dist/contracts/deepbook_predict_orders/queue.mjs.map +1 -1
  89. package/dist/contracts/deepbook_predict_orders/queue_events.d.mts +140 -140
  90. package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
  91. package/dist/contracts/deepbook_sessions/sessions.d.mts +271 -31
  92. package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
  93. package/dist/contracts/deepbook_sessions/sessions.mjs +363 -3
  94. package/dist/contracts/deepbook_sessions/sessions.mjs.map +1 -1
  95. package/dist/deployments/mainnet.mjs.map +1 -1
  96. package/dist/deployments/testnet.d.mts.map +1 -1
  97. package/dist/deployments/testnet.mjs +7 -4
  98. package/dist/deployments/testnet.mjs.map +1 -1
  99. package/dist/predict/bindings/expiry-market.d.mts +57 -7
  100. package/dist/predict/bindings/expiry-market.d.mts.map +1 -1
  101. package/dist/predict/bindings/expiry-market.mjs +48 -2
  102. package/dist/predict/bindings/expiry-market.mjs.map +1 -1
  103. package/dist/predict/bindings/protocol-config.d.mts +5 -5
  104. package/dist/predict/bindings/protocol-config.d.mts.map +1 -1
  105. package/dist/predict/bindings/protocol-config.mjs +4 -1
  106. package/dist/predict/bindings/protocol-config.mjs.map +1 -1
  107. package/dist/predict/bindings/queue.d.mts +30 -0
  108. package/dist/predict/bindings/queue.d.mts.map +1 -0
  109. package/dist/predict/bindings/queue.mjs +59 -0
  110. package/dist/predict/bindings/queue.mjs.map +1 -0
  111. package/dist/predict/bindings/rename.mjs +5 -1
  112. package/dist/predict/bindings/rename.mjs.map +1 -1
  113. package/dist/predict/client.d.mts.map +1 -1
  114. package/dist/predict/client.mjs +11 -5
  115. package/dist/predict/client.mjs.map +1 -1
  116. package/dist/predict/config/generated.d.mts +1 -1
  117. package/dist/predict/config/generated.d.mts.map +1 -1
  118. package/dist/predict/config/generated.mjs +1 -0
  119. package/dist/predict/config/generated.mjs.map +1 -1
  120. package/dist/predict/config/mainnet.mjs +3 -1
  121. package/dist/predict/config/mainnet.mjs.map +1 -1
  122. package/dist/predict/config/testnet.mjs +3 -1
  123. package/dist/predict/config/testnet.mjs.map +1 -1
  124. package/dist/predict/config/types.d.mts +23 -0
  125. package/dist/predict/config/types.d.mts.map +1 -1
  126. package/dist/predict/cost.d.mts +9 -1
  127. package/dist/predict/cost.d.mts.map +1 -1
  128. package/dist/predict/cost.mjs.map +1 -1
  129. package/dist/predict/errors.d.mts.map +1 -1
  130. package/dist/predict/errors.mjs +6 -2
  131. package/dist/predict/errors.mjs.map +1 -1
  132. package/dist/predict/index.d.mts +1 -1
  133. package/dist/predict/index.mjs +2 -2
  134. package/dist/predict/queue.d.mts +8 -4
  135. package/dist/predict/queue.d.mts.map +1 -1
  136. package/dist/predict/queue.mjs +8 -4
  137. package/dist/predict/queue.mjs.map +1 -1
  138. package/dist/predict/reads/balances.mjs +1 -1
  139. package/dist/predict/reads/pricing.d.mts +1 -0
  140. package/dist/predict/reads/pricing.d.mts.map +1 -1
  141. package/dist/predict/reads/queue.d.mts +4 -2
  142. package/dist/predict/reads/queue.d.mts.map +1 -1
  143. package/dist/predict/reads/queue.mjs +5 -4
  144. package/dist/predict/reads/queue.mjs.map +1 -1
  145. package/dist/predict/tx/authed.mjs +1 -1
  146. package/dist/predict/tx/common.d.mts.map +1 -1
  147. package/dist/predict/tx/common.mjs +3 -2
  148. package/dist/predict/tx/common.mjs.map +1 -1
  149. package/dist/predict/tx/trade.d.mts.map +1 -1
  150. package/dist/predict/tx/trade.mjs +3 -2
  151. package/dist/predict/tx/trade.mjs.map +1 -1
  152. package/dist/sessions.d.mts +10 -1
  153. package/dist/sessions.d.mts.map +1 -1
  154. package/dist/sessions.mjs.map +1 -1
  155. package/dist/transactions/balanceManager.d.mts +12 -12
  156. package/dist/transactions/balanceManager.d.mts.map +1 -1
  157. package/dist/transactions/deepbook.d.mts +20 -20
  158. package/dist/transactions/deepbook.d.mts.map +1 -1
  159. package/dist/transactions/deepbookAdmin.d.mts +4 -4
  160. package/dist/transactions/deepbookAdmin.d.mts.map +1 -1
  161. package/dist/transactions/marginAdmin.d.mts +7 -7
  162. package/dist/transactions/marginAdmin.d.mts.map +1 -1
  163. package/dist/transactions/marginLiquidations.d.mts +3 -3
  164. package/dist/transactions/marginMaintainer.d.mts +5 -5
  165. package/dist/transactions/marginMaintainer.d.mts.map +1 -1
  166. package/dist/transactions/marginManager.d.mts +32 -32
  167. package/dist/transactions/marginPool.d.mts +18 -18
  168. package/dist/transactions/marginPool.d.mts.map +1 -1
  169. package/dist/transactions/marginRegistry.d.mts +16 -16
  170. package/dist/transactions/marginTPSL.d.mts +10 -10
  171. package/dist/transactions/poolProxy.d.mts +8 -8
  172. package/dist/transactions/poolProxy.d.mts.map +1 -1
  173. package/dist/utils/constants.d.mts.map +1 -1
  174. package/dist/utils/constants.mjs +1 -1
  175. package/dist/utils/constants.mjs.map +1 -1
  176. package/package.json +2 -2
  177. package/src/account-bindings/account-registry.ts +39 -0
  178. package/src/account-bindings/account.ts +73 -0
  179. package/src/account-bindings/latest.ts +41 -0
  180. package/src/account.ts +89 -5
  181. package/src/contracts/account/account.ts +73 -4
  182. package/src/contracts/account/account_registry.ts +1 -1
  183. package/src/contracts/deepbook_predict/builder_code.ts +94 -2
  184. package/src/contracts/deepbook_predict/config_events.ts +7 -0
  185. package/src/contracts/deepbook_predict/expiry_market.ts +490 -44
  186. package/src/contracts/deepbook_predict/order_events.ts +6 -4
  187. package/src/contracts/deepbook_predict/predict_account.ts +12 -6
  188. package/src/contracts/deepbook_predict/protocol_config.ts +85 -0
  189. package/src/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.ts +14 -0
  190. package/src/contracts/deepbook_predict_orders/order_flow.ts +4 -0
  191. package/src/contracts/deepbook_predict_orders/queue.ts +495 -9
  192. package/src/contracts/deepbook_sessions/sessions.ts +538 -3
  193. package/src/deployments/mainnet.ts +4 -4
  194. package/src/deployments/testnet.ts +18 -7
  195. package/src/deployments/types.ts +14 -0
  196. package/src/predict/bindings/expiry-market.ts +87 -0
  197. package/src/predict/bindings/queue.ts +42 -0
  198. package/src/predict/bindings/rename.ts +5 -1
  199. package/src/predict/client.ts +25 -3
  200. package/src/predict/config/generated.ts +3 -0
  201. package/src/predict/config/mainnet.ts +4 -0
  202. package/src/predict/config/testnet.ts +4 -0
  203. package/src/predict/config/types.ts +23 -0
  204. package/src/predict/cost.ts +9 -1
  205. package/src/predict/errors.ts +11 -1
  206. package/src/predict/index.ts +1 -1
  207. package/src/predict/queue.ts +8 -4
  208. package/src/predict/reads/queue.ts +7 -4
  209. package/src/predict/tx/common.ts +2 -0
  210. package/src/predict/tx/trade.ts +3 -1
  211. package/src/sessions.ts +10 -1
  212. package/src/utils/constants.ts +5 -1
@@ -1,246 +1,246 @@
1
1
  import { MoveStruct } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs314 from "@mysten/sui/bcs";
2
+ import * as _mysten_sui_bcs294 from "@mysten/sui/bcs";
3
3
 
4
4
  //#region src/contracts/deepbook_predict/vault_events.d.ts
5
5
  declare namespace vault_events_d_exports {
6
6
  export { CapitalLocked, ExpiryCashRebalanced, ExpiryCashReceived, ExpiryPnl, ExpiryPnlRealized, ExpiryProfitMaterialized, FeeIncentiveLifetimeCapSnapshotted, FeeIncentivesAllocated, FeeIncentivesReturned, FeeIncentivesSponsored, FeeIncentivesWithdrawn, FlushExecuted, FlushRestarted, RequestCancelled, RequestLimitMissed, SupplyFilled, SupplyRequested, UsdcAddedToPlp, WithdrawFilled, WithdrawRequested };
7
7
  }
8
8
  declare const ExpiryCashReceived: MoveStruct<{
9
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
10
- expiry_market_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
11
- settlement_price: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
12
- amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
9
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
10
+ expiry_market_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
11
+ settlement_price: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
12
+ amount: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
13
13
  }, "@local-pkg/deepbook_predict::vault_events::ExpiryCashReceived">;
14
14
  declare const ExpiryCashRebalanced: MoveStruct<{
15
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
16
- expiry_market_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
17
- amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
18
- to_expiry: _mysten_sui_bcs314.BcsType<boolean, boolean, "bool">;
19
- target_cash: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
20
- protocol_profit_realized: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
15
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
16
+ expiry_market_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
17
+ amount: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
18
+ to_expiry: _mysten_sui_bcs294.BcsType<boolean, boolean, "bool">;
19
+ target_cash: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
20
+ protocol_profit_realized: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
21
21
  }, "@local-pkg/deepbook_predict::vault_events::ExpiryCashRebalanced">;
22
22
  declare const ExpiryProfitMaterialized: MoveStruct<{
23
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
24
- expiry_market_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
25
- lp_profit: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
26
- protocol_profit: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
27
- protocol_reserve_balance_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
28
- profit_basis_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
29
- pending_protocol_profit_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
23
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
24
+ expiry_market_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
25
+ lp_profit: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
26
+ protocol_profit: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
27
+ protocol_reserve_balance_after: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
28
+ profit_basis_after: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
29
+ pending_protocol_profit_after: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
30
30
  }, "@local-pkg/deepbook_predict::vault_events::ExpiryProfitMaterialized">;
31
31
  declare const ExpiryPnl: MoveStruct<{
32
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
33
- expiry_market_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
34
- propbook_underlying_id: _mysten_sui_bcs314.BcsType<number, number, "u32">;
32
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
33
+ expiry_market_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
34
+ propbook_underlying_id: _mysten_sui_bcs294.BcsType<number, number, "u32">;
35
35
  /**
36
36
  * Start of the market's cadence period (`expiry` minus the cadence period), in
37
37
  * milliseconds. The market's creation transaction may land before it.
38
38
  */
39
- period_start_ms: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
40
- expiry: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
41
- settlement_price: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
42
- sent_to_expiry: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
43
- received_from_expiry: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
39
+ period_start_ms: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
40
+ expiry: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
41
+ settlement_price: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
42
+ sent_to_expiry: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
43
+ received_from_expiry: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
44
44
  /**
45
45
  * True when `received_from_expiry >= sent_to_expiry`; break-even reports a zero
46
46
  * profit.
47
47
  */
48
- in_profit: _mysten_sui_bcs314.BcsType<boolean, boolean, "bool">; /** Absolute difference between `received_from_expiry` and `sent_to_expiry`. */
49
- amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
48
+ in_profit: _mysten_sui_bcs294.BcsType<boolean, boolean, "bool">; /** Absolute difference between `received_from_expiry` and `sent_to_expiry`. */
49
+ amount: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
50
50
  }, "@local-pkg/deepbook_predict::vault_events::ExpiryPnl">;
51
51
  declare const ExpiryPnlRealized: MoveStruct<{
52
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
53
- expiry_market_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
54
- propbook_underlying_id: _mysten_sui_bcs314.BcsType<number, number, "u32">;
55
- expiry: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
56
- settlement_price: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">; /** False only for a loss, which only an expiry's first emission can report. */
57
- in_profit: _mysten_sui_bcs314.BcsType<boolean, boolean, "bool">;
52
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
53
+ expiry_market_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
54
+ propbook_underlying_id: _mysten_sui_bcs294.BcsType<number, number, "u32">;
55
+ expiry: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
56
+ settlement_price: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">; /** False only for a loss, which only an expiry's first emission can report. */
57
+ in_profit: _mysten_sui_bcs294.BcsType<boolean, boolean, "bool">;
58
58
  /**
59
59
  * Magnitude of the change in the gross realized result since the previous
60
60
  * emission.
61
61
  */
62
- amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
62
+ amount: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
63
63
  }, "@local-pkg/deepbook_predict::vault_events::ExpiryPnlRealized">;
64
64
  declare const SupplyRequested: MoveStruct<{
65
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
66
- account_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
67
- recipient: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
68
- index: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
69
- amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
70
- min_plp_out: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
71
- requests_pending_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
65
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
66
+ account_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
67
+ recipient: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
68
+ index: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
69
+ amount: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
70
+ min_plp_out: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
71
+ requests_pending_after: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
72
72
  }, "@local-pkg/deepbook_predict::vault_events::SupplyRequested">;
73
73
  declare const WithdrawRequested: MoveStruct<{
74
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
75
- account_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
76
- recipient: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
77
- index: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
78
- amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
79
- min_usdc_out: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
80
- requests_pending_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
74
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
75
+ account_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
76
+ recipient: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
77
+ index: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
78
+ amount: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
79
+ min_usdc_out: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
80
+ requests_pending_after: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
81
81
  }, "@local-pkg/deepbook_predict::vault_events::WithdrawRequested">;
82
82
  declare const RequestCancelled: MoveStruct<{
83
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
84
- account_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
85
- recipient: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
86
- index: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
87
- amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
88
- is_supply: _mysten_sui_bcs314.BcsType<boolean, boolean, "bool">;
83
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
84
+ account_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
85
+ recipient: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
86
+ index: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
87
+ amount: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
88
+ is_supply: _mysten_sui_bcs294.BcsType<boolean, boolean, "bool">;
89
89
  /**
90
90
  * 0=user, 1=non-executable frozen mark, 2=quote below the request's minimum
91
91
  * output.
92
92
  */
93
- reason: _mysten_sui_bcs314.BcsType<number, number, "u8">;
94
- requests_pending_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
93
+ reason: _mysten_sui_bcs294.BcsType<number, number, "u8">;
94
+ requests_pending_after: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
95
95
  }, "@local-pkg/deepbook_predict::vault_events::RequestCancelled">;
96
96
  declare const RequestLimitMissed: MoveStruct<{
97
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
98
- account_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
99
- recipient: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
100
- index: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
101
- amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
102
- is_supply: _mysten_sui_bcs314.BcsType<boolean, boolean, "bool">;
103
- quoted_output: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
104
- min_output: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
105
- missed_flushes: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
106
- max_misses: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
97
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
98
+ account_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
99
+ recipient: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
100
+ index: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
101
+ amount: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
102
+ is_supply: _mysten_sui_bcs294.BcsType<boolean, boolean, "bool">;
103
+ quoted_output: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
104
+ min_output: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
105
+ missed_flushes: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
106
+ max_misses: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
107
107
  }, "@local-pkg/deepbook_predict::vault_events::RequestLimitMissed">;
108
108
  declare const SupplyFilled: MoveStruct<{
109
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
110
- account_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
111
- recipient: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
112
- index: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
109
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
110
+ account_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
111
+ recipient: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
112
+ index: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
113
113
  /**
114
114
  * USDC actually taken into the pool, which is less than the request's escrow when
115
115
  * the supply cap left only part of it room. Shares were priced on
116
116
  * `usdc_amount - fee_usdc`.
117
117
  */
118
- usdc_amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
119
- shares_minted: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">; /** Supply fee withheld from `usdc_amount` and retained by the pool. */
120
- fee_usdc: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
118
+ usdc_amount: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
119
+ shares_minted: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">; /** Supply fee withheld from `usdc_amount` and retained by the pool. */
120
+ fee_usdc: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
121
121
  /**
122
122
  * Escrow still queued at the head after a partial fill; `0` on a full fill, in
123
123
  * which case the request is gone. `usdc_amount + usdc_remaining` is the amount the
124
124
  * request carried into this flush.
125
125
  */
126
- usdc_remaining: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
127
- requests_pending_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
126
+ usdc_remaining: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
127
+ requests_pending_after: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
128
128
  }, "@local-pkg/deepbook_predict::vault_events::SupplyFilled">;
129
129
  declare const WithdrawFilled: MoveStruct<{
130
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
131
- account_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
132
- recipient: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
133
- index: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
134
- shares_burned: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
130
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
131
+ account_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
132
+ recipient: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
133
+ index: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
134
+ shares_burned: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
135
135
  /**
136
136
  * Net USDC delivered to `recipient`. The gross marked value of `shares_burned` was
137
137
  * `usdc_amount + fee_usdc`.
138
138
  */
139
- usdc_amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">; /** Withdraw fee withheld from the payout and retained by the pool. */
140
- fee_usdc: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
139
+ usdc_amount: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">; /** Withdraw fee withheld from the payout and retained by the pool. */
140
+ fee_usdc: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
141
141
  /**
142
142
  * Escrowed PLP still queued at the head after a partial fill; `0` on a full fill,
143
143
  * in which case the request is gone. `shares_burned + shares_remaining` is the
144
144
  * amount the request carried into this flush.
145
145
  */
146
- shares_remaining: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
147
- requests_pending_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
146
+ shares_remaining: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
147
+ requests_pending_after: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
148
148
  }, "@local-pkg/deepbook_predict::vault_events::WithdrawFilled">;
149
149
  declare const FlushExecuted: MoveStruct<{
150
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
151
- epoch: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
150
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
151
+ epoch: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
152
152
  /**
153
153
  * LP-attributable pool NAV every fill was priced at: idle plus
154
154
  * `active_market_nav`, excluding unrealized and pending protocol profit.
155
155
  */
156
- pool_value: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">; /** PLP supply in the frozen pre-drain mark used to price every fill. */
157
- total_supply: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
156
+ pool_value: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">; /** PLP supply in the frozen pre-drain mark used to price every fill. */
157
+ total_supply: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
158
158
  /**
159
159
  * Supply-leg fee rate in FLOAT_SCALING, frozen with the mark and charged on every
160
160
  * supply fill in this flush.
161
161
  */
162
- supply_fee_rate: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">; /** Withdraw-leg fee rate in FLOAT_SCALING, frozen alongside it. */
163
- withdraw_fee_rate: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
162
+ supply_fee_rate: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">; /** Withdraw-leg fee rate in FLOAT_SCALING, frozen alongside it. */
163
+ withdraw_fee_rate: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
164
164
  /**
165
165
  * Sum of the marked NAV contributed by each active market; settled markets add
166
166
  * zero.
167
167
  */
168
- active_market_nav: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">; /** Number of active markets valued for this flush. */
169
- market_count: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
168
+ active_market_nav: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">; /** Number of active markets valued for this flush. */
169
+ market_count: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
170
170
  /**
171
171
  * LIVE idle USDC read at finish time, immediately before the drain — NOT a mark
172
172
  * input. It brackets the drain with `idle_balance_after`; because maintenance,
173
173
  * settlement sweeps, and trading run mid-window, it can differ from
174
174
  * `frozen_idle_balance` below. Drain telemetry, not the mark.
175
175
  */
176
- idle_balance_before: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
176
+ idle_balance_before: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
177
177
  /**
178
178
  * The mark's idle component: idle USDC FROZEN at the seal. `frozen_idle_balance
179
179
  *
180
180
  * - active_market_nav`reconstructs the priced mark's gross; every fill in the flush is priced from this, never from`idle_balance_before`.
181
181
  */
182
- frozen_idle_balance: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
183
- supplies_filled: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
184
- withdrawals_filled: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
185
- requests_processed: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
186
- idle_balance_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">; /** PLP supply after the drain's completed mints and burns. */
187
- total_supply_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
182
+ frozen_idle_balance: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
183
+ supplies_filled: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
184
+ withdrawals_filled: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
185
+ requests_processed: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
186
+ idle_balance_after: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">; /** PLP supply after the drain's completed mints and burns. */
187
+ total_supply_after: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
188
188
  /**
189
189
  * Each queue's `next_index` at this flush's snapshot instant; the drain filled
190
190
  * only requests indexed strictly below these.
191
191
  */
192
- supply_request_cutoff: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
193
- withdraw_request_cutoff: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
192
+ supply_request_cutoff: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
193
+ withdraw_request_cutoff: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
194
194
  /**
195
195
  * Clock instant the snapshot stage froze every market's pricer — the moment the
196
196
  * mark prices the pool at. Fills execute later in the same flush; this is the
197
197
  * timestamp they were priced as of.
198
198
  */
199
- snapshot_timestamp_ms: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
199
+ snapshot_timestamp_ms: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
200
200
  }, "@local-pkg/deepbook_predict::vault_events::FlushExecuted">;
201
201
  declare const FlushRestarted: MoveStruct<{
202
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
203
- expected_market_count: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
204
- valued_market_count: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
202
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
203
+ expected_market_count: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
204
+ valued_market_count: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
205
205
  }, "@local-pkg/deepbook_predict::vault_events::FlushRestarted">;
206
206
  declare const CapitalLocked: MoveStruct<{
207
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
208
- amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
207
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
208
+ amount: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
209
209
  }, "@local-pkg/deepbook_predict::vault_events::CapitalLocked">;
210
210
  declare const UsdcAddedToPlp: MoveStruct<{
211
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
212
- contributor: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
213
- amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
211
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
212
+ contributor: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
213
+ amount: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
214
214
  }, "@local-pkg/deepbook_predict::vault_events::UsdcAddedToPlp">;
215
215
  declare const FeeIncentivesSponsored: MoveStruct<{
216
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
217
- sponsor: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
218
- amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
219
- reserve_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
216
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
217
+ sponsor: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
218
+ amount: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
219
+ reserve_after: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
220
220
  }, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesSponsored">;
221
221
  declare const FeeIncentivesWithdrawn: MoveStruct<{
222
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
223
- amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
224
- reserve_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
222
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
223
+ amount: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
224
+ reserve_after: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
225
225
  }, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesWithdrawn">;
226
226
  declare const FeeIncentiveLifetimeCapSnapshotted: MoveStruct<{
227
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
228
- expiry_market_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
229
- fee_incentive_lifetime_cap: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
227
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
228
+ expiry_market_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
229
+ fee_incentive_lifetime_cap: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
230
230
  }, "@local-pkg/deepbook_predict::vault_events::FeeIncentiveLifetimeCapSnapshotted">;
231
231
  declare const FeeIncentivesAllocated: MoveStruct<{
232
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
233
- expiry_market_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
234
- amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
235
- pool_reserve_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
236
- expiry_incentive_balance_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
237
- expiry_incentives_allocated_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
232
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
233
+ expiry_market_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
234
+ amount: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
235
+ pool_reserve_after: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
236
+ expiry_incentive_balance_after: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
237
+ expiry_incentives_allocated_after: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
238
238
  }, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesAllocated">;
239
239
  declare const FeeIncentivesReturned: MoveStruct<{
240
- pool_vault_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
241
- expiry_market_id: _mysten_sui_bcs314.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
242
- amount: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
243
- pool_reserve_after: _mysten_sui_bcs314.BcsType<bigint, string | number | bigint, "u64">;
240
+ pool_vault_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
241
+ expiry_market_id: _mysten_sui_bcs294.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
242
+ amount: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
243
+ pool_reserve_after: _mysten_sui_bcs294.BcsType<bigint, string | number | bigint, "u64">;
244
244
  }, "@local-pkg/deepbook_predict::vault_events::FeeIncentivesReturned">;
245
245
  //#endregion
246
246
  export { vault_events_d_exports };
@@ -1,6 +1,6 @@
1
1
  import { MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs756 from "@mysten/sui/bcs";
3
- import * as _mysten_sui_transactions340 from "@mysten/sui/transactions";
2
+ import * as _mysten_sui_bcs718 from "@mysten/sui/bcs";
3
+ import * as _mysten_sui_transactions194 from "@mysten/sui/transactions";
4
4
  import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
5
5
 
6
6
  //#region src/contracts/deepbook_predict_math/lazer_price.d.ts
@@ -8,19 +8,19 @@ declare namespace lazer_price_d_exports {
8
8
  export { ChannelArguments, ChannelOptions, EnvelopeUsArguments, EnvelopeUsOptions, FeedIdArguments, FeedIdOptions, FromUpdateArguments, FromUpdateOptions, GenerationUsArguments, GenerationUsOptions, LazerPrice, SpotArguments, SpotOptions, channel, envelopeUs, feedId, fromUpdate, generationUs, spot };
9
9
  }
10
10
  declare const LazerPrice: MoveStruct<{
11
- feed_id: _mysten_sui_bcs756.BcsType<number, number, "u32">;
11
+ feed_id: _mysten_sui_bcs718.BcsType<number, number, "u32">;
12
12
  /**
13
13
  * A Lazer channel id: `channel_fixed_rate_50ms!()`, `channel_fixed_rate_200ms!()`,
14
14
  * or `1` for real-time.
15
15
  */
16
- channel: _mysten_sui_bcs756.BcsType<number, number, "u8">; /** The update's timestamp, in µs. */
17
- envelope_us: _mysten_sui_bcs756.BcsType<bigint, string | number | bigint, "u64">; /** The feed's own update time, in µs. Never after the envelope. */
18
- generation_us: _mysten_sui_bcs756.BcsType<bigint, string | number | bigint, "u64">;
16
+ channel: _mysten_sui_bcs718.BcsType<number, number, "u8">; /** The update's timestamp, in µs. */
17
+ envelope_us: _mysten_sui_bcs718.BcsType<bigint, string | number | bigint, "u64">; /** The feed's own update time, in µs. Never after the envelope. */
18
+ generation_us: _mysten_sui_bcs718.BcsType<bigint, string | number | bigint, "u64">;
19
19
  /**
20
20
  * The price normalized to 1e9, rounded down when the source is finer; positive and
21
21
  * at most `u64::MAX / 100`.
22
22
  */
23
- spot: _mysten_sui_bcs756.BcsType<bigint, string | number | bigint, "u64">;
23
+ spot: _mysten_sui_bcs718.BcsType<bigint, string | number | bigint, "u64">;
24
24
  }, "@local-pkg/deepbook_predict_math::lazer_price::LazerPrice">;
25
25
  interface FromUpdateArguments {
26
26
  update: TransactionArgument;
@@ -45,7 +45,7 @@ interface FromUpdateOptions {
45
45
  * Uses Lazer's v1 `Update`, which Pyth marked deprecated on Mainnet but still
46
46
  * serves; a later library upgrade adds a constructor for v2.
47
47
  */
48
- declare function fromUpdate(options: FromUpdateOptions): (tx: Transaction) => _mysten_sui_transactions340.TransactionResult;
48
+ declare function fromUpdate(options: FromUpdateOptions): (tx: Transaction) => _mysten_sui_transactions194.TransactionResult;
49
49
  interface FeedIdArguments {
50
50
  price: TransactionArgument;
51
51
  }
@@ -56,7 +56,7 @@ interface FeedIdOptions {
56
56
  predictMathPackageId?: string;
57
57
  };
58
58
  }
59
- declare function feedId(options: FeedIdOptions): (tx: Transaction) => _mysten_sui_transactions340.TransactionResult;
59
+ declare function feedId(options: FeedIdOptions): (tx: Transaction) => _mysten_sui_transactions194.TransactionResult;
60
60
  interface ChannelArguments {
61
61
  price: TransactionArgument;
62
62
  }
@@ -67,7 +67,7 @@ interface ChannelOptions {
67
67
  predictMathPackageId?: string;
68
68
  };
69
69
  }
70
- declare function channel(options: ChannelOptions): (tx: Transaction) => _mysten_sui_transactions340.TransactionResult;
70
+ declare function channel(options: ChannelOptions): (tx: Transaction) => _mysten_sui_transactions194.TransactionResult;
71
71
  interface EnvelopeUsArguments {
72
72
  price: TransactionArgument;
73
73
  }
@@ -78,7 +78,7 @@ interface EnvelopeUsOptions {
78
78
  predictMathPackageId?: string;
79
79
  };
80
80
  }
81
- declare function envelopeUs(options: EnvelopeUsOptions): (tx: Transaction) => _mysten_sui_transactions340.TransactionResult;
81
+ declare function envelopeUs(options: EnvelopeUsOptions): (tx: Transaction) => _mysten_sui_transactions194.TransactionResult;
82
82
  interface GenerationUsArguments {
83
83
  price: TransactionArgument;
84
84
  }
@@ -89,7 +89,7 @@ interface GenerationUsOptions {
89
89
  predictMathPackageId?: string;
90
90
  };
91
91
  }
92
- declare function generationUs(options: GenerationUsOptions): (tx: Transaction) => _mysten_sui_transactions340.TransactionResult;
92
+ declare function generationUs(options: GenerationUsOptions): (tx: Transaction) => _mysten_sui_transactions194.TransactionResult;
93
93
  interface SpotArguments {
94
94
  price: TransactionArgument;
95
95
  }
@@ -100,7 +100,7 @@ interface SpotOptions {
100
100
  predictMathPackageId?: string;
101
101
  };
102
102
  }
103
- declare function spot(options: SpotOptions): (tx: Transaction) => _mysten_sui_transactions340.TransactionResult;
103
+ declare function spot(options: SpotOptions): (tx: Transaction) => _mysten_sui_transactions194.TransactionResult;
104
104
  //#endregion
105
105
  export { lazer_price_d_exports };
106
106
  //# sourceMappingURL=lazer_price.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { RawTransactionArgument } from "../utils/index.mjs";
2
- import * as _mysten_sui_transactions346 from "@mysten/sui/transactions";
2
+ import * as _mysten_sui_transactions181 from "@mysten/sui/transactions";
3
3
  import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
4
4
 
5
5
  //#region src/contracts/deepbook_predict_math/math.d.ts
@@ -32,7 +32,7 @@ interface RollDownOptions {
32
32
  * relying on a bound on the anchored horizon. The result is at most
33
33
  * `value * 1e9 < 2^64 * 1e9`, so narrowing to `u128` never truncates.
34
34
  */
35
- declare function rollDown(options: RollDownOptions): (tx: Transaction) => _mysten_sui_transactions346.TransactionResult;
35
+ declare function rollDown(options: RollDownOptions): (tx: Transaction) => _mysten_sui_transactions181.TransactionResult;
36
36
  interface DigitalArguments {
37
37
  aMagnitude: RawTransactionArgument<number | bigint>;
38
38
  aIsNegative: RawTransactionArgument<boolean>;
@@ -63,7 +63,7 @@ interface DigitalOptions {
63
63
  * formula is undefined: a zero forward, a negative inner term, or a non-positive
64
64
  * variance.
65
65
  */
66
- declare function digital(options: DigitalOptions): (tx: Transaction) => _mysten_sui_transactions346.TransactionResult;
66
+ declare function digital(options: DigitalOptions): (tx: Transaction) => _mysten_sui_transactions181.TransactionResult;
67
67
  interface VarPositiveArguments {
68
68
  aMagnitude: RawTransactionArgument<number | bigint>;
69
69
  aIsNegative: RawTransactionArgument<boolean>;
@@ -82,7 +82,7 @@ interface VarPositiveOptions {
82
82
  * Whether a rolled surface's minimum total variance over all strikes is positive,
83
83
  * at the 1e18 the rolled `a` and `b` are carried in.
84
84
  */
85
- declare function varPositive(options: VarPositiveOptions): (tx: Transaction) => _mysten_sui_transactions346.TransactionResult;
85
+ declare function varPositive(options: VarPositiveOptions): (tx: Transaction) => _mysten_sui_transactions181.TransactionResult;
86
86
  interface InputsOkArguments {
87
87
  spot: RawTransactionArgument<number | bigint>;
88
88
  forward: RawTransactionArgument<number | bigint>;
@@ -105,7 +105,7 @@ interface InputsOkOptions {
105
105
  * its own: only total variance has to be positive (`raw_var_ok`), and every
106
106
  * downstream use of `a` fits its provider width.
107
107
  */
108
- declare function inputsOk(options: InputsOkOptions): (tx: Transaction) => _mysten_sui_transactions346.TransactionResult;
108
+ declare function inputsOk(options: InputsOkOptions): (tx: Transaction) => _mysten_sui_transactions181.TransactionResult;
109
109
  interface RawVarOkArguments {
110
110
  a: TransactionArgument;
111
111
  b: RawTransactionArgument<number | bigint>;
@@ -124,7 +124,7 @@ interface RawVarOkOptions {
124
124
  * `a + b * sigma * sqrt(1 - rho^2)` is positive, compared rather than summed: `a`
125
125
  * reaches `u64::MAX`, where the sum would leave `u64`.
126
126
  */
127
- declare function rawVarOk(options: RawVarOkOptions): (tx: Transaction) => _mysten_sui_transactions346.TransactionResult;
127
+ declare function rawVarOk(options: RawVarOkOptions): (tx: Transaction) => _mysten_sui_transactions181.TransactionResult;
128
128
  interface LegFeeArguments {
129
129
  baseFee: RawTransactionArgument<number | bigint>;
130
130
  minFee: RawTransactionArgument<number | bigint>;
@@ -148,7 +148,7 @@ interface LegFeeOptions {
148
148
  * `window_ms` to expiry and rises linearly to `max_multiplier` at expiry, rounded
149
149
  * down so the trader keeps the ramp dust.
150
150
  */
151
- declare function legFee(options: LegFeeOptions): (tx: Transaction) => _mysten_sui_transactions346.TransactionResult;
151
+ declare function legFee(options: LegFeeOptions): (tx: Transaction) => _mysten_sui_transactions181.TransactionResult;
152
152
  interface PotentialArguments {
153
153
  maxRate: RawTransactionArgument<number | bigint>;
154
154
  scale: RawTransactionArgument<number | bigint>;
@@ -171,7 +171,7 @@ interface PotentialOptions {
171
171
  * Defined by this exact sequence of rounded integer operations, so charges and
172
172
  * rebates, which always subtract two evaluations, telescope exactly.
173
173
  */
174
- declare function potential(options: PotentialOptions): (tx: Transaction) => _mysten_sui_transactions346.TransactionResult;
174
+ declare function potential(options: PotentialOptions): (tx: Transaction) => _mysten_sui_transactions181.TransactionResult;
175
175
  interface MaxQtyArguments {
176
176
  probability: RawTransactionArgument<number | bigint>;
177
177
  maxPremium: RawTransactionArgument<number | bigint>;
@@ -191,7 +191,7 @@ interface MaxQtyOptions {
191
191
  * is the premium mint admission charges, so the result is exact, and an oversized
192
192
  * budget saturates at `max_lots` instead of aborting.
193
193
  */
194
- declare function maxQty(options: MaxQtyOptions): (tx: Transaction) => _mysten_sui_transactions346.TransactionResult;
194
+ declare function maxQty(options: MaxQtyOptions): (tx: Transaction) => _mysten_sui_transactions181.TransactionResult;
195
195
  interface BuilderFeeArguments {
196
196
  feeAmount: RawTransactionArgument<number | bigint>;
197
197
  quantity: RawTransactionArgument<number | bigint>;
@@ -209,7 +209,7 @@ interface BuilderFeeOptions {
209
209
  * The builder fee on a trade with a builder code: `fee_amount * multiplier`,
210
210
  * capped at `quantity * max_rate`, each rounded down.
211
211
  */
212
- declare function builderFee(options: BuilderFeeOptions): (tx: Transaction) => _mysten_sui_transactions346.TransactionResult;
212
+ declare function builderFee(options: BuilderFeeOptions): (tx: Transaction) => _mysten_sui_transactions181.TransactionResult;
213
213
  interface NeedQtyArguments {
214
214
  quantity: RawTransactionArgument<number | bigint>;
215
215
  p: RawTransactionArgument<number | bigint>;
@@ -226,7 +226,7 @@ interface NeedQtyOptions {
226
226
  * market's minimum entry probability: a fill pays at least `p` per contract into
227
227
  * market cash.
228
228
  */
229
- declare function needQty(options: NeedQtyOptions): (tx: Transaction) => _mysten_sui_transactions346.TransactionResult;
229
+ declare function needQty(options: NeedQtyOptions): (tx: Transaction) => _mysten_sui_transactions181.TransactionResult;
230
230
  interface NeedBudgetArguments {
231
231
  budget: RawTransactionArgument<number | bigint>;
232
232
  p: RawTransactionArgument<number | bigint>;
@@ -243,7 +243,7 @@ interface NeedBudgetOptions {
243
243
  * covers premiums rounding down, which lets a fill buy up to `1 / p` raw units
244
244
  * more than `budget / p`.
245
245
  */
246
- declare function needBudget(options: NeedBudgetOptions): (tx: Transaction) => _mysten_sui_transactions346.TransactionResult;
246
+ declare function needBudget(options: NeedBudgetOptions): (tx: Transaction) => _mysten_sui_transactions181.TransactionResult;
247
247
  interface NeedSellArguments {
248
248
  closeQuantity: RawTransactionArgument<number | bigint>;
249
249
  lambda: RawTransactionArgument<number | bigint>;
@@ -260,7 +260,7 @@ interface NeedSellOptions {
260
260
  * liability by at least `lambda * close_quantity` and pays at most
261
261
  * `close_quantity`.
262
262
  */
263
- declare function needSell(options: NeedSellOptions): (tx: Transaction) => _mysten_sui_transactions346.TransactionResult;
263
+ declare function needSell(options: NeedSellOptions): (tx: Transaction) => _mysten_sui_transactions181.TransactionResult;
264
264
  interface OrderTermsArguments {
265
265
  orderId: RawTransactionArgument<number | bigint>;
266
266
  }
@@ -278,7 +278,7 @@ interface OrderTermsOptions {
278
278
  * layout is Predict's frozen order-ID encoding: 30-bit ticks at bits 70 and 40,
279
279
  * and a 32-bit count of 10_000-unit lots at bit 100.
280
280
  */
281
- declare function orderTerms(options: OrderTermsOptions): (tx: Transaction) => _mysten_sui_transactions346.TransactionResult;
281
+ declare function orderTerms(options: OrderTermsOptions): (tx: Transaction) => _mysten_sui_transactions181.TransactionResult;
282
282
  //#endregion
283
283
  export { math_d_exports };
284
284
  //# sourceMappingURL=math.d.mts.map