@typus/typus-perp-sdk 1.2.1 → 1.3.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.
- package/dist/src/client.d.ts +22 -3
- package/dist/src/client.js +66 -8
- package/dist/src/fetch.d.ts +61 -20
- package/dist/src/fetch.js +20 -14
- package/dist/src/generated/typus_perp/admin.d.ts +65 -21
- package/dist/src/generated/typus_perp/admin.js +139 -123
- package/dist/src/generated/typus_perp/competition.d.ts +5 -17
- package/dist/src/generated/typus_perp/competition.js +63 -39
- package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +9 -9
- package/dist/src/generated/typus_perp/deps/std/type_name.js +13 -16
- package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +2 -2
- package/dist/src/generated/typus_perp/deps/sui/balance.js +5 -8
- package/dist/src/generated/typus_perp/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_perp/deps/sui/object.js +13 -0
- package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +5 -3
- package/dist/src/generated/typus_perp/deps/sui/object_table.js +40 -9
- package/dist/src/generated/typus_perp/deps/sui/table.d.ts +5 -3
- package/dist/src/generated/typus_perp/deps/sui/table.js +40 -9
- package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +5 -3
- package/dist/src/generated/typus_perp/deps/sui/vec_set.js +5 -8
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +4 -2
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +9 -12
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +12 -6
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +41 -10
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +4 -2
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +40 -9
- package/dist/src/generated/typus_perp/error.d.ts +201 -94
- package/dist/src/generated/typus_perp/error.js +300 -273
- package/dist/src/generated/typus_perp/escrow.d.ts +14 -6
- package/dist/src/generated/typus_perp/escrow.js +38 -37
- package/dist/src/generated/typus_perp/lending.d.ts +1 -1
- package/dist/src/generated/typus_perp/lending.js +3 -3
- package/dist/src/generated/typus_perp/lp_pool.d.ts +438 -392
- package/dist/src/generated/typus_perp/lp_pool.js +987 -934
- package/dist/src/generated/typus_perp/math.d.ts +13 -16
- package/dist/src/generated/typus_perp/math.js +51 -50
- package/dist/src/generated/typus_perp/position.d.ts +194 -106
- package/dist/src/generated/typus_perp/position.js +714 -733
- package/dist/src/generated/typus_perp/profit_vault.d.ts +62 -20
- package/dist/src/generated/typus_perp/profit_vault.js +162 -148
- package/dist/src/generated/typus_perp/symbol.d.ts +12 -5
- package/dist/src/generated/typus_perp/symbol.js +28 -25
- package/dist/src/generated/typus_perp/trading.d.ts +956 -139
- package/dist/src/generated/typus_perp/trading.js +1577 -1151
- package/dist/src/generated/typus_perp/treasury_caps.d.ts +16 -7
- package/dist/src/generated/typus_perp/treasury_caps.js +60 -24
- package/dist/src/generated/typus_perp/user_account.d.ts +40 -0
- package/dist/src/generated/typus_perp/user_account.js +66 -0
- package/dist/src/generated/typus_stake_pool/admin.d.ts +144 -10
- package/dist/src/generated/typus_stake_pool/admin.js +132 -49
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +9 -9
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +13 -16
- package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/object.js +13 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +31 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +5 -3
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +5 -8
- package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +180 -79
- package/dist/src/generated/typus_stake_pool/stake_pool.js +446 -414
- package/dist/src/generated/utils/index.d.ts +4 -23
- package/dist/src/generated/utils/index.js +34 -54
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.js +35 -13
- package/dist/src/user/order.d.ts +0 -4
- package/dist/src/user/order.js +31 -74
- package/dist/src/user/orderWithBidReceipt.d.ts +0 -3
- package/dist/src/user/orderWithBidReceipt.js +24 -45
- package/dist/src/user/tlp.d.ts +0 -5
- package/dist/src/user/tlp.js +28 -73
- package/package.json +42 -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
|
|
5
|
-
import { type Transaction } from
|
|
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:
|
|
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:
|
|
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:
|
|
13
|
-
|
|
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
|
|
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:
|
|
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:
|
|
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
|
|
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,18 +123,20 @@ 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. */
|
|
115
|
-
cool_down_threshold_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
116
126
|
/** Padding for future use. */
|
|
117
127
|
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
118
128
|
length: number;
|
|
119
129
|
}, string>;
|
|
120
130
|
}, "@typus/perp::trading::MarketConfig">;
|
|
121
131
|
export declare const SymbolMarket: MoveStruct<{
|
|
122
|
-
id:
|
|
132
|
+
id: MoveStruct<{
|
|
133
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
134
|
+
}, "0x2::object::UID">;
|
|
123
135
|
/** A keyed big vector of user positions. */
|
|
124
136
|
user_positions: MoveStruct<{
|
|
125
|
-
id:
|
|
137
|
+
id: MoveStruct<{
|
|
138
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
139
|
+
}, "0x2::object::UID">;
|
|
126
140
|
key_type: MoveStruct<{
|
|
127
141
|
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
128
142
|
}, "std::type_name::TypeName">;
|
|
@@ -134,9 +148,13 @@ export declare const SymbolMarket: MoveStruct<{
|
|
|
134
148
|
length: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
135
149
|
}, "typus::keyed_big_vector::KeyedBigVector">;
|
|
136
150
|
/** The UID of the token collateral orders. */
|
|
137
|
-
token_collateral_orders:
|
|
151
|
+
token_collateral_orders: MoveStruct<{
|
|
152
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
153
|
+
}, "0x2::object::UID">;
|
|
138
154
|
/** The UID of the option collateral orders. */
|
|
139
|
-
option_collateral_orders:
|
|
155
|
+
option_collateral_orders: MoveStruct<{
|
|
156
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
157
|
+
}, "0x2::object::UID">;
|
|
140
158
|
/** Information about the market. */
|
|
141
159
|
market_info: MoveStruct<{
|
|
142
160
|
/** Whether the market is active. */
|
|
@@ -194,8 +212,6 @@ export declare const SymbolMarket: MoveStruct<{
|
|
|
194
212
|
funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
195
213
|
/** The experience multiplier. */
|
|
196
214
|
exp_multiplier: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
197
|
-
/** The position cool-down threshold in milliseconds. */
|
|
198
|
-
cool_down_threshold_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
199
215
|
/** Padding for future use. */
|
|
200
216
|
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
201
217
|
length: number;
|
|
@@ -205,6 +221,33 @@ export declare const SymbolMarket: MoveStruct<{
|
|
|
205
221
|
export declare const USD: MoveStruct<{
|
|
206
222
|
dummy_field: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
207
223
|
}, "@typus/perp::trading::USD">;
|
|
224
|
+
export declare const Referrals: MoveStruct<{
|
|
225
|
+
id: MoveStruct<{
|
|
226
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
227
|
+
}, "0x2::object::UID">;
|
|
228
|
+
referral_infos: 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
|
+
size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
233
|
+
}, "0x2::table::Table">;
|
|
234
|
+
referrals: MoveStruct<{
|
|
235
|
+
id: MoveStruct<{
|
|
236
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
237
|
+
}, "0x2::object::UID">;
|
|
238
|
+
size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
239
|
+
}, "0x2::table::Table">;
|
|
240
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
241
|
+
length: number;
|
|
242
|
+
}, string>;
|
|
243
|
+
}, "@typus/perp::trading::Referrals">;
|
|
244
|
+
export declare const ReferralInfo: MoveStruct<{
|
|
245
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
246
|
+
fee_reduction_bp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
247
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
248
|
+
length: number;
|
|
249
|
+
}, string>;
|
|
250
|
+
}, "@typus/perp::trading::ReferralInfo">;
|
|
208
251
|
export declare const NewMarketsEvent: MoveStruct<{
|
|
209
252
|
index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
210
253
|
lp_token_type: MoveStruct<{
|
|
@@ -278,8 +321,6 @@ export declare const AddTradingSymbolEvent: MoveStruct<{
|
|
|
278
321
|
funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
279
322
|
/** The experience multiplier. */
|
|
280
323
|
exp_multiplier: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
281
|
-
/** The position cool-down threshold in milliseconds. */
|
|
282
|
-
cool_down_threshold_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
283
324
|
/** Padding for future use. */
|
|
284
325
|
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
285
326
|
length: number;
|
|
@@ -323,8 +364,6 @@ export declare const UpdateMarketConfigEvent: MoveStruct<{
|
|
|
323
364
|
funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
324
365
|
/** The experience multiplier. */
|
|
325
366
|
exp_multiplier: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
326
|
-
/** The position cool-down threshold in milliseconds. */
|
|
327
|
-
cool_down_threshold_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
328
367
|
/** Padding for future use. */
|
|
329
368
|
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
330
369
|
length: number;
|
|
@@ -351,8 +390,6 @@ export declare const UpdateMarketConfigEvent: MoveStruct<{
|
|
|
351
390
|
funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
352
391
|
/** The experience multiplier. */
|
|
353
392
|
exp_multiplier: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
354
|
-
/** The position cool-down threshold in milliseconds. */
|
|
355
|
-
cool_down_threshold_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
356
393
|
/** Padding for future use. */
|
|
357
394
|
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
358
395
|
length: number;
|
|
@@ -411,7 +448,6 @@ export declare const CreateTradingOrderEvent: MoveStruct<{
|
|
|
411
448
|
is_stop_order: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
412
449
|
size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
413
450
|
trigger_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
414
|
-
trading_pair_oracle_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
415
451
|
filled: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
416
452
|
filled_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
417
453
|
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
@@ -427,9 +463,15 @@ export declare const ManagerCancelOrdersEvent: MoveStruct<{
|
|
|
427
463
|
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
428
464
|
}, "std::type_name::TypeName">;
|
|
429
465
|
order_type_tag: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<number, number, "u8">;
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
466
|
+
order_ids: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
467
|
+
length: number;
|
|
468
|
+
}, string>;
|
|
469
|
+
order_sizes: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
470
|
+
length: number;
|
|
471
|
+
}, string>;
|
|
472
|
+
order_prices: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
473
|
+
length: number;
|
|
474
|
+
}, string>;
|
|
433
475
|
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
434
476
|
length: number;
|
|
435
477
|
}, string>;
|
|
@@ -665,11 +707,89 @@ export declare const RealizeOptionPositionEvent: MoveStruct<{
|
|
|
665
707
|
length: number;
|
|
666
708
|
}, string>;
|
|
667
709
|
}, "@typus/perp::trading::RealizeOptionPositionEvent">;
|
|
710
|
+
export declare const MigrateMarketOracleIdEvent: MoveStruct<{
|
|
711
|
+
sender: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
712
|
+
new_oracle_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
713
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
714
|
+
length: number;
|
|
715
|
+
}, string>;
|
|
716
|
+
}, "@typus/perp::trading::MigrateMarketOracleIdEvent">;
|
|
668
717
|
export interface InitOptions {
|
|
669
718
|
package?: string;
|
|
670
|
-
arguments?: [
|
|
719
|
+
arguments?: [
|
|
720
|
+
];
|
|
671
721
|
}
|
|
672
722
|
export declare function init(options?: InitOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
723
|
+
export interface InitReferralTableArguments {
|
|
724
|
+
version: RawTransactionArgument<string>;
|
|
725
|
+
registry: RawTransactionArgument<string>;
|
|
726
|
+
}
|
|
727
|
+
export interface InitReferralTableOptions {
|
|
728
|
+
package?: string;
|
|
729
|
+
arguments: InitReferralTableArguments | [
|
|
730
|
+
version: RawTransactionArgument<string>,
|
|
731
|
+
registry: RawTransactionArgument<string>
|
|
732
|
+
];
|
|
733
|
+
}
|
|
734
|
+
export declare function initReferralTable(options: InitReferralTableOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
735
|
+
export interface AddReferralInfoArguments {
|
|
736
|
+
version: RawTransactionArgument<string>;
|
|
737
|
+
registry: RawTransactionArgument<string>;
|
|
738
|
+
code: RawTransactionArgument<string>;
|
|
739
|
+
feeReductionBp: RawTransactionArgument<number | bigint>;
|
|
740
|
+
}
|
|
741
|
+
export interface AddReferralInfoOptions {
|
|
742
|
+
package?: string;
|
|
743
|
+
arguments: AddReferralInfoArguments | [
|
|
744
|
+
version: RawTransactionArgument<string>,
|
|
745
|
+
registry: RawTransactionArgument<string>,
|
|
746
|
+
code: RawTransactionArgument<string>,
|
|
747
|
+
feeReductionBp: RawTransactionArgument<number | bigint>
|
|
748
|
+
];
|
|
749
|
+
}
|
|
750
|
+
export declare function addReferralInfo(options: AddReferralInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
751
|
+
export interface RemoveReferralInfoArguments {
|
|
752
|
+
version: RawTransactionArgument<string>;
|
|
753
|
+
registry: RawTransactionArgument<string>;
|
|
754
|
+
code: RawTransactionArgument<string>;
|
|
755
|
+
}
|
|
756
|
+
export interface RemoveReferralInfoOptions {
|
|
757
|
+
package?: string;
|
|
758
|
+
arguments: RemoveReferralInfoArguments | [
|
|
759
|
+
version: RawTransactionArgument<string>,
|
|
760
|
+
registry: RawTransactionArgument<string>,
|
|
761
|
+
code: RawTransactionArgument<string>
|
|
762
|
+
];
|
|
763
|
+
}
|
|
764
|
+
export declare function removeReferralInfo(options: RemoveReferralInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
765
|
+
export interface SetReferralArguments {
|
|
766
|
+
version: RawTransactionArgument<string>;
|
|
767
|
+
registry: RawTransactionArgument<string>;
|
|
768
|
+
code: RawTransactionArgument<string>;
|
|
769
|
+
}
|
|
770
|
+
export interface SetReferralOptions {
|
|
771
|
+
package?: string;
|
|
772
|
+
arguments: SetReferralArguments | [
|
|
773
|
+
version: RawTransactionArgument<string>,
|
|
774
|
+
registry: RawTransactionArgument<string>,
|
|
775
|
+
code: RawTransactionArgument<string>
|
|
776
|
+
];
|
|
777
|
+
}
|
|
778
|
+
export declare function setReferral(options: SetReferralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
779
|
+
export interface UnsetReferralArguments {
|
|
780
|
+
version: RawTransactionArgument<string>;
|
|
781
|
+
registry: RawTransactionArgument<string>;
|
|
782
|
+
user: RawTransactionArgument<string>;
|
|
783
|
+
}
|
|
784
|
+
export interface UnsetReferralOptions {
|
|
785
|
+
package?: string;
|
|
786
|
+
arguments: UnsetReferralArguments | [
|
|
787
|
+
version: RawTransactionArgument<string>,
|
|
788
|
+
registry: RawTransactionArgument<string>,
|
|
789
|
+
user: RawTransactionArgument<string>
|
|
790
|
+
];
|
|
791
|
+
}
|
|
792
|
+
export declare function unsetReferral(options: UnsetReferralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
673
793
|
export interface NewMarketsArguments {
|
|
674
794
|
version: RawTransactionArgument<string>;
|
|
675
795
|
registry: RawTransactionArgument<string>;
|
|
@@ -682,7 +802,10 @@ export interface NewMarketsOptions {
|
|
|
682
802
|
registry: RawTransactionArgument<string>,
|
|
683
803
|
protocolFeeShareBp: RawTransactionArgument<number | bigint>
|
|
684
804
|
];
|
|
685
|
-
typeArguments: [
|
|
805
|
+
typeArguments: [
|
|
806
|
+
string,
|
|
807
|
+
string
|
|
808
|
+
];
|
|
686
809
|
}
|
|
687
810
|
/** [Authorized Function] Creates a new market. */
|
|
688
811
|
export declare function newMarkets(options: NewMarketsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -700,7 +823,6 @@ export interface AddTradingSymbolArguments {
|
|
|
700
823
|
basicFundingRate: RawTransactionArgument<number | bigint>;
|
|
701
824
|
fundingIntervalTsMs: RawTransactionArgument<number | bigint>;
|
|
702
825
|
expMultiplier: RawTransactionArgument<number | bigint>;
|
|
703
|
-
coolDownThresholdTsMs: RawTransactionArgument<number | bigint>;
|
|
704
826
|
maxBuyOpenInterest: RawTransactionArgument<number | bigint>;
|
|
705
827
|
maxSellOpenInterest: RawTransactionArgument<number | bigint>;
|
|
706
828
|
maintenanceMarginRateBp: RawTransactionArgument<number | bigint>;
|
|
@@ -725,7 +847,6 @@ export interface AddTradingSymbolOptions {
|
|
|
725
847
|
basicFundingRate: RawTransactionArgument<number | bigint>,
|
|
726
848
|
fundingIntervalTsMs: RawTransactionArgument<number | bigint>,
|
|
727
849
|
expMultiplier: RawTransactionArgument<number | bigint>,
|
|
728
|
-
coolDownThresholdTsMs: RawTransactionArgument<number | bigint>,
|
|
729
850
|
maxBuyOpenInterest: RawTransactionArgument<number | bigint>,
|
|
730
851
|
maxSellOpenInterest: RawTransactionArgument<number | bigint>,
|
|
731
852
|
maintenanceMarginRateBp: RawTransactionArgument<number | bigint>,
|
|
@@ -734,10 +855,64 @@ export interface AddTradingSymbolOptions {
|
|
|
734
855
|
tradingFeeFormulaVersion: RawTransactionArgument<number | bigint>,
|
|
735
856
|
profitVaultFlag: RawTransactionArgument<number | bigint>
|
|
736
857
|
];
|
|
737
|
-
typeArguments: [
|
|
858
|
+
typeArguments: [
|
|
859
|
+
string
|
|
860
|
+
];
|
|
738
861
|
}
|
|
739
|
-
/** [
|
|
862
|
+
/** [DEPRECATED] Use `add_trading_symbol_v2` with `&OracleV2` instead. */
|
|
740
863
|
export declare function addTradingSymbol(options: AddTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
864
|
+
export interface AddTradingSymbolV2Arguments {
|
|
865
|
+
version: RawTransactionArgument<string>;
|
|
866
|
+
registry: RawTransactionArgument<string>;
|
|
867
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
868
|
+
sizeDecimal: RawTransactionArgument<number | bigint>;
|
|
869
|
+
oracleV2: RawTransactionArgument<string>;
|
|
870
|
+
maxLeverageMbp: RawTransactionArgument<number | bigint>;
|
|
871
|
+
optionCollateralMaxLeverageMbp: RawTransactionArgument<number | bigint>;
|
|
872
|
+
minSize: RawTransactionArgument<number | bigint>;
|
|
873
|
+
lotSize: RawTransactionArgument<number | bigint>;
|
|
874
|
+
tradingFeeConfig: RawTransactionArgument<number | bigint[]>;
|
|
875
|
+
basicFundingRate: RawTransactionArgument<number | bigint>;
|
|
876
|
+
fundingIntervalTsMs: RawTransactionArgument<number | bigint>;
|
|
877
|
+
expMultiplier: RawTransactionArgument<number | bigint>;
|
|
878
|
+
maxBuyOpenInterest: RawTransactionArgument<number | bigint>;
|
|
879
|
+
maxSellOpenInterest: RawTransactionArgument<number | bigint>;
|
|
880
|
+
maintenanceMarginRateBp: RawTransactionArgument<number | bigint>;
|
|
881
|
+
optionMaintenanceMarginRateBp: RawTransactionArgument<number | bigint>;
|
|
882
|
+
optionTradingFeeConfig: RawTransactionArgument<number | bigint[]>;
|
|
883
|
+
tradingFeeFormulaVersion: RawTransactionArgument<number | bigint>;
|
|
884
|
+
profitVaultFlag: RawTransactionArgument<number | bigint>;
|
|
885
|
+
}
|
|
886
|
+
export interface AddTradingSymbolV2Options {
|
|
887
|
+
package?: string;
|
|
888
|
+
arguments: AddTradingSymbolV2Arguments | [
|
|
889
|
+
version: RawTransactionArgument<string>,
|
|
890
|
+
registry: RawTransactionArgument<string>,
|
|
891
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
892
|
+
sizeDecimal: RawTransactionArgument<number | bigint>,
|
|
893
|
+
oracleV2: RawTransactionArgument<string>,
|
|
894
|
+
maxLeverageMbp: RawTransactionArgument<number | bigint>,
|
|
895
|
+
optionCollateralMaxLeverageMbp: RawTransactionArgument<number | bigint>,
|
|
896
|
+
minSize: RawTransactionArgument<number | bigint>,
|
|
897
|
+
lotSize: RawTransactionArgument<number | bigint>,
|
|
898
|
+
tradingFeeConfig: RawTransactionArgument<number | bigint[]>,
|
|
899
|
+
basicFundingRate: RawTransactionArgument<number | bigint>,
|
|
900
|
+
fundingIntervalTsMs: RawTransactionArgument<number | bigint>,
|
|
901
|
+
expMultiplier: RawTransactionArgument<number | bigint>,
|
|
902
|
+
maxBuyOpenInterest: RawTransactionArgument<number | bigint>,
|
|
903
|
+
maxSellOpenInterest: RawTransactionArgument<number | bigint>,
|
|
904
|
+
maintenanceMarginRateBp: RawTransactionArgument<number | bigint>,
|
|
905
|
+
optionMaintenanceMarginRateBp: RawTransactionArgument<number | bigint>,
|
|
906
|
+
optionTradingFeeConfig: RawTransactionArgument<number | bigint[]>,
|
|
907
|
+
tradingFeeFormulaVersion: RawTransactionArgument<number | bigint>,
|
|
908
|
+
profitVaultFlag: RawTransactionArgument<number | bigint>
|
|
909
|
+
];
|
|
910
|
+
typeArguments: [
|
|
911
|
+
string
|
|
912
|
+
];
|
|
913
|
+
}
|
|
914
|
+
/** [Authorized Function] Adds a new trading symbol to a market. */
|
|
915
|
+
export declare function addTradingSymbolV2(options: AddTradingSymbolV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
741
916
|
export interface UpdateProtocolFeeShareBpArguments {
|
|
742
917
|
version: RawTransactionArgument<string>;
|
|
743
918
|
registry: RawTransactionArgument<string>;
|
|
@@ -768,7 +943,6 @@ export interface UpdateMarketConfigArguments {
|
|
|
768
943
|
basicFundingRate: RawTransactionArgument<number | bigint | null>;
|
|
769
944
|
fundingIntervalTsMs: RawTransactionArgument<number | bigint | null>;
|
|
770
945
|
expMultiplier: RawTransactionArgument<number | bigint | null>;
|
|
771
|
-
coolDownThresholdTsMs: RawTransactionArgument<number | bigint | null>;
|
|
772
946
|
maxBuyOpenInterest: RawTransactionArgument<number | bigint | null>;
|
|
773
947
|
maxSellOpenInterest: RawTransactionArgument<number | bigint | null>;
|
|
774
948
|
maintenanceMarginRateBp: RawTransactionArgument<number | bigint | null>;
|
|
@@ -792,7 +966,6 @@ export interface UpdateMarketConfigOptions {
|
|
|
792
966
|
basicFundingRate: RawTransactionArgument<number | bigint | null>,
|
|
793
967
|
fundingIntervalTsMs: RawTransactionArgument<number | bigint | null>,
|
|
794
968
|
expMultiplier: RawTransactionArgument<number | bigint | null>,
|
|
795
|
-
coolDownThresholdTsMs: RawTransactionArgument<number | bigint | null>,
|
|
796
969
|
maxBuyOpenInterest: RawTransactionArgument<number | bigint | null>,
|
|
797
970
|
maxSellOpenInterest: RawTransactionArgument<number | bigint | null>,
|
|
798
971
|
maintenanceMarginRateBp: RawTransactionArgument<number | bigint | null>,
|
|
@@ -801,7 +974,9 @@ export interface UpdateMarketConfigOptions {
|
|
|
801
974
|
tradingFeeFormulaVersion: RawTransactionArgument<number | bigint | null>,
|
|
802
975
|
profitVaultFlag: RawTransactionArgument<number | bigint | null>
|
|
803
976
|
];
|
|
804
|
-
typeArguments: [
|
|
977
|
+
typeArguments: [
|
|
978
|
+
string
|
|
979
|
+
];
|
|
805
980
|
}
|
|
806
981
|
/** [Authorized Function] Updates the market configuration. */
|
|
807
982
|
export declare function updateMarketConfig(options: UpdateMarketConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -847,7 +1022,9 @@ export interface SuspendTradingSymbolOptions {
|
|
|
847
1022
|
registry: RawTransactionArgument<string>,
|
|
848
1023
|
marketIndex: RawTransactionArgument<number | bigint>
|
|
849
1024
|
];
|
|
850
|
-
typeArguments: [
|
|
1025
|
+
typeArguments: [
|
|
1026
|
+
string
|
|
1027
|
+
];
|
|
851
1028
|
}
|
|
852
1029
|
/** [Authorized Function] Suspends a trading symbol. */
|
|
853
1030
|
export declare function suspendTradingSymbol(options: SuspendTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -863,7 +1040,9 @@ export interface ResumeTradingSymbolOptions {
|
|
|
863
1040
|
registry: RawTransactionArgument<string>,
|
|
864
1041
|
marketIndex: RawTransactionArgument<number | bigint>
|
|
865
1042
|
];
|
|
866
|
-
typeArguments: [
|
|
1043
|
+
typeArguments: [
|
|
1044
|
+
string
|
|
1045
|
+
];
|
|
867
1046
|
}
|
|
868
1047
|
/** [Authorized Function] Resumes a trading symbol. */
|
|
869
1048
|
export declare function resumeTradingSymbol(options: ResumeTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -879,7 +1058,9 @@ export interface RemoveTradingSymbolOptions {
|
|
|
879
1058
|
registry: RawTransactionArgument<string>,
|
|
880
1059
|
marketIndex: RawTransactionArgument<number | bigint>
|
|
881
1060
|
];
|
|
882
|
-
typeArguments: [
|
|
1061
|
+
typeArguments: [
|
|
1062
|
+
string
|
|
1063
|
+
];
|
|
883
1064
|
}
|
|
884
1065
|
/** [Authorized Function] Removes a trading symbol from a market. */
|
|
885
1066
|
export declare function removeTradingSymbol(options: RemoveTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -917,10 +1098,52 @@ export interface CreateTradingOrderOptions {
|
|
|
917
1098
|
size: RawTransactionArgument<number | bigint>,
|
|
918
1099
|
triggerPrice: RawTransactionArgument<number | bigint>
|
|
919
1100
|
];
|
|
920
|
-
typeArguments: [
|
|
1101
|
+
typeArguments: [
|
|
1102
|
+
string,
|
|
1103
|
+
string
|
|
1104
|
+
];
|
|
921
1105
|
}
|
|
922
|
-
/** [
|
|
1106
|
+
/** [DEPRECATED] Use `create_trading_order_v2` with `&OracleV2` instead. */
|
|
923
1107
|
export declare function createTradingOrder(options: CreateTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1108
|
+
export interface CreateTradingOrderV2Arguments {
|
|
1109
|
+
version: RawTransactionArgument<string>;
|
|
1110
|
+
registry: RawTransactionArgument<string>;
|
|
1111
|
+
poolRegistry: RawTransactionArgument<string>;
|
|
1112
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1113
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1114
|
+
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1115
|
+
linkedPositionId: RawTransactionArgument<number | bigint | null>;
|
|
1116
|
+
collateral: RawTransactionArgument<string>;
|
|
1117
|
+
reduceOnly: RawTransactionArgument<boolean>;
|
|
1118
|
+
isLong: RawTransactionArgument<boolean>;
|
|
1119
|
+
isStopOrder: RawTransactionArgument<boolean>;
|
|
1120
|
+
size: RawTransactionArgument<number | bigint>;
|
|
1121
|
+
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
1122
|
+
}
|
|
1123
|
+
export interface CreateTradingOrderV2Options {
|
|
1124
|
+
package?: string;
|
|
1125
|
+
arguments: CreateTradingOrderV2Arguments | [
|
|
1126
|
+
version: RawTransactionArgument<string>,
|
|
1127
|
+
registry: RawTransactionArgument<string>,
|
|
1128
|
+
poolRegistry: RawTransactionArgument<string>,
|
|
1129
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1130
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1131
|
+
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1132
|
+
linkedPositionId: RawTransactionArgument<number | bigint | null>,
|
|
1133
|
+
collateral: RawTransactionArgument<string>,
|
|
1134
|
+
reduceOnly: RawTransactionArgument<boolean>,
|
|
1135
|
+
isLong: RawTransactionArgument<boolean>,
|
|
1136
|
+
isStopOrder: RawTransactionArgument<boolean>,
|
|
1137
|
+
size: RawTransactionArgument<number | bigint>,
|
|
1138
|
+
triggerPrice: RawTransactionArgument<number | bigint>
|
|
1139
|
+
];
|
|
1140
|
+
typeArguments: [
|
|
1141
|
+
string,
|
|
1142
|
+
string
|
|
1143
|
+
];
|
|
1144
|
+
}
|
|
1145
|
+
/** [User Function] Creates a new trading order. */
|
|
1146
|
+
export declare function createTradingOrderV2(options: CreateTradingOrderV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
924
1147
|
export interface CancelTradingOrderArguments {
|
|
925
1148
|
version: RawTransactionArgument<string>;
|
|
926
1149
|
registry: RawTransactionArgument<string>;
|
|
@@ -939,7 +1162,10 @@ export interface CancelTradingOrderOptions {
|
|
|
939
1162
|
triggerPrice: RawTransactionArgument<number | bigint>,
|
|
940
1163
|
orderUser: RawTransactionArgument<string | null>
|
|
941
1164
|
];
|
|
942
|
-
typeArguments: [
|
|
1165
|
+
typeArguments: [
|
|
1166
|
+
string,
|
|
1167
|
+
string
|
|
1168
|
+
];
|
|
943
1169
|
}
|
|
944
1170
|
/** [User Function] Cancels a trading order. */
|
|
945
1171
|
export declare function cancelTradingOrder(options: CancelTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -967,13 +1193,45 @@ export interface ReleaseCollateralOptions {
|
|
|
967
1193
|
positionId: RawTransactionArgument<number | bigint>,
|
|
968
1194
|
releaseAmount: RawTransactionArgument<number | bigint>
|
|
969
1195
|
];
|
|
970
|
-
typeArguments: [
|
|
1196
|
+
typeArguments: [
|
|
1197
|
+
string,
|
|
1198
|
+
string
|
|
1199
|
+
];
|
|
1200
|
+
}
|
|
1201
|
+
/** [DEPRECATED] Use `release_collateral_v2` with `&OracleV2` instead. */
|
|
1202
|
+
export declare function releaseCollateral(options: ReleaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1203
|
+
export interface ReleaseCollateralV2Arguments {
|
|
1204
|
+
version: RawTransactionArgument<string>;
|
|
1205
|
+
registry: RawTransactionArgument<string>;
|
|
1206
|
+
poolRegistry: RawTransactionArgument<string>;
|
|
1207
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1208
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1209
|
+
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1210
|
+
positionId: RawTransactionArgument<number | bigint>;
|
|
1211
|
+
releaseAmount: RawTransactionArgument<number | bigint>;
|
|
1212
|
+
}
|
|
1213
|
+
export interface ReleaseCollateralV2Options {
|
|
1214
|
+
package?: string;
|
|
1215
|
+
arguments: ReleaseCollateralV2Arguments | [
|
|
1216
|
+
version: RawTransactionArgument<string>,
|
|
1217
|
+
registry: RawTransactionArgument<string>,
|
|
1218
|
+
poolRegistry: RawTransactionArgument<string>,
|
|
1219
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1220
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1221
|
+
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1222
|
+
positionId: RawTransactionArgument<number | bigint>,
|
|
1223
|
+
releaseAmount: RawTransactionArgument<number | bigint>
|
|
1224
|
+
];
|
|
1225
|
+
typeArguments: [
|
|
1226
|
+
string,
|
|
1227
|
+
string
|
|
1228
|
+
];
|
|
971
1229
|
}
|
|
972
1230
|
/**
|
|
973
1231
|
* [User Function] Releases collateral from a position. Safe with
|
|
974
1232
|
* `check_position_user_matched`
|
|
975
1233
|
*/
|
|
976
|
-
export declare function
|
|
1234
|
+
export declare function releaseCollateralV2(options: ReleaseCollateralV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
977
1235
|
export interface IncreaseCollateralArguments {
|
|
978
1236
|
version: RawTransactionArgument<string>;
|
|
979
1237
|
registry: RawTransactionArgument<string>;
|
|
@@ -998,13 +1256,45 @@ export interface IncreaseCollateralOptions {
|
|
|
998
1256
|
positionId: RawTransactionArgument<number | bigint>,
|
|
999
1257
|
collateral: RawTransactionArgument<string>
|
|
1000
1258
|
];
|
|
1001
|
-
typeArguments: [
|
|
1259
|
+
typeArguments: [
|
|
1260
|
+
string,
|
|
1261
|
+
string
|
|
1262
|
+
];
|
|
1263
|
+
}
|
|
1264
|
+
/** [DEPRECATED] Use `increase_collateral_v2` with `&OracleV2` instead. */
|
|
1265
|
+
export declare function increaseCollateral(options: IncreaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1266
|
+
export interface IncreaseCollateralV2Arguments {
|
|
1267
|
+
version: RawTransactionArgument<string>;
|
|
1268
|
+
registry: RawTransactionArgument<string>;
|
|
1269
|
+
poolRegistry: RawTransactionArgument<string>;
|
|
1270
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1271
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1272
|
+
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1273
|
+
positionId: RawTransactionArgument<number | bigint>;
|
|
1274
|
+
collateral: RawTransactionArgument<string>;
|
|
1275
|
+
}
|
|
1276
|
+
export interface IncreaseCollateralV2Options {
|
|
1277
|
+
package?: string;
|
|
1278
|
+
arguments: IncreaseCollateralV2Arguments | [
|
|
1279
|
+
version: RawTransactionArgument<string>,
|
|
1280
|
+
registry: RawTransactionArgument<string>,
|
|
1281
|
+
poolRegistry: RawTransactionArgument<string>,
|
|
1282
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1283
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1284
|
+
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1285
|
+
positionId: RawTransactionArgument<number | bigint>,
|
|
1286
|
+
collateral: RawTransactionArgument<string>
|
|
1287
|
+
];
|
|
1288
|
+
typeArguments: [
|
|
1289
|
+
string,
|
|
1290
|
+
string
|
|
1291
|
+
];
|
|
1002
1292
|
}
|
|
1003
1293
|
/**
|
|
1004
1294
|
* [User Function] Increases the collateral of a position. Safe with
|
|
1005
1295
|
* `check_position_user_matched`
|
|
1006
1296
|
*/
|
|
1007
|
-
export declare function
|
|
1297
|
+
export declare function increaseCollateralV2(options: IncreaseCollateralV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1008
1298
|
export interface CollectPositionFundingFeeArguments {
|
|
1009
1299
|
version: RawTransactionArgument<string>;
|
|
1010
1300
|
registry: RawTransactionArgument<string>;
|
|
@@ -1027,10 +1317,40 @@ export interface CollectPositionFundingFeeOptions {
|
|
|
1027
1317
|
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1028
1318
|
positionId: RawTransactionArgument<number | bigint>
|
|
1029
1319
|
];
|
|
1030
|
-
typeArguments: [
|
|
1320
|
+
typeArguments: [
|
|
1321
|
+
string,
|
|
1322
|
+
string
|
|
1323
|
+
];
|
|
1031
1324
|
}
|
|
1032
|
-
/**
|
|
1325
|
+
/** [DEPRECATED] Use `collect_position_funding_fee_v2` with `&OracleV2` instead. */
|
|
1033
1326
|
export declare function collectPositionFundingFee(options: CollectPositionFundingFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1327
|
+
export interface CollectPositionFundingFeeV2Arguments {
|
|
1328
|
+
version: RawTransactionArgument<string>;
|
|
1329
|
+
registry: RawTransactionArgument<string>;
|
|
1330
|
+
poolRegistry: RawTransactionArgument<string>;
|
|
1331
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1332
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1333
|
+
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1334
|
+
positionId: RawTransactionArgument<number | bigint>;
|
|
1335
|
+
}
|
|
1336
|
+
export interface CollectPositionFundingFeeV2Options {
|
|
1337
|
+
package?: string;
|
|
1338
|
+
arguments: CollectPositionFundingFeeV2Arguments | [
|
|
1339
|
+
version: RawTransactionArgument<string>,
|
|
1340
|
+
registry: RawTransactionArgument<string>,
|
|
1341
|
+
poolRegistry: RawTransactionArgument<string>,
|
|
1342
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1343
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1344
|
+
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1345
|
+
positionId: RawTransactionArgument<number | bigint>
|
|
1346
|
+
];
|
|
1347
|
+
typeArguments: [
|
|
1348
|
+
string,
|
|
1349
|
+
string
|
|
1350
|
+
];
|
|
1351
|
+
}
|
|
1352
|
+
/** Collects the funding fee for a position. Safe with `check_position_user_matched` */
|
|
1353
|
+
export declare function collectPositionFundingFeeV2(options: CollectPositionFundingFeeV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1034
1354
|
export interface CreateTradingOrderWithBidReceiptArguments {
|
|
1035
1355
|
version: RawTransactionArgument<string>;
|
|
1036
1356
|
registry: RawTransactionArgument<string>;
|
|
@@ -1067,17 +1387,23 @@ export interface CreateTradingOrderWithBidReceiptOptions {
|
|
|
1067
1387
|
collateralBidReceipt: RawTransactionArgument<string>,
|
|
1068
1388
|
isLong: RawTransactionArgument<boolean>
|
|
1069
1389
|
];
|
|
1070
|
-
typeArguments: [
|
|
1390
|
+
typeArguments: [
|
|
1391
|
+
string,
|
|
1392
|
+
string,
|
|
1393
|
+
string
|
|
1394
|
+
];
|
|
1071
1395
|
}
|
|
1072
|
-
/**
|
|
1396
|
+
/**
|
|
1397
|
+
* [DEPRECATED] Use `create_trading_order_with_bid_receipt_v2` with `&OracleV2`
|
|
1398
|
+
* instead.
|
|
1399
|
+
*/
|
|
1073
1400
|
export declare function createTradingOrderWithBidReceipt(options: CreateTradingOrderWithBidReceiptOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1074
|
-
export interface
|
|
1401
|
+
export interface CreateTradingOrderWithBidReceiptV2Arguments {
|
|
1075
1402
|
version: RawTransactionArgument<string>;
|
|
1076
1403
|
registry: RawTransactionArgument<string>;
|
|
1077
1404
|
poolRegistry: RawTransactionArgument<string>;
|
|
1078
1405
|
dovRegistry: RawTransactionArgument<string>;
|
|
1079
|
-
|
|
1080
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1406
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1081
1407
|
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1082
1408
|
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1083
1409
|
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
@@ -1085,18 +1411,17 @@ export interface ReduceOptionCollateralPositionSizeArguments {
|
|
|
1085
1411
|
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
1086
1412
|
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
1087
1413
|
competitionConfig: RawTransactionArgument<string>;
|
|
1088
|
-
|
|
1089
|
-
|
|
1414
|
+
collateralBidReceipt: RawTransactionArgument<string>;
|
|
1415
|
+
isLong: RawTransactionArgument<boolean>;
|
|
1090
1416
|
}
|
|
1091
|
-
export interface
|
|
1417
|
+
export interface CreateTradingOrderWithBidReceiptV2Options {
|
|
1092
1418
|
package?: string;
|
|
1093
|
-
arguments:
|
|
1419
|
+
arguments: CreateTradingOrderWithBidReceiptV2Arguments | [
|
|
1094
1420
|
version: RawTransactionArgument<string>,
|
|
1095
1421
|
registry: RawTransactionArgument<string>,
|
|
1096
1422
|
poolRegistry: RawTransactionArgument<string>,
|
|
1097
1423
|
dovRegistry: RawTransactionArgument<string>,
|
|
1098
|
-
|
|
1099
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1424
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1100
1425
|
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1101
1426
|
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1102
1427
|
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
@@ -1104,18 +1429,22 @@ export interface ReduceOptionCollateralPositionSizeOptions {
|
|
|
1104
1429
|
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
1105
1430
|
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1106
1431
|
competitionConfig: RawTransactionArgument<string>,
|
|
1107
|
-
|
|
1108
|
-
|
|
1432
|
+
collateralBidReceipt: RawTransactionArgument<string>,
|
|
1433
|
+
isLong: RawTransactionArgument<boolean>
|
|
1434
|
+
];
|
|
1435
|
+
typeArguments: [
|
|
1436
|
+
string,
|
|
1437
|
+
string,
|
|
1438
|
+
string
|
|
1109
1439
|
];
|
|
1110
|
-
typeArguments: [string, string, string];
|
|
1111
1440
|
}
|
|
1112
|
-
/** [User Function]
|
|
1113
|
-
export declare function
|
|
1114
|
-
export interface
|
|
1441
|
+
/** [User Function] Creates a new trading order with a bid receipt as collateral. */
|
|
1442
|
+
export declare function createTradingOrderWithBidReceiptV2(options: CreateTradingOrderWithBidReceiptV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1443
|
+
export interface ReduceOptionCollateralPositionSizeArguments {
|
|
1115
1444
|
version: RawTransactionArgument<string>;
|
|
1116
1445
|
registry: RawTransactionArgument<string>;
|
|
1117
1446
|
poolRegistry: RawTransactionArgument<string>;
|
|
1118
|
-
|
|
1447
|
+
dovRegistry: RawTransactionArgument<string>;
|
|
1119
1448
|
typusOracleCToken: RawTransactionArgument<string>;
|
|
1120
1449
|
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1121
1450
|
marketIndex: RawTransactionArgument<number | bigint>;
|
|
@@ -1125,17 +1454,106 @@ export interface MatchTradingOrderArguments {
|
|
|
1125
1454
|
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
1126
1455
|
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
1127
1456
|
competitionConfig: RawTransactionArgument<string>;
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
maxOperationCount: RawTransactionArgument<number | bigint>;
|
|
1457
|
+
positionId: RawTransactionArgument<number | bigint>;
|
|
1458
|
+
orderSize: RawTransactionArgument<number | bigint | null>;
|
|
1131
1459
|
}
|
|
1132
|
-
export interface
|
|
1460
|
+
export interface ReduceOptionCollateralPositionSizeOptions {
|
|
1133
1461
|
package?: string;
|
|
1134
|
-
arguments:
|
|
1462
|
+
arguments: ReduceOptionCollateralPositionSizeArguments | [
|
|
1135
1463
|
version: RawTransactionArgument<string>,
|
|
1136
1464
|
registry: RawTransactionArgument<string>,
|
|
1137
1465
|
poolRegistry: RawTransactionArgument<string>,
|
|
1138
|
-
|
|
1466
|
+
dovRegistry: RawTransactionArgument<string>,
|
|
1467
|
+
typusOracleCToken: RawTransactionArgument<string>,
|
|
1468
|
+
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1469
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1470
|
+
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1471
|
+
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
1472
|
+
typusUserRegistry: RawTransactionArgument<string>,
|
|
1473
|
+
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
1474
|
+
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1475
|
+
competitionConfig: RawTransactionArgument<string>,
|
|
1476
|
+
positionId: RawTransactionArgument<number | bigint>,
|
|
1477
|
+
orderSize: RawTransactionArgument<number | bigint | null>
|
|
1478
|
+
];
|
|
1479
|
+
typeArguments: [
|
|
1480
|
+
string,
|
|
1481
|
+
string,
|
|
1482
|
+
string
|
|
1483
|
+
];
|
|
1484
|
+
}
|
|
1485
|
+
/**
|
|
1486
|
+
* [DEPRECATED] Use `reduce_option_collateral_position_size_v2` with `&OracleV2`
|
|
1487
|
+
* instead.
|
|
1488
|
+
*/
|
|
1489
|
+
export declare function reduceOptionCollateralPositionSize(options: ReduceOptionCollateralPositionSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1490
|
+
export interface ReduceOptionCollateralPositionSizeV2Arguments {
|
|
1491
|
+
version: RawTransactionArgument<string>;
|
|
1492
|
+
registry: RawTransactionArgument<string>;
|
|
1493
|
+
poolRegistry: RawTransactionArgument<string>;
|
|
1494
|
+
dovRegistry: RawTransactionArgument<string>;
|
|
1495
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1496
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1497
|
+
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1498
|
+
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
1499
|
+
typusUserRegistry: RawTransactionArgument<string>;
|
|
1500
|
+
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
1501
|
+
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
1502
|
+
competitionConfig: RawTransactionArgument<string>;
|
|
1503
|
+
positionId: RawTransactionArgument<number | bigint>;
|
|
1504
|
+
orderSize: RawTransactionArgument<number | bigint | null>;
|
|
1505
|
+
}
|
|
1506
|
+
export interface ReduceOptionCollateralPositionSizeV2Options {
|
|
1507
|
+
package?: string;
|
|
1508
|
+
arguments: ReduceOptionCollateralPositionSizeV2Arguments | [
|
|
1509
|
+
version: RawTransactionArgument<string>,
|
|
1510
|
+
registry: RawTransactionArgument<string>,
|
|
1511
|
+
poolRegistry: RawTransactionArgument<string>,
|
|
1512
|
+
dovRegistry: RawTransactionArgument<string>,
|
|
1513
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1514
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1515
|
+
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1516
|
+
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
1517
|
+
typusUserRegistry: RawTransactionArgument<string>,
|
|
1518
|
+
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
1519
|
+
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1520
|
+
competitionConfig: RawTransactionArgument<string>,
|
|
1521
|
+
positionId: RawTransactionArgument<number | bigint>,
|
|
1522
|
+
orderSize: RawTransactionArgument<number | bigint | null>
|
|
1523
|
+
];
|
|
1524
|
+
typeArguments: [
|
|
1525
|
+
string,
|
|
1526
|
+
string,
|
|
1527
|
+
string
|
|
1528
|
+
];
|
|
1529
|
+
}
|
|
1530
|
+
/** [User Function] Reduces the size of an option collateral position. */
|
|
1531
|
+
export declare function reduceOptionCollateralPositionSizeV2(options: ReduceOptionCollateralPositionSizeV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1532
|
+
export interface MatchTradingOrderArguments {
|
|
1533
|
+
version: RawTransactionArgument<string>;
|
|
1534
|
+
registry: RawTransactionArgument<string>;
|
|
1535
|
+
poolRegistry: RawTransactionArgument<string>;
|
|
1536
|
+
profitVault: RawTransactionArgument<string>;
|
|
1537
|
+
typusOracleCToken: RawTransactionArgument<string>;
|
|
1538
|
+
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1539
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1540
|
+
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1541
|
+
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
1542
|
+
typusUserRegistry: RawTransactionArgument<string>;
|
|
1543
|
+
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
1544
|
+
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
1545
|
+
competitionConfig: RawTransactionArgument<string>;
|
|
1546
|
+
orderTypeTag: RawTransactionArgument<number>;
|
|
1547
|
+
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
1548
|
+
maxOperationCount: RawTransactionArgument<number | bigint>;
|
|
1549
|
+
}
|
|
1550
|
+
export interface MatchTradingOrderOptions {
|
|
1551
|
+
package?: string;
|
|
1552
|
+
arguments: MatchTradingOrderArguments | [
|
|
1553
|
+
version: RawTransactionArgument<string>,
|
|
1554
|
+
registry: RawTransactionArgument<string>,
|
|
1555
|
+
poolRegistry: RawTransactionArgument<string>,
|
|
1556
|
+
profitVault: RawTransactionArgument<string>,
|
|
1139
1557
|
typusOracleCToken: RawTransactionArgument<string>,
|
|
1140
1558
|
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1141
1559
|
marketIndex: RawTransactionArgument<number | bigint>,
|
|
@@ -1149,10 +1567,56 @@ export interface MatchTradingOrderOptions {
|
|
|
1149
1567
|
triggerPrice: RawTransactionArgument<number | bigint>,
|
|
1150
1568
|
maxOperationCount: RawTransactionArgument<number | bigint>
|
|
1151
1569
|
];
|
|
1152
|
-
typeArguments: [
|
|
1570
|
+
typeArguments: [
|
|
1571
|
+
string,
|
|
1572
|
+
string
|
|
1573
|
+
];
|
|
1153
1574
|
}
|
|
1154
|
-
/** [
|
|
1575
|
+
/** [DEPRECATED] Use `match_trading_order_v2` with `&OracleV2` instead. */
|
|
1155
1576
|
export declare function matchTradingOrder(options: MatchTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1577
|
+
export interface MatchTradingOrderV2Arguments {
|
|
1578
|
+
version: RawTransactionArgument<string>;
|
|
1579
|
+
registry: RawTransactionArgument<string>;
|
|
1580
|
+
poolRegistry: RawTransactionArgument<string>;
|
|
1581
|
+
profitVault: RawTransactionArgument<string>;
|
|
1582
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1583
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1584
|
+
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1585
|
+
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
1586
|
+
typusUserRegistry: RawTransactionArgument<string>;
|
|
1587
|
+
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
1588
|
+
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
1589
|
+
competitionConfig: RawTransactionArgument<string>;
|
|
1590
|
+
orderTypeTag: RawTransactionArgument<number>;
|
|
1591
|
+
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
1592
|
+
maxOperationCount: RawTransactionArgument<number | bigint>;
|
|
1593
|
+
}
|
|
1594
|
+
export interface MatchTradingOrderV2Options {
|
|
1595
|
+
package?: string;
|
|
1596
|
+
arguments: MatchTradingOrderV2Arguments | [
|
|
1597
|
+
version: RawTransactionArgument<string>,
|
|
1598
|
+
registry: RawTransactionArgument<string>,
|
|
1599
|
+
poolRegistry: RawTransactionArgument<string>,
|
|
1600
|
+
profitVault: RawTransactionArgument<string>,
|
|
1601
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1602
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1603
|
+
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1604
|
+
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
1605
|
+
typusUserRegistry: RawTransactionArgument<string>,
|
|
1606
|
+
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
1607
|
+
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1608
|
+
competitionConfig: RawTransactionArgument<string>,
|
|
1609
|
+
orderTypeTag: RawTransactionArgument<number>,
|
|
1610
|
+
triggerPrice: RawTransactionArgument<number | bigint>,
|
|
1611
|
+
maxOperationCount: RawTransactionArgument<number | bigint>
|
|
1612
|
+
];
|
|
1613
|
+
typeArguments: [
|
|
1614
|
+
string,
|
|
1615
|
+
string
|
|
1616
|
+
];
|
|
1617
|
+
}
|
|
1618
|
+
/** [Authorized Function] Matches trading orders. */
|
|
1619
|
+
export declare function matchTradingOrderV2(options: MatchTradingOrderV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1156
1620
|
export interface CancelLinkedOrdersArguments {
|
|
1157
1621
|
version: RawTransactionArgument<string>;
|
|
1158
1622
|
registry: RawTransactionArgument<string>;
|
|
@@ -1171,7 +1635,10 @@ export interface CancelLinkedOrdersOptions {
|
|
|
1171
1635
|
linkedOrderPrices: RawTransactionArgument<number | bigint[]>,
|
|
1172
1636
|
user: RawTransactionArgument<string>
|
|
1173
1637
|
];
|
|
1174
|
-
typeArguments: [
|
|
1638
|
+
typeArguments: [
|
|
1639
|
+
string,
|
|
1640
|
+
string
|
|
1641
|
+
];
|
|
1175
1642
|
}
|
|
1176
1643
|
/** [Authorized Function] Cancels linked orders. */
|
|
1177
1644
|
export declare function cancelLinkedOrders(options: CancelLinkedOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -1211,10 +1678,54 @@ export interface ManagerReducePositionOptions {
|
|
|
1211
1678
|
positionId: RawTransactionArgument<number | bigint>,
|
|
1212
1679
|
reducedRatioBp: RawTransactionArgument<number | bigint>
|
|
1213
1680
|
];
|
|
1214
|
-
typeArguments: [
|
|
1681
|
+
typeArguments: [
|
|
1682
|
+
string,
|
|
1683
|
+
string
|
|
1684
|
+
];
|
|
1215
1685
|
}
|
|
1216
|
-
/** [
|
|
1686
|
+
/** [DEPRECATED] Use `manager_reduce_position_v2` with `&OracleV2` instead. */
|
|
1217
1687
|
export declare function managerReducePosition(options: ManagerReducePositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1688
|
+
export interface ManagerReducePositionV2Arguments {
|
|
1689
|
+
version: RawTransactionArgument<string>;
|
|
1690
|
+
registry: RawTransactionArgument<string>;
|
|
1691
|
+
poolRegistry: RawTransactionArgument<string>;
|
|
1692
|
+
profitVault: RawTransactionArgument<string>;
|
|
1693
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1694
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1695
|
+
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1696
|
+
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
1697
|
+
typusUserRegistry: RawTransactionArgument<string>;
|
|
1698
|
+
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
1699
|
+
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
1700
|
+
competitionConfig: RawTransactionArgument<string>;
|
|
1701
|
+
positionId: RawTransactionArgument<number | bigint>;
|
|
1702
|
+
reducedRatioBp: RawTransactionArgument<number | bigint>;
|
|
1703
|
+
}
|
|
1704
|
+
export interface ManagerReducePositionV2Options {
|
|
1705
|
+
package?: string;
|
|
1706
|
+
arguments: ManagerReducePositionV2Arguments | [
|
|
1707
|
+
version: RawTransactionArgument<string>,
|
|
1708
|
+
registry: RawTransactionArgument<string>,
|
|
1709
|
+
poolRegistry: RawTransactionArgument<string>,
|
|
1710
|
+
profitVault: RawTransactionArgument<string>,
|
|
1711
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1712
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1713
|
+
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1714
|
+
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
1715
|
+
typusUserRegistry: RawTransactionArgument<string>,
|
|
1716
|
+
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
1717
|
+
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1718
|
+
competitionConfig: RawTransactionArgument<string>,
|
|
1719
|
+
positionId: RawTransactionArgument<number | bigint>,
|
|
1720
|
+
reducedRatioBp: RawTransactionArgument<number | bigint>
|
|
1721
|
+
];
|
|
1722
|
+
typeArguments: [
|
|
1723
|
+
string,
|
|
1724
|
+
string
|
|
1725
|
+
];
|
|
1726
|
+
}
|
|
1727
|
+
/** [Authorized Function] Reduces a position by the manager. */
|
|
1728
|
+
export declare function managerReducePositionV2(options: ManagerReducePositionV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1218
1729
|
export interface ManagerClearPositionArguments {
|
|
1219
1730
|
version: RawTransactionArgument<string>;
|
|
1220
1731
|
registry: RawTransactionArgument<string>;
|
|
@@ -1233,7 +1744,10 @@ export interface ManagerClearPositionOptions {
|
|
|
1233
1744
|
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1234
1745
|
positionId: RawTransactionArgument<number | bigint>
|
|
1235
1746
|
];
|
|
1236
|
-
typeArguments: [
|
|
1747
|
+
typeArguments: [
|
|
1748
|
+
string,
|
|
1749
|
+
string
|
|
1750
|
+
];
|
|
1237
1751
|
}
|
|
1238
1752
|
export declare function managerClearPosition(options: ManagerClearPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1239
1753
|
export interface ManagerCloseOptionPositionArguments {
|
|
@@ -1270,17 +1784,64 @@ export interface ManagerCloseOptionPositionOptions {
|
|
|
1270
1784
|
competitionConfig: RawTransactionArgument<string>,
|
|
1271
1785
|
positionId: RawTransactionArgument<number | bigint>
|
|
1272
1786
|
];
|
|
1273
|
-
typeArguments: [
|
|
1787
|
+
typeArguments: [
|
|
1788
|
+
string,
|
|
1789
|
+
string,
|
|
1790
|
+
string
|
|
1791
|
+
];
|
|
1274
1792
|
}
|
|
1275
|
-
/** [
|
|
1793
|
+
/** [DEPRECATED] Use `manager_close_option_position_v2` with `&OracleV2` instead. */
|
|
1276
1794
|
export declare function managerCloseOptionPosition(options: ManagerCloseOptionPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1795
|
+
export interface ManagerCloseOptionPositionV2Arguments {
|
|
1796
|
+
version: RawTransactionArgument<string>;
|
|
1797
|
+
registry: RawTransactionArgument<string>;
|
|
1798
|
+
poolRegistry: RawTransactionArgument<string>;
|
|
1799
|
+
dovRegistry: RawTransactionArgument<string>;
|
|
1800
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1801
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1802
|
+
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1803
|
+
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
1804
|
+
typusUserRegistry: RawTransactionArgument<string>;
|
|
1805
|
+
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
1806
|
+
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
1807
|
+
competitionConfig: RawTransactionArgument<string>;
|
|
1808
|
+
positionId: RawTransactionArgument<number | bigint>;
|
|
1809
|
+
}
|
|
1810
|
+
export interface ManagerCloseOptionPositionV2Options {
|
|
1811
|
+
package?: string;
|
|
1812
|
+
arguments: ManagerCloseOptionPositionV2Arguments | [
|
|
1813
|
+
version: RawTransactionArgument<string>,
|
|
1814
|
+
registry: RawTransactionArgument<string>,
|
|
1815
|
+
poolRegistry: RawTransactionArgument<string>,
|
|
1816
|
+
dovRegistry: RawTransactionArgument<string>,
|
|
1817
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1818
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1819
|
+
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1820
|
+
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
1821
|
+
typusUserRegistry: RawTransactionArgument<string>,
|
|
1822
|
+
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
1823
|
+
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1824
|
+
competitionConfig: RawTransactionArgument<string>,
|
|
1825
|
+
positionId: RawTransactionArgument<number | bigint>
|
|
1826
|
+
];
|
|
1827
|
+
typeArguments: [
|
|
1828
|
+
string,
|
|
1829
|
+
string,
|
|
1830
|
+
string
|
|
1831
|
+
];
|
|
1832
|
+
}
|
|
1833
|
+
/** [Authorized Function] Closes an option position by the manager. */
|
|
1834
|
+
export declare function managerCloseOptionPositionV2(options: ManagerCloseOptionPositionV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1277
1835
|
export interface GetTradingFeeConfigArguments {
|
|
1278
1836
|
marketConfig: RawTransactionArgument<string>;
|
|
1279
1837
|
isOptionPosition: RawTransactionArgument<boolean>;
|
|
1280
1838
|
}
|
|
1281
1839
|
export interface GetTradingFeeConfigOptions {
|
|
1282
1840
|
package?: string;
|
|
1283
|
-
arguments: GetTradingFeeConfigArguments | [
|
|
1841
|
+
arguments: GetTradingFeeConfigArguments | [
|
|
1842
|
+
marketConfig: RawTransactionArgument<string>,
|
|
1843
|
+
isOptionPosition: RawTransactionArgument<boolean>
|
|
1844
|
+
];
|
|
1284
1845
|
}
|
|
1285
1846
|
export declare function getTradingFeeConfig(options: GetTradingFeeConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1286
1847
|
export interface GetLiquidationInfoArguments {
|
|
@@ -1288,8 +1849,7 @@ export interface GetLiquidationInfoArguments {
|
|
|
1288
1849
|
registry: RawTransactionArgument<string>;
|
|
1289
1850
|
poolRegistry: RawTransactionArgument<string>;
|
|
1290
1851
|
dovRegistry: RawTransactionArgument<string>;
|
|
1291
|
-
|
|
1292
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1852
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1293
1853
|
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1294
1854
|
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1295
1855
|
getAll: RawTransactionArgument<boolean>;
|
|
@@ -1301,13 +1861,15 @@ export interface GetLiquidationInfoOptions {
|
|
|
1301
1861
|
registry: RawTransactionArgument<string>,
|
|
1302
1862
|
poolRegistry: RawTransactionArgument<string>,
|
|
1303
1863
|
dovRegistry: RawTransactionArgument<string>,
|
|
1304
|
-
|
|
1305
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1864
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1306
1865
|
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1307
1866
|
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1308
1867
|
getAll: RawTransactionArgument<boolean>
|
|
1309
1868
|
];
|
|
1310
|
-
typeArguments: [
|
|
1869
|
+
typeArguments: [
|
|
1870
|
+
string,
|
|
1871
|
+
string
|
|
1872
|
+
];
|
|
1311
1873
|
}
|
|
1312
1874
|
/** [View Function] Gets the liquidation information for a position. */
|
|
1313
1875
|
export declare function getLiquidationInfo(options: GetLiquidationInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -1335,10 +1897,44 @@ export interface LiquidateOptions {
|
|
|
1335
1897
|
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1336
1898
|
positionId: RawTransactionArgument<number | bigint>
|
|
1337
1899
|
];
|
|
1338
|
-
typeArguments: [
|
|
1900
|
+
typeArguments: [
|
|
1901
|
+
string,
|
|
1902
|
+
string,
|
|
1903
|
+
string
|
|
1904
|
+
];
|
|
1339
1905
|
}
|
|
1340
|
-
/** [
|
|
1906
|
+
/** [DEPRECATED] Use `liquidate_v2` with `&OracleV2` instead. */
|
|
1341
1907
|
export declare function liquidate(options: LiquidateOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1908
|
+
export interface LiquidateV2Arguments {
|
|
1909
|
+
version: RawTransactionArgument<string>;
|
|
1910
|
+
registry: RawTransactionArgument<string>;
|
|
1911
|
+
poolRegistry: RawTransactionArgument<string>;
|
|
1912
|
+
dovRegistry: RawTransactionArgument<string>;
|
|
1913
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1914
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1915
|
+
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1916
|
+
positionId: RawTransactionArgument<number | bigint>;
|
|
1917
|
+
}
|
|
1918
|
+
export interface LiquidateV2Options {
|
|
1919
|
+
package?: string;
|
|
1920
|
+
arguments: LiquidateV2Arguments | [
|
|
1921
|
+
version: RawTransactionArgument<string>,
|
|
1922
|
+
registry: RawTransactionArgument<string>,
|
|
1923
|
+
poolRegistry: RawTransactionArgument<string>,
|
|
1924
|
+
dovRegistry: RawTransactionArgument<string>,
|
|
1925
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1926
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1927
|
+
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1928
|
+
positionId: RawTransactionArgument<number | bigint>
|
|
1929
|
+
];
|
|
1930
|
+
typeArguments: [
|
|
1931
|
+
string,
|
|
1932
|
+
string,
|
|
1933
|
+
string
|
|
1934
|
+
];
|
|
1935
|
+
}
|
|
1936
|
+
/** [Authorized Function] Liquidates a position. */
|
|
1937
|
+
export declare function liquidateV2(options: LiquidateV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1342
1938
|
export interface SettleReceiptCollateralArguments {
|
|
1343
1939
|
version: RawTransactionArgument<string>;
|
|
1344
1940
|
registry: RawTransactionArgument<string>;
|
|
@@ -1359,10 +1955,40 @@ export interface SettleReceiptCollateralOptions {
|
|
|
1359
1955
|
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1360
1956
|
poolIndex: RawTransactionArgument<number | bigint>
|
|
1361
1957
|
];
|
|
1362
|
-
typeArguments: [
|
|
1958
|
+
typeArguments: [
|
|
1959
|
+
string,
|
|
1960
|
+
string
|
|
1961
|
+
];
|
|
1363
1962
|
}
|
|
1364
|
-
/** [
|
|
1963
|
+
/** [DEPRECATED] Use `settle_receipt_collateral_v2` with `&OracleV2` instead. */
|
|
1365
1964
|
export declare function settleReceiptCollateral(options: SettleReceiptCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1965
|
+
export interface SettleReceiptCollateralV2Arguments {
|
|
1966
|
+
version: RawTransactionArgument<string>;
|
|
1967
|
+
registry: RawTransactionArgument<string>;
|
|
1968
|
+
poolRegistry: RawTransactionArgument<string>;
|
|
1969
|
+
dovRegistry: RawTransactionArgument<string>;
|
|
1970
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1971
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1972
|
+
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1973
|
+
}
|
|
1974
|
+
export interface SettleReceiptCollateralV2Options {
|
|
1975
|
+
package?: string;
|
|
1976
|
+
arguments: SettleReceiptCollateralV2Arguments | [
|
|
1977
|
+
version: RawTransactionArgument<string>,
|
|
1978
|
+
registry: RawTransactionArgument<string>,
|
|
1979
|
+
poolRegistry: RawTransactionArgument<string>,
|
|
1980
|
+
dovRegistry: RawTransactionArgument<string>,
|
|
1981
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1982
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1983
|
+
poolIndex: RawTransactionArgument<number | bigint>
|
|
1984
|
+
];
|
|
1985
|
+
typeArguments: [
|
|
1986
|
+
string,
|
|
1987
|
+
string
|
|
1988
|
+
];
|
|
1989
|
+
}
|
|
1990
|
+
/** [Authorized Function] Settles receipt collateral. */
|
|
1991
|
+
export declare function settleReceiptCollateralV2(options: SettleReceiptCollateralV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1366
1992
|
export interface UpdateFundingRateArguments {
|
|
1367
1993
|
version: RawTransactionArgument<string>;
|
|
1368
1994
|
registry: RawTransactionArgument<string>;
|
|
@@ -1381,10 +2007,36 @@ export interface UpdateFundingRateOptions {
|
|
|
1381
2007
|
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1382
2008
|
poolIndex: RawTransactionArgument<number | bigint>
|
|
1383
2009
|
];
|
|
1384
|
-
typeArguments: [
|
|
2010
|
+
typeArguments: [
|
|
2011
|
+
string
|
|
2012
|
+
];
|
|
2013
|
+
}
|
|
2014
|
+
/** [DEPRECATED] Use `update_funding_rate_v2` with `&OracleV2` instead. */
|
|
2015
|
+
export declare function updateFundingRate(options: UpdateFundingRateOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2016
|
+
export interface UpdateFundingRateV2Arguments {
|
|
2017
|
+
version: RawTransactionArgument<string>;
|
|
2018
|
+
registry: RawTransactionArgument<string>;
|
|
2019
|
+
poolRegistry: RawTransactionArgument<string>;
|
|
2020
|
+
oracleV2: RawTransactionArgument<string>;
|
|
2021
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2022
|
+
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2023
|
+
}
|
|
2024
|
+
export interface UpdateFundingRateV2Options {
|
|
2025
|
+
package?: string;
|
|
2026
|
+
arguments: UpdateFundingRateV2Arguments | [
|
|
2027
|
+
version: RawTransactionArgument<string>,
|
|
2028
|
+
registry: RawTransactionArgument<string>,
|
|
2029
|
+
poolRegistry: RawTransactionArgument<string>,
|
|
2030
|
+
oracleV2: RawTransactionArgument<string>,
|
|
2031
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2032
|
+
poolIndex: RawTransactionArgument<number | bigint>
|
|
2033
|
+
];
|
|
2034
|
+
typeArguments: [
|
|
2035
|
+
string
|
|
2036
|
+
];
|
|
1385
2037
|
}
|
|
1386
2038
|
/** [Authorized Function] Updates the funding rate. */
|
|
1387
|
-
export declare function
|
|
2039
|
+
export declare function updateFundingRateV2(options: UpdateFundingRateV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1388
2040
|
export interface GetExpiredPositionInfoArguments {
|
|
1389
2041
|
version: RawTransactionArgument<string>;
|
|
1390
2042
|
registry: RawTransactionArgument<string>;
|
|
@@ -1405,6 +2057,43 @@ export interface GetExpiredPositionInfoOptions {
|
|
|
1405
2057
|
];
|
|
1406
2058
|
}
|
|
1407
2059
|
export declare function getExpiredPositionInfo(options: GetExpiredPositionInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2060
|
+
export interface CreateUserAccountArguments {
|
|
2061
|
+
version: RawTransactionArgument<string>;
|
|
2062
|
+
registry: RawTransactionArgument<string>;
|
|
2063
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2064
|
+
}
|
|
2065
|
+
export interface CreateUserAccountOptions {
|
|
2066
|
+
package?: string;
|
|
2067
|
+
arguments: CreateUserAccountArguments | [
|
|
2068
|
+
version: RawTransactionArgument<string>,
|
|
2069
|
+
registry: RawTransactionArgument<string>,
|
|
2070
|
+
marketIndex: RawTransactionArgument<number | bigint>
|
|
2071
|
+
];
|
|
2072
|
+
}
|
|
2073
|
+
/** [User Function] Creates a new user account. */
|
|
2074
|
+
export declare function createUserAccount(options: CreateUserAccountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2075
|
+
export interface WithdrawUserAccountArguments {
|
|
2076
|
+
version: RawTransactionArgument<string>;
|
|
2077
|
+
registry: RawTransactionArgument<string>;
|
|
2078
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2079
|
+
amount: RawTransactionArgument<number | bigint | null>;
|
|
2080
|
+
userAccountCap: RawTransactionArgument<string>;
|
|
2081
|
+
}
|
|
2082
|
+
export interface WithdrawUserAccountOptions {
|
|
2083
|
+
package?: string;
|
|
2084
|
+
arguments: WithdrawUserAccountArguments | [
|
|
2085
|
+
version: RawTransactionArgument<string>,
|
|
2086
|
+
registry: RawTransactionArgument<string>,
|
|
2087
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2088
|
+
amount: RawTransactionArgument<number | bigint | null>,
|
|
2089
|
+
userAccountCap: RawTransactionArgument<string>
|
|
2090
|
+
];
|
|
2091
|
+
typeArguments: [
|
|
2092
|
+
string
|
|
2093
|
+
];
|
|
2094
|
+
}
|
|
2095
|
+
/** Withdraws collateral from a user account. Safe with `UserAccountCap` */
|
|
2096
|
+
export declare function withdrawUserAccount(options: WithdrawUserAccountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1408
2097
|
export interface PrepareOrderExecutionArguments {
|
|
1409
2098
|
symbolMarket: RawTransactionArgument<string>;
|
|
1410
2099
|
liquidityPool: RawTransactionArgument<string>;
|
|
@@ -1417,11 +2106,14 @@ export interface PrepareOrderExecutionOptions {
|
|
|
1417
2106
|
liquidityPool: RawTransactionArgument<string>,
|
|
1418
2107
|
order: RawTransactionArgument<string>
|
|
1419
2108
|
];
|
|
1420
|
-
typeArguments: [
|
|
2109
|
+
typeArguments: [
|
|
2110
|
+
string
|
|
2111
|
+
];
|
|
1421
2112
|
}
|
|
1422
2113
|
export declare function prepareOrderExecution(options: PrepareOrderExecutionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1423
2114
|
export interface ExecuteOrder_Arguments {
|
|
1424
2115
|
version: RawTransactionArgument<string>;
|
|
2116
|
+
referrals: RawTransactionArgument<string>;
|
|
1425
2117
|
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1426
2118
|
symbolMarket: RawTransactionArgument<string>;
|
|
1427
2119
|
liquidityPool: RawTransactionArgument<string>;
|
|
@@ -1442,6 +2134,7 @@ export interface ExecuteOrder_Options {
|
|
|
1442
2134
|
package?: string;
|
|
1443
2135
|
arguments: ExecuteOrder_Arguments | [
|
|
1444
2136
|
version: RawTransactionArgument<string>,
|
|
2137
|
+
referrals: RawTransactionArgument<string>,
|
|
1445
2138
|
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1446
2139
|
symbolMarket: RawTransactionArgument<string>,
|
|
1447
2140
|
liquidityPool: RawTransactionArgument<string>,
|
|
@@ -1458,14 +2151,16 @@ export interface ExecuteOrder_Options {
|
|
|
1458
2151
|
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1459
2152
|
competitionConfig: RawTransactionArgument<string>
|
|
1460
2153
|
];
|
|
1461
|
-
typeArguments: [
|
|
2154
|
+
typeArguments: [
|
|
2155
|
+
string
|
|
2156
|
+
];
|
|
1462
2157
|
}
|
|
1463
2158
|
export declare function executeOrder_(options: ExecuteOrder_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1464
2159
|
export interface ExecuteOptionCollateralOrder_Arguments {
|
|
1465
2160
|
version: RawTransactionArgument<string>;
|
|
2161
|
+
referrals: RawTransactionArgument<string>;
|
|
1466
2162
|
dovRegistry: RawTransactionArgument<string>;
|
|
1467
|
-
|
|
1468
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2163
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1469
2164
|
symbolMarket: RawTransactionArgument<string>;
|
|
1470
2165
|
liquidityPool: RawTransactionArgument<string>;
|
|
1471
2166
|
order: RawTransactionArgument<string>;
|
|
@@ -1485,9 +2180,9 @@ export interface ExecuteOptionCollateralOrder_Options {
|
|
|
1485
2180
|
package?: string;
|
|
1486
2181
|
arguments: ExecuteOptionCollateralOrder_Arguments | [
|
|
1487
2182
|
version: RawTransactionArgument<string>,
|
|
2183
|
+
referrals: RawTransactionArgument<string>,
|
|
1488
2184
|
dovRegistry: RawTransactionArgument<string>,
|
|
1489
|
-
|
|
1490
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2185
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1491
2186
|
symbolMarket: RawTransactionArgument<string>,
|
|
1492
2187
|
liquidityPool: RawTransactionArgument<string>,
|
|
1493
2188
|
order: RawTransactionArgument<string>,
|
|
@@ -1503,7 +2198,10 @@ export interface ExecuteOptionCollateralOrder_Options {
|
|
|
1503
2198
|
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1504
2199
|
competitionConfig: RawTransactionArgument<string>
|
|
1505
2200
|
];
|
|
1506
|
-
typeArguments: [
|
|
2201
|
+
typeArguments: [
|
|
2202
|
+
string,
|
|
2203
|
+
string
|
|
2204
|
+
];
|
|
1507
2205
|
}
|
|
1508
2206
|
export declare function executeOptionCollateralOrder_(options: ExecuteOptionCollateralOrder_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1509
2207
|
export interface RemoveLinkedOrdersArguments {
|
|
@@ -1524,7 +2222,9 @@ export interface RemoveLinkedOrdersOptions {
|
|
|
1524
2222
|
linkedOrderPrices: RawTransactionArgument<number | bigint[]>,
|
|
1525
2223
|
user: RawTransactionArgument<string>
|
|
1526
2224
|
];
|
|
1527
|
-
typeArguments: [
|
|
2225
|
+
typeArguments: [
|
|
2226
|
+
string
|
|
2227
|
+
];
|
|
1528
2228
|
}
|
|
1529
2229
|
export declare function removeLinkedOrders(options: RemoveLinkedOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1530
2230
|
export interface RemoveLinkedOrder_Arguments {
|
|
@@ -1543,7 +2243,9 @@ export interface RemoveLinkedOrder_Options {
|
|
|
1543
2243
|
order: RawTransactionArgument<string>,
|
|
1544
2244
|
user: RawTransactionArgument<string>
|
|
1545
2245
|
];
|
|
1546
|
-
typeArguments: [
|
|
2246
|
+
typeArguments: [
|
|
2247
|
+
string
|
|
2248
|
+
];
|
|
1547
2249
|
}
|
|
1548
2250
|
export declare function removeLinkedOrder_(options: RemoveLinkedOrder_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1549
2251
|
export interface GetMutOrdersArguments {
|
|
@@ -1579,7 +2281,9 @@ export interface GetOrderKeyArguments {
|
|
|
1579
2281
|
}
|
|
1580
2282
|
export interface GetOrderKeyOptions {
|
|
1581
2283
|
package?: string;
|
|
1582
|
-
arguments: GetOrderKeyArguments | [
|
|
2284
|
+
arguments: GetOrderKeyArguments | [
|
|
2285
|
+
orderTypeTag: RawTransactionArgument<number>
|
|
2286
|
+
];
|
|
1583
2287
|
}
|
|
1584
2288
|
export declare function getOrderKey(options: GetOrderKeyOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1585
2289
|
export interface TakeOrderByOrderIdAndPriceArguments {
|
|
@@ -1634,7 +2338,9 @@ export interface CheckCollateralEnoughWhenAddingPositionOptions {
|
|
|
1634
2338
|
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
1635
2339
|
tradingFeeMbp: RawTransactionArgument<number | bigint>
|
|
1636
2340
|
];
|
|
1637
|
-
typeArguments: [
|
|
2341
|
+
typeArguments: [
|
|
2342
|
+
string
|
|
2343
|
+
];
|
|
1638
2344
|
}
|
|
1639
2345
|
export declare function checkCollateralEnoughWhenAddingPosition(options: CheckCollateralEnoughWhenAddingPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1640
2346
|
export interface CheckCollateralEnoughWhenReducingPositionArguments {
|
|
@@ -1657,13 +2363,14 @@ export interface CheckCollateralEnoughWhenReducingPositionOptions {
|
|
|
1657
2363
|
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
1658
2364
|
tradingFeeMbp: RawTransactionArgument<number | bigint>
|
|
1659
2365
|
];
|
|
1660
|
-
typeArguments: [
|
|
2366
|
+
typeArguments: [
|
|
2367
|
+
string
|
|
2368
|
+
];
|
|
1661
2369
|
}
|
|
1662
2370
|
export declare function checkCollateralEnoughWhenReducingPosition(options: CheckCollateralEnoughWhenReducingPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1663
2371
|
export interface CheckOptionCollateralEnoughArguments {
|
|
1664
2372
|
dovRegistry: RawTransactionArgument<string>;
|
|
1665
|
-
|
|
1666
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2373
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1667
2374
|
symbolMarket: RawTransactionArgument<string>;
|
|
1668
2375
|
order: RawTransactionArgument<string>;
|
|
1669
2376
|
collateralOraclePrice: RawTransactionArgument<number | bigint>;
|
|
@@ -1676,8 +2383,7 @@ export interface CheckOptionCollateralEnoughOptions {
|
|
|
1676
2383
|
package?: string;
|
|
1677
2384
|
arguments: CheckOptionCollateralEnoughArguments | [
|
|
1678
2385
|
dovRegistry: RawTransactionArgument<string>,
|
|
1679
|
-
|
|
1680
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2386
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1681
2387
|
symbolMarket: RawTransactionArgument<string>,
|
|
1682
2388
|
order: RawTransactionArgument<string>,
|
|
1683
2389
|
collateralOraclePrice: RawTransactionArgument<number | bigint>,
|
|
@@ -1686,7 +2392,9 @@ export interface CheckOptionCollateralEnoughOptions {
|
|
|
1686
2392
|
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
1687
2393
|
tradingFeeMbp: RawTransactionArgument<number | bigint>
|
|
1688
2394
|
];
|
|
1689
|
-
typeArguments: [
|
|
2395
|
+
typeArguments: [
|
|
2396
|
+
string
|
|
2397
|
+
];
|
|
1690
2398
|
}
|
|
1691
2399
|
export declare function checkOptionCollateralEnough(options: CheckOptionCollateralEnoughOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1692
2400
|
export interface CheckReserveEnoughArguments {
|
|
@@ -1709,7 +2417,9 @@ export interface CheckReserveEnoughOptions {
|
|
|
1709
2417
|
tradingPairOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1710
2418
|
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>
|
|
1711
2419
|
];
|
|
1712
|
-
typeArguments: [
|
|
2420
|
+
typeArguments: [
|
|
2421
|
+
string
|
|
2422
|
+
];
|
|
1713
2423
|
}
|
|
1714
2424
|
export declare function checkReserveEnough(options: CheckReserveEnoughOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1715
2425
|
export interface GetMaxReleasingCollateralAmount_Arguments {
|
|
@@ -1740,12 +2450,23 @@ export interface GetMaxReleasingCollateralAmount_Options {
|
|
|
1740
2450
|
];
|
|
1741
2451
|
}
|
|
1742
2452
|
export declare function getMaxReleasingCollateralAmount_(options: GetMaxReleasingCollateralAmount_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2453
|
+
export interface GetV2PriceArguments {
|
|
2454
|
+
oracleV2: RawTransactionArgument<string>;
|
|
2455
|
+
tokenType: RawTransactionArgument<string>;
|
|
2456
|
+
}
|
|
2457
|
+
export interface GetV2PriceOptions {
|
|
2458
|
+
package?: string;
|
|
2459
|
+
arguments: GetV2PriceArguments | [
|
|
2460
|
+
oracleV2: RawTransactionArgument<string>,
|
|
2461
|
+
tokenType: RawTransactionArgument<string>
|
|
2462
|
+
];
|
|
2463
|
+
}
|
|
2464
|
+
export declare function getV2Price(options: GetV2PriceOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1743
2465
|
export interface NormalSafetyCheckArguments {
|
|
1744
2466
|
version: RawTransactionArgument<string>;
|
|
1745
2467
|
registry: RawTransactionArgument<string>;
|
|
1746
2468
|
poolRegistry: RawTransactionArgument<string>;
|
|
1747
|
-
|
|
1748
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2469
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1749
2470
|
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1750
2471
|
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1751
2472
|
positionId: RawTransactionArgument<number | bigint | null>;
|
|
@@ -1756,13 +2477,15 @@ export interface NormalSafetyCheckOptions {
|
|
|
1756
2477
|
version: RawTransactionArgument<string>,
|
|
1757
2478
|
registry: RawTransactionArgument<string>,
|
|
1758
2479
|
poolRegistry: RawTransactionArgument<string>,
|
|
1759
|
-
|
|
1760
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2480
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1761
2481
|
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1762
2482
|
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1763
2483
|
positionId: RawTransactionArgument<number | bigint | null>
|
|
1764
2484
|
];
|
|
1765
|
-
typeArguments: [
|
|
2485
|
+
typeArguments: [
|
|
2486
|
+
string,
|
|
2487
|
+
string
|
|
2488
|
+
];
|
|
1766
2489
|
}
|
|
1767
2490
|
export declare function normalSafetyCheck(options: NormalSafetyCheckOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1768
2491
|
export interface ValidateTradingFeeConfigArguments {
|
|
@@ -1770,7 +2493,9 @@ export interface ValidateTradingFeeConfigArguments {
|
|
|
1770
2493
|
}
|
|
1771
2494
|
export interface ValidateTradingFeeConfigOptions {
|
|
1772
2495
|
package?: string;
|
|
1773
|
-
arguments: ValidateTradingFeeConfigArguments | [
|
|
2496
|
+
arguments: ValidateTradingFeeConfigArguments | [
|
|
2497
|
+
config: RawTransactionArgument<number | bigint[]>
|
|
2498
|
+
];
|
|
1774
2499
|
}
|
|
1775
2500
|
export declare function validateTradingFeeConfig(options: ValidateTradingFeeConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1776
2501
|
export interface AdjustMarketInfoUserOrderSizeArguments {
|
|
@@ -1811,8 +2536,14 @@ export interface ExerciseBidReceiptsArguments {
|
|
|
1811
2536
|
}
|
|
1812
2537
|
export interface ExerciseBidReceiptsOptions {
|
|
1813
2538
|
package?: string;
|
|
1814
|
-
arguments: ExerciseBidReceiptsArguments | [
|
|
1815
|
-
|
|
2539
|
+
arguments: ExerciseBidReceiptsArguments | [
|
|
2540
|
+
dovRegistry: RawTransactionArgument<string>,
|
|
2541
|
+
bidReceipts: RawTransactionArgument<string[]>
|
|
2542
|
+
];
|
|
2543
|
+
typeArguments: [
|
|
2544
|
+
string,
|
|
2545
|
+
string
|
|
2546
|
+
];
|
|
1816
2547
|
}
|
|
1817
2548
|
export declare function exerciseBidReceipts(options: ExerciseBidReceiptsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1818
2549
|
export interface ReturnToUserArguments {
|
|
@@ -1821,8 +2552,13 @@ export interface ReturnToUserArguments {
|
|
|
1821
2552
|
}
|
|
1822
2553
|
export interface ReturnToUserOptions {
|
|
1823
2554
|
package?: string;
|
|
1824
|
-
arguments: ReturnToUserArguments | [
|
|
1825
|
-
|
|
2555
|
+
arguments: ReturnToUserArguments | [
|
|
2556
|
+
balance: RawTransactionArgument<string>,
|
|
2557
|
+
user: RawTransactionArgument<string>
|
|
2558
|
+
];
|
|
2559
|
+
typeArguments: [
|
|
2560
|
+
string
|
|
2561
|
+
];
|
|
1826
2562
|
}
|
|
1827
2563
|
export declare function returnToUser(options: ReturnToUserOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1828
2564
|
export interface CheckPositionUserMatchedArguments {
|
|
@@ -1831,9 +2567,26 @@ export interface CheckPositionUserMatchedArguments {
|
|
|
1831
2567
|
}
|
|
1832
2568
|
export interface CheckPositionUserMatchedOptions {
|
|
1833
2569
|
package?: string;
|
|
1834
|
-
arguments: CheckPositionUserMatchedArguments | [
|
|
2570
|
+
arguments: CheckPositionUserMatchedArguments | [
|
|
2571
|
+
position: RawTransactionArgument<string>,
|
|
2572
|
+
user: RawTransactionArgument<string>
|
|
2573
|
+
];
|
|
1835
2574
|
}
|
|
1836
2575
|
export declare function checkPositionUserMatched(options: CheckPositionUserMatchedOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2576
|
+
export interface GetUserReferralArguments {
|
|
2577
|
+
version: RawTransactionArgument<string>;
|
|
2578
|
+
registry: RawTransactionArgument<string>;
|
|
2579
|
+
user: RawTransactionArgument<string>;
|
|
2580
|
+
}
|
|
2581
|
+
export interface GetUserReferralOptions {
|
|
2582
|
+
package?: string;
|
|
2583
|
+
arguments: GetUserReferralArguments | [
|
|
2584
|
+
version: RawTransactionArgument<string>,
|
|
2585
|
+
registry: RawTransactionArgument<string>,
|
|
2586
|
+
user: RawTransactionArgument<string>
|
|
2587
|
+
];
|
|
2588
|
+
}
|
|
2589
|
+
export declare function getUserReferral(options: GetUserReferralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1837
2590
|
export interface GetUserOrdersArguments {
|
|
1838
2591
|
version: RawTransactionArgument<string>;
|
|
1839
2592
|
registry: RawTransactionArgument<string>;
|
|
@@ -1884,7 +2637,9 @@ export interface GetAllPositionsOptions {
|
|
|
1884
2637
|
slice: RawTransactionArgument<number | bigint>,
|
|
1885
2638
|
page: RawTransactionArgument<number | bigint>
|
|
1886
2639
|
];
|
|
1887
|
-
typeArguments: [
|
|
2640
|
+
typeArguments: [
|
|
2641
|
+
string
|
|
2642
|
+
];
|
|
1888
2643
|
}
|
|
1889
2644
|
/** [View Function] Gets all positions. */
|
|
1890
2645
|
export declare function getAllPositions(options: GetAllPositionsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -1902,7 +2657,9 @@ export interface GetActiveOrdersByOrderTagOptions {
|
|
|
1902
2657
|
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1903
2658
|
orderTypeTag: RawTransactionArgument<number>
|
|
1904
2659
|
];
|
|
1905
|
-
typeArguments: [
|
|
2660
|
+
typeArguments: [
|
|
2661
|
+
string
|
|
2662
|
+
];
|
|
1906
2663
|
}
|
|
1907
2664
|
/** [View Function] Gets active orders by order type tag. */
|
|
1908
2665
|
export declare function getActiveOrdersByOrderTag(options: GetActiveOrdersByOrderTagOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -1910,8 +2667,7 @@ export interface GetMaxReleasingCollateralAmountArguments {
|
|
|
1910
2667
|
version: RawTransactionArgument<string>;
|
|
1911
2668
|
registry: RawTransactionArgument<string>;
|
|
1912
2669
|
poolRegistry: RawTransactionArgument<string>;
|
|
1913
|
-
|
|
1914
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2670
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1915
2671
|
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1916
2672
|
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1917
2673
|
positionId: RawTransactionArgument<number | bigint>;
|
|
@@ -1922,13 +2678,15 @@ export interface GetMaxReleasingCollateralAmountOptions {
|
|
|
1922
2678
|
version: RawTransactionArgument<string>,
|
|
1923
2679
|
registry: RawTransactionArgument<string>,
|
|
1924
2680
|
poolRegistry: RawTransactionArgument<string>,
|
|
1925
|
-
|
|
1926
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2681
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1927
2682
|
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1928
2683
|
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1929
2684
|
positionId: RawTransactionArgument<number | bigint>
|
|
1930
2685
|
];
|
|
1931
|
-
typeArguments: [
|
|
2686
|
+
typeArguments: [
|
|
2687
|
+
string,
|
|
2688
|
+
string
|
|
2689
|
+
];
|
|
1932
2690
|
}
|
|
1933
2691
|
/**
|
|
1934
2692
|
* [View Function] Gets the maximum amount of collateral that can be released from
|
|
@@ -1940,8 +2698,7 @@ export interface GetEstimatedLiquidationPriceAndPnlArguments {
|
|
|
1940
2698
|
registry: RawTransactionArgument<string>;
|
|
1941
2699
|
poolRegistry: RawTransactionArgument<string>;
|
|
1942
2700
|
dovRegistry: RawTransactionArgument<string>;
|
|
1943
|
-
|
|
1944
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2701
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1945
2702
|
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1946
2703
|
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1947
2704
|
positionId: RawTransactionArgument<number | bigint>;
|
|
@@ -1953,13 +2710,15 @@ export interface GetEstimatedLiquidationPriceAndPnlOptions {
|
|
|
1953
2710
|
registry: RawTransactionArgument<string>,
|
|
1954
2711
|
poolRegistry: RawTransactionArgument<string>,
|
|
1955
2712
|
dovRegistry: RawTransactionArgument<string>,
|
|
1956
|
-
|
|
1957
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2713
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1958
2714
|
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1959
2715
|
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1960
2716
|
positionId: RawTransactionArgument<number | bigint>
|
|
1961
2717
|
];
|
|
1962
|
-
typeArguments: [
|
|
2718
|
+
typeArguments: [
|
|
2719
|
+
string,
|
|
2720
|
+
string
|
|
2721
|
+
];
|
|
1963
2722
|
}
|
|
1964
2723
|
/** [View Functio Only] Gets the estimated liquidation price and PnL for a position. */
|
|
1965
2724
|
export declare function getEstimatedLiquidationPriceAndPnl(options: GetEstimatedLiquidationPriceAndPnlOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -1997,7 +2756,10 @@ export interface GetMarketsBcsArguments {
|
|
|
1997
2756
|
}
|
|
1998
2757
|
export interface GetMarketsBcsOptions {
|
|
1999
2758
|
package?: string;
|
|
2000
|
-
arguments: GetMarketsBcsArguments | [
|
|
2759
|
+
arguments: GetMarketsBcsArguments | [
|
|
2760
|
+
registry: RawTransactionArgument<string>,
|
|
2761
|
+
indexes: RawTransactionArgument<number | bigint[]>
|
|
2762
|
+
];
|
|
2001
2763
|
}
|
|
2002
2764
|
/** [View Function] Gets the BCS-serialized markets. */
|
|
2003
2765
|
export declare function getMarketsBcs(options: GetMarketsBcsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -2007,7 +2769,10 @@ export interface GetMutMarketIdArguments {
|
|
|
2007
2769
|
}
|
|
2008
2770
|
export interface GetMutMarketIdOptions {
|
|
2009
2771
|
package?: string;
|
|
2010
|
-
arguments: GetMutMarketIdArguments | [
|
|
2772
|
+
arguments: GetMutMarketIdArguments | [
|
|
2773
|
+
registry: RawTransactionArgument<string>,
|
|
2774
|
+
marketIndex: RawTransactionArgument<number | bigint>
|
|
2775
|
+
];
|
|
2011
2776
|
}
|
|
2012
2777
|
/** Gets a mutable reference to the market ID. WARNING: no authority check inside */
|
|
2013
2778
|
export declare function getMutMarketId(options: GetMutMarketIdOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -2016,12 +2781,64 @@ export interface TradingSymbolExistsArguments {
|
|
|
2016
2781
|
}
|
|
2017
2782
|
export interface TradingSymbolExistsOptions {
|
|
2018
2783
|
package?: string;
|
|
2019
|
-
arguments: TradingSymbolExistsArguments | [
|
|
2020
|
-
|
|
2784
|
+
arguments: TradingSymbolExistsArguments | [
|
|
2785
|
+
market: RawTransactionArgument<string>
|
|
2786
|
+
];
|
|
2787
|
+
typeArguments: [
|
|
2788
|
+
string
|
|
2789
|
+
];
|
|
2021
2790
|
}
|
|
2022
2791
|
export declare function tradingSymbolExists(options: TradingSymbolExistsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2792
|
+
export interface ManagerCancelOrderByOpenInterestLimitArguments {
|
|
2793
|
+
version: RawTransactionArgument<string>;
|
|
2794
|
+
registry: RawTransactionArgument<string>;
|
|
2795
|
+
poolRegistry: RawTransactionArgument<string>;
|
|
2796
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2797
|
+
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2798
|
+
orderTypeTag: RawTransactionArgument<number>;
|
|
2799
|
+
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
2800
|
+
maxOperationCount: RawTransactionArgument<number | bigint>;
|
|
2801
|
+
}
|
|
2802
|
+
export interface ManagerCancelOrderByOpenInterestLimitOptions {
|
|
2803
|
+
package?: string;
|
|
2804
|
+
arguments: ManagerCancelOrderByOpenInterestLimitArguments | [
|
|
2805
|
+
version: RawTransactionArgument<string>,
|
|
2806
|
+
registry: RawTransactionArgument<string>,
|
|
2807
|
+
poolRegistry: RawTransactionArgument<string>,
|
|
2808
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2809
|
+
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2810
|
+
orderTypeTag: RawTransactionArgument<number>,
|
|
2811
|
+
triggerPrice: RawTransactionArgument<number | bigint>,
|
|
2812
|
+
maxOperationCount: RawTransactionArgument<number | bigint>
|
|
2813
|
+
];
|
|
2814
|
+
typeArguments: [
|
|
2815
|
+
string,
|
|
2816
|
+
string
|
|
2817
|
+
];
|
|
2818
|
+
}
|
|
2819
|
+
export declare function managerCancelOrderByOpenInterestLimit(options: ManagerCancelOrderByOpenInterestLimitOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2023
2820
|
export interface DeprecatedOptions {
|
|
2024
2821
|
package?: string;
|
|
2025
|
-
arguments?: [
|
|
2822
|
+
arguments?: [
|
|
2823
|
+
];
|
|
2026
2824
|
}
|
|
2027
2825
|
export declare function deprecated(options?: DeprecatedOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2826
|
+
export interface MigrateOracleIdToV2Arguments {
|
|
2827
|
+
version: RawTransactionArgument<string>;
|
|
2828
|
+
registry: RawTransactionArgument<string>;
|
|
2829
|
+
oracleV2: RawTransactionArgument<string>;
|
|
2830
|
+
}
|
|
2831
|
+
export interface MigrateOracleIdToV2Options {
|
|
2832
|
+
package?: string;
|
|
2833
|
+
arguments: MigrateOracleIdToV2Arguments | [
|
|
2834
|
+
version: RawTransactionArgument<string>,
|
|
2835
|
+
registry: RawTransactionArgument<string>,
|
|
2836
|
+
oracleV2: RawTransactionArgument<string>
|
|
2837
|
+
];
|
|
2838
|
+
}
|
|
2839
|
+
/**
|
|
2840
|
+
* [Authorized Function] Overwrite every SymbolMarket's `oracle_id` with the live
|
|
2841
|
+
* `OracleV2` id. Run once after upgrading typus_perp to point all market configs
|
|
2842
|
+
* at the redeployed OracleV2.
|
|
2843
|
+
*/
|
|
2844
|
+
export declare function migrateOracleIdToV2(options: MigrateOracleIdToV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|