@mysten/deepbook-v3 2.6.4 → 2.8.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 (250) hide show
  1. package/CHANGELOG.md +153 -0
  2. package/PREDICT.md +389 -61
  3. package/dist/contracts/account/account.d.mts +23 -23
  4. package/dist/contracts/account/account.d.mts.map +1 -1
  5. package/dist/contracts/account/account_registry.d.mts +13 -13
  6. package/dist/contracts/deepbook/account.d.mts +18 -18
  7. package/dist/contracts/deepbook/balances.d.mts +4 -4
  8. package/dist/contracts/deepbook/deep_price.d.mts +3 -3
  9. package/dist/contracts/deepbook/order.d.mts +12 -12
  10. package/dist/contracts/deepbook_predict/admin.d.mts +4 -4
  11. package/dist/contracts/deepbook_predict/builder_code.d.mts +11 -11
  12. package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
  13. package/dist/contracts/deepbook_predict/config_events.d.mts +93 -68
  14. package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -1
  15. package/dist/contracts/deepbook_predict/config_events.mjs +45 -1
  16. package/dist/contracts/deepbook_predict/config_events.mjs.map +1 -1
  17. package/dist/contracts/deepbook_predict/deps/std/type_name.mjs +17 -0
  18. package/dist/contracts/deepbook_predict/deps/std/type_name.mjs.map +1 -0
  19. package/dist/contracts/deepbook_predict/expiry_market.d.mts +652 -235
  20. package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -1
  21. package/dist/contracts/deepbook_predict/expiry_market.mjs +652 -186
  22. package/dist/contracts/deepbook_predict/expiry_market.mjs.map +1 -1
  23. package/dist/contracts/deepbook_predict/lp_book.mjs +1 -1
  24. package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +5 -5
  25. package/dist/contracts/deepbook_predict/market_manager.d.mts +27 -27
  26. package/dist/contracts/deepbook_predict/order_events.d.mts +50 -50
  27. package/dist/contracts/deepbook_predict/order_events.d.mts.map +1 -1
  28. package/dist/contracts/deepbook_predict/order_events.mjs +3 -1
  29. package/dist/contracts/deepbook_predict/order_events.mjs.map +1 -1
  30. package/dist/contracts/deepbook_predict/pause_cap.d.mts +5 -5
  31. package/dist/contracts/deepbook_predict/plp.d.mts +184 -82
  32. package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -1
  33. package/dist/contracts/deepbook_predict/plp.mjs +126 -7
  34. package/dist/contracts/deepbook_predict/plp.mjs.map +1 -1
  35. package/dist/contracts/deepbook_predict/pool_accounting.mjs +1 -1
  36. package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +5 -5
  37. package/dist/contracts/deepbook_predict/predict_account.d.mts +14 -14
  38. package/dist/contracts/deepbook_predict/pricing.d.mts +91 -58
  39. package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -1
  40. package/dist/contracts/deepbook_predict/pricing.mjs +30 -3
  41. package/dist/contracts/deepbook_predict/pricing.mjs.map +1 -1
  42. package/dist/contracts/deepbook_predict/pricing_config.mjs.map +1 -1
  43. package/dist/contracts/deepbook_predict/protocol_config.d.mts +400 -92
  44. package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -1
  45. package/dist/contracts/deepbook_predict/protocol_config.mjs +451 -61
  46. package/dist/contracts/deepbook_predict/protocol_config.mjs.map +1 -1
  47. package/dist/contracts/deepbook_predict/range_codec.d.mts +2 -2
  48. package/dist/contracts/deepbook_predict/registry.d.mts +28 -28
  49. package/dist/contracts/deepbook_predict/strike_exposure.mjs +1 -1
  50. package/dist/contracts/deepbook_predict/strike_payout_tree.mjs +17 -12
  51. package/dist/contracts/deepbook_predict/strike_payout_tree.mjs.map +1 -1
  52. package/dist/contracts/deepbook_predict/vault_events.d.mts +154 -106
  53. package/dist/contracts/deepbook_predict/vault_events.d.mts.map +1 -1
  54. package/dist/contracts/deepbook_predict/vault_events.mjs +57 -1
  55. package/dist/contracts/deepbook_predict/vault_events.mjs.map +1 -1
  56. package/dist/contracts/deepbook_predict_math/config-arguments.d.mts +10 -0
  57. package/dist/contracts/deepbook_predict_math/config-arguments.d.mts.map +1 -0
  58. package/dist/contracts/deepbook_predict_math/lazer_price.d.mts +106 -0
  59. package/dist/contracts/deepbook_predict_math/lazer_price.d.mts.map +1 -0
  60. package/dist/contracts/deepbook_predict_math/lazer_price.mjs +125 -0
  61. package/dist/contracts/deepbook_predict_math/lazer_price.mjs.map +1 -0
  62. package/dist/contracts/deepbook_predict_math/math.d.mts +284 -0
  63. package/dist/contracts/deepbook_predict_math/math.d.mts.map +1 -0
  64. package/dist/contracts/deepbook_predict_math/math.mjs +364 -0
  65. package/dist/contracts/deepbook_predict_math/math.mjs.map +1 -0
  66. package/dist/contracts/deepbook_predict_orders/config-arguments.d.mts +13 -0
  67. package/dist/contracts/deepbook_predict_orders/config-arguments.d.mts.map +1 -0
  68. package/dist/contracts/deepbook_predict_orders/delayed_execution_config.d.mts +215 -0
  69. package/dist/contracts/deepbook_predict_orders/delayed_execution_config.d.mts.map +1 -0
  70. package/dist/contracts/deepbook_predict_orders/delayed_execution_config.mjs +215 -0
  71. package/dist/contracts/deepbook_predict_orders/delayed_execution_config.mjs.map +1 -0
  72. package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.mjs +87 -0
  73. package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.mjs.map +1 -0
  74. package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/pricing.mjs +52 -0
  75. package/dist/contracts/deepbook_predict_orders/deps/deepbook_predict/pricing.mjs.map +1 -0
  76. package/dist/contracts/deepbook_predict_orders/deps/fixed_math/i64.mjs +25 -0
  77. package/dist/contracts/deepbook_predict_orders/deps/fixed_math/i64.mjs.map +1 -0
  78. package/dist/contracts/deepbook_predict_orders/deps/sui/balance.mjs +21 -0
  79. package/dist/contracts/deepbook_predict_orders/deps/sui/balance.mjs.map +1 -0
  80. package/dist/contracts/deepbook_predict_orders/deps/sui/table.mjs +39 -0
  81. package/dist/contracts/deepbook_predict_orders/deps/sui/table.mjs.map +1 -0
  82. package/dist/contracts/deepbook_predict_orders/desk.d.mts +187 -0
  83. package/dist/contracts/deepbook_predict_orders/desk.d.mts.map +1 -0
  84. package/dist/contracts/deepbook_predict_orders/desk.mjs +261 -0
  85. package/dist/contracts/deepbook_predict_orders/desk.mjs.map +1 -0
  86. package/dist/contracts/deepbook_predict_orders/order_queue.d.mts +1042 -0
  87. package/dist/contracts/deepbook_predict_orders/order_queue.d.mts.map +1 -0
  88. package/dist/contracts/deepbook_predict_orders/order_queue.mjs +849 -0
  89. package/dist/contracts/deepbook_predict_orders/order_queue.mjs.map +1 -0
  90. package/dist/contracts/deepbook_predict_orders/queue.d.mts +683 -0
  91. package/dist/contracts/deepbook_predict_orders/queue.d.mts.map +1 -0
  92. package/dist/contracts/deepbook_predict_orders/queue.mjs +912 -0
  93. package/dist/contracts/deepbook_predict_orders/queue.mjs.map +1 -0
  94. package/dist/contracts/deepbook_predict_orders/queue_events.d.mts +195 -0
  95. package/dist/contracts/deepbook_predict_orders/queue_events.d.mts.map +1 -0
  96. package/dist/contracts/deepbook_predict_orders/queue_events.mjs +187 -0
  97. package/dist/contracts/deepbook_predict_orders/queue_events.mjs.map +1 -0
  98. package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
  99. package/dist/contracts/deepbook_sessions/sessions.d.mts +163 -28
  100. package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
  101. package/dist/contracts/deepbook_sessions/sessions.mjs +234 -5
  102. package/dist/contracts/deepbook_sessions/sessions.mjs.map +1 -1
  103. package/dist/deployments/mainnet.mjs +7 -4
  104. package/dist/deployments/mainnet.mjs.map +1 -1
  105. package/dist/deployments/testnet.mjs +7 -4
  106. package/dist/deployments/testnet.mjs.map +1 -1
  107. package/dist/predict/bindings/expiry-market.d.mts +77 -0
  108. package/dist/predict/bindings/expiry-market.d.mts.map +1 -0
  109. package/dist/predict/bindings/expiry-market.mjs +139 -0
  110. package/dist/predict/bindings/expiry-market.mjs.map +1 -0
  111. package/dist/predict/bindings/protocol-config.d.mts +39 -0
  112. package/dist/predict/bindings/protocol-config.d.mts.map +1 -0
  113. package/dist/predict/bindings/protocol-config.mjs +90 -0
  114. package/dist/predict/bindings/protocol-config.mjs.map +1 -0
  115. package/dist/predict/bindings/rename.mjs +9 -0
  116. package/dist/predict/bindings/rename.mjs.map +1 -0
  117. package/dist/predict/client.d.mts +595 -16
  118. package/dist/predict/client.d.mts.map +1 -1
  119. package/dist/predict/client.mjs +986 -10
  120. package/dist/predict/client.mjs.map +1 -1
  121. package/dist/predict/config/generated.d.mts +22 -1
  122. package/dist/predict/config/generated.d.mts.map +1 -1
  123. package/dist/predict/config/generated.mjs +30 -1
  124. package/dist/predict/config/generated.mjs.map +1 -1
  125. package/dist/predict/config/mainnet.mjs +11 -3
  126. package/dist/predict/config/mainnet.mjs.map +1 -1
  127. package/dist/predict/config/testnet.mjs +11 -3
  128. package/dist/predict/config/testnet.mjs.map +1 -1
  129. package/dist/predict/config/types.d.mts +50 -1
  130. package/dist/predict/config/types.d.mts.map +1 -1
  131. package/dist/predict/cost.d.mts +38 -11
  132. package/dist/predict/cost.d.mts.map +1 -1
  133. package/dist/predict/cost.mjs +37 -11
  134. package/dist/predict/cost.mjs.map +1 -1
  135. package/dist/predict/decode.d.mts +251 -1
  136. package/dist/predict/decode.d.mts.map +1 -1
  137. package/dist/predict/decode.mjs +342 -4
  138. package/dist/predict/decode.mjs.map +1 -1
  139. package/dist/predict/errors.d.mts +69 -6
  140. package/dist/predict/errors.d.mts.map +1 -1
  141. package/dist/predict/errors.mjs +277 -4
  142. package/dist/predict/errors.mjs.map +1 -1
  143. package/dist/predict/index.d.mts +21 -10
  144. package/dist/predict/index.mjs +24 -12
  145. package/dist/predict/queue-id.d.mts +13 -0
  146. package/dist/predict/queue-id.d.mts.map +1 -0
  147. package/dist/predict/queue-id.mjs +19 -0
  148. package/dist/predict/queue-id.mjs.map +1 -0
  149. package/dist/predict/queue.d.mts +505 -0
  150. package/dist/predict/queue.d.mts.map +1 -0
  151. package/dist/predict/queue.mjs +774 -0
  152. package/dist/predict/queue.mjs.map +1 -0
  153. package/dist/predict/reads/balances.mjs +1 -1
  154. package/dist/predict/reads/markets.mjs +46 -5
  155. package/dist/predict/reads/markets.mjs.map +1 -1
  156. package/dist/predict/reads/pool.mjs +1 -1
  157. package/dist/predict/reads/pricing.d.mts +1 -1
  158. package/dist/predict/reads/queue.d.mts +105 -0
  159. package/dist/predict/reads/queue.d.mts.map +1 -0
  160. package/dist/predict/reads/queue.mjs +445 -0
  161. package/dist/predict/reads/queue.mjs.map +1 -0
  162. package/dist/predict/ticks.d.mts +9 -1
  163. package/dist/predict/ticks.d.mts.map +1 -1
  164. package/dist/predict/ticks.mjs +18 -1
  165. package/dist/predict/ticks.mjs.map +1 -1
  166. package/dist/predict/tx/authed.mjs +1 -1
  167. package/dist/predict/tx/common.d.mts.map +1 -1
  168. package/dist/predict/tx/common.mjs +12 -1
  169. package/dist/predict/tx/common.mjs.map +1 -1
  170. package/dist/predict/tx/queue.d.mts +220 -0
  171. package/dist/predict/tx/queue.d.mts.map +1 -0
  172. package/dist/predict/tx/queue.mjs +399 -0
  173. package/dist/predict/tx/queue.mjs.map +1 -0
  174. package/dist/predict/tx/trade.d.mts.map +1 -1
  175. package/dist/predict/tx/trade.mjs +61 -43
  176. package/dist/predict/tx/trade.mjs.map +1 -1
  177. package/dist/sessions.d.mts +90 -2
  178. package/dist/sessions.d.mts.map +1 -1
  179. package/dist/sessions.mjs +107 -2
  180. package/dist/sessions.mjs.map +1 -1
  181. package/dist/transactions/balanceManager.d.mts +12 -12
  182. package/dist/transactions/balanceManager.d.mts.map +1 -1
  183. package/dist/transactions/deepbook.d.mts +20 -20
  184. package/dist/transactions/deepbook.d.mts.map +1 -1
  185. package/dist/transactions/deepbookAdmin.d.mts +4 -4
  186. package/dist/transactions/deepbookAdmin.d.mts.map +1 -1
  187. package/dist/transactions/marginAdmin.d.mts +7 -7
  188. package/dist/transactions/marginAdmin.d.mts.map +1 -1
  189. package/dist/transactions/marginLiquidations.d.mts +3 -3
  190. package/dist/transactions/marginMaintainer.d.mts +5 -5
  191. package/dist/transactions/marginMaintainer.d.mts.map +1 -1
  192. package/dist/transactions/marginManager.d.mts +32 -32
  193. package/dist/transactions/marginManager.d.mts.map +1 -1
  194. package/dist/transactions/marginPool.d.mts +18 -18
  195. package/dist/transactions/marginRegistry.d.mts +16 -16
  196. package/dist/transactions/marginTPSL.d.mts +10 -10
  197. package/dist/transactions/marginTPSL.d.mts.map +1 -1
  198. package/dist/transactions/poolProxy.d.mts +8 -8
  199. package/dist/transactions/poolProxy.d.mts.map +1 -1
  200. package/package.json +4 -4
  201. package/src/contracts/deepbook_predict/config_events.ts +39 -0
  202. package/src/contracts/deepbook_predict/deps/std/type_name.ts +24 -0
  203. package/src/contracts/deepbook_predict/expiry_market.ts +960 -169
  204. package/src/contracts/deepbook_predict/order_events.ts +3 -1
  205. package/src/contracts/deepbook_predict/plp.ts +150 -9
  206. package/src/contracts/deepbook_predict/pricing.ts +46 -7
  207. package/src/contracts/deepbook_predict/pricing_config.ts +3 -1
  208. package/src/contracts/deepbook_predict/protocol_config.ts +648 -33
  209. package/src/contracts/deepbook_predict/strike_payout_tree.ts +25 -21
  210. package/src/contracts/deepbook_predict/vault_events.ts +65 -0
  211. package/src/contracts/deepbook_predict_math/config-arguments.ts +6 -0
  212. package/src/contracts/deepbook_predict_math/lazer_price.ts +196 -0
  213. package/src/contracts/deepbook_predict_math/math.ts +553 -0
  214. package/src/contracts/deepbook_predict_orders/config-arguments.ts +11 -0
  215. package/src/contracts/deepbook_predict_orders/delayed_execution_config.ts +430 -0
  216. package/src/contracts/deepbook_predict_orders/deps/deepbook_predict/expiry_market.ts +108 -0
  217. package/src/contracts/deepbook_predict_orders/deps/deepbook_predict/pricing.ts +58 -0
  218. package/src/contracts/deepbook_predict_orders/deps/fixed_math/i64.ts +21 -0
  219. package/src/contracts/deepbook_predict_orders/deps/sui/balance.ts +19 -0
  220. package/src/contracts/deepbook_predict_orders/deps/sui/table.ts +37 -0
  221. package/src/contracts/deepbook_predict_orders/desk.ts +419 -0
  222. package/src/contracts/deepbook_predict_orders/order_flow.ts +19 -0
  223. package/src/contracts/deepbook_predict_orders/order_queue.ts +1670 -0
  224. package/src/contracts/deepbook_predict_orders/queue.ts +1394 -0
  225. package/src/contracts/deepbook_predict_orders/queue_events.ts +189 -0
  226. package/src/contracts/deepbook_sessions/sessions.ts +355 -4
  227. package/src/deployments/mainnet.ts +7 -2
  228. package/src/deployments/testnet.ts +7 -2
  229. package/src/deployments/types.ts +14 -1
  230. package/src/predict/bindings/expiry-market.ts +127 -0
  231. package/src/predict/bindings/protocol-config.ts +59 -0
  232. package/src/predict/bindings/rename.ts +14 -0
  233. package/src/predict/client.ts +2076 -13
  234. package/src/predict/config/generated.ts +50 -0
  235. package/src/predict/config/mainnet.ts +16 -2
  236. package/src/predict/config/testnet.ts +16 -2
  237. package/src/predict/config/types.ts +51 -1
  238. package/src/predict/cost.ts +62 -14
  239. package/src/predict/decode.ts +691 -2
  240. package/src/predict/errors.ts +391 -14
  241. package/src/predict/index.ts +87 -6
  242. package/src/predict/queue-id.ts +22 -0
  243. package/src/predict/queue.ts +1231 -0
  244. package/src/predict/reads/markets.ts +30 -0
  245. package/src/predict/reads/queue.ts +606 -0
  246. package/src/predict/ticks.ts +35 -0
  247. package/src/predict/tx/common.ts +25 -1
  248. package/src/predict/tx/queue.ts +525 -0
  249. package/src/predict/tx/trade.ts +80 -49
  250. package/src/sessions.ts +206 -1
