@mysten/deepbook-v3 2.8.0 → 2.9.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 (82) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/PREDICT.md +26 -13
  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/admin.d.mts.map +1 -1
  12. package/dist/contracts/deepbook_predict/builder_code.d.mts +11 -11
  13. package/dist/contracts/deepbook_predict/builder_code.d.mts.map +1 -1
  14. package/dist/contracts/deepbook_predict/builder_code_events.d.mts +10 -10
  15. package/dist/contracts/deepbook_predict/config_events.d.mts +86 -81
  16. package/dist/contracts/deepbook_predict/config_events.d.mts.map +1 -1
  17. package/dist/contracts/deepbook_predict/config_events.mjs +9 -0
  18. package/dist/contracts/deepbook_predict/config_events.mjs.map +1 -1
  19. package/dist/contracts/deepbook_predict/expiry_market.d.mts +59 -59
  20. package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts +5 -5
  21. package/dist/contracts/deepbook_predict/market_lifecycle_cap.d.mts.map +1 -1
  22. package/dist/contracts/deepbook_predict/market_manager.d.mts +33 -28
  23. package/dist/contracts/deepbook_predict/market_manager.d.mts.map +1 -1
  24. package/dist/contracts/deepbook_predict/market_manager.mjs +5 -3
  25. package/dist/contracts/deepbook_predict/market_manager.mjs.map +1 -1
  26. package/dist/contracts/deepbook_predict/order_events.d.mts +50 -50
  27. package/dist/contracts/deepbook_predict/pause_cap.d.mts +5 -5
  28. package/dist/contracts/deepbook_predict/pause_cap.d.mts.map +1 -1
  29. package/dist/contracts/deepbook_predict/plp.d.mts +74 -74
  30. package/dist/contracts/deepbook_predict/plp.d.mts.map +1 -1
  31. package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts +5 -5
  32. package/dist/contracts/deepbook_predict/pool_valuation_cap.d.mts.map +1 -1
  33. package/dist/contracts/deepbook_predict/predict_account.d.mts +14 -14
  34. package/dist/contracts/deepbook_predict/predict_account.d.mts.map +1 -1
  35. package/dist/contracts/deepbook_predict/pricing.d.mts +67 -67
  36. package/dist/contracts/deepbook_predict/pricing.d.mts.map +1 -1
  37. package/dist/contracts/deepbook_predict/protocol_config.d.mts +82 -82
  38. package/dist/contracts/deepbook_predict/range_codec.d.mts +2 -2
  39. package/dist/contracts/deepbook_predict/range_codec.d.mts.map +1 -1
  40. package/dist/contracts/deepbook_predict/registry.d.mts +99 -27
  41. package/dist/contracts/deepbook_predict/registry.d.mts.map +1 -1
  42. package/dist/contracts/deepbook_predict/registry.mjs +111 -7
  43. package/dist/contracts/deepbook_predict/registry.mjs.map +1 -1
  44. package/dist/contracts/deepbook_predict/vault_events.d.mts +131 -131
  45. package/dist/contracts/deepbook_predict_math/lazer_price.d.mts +13 -13
  46. package/dist/contracts/deepbook_predict_math/math.d.mts +14 -14
  47. package/dist/contracts/deepbook_predict_orders/delayed_execution_config.d.mts +30 -30
  48. package/dist/contracts/deepbook_predict_orders/desk.d.mts +28 -28
  49. package/dist/contracts/deepbook_predict_orders/order_queue.d.mts +187 -187
  50. package/dist/contracts/deepbook_predict_orders/queue.d.mts +49 -49
  51. package/dist/contracts/deepbook_predict_orders/queue_events.d.mts +140 -140
  52. package/dist/contracts/deepbook_sessions/session_config.d.mts +8 -8
  53. package/dist/contracts/deepbook_sessions/sessions.d.mts +27 -27
  54. package/dist/deployments/testnet.mjs +5 -4
  55. package/dist/deployments/testnet.mjs.map +1 -1
  56. package/dist/predict/bindings/expiry-market.d.mts +5 -5
  57. package/dist/predict/bindings/expiry-market.d.mts.map +1 -1
  58. package/dist/predict/bindings/protocol-config.d.mts +3 -3
  59. package/dist/predict/bindings/protocol-config.d.mts.map +1 -1
  60. package/dist/transactions/balanceManager.d.mts +12 -12
  61. package/dist/transactions/deepbook.d.mts +20 -20
  62. package/dist/transactions/deepbookAdmin.d.mts +4 -4
  63. package/dist/transactions/marginAdmin.d.mts +7 -7
  64. package/dist/transactions/marginLiquidations.d.mts +3 -3
  65. package/dist/transactions/marginMaintainer.d.mts +5 -5
  66. package/dist/transactions/marginMaintainer.d.mts.map +1 -1
  67. package/dist/transactions/marginManager.d.mts +32 -32
  68. package/dist/transactions/marginManager.d.mts.map +1 -1
  69. package/dist/transactions/marginPool.d.mts +18 -18
  70. package/dist/transactions/marginPool.d.mts.map +1 -1
  71. package/dist/transactions/marginRegistry.d.mts +16 -16
  72. package/dist/transactions/marginTPSL.d.mts +10 -10
  73. package/dist/transactions/marginTPSL.d.mts.map +1 -1
  74. package/dist/transactions/poolProxy.d.mts +8 -8
  75. package/dist/transactions/poolProxy.d.mts.map +1 -1
  76. package/package.json +4 -4
  77. package/src/contracts/deepbook_predict/config_events.ts +8 -0
  78. package/src/contracts/deepbook_predict/market_manager.ts +11 -5
  79. package/src/contracts/deepbook_predict/registry.ts +162 -6
  80. package/src/contracts/propbook/block_scholes_store.ts +48 -3
  81. package/src/contracts/propbook/registry.ts +45 -0
  82. package/src/deployments/testnet.ts +5 -4
