@mysten/deepbook-v3 2.4.1 → 2.4.2

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 (60) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/contracts/account/account.d.mts +23 -23
  3. package/dist/contracts/account/account.d.mts.map +1 -1
  4. package/dist/contracts/account/account_events.d.mts +20 -20
  5. package/dist/contracts/account/account_events.d.mts.map +1 -1
  6. package/dist/contracts/account/account_registry.d.mts +19 -19
  7. package/dist/contracts/account/account_registry.d.mts.map +1 -1
  8. package/dist/contracts/deepbook_predict/admin.d.mts +4 -4
  9. package/dist/contracts/deepbook_predict/admin.d.mts.map +1 -1
  10. package/dist/contracts/deepbook_predict/builder_code.d.mts +11 -11
  11. package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -1
  12. package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
  13. package/dist/contracts/deepbook_predict/config_events.d.mts +67 -67
  14. package/dist/contracts/deepbook_predict/expiry_market.d.mts +95 -95
  15. package/dist/contracts/deepbook_predict/expiry_market.d.mts.map +1 -1
  16. package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +5 -5
  17. package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts.map +1 -1
  18. package/dist/contracts/deepbook_predict/market_manager.d.mts +27 -27
  19. package/dist/contracts/deepbook_predict/market_manager.d.mts.map +1 -1
  20. package/dist/contracts/deepbook_predict/order_events.d.mts +50 -50
  21. package/dist/contracts/deepbook_predict/pause_cap.d.mts +5 -5
  22. package/dist/contracts/deepbook_predict/pause_cap.d.mts.map +1 -1
  23. package/dist/contracts/deepbook_predict/plp.d.mts +72 -72
  24. package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -1
  25. package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +5 -5
  26. package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts.map +1 -1
  27. package/dist/contracts/deepbook_predict/predict_account.d.mts +14 -14
  28. package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -1
  29. package/dist/contracts/deepbook_predict/pricing.d.mts +48 -48
  30. package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -1
  31. package/dist/contracts/deepbook_predict/protocol_config.d.mts +64 -64
  32. package/dist/contracts/deepbook_predict/protocol_config.d.mts.map +1 -1
  33. package/dist/contracts/deepbook_predict/range_codec.d.mts +2 -2
  34. package/dist/contracts/deepbook_predict/range_codec.d.mts.map +1 -1
  35. package/dist/contracts/deepbook_predict/registry.d.mts +28 -28
  36. package/dist/contracts/deepbook_predict/vault_events.d.mts +105 -105
  37. package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
  38. package/dist/contracts/deepbook_sessions/session_config.d.mts.map +1 -1
  39. package/dist/contracts/deepbook_sessions/sessions.d.mts +22 -22
  40. package/dist/contracts/deepbook_sessions/sessions.d.mts.map +1 -1
  41. package/dist/predict/reads/pricing.d.mts +1 -0
  42. package/dist/predict/reads/pricing.d.mts.map +1 -1
  43. package/dist/transactions/balanceManager.d.mts +12 -12
  44. package/dist/transactions/balanceManager.d.mts.map +1 -1
  45. package/dist/transactions/deepbook.d.mts +20 -20
  46. package/dist/transactions/deepbook.d.mts.map +1 -1
  47. package/dist/transactions/deepbookAdmin.d.mts +4 -4
  48. package/dist/transactions/deepbookAdmin.d.mts.map +1 -1
  49. package/dist/transactions/marginAdmin.d.mts +7 -7
  50. package/dist/transactions/marginAdmin.d.mts.map +1 -1
  51. package/dist/transactions/marginLiquidations.d.mts +3 -3
  52. package/dist/transactions/marginMaintainer.d.mts +5 -5
  53. package/dist/transactions/marginMaintainer.d.mts.map +1 -1
  54. package/dist/transactions/marginManager.d.mts +32 -32
  55. package/dist/transactions/marginManager.d.mts.map +1 -1
  56. package/dist/transactions/marginPool.d.mts +18 -18
  57. package/dist/transactions/marginRegistry.d.mts +16 -16
  58. package/dist/transactions/marginTPSL.d.mts +10 -10
  59. package/dist/transactions/poolProxy.d.mts +8 -8
  60. package/package.json +2 -2
@@ -1,103 +1,103 @@
1
1
  import { MoveStruct } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs256 from "@mysten/sui/bcs";
2
+ import * as _mysten_sui_bcs213 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
6
  export { CadenceConfigUpdated, EwmaConfigUpdated, ExpiryMarketMintPausedUpdated, MarketCreated, MarketSettled, NoTradeWindowUpdated, PlpFeeRatesUpdated, PricingConfigUpdated, ProtocolFrozenUpdated, ReferenceTickSet, StrikeExposureTemplateConfigUpdated, TradingPausedUpdated };
7
7
  }