@@ -1,103 +1,128 @@
1
1
  import { MoveStruct } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs351 from "@mysten/sui/bcs";
2
+ import * as _mysten_sui_bcs182 from "@mysten/sui/bcs";
3
3
 
4
4
  //#region src/contracts/deepbook_predict/config_events.d.ts
5
5
  declare namespace config_events_d_exports {
6
- export { CadenceConfigUpdated, EwmaConfigUpdated, ExpiryMarketMintPausedUpdated, MarketCreated, MarketSettled, NoTradeWindowUpdated, PlpFeeRatesUpdated, PricingConfigUpdated, ProtocolFrozenUpdated, ReferenceTickSet, StrikeExposureTemplateConfigUpdated, TradingPausedUpdated };
6
+ export { CadenceConfigUpdated, EwmaConfigUpdated, ExpiryMarketMintPausedUpdated, FeeIncentiveAllocationRatesUpdated, FeeIncentiveSubsidyRateUpdated, FlushOperatorUpdated, MarketCreated, MarketSettled, NoTradeWindowUpdated, OrderFlowUpdated, PlpFeeRatesUpdated, PricingConfigUpdated, ProtocolFrozenUpdated, ReferenceTickSet, SettledRedeemKeeperUpdated, StrikeExposureTemplateConfigUpdated, TradingPausedUpdated };
7
7
  }