@@ -1,194 +1,194 @@
1
1
  import { MoveStruct } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs613 from "@mysten/sui/bcs";
2
+ import * as _mysten_sui_bcs617 from "@mysten/sui/bcs";
3
3
 
4
4
  //#region src/contracts/deepbook_predict_orders/queue_events.d.ts
5
5
  declare namespace queue_events_d_exports {
6
6
  export { CohortCommitted, DelayedExecutionPolicyUpdated, MarketPayoutsCompleted, OpenRecordPayoutSkipped, OpenRecordSettled, OrderEnqueued, QueuedOrderFilled, QueuedOrderRefunded, QueuedOrdersCleaned, RecordFundsClaimed, RecordFundsParked };
7
7
  }
8
8
  declare const OrderEnqueued: MoveStruct<{
9
- expiry_market_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
10
- record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
11
- account_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; /** An `order_queue` kind code. */
12
- kind: _mysten_sui_bcs613.BcsType<number, number, "u8">;
9
+ expiry_market_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
10
+ record_id: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
11
+ account_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; /** An `order_queue` kind code. */
12
+ kind: _mysten_sui_bcs617.BcsType<number, number, "u8">;
13
13
  request: MoveStruct<{
14
- lower_tick: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
15
- higher_tick: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
16
- quantity: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
17
- max_premium: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
18
- min_quantity: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
19
- max_cost: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
20
- max_probability: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
21
- min_probability: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
22
- min_proceeds: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
14
+ lower_tick: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
15
+ higher_tick: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
16
+ quantity: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
17
+ max_premium: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
18
+ min_quantity: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
19
+ max_cost: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
20
+ max_probability: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
21
+ min_probability: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
22
+ min_proceeds: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
23
23
  }, "@local-pkg/deepbook_predict_orders::order_queue::OrderRequest">; /** The position a sell moved into the record; zero for a mint. */
24
24
  position: MoveStruct<{
25
- order_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u256">;
26
- root_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u256">;
27
- opened_at_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
25
+ order_id: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u256">;
26
+ root_id: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u256">;
27
+ opened_at_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
28
28
  }, "@local-pkg/deepbook_predict_orders::order_queue::HeldPosition">;
29
29
  timing: MoveStruct<{
30
- placed_at_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
31
- earliest_price_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
32
- tau_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
33
- deadline_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
34
- cutoff_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
35
- pyth_channel: _mysten_sui_bcs613.BcsType<number, number, "u8">;
30
+ placed_at_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
31
+ earliest_price_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
32
+ tau_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
33
+ deadline_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
34
+ cutoff_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
35
+ pyth_channel: _mysten_sui_bcs617.BcsType<number, number, "u8">;
36
36
  }, "@local-pkg/deepbook_predict_orders::order_queue::OrderTiming">;
37
37
  vol: MoveStruct<{
38
- pyth_source_id: _mysten_sui_bcs613.BcsType<number, number, "u32">;
39
- bs_spot: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
40
- bs_forward: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
38
+ pyth_source_id: _mysten_sui_bcs617.BcsType<number, number, "u32">;
39
+ bs_spot: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
40
+ bs_forward: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
41
41
  svi_a: MoveStruct<{
42
- magnitude: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
43
- is_negative: _mysten_sui_bcs613.BcsType<boolean, boolean, "bool">;
42
+ magnitude: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
43
+ is_negative: _mysten_sui_bcs617.BcsType<boolean, boolean, "bool">;
44
44
  }, "fixed_math::i64::I64">;
45
- svi_b: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
45
+ svi_b: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
46
46
  svi_rho: MoveStruct<{
47
- magnitude: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
48
- is_negative: _mysten_sui_bcs613.BcsType<boolean, boolean, "bool">;
47
+ magnitude: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
48
+ is_negative: _mysten_sui_bcs617.BcsType<boolean, boolean, "bool">;
49
49
  }, "fixed_math::i64::I64">;
50
50
  svi_m: MoveStruct<{
51
- magnitude: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
52
- is_negative: _mysten_sui_bcs613.BcsType<boolean, boolean, "bool">;
51
+ magnitude: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
52
+ is_negative: _mysten_sui_bcs617.BcsType<boolean, boolean, "bool">;
53
53
  }, "fixed_math::i64::I64">;
54
- svi_sigma: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
55
- bs_spot_source_timestamp_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
56
- bs_forward_source_timestamp_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
57
- svi_source_timestamp_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
54
+ svi_sigma: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
55
+ bs_spot_source_timestamp_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
56
+ bs_forward_source_timestamp_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
57
+ svi_source_timestamp_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
58
58
  }, "deepbook_predict::pricing::VolSnapshot">;
59
- budget: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
60
- order_fee: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">; /** The order's worst-case cash need, added to the waiting total. */
61
- cash_need: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
62
- subsidy_bound: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
63
- builder_code_id: _mysten_sui_bcs613.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
64
- referrer_account_id: _mysten_sui_bcs613.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">; /** The Open record a sell took its position from. `none` for a mint. */
65
- source_record_id: _mysten_sui_bcs613.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">; /** The market's cash, required cash, and waiting cash need after the call. */
66
- market_cash: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
67
- required_cash: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
68
- waiting_cash_need: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
69
- onchain_timestamp_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
59
+ budget: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
60
+ order_fee: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">; /** The order's worst-case cash need, added to the waiting total. */
61
+ cash_need: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
62
+ subsidy_bound: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
63
+ builder_code_id: _mysten_sui_bcs617.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">;
64
+ referrer_account_id: _mysten_sui_bcs617.BcsType<string | null, string | Uint8Array<ArrayBufferLike> | null | undefined, "Option<bytes[32]>">; /** The Open record a sell took its position from. `none` for a mint. */
65
+ source_record_id: _mysten_sui_bcs617.BcsType<bigint | null, string | number | bigint | null | undefined, "Option<u64>">; /** The market's cash, required cash, and waiting cash need after the call. */
66
+ market_cash: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
67
+ required_cash: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
68
+ waiting_cash_need: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
69
+ onchain_timestamp_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
70
70
  }, "@local-pkg/deepbook_predict_orders::queue_events::OrderEnqueued">;
