@typus/typus-perp-sdk 1.2.2 → 1.3.1

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 (71) hide show
  1. package/dist/src/client.d.ts +22 -3
  2. package/dist/src/client.js +66 -8
  3. package/dist/src/fetch.d.ts +61 -17
  4. package/dist/src/fetch.js +20 -14
  5. package/dist/src/generated/typus_perp/admin.d.ts +65 -21
  6. package/dist/src/generated/typus_perp/admin.js +139 -123
  7. package/dist/src/generated/typus_perp/competition.d.ts +5 -17
  8. package/dist/src/generated/typus_perp/competition.js +63 -39
  9. package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +9 -9
  10. package/dist/src/generated/typus_perp/deps/std/type_name.js +13 -16
  11. package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +2 -2
  12. package/dist/src/generated/typus_perp/deps/sui/balance.js +5 -8
  13. package/dist/src/generated/typus_perp/deps/sui/object.d.ts +8 -0
  14. package/dist/src/generated/typus_perp/deps/sui/object.js +13 -0
  15. package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +5 -3
  16. package/dist/src/generated/typus_perp/deps/sui/object_table.js +40 -9
  17. package/dist/src/generated/typus_perp/deps/sui/table.d.ts +5 -3
  18. package/dist/src/generated/typus_perp/deps/sui/table.js +40 -9
  19. package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +5 -3
  20. package/dist/src/generated/typus_perp/deps/sui/vec_set.js +5 -8
  21. package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +4 -2
  22. package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +9 -12
  23. package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +12 -6
  24. package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +41 -10
  25. package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +4 -2
  26. package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +40 -9
  27. package/dist/src/generated/typus_perp/error.d.ts +201 -94
  28. package/dist/src/generated/typus_perp/error.js +300 -273
  29. package/dist/src/generated/typus_perp/escrow.d.ts +14 -6
  30. package/dist/src/generated/typus_perp/escrow.js +38 -37
  31. package/dist/src/generated/typus_perp/lending.d.ts +1 -1
  32. package/dist/src/generated/typus_perp/lending.js +3 -3
  33. package/dist/src/generated/typus_perp/lp_pool.d.ts +438 -392
  34. package/dist/src/generated/typus_perp/lp_pool.js +987 -934
  35. package/dist/src/generated/typus_perp/math.d.ts +13 -16
  36. package/dist/src/generated/typus_perp/math.js +51 -50
  37. package/dist/src/generated/typus_perp/position.d.ts +194 -104
  38. package/dist/src/generated/typus_perp/position.js +714 -731
  39. package/dist/src/generated/typus_perp/profit_vault.d.ts +62 -20
  40. package/dist/src/generated/typus_perp/profit_vault.js +162 -148
  41. package/dist/src/generated/typus_perp/symbol.d.ts +12 -5
  42. package/dist/src/generated/typus_perp/symbol.js +28 -25
  43. package/dist/src/generated/typus_perp/trading.d.ts +955 -133
  44. package/dist/src/generated/typus_perp/trading.js +1575 -1146
  45. package/dist/src/generated/typus_perp/treasury_caps.d.ts +16 -7
  46. package/dist/src/generated/typus_perp/treasury_caps.js +60 -24
  47. package/dist/src/generated/typus_perp/user_account.d.ts +40 -0
  48. package/dist/src/generated/typus_perp/user_account.js +66 -0
  49. package/dist/src/generated/typus_stake_pool/admin.d.ts +144 -10
  50. package/dist/src/generated/typus_stake_pool/admin.js +132 -49
  51. package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +9 -9
  52. package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +13 -16
  53. package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +8 -0
  54. package/dist/src/generated/typus_stake_pool/deps/sui/object.js +13 -0
  55. package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +36 -0
  56. package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +31 -0
  57. package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +5 -3
  58. package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +5 -8
  59. package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +180 -79
  60. package/dist/src/generated/typus_stake_pool/stake_pool.js +446 -414
  61. package/dist/src/generated/utils/index.d.ts +4 -23
  62. package/dist/src/generated/utils/index.js +34 -54
  63. package/dist/src/index.d.ts +5 -0
  64. package/dist/src/index.js +35 -13
  65. package/dist/src/user/order.d.ts +0 -4
  66. package/dist/src/user/order.js +31 -74
  67. package/dist/src/user/orderWithBidReceipt.d.ts +0 -3
  68. package/dist/src/user/orderWithBidReceipt.js +24 -45
  69. package/dist/src/user/tlp.d.ts +0 -5
  70. package/dist/src/user/tlp.js +28 -73
  71. package/package.json +47 -40
@@ -1,20 +1,28 @@
1
1
  /**************************************************************
2
2
  * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
3
  **************************************************************/
4
- import { MoveStruct, type RawTransactionArgument } from "../utils/index.js";
5
- import { type Transaction } from "@mysten/sui/transactions";
4
+ import { MoveStruct, type RawTransactionArgument } from '../utils/index';
5
+ import { type Transaction } from '@mysten/sui/transactions';
6
6
  export declare const MarketRegistry: MoveStruct<{
7
- id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
7
+ id: MoveStruct<{
8
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
9
+ }, "0x2::object::UID">;
8
10
  /** The UID of the referral registry. */
9
- referral_registry: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
11
+ referral_registry: MoveStruct<{
12
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
13
+ }, "0x2::object::UID">;
10
14
  /** A linked object table of markets. */
11
15
  markets: MoveStruct<{
12
- id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
13
- vid: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
16
+ id: MoveStruct<{
17
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
18
+ }, "0x2::object::UID">;
19
+ vid: MoveStruct<{
20
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
21
+ }, "0x2::object::UID">;
14
22
  size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
15
23
  head: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
16
24
  tail: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
17
- }, "typus::linked_object_table::LinkedObjectTable<u64, phantom V>">;
25
+ }, "typus::linked_object_table::LinkedObjectTable<u64>">;
18
26
  /** The number of markets. */
19
27
  num_market: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
20
28
  /** Padding for future use. */
@@ -23,7 +31,9 @@ export declare const MarketRegistry: MoveStruct<{
23
31
  }, string>;
24
32
  }, "@typus/perp::trading::MarketRegistry">;
25
33
  export declare const Markets: MoveStruct<{
26
- id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
34
+ id: MoveStruct<{
35
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
36
+ }, "0x2::object::UID">;
27
37
  /** The index of the market. */
28
38
  index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
29
39
  /** The type name of the LP token. */
@@ -48,9 +58,11 @@ export declare const Markets: MoveStruct<{
48
58
  }, string>;
49
59
  /** An object table of the symbol markets. */
50
60
  symbol_markets: MoveStruct<{
51
- id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
61
+ id: MoveStruct<{
62
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
63
+ }, "0x2::object::UID">;
52
64
  size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
53
- }, "0x2::object_table::ObjectTable<phantom K, phantom V>">;
65
+ }, "0x2::object_table::ObjectTable">;
54
66
  /** Padding for future use. */
55
67
  u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
56
68
  length: number;
@@ -111,7 +123,7 @@ export declare const MarketConfig: MoveStruct<{
111
123
  funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
112
124
  /** The experience multiplier. */
113
125
  exp_multiplier: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
114
- /** The position cool-down threshold in milliseconds. */
126
+ /** The cool-down threshold in milliseconds. */
115
127
  cool_down_threshold_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
116
128
  /** Padding for future use. */
117
129
  u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
@@ -119,10 +131,14 @@ export declare const MarketConfig: MoveStruct<{
119
131
  }, string>;
120
132
  }, "@typus/perp::trading::MarketConfig">;