8
8
  declare const StrikeExposureTemplateConfigUpdated: MoveStruct<{
9
- backing_buffer_lambda: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
10
- base_fee: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
11
- min_fee: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
12
- min_entry_probability: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
13
- max_entry_probability: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
14
- expiry_fee_window_ms: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
15
- expiry_fee_max_multiplier: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
16
- inventory_impact_max_rate: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
17
- onchain_timestamp_ms: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
9
+ backing_buffer_lambda: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
10
+ base_fee: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
11
+ min_fee: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
12
+ min_entry_probability: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
13
+ max_entry_probability: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
14
+ expiry_fee_window_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
15
+ expiry_fee_max_multiplier: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
16
+ inventory_impact_max_rate: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
17
+ onchain_timestamp_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
18
18
  }, "@local-pkg/deepbook_predict::config_events::StrikeExposureTemplateConfigUpdated">;
19
19
  declare const PricingConfigUpdated: MoveStruct<{
20
- use_pyth_spot_for_forward: _mysten_sui_bcs351.BcsType<boolean, boolean, "bool">;
21
- pyth_spot_freshness_ms: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
22
- block_scholes_price_freshness_ms: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
23
- block_scholes_svi_freshness_ms: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
24
- onchain_timestamp_ms: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
20
+ use_pyth_spot_for_forward: _mysten_sui_bcs182.BcsType<boolean, boolean, "bool">;
21
+ pyth_spot_freshness_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
22
+ block_scholes_price_freshness_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
23
+ block_scholes_svi_freshness_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
24
+ onchain_timestamp_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
25
25
  }, "@local-pkg/deepbook_predict::config_events::PricingConfigUpdated">;
