@typus/typus-perp-sdk 1.2.2 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/client.d.ts +22 -3
- package/dist/src/client.js +66 -8
- package/dist/src/fetch.d.ts +61 -17
- package/dist/src/fetch.js +20 -14
- package/dist/src/generated/typus_perp/admin.d.ts +65 -21
- package/dist/src/generated/typus_perp/admin.js +139 -123
- package/dist/src/generated/typus_perp/competition.d.ts +5 -17
- package/dist/src/generated/typus_perp/competition.js +63 -39
- package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +9 -9
- package/dist/src/generated/typus_perp/deps/std/type_name.js +13 -16
- package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +2 -2
- package/dist/src/generated/typus_perp/deps/sui/balance.js +5 -8
- package/dist/src/generated/typus_perp/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_perp/deps/sui/object.js +13 -0
- package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +5 -3
- package/dist/src/generated/typus_perp/deps/sui/object_table.js +40 -9
- package/dist/src/generated/typus_perp/deps/sui/table.d.ts +5 -3
- package/dist/src/generated/typus_perp/deps/sui/table.js +40 -9
- package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +5 -3
- package/dist/src/generated/typus_perp/deps/sui/vec_set.js +5 -8
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +4 -2
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +9 -12
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +12 -6
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +41 -10
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +4 -2
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +40 -9
- package/dist/src/generated/typus_perp/error.d.ts +201 -94
- package/dist/src/generated/typus_perp/error.js +300 -273
- package/dist/src/generated/typus_perp/escrow.d.ts +14 -6
- package/dist/src/generated/typus_perp/escrow.js +38 -37
- package/dist/src/generated/typus_perp/lending.d.ts +1 -1
- package/dist/src/generated/typus_perp/lending.js +3 -3
- package/dist/src/generated/typus_perp/lp_pool.d.ts +438 -392
- package/dist/src/generated/typus_perp/lp_pool.js +987 -934
- package/dist/src/generated/typus_perp/math.d.ts +13 -16
- package/dist/src/generated/typus_perp/math.js +51 -50
- package/dist/src/generated/typus_perp/position.d.ts +194 -104
- package/dist/src/generated/typus_perp/position.js +714 -731
- package/dist/src/generated/typus_perp/profit_vault.d.ts +62 -20
- package/dist/src/generated/typus_perp/profit_vault.js +162 -148
- package/dist/src/generated/typus_perp/symbol.d.ts +12 -5
- package/dist/src/generated/typus_perp/symbol.js +28 -25
- package/dist/src/generated/typus_perp/trading.d.ts +955 -133
- package/dist/src/generated/typus_perp/trading.js +1575 -1146
- package/dist/src/generated/typus_perp/treasury_caps.d.ts +16 -7
- package/dist/src/generated/typus_perp/treasury_caps.js +60 -24
- package/dist/src/generated/typus_perp/user_account.d.ts +40 -0
- package/dist/src/generated/typus_perp/user_account.js +66 -0
- package/dist/src/generated/typus_stake_pool/admin.d.ts +144 -10
- package/dist/src/generated/typus_stake_pool/admin.js +132 -49
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +9 -9
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +13 -16
- package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/object.js +13 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +31 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +5 -3
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +5 -8
- package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +180 -79
- package/dist/src/generated/typus_stake_pool/stake_pool.js +446 -414
- package/dist/src/generated/utils/index.d.ts +4 -23
- package/dist/src/generated/utils/index.js +34 -54
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.js +35 -13
- package/dist/src/user/order.d.ts +0 -4
- package/dist/src/user/order.js +31 -74
- package/dist/src/user/orderWithBidReceipt.d.ts +0 -3
- package/dist/src/user/orderWithBidReceipt.js +24 -45
- package/dist/src/user/tlp.d.ts +0 -5
- package/dist/src/user/tlp.js +28 -73
- package/package.json +47 -40
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* logic for creating, updating, and closing them. All of the functions are inner
|
|
7
7
|
* package functions used in `trading.move`.
|
|
8
8
|
*/
|
|
9
|
-
import { MoveStruct, type RawTransactionArgument } from
|
|
10
|
-
import { type Transaction } from
|
|
9
|
+
import { MoveStruct, type RawTransactionArgument } from '../utils/index';
|
|
10
|
+
import { type Transaction } from '@mysten/sui/transactions';
|
|
11
11
|
export declare const OptionCollateralInfo: MoveStruct<{
|
|
12
12
|
/** The index of the portfolio. */
|
|
13
13
|
index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
@@ -23,7 +23,9 @@ export declare const OptionCollateralInfo: MoveStruct<{
|
|
|
23
23
|
}, string>;
|
|
24
24
|
}, "@typus/perp::position::OptionCollateralInfo">;
|
|
25
25
|
export declare const Position: MoveStruct<{
|
|
26
|
-
id:
|
|
26
|
+
id: MoveStruct<{
|
|
27
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
28
|
+
}, "0x2::object::UID">;
|
|
27
29
|
/** The timestamp when the position was created. */
|
|
28
30
|
create_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
29
31
|
/** The timestamp when the position was last updated. */
|
|
@@ -109,7 +111,9 @@ export declare const Position: MoveStruct<{
|
|
|
109
111
|
}, string>;
|
|
110
112
|
}, "@typus/perp::position::Position">;
|
|
111
113
|
export declare const TradingOrder: MoveStruct<{
|
|
112
|
-
id:
|
|
114
|
+
id: MoveStruct<{
|
|
115
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
116
|
+
}, "0x2::object::UID">;
|
|
113
117
|
/** The timestamp when the order was created. */
|
|
114
118
|
create_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
115
119
|
/** The ID of the order. */
|
|
@@ -265,7 +269,9 @@ export interface CreateOrderOptions {
|
|
|
265
269
|
orderId: RawTransactionArgument<number | bigint>,
|
|
266
270
|
oraclePrice: RawTransactionArgument<number | bigint>
|
|
267
271
|
];
|
|
268
|
-
typeArguments: [
|
|
272
|
+
typeArguments: [
|
|
273
|
+
string
|
|
274
|
+
];
|
|
269
275
|
}
|
|
270
276
|
/** Creates a new trading order. WARNING: no authority check inside */
|
|
271
277
|
export declare function createOrder(options: CreateOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -275,8 +281,13 @@ export interface RemoveOrderArguments {
|
|
|
275
281
|
}
|
|
276
282
|
export interface RemoveOrderOptions {
|
|
277
283
|
package?: string;
|
|
278
|
-
arguments: RemoveOrderArguments | [
|
|
279
|
-
|
|
284
|
+
arguments: RemoveOrderArguments | [
|
|
285
|
+
version: RawTransactionArgument<string>,
|
|
286
|
+
order: RawTransactionArgument<string>
|
|
287
|
+
];
|
|
288
|
+
typeArguments: [
|
|
289
|
+
string
|
|
290
|
+
];
|
|
280
291
|
}
|
|
281
292
|
/** Removes a trading order. WARNING: no authority check inside */
|
|
282
293
|
export declare function removeOrder(options: RemoveOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -310,7 +321,9 @@ export interface ManagerCreateReduceOnlyOrderOptions {
|
|
|
310
321
|
orderId: RawTransactionArgument<number | bigint>,
|
|
311
322
|
oraclePrice: RawTransactionArgument<number | bigint>
|
|
312
323
|
];
|
|
313
|
-
typeArguments: [
|
|
324
|
+
typeArguments: [
|
|
325
|
+
string
|
|
326
|
+
];
|
|
314
327
|
}
|
|
315
328
|
/** [Authorized Function] Creates a reduce-only order by the manager. */
|
|
316
329
|
export declare function managerCreateReduceOnlyOrder(options: ManagerCreateReduceOnlyOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -332,7 +345,9 @@ export interface IncreaseCollateralOptions {
|
|
|
332
345
|
tradingPairOraclePrice: RawTransactionArgument<number | bigint>,
|
|
333
346
|
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>
|
|
334
347
|
];
|
|
335
|
-
typeArguments: [
|
|
348
|
+
typeArguments: [
|
|
349
|
+
string
|
|
350
|
+
];
|
|
336
351
|
}
|
|
337
352
|
/** Increases the collateral of a position. WARNING: no authority check inside */
|
|
338
353
|
export declare function increaseCollateral(options: IncreaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -354,7 +369,9 @@ export interface ReleaseCollateralOptions {
|
|
|
354
369
|
tradingPairOraclePrice: RawTransactionArgument<number | bigint>,
|
|
355
370
|
tradingPairOraclePriceDecimal: RawTransactionArgument<number | bigint>
|
|
356
371
|
];
|
|
357
|
-
typeArguments: [
|
|
372
|
+
typeArguments: [
|
|
373
|
+
string
|
|
374
|
+
];
|
|
358
375
|
}
|
|
359
376
|
/** Releases collateral from a position. WARNING: no authority check inside */
|
|
360
377
|
export declare function releaseCollateral(options: ReleaseCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -364,8 +381,13 @@ export interface RemovePositionArguments {
|
|
|
364
381
|
}
|
|
365
382
|
export interface RemovePositionOptions {
|
|
366
383
|
package?: string;
|
|
367
|
-
arguments: RemovePositionArguments | [
|
|
368
|
-
|
|
384
|
+
arguments: RemovePositionArguments | [
|
|
385
|
+
version: RawTransactionArgument<string>,
|
|
386
|
+
position: RawTransactionArgument<string>
|
|
387
|
+
];
|
|
388
|
+
typeArguments: [
|
|
389
|
+
string
|
|
390
|
+
];
|
|
369
391
|
}
|
|
370
392
|
/** Removes a position. WARNING: no authority check inside */
|
|
371
393
|
export declare function removePosition(options: RemovePositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -386,6 +408,8 @@ export interface OrderFilledArguments {
|
|
|
386
408
|
cumulativeFundingRateIndexSign: RawTransactionArgument<boolean>;
|
|
387
409
|
cumulativeFundingRateIndex: RawTransactionArgument<number | bigint>;
|
|
388
410
|
tradingFeeMbp: RawTransactionArgument<number | bigint>;
|
|
411
|
+
referralCodeId: RawTransactionArgument<number | bigint>;
|
|
412
|
+
feeReductionBp: RawTransactionArgument<number | bigint>;
|
|
389
413
|
}
|
|
390
414
|
export interface OrderFilledOptions {
|
|
391
415
|
package?: string;
|
|
@@ -405,9 +429,13 @@ export interface OrderFilledOptions {
|
|
|
405
429
|
cumulativeBorrowRate: RawTransactionArgument<number | bigint>,
|
|
406
430
|
cumulativeFundingRateIndexSign: RawTransactionArgument<boolean>,
|
|
407
431
|
cumulativeFundingRateIndex: RawTransactionArgument<number | bigint>,
|
|
408
|
-
tradingFeeMbp: RawTransactionArgument<number | bigint
|
|
432
|
+
tradingFeeMbp: RawTransactionArgument<number | bigint>,
|
|
433
|
+
referralCodeId: RawTransactionArgument<number | bigint>,
|
|
434
|
+
feeReductionBp: RawTransactionArgument<number | bigint>
|
|
435
|
+
];
|
|
436
|
+
typeArguments: [
|
|
437
|
+
string
|
|
409
438
|
];
|
|
410
|
-
typeArguments: [string];
|
|
411
439
|
}
|
|
412
440
|
/** Handles a filled order. WARNING: no authority check inside */
|
|
413
441
|
export declare function orderFilled(options: OrderFilledOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -435,7 +463,9 @@ export interface RealizePositionPnlAndFeeOptions {
|
|
|
435
463
|
collateralOraclePrice: RawTransactionArgument<number | bigint>,
|
|
436
464
|
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>
|
|
437
465
|
];
|
|
438
|
-
typeArguments: [
|
|
466
|
+
typeArguments: [
|
|
467
|
+
string
|
|
468
|
+
];
|
|
439
469
|
}
|
|
440
470
|
/** Realizes the PnL and fees of a position. WARNING: no authority check inside */
|
|
441
471
|
export declare function realizePositionPnlAndFee(options: RealizePositionPnlAndFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -453,7 +483,9 @@ export interface RealizeFundingFeeOptions {
|
|
|
453
483
|
collateralOraclePrice: RawTransactionArgument<number | bigint>,
|
|
454
484
|
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>
|
|
455
485
|
];
|
|
456
|
-
typeArguments: [
|
|
486
|
+
typeArguments: [
|
|
487
|
+
string
|
|
488
|
+
];
|
|
457
489
|
}
|
|
458
490
|
/** Realizes the funding fee of a position. WARNING: no authority check inside */
|
|
459
491
|
export declare function realizeFundingFee(options: RealizeFundingFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -463,7 +495,10 @@ export interface CheckOrderFilledArguments {
|
|
|
463
495
|
}
|
|
464
496
|
export interface CheckOrderFilledOptions {
|
|
465
497
|
package?: string;
|
|
466
|
-
arguments: CheckOrderFilledArguments | [
|
|
498
|
+
arguments: CheckOrderFilledArguments | [
|
|
499
|
+
order: RawTransactionArgument<string>,
|
|
500
|
+
oraclePrice: RawTransactionArgument<number | bigint>
|
|
501
|
+
];
|
|
467
502
|
}
|
|
468
503
|
export declare function checkOrderFilled(options: CheckOrderFilledOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
469
504
|
export interface CalculatePeriodBorrowCostArguments {
|
|
@@ -624,7 +659,10 @@ export interface RemovePositionWithBidReceiptsArguments {
|
|
|
624
659
|
}
|
|
625
660
|
export interface RemovePositionWithBidReceiptsOptions {
|
|
626
661
|
package?: string;
|
|
627
|
-
arguments: RemovePositionWithBidReceiptsArguments | [
|
|
662
|
+
arguments: RemovePositionWithBidReceiptsArguments | [
|
|
663
|
+
version: RawTransactionArgument<string>,
|
|
664
|
+
position: RawTransactionArgument<string>
|
|
665
|
+
];
|
|
628
666
|
}
|
|
629
667
|
export declare function removePositionWithBidReceipts(options: RemovePositionWithBidReceiptsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
630
668
|
export interface OrderFilledWithBidReceiptsCollateralArguments {
|
|
@@ -635,8 +673,7 @@ export interface OrderFilledWithBidReceiptsCollateralArguments {
|
|
|
635
673
|
competitionConfig: RawTransactionArgument<string>;
|
|
636
674
|
liquidityPool: RawTransactionArgument<string>;
|
|
637
675
|
dovRegistry: RawTransactionArgument<string>;
|
|
638
|
-
|
|
639
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
676
|
+
oracleV2: RawTransactionArgument<string>;
|
|
640
677
|
order: RawTransactionArgument<string>;
|
|
641
678
|
originalPosition: RawTransactionArgument<string | null>;
|
|
642
679
|
nextPositionId: RawTransactionArgument<number | bigint>;
|
|
@@ -648,6 +685,8 @@ export interface OrderFilledWithBidReceiptsCollateralArguments {
|
|
|
648
685
|
cumulativeFundingRateIndexSign: RawTransactionArgument<boolean>;
|
|
649
686
|
cumulativeFundingRateIndex: RawTransactionArgument<number | bigint>;
|
|
650
687
|
tradingFeeMbp: RawTransactionArgument<number | bigint>;
|
|
688
|
+
referralCodeId: RawTransactionArgument<number | bigint>;
|
|
689
|
+
feeReductionBp: RawTransactionArgument<number | bigint>;
|
|
651
690
|
}
|
|
652
691
|
export interface OrderFilledWithBidReceiptsCollateralOptions {
|
|
653
692
|
package?: string;
|
|
@@ -659,8 +698,7 @@ export interface OrderFilledWithBidReceiptsCollateralOptions {
|
|
|
659
698
|
competitionConfig: RawTransactionArgument<string>,
|
|
660
699
|
liquidityPool: RawTransactionArgument<string>,
|
|
661
700
|
dovRegistry: RawTransactionArgument<string>,
|
|
662
|
-
|
|
663
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
701
|
+
oracleV2: RawTransactionArgument<string>,
|
|
664
702
|
order: RawTransactionArgument<string>,
|
|
665
703
|
originalPosition: RawTransactionArgument<string | null>,
|
|
666
704
|
nextPositionId: RawTransactionArgument<number | bigint>,
|
|
@@ -671,15 +709,19 @@ export interface OrderFilledWithBidReceiptsCollateralOptions {
|
|
|
671
709
|
cumulativeBorrowRate: RawTransactionArgument<number | bigint>,
|
|
672
710
|
cumulativeFundingRateIndexSign: RawTransactionArgument<boolean>,
|
|
673
711
|
cumulativeFundingRateIndex: RawTransactionArgument<number | bigint>,
|
|
674
|
-
tradingFeeMbp: RawTransactionArgument<number | bigint
|
|
712
|
+
tradingFeeMbp: RawTransactionArgument<number | bigint>,
|
|
713
|
+
referralCodeId: RawTransactionArgument<number | bigint>,
|
|
714
|
+
feeReductionBp: RawTransactionArgument<number | bigint>
|
|
715
|
+
];
|
|
716
|
+
typeArguments: [
|
|
717
|
+
string,
|
|
718
|
+
string
|
|
675
719
|
];
|
|
676
|
-
typeArguments: [string, string];
|
|
677
720
|
}
|
|
678
721
|
export declare function orderFilledWithBidReceiptsCollateral(options: OrderFilledWithBidReceiptsCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
679
722
|
export interface CheckOptionCollateralPositionLiquidatedArguments {
|
|
680
723
|
dovRegistry: RawTransactionArgument<string>;
|
|
681
|
-
|
|
682
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
724
|
+
oracleV2: RawTransactionArgument<string>;
|
|
683
725
|
position: RawTransactionArgument<string>;
|
|
684
726
|
collateralOraclePrice: RawTransactionArgument<number | bigint>;
|
|
685
727
|
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>;
|
|
@@ -695,8 +737,7 @@ export interface CheckOptionCollateralPositionLiquidatedOptions {
|
|
|
695
737
|
package?: string;
|
|
696
738
|
arguments: CheckOptionCollateralPositionLiquidatedArguments | [
|
|
697
739
|
dovRegistry: RawTransactionArgument<string>,
|
|
698
|
-
|
|
699
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
740
|
+
oracleV2: RawTransactionArgument<string>,
|
|
700
741
|
position: RawTransactionArgument<string>,
|
|
701
742
|
collateralOraclePrice: RawTransactionArgument<number | bigint>,
|
|
702
743
|
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>,
|
|
@@ -708,7 +749,9 @@ export interface CheckOptionCollateralPositionLiquidatedOptions {
|
|
|
708
749
|
cumulativeFundingRateIndexSign: RawTransactionArgument<boolean>,
|
|
709
750
|
cumulativeFundingRateIndex: RawTransactionArgument<number | bigint>
|
|
710
751
|
];
|
|
711
|
-
typeArguments: [
|
|
752
|
+
typeArguments: [
|
|
753
|
+
string
|
|
754
|
+
];
|
|
712
755
|
}
|
|
713
756
|
export declare function checkOptionCollateralPositionLiquidated(options: CheckOptionCollateralPositionLiquidatedOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
714
757
|
export interface AddPositionLinkedOrderInfoArguments {
|
|
@@ -732,7 +775,10 @@ export interface RemovePositionLinkedOrderInfoArguments {
|
|
|
732
775
|
}
|
|
733
776
|
export interface RemovePositionLinkedOrderInfoOptions {
|
|
734
777
|
package?: string;
|
|
735
|
-
arguments: RemovePositionLinkedOrderInfoArguments | [
|
|
778
|
+
arguments: RemovePositionLinkedOrderInfoArguments | [
|
|
779
|
+
position: RawTransactionArgument<string>,
|
|
780
|
+
linkedOrderId: RawTransactionArgument<number | bigint>
|
|
781
|
+
];
|
|
736
782
|
}
|
|
737
783
|
/** Removes linked order info from a position. WARNING: no authority check inside */
|
|
738
784
|
export declare function removePositionLinkedOrderInfo(options: RemovePositionLinkedOrderInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -766,19 +812,19 @@ export interface UpdatePositionBorrowRateAndFundingRateOptions {
|
|
|
766
812
|
export declare function updatePositionBorrowRateAndFundingRate(options: UpdatePositionBorrowRateAndFundingRateOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
767
813
|
export interface UpdateOptionPositionCollateralAmountArguments {
|
|
768
814
|
dovRegistry: RawTransactionArgument<string>;
|
|
769
|
-
|
|
770
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
815
|
+
oracleV2: RawTransactionArgument<string>;
|
|
771
816
|
position: RawTransactionArgument<string>;
|
|
772
817
|
}
|
|
773
818
|
export interface UpdateOptionPositionCollateralAmountOptions {
|
|
774
819
|
package?: string;
|
|
775
820
|
arguments: UpdateOptionPositionCollateralAmountArguments | [
|
|
776
821
|
dovRegistry: RawTransactionArgument<string>,
|
|
777
|
-
|
|
778
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
822
|
+
oracleV2: RawTransactionArgument<string>,
|
|
779
823
|
position: RawTransactionArgument<string>
|
|
780
824
|
];
|
|
781
|
-
typeArguments: [
|
|
825
|
+
typeArguments: [
|
|
826
|
+
string
|
|
827
|
+
];
|
|
782
828
|
}
|
|
783
829
|
/**
|
|
784
830
|
* Updates the collateral amount of an option position. WARNING: no authority check
|
|
@@ -827,19 +873,19 @@ export interface CalculateFilled_Options {
|
|
|
827
873
|
export declare function calculateFilled_(options: CalculateFilled_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
828
874
|
export interface CalculateIntrinsicValueArguments {
|
|
829
875
|
dovRegistry: RawTransactionArgument<string>;
|
|
830
|
-
|
|
831
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
876
|
+
oracleV2: RawTransactionArgument<string>;
|
|
832
877
|
receipts: RawTransactionArgument<string[]>;
|
|
833
878
|
}
|
|
834
879
|
export interface CalculateIntrinsicValueOptions {
|
|
835
880
|
package?: string;
|
|
836
881
|
arguments: CalculateIntrinsicValueArguments | [
|
|
837
882
|
dovRegistry: RawTransactionArgument<string>,
|
|
838
|
-
|
|
839
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
883
|
+
oracleV2: RawTransactionArgument<string>,
|
|
840
884
|
receipts: RawTransactionArgument<string[]>
|
|
841
885
|
];
|
|
842
|
-
typeArguments: [
|
|
886
|
+
typeArguments: [
|
|
887
|
+
string
|
|
888
|
+
];
|
|
843
889
|
}
|
|
844
890
|
export declare function calculateIntrinsicValue(options: CalculateIntrinsicValueOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
845
891
|
export interface CollateralWithPnlArguments {
|
|
@@ -913,7 +959,9 @@ export interface IsOptionCollateralOrderArguments {
|
|
|
913
959
|
}
|
|
914
960
|
export interface IsOptionCollateralOrderOptions {
|
|
915
961
|
package?: string;
|
|
916
|
-
arguments: IsOptionCollateralOrderArguments | [
|
|
962
|
+
arguments: IsOptionCollateralOrderArguments | [
|
|
963
|
+
order: RawTransactionArgument<string>
|
|
964
|
+
];
|
|
917
965
|
}
|
|
918
966
|
export declare function isOptionCollateralOrder(options: IsOptionCollateralOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
919
967
|
export interface GetOrderCollateralTokenArguments {
|
|
@@ -921,7 +969,9 @@ export interface GetOrderCollateralTokenArguments {
|
|
|
921
969
|
}
|
|
922
970
|
export interface GetOrderCollateralTokenOptions {
|
|
923
971
|
package?: string;
|
|
924
|
-
arguments: GetOrderCollateralTokenArguments | [
|
|
972
|
+
arguments: GetOrderCollateralTokenArguments | [
|
|
973
|
+
order: RawTransactionArgument<string>
|
|
974
|
+
];
|
|
925
975
|
}
|
|
926
976
|
export declare function getOrderCollateralToken(options: GetOrderCollateralTokenOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
927
977
|
export interface GetOrderCollateralTokenDecimalArguments {
|
|
@@ -929,7 +979,9 @@ export interface GetOrderCollateralTokenDecimalArguments {
|
|
|
929
979
|
}
|
|
930
980
|
export interface GetOrderCollateralTokenDecimalOptions {
|
|
931
981
|
package?: string;
|
|
932
|
-
arguments: GetOrderCollateralTokenDecimalArguments | [
|
|
982
|
+
arguments: GetOrderCollateralTokenDecimalArguments | [
|
|
983
|
+
order: RawTransactionArgument<string>
|
|
984
|
+
];
|
|
933
985
|
}
|
|
934
986
|
export declare function getOrderCollateralTokenDecimal(options: GetOrderCollateralTokenDecimalOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
935
987
|
export interface GetOrderTradingSymbolArguments {
|
|
@@ -937,7 +989,9 @@ export interface GetOrderTradingSymbolArguments {
|
|
|
937
989
|
}
|
|
938
990
|
export interface GetOrderTradingSymbolOptions {
|
|
939
991
|
package?: string;
|
|
940
|
-
arguments: GetOrderTradingSymbolArguments | [
|
|
992
|
+
arguments: GetOrderTradingSymbolArguments | [
|
|
993
|
+
order: RawTransactionArgument<string>
|
|
994
|
+
];
|
|
941
995
|
}
|
|
942
996
|
export declare function getOrderTradingSymbol(options: GetOrderTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
943
997
|
export interface GetOrderPriceArguments {
|
|
@@ -945,7 +999,9 @@ export interface GetOrderPriceArguments {
|
|
|
945
999
|
}
|
|
946
1000
|
export interface GetOrderPriceOptions {
|
|
947
1001
|
package?: string;
|
|
948
|
-
arguments: GetOrderPriceArguments | [
|
|
1002
|
+
arguments: GetOrderPriceArguments | [
|
|
1003
|
+
order: RawTransactionArgument<string>
|
|
1004
|
+
];
|
|
949
1005
|
}
|
|
950
1006
|
export declare function getOrderPrice(options: GetOrderPriceOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
951
1007
|
export interface GetOrderUserArguments {
|
|
@@ -953,7 +1009,9 @@ export interface GetOrderUserArguments {
|
|
|
953
1009
|
}
|
|
954
1010
|
export interface GetOrderUserOptions {
|
|
955
1011
|
package?: string;
|
|
956
|
-
arguments: GetOrderUserArguments | [
|
|
1012
|
+
arguments: GetOrderUserArguments | [
|
|
1013
|
+
order: RawTransactionArgument<string>
|
|
1014
|
+
];
|
|
957
1015
|
}
|
|
958
1016
|
export declare function getOrderUser(options: GetOrderUserOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
959
1017
|
export interface GetOrderIdArguments {
|
|
@@ -961,7 +1019,9 @@ export interface GetOrderIdArguments {
|
|
|
961
1019
|
}
|
|
962
1020
|
export interface GetOrderIdOptions {
|
|
963
1021
|
package?: string;
|
|
964
|
-
arguments: GetOrderIdArguments | [
|
|
1022
|
+
arguments: GetOrderIdArguments | [
|
|
1023
|
+
order: RawTransactionArgument<string>
|
|
1024
|
+
];
|
|
965
1025
|
}
|
|
966
1026
|
export declare function getOrderId(options: GetOrderIdOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
967
1027
|
export interface GetOrderSizeArguments {
|
|
@@ -969,7 +1029,9 @@ export interface GetOrderSizeArguments {
|
|
|
969
1029
|
}
|
|
970
1030
|
export interface GetOrderSizeOptions {
|
|
971
1031
|
package?: string;
|
|
972
|
-
arguments: GetOrderSizeArguments | [
|
|
1032
|
+
arguments: GetOrderSizeArguments | [
|
|
1033
|
+
order: RawTransactionArgument<string>
|
|
1034
|
+
];
|
|
973
1035
|
}
|
|
974
1036
|
export declare function getOrderSize(options: GetOrderSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
975
1037
|
export interface GetOrderSideArguments {
|
|
@@ -977,7 +1039,9 @@ export interface GetOrderSideArguments {
|
|
|
977
1039
|
}
|
|
978
1040
|
export interface GetOrderSideOptions {
|
|
979
1041
|
package?: string;
|
|
980
|
-
arguments: GetOrderSideArguments | [
|
|
1042
|
+
arguments: GetOrderSideArguments | [
|
|
1043
|
+
order: RawTransactionArgument<string>
|
|
1044
|
+
];
|
|
981
1045
|
}
|
|
982
1046
|
export declare function getOrderSide(options: GetOrderSideOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
983
1047
|
export interface GetOrderReduceOnlyArguments {
|
|
@@ -985,7 +1049,9 @@ export interface GetOrderReduceOnlyArguments {
|
|
|
985
1049
|
}
|
|
986
1050
|
export interface GetOrderReduceOnlyOptions {
|
|
987
1051
|
package?: string;
|
|
988
|
-
arguments: GetOrderReduceOnlyArguments | [
|
|
1052
|
+
arguments: GetOrderReduceOnlyArguments | [
|
|
1053
|
+
order: RawTransactionArgument<string>
|
|
1054
|
+
];
|
|
989
1055
|
}
|
|
990
1056
|
export declare function getOrderReduceOnly(options: GetOrderReduceOnlyOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
991
1057
|
export interface GetOrderLinkedPositionIdArguments {
|
|
@@ -993,7 +1059,9 @@ export interface GetOrderLinkedPositionIdArguments {
|
|
|
993
1059
|
}
|
|
994
1060
|
export interface GetOrderLinkedPositionIdOptions {
|
|
995
1061
|
package?: string;
|
|
996
|
-
arguments: GetOrderLinkedPositionIdArguments | [
|
|
1062
|
+
arguments: GetOrderLinkedPositionIdArguments | [
|
|
1063
|
+
order: RawTransactionArgument<string>
|
|
1064
|
+
];
|
|
997
1065
|
}
|
|
998
1066
|
export declare function getOrderLinkedPositionId(options: GetOrderLinkedPositionIdOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
999
1067
|
export interface GetOrderTypeTagArguments {
|
|
@@ -1001,7 +1069,9 @@ export interface GetOrderTypeTagArguments {
|
|
|
1001
1069
|
}
|
|
1002
1070
|
export interface GetOrderTypeTagOptions {
|
|
1003
1071
|
package?: string;
|
|
1004
|
-
arguments: GetOrderTypeTagArguments | [
|
|
1072
|
+
arguments: GetOrderTypeTagArguments | [
|
|
1073
|
+
order: RawTransactionArgument<string>
|
|
1074
|
+
];
|
|
1005
1075
|
}
|
|
1006
1076
|
export declare function getOrderTypeTag(options: GetOrderTypeTagOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1007
1077
|
export interface GetOrderCollateralAmountArguments {
|
|
@@ -1009,25 +1079,29 @@ export interface GetOrderCollateralAmountArguments {
|
|
|
1009
1079
|
}
|
|
1010
1080
|
export interface GetOrderCollateralAmountOptions {
|
|
1011
1081
|
package?: string;
|
|
1012
|
-
arguments: GetOrderCollateralAmountArguments | [
|
|
1013
|
-
|
|
1082
|
+
arguments: GetOrderCollateralAmountArguments | [
|
|
1083
|
+
order: RawTransactionArgument<string>
|
|
1084
|
+
];
|
|
1085
|
+
typeArguments: [
|
|
1086
|
+
string
|
|
1087
|
+
];
|
|
1014
1088
|
}
|
|
1015
1089
|
export declare function getOrderCollateralAmount(options: GetOrderCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1016
1090
|
export interface GetOptionCollateralOrderCollateralAmountArguments {
|
|
1017
1091
|
dovRegistry: RawTransactionArgument<string>;
|
|
1018
|
-
|
|
1019
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1092
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1020
1093
|
order: RawTransactionArgument<string>;
|
|
1021
1094
|
}
|
|
1022
1095
|
export interface GetOptionCollateralOrderCollateralAmountOptions {
|
|
1023
1096
|
package?: string;
|
|
1024
1097
|
arguments: GetOptionCollateralOrderCollateralAmountArguments | [
|
|
1025
1098
|
dovRegistry: RawTransactionArgument<string>,
|
|
1026
|
-
|
|
1027
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1099
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1028
1100
|
order: RawTransactionArgument<string>
|
|
1029
1101
|
];
|
|
1030
|
-
typeArguments: [
|
|
1102
|
+
typeArguments: [
|
|
1103
|
+
string
|
|
1104
|
+
];
|
|
1031
1105
|
}
|
|
1032
1106
|
export declare function getOptionCollateralOrderCollateralAmount(options: GetOptionCollateralOrderCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1033
1107
|
export interface CalculateTradingFeeArguments {
|
|
@@ -1073,7 +1147,9 @@ export interface IsOptionCollateralPositionArguments {
|
|
|
1073
1147
|
}
|
|
1074
1148
|
export interface IsOptionCollateralPositionOptions {
|
|
1075
1149
|
package?: string;
|
|
1076
|
-
arguments: IsOptionCollateralPositionArguments | [
|
|
1150
|
+
arguments: IsOptionCollateralPositionArguments | [
|
|
1151
|
+
position: RawTransactionArgument<string>
|
|
1152
|
+
];
|
|
1077
1153
|
}
|
|
1078
1154
|
export declare function isOptionCollateralPosition(options: IsOptionCollateralPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1079
1155
|
export interface EmitRealizedFundingEventArguments {
|
|
@@ -1100,30 +1176,14 @@ export interface EmitRealizedFundingEventOptions {
|
|
|
1100
1176
|
];
|
|
1101
1177
|
}
|
|
1102
1178
|
export declare function emitRealizedFundingEvent(options: EmitRealizedFundingEventOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1103
|
-
export interface CheckPositionUpdateTimestampArguments {
|
|
1104
|
-
position: RawTransactionArgument<string>;
|
|
1105
|
-
thresholdTsMs: RawTransactionArgument<number | bigint>;
|
|
1106
|
-
}
|
|
1107
|
-
export interface CheckPositionUpdateTimestampOptions {
|
|
1108
|
-
package?: string;
|
|
1109
|
-
arguments: CheckPositionUpdateTimestampArguments | [position: RawTransactionArgument<string>, thresholdTsMs: RawTransactionArgument<number | bigint>];
|
|
1110
|
-
}
|
|
1111
|
-
export declare function checkPositionUpdateTimestamp(options: CheckPositionUpdateTimestampOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1112
|
-
export interface CheckPositionUpdateTimestamp_Arguments {
|
|
1113
|
-
position: RawTransactionArgument<string>;
|
|
1114
|
-
thresholdTsMs: RawTransactionArgument<number | bigint>;
|
|
1115
|
-
}
|
|
1116
|
-
export interface CheckPositionUpdateTimestamp_Options {
|
|
1117
|
-
package?: string;
|
|
1118
|
-
arguments: CheckPositionUpdateTimestamp_Arguments | [position: RawTransactionArgument<string>, thresholdTsMs: RawTransactionArgument<number | bigint>];
|
|
1119
|
-
}
|
|
1120
|
-
export declare function checkPositionUpdateTimestamp_(options: CheckPositionUpdateTimestamp_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1121
1179
|
export interface GetPositionIdArguments {
|
|
1122
1180
|
position: RawTransactionArgument<string>;
|
|
1123
1181
|
}
|
|
1124
1182
|
export interface GetPositionIdOptions {
|
|
1125
1183
|
package?: string;
|
|
1126
|
-
arguments: GetPositionIdArguments | [
|
|
1184
|
+
arguments: GetPositionIdArguments | [
|
|
1185
|
+
position: RawTransactionArgument<string>
|
|
1186
|
+
];
|
|
1127
1187
|
}
|
|
1128
1188
|
export declare function getPositionId(options: GetPositionIdOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1129
1189
|
export interface GetPositionSizeArguments {
|
|
@@ -1131,7 +1191,9 @@ export interface GetPositionSizeArguments {
|
|
|
1131
1191
|
}
|
|
1132
1192
|
export interface GetPositionSizeOptions {
|
|
1133
1193
|
package?: string;
|
|
1134
|
-
arguments: GetPositionSizeArguments | [
|
|
1194
|
+
arguments: GetPositionSizeArguments | [
|
|
1195
|
+
position: RawTransactionArgument<string>
|
|
1196
|
+
];
|
|
1135
1197
|
}
|
|
1136
1198
|
export declare function getPositionSize(options: GetPositionSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1137
1199
|
export interface GetPositionSideArguments {
|
|
@@ -1139,7 +1201,9 @@ export interface GetPositionSideArguments {
|
|
|
1139
1201
|
}
|
|
1140
1202
|
export interface GetPositionSideOptions {
|
|
1141
1203
|
package?: string;
|
|
1142
|
-
arguments: GetPositionSideArguments | [
|
|
1204
|
+
arguments: GetPositionSideArguments | [
|
|
1205
|
+
position: RawTransactionArgument<string>
|
|
1206
|
+
];
|
|
1143
1207
|
}
|
|
1144
1208
|
export declare function getPositionSide(options: GetPositionSideOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1145
1209
|
export interface GetPositionUserArguments {
|
|
@@ -1147,7 +1211,9 @@ export interface GetPositionUserArguments {
|
|
|
1147
1211
|
}
|
|
1148
1212
|
export interface GetPositionUserOptions {
|
|
1149
1213
|
package?: string;
|
|
1150
|
-
arguments: GetPositionUserArguments | [
|
|
1214
|
+
arguments: GetPositionUserArguments | [
|
|
1215
|
+
position: RawTransactionArgument<string>
|
|
1216
|
+
];
|
|
1151
1217
|
}
|
|
1152
1218
|
export declare function getPositionUser(options: GetPositionUserOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1153
1219
|
export interface GetPositionSymbolArguments {
|
|
@@ -1155,7 +1221,9 @@ export interface GetPositionSymbolArguments {
|
|
|
1155
1221
|
}
|
|
1156
1222
|
export interface GetPositionSymbolOptions {
|
|
1157
1223
|
package?: string;
|
|
1158
|
-
arguments: GetPositionSymbolArguments | [
|
|
1224
|
+
arguments: GetPositionSymbolArguments | [
|
|
1225
|
+
position: RawTransactionArgument<string>
|
|
1226
|
+
];
|
|
1159
1227
|
}
|
|
1160
1228
|
export declare function getPositionSymbol(options: GetPositionSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1161
1229
|
export interface GetPositionOptionCollateralInfoArguments {
|
|
@@ -1163,7 +1231,9 @@ export interface GetPositionOptionCollateralInfoArguments {
|
|
|
1163
1231
|
}
|
|
1164
1232
|
export interface GetPositionOptionCollateralInfoOptions {
|
|
1165
1233
|
package?: string;
|
|
1166
|
-
arguments: GetPositionOptionCollateralInfoArguments | [
|
|
1234
|
+
arguments: GetPositionOptionCollateralInfoArguments | [
|
|
1235
|
+
position: RawTransactionArgument<string>
|
|
1236
|
+
];
|
|
1167
1237
|
}
|
|
1168
1238
|
export declare function getPositionOptionCollateralInfo(options: GetPositionOptionCollateralInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1169
1239
|
export interface GetReserveAmountArguments {
|
|
@@ -1171,7 +1241,9 @@ export interface GetReserveAmountArguments {
|
|
|
1171
1241
|
}
|
|
1172
1242
|
export interface GetReserveAmountOptions {
|
|
1173
1243
|
package?: string;
|
|
1174
|
-
arguments: GetReserveAmountArguments | [
|
|
1244
|
+
arguments: GetReserveAmountArguments | [
|
|
1245
|
+
position: RawTransactionArgument<string>
|
|
1246
|
+
];
|
|
1175
1247
|
}
|
|
1176
1248
|
export declare function getReserveAmount(options: GetReserveAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1177
1249
|
export interface GetPositionSizeDecimalArguments {
|
|
@@ -1179,7 +1251,9 @@ export interface GetPositionSizeDecimalArguments {
|
|
|
1179
1251
|
}
|
|
1180
1252
|
export interface GetPositionSizeDecimalOptions {
|
|
1181
1253
|
package?: string;
|
|
1182
|
-
arguments: GetPositionSizeDecimalArguments | [
|
|
1254
|
+
arguments: GetPositionSizeDecimalArguments | [
|
|
1255
|
+
position: RawTransactionArgument<string>
|
|
1256
|
+
];
|
|
1183
1257
|
}
|
|
1184
1258
|
export declare function getPositionSizeDecimal(options: GetPositionSizeDecimalOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1185
1259
|
export interface GetPositionCollateralTokenDecimalArguments {
|
|
@@ -1187,7 +1261,9 @@ export interface GetPositionCollateralTokenDecimalArguments {
|
|
|
1187
1261
|
}
|
|
1188
1262
|
export interface GetPositionCollateralTokenDecimalOptions {
|
|
1189
1263
|
package?: string;
|
|
1190
|
-
arguments: GetPositionCollateralTokenDecimalArguments | [
|
|
1264
|
+
arguments: GetPositionCollateralTokenDecimalArguments | [
|
|
1265
|
+
position: RawTransactionArgument<string>
|
|
1266
|
+
];
|
|
1191
1267
|
}
|
|
1192
1268
|
export declare function getPositionCollateralTokenDecimal(options: GetPositionCollateralTokenDecimalOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1193
1269
|
export interface CalculateUnrealizedCostArguments {
|
|
@@ -1195,7 +1271,9 @@ export interface CalculateUnrealizedCostArguments {
|
|
|
1195
1271
|
}
|
|
1196
1272
|
export interface CalculateUnrealizedCostOptions {
|
|
1197
1273
|
package?: string;
|
|
1198
|
-
arguments: CalculateUnrealizedCostArguments | [
|
|
1274
|
+
arguments: CalculateUnrealizedCostArguments | [
|
|
1275
|
+
position: RawTransactionArgument<string>
|
|
1276
|
+
];
|
|
1199
1277
|
}
|
|
1200
1278
|
export declare function calculateUnrealizedCost(options: CalculateUnrealizedCostOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1201
1279
|
export interface GetPositionLinkedOrderIdsArguments {
|
|
@@ -1203,7 +1281,9 @@ export interface GetPositionLinkedOrderIdsArguments {
|
|
|
1203
1281
|
}
|
|
1204
1282
|
export interface GetPositionLinkedOrderIdsOptions {
|
|
1205
1283
|
package?: string;
|
|
1206
|
-
arguments: GetPositionLinkedOrderIdsArguments | [
|
|
1284
|
+
arguments: GetPositionLinkedOrderIdsArguments | [
|
|
1285
|
+
position: RawTransactionArgument<string>
|
|
1286
|
+
];
|
|
1207
1287
|
}
|
|
1208
1288
|
export declare function getPositionLinkedOrderIds(options: GetPositionLinkedOrderIdsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1209
1289
|
export interface GetPositionCollateralTokenTypeArguments {
|
|
@@ -1211,7 +1291,9 @@ export interface GetPositionCollateralTokenTypeArguments {
|
|
|
1211
1291
|
}
|
|
1212
1292
|
export interface GetPositionCollateralTokenTypeOptions {
|
|
1213
1293
|
package?: string;
|
|
1214
|
-
arguments: GetPositionCollateralTokenTypeArguments | [
|
|
1294
|
+
arguments: GetPositionCollateralTokenTypeArguments | [
|
|
1295
|
+
position: RawTransactionArgument<string>
|
|
1296
|
+
];
|
|
1215
1297
|
}
|
|
1216
1298
|
export declare function getPositionCollateralTokenType(options: GetPositionCollateralTokenTypeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1217
1299
|
export interface GetPositionCollateralAmountArguments {
|
|
@@ -1219,25 +1301,29 @@ export interface GetPositionCollateralAmountArguments {
|
|
|
1219
1301
|
}
|
|
1220
1302
|
export interface GetPositionCollateralAmountOptions {
|
|
1221
1303
|
package?: string;
|
|
1222
|
-
arguments: GetPositionCollateralAmountArguments | [
|
|
1223
|
-
|
|
1304
|
+
arguments: GetPositionCollateralAmountArguments | [
|
|
1305
|
+
position: RawTransactionArgument<string>
|
|
1306
|
+
];
|
|
1307
|
+
typeArguments: [
|
|
1308
|
+
string
|
|
1309
|
+
];
|
|
1224
1310
|
}
|
|
1225
1311
|
export declare function getPositionCollateralAmount(options: GetPositionCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1226
1312
|
export interface GetOptionPositionCollateralAmountArguments {
|
|
1227
1313
|
dovRegistry: RawTransactionArgument<string>;
|
|
1228
|
-
|
|
1229
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1314
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1230
1315
|
position: RawTransactionArgument<string>;
|
|
1231
1316
|
}
|
|
1232
1317
|
export interface GetOptionPositionCollateralAmountOptions {
|
|
1233
1318
|
package?: string;
|
|
1234
1319
|
arguments: GetOptionPositionCollateralAmountArguments | [
|
|
1235
1320
|
dovRegistry: RawTransactionArgument<string>,
|
|
1236
|
-
|
|
1237
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1321
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1238
1322
|
position: RawTransactionArgument<string>
|
|
1239
1323
|
];
|
|
1240
|
-
typeArguments: [
|
|
1324
|
+
typeArguments: [
|
|
1325
|
+
string
|
|
1326
|
+
];
|
|
1241
1327
|
}
|
|
1242
1328
|
export declare function getOptionPositionCollateralAmount(options: GetOptionPositionCollateralAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1243
1329
|
export interface OptionPositionBidReceiptsExpiredArguments {
|
|
@@ -1246,28 +1332,32 @@ export interface OptionPositionBidReceiptsExpiredArguments {
|
|
|
1246
1332
|
}
|
|
1247
1333
|
export interface OptionPositionBidReceiptsExpiredOptions {
|
|
1248
1334
|
package?: string;
|
|
1249
|
-
arguments: OptionPositionBidReceiptsExpiredArguments | [
|
|
1335
|
+
arguments: OptionPositionBidReceiptsExpiredArguments | [
|
|
1336
|
+
dovRegistry: RawTransactionArgument<string>,
|
|
1337
|
+
position: RawTransactionArgument<string>
|
|
1338
|
+
];
|
|
1250
1339
|
}
|
|
1251
1340
|
export declare function optionPositionBidReceiptsExpired(options: OptionPositionBidReceiptsExpiredOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1252
1341
|
export interface GetOptionPositionExerciseValueArguments {
|
|
1253
1342
|
dovRegistry: RawTransactionArgument<string>;
|
|
1254
|
-
|
|
1255
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1343
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1256
1344
|
position: RawTransactionArgument<string>;
|
|
1257
1345
|
}
|
|
1258
1346
|
export interface GetOptionPositionExerciseValueOptions {
|
|
1259
1347
|
package?: string;
|
|
1260
1348
|
arguments: GetOptionPositionExerciseValueArguments | [
|
|
1261
1349
|
dovRegistry: RawTransactionArgument<string>,
|
|
1262
|
-
|
|
1263
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1350
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1264
1351
|
position: RawTransactionArgument<string>
|
|
1265
1352
|
];
|
|
1266
|
-
typeArguments: [
|
|
1353
|
+
typeArguments: [
|
|
1354
|
+
string
|
|
1355
|
+
];
|
|
1267
1356
|
}
|
|
1268
1357
|
export declare function getOptionPositionExerciseValue(options: GetOptionPositionExerciseValueOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1269
1358
|
export interface GetMaxOrderTypeTagOptions {
|
|
1270
1359
|
package?: string;
|
|
1271
|
-
arguments?: [
|
|
1360
|
+
arguments?: [
|
|
1361
|
+
];
|
|
1272
1362
|
}
|
|
1273
1363
|
export declare function getMaxOrderTypeTag(options?: GetMaxOrderTypeTagOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|