8
8
  declare const StrikeExposureTemplateConfigUpdated: MoveStruct<{
9
- backing_buffer_lambda: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
10
- base_fee: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
11
- min_fee: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
12
- min_entry_probability: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
13
- max_entry_probability: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
14
- expiry_fee_window_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
15
- expiry_fee_max_multiplier: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
16
- inventory_impact_max_rate: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
17
- onchain_timestamp_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
9
+ backing_buffer_lambda: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
10
+ base_fee: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
11
+ min_fee: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
12
+ min_entry_probability: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
13
+ max_entry_probability: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
14
+ expiry_fee_window_ms: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
15
+ expiry_fee_max_multiplier: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
16
+ inventory_impact_max_rate: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
17
+ onchain_timestamp_ms: _mysten_sui_bcs213.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_bcs256.BcsType<boolean, boolean, "bool">;
21
- pyth_spot_freshness_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
22
- block_scholes_price_freshness_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
23
- block_scholes_svi_freshness_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
24
- onchain_timestamp_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
20
+ use_pyth_spot_for_forward: _mysten_sui_bcs213.BcsType<boolean, boolean, "bool">;
21
+ pyth_spot_freshness_ms: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
22
+ block_scholes_price_freshness_ms: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
23
+ block_scholes_svi_freshness_ms: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
24
+ onchain_timestamp_ms: _mysten_sui_bcs213.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_bcs256.BcsType<bigint, string | number | bigint, "u64">;
28
- z_score_threshold: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
29
- penalty_rate: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
30
- enabled: _mysten_sui_bcs256.BcsType<boolean, boolean, "bool">;
31
- onchain_timestamp_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
27
+ alpha: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
28
+ z_score_threshold: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
29
+ penalty_rate: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
30
+ enabled: _mysten_sui_bcs213.BcsType<boolean, boolean, "bool">;
31
+ onchain_timestamp_ms: _mysten_sui_bcs213.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_bcs256.BcsType<bigint, string | number | bigint, "u64">;
35
- plp_withdraw_fee_rate: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
36
- onchain_timestamp_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
34
+ plp_supply_fee_rate: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
35
+ plp_withdraw_fee_rate: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
36
+ onchain_timestamp_ms: _mysten_sui_bcs213.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_bcs256.BcsType<bigint, string | number | bigint, "u64">;
40
- onchain_timestamp_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
39
+ no_trade_window_ms: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
40
+ onchain_timestamp_ms: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
41
41
  }, "@local-pkg/deepbook_predict::config_events::NoTradeWindowUpdated">;
42
42
  declare const TradingPausedUpdated: MoveStruct<{
43
- protocol_config_id: _mysten_sui_bcs256.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
44
- paused: _mysten_sui_bcs256.BcsType<boolean, boolean, "bool">;
43
+ protocol_config_id: _mysten_sui_bcs213.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
44
+ paused: _mysten_sui_bcs213.BcsType<boolean, boolean, "bool">;
45
45
  }, "@local-pkg/deepbook_predict::config_events::TradingPausedUpdated">;
46
46
  declare const ProtocolFrozenUpdated: MoveStruct<{
47
- protocol_config_id: _mysten_sui_bcs256.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
48
- frozen: _mysten_sui_bcs256.BcsType<boolean, boolean, "bool">;
47
+ protocol_config_id: _mysten_sui_bcs213.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
48
+ frozen: _mysten_sui_bcs213.BcsType<boolean, boolean, "bool">;
49
49
  }, "@local-pkg/deepbook_predict::config_events::ProtocolFrozenUpdated">;
50
50
  declare const MarketCreated: MoveStruct<{
51
- expiry_market_id: _mysten_sui_bcs256.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
52
- pool_vault_id: _mysten_sui_bcs256.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; /** Propbook underlying this market resolves current oracle bindings through. */
53
- propbook_underlying_id: _mysten_sui_bcs256.BcsType<number, number, "u32">;
54
- expiry: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
51
+ expiry_market_id: _mysten_sui_bcs213.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
52
+ pool_vault_id: _mysten_sui_bcs213.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; /** Propbook underlying this market resolves current oracle bindings through. */
53
+ propbook_underlying_id: _mysten_sui_bcs213.BcsType<number, number, "u32">;
54
+ expiry: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
55
55
  /**
56
56
  * Raw-price-per-tick factor; indexers/SDKs derive raw strikes as
57
57
  * `tick * tick_size`.
58
58
  */
59
- tick_size: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">; /** Coarser raw-price step that new finite mint boundaries must align to. */
60
- admission_tick_size: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">; /** USDC pool allocation cap snapshotted for this expiry. */
61
- max_expiry_allocation: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">; /** Minimum USDC cash target snapshotted for this expiry. */
62
- initial_expiry_cash: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
63
- backing_buffer_lambda: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
64
- base_fee: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
65
- min_fee: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
66
- min_entry_probability: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
67
- max_entry_probability: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
68
- expiry_fee_window_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
69
- expiry_fee_max_multiplier: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">; /** Maximum marginal inventory-impact rate snapshotted by this market. */
70
- inventory_impact_max_rate: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
59
+ tick_size: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">; /** Coarser raw-price step that new finite mint boundaries must align to. */
60
+ admission_tick_size: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">; /** USDC pool allocation cap snapshotted for this expiry. */
61
+ max_expiry_allocation: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">; /** Minimum USDC cash target snapshotted for this expiry. */
62
+ initial_expiry_cash: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
63
+ backing_buffer_lambda: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
64
+ base_fee: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
65
+ min_fee: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
66
+ min_entry_probability: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
67
+ max_entry_probability: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
68
+ expiry_fee_window_ms: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
69
+ expiry_fee_max_multiplier: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">; /** Maximum marginal inventory-impact rate snapshotted by this market. */
70
+ inventory_impact_max_rate: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
71
71
  }, "@local-pkg/deepbook_predict::config_events::MarketCreated">;