26
26
  declare const EwmaConfigUpdated: MoveStruct<{
27
- alpha: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
28
- z_score_threshold: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
29
- penalty_rate: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
30
- enabled: _mysten_sui_bcs351.BcsType<boolean, boolean, "bool">;
31
- onchain_timestamp_ms: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
27
+ alpha: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
28
+ z_score_threshold: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
29
+ penalty_rate: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
30
+ enabled: _mysten_sui_bcs182.BcsType<boolean, boolean, "bool">;
31
+ onchain_timestamp_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
32
32
  }, "@local-pkg/deepbook_predict::config_events::EwmaConfigUpdated">;
33
33
  declare const PlpFeeRatesUpdated: MoveStruct<{
34
- plp_supply_fee_rate: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
35
- plp_withdraw_fee_rate: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
36
- onchain_timestamp_ms: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
34
+ plp_supply_fee_rate: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
35
+ plp_withdraw_fee_rate: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
36
+ onchain_timestamp_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
37
37
  }, "@local-pkg/deepbook_predict::config_events::PlpFeeRatesUpdated">;
38
38
  declare const NoTradeWindowUpdated: MoveStruct<{
39
- no_trade_window_ms: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
40
- onchain_timestamp_ms: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
39
+ no_trade_window_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
40
+ onchain_timestamp_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
41
41
  }, "@local-pkg/deepbook_predict::config_events::NoTradeWindowUpdated">;
42
+ declare const FeeIncentiveSubsidyRateUpdated: MoveStruct<{
43
+ fee_incentive_subsidy_rate: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
44
+ onchain_timestamp_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
45
+ }, "@local-pkg/deepbook_predict::config_events::FeeIncentiveSubsidyRateUpdated">;
46
+ declare const FeeIncentiveAllocationRatesUpdated: MoveStruct<{
47
+ fee_incentive_live_target_rate: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
48
+ fee_incentive_lifetime_cap_rate: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
49
+ onchain_timestamp_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
50
+ }, "@local-pkg/deepbook_predict::config_events::FeeIncentiveAllocationRatesUpdated">;
42
51
  declare const TradingPausedUpdated: MoveStruct<{
43
- protocol_config_id: _mysten_sui_bcs351.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
44
- paused: _mysten_sui_bcs351.BcsType<boolean, boolean, "bool">;
52
+ protocol_config_id: _mysten_sui_bcs182.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
53
+ paused: _mysten_sui_bcs182.BcsType<boolean, boolean, "bool">;
45
54
  }, "@local-pkg/deepbook_predict::config_events::TradingPausedUpdated">;
46
55
  declare const ProtocolFrozenUpdated: MoveStruct<{
47
- protocol_config_id: _mysten_sui_bcs351.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
48
- frozen: _mysten_sui_bcs351.BcsType<boolean, boolean, "bool">;
56
+ protocol_config_id: _mysten_sui_bcs182.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
57
+ frozen: _mysten_sui_bcs182.BcsType<boolean, boolean, "bool">;
49
58
  }, "@local-pkg/deepbook_predict::config_events::ProtocolFrozenUpdated">;
59
+ declare const SettledRedeemKeeperUpdated: MoveStruct<{
60
+ keeper: _mysten_sui_bcs182.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
61
+ allowed: _mysten_sui_bcs182.BcsType<boolean, boolean, "bool">;
62
+ }, "@local-pkg/deepbook_predict::config_events::SettledRedeemKeeperUpdated">;
63
+ declare const FlushOperatorUpdated: MoveStruct<{
64
+ operator: _mysten_sui_bcs182.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
65
+ added: _mysten_sui_bcs182.BcsType<boolean, boolean, "bool">;
66
+ onchain_timestamp_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
67
+ }, "@local-pkg/deepbook_predict::config_events::FlushOperatorUpdated">;
68
+ declare const OrderFlowUpdated: MoveStruct<{
69
+ order_flow: MoveStruct<{
70
+ name: _mysten_sui_bcs182.BcsType<string, string, "string">;
71
+ }, "std::type_name::TypeName">;
72
+ enabled: _mysten_sui_bcs182.BcsType<boolean, boolean, "bool">;
73
+ onchain_timestamp_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
74
+ }, "@local-pkg/deepbook_predict::config_events::OrderFlowUpdated">;
50
75
  declare const MarketCreated: MoveStruct<{
51
- expiry_market_id: _mysten_sui_bcs351.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
52
- pool_vault_id: _mysten_sui_bcs351.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; /** Propbook underlying this market resolves current oracle bindings through. */
53
- propbook_underlying_id: _mysten_sui_bcs351.BcsType<number, number, "u32">;
54
- expiry: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
76
+ expiry_market_id: _mysten_sui_bcs182.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
77
+ pool_vault_id: _mysten_sui_bcs182.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; /** Propbook underlying this market resolves current oracle bindings through. */
78
+ propbook_underlying_id: _mysten_sui_bcs182.BcsType<number, number, "u32">;
79
+ expiry: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
55
80
  /**
56
81
  * Raw-price-per-tick factor; indexers/SDKs derive raw strikes as
57
82
  * `tick * tick_size`.
58
83
  */
59
- tick_size: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">; /** Coarser raw-price step that new finite mint boundaries must align to. */
60
- admission_tick_size: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">; /** USDC pool allocation cap snapshotted for this expiry. */
61
- max_expiry_allocation: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">; /** Minimum USDC cash target snapshotted for this expiry. */
62
- initial_expiry_cash: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
63
- backing_buffer_lambda: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
64
- base_fee: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
65
- min_fee: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
66
- min_entry_probability: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
67
- max_entry_probability: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
68
- expiry_fee_window_ms: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
69
- expiry_fee_max_multiplier: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">; /** Maximum marginal inventory-impact rate snapshotted by this market. */
70
- inventory_impact_max_rate: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
84
+ tick_size: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">; /** Coarser raw-price step that new finite mint boundaries must align to. */
85
+ admission_tick_size: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">; /** USDC pool allocation cap snapshotted for this expiry. */
86
+ max_expiry_allocation: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">; /** Minimum USDC cash target snapshotted for this expiry. */
87
+ initial_expiry_cash: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
88
+ backing_buffer_lambda: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
89
+ base_fee: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
90
+ min_fee: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
91
+ min_entry_probability: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
92
+ max_entry_probability: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
93
+ expiry_fee_window_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
94
+ expiry_fee_max_multiplier: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">; /** Maximum marginal inventory-impact rate snapshotted by this market. */
95
+ inventory_impact_max_rate: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
71
96
  }, "@local-pkg/deepbook_predict::config_events::MarketCreated">;
