@typus/typus-perp-sdk 1.1.53 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/api/sentio.js +2 -2
- package/dist/src/client.d.ts +13 -12
- package/dist/src/client.js +24 -49
- package/dist/src/fetch.d.ts +15 -61
- package/dist/src/fetch.js +63 -163
- package/dist/src/generated/typus_perp/admin.d.ts +32 -42
- package/dist/src/generated/typus_perp/admin.js +41 -67
- package/dist/src/generated/typus_perp/competition.d.ts +22 -10
- package/dist/src/generated/typus_perp/competition.js +19 -54
- package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +2 -2
- package/dist/src/generated/typus_perp/deps/std/type_name.js +2 -2
- package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +3 -3
- package/dist/src/generated/typus_perp/deps/sui/balance.js +3 -3
- package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +4 -6
- package/dist/src/generated/typus_perp/deps/sui/object_table.js +4 -38
- package/dist/src/generated/typus_perp/deps/sui/table.d.ts +4 -6
- package/dist/src/generated/typus_perp/deps/sui/table.js +4 -38
- package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +2 -2
- package/dist/src/generated/typus_perp/deps/sui/vec_set.js +2 -2
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +7 -9
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +6 -6
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +6 -10
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +5 -39
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +14 -8
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +13 -39
- package/dist/src/generated/typus_perp/error.d.ts +97 -87
- package/dist/src/generated/typus_perp/error.js +18 -0
- package/dist/src/generated/typus_perp/escrow.d.ts +17 -21
- package/dist/src/generated/typus_perp/escrow.js +10 -22
- package/dist/src/generated/typus_perp/lending.d.ts +47 -0
- package/dist/src/generated/typus_perp/lending.js +40 -0
- package/dist/src/generated/typus_perp/lp_pool.d.ts +718 -397
- package/dist/src/generated/typus_perp/lp_pool.js +485 -365
- package/dist/src/generated/typus_perp/math.d.ts +18 -8
- package/dist/src/generated/typus_perp/math.js +24 -6
- package/dist/src/generated/typus_perp/position.d.ts +207 -185
- package/dist/src/generated/typus_perp/position.js +236 -277
- package/dist/src/generated/typus_perp/profit_vault.d.ts +64 -72
- package/dist/src/generated/typus_perp/profit_vault.js +48 -86
- package/dist/src/generated/typus_perp/symbol.d.ts +6 -6
- package/dist/src/generated/typus_perp/symbol.js +11 -13
- package/dist/src/generated/typus_perp/trading.d.ts +451 -558
- package/dist/src/generated/typus_perp/trading.js +429 -681
- package/dist/src/generated/typus_perp/treasury_caps.d.ts +5 -7
- package/dist/src/generated/typus_perp/treasury_caps.js +8 -45
- package/dist/src/generated/typus_stake_pool/admin.d.ts +13 -122
- package/dist/src/generated/typus_stake_pool/admin.js +19 -103
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +2 -2
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +2 -2
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +2 -2
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +2 -2
- package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +249 -240
- package/dist/src/generated/typus_stake_pool/stake_pool.js +159 -246
- package/dist/src/generated/utils/index.d.ts +21 -2
- package/dist/src/generated/utils/index.js +34 -10
- package/dist/src/index.js +4 -4
- package/dist/src/user/history.js +39 -23
- package/dist/src/user/order.d.ts +1 -1
- package/dist/src/user/orderWithBidReceipt.d.ts +1 -1
- package/package.json +8 -14
- package/dist/src/generated/typus_perp/deps/sui/object.d.ts +0 -8
- package/dist/src/generated/typus_perp/deps/sui/object.js +0 -16
- package/dist/src/generated/typus_perp/user_account.d.ts +0 -146
- package/dist/src/generated/typus_perp/user_account.js +0 -221
- package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +0 -8
- package/dist/src/generated/typus_stake_pool/deps/sui/object.js +0 -16
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +0 -30
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +0 -37
- package/dist/src/grpc/graphql.d.ts +0 -26
- package/dist/src/grpc/graphql.js +0 -126
- package/dist/src/grpc/grpc.d.ts +0 -1
- package/dist/src/grpc/grpc.js +0 -38
- package/dist/src/grpc/ledgerService.d.ts +0 -0
- package/dist/src/grpc/ledgerService.js +0 -64
- package/dist/src/grpc/liveDataService.d.ts +0 -0
- package/dist/src/grpc/liveDataService.js +0 -49
|
@@ -1,55 +1,45 @@
|
|
|
1
1
|
/**************************************************************
|
|
2
2
|
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
3
|
**************************************************************/
|
|
4
|
-
import { MoveStruct, type RawTransactionArgument } from "../utils/index";
|
|
4
|
+
import { MoveStruct, type RawTransactionArgument } from "../utils/index.js";
|
|
5
5
|
import { type Transaction } from "@mysten/sui/transactions";
|
|
6
6
|
export declare const MarketRegistry: MoveStruct<{
|
|
7
|
-
id:
|
|
8
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
9
|
-
}, "0x2::object::UID">;
|
|
7
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
10
8
|
/** The UID of the referral registry. */
|
|
11
|
-
referral_registry:
|
|
12
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
13
|
-
}, "0x2::object::UID">;
|
|
9
|
+
referral_registry: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
14
10
|
/** A linked object table of markets. */
|
|
15
11
|
markets: MoveStruct<{
|
|
16
|
-
id:
|
|
17
|
-
|
|
18
|
-
}, "
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
23
|
-
head: import("@mysten/sui/bcs").BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
24
|
-
tail: import("@mysten/sui/bcs").BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
25
|
-
}, "typus::linked_object_table::LinkedObjectTable<u64>">;
|
|
12
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
13
|
+
vid: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
14
|
+
size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
15
|
+
head: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
16
|
+
tail: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
17
|
+
}, "typus::linked_object_table::LinkedObjectTable<u64, phantom V>">;
|
|
26
18
|
/** The number of markets. */
|
|
27
|
-
num_market: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
19
|
+
num_market: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
28
20
|
/** Padding for future use. */
|
|
29
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
21
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
30
22
|
length: number;
|
|
31
23
|
}, string>;
|
|
32
24
|
}, "@typus/perp::trading::MarketRegistry">;
|
|
33
25
|
export declare const Markets: MoveStruct<{
|
|
34
|
-
id:
|
|
35
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
36
|
-
}, "0x2::object::UID">;
|
|
26
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
37
27
|
/** The index of the market. */
|
|
38
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
28
|
+
index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
39
29
|
/** The type name of the LP token. */
|
|
40
30
|
lp_token_type: MoveStruct<{
|
|
41
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
31
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
42
32
|
}, "std::type_name::TypeName">;
|
|
43
33
|
/** The type name of the quote token. */
|
|
44
34
|
quote_token_type: MoveStruct<{
|
|
45
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
35
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
46
36
|
}, "std::type_name::TypeName">;
|
|
47
37
|
/** Whether the market is active. */
|
|
48
|
-
is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
38
|
+
is_active: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
49
39
|
/** The protocol's share of the trading fee in basis points. */
|
|
50
|
-
protocol_fee_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
40
|
+
protocol_fee_share_bp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
51
41
|
/** A vector of the symbols in the market. */
|
|
52
|
-
symbols: import("@mysten/sui/bcs").BcsType<{
|
|
42
|
+
symbols: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<{
|
|
53
43
|
name: string;
|
|
54
44
|
}[], Iterable<{
|
|
55
45
|
name: string;
|
|
@@ -58,635 +48,620 @@ export declare const Markets: MoveStruct<{
|
|
|
58
48
|
}, string>;
|
|
59
49
|
/** An object table of the symbol markets. */
|
|
60
50
|
symbol_markets: MoveStruct<{
|
|
61
|
-
id:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
65
|
-
}, "0x2::object_table::ObjectTable">;
|
|
51
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
52
|
+
size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
53
|
+
}, "0x2::object_table::ObjectTable<phantom K, phantom V>">;
|
|
66
54
|
/** Padding for future use. */
|
|
67
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
55
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
68
56
|
length: number;
|
|
69
57
|
}, string>;
|
|
70
58
|
}, "@typus/perp::trading::Markets">;
|
|
71
59
|
export declare const MarketInfo: MoveStruct<{
|
|
72
60
|
/** Whether the market is active. */
|
|
73
|
-
is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
61
|
+
is_active: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
74
62
|
/** The number of decimals for the size. */
|
|
75
|
-
size_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
63
|
+
size_decimal: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
76
64
|
/** The total size of long positions. */
|
|
77
|
-
user_long_position_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
65
|
+
user_long_position_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
78
66
|
/** The total size of short positions. */
|
|
79
|
-
user_short_position_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
67
|
+
user_short_position_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
80
68
|
/** The next position ID. */
|
|
81
|
-
next_position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
69
|
+
next_position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
82
70
|
/** The total size of long orders. */
|
|
83
|
-
user_long_order_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
71
|
+
user_long_order_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
84
72
|
/** The total size of short orders. */
|
|
85
|
-
user_short_order_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
73
|
+
user_short_order_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
86
74
|
/** The next order ID. */
|
|
87
|
-
next_order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
75
|
+
next_order_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
88
76
|
/** The timestamp of the last funding. */
|
|
89
|
-
last_funding_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
77
|
+
last_funding_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
90
78
|
/** The sign of the cumulative funding rate index. */
|
|
91
|
-
cumulative_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
79
|
+
cumulative_funding_rate_index_sign: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
92
80
|
/** The cumulative funding rate index. */
|
|
93
|
-
cumulative_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
81
|
+
cumulative_funding_rate_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
94
82
|
/** The previous timestamp of the last funding. */
|
|
95
|
-
previous_last_funding_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
83
|
+
previous_last_funding_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
96
84
|
/** The previous sign of the cumulative funding rate index. */
|
|
97
|
-
previous_cumulative_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
85
|
+
previous_cumulative_funding_rate_index_sign: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
98
86
|
/** The previous cumulative funding rate index. */
|
|
99
|
-
previous_cumulative_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
87
|
+
previous_cumulative_funding_rate_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
100
88
|
/** Padding for future use. */
|
|
101
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
89
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
102
90
|
length: number;
|
|
103
91
|
}, string>;
|
|
104
92
|
}, "@typus/perp::trading::MarketInfo">;
|
|
105
93
|
export declare const MarketConfig: MoveStruct<{
|
|
106
94
|
/** The address of the oracle. */
|
|
107
|
-
oracle_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
95
|
+
oracle_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
108
96
|
/** The maximum leverage in mega basis points. */
|
|
109
|
-
max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
97
|
+
max_leverage_mbp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
110
98
|
/** The maximum leverage for option collateral in mega basis points. */
|
|
111
|
-
option_collateral_max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
99
|
+
option_collateral_max_leverage_mbp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
112
100
|
/** The minimum size of an order. */
|
|
113
|
-
min_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
101
|
+
min_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
114
102
|
/** The lot size of an order. */
|
|
115
|
-
lot_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
103
|
+
lot_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
116
104
|
/** The trading fee configuration. */
|
|
117
|
-
trading_fee_config: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
105
|
+
trading_fee_config: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
118
106
|
length: number;
|
|
119
107
|
}, string>;
|
|
120
108
|
/** The basic funding rate. */
|
|
121
|
-
basic_funding_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
109
|
+
basic_funding_rate: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
122
110
|
/** The funding interval in milliseconds. */
|
|
123
|
-
funding_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
111
|
+
funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
124
112
|
/** The experience multiplier. */
|
|
125
|
-
exp_multiplier: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
126
|
-
/** The cool
|
|
127
|
-
cool_down_threshold_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
113
|
+
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">;
|
|
128
116
|
/** Padding for future use. */
|
|
129
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
117
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
130
118
|
length: number;
|
|
131
119
|
}, string>;
|
|
132
120
|
}, "@typus/perp::trading::MarketConfig">;
|
|
133
121
|
export declare const SymbolMarket: MoveStruct<{
|
|
134
|
-
id:
|
|
135
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
136
|
-
}, "0x2::object::UID">;
|
|
122
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
137
123
|
/** A keyed big vector of user positions. */
|
|
138
124
|
user_positions: MoveStruct<{
|
|
139
|
-
id:
|
|
140
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
141
|
-
}, "0x2::object::UID">;
|
|
125
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
142
126
|
key_type: MoveStruct<{
|
|
143
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
127
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
144
128
|
}, "std::type_name::TypeName">;
|
|
145
129
|
value_type: MoveStruct<{
|
|
146
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
130
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
147
131
|
}, "std::type_name::TypeName">;
|
|
148
|
-
slice_idx: import("@mysten/sui/bcs").BcsType<number, number, "u16">;
|
|
149
|
-
slice_size: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
|
|
150
|
-
length: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
132
|
+
slice_idx: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<number, number, "u16">;
|
|
133
|
+
slice_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<number, number, "u32">;
|
|
134
|
+
length: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
151
135
|
}, "typus::keyed_big_vector::KeyedBigVector">;
|
|
152
136
|
/** The UID of the token collateral orders. */
|
|
153
|
-
token_collateral_orders:
|
|
154
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
155
|
-
}, "0x2::object::UID">;
|
|
137
|
+
token_collateral_orders: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
156
138
|
/** The UID of the option collateral orders. */
|
|
157
|
-
option_collateral_orders:
|
|
158
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
159
|
-
}, "0x2::object::UID">;
|
|
139
|
+
option_collateral_orders: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
160
140
|
/** Information about the market. */
|
|
161
141
|
market_info: MoveStruct<{
|
|
162
142
|
/** Whether the market is active. */
|
|
163
|
-
is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
143
|
+
is_active: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
164
144
|
/** The number of decimals for the size. */
|
|
165
|
-
size_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
145
|
+
size_decimal: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
166
146
|
/** The total size of long positions. */
|
|
167
|
-
user_long_position_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
147
|
+
user_long_position_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
168
148
|
/** The total size of short positions. */
|
|
169
|
-
user_short_position_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
149
|
+
user_short_position_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
170
150
|
/** The next position ID. */
|
|
171
|
-
next_position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
151
|
+
next_position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
172
152
|
/** The total size of long orders. */
|
|
173
|
-
user_long_order_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
153
|
+
user_long_order_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
174
154
|
/** The total size of short orders. */
|
|
175
|
-
user_short_order_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
155
|
+
user_short_order_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
176
156
|
/** The next order ID. */
|
|
177
|
-
next_order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
157
|
+
next_order_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
178
158
|
/** The timestamp of the last funding. */
|
|
179
|
-
last_funding_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
159
|
+
last_funding_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
180
160
|
/** The sign of the cumulative funding rate index. */
|
|
181
|
-
cumulative_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
161
|
+
cumulative_funding_rate_index_sign: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
182
162
|
/** The cumulative funding rate index. */
|
|
183
|
-
cumulative_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
163
|
+
cumulative_funding_rate_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
184
164
|
/** The previous timestamp of the last funding. */
|
|
185
|
-
previous_last_funding_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
165
|
+
previous_last_funding_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
186
166
|
/** The previous sign of the cumulative funding rate index. */
|
|
187
|
-
previous_cumulative_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
167
|
+
previous_cumulative_funding_rate_index_sign: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
188
168
|
/** The previous cumulative funding rate index. */
|
|
189
|
-
previous_cumulative_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
169
|
+
previous_cumulative_funding_rate_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
190
170
|
/** Padding for future use. */
|
|
191
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
171
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
192
172
|
length: number;
|
|
193
173
|
}, string>;
|
|
194
174
|
}, "@typus/perp::trading::MarketInfo">;
|
|
195
175
|
/** Configuration for the market. */
|
|
196
176
|
market_config: MoveStruct<{
|
|
197
177
|
/** The address of the oracle. */
|
|
198
|
-
oracle_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
178
|
+
oracle_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
199
179
|
/** The maximum leverage in mega basis points. */
|
|
200
|
-
max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
180
|
+
max_leverage_mbp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
201
181
|
/** The maximum leverage for option collateral in mega basis points. */
|
|
202
|
-
option_collateral_max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
182
|
+
option_collateral_max_leverage_mbp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
203
183
|
/** The minimum size of an order. */
|
|
204
|
-
min_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
184
|
+
min_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
205
185
|
/** The lot size of an order. */
|
|
206
|
-
lot_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
186
|
+
lot_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
207
187
|
/** The trading fee configuration. */
|
|
208
|
-
trading_fee_config: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
188
|
+
trading_fee_config: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
209
189
|
length: number;
|
|
210
190
|
}, string>;
|
|
211
191
|
/** The basic funding rate. */
|
|
212
|
-
basic_funding_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
192
|
+
basic_funding_rate: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
213
193
|
/** The funding interval in milliseconds. */
|
|
214
|
-
funding_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
194
|
+
funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
215
195
|
/** The experience multiplier. */
|
|
216
|
-
exp_multiplier: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
217
|
-
/** The cool
|
|
218
|
-
cool_down_threshold_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
196
|
+
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">;
|
|
219
199
|
/** Padding for future use. */
|
|
220
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
200
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
221
201
|
length: number;
|
|
222
202
|
}, string>;
|
|
223
203
|
}, "@typus/perp::trading::MarketConfig">;
|
|
224
204
|
}, "@typus/perp::trading::SymbolMarket">;
|
|
225
205
|
export declare const USD: MoveStruct<{
|
|
226
|
-
dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
206
|
+
dummy_field: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
227
207
|
}, "@typus/perp::trading::USD">;
|
|
228
208
|
export declare const NewMarketsEvent: MoveStruct<{
|
|
229
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
209
|
+
index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
230
210
|
lp_token_type: MoveStruct<{
|
|
231
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
211
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
232
212
|
}, "std::type_name::TypeName">;
|
|
233
213
|
quote_token_type: MoveStruct<{
|
|
234
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
214
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
235
215
|
}, "std::type_name::TypeName">;
|
|
236
|
-
protocol_fee_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
237
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
216
|
+
protocol_fee_share_bp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
217
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
238
218
|
length: number;
|
|
239
219
|
}, string>;
|
|
240
220
|
}, "@typus/perp::trading::NewMarketsEvent">;
|
|
241
221
|
export declare const AddTradingSymbolEvent: MoveStruct<{
|
|
242
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
222
|
+
index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
243
223
|
base_token_type: MoveStruct<{
|
|
244
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
224
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
245
225
|
}, "std::type_name::TypeName">;
|
|
246
226
|
market_info: MoveStruct<{
|
|
247
227
|
/** Whether the market is active. */
|
|
248
|
-
is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
228
|
+
is_active: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
249
229
|
/** The number of decimals for the size. */
|
|
250
|
-
size_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
230
|
+
size_decimal: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
251
231
|
/** The total size of long positions. */
|
|
252
|
-
user_long_position_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
232
|
+
user_long_position_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
253
233
|
/** The total size of short positions. */
|
|
254
|
-
user_short_position_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
234
|
+
user_short_position_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
255
235
|
/** The next position ID. */
|
|
256
|
-
next_position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
236
|
+
next_position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
257
237
|
/** The total size of long orders. */
|
|
258
|
-
user_long_order_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
238
|
+
user_long_order_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
259
239
|
/** The total size of short orders. */
|
|
260
|
-
user_short_order_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
240
|
+
user_short_order_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
261
241
|
/** The next order ID. */
|
|
262
|
-
next_order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
242
|
+
next_order_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
263
243
|
/** The timestamp of the last funding. */
|
|
264
|
-
last_funding_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
244
|
+
last_funding_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
265
245
|
/** The sign of the cumulative funding rate index. */
|
|
266
|
-
cumulative_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
246
|
+
cumulative_funding_rate_index_sign: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
267
247
|
/** The cumulative funding rate index. */
|
|
268
|
-
cumulative_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
248
|
+
cumulative_funding_rate_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
269
249
|
/** The previous timestamp of the last funding. */
|
|
270
|
-
previous_last_funding_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
250
|
+
previous_last_funding_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
271
251
|
/** The previous sign of the cumulative funding rate index. */
|
|
272
|
-
previous_cumulative_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
252
|
+
previous_cumulative_funding_rate_index_sign: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
273
253
|
/** The previous cumulative funding rate index. */
|
|
274
|
-
previous_cumulative_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
254
|
+
previous_cumulative_funding_rate_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
275
255
|
/** Padding for future use. */
|
|
276
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
256
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
277
257
|
length: number;
|
|
278
258
|
}, string>;
|
|
279
259
|
}, "@typus/perp::trading::MarketInfo">;
|
|
280
260
|
market_config: MoveStruct<{
|
|
281
261
|
/** The address of the oracle. */
|
|
282
|
-
oracle_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
262
|
+
oracle_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
283
263
|
/** The maximum leverage in mega basis points. */
|
|
284
|
-
max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
264
|
+
max_leverage_mbp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
285
265
|
/** The maximum leverage for option collateral in mega basis points. */
|
|
286
|
-
option_collateral_max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
266
|
+
option_collateral_max_leverage_mbp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
287
267
|
/** The minimum size of an order. */
|
|
288
|
-
min_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
268
|
+
min_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
289
269
|
/** The lot size of an order. */
|
|
290
|
-
lot_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
270
|
+
lot_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
291
271
|
/** The trading fee configuration. */
|
|
292
|
-
trading_fee_config: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
272
|
+
trading_fee_config: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
293
273
|
length: number;
|
|
294
274
|
}, string>;
|
|
295
275
|
/** The basic funding rate. */
|
|
296
|
-
basic_funding_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
276
|
+
basic_funding_rate: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
297
277
|
/** The funding interval in milliseconds. */
|
|
298
|
-
funding_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
278
|
+
funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
299
279
|
/** The experience multiplier. */
|
|
300
|
-
exp_multiplier: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
301
|
-
/** The cool
|
|
302
|
-
cool_down_threshold_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
280
|
+
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">;
|
|
303
283
|
/** Padding for future use. */
|
|
304
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
284
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
305
285
|
length: number;
|
|
306
286
|
}, string>;
|
|
307
287
|
}, "@typus/perp::trading::MarketConfig">;
|
|
308
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
288
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
309
289
|
length: number;
|
|
310
290
|
}, string>;
|
|
311
291
|
}, "@typus/perp::trading::AddTradingSymbolEvent">;
|
|
312
292
|
export declare const UpdateProtocolFeeShareBpEvent: MoveStruct<{
|
|
313
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
314
|
-
previous_protocol_fee_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
315
|
-
new_protocol_fee_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
316
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
293
|
+
index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
294
|
+
previous_protocol_fee_share_bp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
295
|
+
new_protocol_fee_share_bp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
296
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
317
297
|
length: number;
|
|
318
298
|
}, string>;
|
|
319
299
|
}, "@typus/perp::trading::UpdateProtocolFeeShareBpEvent">;
|
|
320
300
|
export declare const UpdateMarketConfigEvent: MoveStruct<{
|
|
321
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
301
|
+
index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
322
302
|
base_token_type: MoveStruct<{
|
|
323
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
303
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
324
304
|
}, "std::type_name::TypeName">;
|
|
325
305
|
previous_market_config: MoveStruct<{
|
|
326
306
|
/** The address of the oracle. */
|
|
327
|
-
oracle_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
307
|
+
oracle_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
328
308
|
/** The maximum leverage in mega basis points. */
|
|
329
|
-
max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
309
|
+
max_leverage_mbp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
330
310
|
/** The maximum leverage for option collateral in mega basis points. */
|
|
331
|
-
option_collateral_max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
311
|
+
option_collateral_max_leverage_mbp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
332
312
|
/** The minimum size of an order. */
|
|
333
|
-
min_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
313
|
+
min_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
334
314
|
/** The lot size of an order. */
|
|
335
|
-
lot_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
315
|
+
lot_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
336
316
|
/** The trading fee configuration. */
|
|
337
|
-
trading_fee_config: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
317
|
+
trading_fee_config: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
338
318
|
length: number;
|
|
339
319
|
}, string>;
|
|
340
320
|
/** The basic funding rate. */
|
|
341
|
-
basic_funding_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
321
|
+
basic_funding_rate: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
342
322
|
/** The funding interval in milliseconds. */
|
|
343
|
-
funding_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
323
|
+
funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
344
324
|
/** The experience multiplier. */
|
|
345
|
-
exp_multiplier: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
346
|
-
/** The cool
|
|
347
|
-
cool_down_threshold_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
325
|
+
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">;
|
|
348
328
|
/** Padding for future use. */
|
|
349
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
329
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
350
330
|
length: number;
|
|
351
331
|
}, string>;
|
|
352
332
|
}, "@typus/perp::trading::MarketConfig">;
|
|
353
333
|
new_market_config: MoveStruct<{
|
|
354
334
|
/** The address of the oracle. */
|
|
355
|
-
oracle_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
335
|
+
oracle_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
356
336
|
/** The maximum leverage in mega basis points. */
|
|
357
|
-
max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
337
|
+
max_leverage_mbp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
358
338
|
/** The maximum leverage for option collateral in mega basis points. */
|
|
359
|
-
option_collateral_max_leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
339
|
+
option_collateral_max_leverage_mbp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
360
340
|
/** The minimum size of an order. */
|
|
361
|
-
min_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
341
|
+
min_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
362
342
|
/** The lot size of an order. */
|
|
363
|
-
lot_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
343
|
+
lot_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
364
344
|
/** The trading fee configuration. */
|
|
365
|
-
trading_fee_config: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
345
|
+
trading_fee_config: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
366
346
|
length: number;
|
|
367
347
|
}, string>;
|
|
368
348
|
/** The basic funding rate. */
|
|
369
|
-
basic_funding_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
349
|
+
basic_funding_rate: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
370
350
|
/** The funding interval in milliseconds. */
|
|
371
|
-
funding_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
351
|
+
funding_interval_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
372
352
|
/** The experience multiplier. */
|
|
373
|
-
exp_multiplier: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
374
|
-
/** The cool
|
|
375
|
-
cool_down_threshold_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
353
|
+
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">;
|
|
376
356
|
/** Padding for future use. */
|
|
377
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
357
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
378
358
|
length: number;
|
|
379
359
|
}, string>;
|
|
380
360
|
}, "@typus/perp::trading::MarketConfig">;
|
|
381
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
361
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
382
362
|
length: number;
|
|
383
363
|
}, string>;
|
|
384
364
|
}, "@typus/perp::trading::UpdateMarketConfigEvent">;
|
|
385
365
|
export declare const SuspendMarketEvent: MoveStruct<{
|
|
386
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
387
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
366
|
+
index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
367
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
388
368
|
length: number;
|
|
389
369
|
}, string>;
|
|
390
370
|
}, "@typus/perp::trading::SuspendMarketEvent">;
|
|
391
371
|
export declare const ResumeMarketEvent: MoveStruct<{
|
|
392
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
393
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
372
|
+
index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
373
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
394
374
|
length: number;
|
|
395
375
|
}, string>;
|
|
396
376
|
}, "@typus/perp::trading::ResumeMarketEvent">;
|
|
397
377
|
export declare const SuspendTradingSymbolEvent: MoveStruct<{
|
|
398
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
378
|
+
index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
399
379
|
suspended_base_token: MoveStruct<{
|
|
400
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
380
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
401
381
|
}, "std::type_name::TypeName">;
|
|
402
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
382
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
403
383
|
length: number;
|
|
404
384
|
}, string>;
|
|
405
385
|
}, "@typus/perp::trading::SuspendTradingSymbolEvent">;
|
|
406
386
|
export declare const ResumeTradingSymbolEvent: MoveStruct<{
|
|
407
|
-
index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
387
|
+
index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
408
388
|
resumed_base_token: MoveStruct<{
|
|
409
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
389
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
410
390
|
}, "std::type_name::TypeName">;
|
|
411
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
391
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
412
392
|
length: number;
|
|
413
393
|
}, string>;
|
|
414
394
|
}, "@typus/perp::trading::ResumeTradingSymbolEvent">;
|
|
415
395
|
export declare const CreateTradingOrderEvent: MoveStruct<{
|
|
416
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
417
|
-
market_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
418
|
-
pool_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
396
|
+
user: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
397
|
+
market_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
398
|
+
pool_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
419
399
|
collateral_token: MoveStruct<{
|
|
420
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
400
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
421
401
|
}, "std::type_name::TypeName">;
|
|
422
402
|
base_token: MoveStruct<{
|
|
423
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
403
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
424
404
|
}, "std::type_name::TypeName">;
|
|
425
|
-
order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
426
|
-
linked_position_id: import("@mysten/sui/bcs").BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
427
|
-
collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
428
|
-
leverage_mbp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
429
|
-
reduce_only: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
430
|
-
is_long: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
431
|
-
is_stop_order: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
432
|
-
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
433
|
-
trigger_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
405
|
+
order_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
406
|
+
linked_position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
407
|
+
collateral_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
408
|
+
leverage_mbp: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
409
|
+
reduce_only: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
410
|
+
is_long: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
411
|
+
is_stop_order: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
412
|
+
size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
413
|
+
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
|
+
filled: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
416
|
+
filled_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
417
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
437
418
|
length: number;
|
|
438
419
|
}, string>;
|
|
439
420
|
}, "@typus/perp::trading::CreateTradingOrderEvent">;
|
|
421
|
+
export declare const ManagerCancelOrdersEvent: MoveStruct<{
|
|
422
|
+
reason: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
423
|
+
collateral_token: MoveStruct<{
|
|
424
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
425
|
+
}, "std::type_name::TypeName">;
|
|
426
|
+
base_token: MoveStruct<{
|
|
427
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
428
|
+
}, "std::type_name::TypeName">;
|
|
429
|
+
order_type_tag: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<number, number, "u8">;
|
|
430
|
+
order_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
431
|
+
order_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
432
|
+
order_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
433
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
434
|
+
length: number;
|
|
435
|
+
}, string>;
|
|
436
|
+
}, "@typus/perp::trading::ManagerCancelOrdersEvent">;
|
|
440
437
|
export declare const CancelTradingOrderEvent: MoveStruct<{
|
|
441
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
442
|
-
market_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
443
|
-
order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
444
|
-
trigger_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
438
|
+
user: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
439
|
+
market_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
440
|
+
order_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
441
|
+
trigger_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
445
442
|
collateral_token: MoveStruct<{
|
|
446
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
443
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
447
444
|
}, "std::type_name::TypeName">;
|
|
448
445
|
base_token: MoveStruct<{
|
|
449
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
446
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
450
447
|
}, "std::type_name::TypeName">;
|
|
451
|
-
released_collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
452
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
448
|
+
released_collateral_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
449
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
453
450
|
length: number;
|
|
454
451
|
}, string>;
|
|
455
452
|
}, "@typus/perp::trading::CancelTradingOrderEvent">;
|
|
456
453
|
export declare const ReleaseCollateralEvent: MoveStruct<{
|
|
457
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
458
|
-
market_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
459
|
-
pool_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
460
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
454
|
+
user: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
455
|
+
market_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
456
|
+
pool_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
457
|
+
position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
461
458
|
collateral_token: MoveStruct<{
|
|
462
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
459
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
463
460
|
}, "std::type_name::TypeName">;
|
|
464
461
|
base_token: MoveStruct<{
|
|
465
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
462
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
466
463
|
}, "std::type_name::TypeName">;
|
|
467
|
-
released_collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
468
|
-
remaining_collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
469
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
464
|
+
released_collateral_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
465
|
+
remaining_collateral_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
466
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
470
467
|
length: number;
|
|
471
468
|
}, string>;
|
|
472
469
|
}, "@typus/perp::trading::ReleaseCollateralEvent">;
|
|
473
470
|
export declare const IncreaseCollateralEvent: MoveStruct<{
|
|
474
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
475
|
-
market_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
476
|
-
pool_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
477
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
471
|
+
user: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
472
|
+
market_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
473
|
+
pool_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
474
|
+
position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
478
475
|
collateral_token: MoveStruct<{
|
|
479
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
476
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
480
477
|
}, "std::type_name::TypeName">;
|
|
481
478
|
base_token: MoveStruct<{
|
|
482
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
479
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
483
480
|
}, "std::type_name::TypeName">;
|
|
484
|
-
increased_collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
485
|
-
remaining_collateral_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
486
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
481
|
+
increased_collateral_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
482
|
+
remaining_collateral_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
483
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
487
484
|
length: number;
|
|
488
485
|
}, string>;
|
|
489
486
|
}, "@typus/perp::trading::IncreaseCollateralEvent">;
|
|
490
487
|
export declare const CreateTradingOrderWithBidReceiptsEvent: MoveStruct<{
|
|
491
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
492
|
-
market_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
493
|
-
pool_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
494
|
-
dov_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
488
|
+
user: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
489
|
+
market_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
490
|
+
pool_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
491
|
+
dov_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
495
492
|
collateral_token: MoveStruct<{
|
|
496
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
493
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
497
494
|
}, "std::type_name::TypeName">;
|
|
498
495
|
base_token: MoveStruct<{
|
|
499
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
496
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
500
497
|
}, "std::type_name::TypeName">;
|
|
501
|
-
order_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
502
|
-
collateral_in_deposit_token: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
503
|
-
is_long: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
504
|
-
size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
505
|
-
trigger_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
506
|
-
filled: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
507
|
-
filled_price: import("@mysten/sui/bcs").BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
508
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
498
|
+
order_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
499
|
+
collateral_in_deposit_token: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
500
|
+
is_long: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
501
|
+
size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
502
|
+
trigger_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
503
|
+
filled: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
504
|
+
filled_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
505
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
509
506
|
length: number;
|
|
510
507
|
}, string>;
|
|
511
508
|
}, "@typus/perp::trading::CreateTradingOrderWithBidReceiptsEvent">;
|
|
512
509
|
export declare const MatchTradingOrderEvent: MoveStruct<{
|
|
513
510
|
collateral_token: MoveStruct<{
|
|
514
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
511
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
515
512
|
}, "std::type_name::TypeName">;
|
|
516
513
|
base_token: MoveStruct<{
|
|
517
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
514
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
518
515
|
}, "std::type_name::TypeName">;
|
|
519
|
-
matched_order_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
516
|
+
matched_order_ids: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
520
517
|
length: number;
|
|
521
518
|
}, string>;
|
|
522
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
519
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
523
520
|
length: number;
|
|
524
521
|
}, string>;
|
|
525
522
|
}, "@typus/perp::trading::MatchTradingOrderEvent">;
|
|
526
|
-
export declare const ManagerCancelOrdersEvent: MoveStruct<{
|
|
527
|
-
reason: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
528
|
-
collateral_token: MoveStruct<{
|
|
529
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
530
|
-
}, "std::type_name::TypeName">;
|
|
531
|
-
base_token: MoveStruct<{
|
|
532
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
533
|
-
}, "std::type_name::TypeName">;
|
|
534
|
-
order_type_tag: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
|
|
535
|
-
order_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
536
|
-
length: number;
|
|
537
|
-
}, string>;
|
|
538
|
-
order_sizes: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
539
|
-
length: number;
|
|
540
|
-
}, string>;
|
|
541
|
-
order_prices: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
542
|
-
length: number;
|
|
543
|
-
}, string>;
|
|
544
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
545
|
-
length: number;
|
|
546
|
-
}, string>;
|
|
547
|
-
}, "@typus/perp::trading::ManagerCancelOrdersEvent">;
|
|
548
523
|
export declare const ManagerReducePositionEvent: MoveStruct<{
|
|
549
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
524
|
+
user: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
550
525
|
collateral_token: MoveStruct<{
|
|
551
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
526
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
552
527
|
}, "std::type_name::TypeName">;
|
|
553
528
|
base_token: MoveStruct<{
|
|
554
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
529
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
555
530
|
}, "std::type_name::TypeName">;
|
|
556
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
557
|
-
reduced_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
558
|
-
collateral_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
559
|
-
trading_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
560
|
-
cancelled_order_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
531
|
+
position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
532
|
+
reduced_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
533
|
+
collateral_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
534
|
+
trading_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
535
|
+
cancelled_order_ids: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
561
536
|
length: number;
|
|
562
537
|
}, string>;
|
|
563
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
538
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
564
539
|
length: number;
|
|
565
540
|
}, string>;
|
|
566
541
|
}, "@typus/perp::trading::ManagerReducePositionEvent">;
|
|
567
542
|
export declare const ManagerClearPositionEvent: MoveStruct<{
|
|
568
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
543
|
+
user: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
569
544
|
collateral_token: MoveStruct<{
|
|
570
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
545
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
571
546
|
}, "std::type_name::TypeName">;
|
|
572
547
|
base_token: MoveStruct<{
|
|
573
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
548
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
574
549
|
}, "std::type_name::TypeName">;
|
|
575
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
576
|
-
removed_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
577
|
-
cancelled_order_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
550
|
+
position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
551
|
+
removed_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
552
|
+
cancelled_order_ids: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
578
553
|
length: number;
|
|
579
554
|
}, string>;
|
|
580
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
555
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
581
556
|
length: number;
|
|
582
557
|
}, string>;
|
|
583
558
|
}, "@typus/perp::trading::ManagerClearPositionEvent">;
|
|
584
559
|
export declare const ManagerCloseOptionPositionEvent: MoveStruct<{
|
|
585
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
560
|
+
user: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
586
561
|
collateral_token: MoveStruct<{
|
|
587
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
562
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
588
563
|
}, "std::type_name::TypeName">;
|
|
589
564
|
base_token: MoveStruct<{
|
|
590
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
565
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
591
566
|
}, "std::type_name::TypeName">;
|
|
592
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
593
|
-
order_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
594
|
-
collateral_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
595
|
-
trading_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
596
|
-
cancelled_order_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
567
|
+
position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
568
|
+
order_size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
569
|
+
collateral_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
570
|
+
trading_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
571
|
+
cancelled_order_ids: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
597
572
|
length: number;
|
|
598
573
|
}, string>;
|
|
599
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
574
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
600
575
|
length: number;
|
|
601
576
|
}, string>;
|
|
602
577
|
}, "@typus/perp::trading::ManagerCloseOptionPositionEvent">;
|
|
603
578
|
export declare const LiquidationInfo: MoveStruct<{
|
|
604
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
605
|
-
dov_index: import("@mysten/sui/bcs").BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
606
|
-
bid_token: import("@mysten/sui/bcs").BcsType<{
|
|
579
|
+
position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
580
|
+
dov_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
581
|
+
bid_token: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<{
|
|
607
582
|
name: string;
|
|
608
583
|
} | null, {
|
|
609
584
|
name: string;
|
|
610
585
|
} | null | undefined, "Option<std::type_name::TypeName>">;
|
|
611
586
|
}, "@typus/perp::trading::LiquidationInfo">;
|
|
612
587
|
export declare const LiquidateEvent: MoveStruct<{
|
|
613
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
588
|
+
user: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
614
589
|
collateral_token: MoveStruct<{
|
|
615
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
590
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
616
591
|
}, "std::type_name::TypeName">;
|
|
617
592
|
base_token: MoveStruct<{
|
|
618
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
593
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
619
594
|
}, "std::type_name::TypeName">;
|
|
620
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
621
|
-
collateral_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
622
|
-
trading_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
623
|
-
realized_liquidator_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
624
|
-
realized_value_for_lp_pool: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
625
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
595
|
+
position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
596
|
+
collateral_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
597
|
+
trading_price: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
598
|
+
realized_liquidator_fee: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
599
|
+
realized_value_for_lp_pool: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
600
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
626
601
|
length: number;
|
|
627
602
|
}, string>;
|
|
628
603
|
}, "@typus/perp::trading::LiquidateEvent">;
|
|
629
604
|
export declare const SettleReceiptCollateralEvent: MoveStruct<{
|
|
630
|
-
user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
605
|
+
user: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
631
606
|
collateral_token: MoveStruct<{
|
|
632
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
607
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
633
608
|
}, "std::type_name::TypeName">;
|
|
634
609
|
bid_token: MoveStruct<{
|
|
635
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
610
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
636
611
|
}, "std::type_name::TypeName">;
|
|
637
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
638
|
-
realized_liquidator_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
639
|
-
remaining_unrealized_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
640
|
-
remaining_unrealized_value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
641
|
-
remaining_value_for_lp_pool: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
642
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
612
|
+
position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
613
|
+
realized_liquidator_fee: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
614
|
+
remaining_unrealized_sign: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
615
|
+
remaining_unrealized_value: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
616
|
+
remaining_value_for_lp_pool: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
617
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
643
618
|
length: number;
|
|
644
619
|
}, string>;
|
|
645
620
|
}, "@typus/perp::trading::SettleReceiptCollateralEvent">;
|
|
646
621
|
export declare const UpdateFundingRateEvent: MoveStruct<{
|
|
647
622
|
base_token: MoveStruct<{
|
|
648
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
623
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
649
624
|
}, "std::type_name::TypeName">;
|
|
650
|
-
new_funding_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
651
|
-
intervals_count: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
652
|
-
previous_cumulative_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
653
|
-
previous_cumulative_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
654
|
-
cumulative_funding_rate_index_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
|
|
655
|
-
cumulative_funding_rate_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
656
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
625
|
+
new_funding_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
626
|
+
intervals_count: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
627
|
+
previous_cumulative_funding_rate_index_sign: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
628
|
+
previous_cumulative_funding_rate_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
629
|
+
cumulative_funding_rate_index_sign: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<boolean, boolean, "bool">;
|
|
630
|
+
cumulative_funding_rate_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
631
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
657
632
|
length: number;
|
|
658
633
|
}, string>;
|
|
659
634
|
}, "@typus/perp::trading::UpdateFundingRateEvent">;
|
|
660
635
|
export declare const ExpiredPositionInfo: MoveStruct<{
|
|
661
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
662
|
-
dov_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
636
|
+
position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
637
|
+
dov_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
663
638
|
collateral_token: MoveStruct<{
|
|
664
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
639
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
665
640
|
}, "std::type_name::TypeName">;
|
|
666
641
|
bid_token: MoveStruct<{
|
|
667
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
642
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
668
643
|
}, "std::type_name::TypeName">;
|
|
669
644
|
base_token: MoveStruct<{
|
|
670
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
645
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
671
646
|
}, "std::type_name::TypeName">;
|
|
672
647
|
}, "@typus/perp::trading::ExpiredPositionInfo">;
|
|
673
648
|
export declare const RealizeOptionPositionEvent: MoveStruct<{
|
|
674
|
-
position_user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
675
|
-
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
649
|
+
position_user: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
650
|
+
position_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
676
651
|
trading_symbol: MoveStruct<{
|
|
677
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
652
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
678
653
|
}, "std::type_name::TypeName">;
|
|
679
654
|
realize_balance_token_type: MoveStruct<{
|
|
680
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
655
|
+
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
681
656
|
}, "std::type_name::TypeName">;
|
|
682
|
-
exercise_balance_value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
683
|
-
user_remaining_value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
684
|
-
user_remaining_in_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
685
|
-
realized_loss_value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
686
|
-
fee_value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
687
|
-
realized_trading_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
688
|
-
realized_borrow_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
689
|
-
u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
|
|
657
|
+
exercise_balance_value: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
658
|
+
user_remaining_value: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
659
|
+
user_remaining_in_usd: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
660
|
+
realized_loss_value: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
661
|
+
fee_value: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
662
|
+
realized_trading_fee: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
663
|
+
realized_borrow_fee: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
664
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
690
665
|
length: number;
|
|
691
666
|
}, string>;
|
|
692
667
|
}, "@typus/perp::trading::RealizeOptionPositionEvent">;
|
|
@@ -694,7 +669,7 @@ export interface InitOptions {
|
|
|
694
669
|
package?: string;
|
|
695
670
|
arguments?: [];
|
|
696
671
|
}
|
|
697
|
-
export declare function init(options?: InitOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
672
|
+
export declare function init(options?: InitOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
698
673
|
export interface NewMarketsArguments {
|
|
699
674
|
version: RawTransactionArgument<string>;
|
|
700
675
|
registry: RawTransactionArgument<string>;
|
|
@@ -710,7 +685,7 @@ export interface NewMarketsOptions {
|
|
|
710
685
|
typeArguments: [string, string];
|
|
711
686
|
}
|
|
712
687
|
/** [Authorized Function] Creates a new market. */
|
|
713
|
-
export declare function newMarkets(options: NewMarketsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
688
|
+
export declare function newMarkets(options: NewMarketsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
714
689
|
export interface AddTradingSymbolArguments {
|
|
715
690
|
version: RawTransactionArgument<string>;
|
|
716
691
|
registry: RawTransactionArgument<string>;
|
|
@@ -725,6 +700,7 @@ export interface AddTradingSymbolArguments {
|
|
|
725
700
|
basicFundingRate: RawTransactionArgument<number | bigint>;
|
|
726
701
|
fundingIntervalTsMs: RawTransactionArgument<number | bigint>;
|
|
727
702
|
expMultiplier: RawTransactionArgument<number | bigint>;
|
|
703
|
+
coolDownThresholdTsMs: RawTransactionArgument<number | bigint>;
|
|
728
704
|
maxBuyOpenInterest: RawTransactionArgument<number | bigint>;
|
|
729
705
|
maxSellOpenInterest: RawTransactionArgument<number | bigint>;
|
|
730
706
|
maintenanceMarginRateBp: RawTransactionArgument<number | bigint>;
|
|
@@ -749,6 +725,7 @@ export interface AddTradingSymbolOptions {
|
|
|
749
725
|
basicFundingRate: RawTransactionArgument<number | bigint>,
|
|
750
726
|
fundingIntervalTsMs: RawTransactionArgument<number | bigint>,
|
|
751
727
|
expMultiplier: RawTransactionArgument<number | bigint>,
|
|
728
|
+
coolDownThresholdTsMs: RawTransactionArgument<number | bigint>,
|
|
752
729
|
maxBuyOpenInterest: RawTransactionArgument<number | bigint>,
|
|
753
730
|
maxSellOpenInterest: RawTransactionArgument<number | bigint>,
|
|
754
731
|
maintenanceMarginRateBp: RawTransactionArgument<number | bigint>,
|
|
@@ -760,7 +737,7 @@ export interface AddTradingSymbolOptions {
|
|
|
760
737
|
typeArguments: [string];
|
|
761
738
|
}
|
|
762
739
|
/** [Authorized Function] Adds a new trading symbol to a market. */
|
|
763
|
-
export declare function addTradingSymbol(options: AddTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
740
|
+
export declare function addTradingSymbol(options: AddTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
764
741
|
export interface UpdateProtocolFeeShareBpArguments {
|
|
765
742
|
version: RawTransactionArgument<string>;
|
|
766
743
|
registry: RawTransactionArgument<string>;
|
|
@@ -777,7 +754,7 @@ export interface UpdateProtocolFeeShareBpOptions {
|
|
|
777
754
|
];
|
|
778
755
|
}
|
|
779
756
|
/** [Authorized Function] Updates the protocol fee share. */
|
|
780
|
-
export declare function updateProtocolFeeShareBp(options: UpdateProtocolFeeShareBpOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
757
|
+
export declare function updateProtocolFeeShareBp(options: UpdateProtocolFeeShareBpOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
781
758
|
export interface UpdateMarketConfigArguments {
|
|
782
759
|
version: RawTransactionArgument<string>;
|
|
783
760
|
registry: RawTransactionArgument<string>;
|
|
@@ -791,6 +768,7 @@ export interface UpdateMarketConfigArguments {
|
|
|
791
768
|
basicFundingRate: RawTransactionArgument<number | bigint | null>;
|
|
792
769
|
fundingIntervalTsMs: RawTransactionArgument<number | bigint | null>;
|
|
793
770
|
expMultiplier: RawTransactionArgument<number | bigint | null>;
|
|
771
|
+
coolDownThresholdTsMs: RawTransactionArgument<number | bigint | null>;
|
|
794
772
|
maxBuyOpenInterest: RawTransactionArgument<number | bigint | null>;
|
|
795
773
|
maxSellOpenInterest: RawTransactionArgument<number | bigint | null>;
|
|
796
774
|
maintenanceMarginRateBp: RawTransactionArgument<number | bigint | null>;
|
|
@@ -814,6 +792,7 @@ export interface UpdateMarketConfigOptions {
|
|
|
814
792
|
basicFundingRate: RawTransactionArgument<number | bigint | null>,
|
|
815
793
|
fundingIntervalTsMs: RawTransactionArgument<number | bigint | null>,
|
|
816
794
|
expMultiplier: RawTransactionArgument<number | bigint | null>,
|
|
795
|
+
coolDownThresholdTsMs: RawTransactionArgument<number | bigint | null>,
|
|
817
796
|
maxBuyOpenInterest: RawTransactionArgument<number | bigint | null>,
|
|
818
797
|
maxSellOpenInterest: RawTransactionArgument<number | bigint | null>,
|
|
819
798
|
maintenanceMarginRateBp: RawTransactionArgument<number | bigint | null>,
|
|
@@ -825,7 +804,7 @@ export interface UpdateMarketConfigOptions {
|
|
|
825
804
|
typeArguments: [string];
|
|
826
805
|
}
|
|
827
806
|
/** [Authorized Function] Updates the market configuration. */
|
|
828
|
-
export declare function updateMarketConfig(options: UpdateMarketConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
807
|
+
export declare function updateMarketConfig(options: UpdateMarketConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
829
808
|
export interface SuspendMarketArguments {
|
|
830
809
|
version: RawTransactionArgument<string>;
|
|
831
810
|
registry: RawTransactionArgument<string>;
|
|
@@ -840,7 +819,7 @@ export interface SuspendMarketOptions {
|
|
|
840
819
|
];
|
|
841
820
|
}
|
|
842
821
|
/** [Authorized Function] Suspends a market. */
|
|
843
|
-
export declare function suspendMarket(options: SuspendMarketOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
822
|
+
export declare function suspendMarket(options: SuspendMarketOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
844
823
|
export interface ResumeMarketArguments {
|
|
845
824
|
version: RawTransactionArgument<string>;
|
|
846
825
|
registry: RawTransactionArgument<string>;
|
|
@@ -855,7 +834,7 @@ export interface ResumeMarketOptions {
|
|
|
855
834
|
];
|
|
856
835
|
}
|
|
857
836
|
/** [Authorized Function] Resumes a market. */
|
|
858
|
-
export declare function resumeMarket(options: ResumeMarketOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
837
|
+
export declare function resumeMarket(options: ResumeMarketOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
859
838
|
export interface SuspendTradingSymbolArguments {
|
|
860
839
|
version: RawTransactionArgument<string>;
|
|
861
840
|
registry: RawTransactionArgument<string>;
|
|
@@ -871,7 +850,7 @@ export interface SuspendTradingSymbolOptions {
|
|
|
871
850
|
typeArguments: [string];
|
|
872
851
|
}
|
|
873
852
|
/** [Authorized Function] Suspends a trading symbol. */
|
|
874
|
-
export declare function suspendTradingSymbol(options: SuspendTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
853
|
+
export declare function suspendTradingSymbol(options: SuspendTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
875
854
|
export interface ResumeTradingSymbolArguments {
|
|
876
855
|
version: RawTransactionArgument<string>;
|
|
877
856
|
registry: RawTransactionArgument<string>;
|
|
@@ -887,7 +866,7 @@ export interface ResumeTradingSymbolOptions {
|
|
|
887
866
|
typeArguments: [string];
|
|
888
867
|
}
|
|
889
868
|
/** [Authorized Function] Resumes a trading symbol. */
|
|
890
|
-
export declare function resumeTradingSymbol(options: ResumeTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
869
|
+
export declare function resumeTradingSymbol(options: ResumeTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
891
870
|
export interface RemoveTradingSymbolArguments {
|
|
892
871
|
version: RawTransactionArgument<string>;
|
|
893
872
|
registry: RawTransactionArgument<string>;
|
|
@@ -903,7 +882,7 @@ export interface RemoveTradingSymbolOptions {
|
|
|
903
882
|
typeArguments: [string];
|
|
904
883
|
}
|
|
905
884
|
/** [Authorized Function] Removes a trading symbol from a market. */
|
|
906
|
-
export declare function removeTradingSymbol(options: RemoveTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
885
|
+
export declare function removeTradingSymbol(options: RemoveTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
907
886
|
export interface CreateTradingOrderArguments {
|
|
908
887
|
version: RawTransactionArgument<string>;
|
|
909
888
|
registry: RawTransactionArgument<string>;
|
|
@@ -941,7 +920,7 @@ export interface CreateTradingOrderOptions {
|
|
|
941
920
|
typeArguments: [string, string];
|
|
942
921
|
}
|
|
943
922
|
/** [User Function] Creates a new trading order. */
|
|
944
|
-
export declare function createTradingOrder(options: CreateTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
923
|
+
export declare function createTradingOrder(options: CreateTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
945
924
|
export interface CancelTradingOrderArguments {
|
|
946
925
|
version: RawTransactionArgument<string>;
|
|
947
926
|
registry: RawTransactionArgument<string>;
|
|
@@ -963,7 +942,7 @@ export interface CancelTradingOrderOptions {
|
|
|
963
942
|
typeArguments: [string, string];
|
|
964
943
|
}
|
|
965
944
|
/** [User Function] Cancels a trading order. */
|
|
966
|
-
export declare function cancelTradingOrder(options: CancelTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
945
|
+
export declare function cancelTradingOrder(options: CancelTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
967
946
|
export interface ReleaseCollateralArguments {
|
|
968
947
|
version: RawTransactionArgument<string>;
|
|
969
948
|
registry: RawTransactionArgument<string>;
|
|
@@ -994,7 +973,7 @@ export interface ReleaseCollateralOptions {
|
|
|
994
973
|
* [User Function] Releases collateral from a position. Safe with
|
|
995
974
|
* `check_position_user_matched`
|
|
996
975
|
*/
|
|
997
|
-
export declare function releaseCollateral(options: ReleaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
976
|
+
export declare function releaseCollateral(options: ReleaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
998
977
|
export interface IncreaseCollateralArguments {
|
|
999
978
|
version: RawTransactionArgument<string>;
|
|
1000
979
|
registry: RawTransactionArgument<string>;
|
|
@@ -1025,7 +1004,7 @@ export interface IncreaseCollateralOptions {
|
|
|
1025
1004
|
* [User Function] Increases the collateral of a position. Safe with
|
|
1026
1005
|
* `check_position_user_matched`
|
|
1027
1006
|
*/
|
|
1028
|
-
export declare function increaseCollateral(options: IncreaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1007
|
+
export declare function increaseCollateral(options: IncreaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1029
1008
|
export interface CollectPositionFundingFeeArguments {
|
|
1030
1009
|
version: RawTransactionArgument<string>;
|
|
1031
1010
|
registry: RawTransactionArgument<string>;
|
|
@@ -1051,7 +1030,7 @@ export interface CollectPositionFundingFeeOptions {
|
|
|
1051
1030
|
typeArguments: [string, string];
|
|
1052
1031
|
}
|
|
1053
1032
|
/** Collects the funding fee for a position. Safe with `check_position_user_matched` */
|
|
1054
|
-
export declare function collectPositionFundingFee(options: CollectPositionFundingFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1033
|
+
export declare function collectPositionFundingFee(options: CollectPositionFundingFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1055
1034
|
export interface CreateTradingOrderWithBidReceiptArguments {
|
|
1056
1035
|
version: RawTransactionArgument<string>;
|
|
1057
1036
|
registry: RawTransactionArgument<string>;
|
|
@@ -1091,7 +1070,7 @@ export interface CreateTradingOrderWithBidReceiptOptions {
|
|
|
1091
1070
|
typeArguments: [string, string, string];
|
|
1092
1071
|
}
|
|
1093
1072
|
/** [User Function] Creates a new trading order with a bid receipt as collateral. */
|
|
1094
|
-
export declare function createTradingOrderWithBidReceipt(options: CreateTradingOrderWithBidReceiptOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1073
|
+
export declare function createTradingOrderWithBidReceipt(options: CreateTradingOrderWithBidReceiptOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1095
1074
|
export interface ReduceOptionCollateralPositionSizeArguments {
|
|
1096
1075
|
version: RawTransactionArgument<string>;
|
|
1097
1076
|
registry: RawTransactionArgument<string>;
|
|
@@ -1131,7 +1110,7 @@ export interface ReduceOptionCollateralPositionSizeOptions {
|
|
|
1131
1110
|
typeArguments: [string, string, string];
|
|
1132
1111
|
}
|
|
1133
1112
|
/** [User Function] Reduces the size of an option collateral position. */
|
|
1134
|
-
export declare function reduceOptionCollateralPositionSize(options: ReduceOptionCollateralPositionSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1113
|
+
export declare function reduceOptionCollateralPositionSize(options: ReduceOptionCollateralPositionSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1135
1114
|
export interface MatchTradingOrderArguments {
|
|
1136
1115
|
version: RawTransactionArgument<string>;
|
|
1137
1116
|
registry: RawTransactionArgument<string>;
|
|
@@ -1173,33 +1152,7 @@ export interface MatchTradingOrderOptions {
|
|
|
1173
1152
|
typeArguments: [string, string];
|
|
1174
1153
|
}
|
|
1175
1154
|
/** [Authorized Function] Matches trading orders. */
|
|
1176
|
-
export declare function matchTradingOrder(options: MatchTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1177
|
-
export interface ManagerCancelOrderByOpenInterestLimitArguments {
|
|
1178
|
-
version: RawTransactionArgument<string>;
|
|
1179
|
-
registry: RawTransactionArgument<string>;
|
|
1180
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1181
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1182
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1183
|
-
orderTypeTag: RawTransactionArgument<number>;
|
|
1184
|
-
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
1185
|
-
maxOperationCount: RawTransactionArgument<number | bigint>;
|
|
1186
|
-
}
|
|
1187
|
-
export interface ManagerCancelOrderByOpenInterestLimitOptions {
|
|
1188
|
-
package?: string;
|
|
1189
|
-
arguments: ManagerCancelOrderByOpenInterestLimitArguments | [
|
|
1190
|
-
version: RawTransactionArgument<string>,
|
|
1191
|
-
registry: RawTransactionArgument<string>,
|
|
1192
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1193
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1194
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1195
|
-
orderTypeTag: RawTransactionArgument<number>,
|
|
1196
|
-
triggerPrice: RawTransactionArgument<number | bigint>,
|
|
1197
|
-
maxOperationCount: RawTransactionArgument<number | bigint>
|
|
1198
|
-
];
|
|
1199
|
-
typeArguments: [string, string];
|
|
1200
|
-
}
|
|
1201
|
-
/** [Authorized Function] Cancels orders by the manager due to open interest limit. */
|
|
1202
|
-
export declare function managerCancelOrderByOpenInterestLimit(options: ManagerCancelOrderByOpenInterestLimitOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1155
|
+
export declare function matchTradingOrder(options: MatchTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1203
1156
|
export interface CancelLinkedOrdersArguments {
|
|
1204
1157
|
version: RawTransactionArgument<string>;
|
|
1205
1158
|
registry: RawTransactionArgument<string>;
|
|
@@ -1221,7 +1174,7 @@ export interface CancelLinkedOrdersOptions {
|
|
|
1221
1174
|
typeArguments: [string, string];
|
|
1222
1175
|
}
|
|
1223
1176
|
/** [Authorized Function] Cancels linked orders. */
|
|
1224
|
-
export declare function cancelLinkedOrders(options: CancelLinkedOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1177
|
+
export declare function cancelLinkedOrders(options: CancelLinkedOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1225
1178
|
export interface ManagerReducePositionArguments {
|
|
1226
1179
|
version: RawTransactionArgument<string>;
|
|
1227
1180
|
registry: RawTransactionArgument<string>;
|
|
@@ -1261,7 +1214,7 @@ export interface ManagerReducePositionOptions {
|
|
|
1261
1214
|
typeArguments: [string, string];
|
|
1262
1215
|
}
|
|
1263
1216
|
/** [Authorized Function] Reduces a position by the manager. */
|
|
1264
|
-
export declare function managerReducePosition(options: ManagerReducePositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1217
|
+
export declare function managerReducePosition(options: ManagerReducePositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1265
1218
|
export interface ManagerClearPositionArguments {
|
|
1266
1219
|
version: RawTransactionArgument<string>;
|
|
1267
1220
|
registry: RawTransactionArgument<string>;
|
|
@@ -1282,7 +1235,7 @@ export interface ManagerClearPositionOptions {
|
|
|
1282
1235
|
];
|
|
1283
1236
|
typeArguments: [string, string];
|
|
1284
1237
|
}
|
|
1285
|
-
export declare function managerClearPosition(options: ManagerClearPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1238
|
+
export declare function managerClearPosition(options: ManagerClearPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1286
1239
|
export interface ManagerCloseOptionPositionArguments {
|
|
1287
1240
|
version: RawTransactionArgument<string>;
|
|
1288
1241
|
registry: RawTransactionArgument<string>;
|
|
@@ -1320,7 +1273,7 @@ export interface ManagerCloseOptionPositionOptions {
|
|
|
1320
1273
|
typeArguments: [string, string, string];
|
|
1321
1274
|
}
|
|
1322
1275
|
/** [Authorized Function] Closes an option position by the manager. */
|
|
1323
|
-
export declare function managerCloseOptionPosition(options: ManagerCloseOptionPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1276
|
+
export declare function managerCloseOptionPosition(options: ManagerCloseOptionPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1324
1277
|
export interface GetTradingFeeConfigArguments {
|
|
1325
1278
|
marketConfig: RawTransactionArgument<string>;
|
|
1326
1279
|
isOptionPosition: RawTransactionArgument<boolean>;
|
|
@@ -1329,7 +1282,7 @@ export interface GetTradingFeeConfigOptions {
|
|
|
1329
1282
|
package?: string;
|
|
1330
1283
|
arguments: GetTradingFeeConfigArguments | [marketConfig: RawTransactionArgument<string>, isOptionPosition: RawTransactionArgument<boolean>];
|
|
1331
1284
|
}
|
|
1332
|
-
export declare function getTradingFeeConfig(options: GetTradingFeeConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1285
|
+
export declare function getTradingFeeConfig(options: GetTradingFeeConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1333
1286
|
export interface GetLiquidationInfoArguments {
|
|
1334
1287
|
version: RawTransactionArgument<string>;
|
|
1335
1288
|
registry: RawTransactionArgument<string>;
|
|
@@ -1357,7 +1310,7 @@ export interface GetLiquidationInfoOptions {
|
|
|
1357
1310
|
typeArguments: [string, string];
|
|
1358
1311
|
}
|
|
1359
1312
|
/** [View Function] Gets the liquidation information for a position. */
|
|
1360
|
-
export declare function getLiquidationInfo(options: GetLiquidationInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1313
|
+
export declare function getLiquidationInfo(options: GetLiquidationInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1361
1314
|
export interface LiquidateArguments {
|
|
1362
1315
|
version: RawTransactionArgument<string>;
|
|
1363
1316
|
registry: RawTransactionArgument<string>;
|
|
@@ -1385,7 +1338,7 @@ export interface LiquidateOptions {
|
|
|
1385
1338
|
typeArguments: [string, string, string];
|
|
1386
1339
|
}
|
|
1387
1340
|
/** [Authorized Function] Liquidates a position. */
|
|
1388
|
-
export declare function liquidate(options: LiquidateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1341
|
+
export declare function liquidate(options: LiquidateOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1389
1342
|
export interface SettleReceiptCollateralArguments {
|
|
1390
1343
|
version: RawTransactionArgument<string>;
|
|
1391
1344
|
registry: RawTransactionArgument<string>;
|
|
@@ -1409,7 +1362,7 @@ export interface SettleReceiptCollateralOptions {
|
|
|
1409
1362
|
typeArguments: [string, string];
|
|
1410
1363
|
}
|
|
1411
1364
|
/** [Authorized Function] Settles receipt collateral. */
|
|
1412
|
-
export declare function settleReceiptCollateral(options: SettleReceiptCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1365
|
+
export declare function settleReceiptCollateral(options: SettleReceiptCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1413
1366
|
export interface UpdateFundingRateArguments {
|
|
1414
1367
|
version: RawTransactionArgument<string>;
|
|
1415
1368
|
registry: RawTransactionArgument<string>;
|
|
@@ -1431,7 +1384,7 @@ export interface UpdateFundingRateOptions {
|
|
|
1431
1384
|
typeArguments: [string];
|
|
1432
1385
|
}
|
|
1433
1386
|
/** [Authorized Function] Updates the funding rate. */
|
|
1434
|
-
export declare function updateFundingRate(options: UpdateFundingRateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1387
|
+
export declare function updateFundingRate(options: UpdateFundingRateOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1435
1388
|
export interface GetExpiredPositionInfoArguments {
|
|
1436
1389
|
version: RawTransactionArgument<string>;
|
|
1437
1390
|
registry: RawTransactionArgument<string>;
|
|
@@ -1451,132 +1404,22 @@ export interface GetExpiredPositionInfoOptions {
|
|
|
1451
1404
|
poolIndex: RawTransactionArgument<number | bigint>
|
|
1452
1405
|
];
|
|
1453
1406
|
}
|
|
1454
|
-
export declare function getExpiredPositionInfo(options: GetExpiredPositionInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1455
|
-
export interface
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
}
|
|
1460
|
-
export interface InitUserAccountTableOptions {
|
|
1461
|
-
package?: string;
|
|
1462
|
-
arguments: InitUserAccountTableArguments | [
|
|
1463
|
-
version: RawTransactionArgument<string>,
|
|
1464
|
-
registry: RawTransactionArgument<string>,
|
|
1465
|
-
marketIndex: RawTransactionArgument<number | bigint>
|
|
1466
|
-
];
|
|
1467
|
-
}
|
|
1468
|
-
/**
|
|
1469
|
-
* [Authorized Function] Initializes the user account table. TODO: can be removed,
|
|
1470
|
-
* only use once.
|
|
1471
|
-
*/
|
|
1472
|
-
export declare function initUserAccountTable(options: InitUserAccountTableOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1473
|
-
export interface CreateUserAccountArguments {
|
|
1474
|
-
version: RawTransactionArgument<string>;
|
|
1475
|
-
registry: RawTransactionArgument<string>;
|
|
1476
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1477
|
-
}
|
|
1478
|
-
export interface CreateUserAccountOptions {
|
|
1479
|
-
package?: string;
|
|
1480
|
-
arguments: CreateUserAccountArguments | [
|
|
1481
|
-
version: RawTransactionArgument<string>,
|
|
1482
|
-
registry: RawTransactionArgument<string>,
|
|
1483
|
-
marketIndex: RawTransactionArgument<number | bigint>
|
|
1484
|
-
];
|
|
1485
|
-
}
|
|
1486
|
-
/** [User Function] Creates a new user account. */
|
|
1487
|
-
export declare function createUserAccount(options: CreateUserAccountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1488
|
-
export interface AddDelegateUserArguments {
|
|
1489
|
-
version: RawTransactionArgument<string>;
|
|
1490
|
-
registry: RawTransactionArgument<string>;
|
|
1491
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1492
|
-
user: RawTransactionArgument<string>;
|
|
1493
|
-
}
|
|
1494
|
-
export interface AddDelegateUserOptions {
|
|
1495
|
-
package?: string;
|
|
1496
|
-
arguments: AddDelegateUserArguments | [
|
|
1497
|
-
version: RawTransactionArgument<string>,
|
|
1498
|
-
registry: RawTransactionArgument<string>,
|
|
1499
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1500
|
-
user: RawTransactionArgument<string>
|
|
1501
|
-
];
|
|
1502
|
-
}
|
|
1503
|
-
/** [User Function] Adds a delegate user to a user account. Safe with `check_owner` */
|
|
1504
|
-
export declare function addDelegateUser(options: AddDelegateUserOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1505
|
-
export interface RemoveDelegateUserArguments {
|
|
1506
|
-
version: RawTransactionArgument<string>;
|
|
1507
|
-
registry: RawTransactionArgument<string>;
|
|
1508
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1509
|
-
user: RawTransactionArgument<string>;
|
|
1510
|
-
}
|
|
1511
|
-
export interface RemoveDelegateUserOptions {
|
|
1512
|
-
package?: string;
|
|
1513
|
-
arguments: RemoveDelegateUserArguments | [
|
|
1514
|
-
version: RawTransactionArgument<string>,
|
|
1515
|
-
registry: RawTransactionArgument<string>,
|
|
1516
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1517
|
-
user: RawTransactionArgument<string>
|
|
1518
|
-
];
|
|
1519
|
-
}
|
|
1520
|
-
/**
|
|
1521
|
-
* [User Function] Remove a delegate user to a user account. Safe with
|
|
1522
|
-
* `check_owner`
|
|
1523
|
-
*/
|
|
1524
|
-
export declare function removeDelegateUser(options: RemoveDelegateUserOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1525
|
-
export interface RemoveUserAccountArguments {
|
|
1526
|
-
version: RawTransactionArgument<string>;
|
|
1527
|
-
registry: RawTransactionArgument<string>;
|
|
1528
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1529
|
-
userAccountCap: RawTransactionArgument<string>;
|
|
1530
|
-
}
|
|
1531
|
-
export interface RemoveUserAccountOptions {
|
|
1532
|
-
package?: string;
|
|
1533
|
-
arguments: RemoveUserAccountArguments | [
|
|
1534
|
-
version: RawTransactionArgument<string>,
|
|
1535
|
-
registry: RawTransactionArgument<string>,
|
|
1536
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1537
|
-
userAccountCap: RawTransactionArgument<string>
|
|
1538
|
-
];
|
|
1539
|
-
}
|
|
1540
|
-
/** [User Function] Removes a user account. Safe with `UserAccountCap` */
|
|
1541
|
-
export declare function removeUserAccount(options: RemoveUserAccountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1542
|
-
export interface DepositUserAccountArguments {
|
|
1543
|
-
version: RawTransactionArgument<string>;
|
|
1544
|
-
registry: RawTransactionArgument<string>;
|
|
1545
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1546
|
-
collateral: RawTransactionArgument<string>;
|
|
1547
|
-
}
|
|
1548
|
-
export interface DepositUserAccountOptions {
|
|
1549
|
-
package?: string;
|
|
1550
|
-
arguments: DepositUserAccountArguments | [
|
|
1551
|
-
version: RawTransactionArgument<string>,
|
|
1552
|
-
registry: RawTransactionArgument<string>,
|
|
1553
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1554
|
-
collateral: RawTransactionArgument<string>
|
|
1555
|
-
];
|
|
1556
|
-
typeArguments: [string];
|
|
1557
|
-
}
|
|
1558
|
-
/** Deposits collateral into a user account. Safe with `check_owner` */
|
|
1559
|
-
export declare function depositUserAccount(options: DepositUserAccountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1560
|
-
export interface WithdrawUserAccountArguments {
|
|
1561
|
-
version: RawTransactionArgument<string>;
|
|
1562
|
-
registry: RawTransactionArgument<string>;
|
|
1563
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1564
|
-
amount: RawTransactionArgument<number | bigint | null>;
|
|
1565
|
-
userAccountCap: RawTransactionArgument<string>;
|
|
1407
|
+
export declare function getExpiredPositionInfo(options: GetExpiredPositionInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1408
|
+
export interface PrepareOrderExecutionArguments {
|
|
1409
|
+
symbolMarket: RawTransactionArgument<string>;
|
|
1410
|
+
liquidityPool: RawTransactionArgument<string>;
|
|
1411
|
+
order: RawTransactionArgument<string>;
|
|
1566
1412
|
}
|
|
1567
|
-
export interface
|
|
1413
|
+
export interface PrepareOrderExecutionOptions {
|
|
1568
1414
|
package?: string;
|
|
1569
|
-
arguments:
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
amount: RawTransactionArgument<number | bigint | null>,
|
|
1574
|
-
userAccountCap: RawTransactionArgument<string>
|
|
1415
|
+
arguments: PrepareOrderExecutionArguments | [
|
|
1416
|
+
symbolMarket: RawTransactionArgument<string>,
|
|
1417
|
+
liquidityPool: RawTransactionArgument<string>,
|
|
1418
|
+
order: RawTransactionArgument<string>
|
|
1575
1419
|
];
|
|
1576
1420
|
typeArguments: [string];
|
|
1577
1421
|
}
|
|
1578
|
-
|
|
1579
|
-
export declare function withdrawUserAccount(options: WithdrawUserAccountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1422
|
+
export declare function prepareOrderExecution(options: PrepareOrderExecutionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1580
1423
|
export interface ExecuteOrder_Arguments {
|
|
1581
1424
|
version: RawTransactionArgument<string>;
|
|
1582
1425
|
marketIndex: RawTransactionArgument<number | bigint>;
|
|
@@ -1617,7 +1460,7 @@ export interface ExecuteOrder_Options {
|
|
|
1617
1460
|
];
|
|
1618
1461
|
typeArguments: [string];
|
|
1619
1462
|
}
|
|
1620
|
-
export declare function executeOrder_(options: ExecuteOrder_Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1463
|
+
export declare function executeOrder_(options: ExecuteOrder_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1621
1464
|
export interface ExecuteOptionCollateralOrder_Arguments {
|
|
1622
1465
|
version: RawTransactionArgument<string>;
|
|
1623
1466
|
dovRegistry: RawTransactionArgument<string>;
|
|
@@ -1662,7 +1505,7 @@ export interface ExecuteOptionCollateralOrder_Options {
|
|
|
1662
1505
|
];
|
|
1663
1506
|
typeArguments: [string, string];
|
|
1664
1507
|
}
|
|
1665
|
-
export declare function executeOptionCollateralOrder_(options: ExecuteOptionCollateralOrder_Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1508
|
+
export declare function executeOptionCollateralOrder_(options: ExecuteOptionCollateralOrder_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1666
1509
|
export interface RemoveLinkedOrdersArguments {
|
|
1667
1510
|
version: RawTransactionArgument<string>;
|
|
1668
1511
|
marketIndex: RawTransactionArgument<number | bigint>;
|
|
@@ -1683,7 +1526,7 @@ export interface RemoveLinkedOrdersOptions {
|
|
|
1683
1526
|
];
|
|
1684
1527
|
typeArguments: [string];
|
|
1685
1528
|
}
|
|
1686
|
-
export declare function removeLinkedOrders(options: RemoveLinkedOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1529
|
+
export declare function removeLinkedOrders(options: RemoveLinkedOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1687
1530
|
export interface RemoveLinkedOrder_Arguments {
|
|
1688
1531
|
version: RawTransactionArgument<string>;
|
|
1689
1532
|
marketIndex: RawTransactionArgument<number | bigint>;
|
|
@@ -1702,7 +1545,7 @@ export interface RemoveLinkedOrder_Options {
|
|
|
1702
1545
|
];
|
|
1703
1546
|
typeArguments: [string];
|
|
1704
1547
|
}
|
|
1705
|
-
export declare function removeLinkedOrder_(options: RemoveLinkedOrder_Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1548
|
+
export declare function removeLinkedOrder_(options: RemoveLinkedOrder_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1706
1549
|
export interface GetMutOrdersArguments {
|
|
1707
1550
|
symbolMarket: RawTransactionArgument<string>;
|
|
1708
1551
|
isTokenCollateral: RawTransactionArgument<boolean>;
|
|
@@ -1716,7 +1559,7 @@ export interface GetMutOrdersOptions {
|
|
|
1716
1559
|
orderTypeTag: RawTransactionArgument<number>
|
|
1717
1560
|
];
|
|
1718
1561
|
}
|
|
1719
|
-
export declare function getMutOrders(options: GetMutOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1562
|
+
export declare function getMutOrders(options: GetMutOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1720
1563
|
export interface GetOrdersArguments {
|
|
1721
1564
|
symbolMarket: RawTransactionArgument<string>;
|
|
1722
1565
|
isTokenCollateral: RawTransactionArgument<boolean>;
|
|
@@ -1730,7 +1573,15 @@ export interface GetOrdersOptions {
|
|
|
1730
1573
|
orderTypeTag: RawTransactionArgument<number>
|
|
1731
1574
|
];
|
|
1732
1575
|
}
|
|
1733
|
-
export declare function getOrders(options: GetOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1576
|
+
export declare function getOrders(options: GetOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1577
|
+
export interface GetOrderKeyArguments {
|
|
1578
|
+
orderTypeTag: RawTransactionArgument<number>;
|
|
1579
|
+
}
|
|
1580
|
+
export interface GetOrderKeyOptions {
|
|
1581
|
+
package?: string;
|
|
1582
|
+
arguments: GetOrderKeyArguments | [orderTypeTag: RawTransactionArgument<number>];
|
|
1583
|
+
}
|
|
1584
|
+
export declare function getOrderKey(options: GetOrderKeyOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1734
1585
|
export interface TakeOrderByOrderIdAndPriceArguments {
|
|
1735
1586
|
symbolMarket: RawTransactionArgument<string>;
|
|
1736
1587
|
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
@@ -1748,7 +1599,7 @@ export interface TakeOrderByOrderIdAndPriceOptions {
|
|
|
1748
1599
|
user: RawTransactionArgument<string>
|
|
1749
1600
|
];
|
|
1750
1601
|
}
|
|
1751
|
-
export declare function takeOrderByOrderIdAndPrice(options: TakeOrderByOrderIdAndPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1602
|
+
export declare function takeOrderByOrderIdAndPrice(options: TakeOrderByOrderIdAndPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1752
1603
|
export interface GetLinkedPositionArguments {
|
|
1753
1604
|
symbolMarket: RawTransactionArgument<string>;
|
|
1754
1605
|
linkedPositionId: RawTransactionArgument<number | bigint | null>;
|
|
@@ -1762,7 +1613,7 @@ export interface GetLinkedPositionOptions {
|
|
|
1762
1613
|
user: RawTransactionArgument<string>
|
|
1763
1614
|
];
|
|
1764
1615
|
}
|
|
1765
|
-
export declare function getLinkedPosition(options: GetLinkedPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1616
|
+
export declare function getLinkedPosition(options: GetLinkedPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1766
1617
|
export interface CheckCollateralEnoughWhenAddingPositionArguments {
|
|
1767
1618
|
symbolMarket: RawTransactionArgument<string>;
|
|
1768
1619
|
order: RawTransactionArgument<string>;
|
|
@@ -1785,7 +1636,7 @@ export interface CheckCollateralEnoughWhenAddingPositionOptions {
|
|
|
1785
1636
|
];
|
|
1786
1637
|
typeArguments: [string];
|
|
1787
1638
|
}
|
|
1788
|
-
export declare function checkCollateralEnoughWhenAddingPosition(options: CheckCollateralEnoughWhenAddingPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1639
|
+
export declare function checkCollateralEnoughWhenAddingPosition(options: CheckCollateralEnoughWhenAddingPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1789
1640
|
export interface CheckCollateralEnoughWhenReducingPositionArguments {
|
|
1790
1641
|
symbolMarket: RawTransactionArgument<string>;
|
|
1791
1642
|
order: RawTransactionArgument<string>;
|
|
@@ -1808,7 +1659,7 @@ export interface CheckCollateralEnoughWhenReducingPositionOptions {
|
|
|
1808
1659
|
];
|
|
1809
1660
|
typeArguments: [string];
|
|
1810
1661
|
}
|
|
1811
|
-
export declare function checkCollateralEnoughWhenReducingPosition(options: CheckCollateralEnoughWhenReducingPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1662
|
+
export declare function checkCollateralEnoughWhenReducingPosition(options: CheckCollateralEnoughWhenReducingPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1812
1663
|
export interface CheckOptionCollateralEnoughArguments {
|
|
1813
1664
|
dovRegistry: RawTransactionArgument<string>;
|
|
1814
1665
|
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
@@ -1837,7 +1688,7 @@ export interface CheckOptionCollateralEnoughOptions {
|
|
|
1837
1688
|
];
|
|
1838
1689
|
typeArguments: [string];
|
|
1839
1690
|
}
|
|
1840
|
-
export declare function checkOptionCollateralEnough(options: CheckOptionCollateralEnoughOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1691
|
+
export declare function checkOptionCollateralEnough(options: CheckOptionCollateralEnoughOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1841
1692
|
export interface CheckReserveEnoughArguments {
|
|
1842
1693
|
symbolMarket: RawTransactionArgument<string>;
|
|
1843
1694
|
liquidityPool: RawTransactionArgument<string>;
|
|
@@ -1860,7 +1711,68 @@ export interface CheckReserveEnoughOptions {
|
|
|
1860
1711
|
];
|
|
1861
1712
|
typeArguments: [string];
|
|
1862
1713
|
}
|
|
1863
|
-
export declare function checkReserveEnough(options: CheckReserveEnoughOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1714
|
+
export declare function checkReserveEnough(options: CheckReserveEnoughOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1715
|
+
export interface GetMaxReleasingCollateralAmount_Arguments {
|
|
1716
|
+
liquidityPool: RawTransactionArgument<string>;
|
|
1717
|
+
position: RawTransactionArgument<string>;
|
|
1718
|
+
marketInfo: RawTransactionArgument<string>;
|
|
1719
|
+
marketConfig: RawTransactionArgument<string>;
|
|
1720
|
+
collateralToken: RawTransactionArgument<string>;
|
|
1721
|
+
collateralOraclePrice: RawTransactionArgument<number | bigint>;
|
|
1722
|
+
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>;
|
|
1723
|
+
tradingPairOraclePrice: RawTransactionArgument<number | bigint>;
|
|
1724
|
+
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>;
|
|
1725
|
+
cumulativeBorrowRate: RawTransactionArgument<number | bigint>;
|
|
1726
|
+
}
|
|
1727
|
+
export interface GetMaxReleasingCollateralAmount_Options {
|
|
1728
|
+
package?: string;
|
|
1729
|
+
arguments: GetMaxReleasingCollateralAmount_Arguments | [
|
|
1730
|
+
liquidityPool: RawTransactionArgument<string>,
|
|
1731
|
+
position: RawTransactionArgument<string>,
|
|
1732
|
+
marketInfo: RawTransactionArgument<string>,
|
|
1733
|
+
marketConfig: RawTransactionArgument<string>,
|
|
1734
|
+
collateralToken: RawTransactionArgument<string>,
|
|
1735
|
+
collateralOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1736
|
+
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
1737
|
+
tradingPairOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1738
|
+
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
1739
|
+
cumulativeBorrowRate: RawTransactionArgument<number | bigint>
|
|
1740
|
+
];
|
|
1741
|
+
}
|
|
1742
|
+
export declare function getMaxReleasingCollateralAmount_(options: GetMaxReleasingCollateralAmount_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1743
|
+
export interface NormalSafetyCheckArguments {
|
|
1744
|
+
version: RawTransactionArgument<string>;
|
|
1745
|
+
registry: RawTransactionArgument<string>;
|
|
1746
|
+
poolRegistry: RawTransactionArgument<string>;
|
|
1747
|
+
typusOracleCToken: RawTransactionArgument<string>;
|
|
1748
|
+
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1749
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1750
|
+
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1751
|
+
positionId: RawTransactionArgument<number | bigint | null>;
|
|
1752
|
+
}
|
|
1753
|
+
export interface NormalSafetyCheckOptions {
|
|
1754
|
+
package?: string;
|
|
1755
|
+
arguments: NormalSafetyCheckArguments | [
|
|
1756
|
+
version: RawTransactionArgument<string>,
|
|
1757
|
+
registry: RawTransactionArgument<string>,
|
|
1758
|
+
poolRegistry: RawTransactionArgument<string>,
|
|
1759
|
+
typusOracleCToken: RawTransactionArgument<string>,
|
|
1760
|
+
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1761
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1762
|
+
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1763
|
+
positionId: RawTransactionArgument<number | bigint | null>
|
|
1764
|
+
];
|
|
1765
|
+
typeArguments: [string, string];
|
|
1766
|
+
}
|
|
1767
|
+
export declare function normalSafetyCheck(options: NormalSafetyCheckOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1768
|
+
export interface ValidateTradingFeeConfigArguments {
|
|
1769
|
+
config: RawTransactionArgument<number | bigint[]>;
|
|
1770
|
+
}
|
|
1771
|
+
export interface ValidateTradingFeeConfigOptions {
|
|
1772
|
+
package?: string;
|
|
1773
|
+
arguments: ValidateTradingFeeConfigArguments | [config: RawTransactionArgument<number | bigint[]>];
|
|
1774
|
+
}
|
|
1775
|
+
export declare function validateTradingFeeConfig(options: ValidateTradingFeeConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1864
1776
|
export interface AdjustMarketInfoUserOrderSizeArguments {
|
|
1865
1777
|
symbolMarket: RawTransactionArgument<string>;
|
|
1866
1778
|
long: RawTransactionArgument<boolean>;
|
|
@@ -1876,7 +1788,7 @@ export interface AdjustMarketInfoUserOrderSizeOptions {
|
|
|
1876
1788
|
size: RawTransactionArgument<number | bigint>
|
|
1877
1789
|
];
|
|
1878
1790
|
}
|
|
1879
|
-
export declare function adjustMarketInfoUserOrderSize(options: AdjustMarketInfoUserOrderSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1791
|
+
export declare function adjustMarketInfoUserOrderSize(options: AdjustMarketInfoUserOrderSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1880
1792
|
export interface AdjustMarketInfoUserPositionSizeArguments {
|
|
1881
1793
|
symbolMarket: RawTransactionArgument<string>;
|
|
1882
1794
|
filledOrderIsLong: RawTransactionArgument<boolean>;
|
|
@@ -1892,7 +1804,7 @@ export interface AdjustMarketInfoUserPositionSizeOptions {
|
|
|
1892
1804
|
size: RawTransactionArgument<number | bigint>
|
|
1893
1805
|
];
|
|
1894
1806
|
}
|
|
1895
|
-
export declare function adjustMarketInfoUserPositionSize(options: AdjustMarketInfoUserPositionSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1807
|
+
export declare function adjustMarketInfoUserPositionSize(options: AdjustMarketInfoUserPositionSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1896
1808
|
export interface ExerciseBidReceiptsArguments {
|
|
1897
1809
|
dovRegistry: RawTransactionArgument<string>;
|
|
1898
1810
|
bidReceipts: RawTransactionArgument<string[]>;
|
|
@@ -1902,18 +1814,17 @@ export interface ExerciseBidReceiptsOptions {
|
|
|
1902
1814
|
arguments: ExerciseBidReceiptsArguments | [dovRegistry: RawTransactionArgument<string>, bidReceipts: RawTransactionArgument<string[]>];
|
|
1903
1815
|
typeArguments: [string, string];
|
|
1904
1816
|
}
|
|
1905
|
-
export declare function exerciseBidReceipts(options: ExerciseBidReceiptsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1817
|
+
export declare function exerciseBidReceipts(options: ExerciseBidReceiptsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1906
1818
|
export interface ReturnToUserArguments {
|
|
1907
|
-
marketId: RawTransactionArgument<string>;
|
|
1908
1819
|
balance: RawTransactionArgument<string>;
|
|
1909
1820
|
user: RawTransactionArgument<string>;
|
|
1910
1821
|
}
|
|
1911
1822
|
export interface ReturnToUserOptions {
|
|
1912
1823
|
package?: string;
|
|
1913
|
-
arguments: ReturnToUserArguments | [
|
|
1824
|
+
arguments: ReturnToUserArguments | [balance: RawTransactionArgument<string>, user: RawTransactionArgument<string>];
|
|
1914
1825
|
typeArguments: [string];
|
|
1915
1826
|
}
|
|
1916
|
-
export declare function returnToUser(options: ReturnToUserOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1827
|
+
export declare function returnToUser(options: ReturnToUserOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1917
1828
|
export interface CheckPositionUserMatchedArguments {
|
|
1918
1829
|
position: RawTransactionArgument<string>;
|
|
1919
1830
|
user: RawTransactionArgument<string>;
|
|
@@ -1922,7 +1833,7 @@ export interface CheckPositionUserMatchedOptions {
|
|
|
1922
1833
|
package?: string;
|
|
1923
1834
|
arguments: CheckPositionUserMatchedArguments | [position: RawTransactionArgument<string>, user: RawTransactionArgument<string>];
|
|
1924
1835
|
}
|
|
1925
|
-
export declare function checkPositionUserMatched(options: CheckPositionUserMatchedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1836
|
+
export declare function checkPositionUserMatched(options: CheckPositionUserMatchedOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1926
1837
|
export interface GetUserOrdersArguments {
|
|
1927
1838
|
version: RawTransactionArgument<string>;
|
|
1928
1839
|
registry: RawTransactionArgument<string>;
|
|
@@ -1939,7 +1850,7 @@ export interface GetUserOrdersOptions {
|
|
|
1939
1850
|
];
|
|
1940
1851
|
}
|
|
1941
1852
|
/** [View Function] Gets the user's orders. */
|
|
1942
|
-
export declare function getUserOrders(options: GetUserOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1853
|
+
export declare function getUserOrders(options: GetUserOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1943
1854
|
export interface GetUserPositionsArguments {
|
|
1944
1855
|
version: RawTransactionArgument<string>;
|
|
1945
1856
|
registry: RawTransactionArgument<string>;
|
|
@@ -1956,7 +1867,7 @@ export interface GetUserPositionsOptions {
|
|
|
1956
1867
|
];
|
|
1957
1868
|
}
|
|
1958
1869
|
/** [View Function] Gets the user's positions. */
|
|
1959
|
-
export declare function getUserPositions(options: GetUserPositionsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1870
|
+
export declare function getUserPositions(options: GetUserPositionsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1960
1871
|
export interface GetAllPositionsArguments {
|
|
1961
1872
|
version: RawTransactionArgument<string>;
|
|
1962
1873
|
registry: RawTransactionArgument<string>;
|
|
@@ -1976,7 +1887,7 @@ export interface GetAllPositionsOptions {
|
|
|
1976
1887
|
typeArguments: [string];
|
|
1977
1888
|
}
|
|
1978
1889
|
/** [View Function] Gets all positions. */
|
|
1979
|
-
export declare function getAllPositions(options: GetAllPositionsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1890
|
+
export declare function getAllPositions(options: GetAllPositionsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1980
1891
|
export interface GetActiveOrdersByOrderTagArguments {
|
|
1981
1892
|
version: RawTransactionArgument<string>;
|
|
1982
1893
|
registry: RawTransactionArgument<string>;
|
|
@@ -1994,25 +1905,7 @@ export interface GetActiveOrdersByOrderTagOptions {
|
|
|
1994
1905
|
typeArguments: [string];
|
|
1995
1906
|
}
|
|
1996
1907
|
/** [View Function] Gets active orders by order type tag. */
|
|
1997
|
-
export declare function getActiveOrdersByOrderTag(options: GetActiveOrdersByOrderTagOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1998
|
-
export interface GetActiveOrdersByOrderTagAndCtokenArguments {
|
|
1999
|
-
version: RawTransactionArgument<string>;
|
|
2000
|
-
registry: RawTransactionArgument<string>;
|
|
2001
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2002
|
-
orderTypeTag: RawTransactionArgument<number>;
|
|
2003
|
-
}
|
|
2004
|
-
export interface GetActiveOrdersByOrderTagAndCtokenOptions {
|
|
2005
|
-
package?: string;
|
|
2006
|
-
arguments: GetActiveOrdersByOrderTagAndCtokenArguments | [
|
|
2007
|
-
version: RawTransactionArgument<string>,
|
|
2008
|
-
registry: RawTransactionArgument<string>,
|
|
2009
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2010
|
-
orderTypeTag: RawTransactionArgument<number>
|
|
2011
|
-
];
|
|
2012
|
-
typeArguments: [string, string];
|
|
2013
|
-
}
|
|
2014
|
-
/** [View Function] Gets active orders by order type tag and collateral token. */
|
|
2015
|
-
export declare function getActiveOrdersByOrderTagAndCtoken(options: GetActiveOrdersByOrderTagAndCtokenOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1908
|
+
export declare function getActiveOrdersByOrderTag(options: GetActiveOrdersByOrderTagOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2016
1909
|
export interface GetMaxReleasingCollateralAmountArguments {
|
|
2017
1910
|
version: RawTransactionArgument<string>;
|
|
2018
1911
|
registry: RawTransactionArgument<string>;
|
|
@@ -2041,7 +1934,7 @@ export interface GetMaxReleasingCollateralAmountOptions {
|
|
|
2041
1934
|
* [View Function] Gets the maximum amount of collateral that can be released from
|
|
2042
1935
|
* a position.
|
|
2043
1936
|
*/
|
|
2044
|
-
export declare function getMaxReleasingCollateralAmount(options: GetMaxReleasingCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1937
|
+
export declare function getMaxReleasingCollateralAmount(options: GetMaxReleasingCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2045
1938
|
export interface GetEstimatedLiquidationPriceAndPnlArguments {
|
|
2046
1939
|
version: RawTransactionArgument<string>;
|
|
2047
1940
|
registry: RawTransactionArgument<string>;
|
|
@@ -2069,7 +1962,7 @@ export interface GetEstimatedLiquidationPriceAndPnlOptions {
|
|
|
2069
1962
|
typeArguments: [string, string];
|
|
2070
1963
|
}
|
|
2071
1964
|
/** [View Functio Only] Gets the estimated liquidation price and PnL for a position. */
|
|
2072
|
-
export declare function getEstimatedLiquidationPriceAndPnl(options: GetEstimatedLiquidationPriceAndPnlOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1965
|
+
export declare function getEstimatedLiquidationPriceAndPnl(options: GetEstimatedLiquidationPriceAndPnlOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2073
1966
|
export interface CalculateTradingFeeRateMbpArguments {
|
|
2074
1967
|
formulaVersion: RawTransactionArgument<number | bigint>;
|
|
2075
1968
|
userLongPositionSize: RawTransactionArgument<number | bigint>;
|
|
@@ -2097,7 +1990,7 @@ export interface CalculateTradingFeeRateMbpOptions {
|
|
|
2097
1990
|
tradingFeeConfig: RawTransactionArgument<number | bigint[]>
|
|
2098
1991
|
];
|
|
2099
1992
|
}
|
|
2100
|
-
export declare function calculateTradingFeeRateMbp(options: CalculateTradingFeeRateMbpOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1993
|
+
export declare function calculateTradingFeeRateMbp(options: CalculateTradingFeeRateMbpOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2101
1994
|
export interface GetMarketsBcsArguments {
|
|
2102
1995
|
registry: RawTransactionArgument<string>;
|
|
2103
1996
|
indexes: RawTransactionArgument<number | bigint[]>;
|
|
@@ -2107,7 +2000,7 @@ export interface GetMarketsBcsOptions {
|
|
|
2107
2000
|
arguments: GetMarketsBcsArguments | [registry: RawTransactionArgument<string>, indexes: RawTransactionArgument<number | bigint[]>];
|
|
2108
2001
|
}
|
|
2109
2002
|
/** [View Function] Gets the BCS-serialized markets. */
|
|
2110
|
-
export declare function getMarketsBcs(options: GetMarketsBcsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2003
|
+
export declare function getMarketsBcs(options: GetMarketsBcsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2111
2004
|
export interface GetMutMarketIdArguments {
|
|
2112
2005
|
registry: RawTransactionArgument<string>;
|
|
2113
2006
|
marketIndex: RawTransactionArgument<number | bigint>;
|
|
@@ -2117,7 +2010,7 @@ export interface GetMutMarketIdOptions {
|
|
|
2117
2010
|
arguments: GetMutMarketIdArguments | [registry: RawTransactionArgument<string>, marketIndex: RawTransactionArgument<number | bigint>];
|
|
2118
2011
|
}
|
|
2119
2012
|
/** Gets a mutable reference to the market ID. WARNING: no authority check inside */
|
|
2120
|
-
export declare function getMutMarketId(options: GetMutMarketIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2013
|
+
export declare function getMutMarketId(options: GetMutMarketIdOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2121
2014
|
export interface TradingSymbolExistsArguments {
|
|
2122
2015
|
market: RawTransactionArgument<string>;
|
|
2123
2016
|
}
|
|
@@ -2126,9 +2019,9 @@ export interface TradingSymbolExistsOptions {
|
|
|
2126
2019
|
arguments: TradingSymbolExistsArguments | [market: RawTransactionArgument<string>];
|
|
2127
2020
|
typeArguments: [string];
|
|
2128
2021
|
}
|
|
2129
|
-
export declare function tradingSymbolExists(options: TradingSymbolExistsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2022
|
+
export declare function tradingSymbolExists(options: TradingSymbolExistsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2130
2023
|
export interface DeprecatedOptions {
|
|
2131
2024
|
package?: string;
|
|
2132
2025
|
arguments?: [];
|
|
2133
2026
|
}
|
|
2134
|
-
export declare function deprecated(options?: DeprecatedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2027
|
+
export declare function deprecated(options?: DeprecatedOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|