71
71
  declare const CohortCommitted: MoveStruct<{
72
- expiry_market_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
73
- tau_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">; /** The update's envelope in ms: τ, or the backup tick one channel tick later. */
74
- tick_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
75
- first_record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
76
- last_record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">; /** The committed price of the cohort's first order, normalized to 1e9. */
77
- spot: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">; /** That price's own update time, in µs. */
78
- generation_us: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
79
- pyth_source_id: _mysten_sui_bcs613.BcsType<number, number, "u32">;
80
- pyth_channel: _mysten_sui_bcs613.BcsType<number, number, "u8">; /** The transaction sender, so monitoring sees commits by third parties. */
81
- sender: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
82
- onchain_timestamp_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
72
+ expiry_market_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
73
+ tau_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">; /** The update's envelope in ms: τ, or the backup tick one channel tick later. */
74
+ tick_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
75
+ first_record_id: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
76
+ last_record_id: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">; /** The committed price of the cohort's first order, normalized to 1e9. */
77
+ spot: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">; /** That price's own update time, in µs. */
78
+ generation_us: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
79
+ pyth_source_id: _mysten_sui_bcs617.BcsType<number, number, "u32">;
80
+ pyth_channel: _mysten_sui_bcs617.BcsType<number, number, "u8">; /** The transaction sender, so monitoring sees commits by third parties. */
81
+ sender: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
82
+ onchain_timestamp_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
83
83
  }, "@local-pkg/deepbook_predict_orders::queue_events::CohortCommitted">;
84
84
  declare const QueuedOrderFilled: MoveStruct<{
85
- /** The market's cash, required cash, and waiting cash need after the call. */market_cash: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
86
- required_cash: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
87
- waiting_cash_need: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
88
- expiry_market_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
89
- record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
90
- account_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
91
- kind: _mysten_sui_bcs613.BcsType<number, number, "u8">; /** Filled quantity (mint) or closed quantity (sell). */
92
- quantity: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">; /** Cost paid (mint) or proceeds (sell). */
93
- amount: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
94
- trading_fee: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
95
- builder_fee: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
96
- referral_fee: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
97
- order_fee: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">; /** Reserved fee subsidy the fill used. */
98
- subsidy_used: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
99
- inventory_impact: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
100
- tau_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
101
- tick_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
85
+ /** The market's cash, required cash, and waiting cash need after the call. */market_cash: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
86
+ required_cash: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
87
+ waiting_cash_need: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
88
+ expiry_market_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
89
+ record_id: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
90
+ account_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
91
+ kind: _mysten_sui_bcs617.BcsType<number, number, "u8">; /** Filled quantity (mint) or closed quantity (sell). */
92
+ quantity: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">; /** Cost paid (mint) or proceeds (sell). */
93
+ amount: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
94
+ trading_fee: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
95
+ builder_fee: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
96
+ referral_fee: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
97
+ order_fee: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">; /** Reserved fee subsidy the fill used. */
98
+ subsidy_used: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
99
+ inventory_impact: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
100
+ tau_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
101
+ tick_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
102
102
  /**
103
103
  * The position the record now holds: a mint's new position or a partial sell's
104
104
  * replacement; zero after a full close.
105
105
  */
106
106
  position: MoveStruct<{
107
- order_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u256">;
108
- root_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u256">;
109
- opened_at_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
107
+ order_id: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u256">;
108
+ root_id: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u256">;
109
+ opened_at_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
110
110
  }, "@local-pkg/deepbook_predict_orders::order_queue::HeldPosition">;
111
- sender: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
112
- onchain_timestamp_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
111
+ sender: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
112
+ onchain_timestamp_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
113
113
  }, "@local-pkg/deepbook_predict_orders::queue_events::QueuedOrderFilled">;