72
97
  declare const CadenceConfigUpdated: MoveStruct<{
73
- registry_id: _mysten_sui_bcs351.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
74
- propbook_underlying_id: _mysten_sui_bcs351.BcsType<number, number, "u32">;
75
- cadence_id: _mysten_sui_bcs351.BcsType<number, number, "u8">;
76
- tick_size: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
77
- admission_tick_size: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
78
- max_expiry_allocation: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
79
- initial_expiry_cash: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
80
- window_size: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
98
+ registry_id: _mysten_sui_bcs182.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
99
+ propbook_underlying_id: _mysten_sui_bcs182.BcsType<number, number, "u32">;
100
+ cadence_id: _mysten_sui_bcs182.BcsType<number, number, "u8">;
101
+ tick_size: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
102
+ admission_tick_size: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
103
+ max_expiry_allocation: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
104
+ initial_expiry_cash: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
105
+ window_size: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
81
106
  }, "@local-pkg/deepbook_predict::config_events::CadenceConfigUpdated">;
82
107
  declare const ExpiryMarketMintPausedUpdated: MoveStruct<{
83
- expiry_market_id: _mysten_sui_bcs351.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
84
- paused: _mysten_sui_bcs351.BcsType<boolean, boolean, "bool">;
108
+ expiry_market_id: _mysten_sui_bcs182.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
109
+ paused: _mysten_sui_bcs182.BcsType<boolean, boolean, "bool">;
85
110
  }, "@local-pkg/deepbook_predict::config_events::ExpiryMarketMintPausedUpdated">;
86
111
  declare const ReferenceTickSet: MoveStruct<{
87
- expiry_market_id: _mysten_sui_bcs351.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
88
- propbook_underlying_id: _mysten_sui_bcs351.BcsType<number, number, "u32">;
89
- source_timestamp_ms: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
90
- spot: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
91
- tick: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
92
- onchain_timestamp_ms: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
112
+ expiry_market_id: _mysten_sui_bcs182.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
113
+ propbook_underlying_id: _mysten_sui_bcs182.BcsType<number, number, "u32">;
114
+ source_timestamp_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
115
+ spot: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
116
+ tick: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
117
+ onchain_timestamp_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
93
118
  }, "@local-pkg/deepbook_predict::config_events::ReferenceTickSet">;
94
119
  declare const MarketSettled: MoveStruct<{
95
- expiry_market_id: _mysten_sui_bcs351.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
96
- propbook_underlying_id: _mysten_sui_bcs351.BcsType<number, number, "u32">;
97
- expiry: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
98
- settlement_price: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">; /** `0` = Pyth and `1` = Block Scholes. */
99
- settlement_source: _mysten_sui_bcs351.BcsType<number, number, "u8">; /** On-chain landing time of the settlement, `clock.timestamp_ms()`. */
100
- onchain_timestamp_ms: _mysten_sui_bcs351.BcsType<bigint, string | number | bigint, "u64">;
120
+ expiry_market_id: _mysten_sui_bcs182.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
121
+ propbook_underlying_id: _mysten_sui_bcs182.BcsType<number, number, "u32">;
122
+ expiry: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
123
+ settlement_price: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">; /** `0` = Pyth and `1` = Block Scholes. */
124
+ settlement_source: _mysten_sui_bcs182.BcsType<number, number, "u8">; /** On-chain landing time of the settlement, `clock.timestamp_ms()`. */
125
+ onchain_timestamp_ms: _mysten_sui_bcs182.BcsType<bigint, string | number | bigint, "u64">;
101
126
  }, "@local-pkg/deepbook_predict::config_events::MarketSettled">;
102
127
  //#endregion
103
128
  export { config_events_d_exports };
@@ -1 +1 @@
1
- {"version":3,"file":"config_events.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/config_events.ts"],"mappings":";;;;;;;cAUa,mCAAA,EAAmC,UAAA;yBAa9C,kBAAA,CAAA,OAAA;;;;;;;;;;cACW,oBAAA,EAAoB,UAAA;6BAS/B,kBAAA,CAAA,OAAA;;;;;;cACW,iBAAA,EAAiB,UAAA;SAS5B,kBAAA,CAAA,OAAA;;;;;;cACW,kBAAA,EAAkB,UAAA;uBAO7B,kBAAA,CAAA,OAAA;;;;cACW,oBAAA,EAAoB,UAAA;sBAM/B,kBAAA,CAAA,OAAA;;;cACW,oBAAA,EAAoB,UAAA;;;;cAOpB,qBAAA,EAAqB,UAAA;;;;cAOrB,aAAA,EAAa,UAAA;;;;;;;AAjD1B;;kFASE;;;;;;;;;;;;;cAsEW,oBAAA,EAAoB,UAAA;;;;;;;;;;cAapB,6BAAA,EAA6B,UAAA;;;;cAO7B,gBAAA,EAAgB,UAAA;;;;;;;;cAWhB,aAAA,EAAa,UAAA;;;;;uEA1Fb"}
1
+ {"version":3,"file":"config_events.d.mts","names":[],"sources":["../../../src/contracts/deepbook_predict/config_events.ts"],"mappings":";;;;;;;cAWa,mCAAA,EAAmC,UAAA;yBAa9C,kBAAA,CAAA,OAAA;;;;;;;;;;cACW,oBAAA,EAAoB,UAAA;6BAS/B,kBAAA,CAAA,OAAA;;;;;;cACW,iBAAA,EAAiB,UAAA;SAS5B,kBAAA,CAAA,OAAA;;;;;;cACW,kBAAA,EAAkB,UAAA;uBAO7B,kBAAA,CAAA,OAAA;;;;cACW,oBAAA,EAAoB,UAAA;sBAM/B,kBAAA,CAAA,OAAA;;;cACW,8BAAA,EAA8B,UAAA;8BAMzC,kBAAA,CAAA,OAAA;;;cACW,kCAAA,EAAkC,UAAA;kCAO7C,kBAAA,CAAA,OAAA;;;;cACW,oBAAA,EAAoB,UAAA;;;;cAOpB,qBAAA,EAAqB,UAAA;;;;cAOrB,0BAAA,EAA0B,UAAA;;;;cAO1B,oBAAA,EAAoB,UAAA;;;;;cAQpB,gBAAA,EAAgB,UAAA;;UAO3B,kBAAA,CAAA,OAAA;EAAA;;;;cACW,aAAA,EAAa,UAAA;;;;;;;;;;4FApExB;8FAAA;;;;;;;;;;;cAkGW,oBAAA,EAAoB,UAAA;;;;;;;;;;cAapB,6BAAA,EAA6B,UAAA;;;;cAO7B,gBAAA,EAAgB,UAAA;;;;;;;;cAWhB,aAAA,EAAa,UAAA;;;;yFAxHb"}
@@ -1,6 +1,7 @@
1
1
  import { __exportAll } from "../../_virtual/rolldown_runtime.mjs";
2
2
  import { MoveStruct } from "../utils/index.mjs";
3
3
  import { U64 } from "../../bcs/integers.mjs";
4
+ import { TypeName } from "./deps/std/type_name.mjs";
4
5
  import { bcs } from "@mysten/sui/bcs";
5
6
 
6
7
  //#region src/contracts/deepbook_predict/config_events.ts
