@typus/typus-perp-sdk 1.1.53 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/src/api/sentio.js +2 -2
  2. package/dist/src/client.d.ts +13 -12
  3. package/dist/src/client.js +24 -49
  4. package/dist/src/fetch.d.ts +15 -61
  5. package/dist/src/fetch.js +63 -163
  6. package/dist/src/generated/typus_perp/admin.d.ts +32 -42
  7. package/dist/src/generated/typus_perp/admin.js +41 -67
  8. package/dist/src/generated/typus_perp/competition.d.ts +22 -10
  9. package/dist/src/generated/typus_perp/competition.js +19 -54
  10. package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +2 -2
  11. package/dist/src/generated/typus_perp/deps/std/type_name.js +2 -2
  12. package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +3 -3
  13. package/dist/src/generated/typus_perp/deps/sui/balance.js +3 -3
  14. package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +4 -6
  15. package/dist/src/generated/typus_perp/deps/sui/object_table.js +4 -38
  16. package/dist/src/generated/typus_perp/deps/sui/table.d.ts +4 -6
  17. package/dist/src/generated/typus_perp/deps/sui/table.js +4 -38
  18. package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +2 -2
  19. package/dist/src/generated/typus_perp/deps/sui/vec_set.js +2 -2
  20. package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +7 -9
  21. package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +6 -6
  22. package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +6 -10
  23. package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +5 -39
  24. package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +14 -8
  25. package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +13 -39
  26. package/dist/src/generated/typus_perp/error.d.ts +97 -87
  27. package/dist/src/generated/typus_perp/error.js +18 -0
  28. package/dist/src/generated/typus_perp/escrow.d.ts +17 -21
  29. package/dist/src/generated/typus_perp/escrow.js +10 -22
  30. package/dist/src/generated/typus_perp/lending.d.ts +47 -0
  31. package/dist/src/generated/typus_perp/lending.js +40 -0
  32. package/dist/src/generated/typus_perp/lp_pool.d.ts +718 -397
  33. package/dist/src/generated/typus_perp/lp_pool.js +485 -365
  34. package/dist/src/generated/typus_perp/math.d.ts +18 -8
  35. package/dist/src/generated/typus_perp/math.js +24 -6
  36. package/dist/src/generated/typus_perp/position.d.ts +207 -185
  37. package/dist/src/generated/typus_perp/position.js +236 -277
  38. package/dist/src/generated/typus_perp/profit_vault.d.ts +64 -72
  39. package/dist/src/generated/typus_perp/profit_vault.js +48 -86
  40. package/dist/src/generated/typus_perp/symbol.d.ts +6 -6
  41. package/dist/src/generated/typus_perp/symbol.js +11 -13
  42. package/dist/src/generated/typus_perp/trading.d.ts +451 -558
  43. package/dist/src/generated/typus_perp/trading.js +429 -681
  44. package/dist/src/generated/typus_perp/treasury_caps.d.ts +5 -7
  45. package/dist/src/generated/typus_perp/treasury_caps.js +8 -45
  46. package/dist/src/generated/typus_stake_pool/admin.d.ts +13 -122
  47. package/dist/src/generated/typus_stake_pool/admin.js +19 -103
  48. package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +2 -2
  49. package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +2 -2
  50. package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +2 -2
  51. package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +2 -2
  52. package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +249 -240
  53. package/dist/src/generated/typus_stake_pool/stake_pool.js +159 -246
  54. package/dist/src/generated/utils/index.d.ts +21 -2
  55. package/dist/src/generated/utils/index.js +34 -10
  56. package/dist/src/index.js +4 -4
  57. package/dist/src/user/history.js +39 -23
  58. package/dist/src/user/order.d.ts +1 -1
  59. package/dist/src/user/orderWithBidReceipt.d.ts +1 -1
  60. package/package.json +8 -14
  61. package/dist/src/generated/typus_perp/deps/sui/object.d.ts +0 -8
  62. package/dist/src/generated/typus_perp/deps/sui/object.js +0 -16
  63. package/dist/src/generated/typus_perp/user_account.d.ts +0 -146
  64. package/dist/src/generated/typus_perp/user_account.js +0 -221
  65. package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +0 -8
  66. package/dist/src/generated/typus_stake_pool/deps/sui/object.js +0 -16
  67. package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +0 -30
  68. package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +0 -37
  69. package/dist/src/grpc/graphql.d.ts +0 -26
  70. package/dist/src/grpc/graphql.js +0 -126
  71. package/dist/src/grpc/grpc.d.ts +0 -1
  72. package/dist/src/grpc/grpc.js +0 -38
  73. package/dist/src/grpc/ledgerService.d.ts +0 -0
  74. package/dist/src/grpc/ledgerService.js +0 -64
  75. package/dist/src/grpc/liveDataService.d.ts +0 -0
  76. package/dist/src/grpc/liveDataService.js +0 -49
@@ -6,89 +6,87 @@
6
6
  * logic for creating, updating, and closing them. All of the functions are inner
7
7
  * package functions used in `trading.move`.
8
8
  */
9
- import { MoveStruct, type RawTransactionArgument } from "../utils/index";
9
+ import { MoveStruct, type RawTransactionArgument } from "../utils/index.js";
10
10
  import { type Transaction } from "@mysten/sui/transactions";
11
11
  export declare const OptionCollateralInfo: MoveStruct<{
12
12
  /** The index of the portfolio. */
13
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
13
+ index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
14
14
  /** The type name of the bid token. */
15
15
  bid_token: MoveStruct<{
16
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
16
+ name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
17
17
  }, "std::type_name::TypeName">;
18
18
  /** A vector of the BCS-serialized bid receipts. */
19
- bid_receipts_bcs: import("@mysten/sui/bcs").BcsType<number[][], Iterable<Iterable<number> & {
19
+ bid_receipts_bcs: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<number[][], Iterable<Iterable<number> & {
20
20
  length: number;
21
21
  }> & {
22
22
  length: number;
23
23
  }, string>;
24
24
  }, "@typus/perp::position::OptionCollateralInfo">;
25
25
  export declare const Position: MoveStruct<{
26
- id: MoveStruct<{
27
- id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
28
- }, "0x2::object::UID">;
26
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
29
27
  /** The timestamp when the position was created. */
30
- create_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
28
+ create_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
31
29
  /** The timestamp when the position was last updated. */
32
- update_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
30
+ update_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
33
31
  /** The ID of the position. */
34
- position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
32
+ position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
35
33
  /** A vector of the linked order IDs. */
36
- linked_order_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
34
+ linked_order_ids: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
37
35
  length: number;
38
36
  }, string>;
39
37
  /** A vector of the linked order prices. */
40
- linked_order_prices: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
38
+ linked_order_prices: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
41
39
  length: number;
42
40
  }, string>;
43
41
  /** The address of the user. */
44
- user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
42
+ user: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
45
43
  /** Whether the position is long. */
46
- is_long: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
44
+ is_long: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
47
45
  /** The size of the position. */
48
- size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
46
+ size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
49
47
  /** The number of decimals for the size. */
50
- size_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
48
+ size_decimal: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
51
49
  /** The type name of the collateral token. */