114
114
  declare const QueuedOrderRefunded: MoveStruct<{
115
- /** The market's cash, required cash, and waiting cash need after the call. */market_cash: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
116
- required_cash: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
117
- waiting_cash_need: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
118
- expiry_market_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
119
- record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
120
- account_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
121
- kind: _mysten_sui_bcs613.BcsType<number, number, "u8">; /** An `order_queue` reason code. */
122
- reason: _mysten_sui_bcs613.BcsType<number, number, "u8">;
123
- escrow_returned: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
124
- order_fee_returned: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
125
- subsidy_returned: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">; /** True when a sell's record went back to Open holding its position. */
126
- position_returned: _mysten_sui_bcs613.BcsType<boolean, boolean, "bool">;
127
- sender: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
128
- onchain_timestamp_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
115
+ /** The market's cash, required cash, and waiting cash need after the call. */market_cash: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
116
+ required_cash: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
117
+ waiting_cash_need: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
118
+ expiry_market_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
119
+ record_id: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
120
+ account_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
121
+ kind: _mysten_sui_bcs617.BcsType<number, number, "u8">; /** An `order_queue` reason code. */
122
+ reason: _mysten_sui_bcs617.BcsType<number, number, "u8">;
123
+ escrow_returned: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
124
+ order_fee_returned: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
125
+ subsidy_returned: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">; /** True when a sell's record went back to Open holding its position. */
126
+ position_returned: _mysten_sui_bcs617.BcsType<boolean, boolean, "bool">;
127
+ sender: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
128
+ onchain_timestamp_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
129
129
  }, "@local-pkg/deepbook_predict_orders::queue_events::QueuedOrderRefunded">;