@@ -12,13 +13,18 @@ var config_events_exports = /* @__PURE__ */ __exportAll({
12
13
  CadenceConfigUpdated: () => CadenceConfigUpdated,
13
14
  EwmaConfigUpdated: () => EwmaConfigUpdated,
14
15
  ExpiryMarketMintPausedUpdated: () => ExpiryMarketMintPausedUpdated,
16
+ FeeIncentiveAllocationRatesUpdated: () => FeeIncentiveAllocationRatesUpdated,
17
+ FeeIncentiveSubsidyRateUpdated: () => FeeIncentiveSubsidyRateUpdated,
18
+ FlushOperatorUpdated: () => FlushOperatorUpdated,
15
19
  MarketCreated: () => MarketCreated,
16
20
  MarketSettled: () => MarketSettled,
17
21
  NoTradeWindowUpdated: () => NoTradeWindowUpdated,
22
+ OrderFlowUpdated: () => OrderFlowUpdated,
18
23
  PlpFeeRatesUpdated: () => PlpFeeRatesUpdated,
19
24
  PricingConfigUpdated: () => PricingConfigUpdated,
20
25
  ProtocolFrozenUpdated: () => ProtocolFrozenUpdated,
21
26
  ReferenceTickSet: () => ReferenceTickSet,
27
+ SettledRedeemKeeperUpdated: () => SettledRedeemKeeperUpdated,
22
28
  StrikeExposureTemplateConfigUpdated: () => StrikeExposureTemplateConfigUpdated,
23
29
  TradingPausedUpdated: () => TradingPausedUpdated
24
30
  });
@@ -72,6 +78,21 @@ const NoTradeWindowUpdated = new MoveStruct({
72
78
  onchain_timestamp_ms: U64
73
79
  }
74
80
  });