52
50
  collateral_token: MoveStruct<{
53
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
51
+ name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
54
52
  }, "std::type_name::TypeName">;
55
53
  /** The number of decimals for the collateral token. */
56
- collateral_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
54
+ collateral_token_decimal: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
57
55
  /** The symbol of the trading pair. */
58
56
  symbol: MoveStruct<{
59
57
  base_token: MoveStruct<{
60
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
58
+ name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
61
59
  }, "std::type_name::TypeName">;
62
60
  quote_token: MoveStruct<{
63
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
61
+ name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
64
62
  }, "std::type_name::TypeName">;
65
63
  }, "@typus/perp::symbol::Symbol">;
66
64
  /** The amount of collateral. */
67
- collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
65
+ collateral_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
68
66
  /** The amount of reserved collateral. */
69
- reserve_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
67
+ reserve_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
70
68
  /** The average price of the position. */
71
- average_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
69
+ average_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
72
70
  /** The entry borrow index. */
73
- entry_borrow_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
71
+ entry_borrow_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
74
72
  /** The sign of the entry funding rate index. */
75
- entry_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
73
+ entry_funding_rate_index_sign: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
76
74
  /** The entry funding rate index. */
77
- entry_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
75
+ entry_funding_rate_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
78
76
  /** The unrealized loss. */
79
- unrealized_loss: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
77
+ unrealized_loss: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
80
78
  /** The sign of the unrealized funding fee. */
81
- unrealized_funding_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
79
+ unrealized_funding_sign: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
82
80
  /** The unrealized funding fee. */
83
- unrealized_funding_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
81
+ unrealized_funding_fee: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
84
82
  /** The unrealized trading fee. */
85
- unrealized_trading_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
83
+ unrealized_trading_fee: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
86
84
  /** The unrealized borrow fee. */
87
- unrealized_borrow_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
85
+ unrealized_borrow_fee: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
88
86
  /** The unrealized rebate. */
89
- unrealized_rebate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
87
+ unrealized_rebate: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
90
88
  /** Information about the option collateral. */
91
- option_collateral_info: import("@mysten/sui/bcs").BcsType<{
89
+ option_collateral_info: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<{
92
90
  index: string;
93
91
  bid_token: {
94
92
  name: string;
@@ -106,132 +104,130 @@ export declare const Position: MoveStruct<{
106
104
  };
107
105
  } | null | undefined, "Option<@typus/perp::position::OptionCollateralInfo>">;
108
106
  /** Padding for future use. */
109
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
107
+ u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
110
108
  length: number;
111
109
  }, string>;
112
110
  }, "@typus/perp::position::Position">;
113
111
  export declare const TradingOrder: MoveStruct<{
114
- id: MoveStruct<{
115
- id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
116
- }, "0x2::object::UID">;
112
+ id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
117
113
  /** The timestamp when the order was created. */
118
- create_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
114
+ create_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
119
115
  /** The ID of the order. */
120
- order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
116
+ order_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
121
117
  /** The ID of the linked position. */
122
- linked_position_id: import("@mysten/sui/bcs").BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
118
+ linked_position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
123
119
  /** The address of the user. */
124
- user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
120
+ user: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
125
121
  /** The type name of the collateral token. */
126
122
  collateral_token: MoveStruct<{
127
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
123
+ name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
128
124
  }, "std::type_name::TypeName">;
129
125
  /** The number of decimals for the collateral token. */
130
- collateral_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
126
+ collateral_token_decimal: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
131
127
  /** The symbol of the trading pair. */
132
128
  symbol: MoveStruct<{
133
129
  base_token: MoveStruct<{
134
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
130
+ name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
135
131
  }, "std::type_name::TypeName">;
136
132
  quote_token: MoveStruct<{
137
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
133
+ name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
138
134
  }, "std::type_name::TypeName">;
139
135
  }, "@typus/perp::symbol::Symbol">;
140
136
  /** The leverage in mega basis points. */
141
- leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
137
+ leverage_mbp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
142
138
  /** Whether the order is reduce-only. */
143
- reduce_only: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
139
+ reduce_only: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
144
140
  /** Whether the order is long. */
145
- is_long: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
141
+ is_long: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
146
142
  /** Whether the order is a stop order. */
147
- is_stop_order: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
143
+ is_stop_order: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
148
144
  /** The size of the order. */
149
- size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
145
+ size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
150
146
  /** The number of decimals for the size. */
151
- size_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
147
+ size_decimal: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
152
148
  /** The trigger price of the order. */
153
- trigger_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
149
+ trigger_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
154
150
  /** The oracle price when the order was placed. */
155
- oracle_price_when_placing: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
151
+ oracle_price_when_placing: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
156
152
  /** Padding for future use. */
157
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
153
+ u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
158
154
  length: number;
159
155
  }, string>;
160
156
  }, "@typus/perp::position::TradingOrder">;
161
157
  export declare const RemovePositionEvent: MoveStruct<{
162
- user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
158
+ user: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
163
159
  collateral_token: MoveStruct<{
164
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
160
+ name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
165
161
  }, "std::type_name::TypeName">;
166
162
  symbol: MoveStruct<{
167
163
  base_token: MoveStruct<{
168
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
164
+ name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
169
165
  }, "std::type_name::TypeName">;
170
166
  quote_token: MoveStruct<{
171
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
167
+ name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
172
168
  }, "std::type_name::TypeName">;
173
169
  }, "@typus/perp::symbol::Symbol">;
174
- linked_order_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
170
+ linked_order_ids: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
175
171
  length: number;
176
172
  }, string>;
177
- linked_order_prices: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
173
+ linked_order_prices: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
178
174
  length: number;
179
175
  }, string>;
180
- remaining_collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
181
- realized_trading_fee_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
182
- realized_borrow_fee_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
183
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
176
+ remaining_collateral_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
177
+ realized_trading_fee_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
178
+ realized_borrow_fee_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
179
+ u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
184
180
  length: number;
185
181
  }, string>;
186
182
  }, "@typus/perp::position::RemovePositionEvent">;
187
183
  export declare const OrderFilledEvent: MoveStruct<{
188
- user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
184
+ user: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
189
185
  collateral_token: MoveStruct<{
190
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
186
+ name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
191
187
  }, "std::type_name::TypeName">;
192
188
  symbol: MoveStruct<{
193
189
  base_token: MoveStruct<{
194
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
190
+ name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
195
191
  }, "std::type_name::TypeName">;
196
192
  quote_token: MoveStruct<{
197
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
193
+ name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
198
194
  }, "std::type_name::TypeName">;
199
195
  }, "@typus/perp::symbol::Symbol">;
200
- order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
201
- linked_position_id: import("@mysten/sui/bcs").BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
202
- new_position_id: import("@mysten/sui/bcs").BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
203
- filled_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
204
- filled_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
205
- position_side: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
206
- position_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
207
- position_average_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
208
- realized_trading_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
209
- realized_borrow_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
210
- realized_fee_in_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
211
- realized_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
212
- realized_amount_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
213
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
196
+ order_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
197
+ linked_position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
198
+ new_position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
199
+ filled_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
200
+ filled_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
201
+ position_side: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
202
+ position_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
203
+ position_average_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
204
+ realized_trading_fee: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
205
+ realized_borrow_fee: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
206
+ realized_fee_in_usd: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
207
+ realized_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
208
+ realized_amount_sign: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
209
+ u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
214
210
  length: number;
215
211
  }, string>;