121
133
  export declare const SymbolMarket: MoveStruct<{
122
- id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
134
+ id: MoveStruct<{
135
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
136
+ }, "0x2::object::UID">;
123
137
  /** A keyed big vector of user positions. */
124
138
  user_positions: MoveStruct<{
125
- id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
139
+ id: MoveStruct<{
140
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
141
+ }, "0x2::object::UID">;
126
142
  key_type: MoveStruct<{
127
143
  name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
128
144
  }, "std::type_name::TypeName">;
@@ -134,9 +150,13 @@ export declare const SymbolMarket: MoveStruct<{
134
150
  length: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
135
151
  }, "typus::keyed_big_vector::KeyedBigVector">;
136
152
  /** The UID of the token collateral orders. */
137
- token_collateral_orders: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
153
+ token_collateral_orders: MoveStruct<{
154
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
155
+ }, "0x2::object::UID">;
138
156
  /** The UID of the option collateral orders. */
139
- option_collateral_orders: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
157
+ option_collateral_orders: MoveStruct<{
158
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
159
+ }, "0x2::object::UID">;
140
160
  /** Information about the market. */
141
161
  market_info: MoveStruct<{
142
162
  /** Whether the market is active. */
@@ -194,7 +214,7 @@ export declare const SymbolMarket: MoveStruct<{
194
214
  funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
195
215
  /** The experience multiplier. */
196
216
  exp_multiplier: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
197
- /** The position cool-down threshold in milliseconds. */
217
+ /** The cool-down threshold in milliseconds. */
198
218
  cool_down_threshold_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
199
219
  /** Padding for future use. */
200
220
  u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
@@ -205,6 +225,33 @@ export declare const SymbolMarket: MoveStruct<{
205
225
  export declare const USD: MoveStruct<{
206
226
  dummy_field: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
207
227
  }, "@typus/perp::trading::USD">;
228
+ export declare const Referrals: MoveStruct<{
229
+ id: MoveStruct<{
230
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
231
+ }, "0x2::object::UID">;
232
+ referral_infos: MoveStruct<{
233
+ id: MoveStruct<{
234
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
235
+ }, "0x2::object::UID">;
236
+ size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
237
+ }, "0x2::table::Table">;
238
+ referrals: MoveStruct<{
239
+ id: MoveStruct<{
240
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
241
+ }, "0x2::object::UID">;
242
+ size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
243
+ }, "0x2::table::Table">;
244
+ u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
245
+ length: number;
246
+ }, string>;
247
+ }, "@typus/perp::trading::Referrals">;
248
+ export declare const ReferralInfo: MoveStruct<{
249
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
250
+ fee_reduction_bp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
251
+ u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
252
+ length: number;
253
+ }, string>;
254
+ }, "@typus/perp::trading::ReferralInfo">;
208
255
  export declare const NewMarketsEvent: MoveStruct<{
209
256
  index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
210
257
  lp_token_type: MoveStruct<{
@@ -278,7 +325,7 @@ export declare const AddTradingSymbolEvent: MoveStruct<{
278
325
  funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
279
326
  /** The experience multiplier. */
280
327
  exp_multiplier: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
281
- /** The position cool-down threshold in milliseconds. */
328
+ /** The cool-down threshold in milliseconds. */
282
329
  cool_down_threshold_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
283
330
  /** Padding for future use. */
284
331
  u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
@@ -323,7 +370,7 @@ export declare const UpdateMarketConfigEvent: MoveStruct<{
323
370
  funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
324
371
  /** The experience multiplier. */
325
372
  exp_multiplier: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
326
- /** The position cool-down threshold in milliseconds. */
373
+ /** The cool-down threshold in milliseconds. */
327
374
  cool_down_threshold_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
328
375
  /** Padding for future use. */
329
376
  u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
@@ -351,7 +398,7 @@ export declare const UpdateMarketConfigEvent: MoveStruct<{
351
398
  funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
352
399
  /** The experience multiplier. */
353
400
  exp_multiplier: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
354
- /** The position cool-down threshold in milliseconds. */
401
+ /** The cool-down threshold in milliseconds. */
355
402
  cool_down_threshold_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
356
403
  /** Padding for future use. */
357
404
  u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
@@ -665,11 +712,89 @@ export declare const RealizeOptionPositionEvent: MoveStruct<{
665
712
  length: number;
666
713
  }, string>;
667
714
  }, "@typus/perp::trading::RealizeOptionPositionEvent">;
715
+ export declare const MigrateMarketOracleIdEvent: MoveStruct<{
716
+ sender: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
717
+ new_oracle_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
718
+ u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
719
+ length: number;
720
+ }, string>;
721
+ }, "@typus/perp::trading::MigrateMarketOracleIdEvent">;
668
722
  export interface InitOptions {
669
723
  package?: string;
670
- arguments?: [];
724
+ arguments?: [
725
+ ];
671
726
  }
672
727
  export declare function init(options?: InitOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
728
+ export interface InitReferralTableArguments {
729
+ version: RawTransactionArgument<string>;
730
+ registry: RawTransactionArgument<string>;
731
+ }
732
+ export interface InitReferralTableOptions {
733
+ package?: string;
734
+ arguments: InitReferralTableArguments | [
735
+ version: RawTransactionArgument<string>,
736
+ registry: RawTransactionArgument<string>
737
+ ];
738
+ }
739
+ export declare function initReferralTable(options: InitReferralTableOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
740
+ export interface AddReferralInfoArguments {
741
+ version: RawTransactionArgument<string>;
742
+ registry: RawTransactionArgument<string>;
743
+ code: RawTransactionArgument<string>;
744
+ feeReductionBp: RawTransactionArgument<number | bigint>;
745
+ }
746
+ export interface AddReferralInfoOptions {
747
+ package?: string;
748
+ arguments: AddReferralInfoArguments | [
749
+ version: RawTransactionArgument<string>,
750
+ registry: RawTransactionArgument<string>,
751
+ code: RawTransactionArgument<string>,
752
+ feeReductionBp: RawTransactionArgument<number | bigint>
753
+ ];
754
+ }
755
+ export declare function addReferralInfo(options: AddReferralInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
756
+ export interface RemoveReferralInfoArguments {
757
+ version: RawTransactionArgument<string>;
758
+ registry: RawTransactionArgument<string>;
759
+ code: RawTransactionArgument<string>;
760
+ }
761
+ export interface RemoveReferralInfoOptions {
762
+ package?: string;
763
+ arguments: RemoveReferralInfoArguments | [
764
+ version: RawTransactionArgument<string>,
765
+ registry: RawTransactionArgument<string>,
766
+ code: RawTransactionArgument<string>
767
+ ];
768
+ }
769
+ export declare function removeReferralInfo(options: RemoveReferralInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
770
+ export interface SetReferralArguments {
771
+ version: RawTransactionArgument<string>;
772
+ registry: RawTransactionArgument<string>;
773
+ code: RawTransactionArgument<string>;
774
+ }
775
+ export interface SetReferralOptions {
776
+ package?: string;
777
+ arguments: SetReferralArguments | [
778
+ version: RawTransactionArgument<string>,
779
+ registry: RawTransactionArgument<string>,
780
+ code: RawTransactionArgument<string>
781
+ ];
782
+ }
783
+ export declare function setReferral(options: SetReferralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
784
+ export interface UnsetReferralArguments {
785
+ version: RawTransactionArgument<string>;
786
+ registry: RawTransactionArgument<string>;
787
+ user: RawTransactionArgument<string>;
788
+ }
789
+ export interface UnsetReferralOptions {
790
+ package?: string;
791
+ arguments: UnsetReferralArguments | [
792
+ version: RawTransactionArgument<string>,
793
+ registry: RawTransactionArgument<string>,
794
+ user: RawTransactionArgument<string>
795
+ ];
796
+ }
797
+ export declare function unsetReferral(options: UnsetReferralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
673
798
  export interface NewMarketsArguments {
674
799
  version: RawTransactionArgument<string>;
675
800
  registry: RawTransactionArgument<string>;
@@ -682,7 +807,10 @@ export interface NewMarketsOptions {
682
807
  registry: RawTransactionArgument<string>,
683
808
  protocolFeeShareBp: RawTransactionArgument<number | bigint>
684
809
  ];
685
- typeArguments: [string, string];
810
+ typeArguments: [
811
+ string,
812
+ string
813
+ ];
686
814
  }
687
815
  /** [Authorized Function] Creates a new market. */
688
816
  export declare function newMarkets(options: NewMarketsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -700,7 +828,6 @@ export interface AddTradingSymbolArguments {
700
828
  basicFundingRate: RawTransactionArgument<number | bigint>;
701
829
  fundingIntervalTsMs: RawTransactionArgument<number | bigint>;
702
830
  expMultiplier: RawTransactionArgument<number | bigint>;
703
- coolDownThresholdTsMs: RawTransactionArgument<number | bigint>;
704
831
  maxBuyOpenInterest: RawTransactionArgument<number | bigint>;
705
832
  maxSellOpenInterest: RawTransactionArgument<number | bigint>;
706
833
  maintenanceMarginRateBp: RawTransactionArgument<number | bigint>;
@@ -725,7 +852,6 @@ export interface AddTradingSymbolOptions {
725
852
  basicFundingRate: RawTransactionArgument<number | bigint>,
726
853
  fundingIntervalTsMs: RawTransactionArgument<number | bigint>,
727
854
  expMultiplier: RawTransactionArgument<number | bigint>,
728
- coolDownThresholdTsMs: RawTransactionArgument<number | bigint>,
729
855
  maxBuyOpenInterest: RawTransactionArgument<number | bigint>,
730
856
  maxSellOpenInterest: RawTransactionArgument<number | bigint>,
731
857
  maintenanceMarginRateBp: RawTransactionArgument<number | bigint>,
@@ -734,10 +860,64 @@ export interface AddTradingSymbolOptions {
734
860
  tradingFeeFormulaVersion: RawTransactionArgument<number | bigint>,
735
861
  profitVaultFlag: RawTransactionArgument<number | bigint>
736
862
  ];
737
- typeArguments: [string];
863
+ typeArguments: [
864
+ string
865
+ ];
738
866
  }
739
- /** [Authorized Function] Adds a new trading symbol to a market. */
867
+ /** [DEPRECATED] Use `add_trading_symbol_v2` with `&OracleV2` instead. */
740
868
  export declare function addTradingSymbol(options: AddTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
869
+ export interface AddTradingSymbolV2Arguments {
870
+ version: RawTransactionArgument<string>;
871
+ registry: RawTransactionArgument<string>;
872
+ marketIndex: RawTransactionArgument<number | bigint>;
873
+ sizeDecimal: RawTransactionArgument<number | bigint>;
874
+ oracleV2: RawTransactionArgument<string>;
875
+ maxLeverageMbp: RawTransactionArgument<number | bigint>;
876
+ optionCollateralMaxLeverageMbp: RawTransactionArgument<number | bigint>;
877
+ minSize: RawTransactionArgument<number | bigint>;
878
+ lotSize: RawTransactionArgument<number | bigint>;
879
+ tradingFeeConfig: RawTransactionArgument<number | bigint[]>;
880
+ basicFundingRate: RawTransactionArgument<number | bigint>;
881
+ fundingIntervalTsMs: RawTransactionArgument<number | bigint>;
882
+ expMultiplier: RawTransactionArgument<number | bigint>;
883
+ maxBuyOpenInterest: RawTransactionArgument<number | bigint>;
884
+ maxSellOpenInterest: RawTransactionArgument<number | bigint>;
885
+ maintenanceMarginRateBp: RawTransactionArgument<number | bigint>;
886
+ optionMaintenanceMarginRateBp: RawTransactionArgument<number | bigint>;
887
+ optionTradingFeeConfig: RawTransactionArgument<number | bigint[]>;
888
+ tradingFeeFormulaVersion: RawTransactionArgument<number | bigint>;
889
+ profitVaultFlag: RawTransactionArgument<number | bigint>;
890
+ }
891
+ export interface AddTradingSymbolV2Options {
892
+ package?: string;
893
+ arguments: AddTradingSymbolV2Arguments | [
894
+ version: RawTransactionArgument<string>,
895
+ registry: RawTransactionArgument<string>,
896
+ marketIndex: RawTransactionArgument<number | bigint>,
897
+ sizeDecimal: RawTransactionArgument<number | bigint>,
898
+ oracleV2: RawTransactionArgument<string>,
899
+ maxLeverageMbp: RawTransactionArgument<number | bigint>,
900
+ optionCollateralMaxLeverageMbp: RawTransactionArgument<number | bigint>,
901
+ minSize: RawTransactionArgument<number | bigint>,
902
+ lotSize: RawTransactionArgument<number | bigint>,
903
+ tradingFeeConfig: RawTransactionArgument<number | bigint[]>,
904
+ basicFundingRate: RawTransactionArgument<number | bigint>,
905
+ fundingIntervalTsMs: RawTransactionArgument<number | bigint>,
906
+ expMultiplier: RawTransactionArgument<number | bigint>,
907
+ maxBuyOpenInterest: RawTransactionArgument<number | bigint>,
908
+ maxSellOpenInterest: RawTransactionArgument<number | bigint>,
909
+ maintenanceMarginRateBp: RawTransactionArgument<number | bigint>,
910
+ optionMaintenanceMarginRateBp: RawTransactionArgument<number | bigint>,
911
+ optionTradingFeeConfig: RawTransactionArgument<number | bigint[]>,
912
+ tradingFeeFormulaVersion: RawTransactionArgument<number | bigint>,
913
+ profitVaultFlag: RawTransactionArgument<number | bigint>
914
+ ];
915
+ typeArguments: [
916
+ string
917
+ ];
918
+ }
919
+ /** [Authorized Function] Adds a new trading symbol to a market. */
920
+ export declare function addTradingSymbolV2(options: AddTradingSymbolV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
741
921
  export interface UpdateProtocolFeeShareBpArguments {
742
922
  version: RawTransactionArgument<string>;
743
923
  registry: RawTransactionArgument<string>;
@@ -768,7 +948,6 @@ export interface UpdateMarketConfigArguments {
768
948
  basicFundingRate: RawTransactionArgument<number | bigint | null>;
769
949
  fundingIntervalTsMs: RawTransactionArgument<number | bigint | null>;
770
950
  expMultiplier: RawTransactionArgument<number | bigint | null>;
771
- coolDownThresholdTsMs: RawTransactionArgument<number | bigint | null>;
772
951
  maxBuyOpenInterest: RawTransactionArgument<number | bigint | null>;
773
952
  maxSellOpenInterest: RawTransactionArgument<number | bigint | null>;
774
953
  maintenanceMarginRateBp: RawTransactionArgument<number | bigint | null>;
@@ -792,7 +971,6 @@ export interface UpdateMarketConfigOptions {
792
971
  basicFundingRate: RawTransactionArgument<number | bigint | null>,
793
972
  fundingIntervalTsMs: RawTransactionArgument<number | bigint | null>,
794
973
  expMultiplier: RawTransactionArgument<number | bigint | null>,
795
- coolDownThresholdTsMs: RawTransactionArgument<number | bigint | null>,
796
974
  maxBuyOpenInterest: RawTransactionArgument<number | bigint | null>,
797
975
  maxSellOpenInterest: RawTransactionArgument<number | bigint | null>,
798
976
  maintenanceMarginRateBp: RawTransactionArgument<number | bigint | null>,
@@ -801,7 +979,9 @@ export interface UpdateMarketConfigOptions {
801
979
  tradingFeeFormulaVersion: RawTransactionArgument<number | bigint | null>,
802
980
  profitVaultFlag: RawTransactionArgument<number | bigint | null>
803
981
  ];
804
- typeArguments: [string];
982
+ typeArguments: [
983
+ string
984
+ ];
805
985
  }
806
986
  /** [Authorized Function] Updates the market configuration. */
807
987
  export declare function updateMarketConfig(options: UpdateMarketConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -847,7 +1027,9 @@ export interface SuspendTradingSymbolOptions {
847
1027
  registry: RawTransactionArgument<string>,
848
1028
  marketIndex: RawTransactionArgument<number | bigint>
849
1029
  ];
850
- typeArguments: [string];
1030
+ typeArguments: [
1031
+ string
1032
+ ];
851
1033
  }
852
1034
  /** [Authorized Function] Suspends a trading symbol. */
853
1035
  export declare function suspendTradingSymbol(options: SuspendTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -863,7 +1045,9 @@ export interface ResumeTradingSymbolOptions {
863
1045
  registry: RawTransactionArgument<string>,
864
1046
  marketIndex: RawTransactionArgument<number | bigint>
865
1047
  ];
866
- typeArguments: [string];
1048
+ typeArguments: [
1049
+ string
1050
+ ];
867
1051
  }
868
1052
  /** [Authorized Function] Resumes a trading symbol. */
869
1053
  export declare function resumeTradingSymbol(options: ResumeTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -879,7 +1063,9 @@ export interface RemoveTradingSymbolOptions {
879
1063
  registry: RawTransactionArgument<string>,
880
1064
  marketIndex: RawTransactionArgument<number | bigint>
881
1065
  ];
882
- typeArguments: [string];
1066
+ typeArguments: [
1067
+ string
1068
+ ];
883
1069
  }
884
1070
  /** [Authorized Function] Removes a trading symbol from a market. */
885
1071
  export declare function removeTradingSymbol(options: RemoveTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -917,10 +1103,52 @@ export interface CreateTradingOrderOptions {
917
1103
  size: RawTransactionArgument<number | bigint>,
918
1104
  triggerPrice: RawTransactionArgument<number | bigint>
919
1105
  ];
920
- typeArguments: [string, string];
1106
+ typeArguments: [
1107
+ string,
1108
+ string
1109
+ ];
921
1110
  }
922
- /** [User Function] Creates a new trading order. */
1111
+ /** [DEPRECATED] Use `create_trading_order_v2` with `&OracleV2` instead. */
923
1112
  export declare function createTradingOrder(options: CreateTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1113
+ export interface CreateTradingOrderV2Arguments {
1114
+ version: RawTransactionArgument<string>;
1115
+ registry: RawTransactionArgument<string>;
1116
+ poolRegistry: RawTransactionArgument<string>;
1117
+ oracleV2: RawTransactionArgument<string>;
1118
+ marketIndex: RawTransactionArgument<number | bigint>;
1119
+ poolIndex: RawTransactionArgument<number | bigint>;
1120
+ linkedPositionId: RawTransactionArgument<number | bigint | null>;
1121
+ collateral: RawTransactionArgument<string>;
1122
+ reduceOnly: RawTransactionArgument<boolean>;
1123
+ isLong: RawTransactionArgument<boolean>;
1124
+ isStopOrder: RawTransactionArgument<boolean>;
1125
+ size: RawTransactionArgument<number | bigint>;
1126
+ triggerPrice: RawTransactionArgument<number | bigint>;
1127
+ }
1128
+ export interface CreateTradingOrderV2Options {
1129
+ package?: string;
1130
+ arguments: CreateTradingOrderV2Arguments | [
1131
+ version: RawTransactionArgument<string>,
1132
+ registry: RawTransactionArgument<string>,
1133
+ poolRegistry: RawTransactionArgument<string>,
1134
+ oracleV2: RawTransactionArgument<string>,
1135
+ marketIndex: RawTransactionArgument<number | bigint>,
1136
+ poolIndex: RawTransactionArgument<number | bigint>,
1137
+ linkedPositionId: RawTransactionArgument<number | bigint | null>,
1138
+ collateral: RawTransactionArgument<string>,
1139
+ reduceOnly: RawTransactionArgument<boolean>,
1140
+ isLong: RawTransactionArgument<boolean>,
1141
+ isStopOrder: RawTransactionArgument<boolean>,
1142
+ size: RawTransactionArgument<number | bigint>,
1143
+ triggerPrice: RawTransactionArgument<number | bigint>
1144
+ ];
1145
+ typeArguments: [
1146
+ string,
1147
+ string
1148
+ ];
1149
+ }
1150
+ /** [User Function] Creates a new trading order. */
1151
+ export declare function createTradingOrderV2(options: CreateTradingOrderV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
924
1152
  export interface CancelTradingOrderArguments {
925
1153
  version: RawTransactionArgument<string>;
926
1154
  registry: RawTransactionArgument<string>;
@@ -939,7 +1167,10 @@ export interface CancelTradingOrderOptions {
939
1167
  triggerPrice: RawTransactionArgument<number | bigint>,
940
1168
  orderUser: RawTransactionArgument<string | null>
941
1169
  ];
942
- typeArguments: [string, string];
1170
+ typeArguments: [
1171
+ string,
1172
+ string
1173
+ ];
943
1174
  }
944
1175
  /** [User Function] Cancels a trading order. */
945
1176
  export declare function cancelTradingOrder(options: CancelTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -967,13 +1198,45 @@ export interface ReleaseCollateralOptions {
967
1198
  positionId: RawTransactionArgument<number | bigint>,
968
1199
  releaseAmount: RawTransactionArgument<number | bigint>
969
1200
  ];
970
- typeArguments: [string, string];
1201
+ typeArguments: [
1202
+ string,
1203
+ string
1204
+ ];
1205
+ }
1206
+ /** [DEPRECATED] Use `release_collateral_v2` with `&OracleV2` instead. */
1207
+ export declare function releaseCollateral(options: ReleaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1208
+ export interface ReleaseCollateralV2Arguments {
1209
+ version: RawTransactionArgument<string>;
1210
+ registry: RawTransactionArgument<string>;
1211
+ poolRegistry: RawTransactionArgument<string>;
1212
+ oracleV2: RawTransactionArgument<string>;
1213
+ marketIndex: RawTransactionArgument<number | bigint>;
1214
+ poolIndex: RawTransactionArgument<number | bigint>;
1215
+ positionId: RawTransactionArgument<number | bigint>;
1216
+ releaseAmount: RawTransactionArgument<number | bigint>;
1217
+ }
1218
+ export interface ReleaseCollateralV2Options {
1219
+ package?: string;
1220
+ arguments: ReleaseCollateralV2Arguments | [
1221
+ version: RawTransactionArgument<string>,
1222
+ registry: RawTransactionArgument<string>,
1223
+ poolRegistry: RawTransactionArgument<string>,
1224
+ oracleV2: RawTransactionArgument<string>,
1225
+ marketIndex: RawTransactionArgument<number | bigint>,
1226
+ poolIndex: RawTransactionArgument<number | bigint>,
1227
+ positionId: RawTransactionArgument<number | bigint>,
1228
+ releaseAmount: RawTransactionArgument<number | bigint>
1229
+ ];
1230
+ typeArguments: [
1231
+ string,
1232
+ string
1233
+ ];
971
1234
  }
972
1235
  /**
973
1236
  * [User Function] Releases collateral from a position. Safe with
974
1237
  * `check_position_user_matched`
975
1238
  */
976
- export declare function releaseCollateral(options: ReleaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1239
+ export declare function releaseCollateralV2(options: ReleaseCollateralV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
977
1240
  export interface IncreaseCollateralArguments {
978
1241
  version: RawTransactionArgument<string>;
979
1242
  registry: RawTransactionArgument<string>;
@@ -998,13 +1261,45 @@ export interface IncreaseCollateralOptions {
998
1261
  positionId: RawTransactionArgument<number | bigint>,
999
1262
  collateral: RawTransactionArgument<string>
1000
1263
  ];
1001
- typeArguments: [string, string];
1264
+ typeArguments: [
1265
+ string,
1266
+ string
1267
+ ];
1268
+ }
1269
+ /** [DEPRECATED] Use `increase_collateral_v2` with `&OracleV2` instead. */
1270
+ export declare function increaseCollateral(options: IncreaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1271
+ export interface IncreaseCollateralV2Arguments {
1272
+ version: RawTransactionArgument<string>;
1273
+ registry: RawTransactionArgument<string>;
1274
+ poolRegistry: RawTransactionArgument<string>;
1275
+ oracleV2: RawTransactionArgument<string>;
1276
+ marketIndex: RawTransactionArgument<number | bigint>;
1277
+ poolIndex: RawTransactionArgument<number | bigint>;
1278
+ positionId: RawTransactionArgument<number | bigint>;
1279
+ collateral: RawTransactionArgument<string>;
1280
+ }
1281
+ export interface IncreaseCollateralV2Options {
1282
+ package?: string;
1283
+ arguments: IncreaseCollateralV2Arguments | [
1284
+ version: RawTransactionArgument<string>,
1285
+ registry: RawTransactionArgument<string>,
1286
+ poolRegistry: RawTransactionArgument<string>,
1287
+ oracleV2: RawTransactionArgument<string>,
1288
+ marketIndex: RawTransactionArgument<number | bigint>,
1289
+ poolIndex: RawTransactionArgument<number | bigint>,
1290
+ positionId: RawTransactionArgument<number | bigint>,
1291
+ collateral: RawTransactionArgument<string>
1292
+ ];
1293
+ typeArguments: [
1294
+ string,
1295
+ string
1296
+ ];
1002
1297
  }
1003
1298
  /**
1004
1299
  * [User Function] Increases the collateral of a position. Safe with
1005
1300
  * `check_position_user_matched`
1006
1301
  */
1007
- export declare function increaseCollateral(options: IncreaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1302
+ export declare function increaseCollateralV2(options: IncreaseCollateralV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1008
1303
  export interface CollectPositionFundingFeeArguments {
1009
1304
  version: RawTransactionArgument<string>;
1010
1305
  registry: RawTransactionArgument<string>;
@@ -1027,10 +1322,40 @@ export interface CollectPositionFundingFeeOptions {
1027
1322
  poolIndex: RawTransactionArgument<number | bigint>,
1028
1323
  positionId: RawTransactionArgument<number | bigint>
1029
1324
  ];
1030
- typeArguments: [string, string];
1325
+ typeArguments: [
1326
+ string,
1327
+ string
1328
+ ];
1329
+ }
1330
+ /** [DEPRECATED] Use `collect_position_funding_fee_v2` with `&OracleV2` instead. */
1331
+ export declare function collectPositionFundingFee(options: CollectPositionFundingFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1332
+ export interface CollectPositionFundingFeeV2Arguments {
1333
+ version: RawTransactionArgument<string>;
1334
+ registry: RawTransactionArgument<string>;
1335
+ poolRegistry: RawTransactionArgument<string>;
1336
+ oracleV2: RawTransactionArgument<string>;
1337
+ marketIndex: RawTransactionArgument<number | bigint>;
1338
+ poolIndex: RawTransactionArgument<number | bigint>;
1339
+ positionId: RawTransactionArgument<number | bigint>;
1340
+ }
1341
+ export interface CollectPositionFundingFeeV2Options {
1342
+ package?: string;
1343
+ arguments: CollectPositionFundingFeeV2Arguments | [
1344
+ version: RawTransactionArgument<string>,
1345
+ registry: RawTransactionArgument<string>,
1346
+ poolRegistry: RawTransactionArgument<string>,
1347
+ oracleV2: RawTransactionArgument<string>,
1348
+ marketIndex: RawTransactionArgument<number | bigint>,
1349
+ poolIndex: RawTransactionArgument<number | bigint>,
1350
+ positionId: RawTransactionArgument<number | bigint>
1351
+ ];
1352
+ typeArguments: [
1353
+ string,
1354
+ string
1355
+ ];
1031
1356
  }
1032
1357
  /** Collects the funding fee for a position. Safe with `check_position_user_matched` */
1033
- export declare function collectPositionFundingFee(options: CollectPositionFundingFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1358
+ export declare function collectPositionFundingFeeV2(options: CollectPositionFundingFeeV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1034
1359
  export interface CreateTradingOrderWithBidReceiptArguments {
1035
1360
  version: RawTransactionArgument<string>;
1036
1361
  registry: RawTransactionArgument<string>;
@@ -1067,17 +1392,23 @@ export interface CreateTradingOrderWithBidReceiptOptions {
1067
1392
  collateralBidReceipt: RawTransactionArgument<string>,
1068
1393
  isLong: RawTransactionArgument<boolean>
1069
1394
  ];
1070
- typeArguments: [string, string, string];
1395
+ typeArguments: [
1396
+ string,
1397
+ string,
1398
+ string
1399
+ ];
1071
1400
  }
1072
- /** [User Function] Creates a new trading order with a bid receipt as collateral. */
1401
+ /**
1402
+ * [DEPRECATED] Use `create_trading_order_with_bid_receipt_v2` with `&OracleV2`
1403
+ * instead.
1404
+ */
1073
1405
  export declare function createTradingOrderWithBidReceipt(options: CreateTradingOrderWithBidReceiptOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1074
- export interface ReduceOptionCollateralPositionSizeArguments {
1406
+ export interface CreateTradingOrderWithBidReceiptV2Arguments {
1075
1407
  version: RawTransactionArgument<string>;
1076
1408
  registry: RawTransactionArgument<string>;
1077
1409
  poolRegistry: RawTransactionArgument<string>;
1078
1410
  dovRegistry: RawTransactionArgument<string>;
1079
- typusOracleCToken: RawTransactionArgument<string>;
1080
- typusOracleTradingSymbol: RawTransactionArgument<string>;
1411
+ oracleV2: RawTransactionArgument<string>;
1081
1412
  marketIndex: RawTransactionArgument<number | bigint>;
1082
1413
  poolIndex: RawTransactionArgument<number | bigint>;
1083
1414
  typusEcosystemVersion: RawTransactionArgument<string>;
@@ -1085,18 +1416,17 @@ export interface ReduceOptionCollateralPositionSizeArguments {
1085
1416
  typusLeaderboardRegistry: RawTransactionArgument<string>;
1086
1417
  tailsStakingRegistry: RawTransactionArgument<string>;
1087
1418
  competitionConfig: RawTransactionArgument<string>;
1088
- positionId: RawTransactionArgument<number | bigint>;
1089
- orderSize: RawTransactionArgument<number | bigint | null>;
1419
+ collateralBidReceipt: RawTransactionArgument<string>;
1420
+ isLong: RawTransactionArgument<boolean>;
1090
1421
  }
1091
- export interface ReduceOptionCollateralPositionSizeOptions {
1422
+ export interface CreateTradingOrderWithBidReceiptV2Options {
1092
1423
  package?: string;
1093
- arguments: ReduceOptionCollateralPositionSizeArguments | [
1424
+ arguments: CreateTradingOrderWithBidReceiptV2Arguments | [
1094
1425
  version: RawTransactionArgument<string>,
1095
1426
  registry: RawTransactionArgument<string>,
1096
1427
  poolRegistry: RawTransactionArgument<string>,
1097
1428
  dovRegistry: RawTransactionArgument<string>,
1098
- typusOracleCToken: RawTransactionArgument<string>,
1099
- typusOracleTradingSymbol: RawTransactionArgument<string>,
1429
+ oracleV2: RawTransactionArgument<string>,
1100
1430
  marketIndex: RawTransactionArgument<number | bigint>,
1101
1431
  poolIndex: RawTransactionArgument<number | bigint>,
1102
1432
  typusEcosystemVersion: RawTransactionArgument<string>,
@@ -1104,18 +1434,22 @@ export interface ReduceOptionCollateralPositionSizeOptions {
1104
1434
  typusLeaderboardRegistry: RawTransactionArgument<string>,
1105
1435
  tailsStakingRegistry: RawTransactionArgument<string>,
1106
1436
  competitionConfig: RawTransactionArgument<string>,
1107
- positionId: RawTransactionArgument<number | bigint>,
1108
- orderSize: RawTransactionArgument<number | bigint | null>
1437
+ collateralBidReceipt: RawTransactionArgument<string>,
1438
+ isLong: RawTransactionArgument<boolean>
1439
+ ];
1440
+ typeArguments: [
1441
+ string,
1442
+ string,
1443
+ string
1109
1444
  ];
1110
- typeArguments: [string, string, string];
1111
1445
  }
1112
- /** [User Function] Reduces the size of an option collateral position. */
1113
- export declare function reduceOptionCollateralPositionSize(options: ReduceOptionCollateralPositionSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1114
- export interface MatchTradingOrderArguments {
1446
+ /** [User Function] Creates a new trading order with a bid receipt as collateral. */
1447
+ export declare function createTradingOrderWithBidReceiptV2(options: CreateTradingOrderWithBidReceiptV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1448
+ export interface ReduceOptionCollateralPositionSizeArguments {
1115
1449
  version: RawTransactionArgument<string>;
1116
1450
  registry: RawTransactionArgument<string>;
1117
1451
  poolRegistry: RawTransactionArgument<string>;
1118
- profitVault: RawTransactionArgument<string>;
1452
+ dovRegistry: RawTransactionArgument<string>;
1119
1453
  typusOracleCToken: RawTransactionArgument<string>;
1120
1454
  typusOracleTradingSymbol: RawTransactionArgument<string>;
1121
1455
  marketIndex: RawTransactionArgument<number | bigint>;
@@ -1125,17 +1459,16 @@ export interface MatchTradingOrderArguments {
1125
1459
  typusLeaderboardRegistry: RawTransactionArgument<string>;
1126
1460
  tailsStakingRegistry: RawTransactionArgument<string>;
1127
1461
  competitionConfig: RawTransactionArgument<string>;
1128
- orderTypeTag: RawTransactionArgument<number>;
1129
- triggerPrice: RawTransactionArgument<number | bigint>;
1130
- maxOperationCount: RawTransactionArgument<number | bigint>;
1462
+ positionId: RawTransactionArgument<number | bigint>;
1463
+ orderSize: RawTransactionArgument<number | bigint | null>;
1131
1464
  }
1132
- export interface MatchTradingOrderOptions {
1465
+ export interface ReduceOptionCollateralPositionSizeOptions {
1133
1466
  package?: string;
1134
- arguments: MatchTradingOrderArguments | [
1467
+ arguments: ReduceOptionCollateralPositionSizeArguments | [
1135
1468
  version: RawTransactionArgument<string>,
1136
1469
  registry: RawTransactionArgument<string>,
1137
1470
  poolRegistry: RawTransactionArgument<string>,
1138
- profitVault: RawTransactionArgument<string>,
1471
+ dovRegistry: RawTransactionArgument<string>,
1139
1472
  typusOracleCToken: RawTransactionArgument<string>,
1140
1473
  typusOracleTradingSymbol: RawTransactionArgument<string>,
1141
1474
  marketIndex: RawTransactionArgument<number | bigint>,
@@ -1145,14 +1478,150 @@ export interface MatchTradingOrderOptions {
1145
1478
  typusLeaderboardRegistry: RawTransactionArgument<string>,
1146
1479
  tailsStakingRegistry: RawTransactionArgument<string>,
1147
1480
  competitionConfig: RawTransactionArgument<string>,
1148
- orderTypeTag: RawTransactionArgument<number>,
1149
- triggerPrice: RawTransactionArgument<number | bigint>,
1150
- maxOperationCount: RawTransactionArgument<number | bigint>
1481
+ positionId: RawTransactionArgument<number | bigint>,
1482
+ orderSize: RawTransactionArgument<number | bigint | null>
1483
+ ];
1484
+ typeArguments: [
1485
+ string,
1486
+ string,
1487
+ string
1151
1488
  ];
1152
- typeArguments: [string, string];
1153
1489
  }
1154
- /** [Authorized Function] Matches trading orders. */
1490
+ /**
1491
+ * [DEPRECATED] Use `reduce_option_collateral_position_size_v2` with `&OracleV2`
1492
+ * instead.
1493
+ */
1494
+ export declare function reduceOptionCollateralPositionSize(options: ReduceOptionCollateralPositionSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1495
+ export interface ReduceOptionCollateralPositionSizeV2Arguments {
1496
+ version: RawTransactionArgument<string>;
1497
+ registry: RawTransactionArgument<string>;
1498
+ poolRegistry: RawTransactionArgument<string>;
1499
+ dovRegistry: RawTransactionArgument<string>;
1500
+ oracleV2: RawTransactionArgument<string>;
1501
+ marketIndex: RawTransactionArgument<number | bigint>;
1502
+ poolIndex: RawTransactionArgument<number | bigint>;
1503
+ typusEcosystemVersion: RawTransactionArgument<string>;
1504
+ typusUserRegistry: RawTransactionArgument<string>;
1505
+ typusLeaderboardRegistry: RawTransactionArgument<string>;
1506
+ tailsStakingRegistry: RawTransactionArgument<string>;
1507
+ competitionConfig: RawTransactionArgument<string>;
1508
+ positionId: RawTransactionArgument<number | bigint>;
1509
+ orderSize: RawTransactionArgument<number | bigint | null>;
1510
+ }
1511
+ export interface ReduceOptionCollateralPositionSizeV2Options {
1512
+ package?: string;
1513
+ arguments: ReduceOptionCollateralPositionSizeV2Arguments | [
1514
+ version: RawTransactionArgument<string>,
1515
+ registry: RawTransactionArgument<string>,
1516
+ poolRegistry: RawTransactionArgument<string>,
1517
+ dovRegistry: RawTransactionArgument<string>,
1518
+ oracleV2: RawTransactionArgument<string>,
1519
+ marketIndex: RawTransactionArgument<number | bigint>,
1520
+ poolIndex: RawTransactionArgument<number | bigint>,
1521
+ typusEcosystemVersion: RawTransactionArgument<string>,
1522
+ typusUserRegistry: RawTransactionArgument<string>,
1523
+ typusLeaderboardRegistry: RawTransactionArgument<string>,
1524
+ tailsStakingRegistry: RawTransactionArgument<string>,
1525
+ competitionConfig: RawTransactionArgument<string>,
1526
+ positionId: RawTransactionArgument<number | bigint>,
1527
+ orderSize: RawTransactionArgument<number | bigint | null>
1528
+ ];
1529
+ typeArguments: [
1530
+ string,
1531
+ string,
1532
+ string
1533
+ ];
1534
+ }
1535
+ /** [User Function] Reduces the size of an option collateral position. */
1536
+ export declare function reduceOptionCollateralPositionSizeV2(options: ReduceOptionCollateralPositionSizeV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1537
+ export interface MatchTradingOrderArguments {
1538
+ version: RawTransactionArgument<string>;
1539
+ registry: RawTransactionArgument<string>;
1540
+ poolRegistry: RawTransactionArgument<string>;
1541
+ profitVault: RawTransactionArgument<string>;
1542
+ typusOracleCToken: RawTransactionArgument<string>;
1543
+ typusOracleTradingSymbol: RawTransactionArgument<string>;
1544
+ marketIndex: RawTransactionArgument<number | bigint>;
1545
+ poolIndex: RawTransactionArgument<number | bigint>;
1546
+ typusEcosystemVersion: RawTransactionArgument<string>;
1547
+ typusUserRegistry: RawTransactionArgument<string>;
1548
+ typusLeaderboardRegistry: RawTransactionArgument<string>;
1549
+ tailsStakingRegistry: RawTransactionArgument<string>;
1550
+ competitionConfig: RawTransactionArgument<string>;
1551
+ orderTypeTag: RawTransactionArgument<number>;
1552
+ triggerPrice: RawTransactionArgument<number | bigint>;
1553
+ maxOperationCount: RawTransactionArgument<number | bigint>;
1554
+ }
1555
+ export interface MatchTradingOrderOptions {
1556
+ package?: string;
1557
+ arguments: MatchTradingOrderArguments | [
1558
+ version: RawTransactionArgument<string>,
1559
+ registry: RawTransactionArgument<string>,
1560
+ poolRegistry: RawTransactionArgument<string>,
1561
+ profitVault: RawTransactionArgument<string>,
1562
+ typusOracleCToken: RawTransactionArgument<string>,
1563
+ typusOracleTradingSymbol: RawTransactionArgument<string>,
1564
+ marketIndex: RawTransactionArgument<number | bigint>,
1565
+ poolIndex: RawTransactionArgument<number | bigint>,
1566
+ typusEcosystemVersion: RawTransactionArgument<string>,
1567
+ typusUserRegistry: RawTransactionArgument<string>,
1568
+ typusLeaderboardRegistry: RawTransactionArgument<string>,
1569
+ tailsStakingRegistry: RawTransactionArgument<string>,
1570
+ competitionConfig: RawTransactionArgument<string>,
1571
+ orderTypeTag: RawTransactionArgument<number>,
1572
+ triggerPrice: RawTransactionArgument<number | bigint>,
1573
+ maxOperationCount: RawTransactionArgument<number | bigint>
1574
+ ];
1575
+ typeArguments: [
1576
+ string,
1577
+ string
1578
+ ];
1579
+ }
1580
+ /** [DEPRECATED] Use `match_trading_order_v2` with `&OracleV2` instead. */
1155
1581
  export declare function matchTradingOrder(options: MatchTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1582
+ export interface MatchTradingOrderV2Arguments {
1583
+ version: RawTransactionArgument<string>;
1584
+ registry: RawTransactionArgument<string>;
1585
+ poolRegistry: RawTransactionArgument<string>;
1586
+ profitVault: RawTransactionArgument<string>;
1587
+ oracleV2: RawTransactionArgument<string>;
1588
+ marketIndex: RawTransactionArgument<number | bigint>;
1589
+ poolIndex: RawTransactionArgument<number | bigint>;
1590
+ typusEcosystemVersion: RawTransactionArgument<string>;
1591
+ typusUserRegistry: RawTransactionArgument<string>;
1592
+ typusLeaderboardRegistry: RawTransactionArgument<string>;
1593
+ tailsStakingRegistry: RawTransactionArgument<string>;
1594
+ competitionConfig: RawTransactionArgument<string>;
1595
+ orderTypeTag: RawTransactionArgument<number>;
1596
+ triggerPrice: RawTransactionArgument<number | bigint>;
1597
+ maxOperationCount: RawTransactionArgument<number | bigint>;
1598
+ }
1599
+ export interface MatchTradingOrderV2Options {
1600
+ package?: string;
1601
+ arguments: MatchTradingOrderV2Arguments | [
1602
+ version: RawTransactionArgument<string>,
1603
+ registry: RawTransactionArgument<string>,
1604
+ poolRegistry: RawTransactionArgument<string>,
1605
+ profitVault: RawTransactionArgument<string>,
1606
+ oracleV2: RawTransactionArgument<string>,
1607
+ marketIndex: RawTransactionArgument<number | bigint>,
1608
+ poolIndex: RawTransactionArgument<number | bigint>,
1609
+ typusEcosystemVersion: RawTransactionArgument<string>,
1610
+ typusUserRegistry: RawTransactionArgument<string>,
1611
+ typusLeaderboardRegistry: RawTransactionArgument<string>,
1612
+ tailsStakingRegistry: RawTransactionArgument<string>,
1613
+ competitionConfig: RawTransactionArgument<string>,
1614
+ orderTypeTag: RawTransactionArgument<number>,
1615
+ triggerPrice: RawTransactionArgument<number | bigint>,
1616
+ maxOperationCount: RawTransactionArgument<number | bigint>
1617
+ ];
1618
+ typeArguments: [
1619
+ string,
1620
+ string
1621
+ ];
1622
+ }
1623
+ /** [Authorized Function] Matches trading orders. */
1624
+ export declare function matchTradingOrderV2(options: MatchTradingOrderV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1156
1625
  export interface CancelLinkedOrdersArguments {
1157
1626
  version: RawTransactionArgument<string>;
1158
1627
  registry: RawTransactionArgument<string>;
@@ -1171,7 +1640,10 @@ export interface CancelLinkedOrdersOptions {
1171
1640
  linkedOrderPrices: RawTransactionArgument<number | bigint[]>,
1172
1641
  user: RawTransactionArgument<string>
1173
1642
  ];
1174
- typeArguments: [string, string];
1643
+ typeArguments: [
1644
+ string,
1645
+ string
1646
+ ];
1175
1647
  }
1176
1648
  /** [Authorized Function] Cancels linked orders. */
1177
1649
  export declare function cancelLinkedOrders(options: CancelLinkedOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -1211,10 +1683,54 @@ export interface ManagerReducePositionOptions {
1211
1683
  positionId: RawTransactionArgument<number | bigint>,
1212
1684
  reducedRatioBp: RawTransactionArgument<number | bigint>
1213
1685
  ];
1214
- typeArguments: [string, string];
1686
+ typeArguments: [
1687
+ string,
1688
+ string
1689
+ ];
1215
1690
  }
1216
- /** [Authorized Function] Reduces a position by the manager. */
1691
+ /** [DEPRECATED] Use `manager_reduce_position_v2` with `&OracleV2` instead. */
1217
1692
  export declare function managerReducePosition(options: ManagerReducePositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1693
+ export interface ManagerReducePositionV2Arguments {
1694
+ version: RawTransactionArgument<string>;
1695
+ registry: RawTransactionArgument<string>;
1696
+ poolRegistry: RawTransactionArgument<string>;
1697
+ profitVault: RawTransactionArgument<string>;
1698
+ oracleV2: RawTransactionArgument<string>;
1699
+ marketIndex: RawTransactionArgument<number | bigint>;
1700
+ poolIndex: RawTransactionArgument<number | bigint>;
1701
+ typusEcosystemVersion: RawTransactionArgument<string>;
1702
+ typusUserRegistry: RawTransactionArgument<string>;
1703
+ typusLeaderboardRegistry: RawTransactionArgument<string>;
1704
+ tailsStakingRegistry: RawTransactionArgument<string>;
1705
+ competitionConfig: RawTransactionArgument<string>;
1706
+ positionId: RawTransactionArgument<number | bigint>;
1707
+ reducedRatioBp: RawTransactionArgument<number | bigint>;
1708
+ }
1709
+ export interface ManagerReducePositionV2Options {
1710
+ package?: string;
1711
+ arguments: ManagerReducePositionV2Arguments | [
1712
+ version: RawTransactionArgument<string>,
1713
+ registry: RawTransactionArgument<string>,
1714
+ poolRegistry: RawTransactionArgument<string>,
1715
+ profitVault: RawTransactionArgument<string>,
1716
+ oracleV2: RawTransactionArgument<string>,
1717
+ marketIndex: RawTransactionArgument<number | bigint>,
1718
+ poolIndex: RawTransactionArgument<number | bigint>,
1719
+ typusEcosystemVersion: RawTransactionArgument<string>,
1720
+ typusUserRegistry: RawTransactionArgument<string>,
1721
+ typusLeaderboardRegistry: RawTransactionArgument<string>,
1722
+ tailsStakingRegistry: RawTransactionArgument<string>,
1723
+ competitionConfig: RawTransactionArgument<string>,
1724
+ positionId: RawTransactionArgument<number | bigint>,
1725
+ reducedRatioBp: RawTransactionArgument<number | bigint>
1726
+ ];
1727
+ typeArguments: [
1728
+ string,
1729
+ string
1730
+ ];
1731
+ }
1732
+ /** [Authorized Function] Reduces a position by the manager. */
1733
+ export declare function managerReducePositionV2(options: ManagerReducePositionV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1218
1734
  export interface ManagerClearPositionArguments {
1219
1735
  version: RawTransactionArgument<string>;
1220
1736
  registry: RawTransactionArgument<string>;
@@ -1233,7 +1749,10 @@ export interface ManagerClearPositionOptions {
1233
1749
  poolIndex: RawTransactionArgument<number | bigint>,
1234
1750
  positionId: RawTransactionArgument<number | bigint>
1235
1751
  ];
1236
- typeArguments: [string, string];
1752
+ typeArguments: [
1753
+ string,
1754
+ string
1755
+ ];
1237
1756
  }
1238
1757
  export declare function managerClearPosition(options: ManagerClearPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1239
1758
  export interface ManagerCloseOptionPositionArguments {
@@ -1270,17 +1789,64 @@ export interface ManagerCloseOptionPositionOptions {
1270
1789
  competitionConfig: RawTransactionArgument<string>,
1271
1790
  positionId: RawTransactionArgument<number | bigint>
1272
1791
  ];
1273
- typeArguments: [string, string, string];
1792
+ typeArguments: [
1793
+ string,
1794
+ string,
1795
+ string
1796
+ ];
1274
1797
  }
1275
- /** [Authorized Function] Closes an option position by the manager. */
1798
+ /** [DEPRECATED] Use `manager_close_option_position_v2` with `&OracleV2` instead. */
1276
1799
  export declare function managerCloseOptionPosition(options: ManagerCloseOptionPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1800
+ export interface ManagerCloseOptionPositionV2Arguments {
1801
+ version: RawTransactionArgument<string>;
1802
+ registry: RawTransactionArgument<string>;
1803
+ poolRegistry: RawTransactionArgument<string>;
1804
+ dovRegistry: RawTransactionArgument<string>;
1805
+ oracleV2: RawTransactionArgument<string>;
1806
+ marketIndex: RawTransactionArgument<number | bigint>;
1807
+ poolIndex: RawTransactionArgument<number | bigint>;
1808
+ typusEcosystemVersion: RawTransactionArgument<string>;
1809
+ typusUserRegistry: RawTransactionArgument<string>;
1810
+ typusLeaderboardRegistry: RawTransactionArgument<string>;
1811
+ tailsStakingRegistry: RawTransactionArgument<string>;
1812
+ competitionConfig: RawTransactionArgument<string>;
1813
+ positionId: RawTransactionArgument<number | bigint>;
1814
+ }
1815
+ export interface ManagerCloseOptionPositionV2Options {
1816
+ package?: string;
1817
+ arguments: ManagerCloseOptionPositionV2Arguments | [
1818
+ version: RawTransactionArgument<string>,
1819
+ registry: RawTransactionArgument<string>,
1820
+ poolRegistry: RawTransactionArgument<string>,
1821
+ dovRegistry: RawTransactionArgument<string>,
1822
+ oracleV2: RawTransactionArgument<string>,
1823
+ marketIndex: RawTransactionArgument<number | bigint>,
1824
+ poolIndex: RawTransactionArgument<number | bigint>,
1825
+ typusEcosystemVersion: RawTransactionArgument<string>,
1826
+ typusUserRegistry: RawTransactionArgument<string>,
1827
+ typusLeaderboardRegistry: RawTransactionArgument<string>,
1828
+ tailsStakingRegistry: RawTransactionArgument<string>,
1829
+ competitionConfig: RawTransactionArgument<string>,
1830
+ positionId: RawTransactionArgument<number | bigint>
1831
+ ];
1832
+ typeArguments: [
1833
+ string,
1834
+ string,
1835
+ string
1836
+ ];
1837
+ }
1838
+ /** [Authorized Function] Closes an option position by the manager. */
1839
+ export declare function managerCloseOptionPositionV2(options: ManagerCloseOptionPositionV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1277
1840
  export interface GetTradingFeeConfigArguments {
1278
1841
  marketConfig: RawTransactionArgument<string>;
1279
1842
  isOptionPosition: RawTransactionArgument<boolean>;
1280
1843
  }
1281
1844
  export interface GetTradingFeeConfigOptions {
1282
1845
  package?: string;
1283
- arguments: GetTradingFeeConfigArguments | [marketConfig: RawTransactionArgument<string>, isOptionPosition: RawTransactionArgument<boolean>];
1846
+ arguments: GetTradingFeeConfigArguments | [
1847
+ marketConfig: RawTransactionArgument<string>,
1848
+ isOptionPosition: RawTransactionArgument<boolean>
1849
+ ];
1284
1850
  }
1285
1851
  export declare function getTradingFeeConfig(options: GetTradingFeeConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1286
1852
  export interface GetLiquidationInfoArguments {
@@ -1288,8 +1854,7 @@ export interface GetLiquidationInfoArguments {
1288
1854
  registry: RawTransactionArgument<string>;
1289
1855
  poolRegistry: RawTransactionArgument<string>;
1290
1856
  dovRegistry: RawTransactionArgument<string>;
1291
- typusOracleCToken: RawTransactionArgument<string>;
1292
- typusOracleTradingSymbol: RawTransactionArgument<string>;
1857
+ oracleV2: RawTransactionArgument<string>;
1293
1858
  marketIndex: RawTransactionArgument<number | bigint>;
1294
1859
  poolIndex: RawTransactionArgument<number | bigint>;
1295
1860
  getAll: RawTransactionArgument<boolean>;
@@ -1301,13 +1866,15 @@ export interface GetLiquidationInfoOptions {
1301
1866
  registry: RawTransactionArgument<string>,
1302
1867
  poolRegistry: RawTransactionArgument<string>,
1303
1868
  dovRegistry: RawTransactionArgument<string>,
1304
- typusOracleCToken: RawTransactionArgument<string>,
1305
- typusOracleTradingSymbol: RawTransactionArgument<string>,
1869
+ oracleV2: RawTransactionArgument<string>,
1306
1870
  marketIndex: RawTransactionArgument<number | bigint>,
1307
1871
  poolIndex: RawTransactionArgument<number | bigint>,
1308
1872
  getAll: RawTransactionArgument<boolean>
1309
1873
  ];
1310
- typeArguments: [string, string];
1874
+ typeArguments: [
1875
+ string,
1876
+ string
1877
+ ];
1311
1878
  }
1312
1879
  /** [View Function] Gets the liquidation information for a position. */
1313
1880
  export declare function getLiquidationInfo(options: GetLiquidationInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -1335,10 +1902,44 @@ export interface LiquidateOptions {
1335
1902
  poolIndex: RawTransactionArgument<number | bigint>,
1336
1903
  positionId: RawTransactionArgument<number | bigint>
1337
1904
  ];
1338
- typeArguments: [string, string, string];
1905
+ typeArguments: [
1906
+ string,
1907
+ string,
1908
+ string
1909
+ ];
1339
1910
  }
1340
- /** [Authorized Function] Liquidates a position. */
1911
+ /** [DEPRECATED] Use `liquidate_v2` with `&OracleV2` instead. */
1341
1912
  export declare function liquidate(options: LiquidateOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1913
+ export interface LiquidateV2Arguments {
1914
+ version: RawTransactionArgument<string>;
1915
+ registry: RawTransactionArgument<string>;
1916
+ poolRegistry: RawTransactionArgument<string>;
1917
+ dovRegistry: RawTransactionArgument<string>;
1918
+ oracleV2: RawTransactionArgument<string>;
1919
+ marketIndex: RawTransactionArgument<number | bigint>;
1920
+ poolIndex: RawTransactionArgument<number | bigint>;
1921
+ positionId: RawTransactionArgument<number | bigint>;
1922
+ }
1923
+ export interface LiquidateV2Options {
1924
+ package?: string;
1925
+ arguments: LiquidateV2Arguments | [
1926
+ version: RawTransactionArgument<string>,
1927
+ registry: RawTransactionArgument<string>,
1928
+ poolRegistry: RawTransactionArgument<string>,
1929
+ dovRegistry: RawTransactionArgument<string>,
1930
+ oracleV2: RawTransactionArgument<string>,
1931
+ marketIndex: RawTransactionArgument<number | bigint>,
1932
+ poolIndex: RawTransactionArgument<number | bigint>,
1933
+ positionId: RawTransactionArgument<number | bigint>
1934
+ ];
1935
+ typeArguments: [
1936
+ string,
1937
+ string,
1938
+ string
1939
+ ];
1940
+ }
1941
+ /** [Authorized Function] Liquidates a position. */
1942
+ export declare function liquidateV2(options: LiquidateV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1342
1943
  export interface SettleReceiptCollateralArguments {
1343
1944
  version: RawTransactionArgument<string>;
1344
1945
  registry: RawTransactionArgument<string>;
@@ -1359,10 +1960,40 @@ export interface SettleReceiptCollateralOptions {
1359
1960
  marketIndex: RawTransactionArgument<number | bigint>,
1360
1961
  poolIndex: RawTransactionArgument<number | bigint>
1361
1962
  ];
1362
- typeArguments: [string, string];
1963
+ typeArguments: [
1964
+ string,
1965
+ string
1966
+ ];
1363
1967
  }
1364
- /** [Authorized Function] Settles receipt collateral. */
1968
+ /** [DEPRECATED] Use `settle_receipt_collateral_v2` with `&OracleV2` instead. */
1365
1969
  export declare function settleReceiptCollateral(options: SettleReceiptCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1970
+ export interface SettleReceiptCollateralV2Arguments {
1971
+ version: RawTransactionArgument<string>;
1972
+ registry: RawTransactionArgument<string>;
1973
+ poolRegistry: RawTransactionArgument<string>;
1974
+ dovRegistry: RawTransactionArgument<string>;
1975
+ oracleV2: RawTransactionArgument<string>;
1976
+ marketIndex: RawTransactionArgument<number | bigint>;
1977
+ poolIndex: RawTransactionArgument<number | bigint>;
1978
+ }
1979
+ export interface SettleReceiptCollateralV2Options {
1980
+ package?: string;
1981
+ arguments: SettleReceiptCollateralV2Arguments | [
1982
+ version: RawTransactionArgument<string>,
1983
+ registry: RawTransactionArgument<string>,
1984
+ poolRegistry: RawTransactionArgument<string>,
1985
+ dovRegistry: RawTransactionArgument<string>,
1986
+ oracleV2: RawTransactionArgument<string>,
1987
+ marketIndex: RawTransactionArgument<number | bigint>,
1988
+ poolIndex: RawTransactionArgument<number | bigint>
1989
+ ];
1990
+ typeArguments: [
1991
+ string,
1992
+ string
1993
+ ];
1994
+ }
1995
+ /** [Authorized Function] Settles receipt collateral. */
1996
+ export declare function settleReceiptCollateralV2(options: SettleReceiptCollateralV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1366
1997
  export interface UpdateFundingRateArguments {
1367
1998
  version: RawTransactionArgument<string>;
1368
1999
  registry: RawTransactionArgument<string>;
@@ -1381,10 +2012,36 @@ export interface UpdateFundingRateOptions {
1381
2012
  marketIndex: RawTransactionArgument<number | bigint>,
1382
2013
  poolIndex: RawTransactionArgument<number | bigint>
1383
2014
  ];
1384
- typeArguments: [string];
2015
+ typeArguments: [
2016
+ string
2017
+ ];
1385
2018
  }
1386
- /** [Authorized Function] Updates the funding rate. */
2019
+ /** [DEPRECATED] Use `update_funding_rate_v2` with `&OracleV2` instead. */
1387
2020
  export declare function updateFundingRate(options: UpdateFundingRateOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
2021
+ export interface UpdateFundingRateV2Arguments {
2022
+ version: RawTransactionArgument<string>;
2023
+ registry: RawTransactionArgument<string>;
2024
+ poolRegistry: RawTransactionArgument<string>;
2025
+ oracleV2: RawTransactionArgument<string>;
2026
+ marketIndex: RawTransactionArgument<number | bigint>;
2027
+ poolIndex: RawTransactionArgument<number | bigint>;
2028
+ }
2029
+ export interface UpdateFundingRateV2Options {
2030
+ package?: string;
2031
+ arguments: UpdateFundingRateV2Arguments | [
2032
+ version: RawTransactionArgument<string>,
2033
+ registry: RawTransactionArgument<string>,
2034
+ poolRegistry: RawTransactionArgument<string>,
2035
+ oracleV2: RawTransactionArgument<string>,
2036
+ marketIndex: RawTransactionArgument<number | bigint>,
2037
+ poolIndex: RawTransactionArgument<number | bigint>
2038
+ ];
2039
+ typeArguments: [
2040
+ string
2041
+ ];
2042
+ }
2043
+ /** [Authorized Function] Updates the funding rate. */
2044
+ export declare function updateFundingRateV2(options: UpdateFundingRateV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1388
2045
  export interface GetExpiredPositionInfoArguments {
1389
2046
  version: RawTransactionArgument<string>;
1390
2047
  registry: RawTransactionArgument<string>;
@@ -1405,6 +2062,43 @@ export interface GetExpiredPositionInfoOptions {
1405
2062
  ];
1406
2063
  }
1407
2064
  export declare function getExpiredPositionInfo(options: GetExpiredPositionInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
2065
+ export interface CreateUserAccountArguments {
2066
+ version: RawTransactionArgument<string>;
2067
+ registry: RawTransactionArgument<string>;
2068
+ marketIndex: RawTransactionArgument<number | bigint>;
2069
+ }
2070
+ export interface CreateUserAccountOptions {
2071
+ package?: string;
2072
+ arguments: CreateUserAccountArguments | [
2073
+ version: RawTransactionArgument<string>,
2074
+ registry: RawTransactionArgument<string>,
2075
+ marketIndex: RawTransactionArgument<number | bigint>
2076
+ ];
2077
+ }
2078
+ /** [User Function] Creates a new user account. */
2079
+ export declare function createUserAccount(options: CreateUserAccountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
2080
+ export interface WithdrawUserAccountArguments {
2081
+ version: RawTransactionArgument<string>;
2082
+ registry: RawTransactionArgument<string>;
2083
+ marketIndex: RawTransactionArgument<number | bigint>;
2084
+ amount: RawTransactionArgument<number | bigint | null>;
2085
+ userAccountCap: RawTransactionArgument<string>;
2086
+ }
2087
+ export interface WithdrawUserAccountOptions {
2088
+ package?: string;
2089
+ arguments: WithdrawUserAccountArguments | [
2090
+ version: RawTransactionArgument<string>,
2091
+ registry: RawTransactionArgument<string>,
2092
+ marketIndex: RawTransactionArgument<number | bigint>,
2093
+ amount: RawTransactionArgument<number | bigint | null>,
2094
+ userAccountCap: RawTransactionArgument<string>
2095
+ ];
2096
+ typeArguments: [
2097
+ string
2098
+ ];
2099
+ }
2100
+ /** Withdraws collateral from a user account. Safe with `UserAccountCap` */
2101
+ export declare function withdrawUserAccount(options: WithdrawUserAccountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1408
2102
  export interface PrepareOrderExecutionArguments {
1409
2103
  symbolMarket: RawTransactionArgument<string>;
1410
2104
  liquidityPool: RawTransactionArgument<string>;
@@ -1417,11 +2111,14 @@ export interface PrepareOrderExecutionOptions {
1417
2111
  liquidityPool: RawTransactionArgument<string>,
1418
2112
  order: RawTransactionArgument<string>
1419
2113
  ];
1420
- typeArguments: [string];
2114
+ typeArguments: [
2115
+ string
2116
+ ];
1421
2117
  }
1422
2118
  export declare function prepareOrderExecution(options: PrepareOrderExecutionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1423
2119
  export interface ExecuteOrder_Arguments {
1424
2120
  version: RawTransactionArgument<string>;
2121
+ referrals: RawTransactionArgument<string>;
1425
2122
  marketIndex: RawTransactionArgument<number | bigint>;
1426
2123
  symbolMarket: RawTransactionArgument<string>;
1427
2124
  liquidityPool: RawTransactionArgument<string>;
@@ -1442,6 +2139,7 @@ export interface ExecuteOrder_Options {
1442
2139
  package?: string;
1443
2140
  arguments: ExecuteOrder_Arguments | [
1444
2141
  version: RawTransactionArgument<string>,
2142
+ referrals: RawTransactionArgument<string>,
1445
2143
  marketIndex: RawTransactionArgument<number | bigint>,
1446
2144
  symbolMarket: RawTransactionArgument<string>,
1447
2145
  liquidityPool: RawTransactionArgument<string>,
@@ -1458,14 +2156,16 @@ export interface ExecuteOrder_Options {
1458
2156
  tailsStakingRegistry: RawTransactionArgument<string>,
1459
2157
  competitionConfig: RawTransactionArgument<string>
1460
2158
  ];
1461
- typeArguments: [string];
2159
+ typeArguments: [
2160
+ string
2161
+ ];
1462
2162
  }
1463
2163
  export declare function executeOrder_(options: ExecuteOrder_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1464
2164
  export interface ExecuteOptionCollateralOrder_Arguments {
1465
2165
  version: RawTransactionArgument<string>;
2166
+ referrals: RawTransactionArgument<string>;
1466
2167
  dovRegistry: RawTransactionArgument<string>;
1467
- typusOracleTradingSymbol: RawTransactionArgument<string>;
1468
- typusOracleCToken: RawTransactionArgument<string>;
2168
+ oracleV2: RawTransactionArgument<string>;
1469
2169
  symbolMarket: RawTransactionArgument<string>;
1470
2170
  liquidityPool: RawTransactionArgument<string>;
1471
2171
  order: RawTransactionArgument<string>;
@@ -1485,9 +2185,9 @@ export interface ExecuteOptionCollateralOrder_Options {
1485
2185
  package?: string;
1486
2186
  arguments: ExecuteOptionCollateralOrder_Arguments | [
1487
2187
  version: RawTransactionArgument<string>,
2188
+ referrals: RawTransactionArgument<string>,
1488
2189
  dovRegistry: RawTransactionArgument<string>,
1489
- typusOracleTradingSymbol: RawTransactionArgument<string>,
1490
- typusOracleCToken: RawTransactionArgument<string>,
2190
+ oracleV2: RawTransactionArgument<string>,
1491
2191
  symbolMarket: RawTransactionArgument<string>,
1492
2192
  liquidityPool: RawTransactionArgument<string>,
1493
2193
  order: RawTransactionArgument<string>,
@@ -1503,7 +2203,10 @@ export interface ExecuteOptionCollateralOrder_Options {
1503
2203
  tailsStakingRegistry: RawTransactionArgument<string>,
1504
2204
  competitionConfig: RawTransactionArgument<string>
1505
2205
  ];
1506
- typeArguments: [string, string];
2206
+ typeArguments: [
2207
+ string,
2208
+ string
2209
+ ];
1507
2210
  }
1508
2211
  export declare function executeOptionCollateralOrder_(options: ExecuteOptionCollateralOrder_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1509
2212
  export interface RemoveLinkedOrdersArguments {
@@ -1524,7 +2227,9 @@ export interface RemoveLinkedOrdersOptions {
1524
2227
  linkedOrderPrices: RawTransactionArgument<number | bigint[]>,
1525
2228
  user: RawTransactionArgument<string>
1526
2229
  ];
1527
- typeArguments: [string];
2230
+ typeArguments: [
2231
+ string
2232
+ ];
1528
2233
  }
1529
2234
  export declare function removeLinkedOrders(options: RemoveLinkedOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1530
2235
  export interface RemoveLinkedOrder_Arguments {
@@ -1543,7 +2248,9 @@ export interface RemoveLinkedOrder_Options {
1543
2248
  order: RawTransactionArgument<string>,
1544
2249
  user: RawTransactionArgument<string>
1545
2250
  ];
1546
- typeArguments: [string];
2251
+ typeArguments: [
2252
+ string
2253
+ ];
1547
2254
  }
1548
2255
  export declare function removeLinkedOrder_(options: RemoveLinkedOrder_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1549
2256
  export interface GetMutOrdersArguments {
@@ -1579,7 +2286,9 @@ export interface GetOrderKeyArguments {
1579
2286
  }
1580
2287
  export interface GetOrderKeyOptions {
1581
2288
  package?: string;
1582
- arguments: GetOrderKeyArguments | [orderTypeTag: RawTransactionArgument<number>];
2289
+ arguments: GetOrderKeyArguments | [
2290
+ orderTypeTag: RawTransactionArgument<number>
2291
+ ];
1583
2292
  }
1584
2293
  export declare function getOrderKey(options: GetOrderKeyOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1585
2294
  export interface TakeOrderByOrderIdAndPriceArguments {
@@ -1634,7 +2343,9 @@ export interface CheckCollateralEnoughWhenAddingPositionOptions {
1634
2343
  tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>,
1635
2344
  tradingFeeMbp: RawTransactionArgument<number | bigint>
1636
2345
  ];
1637
- typeArguments: [string];
2346
+ typeArguments: [
2347
+ string
2348
+ ];
1638
2349
  }
1639
2350
  export declare function checkCollateralEnoughWhenAddingPosition(options: CheckCollateralEnoughWhenAddingPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1640
2351
  export interface CheckCollateralEnoughWhenReducingPositionArguments {
@@ -1657,13 +2368,14 @@ export interface CheckCollateralEnoughWhenReducingPositionOptions {
1657
2368
  tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>,
1658
2369
  tradingFeeMbp: RawTransactionArgument<number | bigint>
1659
2370
  ];
1660
- typeArguments: [string];
2371
+ typeArguments: [
2372
+ string
2373
+ ];
1661
2374
  }
1662
2375
  export declare function checkCollateralEnoughWhenReducingPosition(options: CheckCollateralEnoughWhenReducingPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1663
2376
  export interface CheckOptionCollateralEnoughArguments {
1664
2377
  dovRegistry: RawTransactionArgument<string>;
1665
- typusOracleTradingSymbol: RawTransactionArgument<string>;
1666
- typusOracleCToken: RawTransactionArgument<string>;
2378
+ oracleV2: RawTransactionArgument<string>;
1667
2379
  symbolMarket: RawTransactionArgument<string>;
1668
2380
  order: RawTransactionArgument<string>;
1669
2381
  collateralOraclePrice: RawTransactionArgument<number | bigint>;
@@ -1676,8 +2388,7 @@ export interface CheckOptionCollateralEnoughOptions {
1676
2388
  package?: string;
1677
2389
  arguments: CheckOptionCollateralEnoughArguments | [
1678
2390
  dovRegistry: RawTransactionArgument<string>,
1679
- typusOracleTradingSymbol: RawTransactionArgument<string>,
1680
- typusOracleCToken: RawTransactionArgument<string>,
2391
+ oracleV2: RawTransactionArgument<string>,
1681
2392
  symbolMarket: RawTransactionArgument<string>,
1682
2393
  order: RawTransactionArgument<string>,
1683
2394
  collateralOraclePrice: RawTransactionArgument<number | bigint>,
@@ -1686,7 +2397,9 @@ export interface CheckOptionCollateralEnoughOptions {
1686
2397
  tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>,
1687
2398
  tradingFeeMbp: RawTransactionArgument<number | bigint>
1688
2399
  ];
1689
- typeArguments: [string];
2400
+ typeArguments: [
2401
+ string
2402
+ ];
1690
2403
  }
1691
2404
  export declare function checkOptionCollateralEnough(options: CheckOptionCollateralEnoughOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1692
2405
  export interface CheckReserveEnoughArguments {
@@ -1709,7 +2422,9 @@ export interface CheckReserveEnoughOptions {
1709
2422
  tradingPairOraclePrice: RawTransactionArgument<number | bigint>,
1710
2423
  tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>
1711
2424
  ];
1712
- typeArguments: [string];
2425
+ typeArguments: [
2426
+ string
2427
+ ];
1713
2428
  }
1714
2429
  export declare function checkReserveEnough(options: CheckReserveEnoughOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1715
2430
  export interface GetMaxReleasingCollateralAmount_Arguments {
@@ -1740,12 +2455,23 @@ export interface GetMaxReleasingCollateralAmount_Options {
1740
2455
  ];
1741
2456
  }
1742
2457
  export declare function getMaxReleasingCollateralAmount_(options: GetMaxReleasingCollateralAmount_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
2458
+ export interface GetV2PriceArguments {
2459
+ oracleV2: RawTransactionArgument<string>;
2460
+ tokenType: RawTransactionArgument<string>;
2461
+ }
2462
+ export interface GetV2PriceOptions {
2463
+ package?: string;
2464
+ arguments: GetV2PriceArguments | [
2465
+ oracleV2: RawTransactionArgument<string>,
2466
+ tokenType: RawTransactionArgument<string>
2467
+ ];
2468
+ }
2469
+ export declare function getV2Price(options: GetV2PriceOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1743
2470
  export interface NormalSafetyCheckArguments {
1744
2471
  version: RawTransactionArgument<string>;
1745
2472
  registry: RawTransactionArgument<string>;
1746
2473
  poolRegistry: RawTransactionArgument<string>;
1747
- typusOracleCToken: RawTransactionArgument<string>;
1748
- typusOracleTradingSymbol: RawTransactionArgument<string>;
2474
+ oracleV2: RawTransactionArgument<string>;
1749
2475
  marketIndex: RawTransactionArgument<number | bigint>;
1750
2476
  poolIndex: RawTransactionArgument<number | bigint>;
1751
2477
  positionId: RawTransactionArgument<number | bigint | null>;
@@ -1756,13 +2482,15 @@ export interface NormalSafetyCheckOptions {
1756
2482
  version: RawTransactionArgument<string>,
1757
2483
  registry: RawTransactionArgument<string>,
1758
2484
  poolRegistry: RawTransactionArgument<string>,
1759
- typusOracleCToken: RawTransactionArgument<string>,
1760
- typusOracleTradingSymbol: RawTransactionArgument<string>,
2485
+ oracleV2: RawTransactionArgument<string>,
1761
2486
  marketIndex: RawTransactionArgument<number | bigint>,
1762
2487
  poolIndex: RawTransactionArgument<number | bigint>,
1763
2488
  positionId: RawTransactionArgument<number | bigint | null>
1764
2489
  ];
1765
- typeArguments: [string, string];
2490
+ typeArguments: [
2491
+ string,
2492
+ string
2493
+ ];
1766
2494
  }
1767
2495
  export declare function normalSafetyCheck(options: NormalSafetyCheckOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1768
2496
  export interface ValidateTradingFeeConfigArguments {
@@ -1770,7 +2498,9 @@ export interface ValidateTradingFeeConfigArguments {
1770
2498
  }
1771
2499
  export interface ValidateTradingFeeConfigOptions {
1772
2500
  package?: string;
1773
- arguments: ValidateTradingFeeConfigArguments | [config: RawTransactionArgument<number | bigint[]>];
2501
+ arguments: ValidateTradingFeeConfigArguments | [
2502
+ config: RawTransactionArgument<number | bigint[]>
2503
+ ];
1774
2504
  }
1775
2505
  export declare function validateTradingFeeConfig(options: ValidateTradingFeeConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1776
2506
  export interface AdjustMarketInfoUserOrderSizeArguments {
@@ -1811,8 +2541,14 @@ export interface ExerciseBidReceiptsArguments {
1811
2541
  }
1812
2542
  export interface ExerciseBidReceiptsOptions {
1813
2543
  package?: string;
1814
- arguments: ExerciseBidReceiptsArguments | [dovRegistry: RawTransactionArgument<string>, bidReceipts: RawTransactionArgument<string[]>];
1815
- typeArguments: [string, string];
2544
+ arguments: ExerciseBidReceiptsArguments | [
2545
+ dovRegistry: RawTransactionArgument<string>,
2546
+ bidReceipts: RawTransactionArgument<string[]>
2547
+ ];
2548
+ typeArguments: [
2549
+ string,
2550
+ string
2551
+ ];
1816
2552
  }
1817
2553
  export declare function exerciseBidReceipts(options: ExerciseBidReceiptsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1818
2554
  export interface ReturnToUserArguments {
@@ -1821,8 +2557,13 @@ export interface ReturnToUserArguments {
1821
2557
  }
1822
2558
  export interface ReturnToUserOptions {
1823
2559
  package?: string;
1824
- arguments: ReturnToUserArguments | [balance: RawTransactionArgument<string>, user: RawTransactionArgument<string>];
1825
- typeArguments: [string];
2560
+ arguments: ReturnToUserArguments | [
2561
+ balance: RawTransactionArgument<string>,
2562
+ user: RawTransactionArgument<string>
2563
+ ];
2564
+ typeArguments: [
2565
+ string
2566
+ ];
1826
2567
  }
1827
2568
  export declare function returnToUser(options: ReturnToUserOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1828
2569
  export interface CheckPositionUserMatchedArguments {
@@ -1831,9 +2572,26 @@ export interface CheckPositionUserMatchedArguments {
1831
2572
  }
1832
2573
  export interface CheckPositionUserMatchedOptions {
1833
2574
  package?: string;
1834
- arguments: CheckPositionUserMatchedArguments | [position: RawTransactionArgument<string>, user: RawTransactionArgument<string>];
2575
+ arguments: CheckPositionUserMatchedArguments | [
2576
+ position: RawTransactionArgument<string>,
2577
+ user: RawTransactionArgument<string>
2578
+ ];
1835
2579
  }
1836
2580
  export declare function checkPositionUserMatched(options: CheckPositionUserMatchedOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
2581
+ export interface GetUserReferralArguments {
2582
+ version: RawTransactionArgument<string>;
2583
+ registry: RawTransactionArgument<string>;
2584
+ user: RawTransactionArgument<string>;
2585
+ }
2586
+ export interface GetUserReferralOptions {
2587
+ package?: string;
2588
+ arguments: GetUserReferralArguments | [
2589
+ version: RawTransactionArgument<string>,
2590
+ registry: RawTransactionArgument<string>,
2591
+ user: RawTransactionArgument<string>
2592
+ ];
2593
+ }
2594
+ export declare function getUserReferral(options: GetUserReferralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1837
2595
  export interface GetUserOrdersArguments {
1838
2596
  version: RawTransactionArgument<string>;
1839
2597
  registry: RawTransactionArgument<string>;
@@ -1884,7 +2642,9 @@ export interface GetAllPositionsOptions {
1884
2642
  slice: RawTransactionArgument<number | bigint>,
1885
2643
  page: RawTransactionArgument<number | bigint>
1886
2644
  ];
1887
- typeArguments: [string];
2645
+ typeArguments: [
2646
+ string
2647
+ ];
1888
2648
  }
1889
2649
  /** [View Function] Gets all positions. */
1890
2650
  export declare function getAllPositions(options: GetAllPositionsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -1902,7 +2662,9 @@ export interface GetActiveOrdersByOrderTagOptions {
1902
2662
  marketIndex: RawTransactionArgument<number | bigint>,
1903
2663
  orderTypeTag: RawTransactionArgument<number>
1904
2664
  ];
1905
- typeArguments: [string];
2665
+ typeArguments: [
2666
+ string
2667
+ ];
1906
2668
  }
1907
2669
  /** [View Function] Gets active orders by order type tag. */
1908
2670
  export declare function getActiveOrdersByOrderTag(options: GetActiveOrdersByOrderTagOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -1910,8 +2672,7 @@ export interface GetMaxReleasingCollateralAmountArguments {
1910
2672
  version: RawTransactionArgument<string>;
1911
2673
  registry: RawTransactionArgument<string>;
1912
2674
  poolRegistry: RawTransactionArgument<string>;
1913
- typusOracleCToken: RawTransactionArgument<string>;
1914
- typusOracleTradingSymbol: RawTransactionArgument<string>;
2675
+ oracleV2: RawTransactionArgument<string>;
1915
2676
  marketIndex: RawTransactionArgument<number | bigint>;
1916
2677
  poolIndex: RawTransactionArgument<number | bigint>;
1917
2678
  positionId: RawTransactionArgument<number | bigint>;
@@ -1922,13 +2683,15 @@ export interface GetMaxReleasingCollateralAmountOptions {
1922
2683
  version: RawTransactionArgument<string>,
1923
2684
  registry: RawTransactionArgument<string>,
1924
2685
  poolRegistry: RawTransactionArgument<string>,
1925
- typusOracleCToken: RawTransactionArgument<string>,
1926
- typusOracleTradingSymbol: RawTransactionArgument<string>,
2686
+ oracleV2: RawTransactionArgument<string>,
1927
2687
  marketIndex: RawTransactionArgument<number | bigint>,
1928
2688
  poolIndex: RawTransactionArgument<number | bigint>,
1929
2689
  positionId: RawTransactionArgument<number | bigint>
1930
2690
  ];
1931
- typeArguments: [string, string];
2691
+ typeArguments: [
2692
+ string,
2693
+ string
2694
+ ];
1932
2695
  }
1933
2696
  /**
1934
2697
  * [View Function] Gets the maximum amount of collateral that can be released from
@@ -1940,8 +2703,7 @@ export interface GetEstimatedLiquidationPriceAndPnlArguments {
1940
2703
  registry: RawTransactionArgument<string>;
1941
2704
  poolRegistry: RawTransactionArgument<string>;
1942
2705
  dovRegistry: RawTransactionArgument<string>;
1943
- typusOracleCToken: RawTransactionArgument<string>;
1944
- typusOracleTradingSymbol: RawTransactionArgument<string>;
2706
+ oracleV2: RawTransactionArgument<string>;
1945
2707
  marketIndex: RawTransactionArgument<number | bigint>;
1946
2708
  poolIndex: RawTransactionArgument<number | bigint>;
1947
2709
  positionId: RawTransactionArgument<number | bigint>;
@@ -1953,13 +2715,15 @@ export interface GetEstimatedLiquidationPriceAndPnlOptions {
1953
2715
  registry: RawTransactionArgument<string>,
1954
2716
  poolRegistry: RawTransactionArgument<string>,
1955
2717
  dovRegistry: RawTransactionArgument<string>,
1956
- typusOracleCToken: RawTransactionArgument<string>,
1957
- typusOracleTradingSymbol: RawTransactionArgument<string>,
2718
+ oracleV2: RawTransactionArgument<string>,
1958
2719
  marketIndex: RawTransactionArgument<number | bigint>,
1959
2720
  poolIndex: RawTransactionArgument<number | bigint>,
1960
2721
  positionId: RawTransactionArgument<number | bigint>
1961
2722
  ];
1962
- typeArguments: [string, string];
2723
+ typeArguments: [
2724
+ string,
2725
+ string
2726
+ ];
1963
2727
  }
1964
2728
  /** [View Functio Only] Gets the estimated liquidation price and PnL for a position. */
1965
2729
  export declare function getEstimatedLiquidationPriceAndPnl(options: GetEstimatedLiquidationPriceAndPnlOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -1997,7 +2761,10 @@ export interface GetMarketsBcsArguments {
1997
2761
  }
1998
2762
  export interface GetMarketsBcsOptions {
1999
2763
  package?: string;
2000
- arguments: GetMarketsBcsArguments | [registry: RawTransactionArgument<string>, indexes: RawTransactionArgument<number | bigint[]>];
2764
+ arguments: GetMarketsBcsArguments | [
2765
+ registry: RawTransactionArgument<string>,
2766
+ indexes: RawTransactionArgument<number | bigint[]>
2767
+ ];
2001
2768
  }
2002
2769
  /** [View Function] Gets the BCS-serialized markets. */
2003
2770
  export declare function getMarketsBcs(options: GetMarketsBcsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -2007,7 +2774,10 @@ export interface GetMutMarketIdArguments {
2007
2774
  }
2008
2775
  export interface GetMutMarketIdOptions {
2009
2776
  package?: string;
2010
- arguments: GetMutMarketIdArguments | [registry: RawTransactionArgument<string>, marketIndex: RawTransactionArgument<number | bigint>];
2777
+ arguments: GetMutMarketIdArguments | [
2778
+ registry: RawTransactionArgument<string>,
2779
+ marketIndex: RawTransactionArgument<number | bigint>
2780
+ ];
2011
2781
  }
2012
2782
  /** Gets a mutable reference to the market ID. WARNING: no authority check inside */
2013
2783
  export declare function getMutMarketId(options: GetMutMarketIdOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
@@ -2016,12 +2786,64 @@ export interface TradingSymbolExistsArguments {
2016
2786
  }
2017
2787
  export interface TradingSymbolExistsOptions {
2018
2788
  package?: string;
2019
- arguments: TradingSymbolExistsArguments | [market: RawTransactionArgument<string>];
2020
- typeArguments: [string];
2789
+ arguments: TradingSymbolExistsArguments | [
2790
+ market: RawTransactionArgument<string>
2791
+ ];
2792
+ typeArguments: [
2793
+ string
2794
+ ];
2021
2795
  }
2022
2796
  export declare function tradingSymbolExists(options: TradingSymbolExistsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
2797
+ export interface ManagerCancelOrderByOpenInterestLimitArguments {
2798
+ version: RawTransactionArgument<string>;
2799
+ registry: RawTransactionArgument<string>;
2800
+ poolRegistry: RawTransactionArgument<string>;
2801
+ marketIndex: RawTransactionArgument<number | bigint>;
2802
+ poolIndex: RawTransactionArgument<number | bigint>;
2803
+ orderTypeTag: RawTransactionArgument<number>;
2804
+ triggerPrice: RawTransactionArgument<number | bigint>;
2805
+ maxOperationCount: RawTransactionArgument<number | bigint>;
2806
+ }
2807
+ export interface ManagerCancelOrderByOpenInterestLimitOptions {
2808
+ package?: string;
2809
+ arguments: ManagerCancelOrderByOpenInterestLimitArguments | [
2810
+ version: RawTransactionArgument<string>,
2811
+ registry: RawTransactionArgument<string>,
2812
+ poolRegistry: RawTransactionArgument<string>,
2813
+ marketIndex: RawTransactionArgument<number | bigint>,
2814
+ poolIndex: RawTransactionArgument<number | bigint>,
2815
+ orderTypeTag: RawTransactionArgument<number>,
2816
+ triggerPrice: RawTransactionArgument<number | bigint>,
2817
+ maxOperationCount: RawTransactionArgument<number | bigint>
2818
+ ];
2819
+ typeArguments: [
2820
+ string,
2821
+ string
2822
+ ];
2823
+ }
2824
+ export declare function managerCancelOrderByOpenInterestLimit(options: ManagerCancelOrderByOpenInterestLimitOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
2023
2825
  export interface DeprecatedOptions {
2024
2826
  package?: string;
2025
- arguments?: [];
2827
+ arguments?: [
2828
+ ];
2026
2829
  }
2027
2830
  export declare function deprecated(options?: DeprecatedOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
2831
+ export interface MigrateOracleIdToV2Arguments {
2832
+ version: RawTransactionArgument<string>;
2833
+ registry: RawTransactionArgument<string>;
2834
+ oracleV2: RawTransactionArgument<string>;
2835
+ }
2836
+ export interface MigrateOracleIdToV2Options {
2837
+ package?: string;
2838
+ arguments: MigrateOracleIdToV2Arguments | [
2839
+ version: RawTransactionArgument<string>,
2840
+ registry: RawTransactionArgument<string>,
2841
+ oracleV2: RawTransactionArgument<string>
2842
+ ];
2843
+ }
2844
+ /**
2845
+ * [Authorized Function] Overwrite every SymbolMarket's `oracle_id` with the live
2846
+ * `OracleV2` id. Run once after upgrading typus_perp to point all market configs
2847
+ * at the redeployed OracleV2.
2848
+ */
2849
+ export declare function migrateOracleIdToV2(options: MigrateOracleIdToV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;