81
+ const FeeIncentiveSubsidyRateUpdated = new MoveStruct({
82
+ name: `${$moduleName}::FeeIncentiveSubsidyRateUpdated`,
83
+ fields: {
84
+ fee_incentive_subsidy_rate: U64,
85
+ onchain_timestamp_ms: U64
86
+ }
87
+ });
88
+ const FeeIncentiveAllocationRatesUpdated = new MoveStruct({
89
+ name: `${$moduleName}::FeeIncentiveAllocationRatesUpdated`,
90
+ fields: {
91
+ fee_incentive_live_target_rate: U64,
92
+ fee_incentive_lifetime_cap_rate: U64,
93
+ onchain_timestamp_ms: U64
94
+ }
95
+ });
75
96
  const TradingPausedUpdated = new MoveStruct({
76
97
  name: `${$moduleName}::TradingPausedUpdated`,
77
98
  fields: {
@@ -86,6 +107,29 @@ const ProtocolFrozenUpdated = new MoveStruct({
86
107
  frozen: bcs.bool()
87
108
  }
88
109
  });
110
+ const SettledRedeemKeeperUpdated = new MoveStruct({
111
+ name: `${$moduleName}::SettledRedeemKeeperUpdated`,
112
+ fields: {
113
+ keeper: bcs.Address,
114
+ allowed: bcs.bool()
115
+ }
116
+ });
117
+ const FlushOperatorUpdated = new MoveStruct({
118
+ name: `${$moduleName}::FlushOperatorUpdated`,
119
+ fields: {
120
+ operator: bcs.Address,
121
+ added: bcs.bool(),
122
+ onchain_timestamp_ms: U64
123
+ }
124
+ });
125
+ const OrderFlowUpdated = new MoveStruct({
126
+ name: `${$moduleName}::OrderFlowUpdated`,
127
+ fields: {
128
+ order_flow: TypeName,
129
+ enabled: bcs.bool(),
130
+ onchain_timestamp_ms: U64
131
+ }
132
+ });
89
133
  const MarketCreated = new MoveStruct({
90
134
  name: `${$moduleName}::MarketCreated`,
91
135
  fields: {
@@ -151,5 +195,5 @@ const MarketSettled = new MoveStruct({
151
195
  });
152
196
 
153
197
  //#endregion
154
- export { config_events_exports };
198
+ export { FlushOperatorUpdated, OrderFlowUpdated, config_events_exports };
155
199
  //# sourceMappingURL=config_events.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"config_events.mjs","names":[],"sources":["../../../src/contracts/deepbook_predict/config_events.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/** Admin and configuration events for Predict. */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { U64 } from '../../bcs/integers.js';\nimport { bcs } from '@mysten/sui/bcs';\nconst $moduleName = '@local-pkg/deepbook_predict::config_events';\nexport const StrikeExposureTemplateConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::StrikeExposureTemplateConfigUpdated`,\n\tfields: {\n\t\tbacking_buffer_lambda: U64,\n\t\tbase_fee: U64,\n\t\tmin_fee: U64,\n\t\tmin_entry_probability: U64,\n\t\tmax_entry_probability: U64,\n\t\texpiry_fee_window_ms: U64,\n\t\texpiry_fee_max_multiplier: U64,\n\t\tinventory_impact_max_rate: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const PricingConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::PricingConfigUpdated`,\n\tfields: {\n\t\tuse_pyth_spot_for_forward: bcs.bool(),\n\t\tpyth_spot_freshness_ms: U64,\n\t\tblock_scholes_price_freshness_ms: U64,\n\t\tblock_scholes_svi_freshness_ms: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const EwmaConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::EwmaConfigUpdated`,\n\tfields: {\n\t\talpha: U64,\n\t\tz_score_threshold: U64,\n\t\tpenalty_rate: U64,\n\t\tenabled: bcs.bool(),\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const PlpFeeRatesUpdated = new MoveStruct({\n\tname: `${$moduleName}::PlpFeeRatesUpdated`,\n\tfields: {\n\t\tplp_supply_fee_rate: U64,\n\t\tplp_withdraw_fee_rate: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const NoTradeWindowUpdated = new MoveStruct({\n\tname: `${$moduleName}::NoTradeWindowUpdated`,\n\tfields: {\n\t\tno_trade_window_ms: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const TradingPausedUpdated = new MoveStruct({\n\tname: `${$moduleName}::TradingPausedUpdated`,\n\tfields: {\n\t\tprotocol_config_id: bcs.Address,\n\t\tpaused: bcs.bool(),\n\t},\n});\nexport const ProtocolFrozenUpdated = new MoveStruct({\n\tname: `${$moduleName}::ProtocolFrozenUpdated`,\n\tfields: {\n\t\tprotocol_config_id: bcs.Address,\n\t\tfrozen: bcs.bool(),\n\t},\n});\nexport const MarketCreated = new MoveStruct({\n\tname: `${$moduleName}::MarketCreated`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tpool_vault_id: bcs.Address,\n\t\t/** Propbook underlying this market resolves current oracle bindings through. */\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\texpiry: U64,\n\t\t/**\n\t\t * Raw-price-per-tick factor; indexers/SDKs derive raw strikes as\n\t\t * `tick * tick_size`.\n\t\t */\n\t\ttick_size: U64,\n\t\t/** Coarser raw-price step that new finite mint boundaries must align to. */\n\t\tadmission_tick_size: U64,\n\t\t/** USDC pool allocation cap snapshotted for this expiry. */\n\t\tmax_expiry_allocation: U64,\n\t\t/** Minimum USDC cash target snapshotted for this expiry. */\n\t\tinitial_expiry_cash: U64,\n\t\tbacking_buffer_lambda: U64,\n\t\tbase_fee: U64,\n\t\tmin_fee: U64,\n\t\tmin_entry_probability: U64,\n\t\tmax_entry_probability: U64,\n\t\texpiry_fee_window_ms: U64,\n\t\texpiry_fee_max_multiplier: U64,\n\t\t/** Maximum marginal inventory-impact rate snapshotted by this market. */\n\t\tinventory_impact_max_rate: U64,\n\t},\n});\nexport const CadenceConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::CadenceConfigUpdated`,\n\tfields: {\n\t\tregistry_id: bcs.Address,\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\tcadence_id: bcs.u8(),\n\t\ttick_size: U64,\n\t\tadmission_tick_size: U64,\n\t\tmax_expiry_allocation: U64,\n\t\tinitial_expiry_cash: U64,\n\t\twindow_size: U64,\n\t},\n});\nexport const ExpiryMarketMintPausedUpdated = new MoveStruct({\n\tname: `${$moduleName}::ExpiryMarketMintPausedUpdated`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tpaused: bcs.bool(),\n\t},\n});\nexport const ReferenceTickSet = new MoveStruct({\n\tname: `${$moduleName}::ReferenceTickSet`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\tsource_timestamp_ms: U64,\n\t\tspot: U64,\n\t\ttick: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const MarketSettled = new MoveStruct({\n\tname: `${$moduleName}::MarketSettled`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\texpiry: U64,\n\t\tsettlement_price: U64,\n\t\t/** `0` = Pyth and `1` = Block Scholes. */\n\t\tsettlement_source: bcs.u8(),\n\t\t/** On-chain landing time of the settlement, `clock.timestamp_ms()`. */\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AASA,MAAM,cAAc;AACpB,MAAa,sCAAsC,IAAI,WAAW;CACjE,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,uBAAuB;EACvB,UAAU;EACV,SAAS;EACT,uBAAuB;EACvB,uBAAuB;EACvB,sBAAsB;EACtB,2BAA2B;EAC3B,2BAA2B;EAC3B,sBAAsB;EACtB;CACD,CAAC;AACF,MAAa,uBAAuB,IAAI,WAAW;CAClD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,2BAA2B,IAAI,MAAM;EACrC,wBAAwB;EACxB,kCAAkC;EAClC,gCAAgC;EAChC,sBAAsB;EACtB;CACD,CAAC;AACF,MAAa,oBAAoB,IAAI,WAAW;CAC/C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,OAAO;EACP,mBAAmB;EACnB,cAAc;EACd,SAAS,IAAI,MAAM;EACnB,sBAAsB;EACtB;CACD,CAAC;AACF,MAAa,qBAAqB,IAAI,WAAW;CAChD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,qBAAqB;EACrB,uBAAuB;EACvB,sBAAsB;EACtB;CACD,CAAC;AACF,MAAa,uBAAuB,IAAI,WAAW;CAClD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,oBAAoB;EACpB,sBAAsB;EACtB;CACD,CAAC;AACF,MAAa,uBAAuB,IAAI,WAAW;CAClD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,oBAAoB,IAAI;EACxB,QAAQ,IAAI,MAAM;EAClB;CACD,CAAC;AACF,MAAa,wBAAwB,IAAI,WAAW;CACnD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,oBAAoB,IAAI;EACxB,QAAQ,IAAI,MAAM;EAClB;CACD,CAAC;AACF,MAAa,gBAAgB,IAAI,WAAW;CAC3C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,kBAAkB,IAAI;EACtB,eAAe,IAAI;EAEnB,wBAAwB,IAAI,KAAK;EACjC,QAAQ;EAKR,WAAW;EAEX,qBAAqB;EAErB,uBAAuB;EAEvB,qBAAqB;EACrB,uBAAuB;EACvB,UAAU;EACV,SAAS;EACT,uBAAuB;EACvB,uBAAuB;EACvB,sBAAsB;EACtB,2BAA2B;EAE3B,2BAA2B;EAC3B;CACD,CAAC;AACF,MAAa,uBAAuB,IAAI,WAAW;CAClD,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,aAAa,IAAI;EACjB,wBAAwB,IAAI,KAAK;EACjC,YAAY,IAAI,IAAI;EACpB,WAAW;EACX,qBAAqB;EACrB,uBAAuB;EACvB,qBAAqB;EACrB,aAAa;EACb;CACD,CAAC;AACF,MAAa,gCAAgC,IAAI,WAAW;CAC3D,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,kBAAkB,IAAI;EACtB,QAAQ,IAAI,MAAM;EAClB;CACD,CAAC;AACF,MAAa,mBAAmB,IAAI,WAAW;CAC9C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,kBAAkB,IAAI;EACtB,wBAAwB,IAAI,KAAK;EACjC,qBAAqB;EACrB,MAAM;EACN,MAAM;EACN,sBAAsB;EACtB;CACD,CAAC;AACF,MAAa,gBAAgB,IAAI,WAAW;CAC3C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,kBAAkB,IAAI;EACtB,wBAAwB,IAAI,KAAK;EACjC,QAAQ;EACR,kBAAkB;EAElB,mBAAmB,IAAI,IAAI;EAE3B,sBAAsB;EACtB;CACD,CAAC"}
1
+ {"version":3,"file":"config_events.mjs","names":["type_name.TypeName"],"sources":["../../../src/contracts/deepbook_predict/config_events.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/** Admin and configuration events for Predict. */\n\nimport { MoveStruct } from '../utils/index.js';\nimport { U64 } from '../../bcs/integers.js';\nimport { bcs } from '@mysten/sui/bcs';\nimport * as type_name from './deps/std/type_name.js';\nconst $moduleName = '@local-pkg/deepbook_predict::config_events';\nexport const StrikeExposureTemplateConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::StrikeExposureTemplateConfigUpdated`,\n\tfields: {\n\t\tbacking_buffer_lambda: U64,\n\t\tbase_fee: U64,\n\t\tmin_fee: U64,\n\t\tmin_entry_probability: U64,\n\t\tmax_entry_probability: U64,\n\t\texpiry_fee_window_ms: U64,\n\t\texpiry_fee_max_multiplier: U64,\n\t\tinventory_impact_max_rate: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const PricingConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::PricingConfigUpdated`,\n\tfields: {\n\t\tuse_pyth_spot_for_forward: bcs.bool(),\n\t\tpyth_spot_freshness_ms: U64,\n\t\tblock_scholes_price_freshness_ms: U64,\n\t\tblock_scholes_svi_freshness_ms: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const EwmaConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::EwmaConfigUpdated`,\n\tfields: {\n\t\talpha: U64,\n\t\tz_score_threshold: U64,\n\t\tpenalty_rate: U64,\n\t\tenabled: bcs.bool(),\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const PlpFeeRatesUpdated = new MoveStruct({\n\tname: `${$moduleName}::PlpFeeRatesUpdated`,\n\tfields: {\n\t\tplp_supply_fee_rate: U64,\n\t\tplp_withdraw_fee_rate: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const NoTradeWindowUpdated = new MoveStruct({\n\tname: `${$moduleName}::NoTradeWindowUpdated`,\n\tfields: {\n\t\tno_trade_window_ms: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const FeeIncentiveSubsidyRateUpdated = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentiveSubsidyRateUpdated`,\n\tfields: {\n\t\tfee_incentive_subsidy_rate: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const FeeIncentiveAllocationRatesUpdated = new MoveStruct({\n\tname: `${$moduleName}::FeeIncentiveAllocationRatesUpdated`,\n\tfields: {\n\t\tfee_incentive_live_target_rate: U64,\n\t\tfee_incentive_lifetime_cap_rate: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const TradingPausedUpdated = new MoveStruct({\n\tname: `${$moduleName}::TradingPausedUpdated`,\n\tfields: {\n\t\tprotocol_config_id: bcs.Address,\n\t\tpaused: bcs.bool(),\n\t},\n});\nexport const ProtocolFrozenUpdated = new MoveStruct({\n\tname: `${$moduleName}::ProtocolFrozenUpdated`,\n\tfields: {\n\t\tprotocol_config_id: bcs.Address,\n\t\tfrozen: bcs.bool(),\n\t},\n});\nexport const SettledRedeemKeeperUpdated = new MoveStruct({\n\tname: `${$moduleName}::SettledRedeemKeeperUpdated`,\n\tfields: {\n\t\tkeeper: bcs.Address,\n\t\tallowed: bcs.bool(),\n\t},\n});\nexport const FlushOperatorUpdated = new MoveStruct({\n\tname: `${$moduleName}::FlushOperatorUpdated`,\n\tfields: {\n\t\toperator: bcs.Address,\n\t\tadded: bcs.bool(),\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const OrderFlowUpdated = new MoveStruct({\n\tname: `${$moduleName}::OrderFlowUpdated`,\n\tfields: {\n\t\torder_flow: type_name.TypeName,\n\t\tenabled: bcs.bool(),\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const MarketCreated = new MoveStruct({\n\tname: `${$moduleName}::MarketCreated`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tpool_vault_id: bcs.Address,\n\t\t/** Propbook underlying this market resolves current oracle bindings through. */\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\texpiry: U64,\n\t\t/**\n\t\t * Raw-price-per-tick factor; indexers/SDKs derive raw strikes as\n\t\t * `tick * tick_size`.\n\t\t */\n\t\ttick_size: U64,\n\t\t/** Coarser raw-price step that new finite mint boundaries must align to. */\n\t\tadmission_tick_size: U64,\n\t\t/** USDC pool allocation cap snapshotted for this expiry. */\n\t\tmax_expiry_allocation: U64,\n\t\t/** Minimum USDC cash target snapshotted for this expiry. */\n\t\tinitial_expiry_cash: U64,\n\t\tbacking_buffer_lambda: U64,\n\t\tbase_fee: U64,\n\t\tmin_fee: U64,\n\t\tmin_entry_probability: U64,\n\t\tmax_entry_probability: U64,\n\t\texpiry_fee_window_ms: U64,\n\t\texpiry_fee_max_multiplier: U64,\n\t\t/** Maximum marginal inventory-impact rate snapshotted by this market. */\n\t\tinventory_impact_max_rate: U64,\n\t},\n});\nexport const CadenceConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::CadenceConfigUpdated`,\n\tfields: {\n\t\tregistry_id: bcs.Address,\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\tcadence_id: bcs.u8(),\n\t\ttick_size: U64,\n\t\tadmission_tick_size: U64,\n\t\tmax_expiry_allocation: U64,\n\t\tinitial_expiry_cash: U64,\n\t\twindow_size: U64,\n\t},\n});\nexport const ExpiryMarketMintPausedUpdated = new MoveStruct({\n\tname: `${$moduleName}::ExpiryMarketMintPausedUpdated`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tpaused: bcs.bool(),\n\t},\n});\nexport const ReferenceTickSet = new MoveStruct({\n\tname: `${$moduleName}::ReferenceTickSet`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\tsource_timestamp_ms: U64,\n\t\tspot: U64,\n\t\ttick: U64,\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\nexport const MarketSettled = new MoveStruct({\n\tname: `${$moduleName}::MarketSettled`,\n\tfields: {\n\t\texpiry_market_id: bcs.Address,\n\t\tpropbook_underlying_id: bcs.u32(),\n\t\texpiry: U64,\n\t\tsettlement_price: U64,\n\t\t/** `0` = Pyth and `1` = Block Scholes. */\n\t\tsettlement_source: bcs.u8(),\n\t\t/** On-chain landing time of the settlement, `clock.timestamp_ms()`. */\n\t\tonchain_timestamp_ms: U64,\n\t},\n});\n"],"mappings":"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"}
@@ -0,0 +1,17 @@
1
+ import { MoveStruct } from "../../../utils/index.mjs";
2
+ import { bcs } from "@mysten/sui/bcs";
3
+
4
+ //#region src/contracts/deepbook_predict/deps/std/type_name.ts
5
+ /**************************************************************
6
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
7
+ **************************************************************/
8
+ /** Functionality for converting Move types into values. Use with care! */
9
+ const $moduleName = "std::type_name";
10
+ const TypeName = new MoveStruct({
11
+ name: `${$moduleName}::TypeName`,
12
+ fields: { name: bcs.string() }
13
+ });
14
+
15
+ //#endregion
16
+ export { TypeName };
17
+ //# sourceMappingURL=type_name.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type_name.mjs","names":[],"sources":["../../../../../src/contracts/deepbook_predict/deps/std/type_name.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/** Functionality for converting Move types into values. Use with care! */\n\nimport { MoveStruct } from '../../../utils/index.js';\nimport { bcs } from '@mysten/sui/bcs';\nconst $moduleName = 'std::type_name';\nexport const TypeName = new MoveStruct({\n\tname: `${$moduleName}::TypeName`,\n\tfields: {\n\t\t/**\n\t\t * String representation of the type. All types are represented using their source\n\t\t * syntax: \"u8\", \"u64\", \"bool\", \"address\", \"vector\", and so on for primitive types.\n\t\t * Struct types are represented as fully qualified type names; e.g.\n\t\t * `00000000000000000000000000000001::string::String` or\n\t\t * `0000000000000000000000000000000a::module_name1::type_name1<0000000000000000000000000000000a::module_name2::type_name2<u64>>`\n\t\t * Addresses are hex-encoded lowercase values of length ADDRESS_LENGTH (16, 20, or\n\t\t * 32 depending on the Move platform)\n\t\t */\n\t\tname: bcs.string(),\n\t},\n});\n"],"mappings":";;;;;;;;AAQA,MAAM,cAAc;AACpB,MAAa,WAAW,IAAI,WAAW;CACtC,MAAM,GAAG,YAAY;CACrB,QAAQ,EAUP,MAAM,IAAI,QAAQ,EAClB;CACD,CAAC"}