@typus/typus-perp-sdk 1.0.59 → 1.0.60
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.d.ts +2 -2
- package/dist/src/api/sentio.js +8 -8
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +3 -2
- package/dist/src/typus_perp/admin/functions.d.ts +10 -0
- package/dist/src/typus_perp/admin/functions.js +17 -0
- package/dist/src/typus_perp/competition/functions.d.ts +24 -0
- package/dist/src/typus_perp/competition/functions.js +38 -0
- package/dist/src/typus_perp/competition/structs.d.ts +92 -0
- package/dist/src/typus_perp/competition/structs.js +288 -0
- package/dist/src/typus_perp/error/functions.d.ts +3 -0
- package/dist/src/typus_perp/error/functions.js +15 -0
- package/dist/src/typus_perp/position/functions.d.ts +8 -0
- package/dist/src/typus_perp/position/functions.js +8 -0
- package/dist/src/typus_perp/trading/functions.d.ts +156 -0
- package/dist/src/typus_perp/trading/functions.js +216 -0
- package/dist/src/typus_perp/trading/structs.d.ts +127 -0
- package/dist/src/typus_perp/trading/structs.js +395 -204
- package/dist/src/user/order.js +3 -1
- package/dist/src/user/orderWithBidReceipt.js +6 -2
- package/package.json +1 -1
|
@@ -16,11 +16,14 @@ exports.collateralTokenTypeMismatched = collateralTokenTypeMismatched;
|
|
|
16
16
|
exports.depositAmountInsufficient = depositAmountInsufficient;
|
|
17
17
|
exports.depositTokenMismatched = depositTokenMismatched;
|
|
18
18
|
exports.exceedMaxLeverage = exceedMaxLeverage;
|
|
19
|
+
exports.exceedMaxOpenInterest = exceedMaxOpenInterest;
|
|
19
20
|
exports.frictionTooLarge = frictionTooLarge;
|
|
20
21
|
exports.insufficientAmountForMintFee = insufficientAmountForMintFee;
|
|
21
22
|
exports.invalidBidReceiptsInput = invalidBidReceiptsInput;
|
|
23
|
+
exports.invalidBoostBpArrayLength = invalidBoostBpArrayLength;
|
|
22
24
|
exports.invalidOrderSide = invalidOrderSide;
|
|
23
25
|
exports.invalidOrderSize = invalidOrderSize;
|
|
26
|
+
exports.invalidTokenType = invalidTokenType;
|
|
24
27
|
exports.invalidTradingFeeConfig = invalidTradingFeeConfig;
|
|
25
28
|
exports.invalidVersion = invalidVersion;
|
|
26
29
|
exports.linkedOrderIdNotExisted = linkedOrderIdNotExisted;
|
|
@@ -132,6 +135,10 @@ function exceedMaxLeverage(tx, published_at) {
|
|
|
132
135
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
133
136
|
return tx.moveCall({ target: "".concat(published_at, "::error::exceed_max_leverage"), arguments: [] });
|
|
134
137
|
}
|
|
138
|
+
function exceedMaxOpenInterest(tx, published_at) {
|
|
139
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
140
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::exceed_max_open_interest"), arguments: [] });
|
|
141
|
+
}
|
|
135
142
|
function frictionTooLarge(tx, published_at) {
|
|
136
143
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
137
144
|
return tx.moveCall({ target: "".concat(published_at, "::error::friction_too_large"), arguments: [] });
|
|
@@ -144,6 +151,10 @@ function invalidBidReceiptsInput(tx, published_at) {
|
|
|
144
151
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
145
152
|
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_bid_receipts_input"), arguments: [] });
|
|
146
153
|
}
|
|
154
|
+
function invalidBoostBpArrayLength(tx, published_at) {
|
|
155
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
156
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_boost_bp_array_length"), arguments: [] });
|
|
157
|
+
}
|
|
147
158
|
function invalidOrderSide(tx, published_at) {
|
|
148
159
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
149
160
|
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_order_side"), arguments: [] });
|
|
@@ -152,6 +163,10 @@ function invalidOrderSize(tx, published_at) {
|
|
|
152
163
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
153
164
|
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_order_size"), arguments: [] });
|
|
154
165
|
}
|
|
166
|
+
function invalidTokenType(tx, published_at) {
|
|
167
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
168
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_token_type"), arguments: [] });
|
|
169
|
+
}
|
|
155
170
|
function invalidTradingFeeConfig(tx, published_at) {
|
|
156
171
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
157
172
|
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_trading_fee_config"), arguments: [] });
|
|
@@ -268,6 +268,10 @@ export interface OptionPositionBidReceiptsExpiredArgs {
|
|
|
268
268
|
export declare function optionPositionBidReceiptsExpired(tx: Transaction, args: OptionPositionBidReceiptsExpiredArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
269
269
|
export interface OrderFilledArgs {
|
|
270
270
|
version: TransactionObjectInput;
|
|
271
|
+
ecosystemVersion: TransactionObjectInput;
|
|
272
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
273
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
274
|
+
competitionConfig: TransactionObjectInput;
|
|
271
275
|
order: TransactionObjectInput;
|
|
272
276
|
originalPosition: TransactionObjectInput | TransactionArgument | null;
|
|
273
277
|
nextPositionId: bigint | TransactionArgument;
|
|
@@ -284,6 +288,10 @@ export interface OrderFilledArgs {
|
|
|
284
288
|
export declare function orderFilled(tx: Transaction, typeArg: string, args: OrderFilledArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
285
289
|
export interface OrderFilledWithBidReceiptsCollateralArgs {
|
|
286
290
|
version: TransactionObjectInput;
|
|
291
|
+
ecosystemVersion: TransactionObjectInput;
|
|
292
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
293
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
294
|
+
competitionConfig: TransactionObjectInput;
|
|
287
295
|
liquidityPool: TransactionObjectInput;
|
|
288
296
|
dovRegistry: TransactionObjectInput;
|
|
289
297
|
typusOracleTradingSymbol: TransactionObjectInput;
|
|
@@ -559,6 +559,10 @@ function orderFilled(tx, typeArg, args, published_at) {
|
|
|
559
559
|
typeArguments: [typeArg],
|
|
560
560
|
arguments: [
|
|
561
561
|
(0, util_1.obj)(tx, args.version),
|
|
562
|
+
(0, util_1.obj)(tx, args.ecosystemVersion),
|
|
563
|
+
(0, util_1.obj)(tx, args.typusLeaderboardRegistry),
|
|
564
|
+
(0, util_1.obj)(tx, args.tailsStakingRegistry),
|
|
565
|
+
(0, util_1.obj)(tx, args.competitionConfig),
|
|
562
566
|
(0, util_1.obj)(tx, args.order),
|
|
563
567
|
(0, util_1.option)(tx, "".concat(structs_3.Position.$typeName), args.originalPosition),
|
|
564
568
|
(0, util_1.pure)(tx, args.nextPositionId, "u64"),
|
|
@@ -581,6 +585,10 @@ function orderFilledWithBidReceiptsCollateral(tx, typeArgs, args, published_at)
|
|
|
581
585
|
typeArguments: typeArgs,
|
|
582
586
|
arguments: [
|
|
583
587
|
(0, util_1.obj)(tx, args.version),
|
|
588
|
+
(0, util_1.obj)(tx, args.ecosystemVersion),
|
|
589
|
+
(0, util_1.obj)(tx, args.typusLeaderboardRegistry),
|
|
590
|
+
(0, util_1.obj)(tx, args.tailsStakingRegistry),
|
|
591
|
+
(0, util_1.obj)(tx, args.competitionConfig),
|
|
584
592
|
(0, util_1.obj)(tx, args.liquidityPool),
|
|
585
593
|
(0, util_1.obj)(tx, args.dovRegistry),
|
|
586
594
|
(0, util_1.obj)(tx, args.typusOracleTradingSymbol),
|
|
@@ -115,6 +115,29 @@ export interface CreateTradingOrderArgs {
|
|
|
115
115
|
triggerPrice: bigint | TransactionArgument;
|
|
116
116
|
}
|
|
117
117
|
export declare function createTradingOrder(tx: Transaction, typeArgs: [string, string], args: CreateTradingOrderArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
118
|
+
export interface CreateTradingOrderV2Args {
|
|
119
|
+
version: TransactionObjectInput;
|
|
120
|
+
registry: TransactionObjectInput;
|
|
121
|
+
poolRegistry: TransactionObjectInput;
|
|
122
|
+
typusOracleCToken: TransactionObjectInput;
|
|
123
|
+
typusOracleTradingSymbol: TransactionObjectInput;
|
|
124
|
+
clock: TransactionObjectInput;
|
|
125
|
+
marketIndex: bigint | TransactionArgument;
|
|
126
|
+
poolIndex: bigint | TransactionArgument;
|
|
127
|
+
typusEcosystemVersion: TransactionObjectInput;
|
|
128
|
+
typusUserRegistry: TransactionObjectInput;
|
|
129
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
130
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
131
|
+
competitionConfig: TransactionObjectInput;
|
|
132
|
+
linkedPositionId: bigint | TransactionArgument | TransactionArgument | null;
|
|
133
|
+
collateral: TransactionObjectInput;
|
|
134
|
+
reduceOnly: boolean | TransactionArgument;
|
|
135
|
+
isLong: boolean | TransactionArgument;
|
|
136
|
+
isStopOrder: boolean | TransactionArgument;
|
|
137
|
+
size: bigint | TransactionArgument;
|
|
138
|
+
triggerPrice: bigint | TransactionArgument;
|
|
139
|
+
}
|
|
140
|
+
export declare function createTradingOrderV2(tx: Transaction, typeArgs: [string, string], args: CreateTradingOrderV2Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
118
141
|
export interface CreateTradingOrderWithBidReceiptArgs {
|
|
119
142
|
version: TransactionObjectInput;
|
|
120
143
|
registry: TransactionObjectInput;
|
|
@@ -133,6 +156,27 @@ export interface CreateTradingOrderWithBidReceiptArgs {
|
|
|
133
156
|
user: string | TransactionArgument;
|
|
134
157
|
}
|
|
135
158
|
export declare function createTradingOrderWithBidReceipt(tx: Transaction, typeArgs: [string, string, string], args: CreateTradingOrderWithBidReceiptArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
159
|
+
export interface CreateTradingOrderWithBidReceiptV2Args {
|
|
160
|
+
version: TransactionObjectInput;
|
|
161
|
+
registry: TransactionObjectInput;
|
|
162
|
+
poolRegistry: TransactionObjectInput;
|
|
163
|
+
dovRegistry: TransactionObjectInput;
|
|
164
|
+
typusOracleCToken: TransactionObjectInput;
|
|
165
|
+
typusOracleTradingSymbol: TransactionObjectInput;
|
|
166
|
+
clock: TransactionObjectInput;
|
|
167
|
+
marketIndex: bigint | TransactionArgument;
|
|
168
|
+
poolIndex: bigint | TransactionArgument;
|
|
169
|
+
typusEcosystemVersion: TransactionObjectInput;
|
|
170
|
+
typusUserRegistry: TransactionObjectInput;
|
|
171
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
172
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
173
|
+
competitionConfig: TransactionObjectInput;
|
|
174
|
+
collateralBidReceipt: TransactionObjectInput;
|
|
175
|
+
isLong: boolean | TransactionArgument;
|
|
176
|
+
user: string | TransactionArgument;
|
|
177
|
+
}
|
|
178
|
+
export declare function createTradingOrderWithBidReceiptV2(tx: Transaction, typeArgs: [string, string, string], args: CreateTradingOrderWithBidReceiptV2Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
179
|
+
export declare function deprecated(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
136
180
|
export interface ExecuteOptionCollateralOrder_Args {
|
|
137
181
|
version: TransactionObjectInput;
|
|
138
182
|
dovRegistry: TransactionObjectInput;
|
|
@@ -150,6 +194,8 @@ export interface ExecuteOptionCollateralOrder_Args {
|
|
|
150
194
|
typusEcosystemVersion: TransactionObjectInput;
|
|
151
195
|
typusUserRegistry: TransactionObjectInput;
|
|
152
196
|
typusLeaderboardRegistry: TransactionObjectInput;
|
|
197
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
198
|
+
competitionConfig: TransactionObjectInput;
|
|
153
199
|
clock: TransactionObjectInput;
|
|
154
200
|
}
|
|
155
201
|
export declare function executeOptionCollateralOrder_(tx: Transaction, typeArgs: [string, string], args: ExecuteOptionCollateralOrder_Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -168,6 +214,8 @@ export interface ExecuteOrder_Args {
|
|
|
168
214
|
typusEcosystemVersion: TransactionObjectInput;
|
|
169
215
|
typusUserRegistry: TransactionObjectInput;
|
|
170
216
|
typusLeaderboardRegistry: TransactionObjectInput;
|
|
217
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
218
|
+
competitionConfig: TransactionObjectInput;
|
|
171
219
|
clock: TransactionObjectInput;
|
|
172
220
|
}
|
|
173
221
|
export declare function executeOrder_(tx: Transaction, typeArg: string, args: ExecuteOrder_Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -301,6 +349,18 @@ export interface LiquidateArgs {
|
|
|
301
349
|
positionId: bigint | TransactionArgument;
|
|
302
350
|
}
|
|
303
351
|
export declare function liquidate(tx: Transaction, typeArgs: [string, string, string], args: LiquidateArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
352
|
+
export interface ManagerCancelOrderByOpenInterestLimitArgs {
|
|
353
|
+
version: TransactionObjectInput;
|
|
354
|
+
registry: TransactionObjectInput;
|
|
355
|
+
poolRegistry: TransactionObjectInput;
|
|
356
|
+
clock: TransactionObjectInput;
|
|
357
|
+
marketIndex: bigint | TransactionArgument;
|
|
358
|
+
poolIndex: bigint | TransactionArgument;
|
|
359
|
+
orderTypeTag: number | TransactionArgument;
|
|
360
|
+
triggerPrice: bigint | TransactionArgument;
|
|
361
|
+
maxOperationCount: bigint | TransactionArgument;
|
|
362
|
+
}
|
|
363
|
+
export declare function managerCancelOrderByOpenInterestLimit(tx: Transaction, typeArgs: [string, string], args: ManagerCancelOrderByOpenInterestLimitArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
304
364
|
export interface ManagerCloseOptionPositionArgs {
|
|
305
365
|
version: TransactionObjectInput;
|
|
306
366
|
registry: TransactionObjectInput;
|
|
@@ -317,6 +377,24 @@ export interface ManagerCloseOptionPositionArgs {
|
|
|
317
377
|
positionId: bigint | TransactionArgument;
|
|
318
378
|
}
|
|
319
379
|
export declare function managerCloseOptionPosition(tx: Transaction, typeArgs: [string, string, string], args: ManagerCloseOptionPositionArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
380
|
+
export interface ManagerCloseOptionPositionV2Args {
|
|
381
|
+
version: TransactionObjectInput;
|
|
382
|
+
registry: TransactionObjectInput;
|
|
383
|
+
poolRegistry: TransactionObjectInput;
|
|
384
|
+
dovRegistry: TransactionObjectInput;
|
|
385
|
+
typusOracleCToken: TransactionObjectInput;
|
|
386
|
+
typusOracleTradingSymbol: TransactionObjectInput;
|
|
387
|
+
clock: TransactionObjectInput;
|
|
388
|
+
marketIndex: bigint | TransactionArgument;
|
|
389
|
+
poolIndex: bigint | TransactionArgument;
|
|
390
|
+
typusEcosystemVersion: TransactionObjectInput;
|
|
391
|
+
typusUserRegistry: TransactionObjectInput;
|
|
392
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
393
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
394
|
+
competitionConfig: TransactionObjectInput;
|
|
395
|
+
positionId: bigint | TransactionArgument;
|
|
396
|
+
}
|
|
397
|
+
export declare function managerCloseOptionPositionV2(tx: Transaction, typeArgs: [string, string, string], args: ManagerCloseOptionPositionV2Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
320
398
|
export interface ManagerReducePositionArgs {
|
|
321
399
|
version: TransactionObjectInput;
|
|
322
400
|
registry: TransactionObjectInput;
|
|
@@ -333,6 +411,24 @@ export interface ManagerReducePositionArgs {
|
|
|
333
411
|
reducedRatioBp: bigint | TransactionArgument;
|
|
334
412
|
}
|
|
335
413
|
export declare function managerReducePosition(tx: Transaction, typeArgs: [string, string], args: ManagerReducePositionArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
414
|
+
export interface ManagerReducePositionV2Args {
|
|
415
|
+
version: TransactionObjectInput;
|
|
416
|
+
registry: TransactionObjectInput;
|
|
417
|
+
poolRegistry: TransactionObjectInput;
|
|
418
|
+
typusOracleCToken: TransactionObjectInput;
|
|
419
|
+
typusOracleTradingSymbol: TransactionObjectInput;
|
|
420
|
+
clock: TransactionObjectInput;
|
|
421
|
+
marketIndex: bigint | TransactionArgument;
|
|
422
|
+
poolIndex: bigint | TransactionArgument;
|
|
423
|
+
typusEcosystemVersion: TransactionObjectInput;
|
|
424
|
+
typusUserRegistry: TransactionObjectInput;
|
|
425
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
426
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
427
|
+
competitionConfig: TransactionObjectInput;
|
|
428
|
+
positionId: bigint | TransactionArgument;
|
|
429
|
+
reducedRatioBp: bigint | TransactionArgument;
|
|
430
|
+
}
|
|
431
|
+
export declare function managerReducePositionV2(tx: Transaction, typeArgs: [string, string], args: ManagerReducePositionV2Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
336
432
|
export interface ManagerRemoveOrderArgs {
|
|
337
433
|
version: TransactionObjectInput;
|
|
338
434
|
registry: TransactionObjectInput;
|
|
@@ -363,6 +459,26 @@ export interface ManagerRemovePositionArgs {
|
|
|
363
459
|
process: TransactionObjectInput;
|
|
364
460
|
}
|
|
365
461
|
export declare function managerRemovePosition(tx: Transaction, typeArgs: [string, string, string], args: ManagerRemovePositionArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
462
|
+
export interface ManagerRemovePositionV2Args {
|
|
463
|
+
version: TransactionObjectInput;
|
|
464
|
+
registry: TransactionObjectInput;
|
|
465
|
+
poolRegistry: TransactionObjectInput;
|
|
466
|
+
dovRegistry: TransactionObjectInput;
|
|
467
|
+
typusOracleCToken: TransactionObjectInput;
|
|
468
|
+
typusOracleTradingSymbol: TransactionObjectInput;
|
|
469
|
+
clock: TransactionObjectInput;
|
|
470
|
+
marketIndex: bigint | TransactionArgument;
|
|
471
|
+
poolIndex: bigint | TransactionArgument;
|
|
472
|
+
typusEcosystemVersion: TransactionObjectInput;
|
|
473
|
+
typusUserRegistry: TransactionObjectInput;
|
|
474
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
475
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
476
|
+
competitionConfig: TransactionObjectInput;
|
|
477
|
+
positionId: bigint | TransactionArgument;
|
|
478
|
+
isOptionPosition: boolean | TransactionArgument;
|
|
479
|
+
process: TransactionObjectInput;
|
|
480
|
+
}
|
|
481
|
+
export declare function managerRemovePositionV2(tx: Transaction, typeArgs: [string, string, string], args: ManagerRemovePositionV2Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
366
482
|
export interface ManagerUpdateProcessStatusAfterOrderArgs {
|
|
367
483
|
version: TransactionObjectInput;
|
|
368
484
|
registry: TransactionObjectInput;
|
|
@@ -402,6 +518,25 @@ export interface MatchTradingOrderArgs {
|
|
|
402
518
|
maxOperationCount: bigint | TransactionArgument;
|
|
403
519
|
}
|
|
404
520
|
export declare function matchTradingOrder(tx: Transaction, typeArgs: [string, string], args: MatchTradingOrderArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
521
|
+
export interface MatchTradingOrderV2Args {
|
|
522
|
+
version: TransactionObjectInput;
|
|
523
|
+
registry: TransactionObjectInput;
|
|
524
|
+
poolRegistry: TransactionObjectInput;
|
|
525
|
+
typusOracleCToken: TransactionObjectInput;
|
|
526
|
+
typusOracleTradingSymbol: TransactionObjectInput;
|
|
527
|
+
clock: TransactionObjectInput;
|
|
528
|
+
marketIndex: bigint | TransactionArgument;
|
|
529
|
+
poolIndex: bigint | TransactionArgument;
|
|
530
|
+
typusEcosystemVersion: TransactionObjectInput;
|
|
531
|
+
typusUserRegistry: TransactionObjectInput;
|
|
532
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
533
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
534
|
+
competitionConfig: TransactionObjectInput;
|
|
535
|
+
orderTypeTag: number | TransactionArgument;
|
|
536
|
+
triggerPrice: bigint | TransactionArgument;
|
|
537
|
+
maxOperationCount: bigint | TransactionArgument;
|
|
538
|
+
}
|
|
539
|
+
export declare function matchTradingOrderV2(tx: Transaction, typeArgs: [string, string], args: MatchTradingOrderV2Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
405
540
|
export interface NewMarketsArgs {
|
|
406
541
|
version: TransactionObjectInput;
|
|
407
542
|
registry: TransactionObjectInput;
|
|
@@ -425,6 +560,25 @@ export interface ReduceOptionCollateralPositionSizeArgs {
|
|
|
425
560
|
orderSize: bigint | TransactionArgument | TransactionArgument | null;
|
|
426
561
|
}
|
|
427
562
|
export declare function reduceOptionCollateralPositionSize(tx: Transaction, typeArgs: [string, string, string], args: ReduceOptionCollateralPositionSizeArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
563
|
+
export interface ReduceOptionCollateralPositionSizeV2Args {
|
|
564
|
+
version: TransactionObjectInput;
|
|
565
|
+
registry: TransactionObjectInput;
|
|
566
|
+
poolRegistry: TransactionObjectInput;
|
|
567
|
+
dovRegistry: TransactionObjectInput;
|
|
568
|
+
typusOracleCToken: TransactionObjectInput;
|
|
569
|
+
typusOracleTradingSymbol: TransactionObjectInput;
|
|
570
|
+
clock: TransactionObjectInput;
|
|
571
|
+
marketIndex: bigint | TransactionArgument;
|
|
572
|
+
poolIndex: bigint | TransactionArgument;
|
|
573
|
+
typusEcosystemVersion: TransactionObjectInput;
|
|
574
|
+
typusUserRegistry: TransactionObjectInput;
|
|
575
|
+
typusLeaderboardRegistry: TransactionObjectInput;
|
|
576
|
+
tailsStakingRegistry: TransactionObjectInput;
|
|
577
|
+
competitionConfig: TransactionObjectInput;
|
|
578
|
+
positionId: bigint | TransactionArgument;
|
|
579
|
+
orderSize: bigint | TransactionArgument | TransactionArgument | null;
|
|
580
|
+
}
|
|
581
|
+
export declare function reduceOptionCollateralPositionSizeV2(tx: Transaction, typeArgs: [string, string, string], args: ReduceOptionCollateralPositionSizeV2Args, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
428
582
|
export interface ReleaseCollateralArgs {
|
|
429
583
|
version: TransactionObjectInput;
|
|
430
584
|
registry: TransactionObjectInput;
|
|
@@ -520,6 +674,8 @@ export interface UpdateMarketConfigArgs {
|
|
|
520
674
|
basicFundingRate: bigint | TransactionArgument | TransactionArgument | null;
|
|
521
675
|
fundingIntervalTsMs: bigint | TransactionArgument | TransactionArgument | null;
|
|
522
676
|
expMultiplier: bigint | TransactionArgument | TransactionArgument | null;
|
|
677
|
+
maxBuyOpenInterest: bigint | TransactionArgument | TransactionArgument | null;
|
|
678
|
+
maxSellOpenInterest: bigint | TransactionArgument | TransactionArgument | null;
|
|
523
679
|
}
|
|
524
680
|
export declare function updateMarketConfig(tx: Transaction, typeArg: string, args: UpdateMarketConfigArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
525
681
|
export interface UpdateProtocolFeeShareBpArgs {
|
|
@@ -10,7 +10,10 @@ exports.checkCollateralEnough = checkCollateralEnough;
|
|
|
10
10
|
exports.checkOptionCollateralEnough = checkOptionCollateralEnough;
|
|
11
11
|
exports.checkReserveEnough = checkReserveEnough;
|
|
12
12
|
exports.createTradingOrder = createTradingOrder;
|
|
13
|
+
exports.createTradingOrderV2 = createTradingOrderV2;
|
|
13
14
|
exports.createTradingOrderWithBidReceipt = createTradingOrderWithBidReceipt;
|
|
15
|
+
exports.createTradingOrderWithBidReceiptV2 = createTradingOrderWithBidReceiptV2;
|
|
16
|
+
exports.deprecated = deprecated;
|
|
14
17
|
exports.executeOptionCollateralOrder_ = executeOptionCollateralOrder_;
|
|
15
18
|
exports.executeOrder_ = executeOrder_;
|
|
16
19
|
exports.exerciseBidReceipts = exerciseBidReceipts;
|
|
@@ -29,15 +32,21 @@ exports.getUserPositions = getUserPositions;
|
|
|
29
32
|
exports.increaseCollateral = increaseCollateral;
|
|
30
33
|
exports.init = init;
|
|
31
34
|
exports.liquidate = liquidate;
|
|
35
|
+
exports.managerCancelOrderByOpenInterestLimit = managerCancelOrderByOpenInterestLimit;
|
|
32
36
|
exports.managerCloseOptionPosition = managerCloseOptionPosition;
|
|
37
|
+
exports.managerCloseOptionPositionV2 = managerCloseOptionPositionV2;
|
|
33
38
|
exports.managerReducePosition = managerReducePosition;
|
|
39
|
+
exports.managerReducePositionV2 = managerReducePositionV2;
|
|
34
40
|
exports.managerRemoveOrder = managerRemoveOrder;
|
|
35
41
|
exports.managerRemovePosition = managerRemovePosition;
|
|
42
|
+
exports.managerRemovePositionV2 = managerRemovePositionV2;
|
|
36
43
|
exports.managerUpdateProcessStatusAfterOrder = managerUpdateProcessStatusAfterOrder;
|
|
37
44
|
exports.managerUpdateProcessStatusAfterPosition = managerUpdateProcessStatusAfterPosition;
|
|
38
45
|
exports.matchTradingOrder = matchTradingOrder;
|
|
46
|
+
exports.matchTradingOrderV2 = matchTradingOrderV2;
|
|
39
47
|
exports.newMarkets = newMarkets;
|
|
40
48
|
exports.reduceOptionCollateralPositionSize = reduceOptionCollateralPositionSize;
|
|
49
|
+
exports.reduceOptionCollateralPositionSizeV2 = reduceOptionCollateralPositionSizeV2;
|
|
41
50
|
exports.releaseCollateral = releaseCollateral;
|
|
42
51
|
exports.removeLinkedOrders = removeLinkedOrders;
|
|
43
52
|
exports.removeTradingSymbol = removeTradingSymbol;
|
|
@@ -228,6 +237,35 @@ function createTradingOrder(tx, typeArgs, args, published_at) {
|
|
|
228
237
|
],
|
|
229
238
|
});
|
|
230
239
|
}
|
|
240
|
+
function createTradingOrderV2(tx, typeArgs, args, published_at) {
|
|
241
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
242
|
+
return tx.moveCall({
|
|
243
|
+
target: "".concat(published_at, "::trading::create_trading_order_v2"),
|
|
244
|
+
typeArguments: typeArgs,
|
|
245
|
+
arguments: [
|
|
246
|
+
(0, util_1.obj)(tx, args.version),
|
|
247
|
+
(0, util_1.obj)(tx, args.registry),
|
|
248
|
+
(0, util_1.obj)(tx, args.poolRegistry),
|
|
249
|
+
(0, util_1.obj)(tx, args.typusOracleCToken),
|
|
250
|
+
(0, util_1.obj)(tx, args.typusOracleTradingSymbol),
|
|
251
|
+
(0, util_1.obj)(tx, args.clock),
|
|
252
|
+
(0, util_1.pure)(tx, args.marketIndex, "u64"),
|
|
253
|
+
(0, util_1.pure)(tx, args.poolIndex, "u64"),
|
|
254
|
+
(0, util_1.obj)(tx, args.typusEcosystemVersion),
|
|
255
|
+
(0, util_1.obj)(tx, args.typusUserRegistry),
|
|
256
|
+
(0, util_1.obj)(tx, args.typusLeaderboardRegistry),
|
|
257
|
+
(0, util_1.obj)(tx, args.tailsStakingRegistry),
|
|
258
|
+
(0, util_1.obj)(tx, args.competitionConfig),
|
|
259
|
+
(0, util_1.pure)(tx, args.linkedPositionId, "".concat(structs_1.Option.$typeName, "<u64>")),
|
|
260
|
+
(0, util_1.obj)(tx, args.collateral),
|
|
261
|
+
(0, util_1.pure)(tx, args.reduceOnly, "bool"),
|
|
262
|
+
(0, util_1.pure)(tx, args.isLong, "bool"),
|
|
263
|
+
(0, util_1.pure)(tx, args.isStopOrder, "bool"),
|
|
264
|
+
(0, util_1.pure)(tx, args.size, "u64"),
|
|
265
|
+
(0, util_1.pure)(tx, args.triggerPrice, "u64"),
|
|
266
|
+
],
|
|
267
|
+
});
|
|
268
|
+
}
|
|
231
269
|
function createTradingOrderWithBidReceipt(tx, typeArgs, args, published_at) {
|
|
232
270
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
233
271
|
return tx.moveCall({
|
|
@@ -252,6 +290,36 @@ function createTradingOrderWithBidReceipt(tx, typeArgs, args, published_at) {
|
|
|
252
290
|
],
|
|
253
291
|
});
|
|
254
292
|
}
|
|
293
|
+
function createTradingOrderWithBidReceiptV2(tx, typeArgs, args, published_at) {
|
|
294
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
295
|
+
return tx.moveCall({
|
|
296
|
+
target: "".concat(published_at, "::trading::create_trading_order_with_bid_receipt_v2"),
|
|
297
|
+
typeArguments: typeArgs,
|
|
298
|
+
arguments: [
|
|
299
|
+
(0, util_1.obj)(tx, args.version),
|
|
300
|
+
(0, util_1.obj)(tx, args.registry),
|
|
301
|
+
(0, util_1.obj)(tx, args.poolRegistry),
|
|
302
|
+
(0, util_1.obj)(tx, args.dovRegistry),
|
|
303
|
+
(0, util_1.obj)(tx, args.typusOracleCToken),
|
|
304
|
+
(0, util_1.obj)(tx, args.typusOracleTradingSymbol),
|
|
305
|
+
(0, util_1.obj)(tx, args.clock),
|
|
306
|
+
(0, util_1.pure)(tx, args.marketIndex, "u64"),
|
|
307
|
+
(0, util_1.pure)(tx, args.poolIndex, "u64"),
|
|
308
|
+
(0, util_1.obj)(tx, args.typusEcosystemVersion),
|
|
309
|
+
(0, util_1.obj)(tx, args.typusUserRegistry),
|
|
310
|
+
(0, util_1.obj)(tx, args.typusLeaderboardRegistry),
|
|
311
|
+
(0, util_1.obj)(tx, args.tailsStakingRegistry),
|
|
312
|
+
(0, util_1.obj)(tx, args.competitionConfig),
|
|
313
|
+
(0, util_1.obj)(tx, args.collateralBidReceipt),
|
|
314
|
+
(0, util_1.pure)(tx, args.isLong, "bool"),
|
|
315
|
+
(0, util_1.pure)(tx, args.user, "address"),
|
|
316
|
+
],
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
function deprecated(tx, published_at) {
|
|
320
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
321
|
+
return tx.moveCall({ target: "".concat(published_at, "::trading::deprecated"), arguments: [] });
|
|
322
|
+
}
|
|
255
323
|
function executeOptionCollateralOrder_(tx, typeArgs, args, published_at) {
|
|
256
324
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
257
325
|
return tx.moveCall({
|
|
@@ -274,6 +342,8 @@ function executeOptionCollateralOrder_(tx, typeArgs, args, published_at) {
|
|
|
274
342
|
(0, util_1.obj)(tx, args.typusEcosystemVersion),
|
|
275
343
|
(0, util_1.obj)(tx, args.typusUserRegistry),
|
|
276
344
|
(0, util_1.obj)(tx, args.typusLeaderboardRegistry),
|
|
345
|
+
(0, util_1.obj)(tx, args.tailsStakingRegistry),
|
|
346
|
+
(0, util_1.obj)(tx, args.competitionConfig),
|
|
277
347
|
(0, util_1.obj)(tx, args.clock),
|
|
278
348
|
],
|
|
279
349
|
});
|
|
@@ -298,6 +368,8 @@ function executeOrder_(tx, typeArg, args, published_at) {
|
|
|
298
368
|
(0, util_1.obj)(tx, args.typusEcosystemVersion),
|
|
299
369
|
(0, util_1.obj)(tx, args.typusUserRegistry),
|
|
300
370
|
(0, util_1.obj)(tx, args.typusLeaderboardRegistry),
|
|
371
|
+
(0, util_1.obj)(tx, args.tailsStakingRegistry),
|
|
372
|
+
(0, util_1.obj)(tx, args.competitionConfig),
|
|
301
373
|
(0, util_1.obj)(tx, args.clock),
|
|
302
374
|
],
|
|
303
375
|
});
|
|
@@ -484,6 +556,24 @@ function liquidate(tx, typeArgs, args, published_at) {
|
|
|
484
556
|
],
|
|
485
557
|
});
|
|
486
558
|
}
|
|
559
|
+
function managerCancelOrderByOpenInterestLimit(tx, typeArgs, args, published_at) {
|
|
560
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
561
|
+
return tx.moveCall({
|
|
562
|
+
target: "".concat(published_at, "::trading::manager_cancel_order_by_open_interest_limit"),
|
|
563
|
+
typeArguments: typeArgs,
|
|
564
|
+
arguments: [
|
|
565
|
+
(0, util_1.obj)(tx, args.version),
|
|
566
|
+
(0, util_1.obj)(tx, args.registry),
|
|
567
|
+
(0, util_1.obj)(tx, args.poolRegistry),
|
|
568
|
+
(0, util_1.obj)(tx, args.clock),
|
|
569
|
+
(0, util_1.pure)(tx, args.marketIndex, "u64"),
|
|
570
|
+
(0, util_1.pure)(tx, args.poolIndex, "u64"),
|
|
571
|
+
(0, util_1.pure)(tx, args.orderTypeTag, "u8"),
|
|
572
|
+
(0, util_1.pure)(tx, args.triggerPrice, "u64"),
|
|
573
|
+
(0, util_1.pure)(tx, args.maxOperationCount, "u64"),
|
|
574
|
+
],
|
|
575
|
+
});
|
|
576
|
+
}
|
|
487
577
|
function managerCloseOptionPosition(tx, typeArgs, args, published_at) {
|
|
488
578
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
489
579
|
return tx.moveCall({
|
|
@@ -506,6 +596,30 @@ function managerCloseOptionPosition(tx, typeArgs, args, published_at) {
|
|
|
506
596
|
],
|
|
507
597
|
});
|
|
508
598
|
}
|
|
599
|
+
function managerCloseOptionPositionV2(tx, typeArgs, args, published_at) {
|
|
600
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
601
|
+
return tx.moveCall({
|
|
602
|
+
target: "".concat(published_at, "::trading::manager_close_option_position_v2"),
|
|
603
|
+
typeArguments: typeArgs,
|
|
604
|
+
arguments: [
|
|
605
|
+
(0, util_1.obj)(tx, args.version),
|
|
606
|
+
(0, util_1.obj)(tx, args.registry),
|
|
607
|
+
(0, util_1.obj)(tx, args.poolRegistry),
|
|
608
|
+
(0, util_1.obj)(tx, args.dovRegistry),
|
|
609
|
+
(0, util_1.obj)(tx, args.typusOracleCToken),
|
|
610
|
+
(0, util_1.obj)(tx, args.typusOracleTradingSymbol),
|
|
611
|
+
(0, util_1.obj)(tx, args.clock),
|
|
612
|
+
(0, util_1.pure)(tx, args.marketIndex, "u64"),
|
|
613
|
+
(0, util_1.pure)(tx, args.poolIndex, "u64"),
|
|
614
|
+
(0, util_1.obj)(tx, args.typusEcosystemVersion),
|
|
615
|
+
(0, util_1.obj)(tx, args.typusUserRegistry),
|
|
616
|
+
(0, util_1.obj)(tx, args.typusLeaderboardRegistry),
|
|
617
|
+
(0, util_1.obj)(tx, args.tailsStakingRegistry),
|
|
618
|
+
(0, util_1.obj)(tx, args.competitionConfig),
|
|
619
|
+
(0, util_1.pure)(tx, args.positionId, "u64"),
|
|
620
|
+
],
|
|
621
|
+
});
|
|
622
|
+
}
|
|
509
623
|
function managerReducePosition(tx, typeArgs, args, published_at) {
|
|
510
624
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
511
625
|
return tx.moveCall({
|
|
@@ -528,6 +642,30 @@ function managerReducePosition(tx, typeArgs, args, published_at) {
|
|
|
528
642
|
],
|
|
529
643
|
});
|
|
530
644
|
}
|
|
645
|
+
function managerReducePositionV2(tx, typeArgs, args, published_at) {
|
|
646
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
647
|
+
return tx.moveCall({
|
|
648
|
+
target: "".concat(published_at, "::trading::manager_reduce_position_v2"),
|
|
649
|
+
typeArguments: typeArgs,
|
|
650
|
+
arguments: [
|
|
651
|
+
(0, util_1.obj)(tx, args.version),
|
|
652
|
+
(0, util_1.obj)(tx, args.registry),
|
|
653
|
+
(0, util_1.obj)(tx, args.poolRegistry),
|
|
654
|
+
(0, util_1.obj)(tx, args.typusOracleCToken),
|
|
655
|
+
(0, util_1.obj)(tx, args.typusOracleTradingSymbol),
|
|
656
|
+
(0, util_1.obj)(tx, args.clock),
|
|
657
|
+
(0, util_1.pure)(tx, args.marketIndex, "u64"),
|
|
658
|
+
(0, util_1.pure)(tx, args.poolIndex, "u64"),
|
|
659
|
+
(0, util_1.obj)(tx, args.typusEcosystemVersion),
|
|
660
|
+
(0, util_1.obj)(tx, args.typusUserRegistry),
|
|
661
|
+
(0, util_1.obj)(tx, args.typusLeaderboardRegistry),
|
|
662
|
+
(0, util_1.obj)(tx, args.tailsStakingRegistry),
|
|
663
|
+
(0, util_1.obj)(tx, args.competitionConfig),
|
|
664
|
+
(0, util_1.pure)(tx, args.positionId, "u64"),
|
|
665
|
+
(0, util_1.pure)(tx, args.reducedRatioBp, "u64"),
|
|
666
|
+
],
|
|
667
|
+
});
|
|
668
|
+
}
|
|
531
669
|
function managerRemoveOrder(tx, typeArgs, args, published_at) {
|
|
532
670
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
533
671
|
return tx.moveCall({
|
|
@@ -570,6 +708,32 @@ function managerRemovePosition(tx, typeArgs, args, published_at) {
|
|
|
570
708
|
],
|
|
571
709
|
});
|
|
572
710
|
}
|
|
711
|
+
function managerRemovePositionV2(tx, typeArgs, args, published_at) {
|
|
712
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
713
|
+
return tx.moveCall({
|
|
714
|
+
target: "".concat(published_at, "::trading::manager_remove_position_v2"),
|
|
715
|
+
typeArguments: typeArgs,
|
|
716
|
+
arguments: [
|
|
717
|
+
(0, util_1.obj)(tx, args.version),
|
|
718
|
+
(0, util_1.obj)(tx, args.registry),
|
|
719
|
+
(0, util_1.obj)(tx, args.poolRegistry),
|
|
720
|
+
(0, util_1.obj)(tx, args.dovRegistry),
|
|
721
|
+
(0, util_1.obj)(tx, args.typusOracleCToken),
|
|
722
|
+
(0, util_1.obj)(tx, args.typusOracleTradingSymbol),
|
|
723
|
+
(0, util_1.obj)(tx, args.clock),
|
|
724
|
+
(0, util_1.pure)(tx, args.marketIndex, "u64"),
|
|
725
|
+
(0, util_1.pure)(tx, args.poolIndex, "u64"),
|
|
726
|
+
(0, util_1.obj)(tx, args.typusEcosystemVersion),
|
|
727
|
+
(0, util_1.obj)(tx, args.typusUserRegistry),
|
|
728
|
+
(0, util_1.obj)(tx, args.typusLeaderboardRegistry),
|
|
729
|
+
(0, util_1.obj)(tx, args.tailsStakingRegistry),
|
|
730
|
+
(0, util_1.obj)(tx, args.competitionConfig),
|
|
731
|
+
(0, util_1.pure)(tx, args.positionId, "u64"),
|
|
732
|
+
(0, util_1.pure)(tx, args.isOptionPosition, "bool"),
|
|
733
|
+
(0, util_1.obj)(tx, args.process),
|
|
734
|
+
],
|
|
735
|
+
});
|
|
736
|
+
}
|
|
573
737
|
function managerUpdateProcessStatusAfterOrder(tx, typeArgs, args, published_at) {
|
|
574
738
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
575
739
|
return tx.moveCall({
|
|
@@ -627,6 +791,31 @@ function matchTradingOrder(tx, typeArgs, args, published_at) {
|
|
|
627
791
|
],
|
|
628
792
|
});
|
|
629
793
|
}
|
|
794
|
+
function matchTradingOrderV2(tx, typeArgs, args, published_at) {
|
|
795
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
796
|
+
return tx.moveCall({
|
|
797
|
+
target: "".concat(published_at, "::trading::match_trading_order_v2"),
|
|
798
|
+
typeArguments: typeArgs,
|
|
799
|
+
arguments: [
|
|
800
|
+
(0, util_1.obj)(tx, args.version),
|
|
801
|
+
(0, util_1.obj)(tx, args.registry),
|
|
802
|
+
(0, util_1.obj)(tx, args.poolRegistry),
|
|
803
|
+
(0, util_1.obj)(tx, args.typusOracleCToken),
|
|
804
|
+
(0, util_1.obj)(tx, args.typusOracleTradingSymbol),
|
|
805
|
+
(0, util_1.obj)(tx, args.clock),
|
|
806
|
+
(0, util_1.pure)(tx, args.marketIndex, "u64"),
|
|
807
|
+
(0, util_1.pure)(tx, args.poolIndex, "u64"),
|
|
808
|
+
(0, util_1.obj)(tx, args.typusEcosystemVersion),
|
|
809
|
+
(0, util_1.obj)(tx, args.typusUserRegistry),
|
|
810
|
+
(0, util_1.obj)(tx, args.typusLeaderboardRegistry),
|
|
811
|
+
(0, util_1.obj)(tx, args.tailsStakingRegistry),
|
|
812
|
+
(0, util_1.obj)(tx, args.competitionConfig),
|
|
813
|
+
(0, util_1.pure)(tx, args.orderTypeTag, "u8"),
|
|
814
|
+
(0, util_1.pure)(tx, args.triggerPrice, "u64"),
|
|
815
|
+
(0, util_1.pure)(tx, args.maxOperationCount, "u64"),
|
|
816
|
+
],
|
|
817
|
+
});
|
|
818
|
+
}
|
|
630
819
|
function newMarkets(tx, typeArgs, args, published_at) {
|
|
631
820
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
632
821
|
return tx.moveCall({
|
|
@@ -658,6 +847,31 @@ function reduceOptionCollateralPositionSize(tx, typeArgs, args, published_at) {
|
|
|
658
847
|
],
|
|
659
848
|
});
|
|
660
849
|
}
|
|
850
|
+
function reduceOptionCollateralPositionSizeV2(tx, typeArgs, args, published_at) {
|
|
851
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
852
|
+
return tx.moveCall({
|
|
853
|
+
target: "".concat(published_at, "::trading::reduce_option_collateral_position_size_v2"),
|
|
854
|
+
typeArguments: typeArgs,
|
|
855
|
+
arguments: [
|
|
856
|
+
(0, util_1.obj)(tx, args.version),
|
|
857
|
+
(0, util_1.obj)(tx, args.registry),
|
|
858
|
+
(0, util_1.obj)(tx, args.poolRegistry),
|
|
859
|
+
(0, util_1.obj)(tx, args.dovRegistry),
|
|
860
|
+
(0, util_1.obj)(tx, args.typusOracleCToken),
|
|
861
|
+
(0, util_1.obj)(tx, args.typusOracleTradingSymbol),
|
|
862
|
+
(0, util_1.obj)(tx, args.clock),
|
|
863
|
+
(0, util_1.pure)(tx, args.marketIndex, "u64"),
|
|
864
|
+
(0, util_1.pure)(tx, args.poolIndex, "u64"),
|
|
865
|
+
(0, util_1.obj)(tx, args.typusEcosystemVersion),
|
|
866
|
+
(0, util_1.obj)(tx, args.typusUserRegistry),
|
|
867
|
+
(0, util_1.obj)(tx, args.typusLeaderboardRegistry),
|
|
868
|
+
(0, util_1.obj)(tx, args.tailsStakingRegistry),
|
|
869
|
+
(0, util_1.obj)(tx, args.competitionConfig),
|
|
870
|
+
(0, util_1.pure)(tx, args.positionId, "u64"),
|
|
871
|
+
(0, util_1.pure)(tx, args.orderSize, "".concat(structs_1.Option.$typeName, "<u64>")),
|
|
872
|
+
],
|
|
873
|
+
});
|
|
874
|
+
}
|
|
661
875
|
function releaseCollateral(tx, typeArgs, args, published_at) {
|
|
662
876
|
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
663
877
|
return tx.moveCall({
|
|
@@ -802,6 +1016,8 @@ function updateMarketConfig(tx, typeArg, args, published_at) {
|
|
|
802
1016
|
(0, util_1.pure)(tx, args.basicFundingRate, "".concat(structs_1.Option.$typeName, "<u64>")),
|
|
803
1017
|
(0, util_1.pure)(tx, args.fundingIntervalTsMs, "".concat(structs_1.Option.$typeName, "<u64>")),
|
|
804
1018
|
(0, util_1.pure)(tx, args.expMultiplier, "".concat(structs_1.Option.$typeName, "<u64>")),
|
|
1019
|
+
(0, util_1.pure)(tx, args.maxBuyOpenInterest, "".concat(structs_1.Option.$typeName, "<u64>")),
|
|
1020
|
+
(0, util_1.pure)(tx, args.maxSellOpenInterest, "".concat(structs_1.Option.$typeName, "<u64>")),
|
|
805
1021
|
],
|
|
806
1022
|
});
|
|
807
1023
|
}
|