72
72
  declare const CadenceConfigUpdated: MoveStruct<{
73
- registry_id: _mysten_sui_bcs256.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
74
- propbook_underlying_id: _mysten_sui_bcs256.BcsType<number, number, "u32">;
75
- cadence_id: _mysten_sui_bcs256.BcsType<number, number, "u8">;
76
- tick_size: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
77
- admission_tick_size: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
78
- max_expiry_allocation: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
79
- initial_expiry_cash: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
80
- window_size: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
73
+ registry_id: _mysten_sui_bcs213.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
74
+ propbook_underlying_id: _mysten_sui_bcs213.BcsType<number, number, "u32">;
75
+ cadence_id: _mysten_sui_bcs213.BcsType<number, number, "u8">;
76
+ tick_size: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
77
+ admission_tick_size: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
78
+ max_expiry_allocation: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
79
+ initial_expiry_cash: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
80
+ window_size: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
81
81
  }, "@local-pkg/deepbook_predict::config_events::CadenceConfigUpdated">;
82
82
  declare const ExpiryMarketMintPausedUpdated: MoveStruct<{
83
- expiry_market_id: _mysten_sui_bcs256.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
84
- paused: _mysten_sui_bcs256.BcsType<boolean, boolean, "bool">;
83
+ expiry_market_id: _mysten_sui_bcs213.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
84
+ paused: _mysten_sui_bcs213.BcsType<boolean, boolean, "bool">;
85
85
  }, "@local-pkg/deepbook_predict::config_events::ExpiryMarketMintPausedUpdated">;
86
86
  declare const ReferenceTickSet: MoveStruct<{
87
- expiry_market_id: _mysten_sui_bcs256.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
88
- propbook_underlying_id: _mysten_sui_bcs256.BcsType<number, number, "u32">;
89
- source_timestamp_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
90
- spot: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
91
- tick: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
92
- onchain_timestamp_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
87
+ expiry_market_id: _mysten_sui_bcs213.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
88
+ propbook_underlying_id: _mysten_sui_bcs213.BcsType<number, number, "u32">;
89
+ source_timestamp_ms: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
90
+ spot: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
91
+ tick: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
92
+ onchain_timestamp_ms: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
93
93
  }, "@local-pkg/deepbook_predict::config_events::ReferenceTickSet">;
94
94
  declare const MarketSettled: MoveStruct<{
95
- expiry_market_id: _mysten_sui_bcs256.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
96
- propbook_underlying_id: _mysten_sui_bcs256.BcsType<number, number, "u32">;
97
- expiry: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
98
- settlement_price: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">; /** `0` = Pyth and `1` = Block Scholes. */
99
- settlement_source: _mysten_sui_bcs256.BcsType<number, number, "u8">; /** On-chain landing time of the settlement, `clock.timestamp_ms()`. */
100
- onchain_timestamp_ms: _mysten_sui_bcs256.BcsType<bigint, string | number | bigint, "u64">;
95
+ expiry_market_id: _mysten_sui_bcs213.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
96
+ propbook_underlying_id: _mysten_sui_bcs213.BcsType<number, number, "u32">;
97
+ expiry: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
98
+ settlement_price: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">; /** `0` = Pyth and `1` = Block Scholes. */
99
+ settlement_source: _mysten_sui_bcs213.BcsType<number, number, "u8">; /** On-chain landing time of the settlement, `clock.timestamp_ms()`. */
100
+ onchain_timestamp_ms: _mysten_sui_bcs213.BcsType<bigint, string | number | bigint, "u64">;
101
101
  }, "@local-pkg/deepbook_predict::config_events::MarketSettled">;
102
102
  //#endregion
103
103
  export { config_events_d_exports };