130
130
  declare const QueuedOrdersCleaned: MoveStruct<{
131
- expiry_market_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
132
- record_ids: _mysten_sui_bcs613.BcsType<bigint[], Iterable<string | number | bigint> & {
131
+ expiry_market_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
132
+ record_ids: _mysten_sui_bcs617.BcsType<bigint[], Iterable<string | number | bigint> & {
133
133
  length: number;
134
134
  }, string>;
135
- onchain_timestamp_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
135
+ onchain_timestamp_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
136
136
  }, "@local-pkg/deepbook_predict_orders::queue_events::QueuedOrdersCleaned">;
137
137
  declare const OpenRecordSettled: MoveStruct<{
138
- expiry_market_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
139
- record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
140
- account_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
141
- order_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u256">;
142
- payout: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
143
- onchain_timestamp_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
138
+ expiry_market_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
139
+ record_id: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
140
+ account_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
141
+ order_id: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u256">;
142
+ payout: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
143
+ onchain_timestamp_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
144
144
  }, "@local-pkg/deepbook_predict_orders::queue_events::OpenRecordSettled">;
145
145
  declare const OpenRecordPayoutSkipped: MoveStruct<{
146
- expiry_market_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
147
- record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
148
- account_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
149
- order_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u256">;
150
- payout: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
151
- onchain_timestamp_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
146
+ expiry_market_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
147
+ record_id: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
148
+ account_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
149
+ order_id: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u256">;
150
+ payout: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
151
+ onchain_timestamp_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
152
152
  }, "@local-pkg/deepbook_predict_orders::queue_events::OpenRecordPayoutSkipped">;
153
153
  declare const RecordFundsParked: MoveStruct<{
154
- expiry_market_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
155
- record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
156
- account_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
157
- receive_address: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
158
- amount: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
159
- onchain_timestamp_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
154
+ expiry_market_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
155
+ record_id: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
156
+ account_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
157
+ receive_address: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
158
+ amount: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
159
+ onchain_timestamp_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
160
160
  }, "@local-pkg/deepbook_predict_orders::queue_events::RecordFundsParked">;
161
161
  declare const RecordFundsClaimed: MoveStruct<{
162
- expiry_market_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
163
- record_id: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
164
- account_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
165
- receive_address: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
166
- amount: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
167
- onchain_timestamp_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
162
+ expiry_market_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
163
+ record_id: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
164
+ account_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
165
+ receive_address: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
166
+ amount: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
167
+ onchain_timestamp_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
168
168
  }, "@local-pkg/deepbook_predict_orders::queue_events::RecordFundsClaimed">;
169
169
  declare const MarketPayoutsCompleted: MoveStruct<{
170
- expiry_market_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
171
- onchain_timestamp_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
170
+ expiry_market_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
171
+ onchain_timestamp_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
172
172
  }, "@local-pkg/deepbook_predict_orders::queue_events::MarketPayoutsCompleted">;
173
173
  declare const DelayedExecutionPolicyUpdated: MoveStruct<{
174
- desk_id: _mysten_sui_bcs613.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
174
+ desk_id: _mysten_sui_bcs617.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
175
175
  policy: MoveStruct<{
176
- delay_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
177
- stall_timeout_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
178
- stuck_threshold_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
179
- gap_wait_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
180
- pyth_price_buffer_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
181
- pyth_channel: _mysten_sui_bcs613.BcsType<number, number, "u8">;
182
- svi_max_age_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
183
- mint_capacity: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
184
- sell_capacity: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
185
- per_account_cap: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
186
- order_fee: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
187
- min_sell_quantity: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
188
- settle_refund_batch: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
189
- settle_payout_batch: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
176
+ delay_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
177
+ stall_timeout_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
178
+ stuck_threshold_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
179
+ gap_wait_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
180
+ pyth_price_buffer_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
181
+ pyth_channel: _mysten_sui_bcs617.BcsType<number, number, "u8">;
182
+ svi_max_age_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
183
+ mint_capacity: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
184
+ sell_capacity: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
185
+ per_account_cap: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
186
+ order_fee: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
187
+ min_sell_quantity: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
188
+ settle_refund_batch: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
189
+ settle_payout_batch: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
190
190
  }, "@local-pkg/deepbook_predict_orders::delayed_execution_config::DelayedExecutionPolicy">;
191
- onchain_timestamp_ms: _mysten_sui_bcs613.BcsType<bigint, string | number | bigint, "u64">;
191
+ onchain_timestamp_ms: _mysten_sui_bcs617.BcsType<bigint, string | number | bigint, "u64">;
192
192
  }, "@local-pkg/deepbook_predict_orders::queue_events::DelayedExecutionPolicyUpdated">;
193
193
  //#endregion
194
194
  export { OrderEnqueued, queue_events_d_exports };
@@ -1,6 +1,6 @@
1
1
  import { ConfigValue, MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs757 from "@mysten/sui/bcs";
3
- import * as _mysten_sui_transactions356 from "@mysten/sui/transactions";
2
+ import * as _mysten_sui_bcs761 from "@mysten/sui/bcs";
3
+ import * as _mysten_sui_transactions359 from "@mysten/sui/transactions";
4
4
  import { Transaction } from "@mysten/sui/transactions";
5
5
 
6
6
  //#region src/contracts/deepbook_sessions/session_config.d.ts
@@ -8,11 +8,11 @@ declare namespace session_config_d_exports {
8
8
  export { BumpVersionWatermarkArguments, BumpVersionWatermarkOptions, IdArguments, IdOptions, SessionsAdminCap, SessionsConfig, VersionWatermarkArguments, VersionWatermarkOptions, bumpVersionWatermark, id, versionWatermark };
9
9
  }
10
10
  declare const SessionsConfig: MoveStruct<{
11
- id: _mysten_sui_bcs757.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
12
- version_watermark: _mysten_sui_bcs757.BcsType<bigint, string | number | bigint, "u64">;
11
+ id: _mysten_sui_bcs761.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
12
+ version_watermark: _mysten_sui_bcs761.BcsType<bigint, string | number | bigint, "u64">;
13
13
  }, "@local-pkg/deepbook_sessions::session_config::SessionsConfig">;
14
14
  declare const SessionsAdminCap: MoveStruct<{
15
- id: _mysten_sui_bcs757.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
15
+ id: _mysten_sui_bcs761.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
16
16
  }, "@local-pkg/deepbook_sessions::session_config::SessionsAdminCap">;
17
17
  interface IdArguments {
18
18
  config?: RawTransactionArgument<string>;
@@ -26,7 +26,7 @@ interface IdOptions {
26
26
  };
27
27
  }
28
28
  /** Return the config object ID for external PTB construction. */
29
- declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions356.TransactionResult;
29
+ declare function id(options: IdOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
30
30
  interface VersionWatermarkArguments {
31
31
  config?: RawTransactionArgument<string>;
32
32
  }
@@ -39,7 +39,7 @@ interface VersionWatermarkOptions {
39
39
  };
40
40
  }
41
41
  /** Return the minimum Sessions package version accepted by gated entrypoints. */
42
- declare function versionWatermark(options: VersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions356.TransactionResult;
42
+ declare function versionWatermark(options: VersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
43
43
  interface BumpVersionWatermarkArguments {
44
44
  config?: RawTransactionArgument<string>;
45
45
  AdminCap: RawTransactionArgument<string>;
@@ -57,7 +57,7 @@ interface BumpVersionWatermarkOptions {
57
57
  * so an upgraded package can retire older versions, and it cannot accept a
58
58
  * caller-selected target.
59
59
  */
60
- declare function bumpVersionWatermark(options: BumpVersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions356.TransactionResult;
60
+ declare function bumpVersionWatermark(options: BumpVersionWatermarkOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
61
61
  //#endregion
62
62
  export { session_config_d_exports };
63
63
  //# sourceMappingURL=session_config.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { ConfigValue, MoveStruct, RawTransactionArgument } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs760 from "@mysten/sui/bcs";
3
- import * as _mysten_sui_transactions359 from "@mysten/sui/transactions";
2
+ import * as _mysten_sui_bcs764 from "@mysten/sui/bcs";
3
+ import * as _mysten_sui_transactions362 from "@mysten/sui/transactions";
4
4
  import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
5
5
 
6
6
  //#region src/contracts/deepbook_sessions/sessions.d.ts
@@ -8,11 +8,11 @@ declare namespace sessions_d_exports {
8
8
  export { AuthorizeSessionArguments, AuthorizeSessionOptions, CancelLiveOrderArguments, CancelLiveOrderOptions, CancelLiveOrdersArguments, CancelLiveOrdersOptions, EnqueueExactAmountArguments, EnqueueExactAmountOptions, EnqueueExactCostArguments, EnqueueExactCostOptions, EnqueueExactQuantityArguments, EnqueueExactQuantityOptions, EnqueueRedeemOpenArguments, EnqueueRedeemOpenOptions, MintExactAmountArguments, MintExactAmountOptions, MintExactCostArguments, MintExactCostOptions, MintExactQuantityArguments, MintExactQuantityOptions, PlaceLimitOrderArguments, PlaceLimitOrderOptions, PlaceMarketOrderArguments, PlaceMarketOrderOptions, RedeemLiveArguments, RedeemLiveOptions, RedeemSettledArguments, RedeemSettledOptions, RevokeSessionArguments, RevokeSessionOptions, SessionAuthorized, SessionExpirationMsArguments, SessionExpirationMsOptions, SessionRevoked, SessionsApp, SessionsData, WithdrawSettledAmountsArguments, WithdrawSettledAmountsOptions, authorizeSession, cancelLiveOrder, cancelLiveOrders, enqueueExactAmount, enqueueExactCost, enqueueExactQuantity, enqueueRedeemOpen, mintExactAmount, mintExactCost, mintExactQuantity, placeLimitOrder, placeMarketOrder, redeemLive, redeemSettled, revokeSession, sessionExpirationMs, withdrawSettledAmounts };
9
9
  }
10
10
  declare const SessionsApp: MoveStruct<{
11
- dummy_field: _mysten_sui_bcs760.BcsType<boolean, boolean, "bool">;
11
+ dummy_field: _mysten_sui_bcs764.BcsType<boolean, boolean, "bool">;
12
12
  }, "@local-pkg/deepbook_sessions::sessions::SessionsApp">;
13
13
  declare const SessionsData: MoveStruct<{
14
14
  sessions: MoveStruct<{
15
- contents: _mysten_sui_bcs760.BcsType<{
15
+ contents: _mysten_sui_bcs764.BcsType<{
16
16
  key: string;
17
17
  value: bigint;
18
18
  }[], Iterable<{
@@ -24,14 +24,14 @@ declare const SessionsData: MoveStruct<{
24
24
  }, "0x2::vec_map::VecMap<bytes[32], u64>">;
25
25
  }, "@local-pkg/deepbook_sessions::sessions::SessionsData">;
26
26
  declare const SessionAuthorized: MoveStruct<{
27
- account_id: _mysten_sui_bcs760.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
28
- session: _mysten_sui_bcs760.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
29
- expires_at_ms: _mysten_sui_bcs760.BcsType<bigint, string | number | bigint, "u64">;
27
+ account_id: _mysten_sui_bcs764.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
28
+ session: _mysten_sui_bcs764.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
29
+ expires_at_ms: _mysten_sui_bcs764.BcsType<bigint, string | number | bigint, "u64">;
30
30
  }, "@local-pkg/deepbook_sessions::sessions::SessionAuthorized">;
31
31
  declare const SessionRevoked: MoveStruct<{
32
- account_id: _mysten_sui_bcs760.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
33
- session: _mysten_sui_bcs760.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
34
- expires_at_ms: _mysten_sui_bcs760.BcsType<bigint, string | number | bigint, "u64">;
32
+ account_id: _mysten_sui_bcs764.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
33
+ session: _mysten_sui_bcs764.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
34
+ expires_at_ms: _mysten_sui_bcs764.BcsType<bigint, string | number | bigint, "u64">;
35
35
  }, "@local-pkg/deepbook_sessions::sessions::SessionRevoked">;
36
36
  interface SessionExpirationMsArguments {
37
37
  wrapper: RawTransactionArgument<string>;
@@ -45,7 +45,7 @@ interface SessionExpirationMsOptions {
45
45
  };
46
46
  }
47
47
  /** Return a known session's expiration timestamp for SDK and devInspect reads. */
48
- declare function sessionExpirationMs(options: SessionExpirationMsOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
48
+ declare function sessionExpirationMs(options: SessionExpirationMsOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
49
49
  interface AuthorizeSessionArguments {
50
50
  wrapper: RawTransactionArgument<string>;
51
51
  sessionsConfig?: RawTransactionArgument<string>;
@@ -64,7 +64,7 @@ interface AuthorizeSessionOptions {
64
64
  * Authorize `session` from execution time for at most 30 days. Accounts may store
65
65
  * at most 20 addresses; reauthorization replaces in place.
66
66
  */
67
- declare function authorizeSession(options: AuthorizeSessionOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
67
+ declare function authorizeSession(options: AuthorizeSessionOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
68
68
  interface RevokeSessionArguments {
69
69
  wrapper: RawTransactionArgument<string>;
70
70
  session: RawTransactionArgument<string>;
@@ -80,7 +80,7 @@ interface RevokeSessionOptions {
80
80
  * Revoke `session` if it is present. Only the Account owner may call this
81
81
  * function.
82
82
  */
83
- declare function revokeSession(options: RevokeSessionOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
83
+ declare function revokeSession(options: RevokeSessionOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
84
84
  interface PlaceLimitOrderArguments {
85
85
  pool: RawTransactionArgument<string>;
86
86
  deepbookRegistry: RawTransactionArgument<string>;
@@ -106,7 +106,7 @@ interface PlaceLimitOrderOptions {
106
106
  typeArguments: [string, string];
107
107
  }
108
108
  /** Place a DeepBook spot limit order for an Account with an active session. */
109
- declare function placeLimitOrder(options: PlaceLimitOrderOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
109
+ declare function placeLimitOrder(options: PlaceLimitOrderOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
110
110
  interface PlaceMarketOrderArguments {
111
111
  pool: RawTransactionArgument<string>;
112
112
  deepbookRegistry: RawTransactionArgument<string>;
@@ -130,7 +130,7 @@ interface PlaceMarketOrderOptions {
130
130
  typeArguments: [string, string];
131
131
  }
132
132
  /** Place a DeepBook spot market order for an Account with an active session. */
133
- declare function placeMarketOrder(options: PlaceMarketOrderOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
133
+ declare function placeMarketOrder(options: PlaceMarketOrderOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
134
134
  interface CancelLiveOrderArguments {
135
135
  pool: RawTransactionArgument<string>;
136
136
  accountRegistry: RawTransactionArgument<string>;
@@ -148,7 +148,7 @@ interface CancelLiveOrderOptions {
148
148
  typeArguments: [string, string];
149
149
  }
150
150
  /** Cancel a DeepBook spot order for an Account with an active session. */
151
- declare function cancelLiveOrder(options: CancelLiveOrderOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
151
+ declare function cancelLiveOrder(options: CancelLiveOrderOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
152
152
  interface CancelLiveOrdersArguments {
153
153
  pool: RawTransactionArgument<string>;
154
154
  accountRegistry: RawTransactionArgument<string>;
@@ -166,7 +166,7 @@ interface CancelLiveOrdersOptions {
166
166
  typeArguments: [string, string];
167
167
  }
168
168
  /** Cancel multiple DeepBook spot orders for an Account with an active session. */
169
- declare function cancelLiveOrders(options: CancelLiveOrdersOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
169
+ declare function cancelLiveOrders(options: CancelLiveOrdersOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
170
170
  interface WithdrawSettledAmountsArguments {
171
171
  pool: RawTransactionArgument<string>;
172
172
  accountRegistry: RawTransactionArgument<string>;
@@ -183,7 +183,7 @@ interface WithdrawSettledAmountsOptions {
183
183
  typeArguments: [string, string];
184
184
  }
185
185
  /** Sweep settled DeepBook spot proceeds into an Account with an active session. */
186
- declare function withdrawSettledAmounts(options: WithdrawSettledAmountsOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
186
+ declare function withdrawSettledAmounts(options: WithdrawSettledAmountsOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
187
187
  interface MintExactQuantityArguments {
188
188
  market: RawTransactionArgument<string>;
189
189
  accountRegistry: RawTransactionArgument<string>;
@@ -210,7 +210,7 @@ interface MintExactQuantityOptions {
210
210
  * Always aborts through Predict, whose immediate mints are retired; use
211
211
  * `enqueue_exact_quantity`.
212
212
  */
213
- declare function mintExactQuantity(options: MintExactQuantityOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
213
+ declare function mintExactQuantity(options: MintExactQuantityOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
214
214
  interface MintExactAmountArguments {
215
215
  market: RawTransactionArgument<string>;
216
216
  accountRegistry: RawTransactionArgument<string>;
@@ -237,7 +237,7 @@ interface MintExactAmountOptions {
237
237
  * Always aborts through Predict, whose immediate mints are retired; use
238
238
  * `enqueue_exact_amount`.
239
239
  */
240
- declare function mintExactAmount(options: MintExactAmountOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
240
+ declare function mintExactAmount(options: MintExactAmountOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
241
241
  interface MintExactCostArguments {
242
242
  market: RawTransactionArgument<string>;
243
243
  accountRegistry: RawTransactionArgument<string>;
@@ -263,7 +263,7 @@ interface MintExactCostOptions {
263
263
  * session. Always aborts through Predict, whose immediate mints are retired; use
264
264
  * `enqueue_exact_cost`.
265
265
  */
266
- declare function mintExactCost(options: MintExactCostOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
266
+ declare function mintExactCost(options: MintExactCostOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
267
267
  interface RedeemLiveArguments {
268
268
  market: RawTransactionArgument<string>;
269
269
  accountRegistry: RawTransactionArgument<string>;
@@ -289,7 +289,7 @@ interface RedeemLiveOptions {
289
289
  * through Predict, whose live redeem is retired. Early sells of queued positions
290
290
  * go through `enqueue_redeem_open`.
291
291
  */
292
- declare function redeemLive(options: RedeemLiveOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
292
+ declare function redeemLive(options: RedeemLiveOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
293
293
  interface RedeemSettledArguments {
294
294
  market: RawTransactionArgument<string>;
295
295
  accountRegistry: RawTransactionArgument<string>;
@@ -307,7 +307,7 @@ interface RedeemSettledOptions {
307
307
  };
308
308
  }
309
309
  /** Redeem a settled Predict order for an Account with an active session. */
310
- declare function redeemSettled(options: RedeemSettledOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
310
+ declare function redeemSettled(options: RedeemSettledOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
311
311
  interface EnqueueExactQuantityArguments {
312
312
  queue: RawTransactionArgument<string>;
313
313
  market: RawTransactionArgument<string>;
@@ -338,7 +338,7 @@ interface EnqueueExactQuantityOptions {
338
338
  * Queue an exact-quantity Predict mint in `market`'s order-flow queue for an
339
339
  * Account with an active session. Returns the queue record ID.
340
340
  */
341
- declare function enqueueExactQuantity(options: EnqueueExactQuantityOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
341
+ declare function enqueueExactQuantity(options: EnqueueExactQuantityOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
342
342
  interface EnqueueExactAmountArguments {
343
343
  queue: RawTransactionArgument<string>;
344
344
  market: RawTransactionArgument<string>;
@@ -369,7 +369,7 @@ interface EnqueueExactAmountOptions {
369
369
  * Queue a premium-budget Predict mint in `market`'s order-flow queue for an
370
370
  * Account with an active session. Returns the queue record ID.
371
371
  */
372
- declare function enqueueExactAmount(options: EnqueueExactAmountOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
372
+ declare function enqueueExactAmount(options: EnqueueExactAmountOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
373
373
  interface EnqueueExactCostArguments {
374
374
  queue: RawTransactionArgument<string>;
375
375
  market: RawTransactionArgument<string>;
@@ -399,7 +399,7 @@ interface EnqueueExactCostOptions {
399
399
  * Queue an all-in-budget Predict mint in `market`'s order-flow queue for an
400
400
  * Account with an active session. Returns the queue record ID.
401
401
  */
402
- declare function enqueueExactCost(options: EnqueueExactCostOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
402
+ declare function enqueueExactCost(options: EnqueueExactCostOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
403
403
  interface EnqueueRedeemOpenArguments {
404
404
  queue: RawTransactionArgument<string>;
405
405
  market: RawTransactionArgument<string>;
@@ -429,7 +429,7 @@ interface EnqueueRedeemOpenOptions {
429
429
  * Queue an early sell of an Open order-flow queue record for an Account with an
430
430
  * active session. Returns the new queue record ID.
431
431
  */
432
- declare function enqueueRedeemOpen(options: EnqueueRedeemOpenOptions): (tx: Transaction) => _mysten_sui_transactions359.TransactionResult;
432
+ declare function enqueueRedeemOpen(options: EnqueueRedeemOpenOptions): (tx: Transaction) => _mysten_sui_transactions362.TransactionResult;
433
433
  //#endregion
434
434
  export { SessionAuthorized, SessionRevoked, SessionsApp, SessionsData, sessions_d_exports };
435
435
  //# sourceMappingURL=sessions.d.mts.map