216
212
  }, "@typus/perp::position::OrderFilledEvent">;
217
213
  export declare const RealizeFundingEvent: MoveStruct<{
218
- user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
214
+ user: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
219
215
  collateral_token: MoveStruct<{
220
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
216
+ name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
221
217
  }, "std::type_name::TypeName">;
222
218
  symbol: MoveStruct<{
223
219
  base_token: MoveStruct<{
224
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
220
+ name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
225
221
  }, "std::type_name::TypeName">;
226
222
  quote_token: MoveStruct<{
227
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
223
+ name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
228
224
  }, "std::type_name::TypeName">;
229
225
  }, "@typus/perp::symbol::Symbol">;
230
- position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
231
- realized_funding_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
232
- realized_funding_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
233
- realized_funding_fee_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
234
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
226
+ position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
227
+ realized_funding_sign: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
228
+ realized_funding_fee: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
229
+ realized_funding_fee_usd: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
230
+ u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
235
231
  length: number;
236
232
  }, string>;
237
233
  }, "@typus/perp::position::RealizeFundingEvent">;
@@ -272,7 +268,7 @@ export interface CreateOrderOptions {
272
268
  typeArguments: [string];
273
269
  }
274
270
  /** Creates a new trading order. WARNING: no authority check inside */
275
- export declare function createOrder(options: CreateOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
271
+ export declare function createOrder(options: CreateOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
276
272
  export interface RemoveOrderArguments {
277
273
  version: RawTransactionArgument<string>;
278
274
  order: RawTransactionArgument<string>;
@@ -283,7 +279,7 @@ export interface RemoveOrderOptions {
283
279
  typeArguments: [string];
284
280
  }
285
281
  /** Removes a trading order. WARNING: no authority check inside */
286
- export declare function removeOrder(options: RemoveOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
282
+ export declare function removeOrder(options: RemoveOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
287
283
  export interface ManagerCreateReduceOnlyOrderArguments {
288
284
  version: RawTransactionArgument<string>;
289
285
  symbol: RawTransactionArgument<string>;
@@ -317,7 +313,7 @@ export interface ManagerCreateReduceOnlyOrderOptions {
317
313
  typeArguments: [string];
318
314
  }
319
315
  /** [Authorized Function] Creates a reduce-only order by the manager. */
320
- export declare function managerCreateReduceOnlyOrder(options: ManagerCreateReduceOnlyOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
316
+ export declare function managerCreateReduceOnlyOrder(options: ManagerCreateReduceOnlyOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
321
317
  export interface IncreaseCollateralArguments {
322
318
  position: RawTransactionArgument<string>;
323
319
  collateral: RawTransactionArgument<string>;
@@ -339,7 +335,7 @@ export interface IncreaseCollateralOptions {
339
335
  typeArguments: [string];
340
336
  }
341
337
  /** Increases the collateral of a position. WARNING: no authority check inside */
342
- export declare function increaseCollateral(options: IncreaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
338
+ export declare function increaseCollateral(options: IncreaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
343
339
  export interface ReleaseCollateralArguments {
344
340
  position: RawTransactionArgument<string>;
345
341
  releaseAmount: RawTransactionArgument<number | bigint>;
@@ -361,7 +357,7 @@ export interface ReleaseCollateralOptions {
361
357
  typeArguments: [string];
362
358
  }
363
359
  /** Releases collateral from a position. WARNING: no authority check inside */
364
- export declare function releaseCollateral(options: ReleaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
360
+ export declare function releaseCollateral(options: ReleaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
365
361
  export interface RemovePositionArguments {
366
362
  version: RawTransactionArgument<string>;
367
363
  position: RawTransactionArgument<string>;
@@ -372,7 +368,7 @@ export interface RemovePositionOptions {
372
368
  typeArguments: [string];
373
369
  }
374
370
  /** Removes a position. WARNING: no authority check inside */
375
- export declare function removePosition(options: RemovePositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
371
+ export declare function removePosition(options: RemovePositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
376
372
  export interface OrderFilledArguments {
377
373
  version: RawTransactionArgument<string>;
378
374
  ecosystemVersion: RawTransactionArgument<string>;
@@ -414,7 +410,7 @@ export interface OrderFilledOptions {
414
410
  typeArguments: [string];
415
411
  }
416
412
  /** Handles a filled order. WARNING: no authority check inside */
417
- export declare function orderFilled(options: OrderFilledOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
413
+ export declare function orderFilled(options: OrderFilledOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
418
414
  export interface RealizePositionPnlAndFeeArguments {
419
415
  version: RawTransactionArgument<string>;
420
416
  liquidityPool: RawTransactionArgument<string>;
@@ -442,7 +438,7 @@ export interface RealizePositionPnlAndFeeOptions {
442
438
  typeArguments: [string];
443
439
  }
444
440
  /** Realizes the PnL and fees of a position. WARNING: no authority check inside */
445
- export declare function realizePositionPnlAndFee(options: RealizePositionPnlAndFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
441
+ export declare function realizePositionPnlAndFee(options: RealizePositionPnlAndFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
446
442
  export interface RealizeFundingFeeArguments {
447
443
  liquidityPool: RawTransactionArgument<string>;
448
444
  position: RawTransactionArgument<string>;
@@ -460,7 +456,7 @@ export interface RealizeFundingFeeOptions {
460
456
  typeArguments: [string];
461
457
  }
462
458
  /** Realizes the funding fee of a position. WARNING: no authority check inside */
463
- export declare function realizeFundingFee(options: RealizeFundingFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
459
+ export declare function realizeFundingFee(options: RealizeFundingFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
464
460
  export interface CheckOrderFilledArguments {
465
461
  order: RawTransactionArgument<string>;
466
462
  oraclePrice: RawTransactionArgument<number | bigint>;
@@ -469,7 +465,7 @@ export interface CheckOrderFilledOptions {
469
465
  package?: string;
470
466
  arguments: CheckOrderFilledArguments | [order: RawTransactionArgument<string>, oraclePrice: RawTransactionArgument<number | bigint>];
471
467
  }
472
- export declare function checkOrderFilled(options: CheckOrderFilledOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
468
+ export declare function checkOrderFilled(options: CheckOrderFilledOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
473
469
  export interface CalculatePeriodBorrowCostArguments {
474
470
  position: RawTransactionArgument<string>;
475
471
  collateralOraclePrice: RawTransactionArgument<number | bigint>;
@@ -489,7 +485,7 @@ export interface CalculatePeriodBorrowCostOptions {
489
485
  cumulativeBorrowRate: RawTransactionArgument<number | bigint>
490
486
  ];
491
487
  }
492
- export declare function calculatePeriodBorrowCost(options: CalculatePeriodBorrowCostOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
488
+ export declare function calculatePeriodBorrowCost(options: CalculatePeriodBorrowCostOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
493
489
  export interface CheckPositionLiquidatedArguments {
494
490
  position: RawTransactionArgument<string>;
495
491
  collateralOraclePrice: RawTransactionArgument<number | bigint>;
@@ -517,7 +513,7 @@ export interface CheckPositionLiquidatedOptions {
517
513
  cumulativeFundingRateIndex: RawTransactionArgument<number | bigint>
518
514
  ];
519
515
  }
520
- export declare function checkPositionLiquidated(options: CheckPositionLiquidatedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
516
+ export declare function checkPositionLiquidated(options: CheckPositionLiquidatedOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
521
517
  export interface CalculateUnrealizedPnlArguments {
522
518
  position: RawTransactionArgument<string>;
523
519
  tradingPairOraclePrice: RawTransactionArgument<number | bigint>;
@@ -533,7 +529,7 @@ export interface CalculateUnrealizedPnlOptions {
533
529
  tradingFeeMbp: RawTransactionArgument<number | bigint>
534
530
  ];
535
531
  }
536
- export declare function calculateUnrealizedPnl(options: CalculateUnrealizedPnlOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
532
+ export declare function calculateUnrealizedPnl(options: CalculateUnrealizedPnlOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
537
533
  export interface MaxReleasingCollateralAmountArguments {
538
534
  position: RawTransactionArgument<string>;
539
535
  collateralOraclePrice: RawTransactionArgument<number | bigint>;
@@ -557,7 +553,7 @@ export interface MaxReleasingCollateralAmountOptions {
557
553
  maxEntryLeverageMbp: RawTransactionArgument<number | bigint>
558
554
  ];
559
555
  }
560
- export declare function maxReleasingCollateralAmount(options: MaxReleasingCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
556
+ export declare function maxReleasingCollateralAmount(options: MaxReleasingCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
561
557
  export interface GetEstimatedLiquidationPriceArguments {
562
558
  position: RawTransactionArgument<string>;
563
559
  isSameToken: RawTransactionArgument<boolean>;
@@ -579,7 +575,7 @@ export interface GetEstimatedLiquidationPriceOptions {
579
575
  maintenanceMarginRateBp: RawTransactionArgument<number | bigint>
580
576
  ];
581
577
  }
582
- export declare function getEstimatedLiquidationPrice(options: GetEstimatedLiquidationPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
578
+ export declare function getEstimatedLiquidationPrice(options: GetEstimatedLiquidationPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
583
579
  export interface CreateOrderWithBidReceiptsArguments {
584
580
  version: RawTransactionArgument<string>;
585
581
  symbol: RawTransactionArgument<string>;
@@ -621,7 +617,7 @@ export interface CreateOrderWithBidReceiptsOptions {
621
617
  user: RawTransactionArgument<string>
622
618
  ];
623
619
  }
624
- export declare function createOrderWithBidReceipts(options: CreateOrderWithBidReceiptsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
620
+ export declare function createOrderWithBidReceipts(options: CreateOrderWithBidReceiptsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
625
621
  export interface RemovePositionWithBidReceiptsArguments {
626
622
  version: RawTransactionArgument<string>;
627
623
  position: RawTransactionArgument<string>;
@@ -630,7 +626,7 @@ export interface RemovePositionWithBidReceiptsOptions {
630
626
  package?: string;
631
627
  arguments: RemovePositionWithBidReceiptsArguments | [version: RawTransactionArgument<string>, position: RawTransactionArgument<string>];
632
628
  }
633
- export declare function removePositionWithBidReceipts(options: RemovePositionWithBidReceiptsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
629
+ export declare function removePositionWithBidReceipts(options: RemovePositionWithBidReceiptsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
634
630
  export interface OrderFilledWithBidReceiptsCollateralArguments {
635
631
  version: RawTransactionArgument<string>;
636
632
  ecosystemVersion: RawTransactionArgument<string>;
@@ -679,7 +675,7 @@ export interface OrderFilledWithBidReceiptsCollateralOptions {
679
675
  ];
680
676
  typeArguments: [string, string];
681
677
  }
682
- export declare function orderFilledWithBidReceiptsCollateral(options: OrderFilledWithBidReceiptsCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
678
+ export declare function orderFilledWithBidReceiptsCollateral(options: OrderFilledWithBidReceiptsCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
683
679
  export interface CheckOptionCollateralPositionLiquidatedArguments {
684
680
  dovRegistry: RawTransactionArgument<string>;
685
681
  typusOracleTradingSymbol: RawTransactionArgument<string>;
@@ -692,6 +688,8 @@ export interface CheckOptionCollateralPositionLiquidatedArguments {
692
688
  tradingFeeMbp: RawTransactionArgument<number | bigint>;
693
689
  maintenanceMarginRateBp: RawTransactionArgument<number | bigint>;
694
690
  cumulativeBorrowRate: RawTransactionArgument<number | bigint>;
691
+ cumulativeFundingRateIndexSign: RawTransactionArgument<boolean>;
692
+ cumulativeFundingRateIndex: RawTransactionArgument<number | bigint>;
695
693
  }
696
694
  export interface CheckOptionCollateralPositionLiquidatedOptions {
697
695
  package?: string;
@@ -706,11 +704,13 @@ export interface CheckOptionCollateralPositionLiquidatedOptions {
706
704
  tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>,
707
705
  tradingFeeMbp: RawTransactionArgument<number | bigint>,
708
706
  maintenanceMarginRateBp: RawTransactionArgument<number | bigint>,
709
- cumulativeBorrowRate: RawTransactionArgument<number | bigint>
707
+ cumulativeBorrowRate: RawTransactionArgument<number | bigint>,
708
+ cumulativeFundingRateIndexSign: RawTransactionArgument<boolean>,
709
+ cumulativeFundingRateIndex: RawTransactionArgument<number | bigint>
710
710
  ];
711
711
  typeArguments: [string];
712
712
  }
713
- export declare function checkOptionCollateralPositionLiquidated(options: CheckOptionCollateralPositionLiquidatedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
713
+ export declare function checkOptionCollateralPositionLiquidated(options: CheckOptionCollateralPositionLiquidatedOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
714
714
  export interface AddPositionLinkedOrderInfoArguments {
715
715
  position: RawTransactionArgument<string>;
716
716
  linkedOrderId: RawTransactionArgument<number | bigint>;
@@ -725,7 +725,7 @@ export interface AddPositionLinkedOrderInfoOptions {
725
725
  ];
726
726
  }
727
727
  /** Adds linked order info to a position. WARNING: no authority check inside */
728
- export declare function addPositionLinkedOrderInfo(options: AddPositionLinkedOrderInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
728
+ export declare function addPositionLinkedOrderInfo(options: AddPositionLinkedOrderInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
729
729
  export interface RemovePositionLinkedOrderInfoArguments {
730
730
  position: RawTransactionArgument<string>;
731
731
  linkedOrderId: RawTransactionArgument<number | bigint>;
@@ -735,7 +735,7 @@ export interface RemovePositionLinkedOrderInfoOptions {
735
735
  arguments: RemovePositionLinkedOrderInfoArguments | [position: RawTransactionArgument<string>, linkedOrderId: RawTransactionArgument<number | bigint>];
736
736
  }
737
737
  /** Removes linked order info from a position. WARNING: no authority check inside */
738
- export declare function removePositionLinkedOrderInfo(options: RemovePositionLinkedOrderInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
738
+ export declare function removePositionLinkedOrderInfo(options: RemovePositionLinkedOrderInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
739
739
  export interface UpdatePositionBorrowRateAndFundingRateArguments {
740
740
  position: RawTransactionArgument<string>;
741
741
  collateralOraclePrice: RawTransactionArgument<number | bigint>;
@@ -763,7 +763,7 @@ export interface UpdatePositionBorrowRateAndFundingRateOptions {
763
763
  * Updates the borrow rate and funding rate of a position. WARNING: no authority
764
764
  * check inside
765
765
  */
766
- export declare function updatePositionBorrowRateAndFundingRate(options: UpdatePositionBorrowRateAndFundingRateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
766
+ export declare function updatePositionBorrowRateAndFundingRate(options: UpdatePositionBorrowRateAndFundingRateOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
767
767
  export interface UpdateOptionPositionCollateralAmountArguments {
768
768
  dovRegistry: RawTransactionArgument<string>;
769
769
  typusOracleTradingSymbol: RawTransactionArgument<string>;
@@ -784,7 +784,7 @@ export interface UpdateOptionPositionCollateralAmountOptions {
784
784
  * Updates the collateral amount of an option position. WARNING: no authority check
785
785
  * inside
786
786
  */
787
- export declare function updateOptionPositionCollateralAmount(options: UpdateOptionPositionCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
787
+ export declare function updateOptionPositionCollateralAmount(options: UpdateOptionPositionCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
788
788
  export interface CalculateRealizedPnlUsdArguments {
789
789
  side: RawTransactionArgument<boolean>;
790
790
  size: RawTransactionArgument<number | bigint>;
@@ -804,7 +804,7 @@ export interface CalculateRealizedPnlUsdOptions {
804
804
  priceDecimal: RawTransactionArgument<number | bigint>
805
805
  ];
806
806
  }
807
- export declare function calculateRealizedPnlUsd(options: CalculateRealizedPnlUsdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
807
+ export declare function calculateRealizedPnlUsd(options: CalculateRealizedPnlUsdOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
808
808
  export interface CalculateFilled_Arguments {
809
809
  position: RawTransactionArgument<string>;
810
810
  reduceOnly: RawTransactionArgument<boolean>;
@@ -824,7 +824,7 @@ export interface CalculateFilled_Options {
824
824
  tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>
825
825
  ];
826
826
  }
827
- export declare function calculateFilled_(options: CalculateFilled_Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
827
+ export declare function calculateFilled_(options: CalculateFilled_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
828
828
  export interface CalculateIntrinsicValueArguments {
829
829
  dovRegistry: RawTransactionArgument<string>;
830
830
  typusOracleTradingSymbol: RawTransactionArgument<string>;
@@ -841,31 +841,7 @@ export interface CalculateIntrinsicValueOptions {
841
841
  ];
842
842
  typeArguments: [string];
843
843
  }
844
- export declare function calculateIntrinsicValue(options: CalculateIntrinsicValueOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
845
- export interface CalculateTradingFeeArguments {
846
- size: RawTransactionArgument<number | bigint>;
847
- sizeDecimal: RawTransactionArgument<number | bigint>;
848
- collateralOraclePrice: RawTransactionArgument<number | bigint>;
849
- collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>;
850
- tradingPairOraclePrice: RawTransactionArgument<number | bigint>;
851
- tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>;
852
- tradingFeeMbp: RawTransactionArgument<number | bigint>;
853
- collateralTokenDecimal: RawTransactionArgument<number | bigint>;
854
- }
855
- export interface CalculateTradingFeeOptions {
856
- package?: string;
857
- arguments: CalculateTradingFeeArguments | [
858
- size: RawTransactionArgument<number | bigint>,
859
- sizeDecimal: RawTransactionArgument<number | bigint>,
860
- collateralOraclePrice: RawTransactionArgument<number | bigint>,
861
- collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>,
862
- tradingPairOraclePrice: RawTransactionArgument<number | bigint>,
863
- tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>,
864
- tradingFeeMbp: RawTransactionArgument<number | bigint>,
865
- collateralTokenDecimal: RawTransactionArgument<number | bigint>
866
- ];
867
- }
868
- export declare function calculateTradingFee(options: CalculateTradingFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
844
+ export declare function calculateIntrinsicValue(options: CalculateIntrinsicValueOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
869
845
  export interface CollateralWithPnlArguments {
870
846
  position: RawTransactionArgument<string>;
871
847
  collateralOraclePrice: RawTransactionArgument<number | bigint>;
@@ -885,7 +861,7 @@ export interface CollateralWithPnlOptions {
885
861
  tradingFeeMbp: RawTransactionArgument<number | bigint>
886
862
  ];
887
863
  }
888
- export declare function collateralWithPnl(options: CollateralWithPnlOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
864
+ export declare function collateralWithPnl(options: CollateralWithPnlOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
889
865
  export interface CalculatePositionFundingRateArguments {
890
866
  position: RawTransactionArgument<string>;
891
867
  collateralOraclePrice: RawTransactionArgument<number | bigint>;
@@ -907,7 +883,31 @@ export interface CalculatePositionFundingRateOptions {
907
883
  cumulativeFundingRateIndex: RawTransactionArgument<number | bigint>
908
884
  ];
909
885
  }
910
- export declare function calculatePositionFundingRate(options: CalculatePositionFundingRateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
886
+ export declare function calculatePositionFundingRate(options: CalculatePositionFundingRateOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
887
+ export interface CalculateReserveAmountArguments {
888
+ newSize: RawTransactionArgument<number | bigint>;
889
+ sizeDecimal: RawTransactionArgument<number | bigint>;
890
+ collateralAmount: RawTransactionArgument<number | bigint>;
891
+ collateralTokenDecimal: RawTransactionArgument<number | bigint>;
892
+ collateralOraclePrice: RawTransactionArgument<number | bigint>;
893
+ collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>;
894
+ tradingPairOraclePrice: RawTransactionArgument<number | bigint>;
895
+ tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>;
896
+ }
897
+ export interface CalculateReserveAmountOptions {
898
+ package?: string;
899
+ arguments: CalculateReserveAmountArguments | [
900
+ newSize: RawTransactionArgument<number | bigint>,
901
+ sizeDecimal: RawTransactionArgument<number | bigint>,
902
+ collateralAmount: RawTransactionArgument<number | bigint>,
903
+ collateralTokenDecimal: RawTransactionArgument<number | bigint>,
904
+ collateralOraclePrice: RawTransactionArgument<number | bigint>,
905
+ collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>,
906
+ tradingPairOraclePrice: RawTransactionArgument<number | bigint>,
907
+ tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>
908
+ ];
909
+ }
910
+ export declare function calculateReserveAmount(options: CalculateReserveAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
911
911
  export interface IsOptionCollateralOrderArguments {
912
912
  order: RawTransactionArgument<string>;
913
913
  }
@@ -915,7 +915,7 @@ export interface IsOptionCollateralOrderOptions {
915
915
  package?: string;
916
916
  arguments: IsOptionCollateralOrderArguments | [order: RawTransactionArgument<string>];
917
917
  }
918
- export declare function isOptionCollateralOrder(options: IsOptionCollateralOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
918
+ export declare function isOptionCollateralOrder(options: IsOptionCollateralOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
919
919
  export interface GetOrderCollateralTokenArguments {
920
920
  order: RawTransactionArgument<string>;
921
921
  }
@@ -923,7 +923,7 @@ export interface GetOrderCollateralTokenOptions {
923
923
  package?: string;
924
924
  arguments: GetOrderCollateralTokenArguments | [order: RawTransactionArgument<string>];
925
925
  }
926
- export declare function getOrderCollateralToken(options: GetOrderCollateralTokenOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
926
+ export declare function getOrderCollateralToken(options: GetOrderCollateralTokenOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
927
927
  export interface GetOrderCollateralTokenDecimalArguments {
928
928
  order: RawTransactionArgument<string>;
929
929
  }
@@ -931,7 +931,7 @@ export interface GetOrderCollateralTokenDecimalOptions {
931
931
  package?: string;
932
932
  arguments: GetOrderCollateralTokenDecimalArguments | [order: RawTransactionArgument<string>];
933
933
  }
934
- export declare function getOrderCollateralTokenDecimal(options: GetOrderCollateralTokenDecimalOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
934
+ export declare function getOrderCollateralTokenDecimal(options: GetOrderCollateralTokenDecimalOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
935
935
  export interface GetOrderTradingSymbolArguments {
936
936
  order: RawTransactionArgument<string>;
937
937
  }
@@ -939,7 +939,7 @@ export interface GetOrderTradingSymbolOptions {
939
939
  package?: string;
940
940
  arguments: GetOrderTradingSymbolArguments | [order: RawTransactionArgument<string>];
941
941
  }
942
- export declare function getOrderTradingSymbol(options: GetOrderTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
942
+ export declare function getOrderTradingSymbol(options: GetOrderTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
943
943
  export interface GetOrderPriceArguments {
944
944
  order: RawTransactionArgument<string>;
945
945
  }
@@ -947,7 +947,7 @@ export interface GetOrderPriceOptions {
947
947
  package?: string;
948
948
  arguments: GetOrderPriceArguments | [order: RawTransactionArgument<string>];
949
949
  }
950
- export declare function getOrderPrice(options: GetOrderPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
950
+ export declare function getOrderPrice(options: GetOrderPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
951
951
  export interface GetOrderUserArguments {
952
952
  order: RawTransactionArgument<string>;
953
953
  }
@@ -955,7 +955,7 @@ export interface GetOrderUserOptions {
955
955
  package?: string;
956
956
  arguments: GetOrderUserArguments | [order: RawTransactionArgument<string>];
957
957
  }
958
- export declare function getOrderUser(options: GetOrderUserOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
958
+ export declare function getOrderUser(options: GetOrderUserOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
959
959
  export interface GetOrderIdArguments {
960
960
  order: RawTransactionArgument<string>;
961
961
  }
@@ -963,7 +963,7 @@ export interface GetOrderIdOptions {
963
963
  package?: string;
964
964
  arguments: GetOrderIdArguments | [order: RawTransactionArgument<string>];
965
965
  }
966
- export declare function getOrderId(options: GetOrderIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
966
+ export declare function getOrderId(options: GetOrderIdOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
967
967
  export interface GetOrderSizeArguments {
968
968
  order: RawTransactionArgument<string>;
969
969
  }
@@ -971,7 +971,7 @@ export interface GetOrderSizeOptions {
971
971
  package?: string;
972
972
  arguments: GetOrderSizeArguments | [order: RawTransactionArgument<string>];
973
973
  }
974
- export declare function getOrderSize(options: GetOrderSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
974
+ export declare function getOrderSize(options: GetOrderSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
975
975
  export interface GetOrderSideArguments {
976
976
  order: RawTransactionArgument<string>;
977
977
  }
@@ -979,7 +979,7 @@ export interface GetOrderSideOptions {
979
979
  package?: string;
980
980
  arguments: GetOrderSideArguments | [order: RawTransactionArgument<string>];
981
981
  }
982
- export declare function getOrderSide(options: GetOrderSideOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
982
+ export declare function getOrderSide(options: GetOrderSideOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
983
983
  export interface GetOrderReduceOnlyArguments {
984
984
  order: RawTransactionArgument<string>;
985
985
  }
@@ -987,7 +987,7 @@ export interface GetOrderReduceOnlyOptions {
987
987
  package?: string;
988
988
  arguments: GetOrderReduceOnlyArguments | [order: RawTransactionArgument<string>];
989
989
  }
990
- export declare function getOrderReduceOnly(options: GetOrderReduceOnlyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
990
+ export declare function getOrderReduceOnly(options: GetOrderReduceOnlyOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
991
991
  export interface GetOrderLinkedPositionIdArguments {
992
992
  order: RawTransactionArgument<string>;
993
993
  }
@@ -995,7 +995,7 @@ export interface GetOrderLinkedPositionIdOptions {
995
995
  package?: string;
996
996
  arguments: GetOrderLinkedPositionIdArguments | [order: RawTransactionArgument<string>];
997
997
  }
998
- export declare function getOrderLinkedPositionId(options: GetOrderLinkedPositionIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
998
+ export declare function getOrderLinkedPositionId(options: GetOrderLinkedPositionIdOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
999
999
  export interface GetOrderTypeTagArguments {
1000
1000
  order: RawTransactionArgument<string>;
1001
1001
  }
@@ -1003,7 +1003,7 @@ export interface GetOrderTypeTagOptions {
1003
1003
  package?: string;
1004
1004
  arguments: GetOrderTypeTagArguments | [order: RawTransactionArgument<string>];
1005
1005
  }
1006
- export declare function getOrderTypeTag(options: GetOrderTypeTagOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1006
+ export declare function getOrderTypeTag(options: GetOrderTypeTagOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1007
1007
  export interface GetOrderCollateralAmountArguments {
1008
1008
  order: RawTransactionArgument<string>;
1009
1009
  }
@@ -1012,7 +1012,7 @@ export interface GetOrderCollateralAmountOptions {
1012
1012
  arguments: GetOrderCollateralAmountArguments | [order: RawTransactionArgument<string>];
1013
1013
  typeArguments: [string];
1014
1014
  }
1015
- export declare function getOrderCollateralAmount(options: GetOrderCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1015
+ export declare function getOrderCollateralAmount(options: GetOrderCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1016
1016
  export interface GetOptionCollateralOrderCollateralAmountArguments {
1017
1017
  dovRegistry: RawTransactionArgument<string>;
1018
1018
  typusOracleTradingSymbol: RawTransactionArgument<string>;
@@ -1029,27 +1029,31 @@ export interface GetOptionCollateralOrderCollateralAmountOptions {
1029
1029
  ];
1030
1030
  typeArguments: [string];
1031
1031
  }
1032
- export declare function getOptionCollateralOrderCollateralAmount(options: GetOptionCollateralOrderCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1033
- export interface GetOrderFilledFeeArguments {
1034
- order: RawTransactionArgument<string>;
1032
+ export declare function getOptionCollateralOrderCollateralAmount(options: GetOptionCollateralOrderCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1033
+ export interface CalculateTradingFeeArguments {
1034
+ size: RawTransactionArgument<number | bigint>;
1035
+ sizeDecimal: RawTransactionArgument<number | bigint>;
1035
1036
  collateralOraclePrice: RawTransactionArgument<number | bigint>;
1036
1037
  collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>;
1037
1038
  tradingPairOraclePrice: RawTransactionArgument<number | bigint>;
1038
1039
  tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>;
1039
1040
  tradingFeeMbp: RawTransactionArgument<number | bigint>;
1041
+ collateralTokenDecimal: RawTransactionArgument<number | bigint>;
1040
1042
  }
1041
- export interface GetOrderFilledFeeOptions {
1043
+ export interface CalculateTradingFeeOptions {
1042
1044
  package?: string;
1043
- arguments: GetOrderFilledFeeArguments | [
1044
- order: RawTransactionArgument<string>,
1045
+ arguments: CalculateTradingFeeArguments | [
1046
+ size: RawTransactionArgument<number | bigint>,
1047
+ sizeDecimal: RawTransactionArgument<number | bigint>,
1045
1048
  collateralOraclePrice: RawTransactionArgument<number | bigint>,
1046
1049
  collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>,
1047
1050
  tradingPairOraclePrice: RawTransactionArgument<number | bigint>,
1048
1051
  tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>,
1049
- tradingFeeMbp: RawTransactionArgument<number | bigint>
1052
+ tradingFeeMbp: RawTransactionArgument<number | bigint>,
1053
+ collateralTokenDecimal: RawTransactionArgument<number | bigint>
1050
1054
  ];
1051
1055
  }
1052
- export declare function getOrderFilledFee(options: GetOrderFilledFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1056
+ export declare function calculateTradingFee(options: CalculateTradingFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1053
1057
  export interface SplitBidReceiptArguments {
1054
1058
  dovRegistry: RawTransactionArgument<string>;
1055
1059
  position: RawTransactionArgument<string>;
@@ -1063,7 +1067,7 @@ export interface SplitBidReceiptOptions {
1063
1067
  size: RawTransactionArgument<number | bigint>
1064
1068
  ];
1065
1069
  }
1066
- export declare function splitBidReceipt(options: SplitBidReceiptOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1070
+ export declare function splitBidReceipt(options: SplitBidReceiptOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1067
1071
  export interface IsOptionCollateralPositionArguments {
1068
1072
  position: RawTransactionArgument<string>;
1069
1073
  }
@@ -1071,7 +1075,7 @@ export interface IsOptionCollateralPositionOptions {
1071
1075
  package?: string;
1072
1076
  arguments: IsOptionCollateralPositionArguments | [position: RawTransactionArgument<string>];
1073
1077
  }
1074
- export declare function isOptionCollateralPosition(options: IsOptionCollateralPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1078
+ export declare function isOptionCollateralPosition(options: IsOptionCollateralPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1075
1079
  export interface EmitRealizedFundingEventArguments {
1076
1080
  user: RawTransactionArgument<string>;
1077
1081
  collateralToken: RawTransactionArgument<string>;
@@ -1095,7 +1099,25 @@ export interface EmitRealizedFundingEventOptions {
1095
1099
  u64Padding: RawTransactionArgument<number | bigint[]>
1096
1100
  ];
1097
1101
  }
1098
- export declare function emitRealizedFundingEvent(options: EmitRealizedFundingEventOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1102
+ export declare function emitRealizedFundingEvent(options: EmitRealizedFundingEventOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1103
+ export interface CheckPositionUpdateTimestampArguments {
1104
+ position: RawTransactionArgument<string>;
1105
+ thresholdTsMs: RawTransactionArgument<number | bigint>;
1106
+ }
1107
+ export interface CheckPositionUpdateTimestampOptions {
1108
+ package?: string;
1109
+ arguments: CheckPositionUpdateTimestampArguments | [position: RawTransactionArgument<string>, thresholdTsMs: RawTransactionArgument<number | bigint>];
1110
+ }
1111
+ export declare function checkPositionUpdateTimestamp(options: CheckPositionUpdateTimestampOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1112
+ export interface CheckPositionUpdateTimestamp_Arguments {
1113
+ position: RawTransactionArgument<string>;
1114
+ thresholdTsMs: RawTransactionArgument<number | bigint>;
1115
+ }
1116
+ export interface CheckPositionUpdateTimestamp_Options {
1117
+ package?: string;
1118
+ arguments: CheckPositionUpdateTimestamp_Arguments | [position: RawTransactionArgument<string>, thresholdTsMs: RawTransactionArgument<number | bigint>];
1119
+ }
1120
+ export declare function checkPositionUpdateTimestamp_(options: CheckPositionUpdateTimestamp_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1099
1121
  export interface GetPositionIdArguments {
1100
1122
  position: RawTransactionArgument<string>;
1101
1123
  }
@@ -1103,7 +1125,7 @@ export interface GetPositionIdOptions {
1103
1125
  package?: string;
1104
1126
  arguments: GetPositionIdArguments | [position: RawTransactionArgument<string>];
1105
1127
  }
1106
- export declare function getPositionId(options: GetPositionIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1128
+ export declare function getPositionId(options: GetPositionIdOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1107
1129
  export interface GetPositionSizeArguments {
1108
1130
  position: RawTransactionArgument<string>;
1109
1131
  }
@@ -1111,7 +1133,7 @@ export interface GetPositionSizeOptions {
1111
1133
  package?: string;
1112
1134
  arguments: GetPositionSizeArguments | [position: RawTransactionArgument<string>];
1113
1135
  }
1114
- export declare function getPositionSize(options: GetPositionSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1136
+ export declare function getPositionSize(options: GetPositionSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1115
1137
  export interface GetPositionSideArguments {
1116
1138
  position: RawTransactionArgument<string>;
1117
1139
  }
@@ -1119,7 +1141,7 @@ export interface GetPositionSideOptions {
1119
1141
  package?: string;
1120
1142
  arguments: GetPositionSideArguments | [position: RawTransactionArgument<string>];
1121
1143
  }
1122
- export declare function getPositionSide(options: GetPositionSideOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1144
+ export declare function getPositionSide(options: GetPositionSideOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1123
1145
  export interface GetPositionUserArguments {
1124
1146
  position: RawTransactionArgument<string>;
1125
1147
  }
@@ -1127,7 +1149,7 @@ export interface GetPositionUserOptions {
1127
1149
  package?: string;
1128
1150
  arguments: GetPositionUserArguments | [position: RawTransactionArgument<string>];
1129
1151
  }
1130
- export declare function getPositionUser(options: GetPositionUserOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1152
+ export declare function getPositionUser(options: GetPositionUserOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1131
1153
  export interface GetPositionSymbolArguments {
1132
1154
  position: RawTransactionArgument<string>;
1133
1155
  }
@@ -1135,7 +1157,7 @@ export interface GetPositionSymbolOptions {
1135
1157
  package?: string;
1136
1158
  arguments: GetPositionSymbolArguments | [position: RawTransactionArgument<string>];
1137
1159
  }
1138
- export declare function getPositionSymbol(options: GetPositionSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1160
+ export declare function getPositionSymbol(options: GetPositionSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1139
1161
  export interface GetPositionOptionCollateralInfoArguments {
1140
1162
  position: RawTransactionArgument<string>;
1141
1163
  }
@@ -1143,7 +1165,7 @@ export interface GetPositionOptionCollateralInfoOptions {
1143
1165
  package?: string;
1144
1166
  arguments: GetPositionOptionCollateralInfoArguments | [position: RawTransactionArgument<string>];
1145
1167
  }
1146
- export declare function getPositionOptionCollateralInfo(options: GetPositionOptionCollateralInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1168
+ export declare function getPositionOptionCollateralInfo(options: GetPositionOptionCollateralInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1147
1169
  export interface GetReserveAmountArguments {
1148
1170
  position: RawTransactionArgument<string>;
1149
1171
  }
@@ -1151,7 +1173,7 @@ export interface GetReserveAmountOptions {
1151
1173
  package?: string;
1152
1174
  arguments: GetReserveAmountArguments | [position: RawTransactionArgument<string>];
1153
1175
  }
1154
- export declare function getReserveAmount(options: GetReserveAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1176
+ export declare function getReserveAmount(options: GetReserveAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1155
1177
  export interface GetPositionSizeDecimalArguments {
1156
1178
  position: RawTransactionArgument<string>;
1157
1179
  }
@@ -1159,7 +1181,7 @@ export interface GetPositionSizeDecimalOptions {
1159
1181
  package?: string;
1160
1182
  arguments: GetPositionSizeDecimalArguments | [position: RawTransactionArgument<string>];
1161
1183
  }
1162
- export declare function getPositionSizeDecimal(options: GetPositionSizeDecimalOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1184
+ export declare function getPositionSizeDecimal(options: GetPositionSizeDecimalOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1163
1185
  export interface GetPositionCollateralTokenDecimalArguments {
1164
1186
  position: RawTransactionArgument<string>;
1165
1187
  }
@@ -1167,7 +1189,7 @@ export interface GetPositionCollateralTokenDecimalOptions {
1167
1189
  package?: string;
1168
1190
  arguments: GetPositionCollateralTokenDecimalArguments | [position: RawTransactionArgument<string>];
1169
1191
  }
1170
- export declare function getPositionCollateralTokenDecimal(options: GetPositionCollateralTokenDecimalOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1192
+ export declare function getPositionCollateralTokenDecimal(options: GetPositionCollateralTokenDecimalOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1171
1193
  export interface CalculateUnrealizedCostArguments {
1172
1194
  position: RawTransactionArgument<string>;
1173
1195
  }
@@ -1175,7 +1197,7 @@ export interface CalculateUnrealizedCostOptions {
1175
1197
  package?: string;
1176
1198
  arguments: CalculateUnrealizedCostArguments | [position: RawTransactionArgument<string>];
1177
1199
  }
1178
- export declare function calculateUnrealizedCost(options: CalculateUnrealizedCostOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1200
+ export declare function calculateUnrealizedCost(options: CalculateUnrealizedCostOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1179
1201
  export interface GetPositionLinkedOrderIdsArguments {
1180
1202
  position: RawTransactionArgument<string>;
1181
1203
  }
@@ -1183,7 +1205,7 @@ export interface GetPositionLinkedOrderIdsOptions {
1183
1205
  package?: string;
1184
1206
  arguments: GetPositionLinkedOrderIdsArguments | [position: RawTransactionArgument<string>];
1185
1207
  }
1186
- export declare function getPositionLinkedOrderIds(options: GetPositionLinkedOrderIdsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1208
+ export declare function getPositionLinkedOrderIds(options: GetPositionLinkedOrderIdsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1187
1209
  export interface GetPositionCollateralTokenTypeArguments {
1188
1210
  position: RawTransactionArgument<string>;
1189
1211
  }
@@ -1191,7 +1213,7 @@ export interface GetPositionCollateralTokenTypeOptions {
1191
1213
  package?: string;
1192
1214
  arguments: GetPositionCollateralTokenTypeArguments | [position: RawTransactionArgument<string>];
1193
1215
  }
1194
- export declare function getPositionCollateralTokenType(options: GetPositionCollateralTokenTypeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1216
+ export declare function getPositionCollateralTokenType(options: GetPositionCollateralTokenTypeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1195
1217
  export interface GetPositionCollateralAmountArguments {
1196
1218
  position: RawTransactionArgument<string>;
1197
1219
  }
@@ -1200,7 +1222,7 @@ export interface GetPositionCollateralAmountOptions {
1200
1222
  arguments: GetPositionCollateralAmountArguments | [position: RawTransactionArgument<string>];
1201
1223
  typeArguments: [string];
1202
1224
  }
1203
- export declare function getPositionCollateralAmount(options: GetPositionCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1225
+ export declare function getPositionCollateralAmount(options: GetPositionCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1204
1226
  export interface GetOptionPositionCollateralAmountArguments {
1205
1227
  dovRegistry: RawTransactionArgument<string>;
1206
1228
  typusOracleTradingSymbol: RawTransactionArgument<string>;
@@ -1217,7 +1239,7 @@ export interface GetOptionPositionCollateralAmountOptions {
1217
1239
  ];
1218
1240
  typeArguments: [string];
1219
1241
  }
1220
- export declare function getOptionPositionCollateralAmount(options: GetOptionPositionCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1242
+ export declare function getOptionPositionCollateralAmount(options: GetOptionPositionCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1221
1243
  export interface OptionPositionBidReceiptsExpiredArguments {
1222
1244
  dovRegistry: RawTransactionArgument<string>;
1223
1245
  position: RawTransactionArgument<string>;
@@ -1226,7 +1248,7 @@ export interface OptionPositionBidReceiptsExpiredOptions {
1226
1248
  package?: string;
1227
1249
  arguments: OptionPositionBidReceiptsExpiredArguments | [dovRegistry: RawTransactionArgument<string>, position: RawTransactionArgument<string>];
1228
1250
  }
1229
- export declare function optionPositionBidReceiptsExpired(options: OptionPositionBidReceiptsExpiredOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1251
+ export declare function optionPositionBidReceiptsExpired(options: OptionPositionBidReceiptsExpiredOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1230
1252
  export interface GetOptionPositionExerciseValueArguments {
1231
1253
  dovRegistry: RawTransactionArgument<string>;
1232
1254
  typusOracleTradingSymbol: RawTransactionArgument<string>;
@@ -1243,9 +1265,9 @@ export interface GetOptionPositionExerciseValueOptions {
1243
1265
  ];
1244
1266
  typeArguments: [string];
1245
1267
  }
1246
- export declare function getOptionPositionExerciseValue(options: GetOptionPositionExerciseValueOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1268
+ export declare function getOptionPositionExerciseValue(options: GetOptionPositionExerciseValueOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
1247
1269
  export interface GetMaxOrderTypeTagOptions {
1248
1270
  package?: string;
1249
1271
  arguments?: [];
1250
1272
  }
1251
- export declare function getMaxOrderTypeTag(options?: GetMaxOrderTypeTagOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1273
+ export declare function getMaxOrderTypeTag(options?: GetMaxOrderTypeTagOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;