@typus/typus-perp-sdk 1.1.32-codegen-exp7 → 1.1.32-codegen-exp9
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.js +34 -3
- package/dist/src/fetch.d.ts +2 -2
- package/dist/src/fetch.js +42 -40
- package/dist/src/generated/typus_perp/admin.d.ts +158 -1
- package/dist/src/generated/typus_perp/admin.js +211 -0
- package/dist/src/generated/typus_perp/competition.d.ts +39 -1
- package/dist/src/generated/typus_perp/competition.js +46 -0
- package/dist/src/generated/typus_perp/deps/sui/table.d.ts +31 -0
- package/dist/src/generated/typus_perp/{tlp.js → deps/sui/table.js} +28 -13
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +0 -8
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +3 -11
- package/dist/src/generated/typus_perp/error.d.ts +443 -0
- package/dist/src/generated/typus_perp/error.js +788 -0
- package/dist/src/generated/typus_perp/escrow.d.ts +51 -1
- package/dist/src/generated/typus_perp/escrow.js +63 -0
- package/dist/src/generated/typus_perp/lp_pool.d.ts +2 -476
- package/dist/src/generated/typus_perp/lp_pool.js +19 -492
- package/dist/src/generated/typus_perp/position.d.ts +1016 -1
- package/dist/src/generated/typus_perp/position.js +1187 -0
- package/dist/src/generated/typus_perp/profit_vault.d.ts +272 -0
- package/dist/src/generated/typus_perp/profit_vault.js +321 -0
- package/dist/src/generated/typus_perp/symbol.d.ts +30 -1
- package/dist/src/generated/typus_perp/symbol.js +42 -0
- package/dist/src/generated/typus_perp/trading.d.ts +56 -418
- package/dist/src/generated/typus_perp/trading.js +124 -552
- package/dist/src/generated/typus_perp/treasury_caps.d.ts +32 -1
- package/dist/src/generated/typus_perp/treasury_caps.js +40 -0
- package/dist/src/generated/typus_perp/user_account.d.ts +107 -1
- package/dist/src/generated/typus_perp/user_account.js +149 -0
- package/dist/src/generated/typus_stake_pool/admin.d.ts +9 -25
- package/dist/src/generated/typus_stake_pool/admin.js +11 -36
- package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +56 -4
- package/dist/src/generated/typus_stake_pool/stake_pool.js +68 -4
- package/dist/src/generated/utils/index.js +3 -0
- package/dist/src/grpc/graphql.d.ts +6 -6
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.js +13 -19
- package/dist/src/user/order.js +1 -6
- package/dist/src/user/orderWithBidReceipt.js +3 -3
- package/package.json +2 -2
- package/dist/src/generated/typus_perp/lending.d.ts +0 -47
- package/dist/src/generated/typus_perp/lending.js +0 -50
- package/dist/src/generated/typus_perp/tlp.d.ts +0 -13
|
@@ -590,26 +590,6 @@ export declare const ManagerCloseOptionPositionEvent: MoveStruct<{
|
|
|
590
590
|
length: number;
|
|
591
591
|
}, string>;
|
|
592
592
|
}, "@typus/perp::trading::ManagerCloseOptionPositionEvent">;
|
|
593
|
-
export declare const ManagerUpdateProcessStatusAfterPositionEvent: MoveStruct<{
|
|
594
|
-
market_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
595
|
-
pool_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
596
|
-
liquidity_token: MoveStruct<{
|
|
597
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
598
|
-
}, "std::type_name::TypeName">;
|
|
599
|
-
trading_base_token: MoveStruct<{
|
|
600
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
601
|
-
}, "std::type_name::TypeName">;
|
|
602
|
-
}, "@typus/perp::trading::ManagerUpdateProcessStatusAfterPositionEvent">;
|
|
603
|
-
export declare const ManagerUpdateProcessStatusAfterOrderEvent: MoveStruct<{
|
|
604
|
-
market_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
605
|
-
pool_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
606
|
-
liquidity_token: MoveStruct<{
|
|
607
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
608
|
-
}, "std::type_name::TypeName">;
|
|
609
|
-
trading_base_token: MoveStruct<{
|
|
610
|
-
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
611
|
-
}, "std::type_name::TypeName">;
|
|
612
|
-
}, "@typus/perp::trading::ManagerUpdateProcessStatusAfterOrderEvent">;
|
|
613
593
|
export declare const LiquidationInfo: MoveStruct<{
|
|
614
594
|
position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
615
595
|
dov_index: import("@mysten/sui/bcs").BcsType<string | null, string | number | bigint | null | undefined, "Option<u64>">;
|
|
@@ -741,6 +721,7 @@ export interface AddTradingSymbolArguments {
|
|
|
741
721
|
optionMaintenanceMarginRateBp: RawTransactionArgument<number | bigint>;
|
|
742
722
|
optionTradingFeeConfig: RawTransactionArgument<number | bigint[]>;
|
|
743
723
|
tradingFeeFormulaVersion: RawTransactionArgument<number | bigint>;
|
|
724
|
+
profitVaultFlag: RawTransactionArgument<number | bigint>;
|
|
744
725
|
}
|
|
745
726
|
export interface AddTradingSymbolOptions {
|
|
746
727
|
package?: string;
|
|
@@ -763,7 +744,8 @@ export interface AddTradingSymbolOptions {
|
|
|
763
744
|
maintenanceMarginRateBp: RawTransactionArgument<number | bigint>,
|
|
764
745
|
optionMaintenanceMarginRateBp: RawTransactionArgument<number | bigint>,
|
|
765
746
|
optionTradingFeeConfig: RawTransactionArgument<number | bigint[]>,
|
|
766
|
-
tradingFeeFormulaVersion: RawTransactionArgument<number | bigint
|
|
747
|
+
tradingFeeFormulaVersion: RawTransactionArgument<number | bigint>,
|
|
748
|
+
profitVaultFlag: RawTransactionArgument<number | bigint>
|
|
767
749
|
];
|
|
768
750
|
typeArguments: [string];
|
|
769
751
|
}
|
|
@@ -805,6 +787,7 @@ export interface UpdateMarketConfigArguments {
|
|
|
805
787
|
optionCollateralMaintenanceMarginRateBp: RawTransactionArgument<number | bigint | null>;
|
|
806
788
|
optionCollateralTradingFeeConfig: RawTransactionArgument<number | bigint[] | null>;
|
|
807
789
|
tradingFeeFormulaVersion: RawTransactionArgument<number | bigint | null>;
|
|
790
|
+
profitVaultFlag: RawTransactionArgument<number | bigint | null>;
|
|
808
791
|
}
|
|
809
792
|
export interface UpdateMarketConfigOptions {
|
|
810
793
|
package?: string;
|
|
@@ -826,7 +809,8 @@ export interface UpdateMarketConfigOptions {
|
|
|
826
809
|
maintenanceMarginRateBp: RawTransactionArgument<number | bigint | null>,
|
|
827
810
|
optionCollateralMaintenanceMarginRateBp: RawTransactionArgument<number | bigint | null>,
|
|
828
811
|
optionCollateralTradingFeeConfig: RawTransactionArgument<number | bigint[] | null>,
|
|
829
|
-
tradingFeeFormulaVersion: RawTransactionArgument<number | bigint | null
|
|
812
|
+
tradingFeeFormulaVersion: RawTransactionArgument<number | bigint | null>,
|
|
813
|
+
profitVaultFlag: RawTransactionArgument<number | bigint | null>
|
|
830
814
|
];
|
|
831
815
|
typeArguments: [string];
|
|
832
816
|
}
|
|
@@ -910,7 +894,7 @@ export interface RemoveTradingSymbolOptions {
|
|
|
910
894
|
}
|
|
911
895
|
/** [Authorized Function] Removes a trading symbol from a market. */
|
|
912
896
|
export declare function removeTradingSymbol(options: RemoveTradingSymbolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
913
|
-
export interface
|
|
897
|
+
export interface CreateTradingOrderArguments {
|
|
914
898
|
version: RawTransactionArgument<string>;
|
|
915
899
|
registry: RawTransactionArgument<string>;
|
|
916
900
|
poolRegistry: RawTransactionArgument<string>;
|
|
@@ -918,11 +902,6 @@ export interface CreateTradingOrderV2Arguments {
|
|
|
918
902
|
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
919
903
|
marketIndex: RawTransactionArgument<number | bigint>;
|
|
920
904
|
poolIndex: RawTransactionArgument<number | bigint>;
|
|
921
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
922
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
923
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
924
|
-
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
925
|
-
competitionConfig: RawTransactionArgument<string>;
|
|
926
905
|
linkedPositionId: RawTransactionArgument<number | bigint | null>;
|
|
927
906
|
collateral: RawTransactionArgument<string>;
|
|
928
907
|
reduceOnly: RawTransactionArgument<boolean>;
|
|
@@ -931,9 +910,9 @@ export interface CreateTradingOrderV2Arguments {
|
|
|
931
910
|
size: RawTransactionArgument<number | bigint>;
|
|
932
911
|
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
933
912
|
}
|
|
934
|
-
export interface
|
|
913
|
+
export interface CreateTradingOrderOptions {
|
|
935
914
|
package?: string;
|
|
936
|
-
arguments:
|
|
915
|
+
arguments: CreateTradingOrderArguments | [
|
|
937
916
|
version: RawTransactionArgument<string>,
|
|
938
917
|
registry: RawTransactionArgument<string>,
|
|
939
918
|
poolRegistry: RawTransactionArgument<string>,
|
|
@@ -941,11 +920,6 @@ export interface CreateTradingOrderV2Options {
|
|
|
941
920
|
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
942
921
|
marketIndex: RawTransactionArgument<number | bigint>,
|
|
943
922
|
poolIndex: RawTransactionArgument<number | bigint>,
|
|
944
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
945
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
946
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
947
|
-
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
948
|
-
competitionConfig: RawTransactionArgument<string>,
|
|
949
923
|
linkedPositionId: RawTransactionArgument<number | bigint | null>,
|
|
950
924
|
collateral: RawTransactionArgument<string>,
|
|
951
925
|
reduceOnly: RawTransactionArgument<boolean>,
|
|
@@ -957,7 +931,7 @@ export interface CreateTradingOrderV2Options {
|
|
|
957
931
|
typeArguments: [string, string];
|
|
958
932
|
}
|
|
959
933
|
/** [User Function] Creates a new trading order. */
|
|
960
|
-
export declare function
|
|
934
|
+
export declare function createTradingOrder(options: CreateTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
961
935
|
export interface CancelTradingOrderArguments {
|
|
962
936
|
version: RawTransactionArgument<string>;
|
|
963
937
|
registry: RawTransactionArgument<string>;
|
|
@@ -1068,7 +1042,7 @@ export interface CollectPositionFundingFeeOptions {
|
|
|
1068
1042
|
}
|
|
1069
1043
|
/** Collects the funding fee for a position. Safe with `check_position_user_matched` */
|
|
1070
1044
|
export declare function collectPositionFundingFee(options: CollectPositionFundingFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1071
|
-
export interface
|
|
1045
|
+
export interface CreateTradingOrderWithBidReceiptArguments {
|
|
1072
1046
|
version: RawTransactionArgument<string>;
|
|
1073
1047
|
registry: RawTransactionArgument<string>;
|
|
1074
1048
|
poolRegistry: RawTransactionArgument<string>;
|
|
@@ -1085,9 +1059,9 @@ export interface CreateTradingOrderWithBidReceiptV3Arguments {
|
|
|
1085
1059
|
collateralBidReceipt: RawTransactionArgument<string>;
|
|
1086
1060
|
isLong: RawTransactionArgument<boolean>;
|
|
1087
1061
|
}
|
|
1088
|
-
export interface
|
|
1062
|
+
export interface CreateTradingOrderWithBidReceiptOptions {
|
|
1089
1063
|
package?: string;
|
|
1090
|
-
arguments:
|
|
1064
|
+
arguments: CreateTradingOrderWithBidReceiptArguments | [
|
|
1091
1065
|
version: RawTransactionArgument<string>,
|
|
1092
1066
|
registry: RawTransactionArgument<string>,
|
|
1093
1067
|
poolRegistry: RawTransactionArgument<string>,
|
|
@@ -1107,8 +1081,8 @@ export interface CreateTradingOrderWithBidReceiptV3Options {
|
|
|
1107
1081
|
typeArguments: [string, string, string];
|
|
1108
1082
|
}
|
|
1109
1083
|
/** [User Function] Creates a new trading order with a bid receipt as collateral. */
|
|
1110
|
-
export declare function
|
|
1111
|
-
export interface
|
|
1084
|
+
export declare function createTradingOrderWithBidReceipt(options: CreateTradingOrderWithBidReceiptOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1085
|
+
export interface ReduceOptionCollateralPositionSizeArguments {
|
|
1112
1086
|
version: RawTransactionArgument<string>;
|
|
1113
1087
|
registry: RawTransactionArgument<string>;
|
|
1114
1088
|
poolRegistry: RawTransactionArgument<string>;
|
|
@@ -1125,9 +1099,9 @@ export interface ReduceOptionCollateralPositionSizeV2Arguments {
|
|
|
1125
1099
|
positionId: RawTransactionArgument<number | bigint>;
|
|
1126
1100
|
orderSize: RawTransactionArgument<number | bigint | null>;
|
|
1127
1101
|
}
|
|
1128
|
-
export interface
|
|
1102
|
+
export interface ReduceOptionCollateralPositionSizeOptions {
|
|
1129
1103
|
package?: string;
|
|
1130
|
-
arguments:
|
|
1104
|
+
arguments: ReduceOptionCollateralPositionSizeArguments | [
|
|
1131
1105
|
version: RawTransactionArgument<string>,
|
|
1132
1106
|
registry: RawTransactionArgument<string>,
|
|
1133
1107
|
poolRegistry: RawTransactionArgument<string>,
|
|
@@ -1147,11 +1121,12 @@ export interface ReduceOptionCollateralPositionSizeV2Options {
|
|
|
1147
1121
|
typeArguments: [string, string, string];
|
|
1148
1122
|
}
|
|
1149
1123
|
/** [User Function] Reduces the size of an option collateral position. */
|
|
1150
|
-
export declare function
|
|
1151
|
-
export interface
|
|
1124
|
+
export declare function reduceOptionCollateralPositionSize(options: ReduceOptionCollateralPositionSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1125
|
+
export interface MatchTradingOrderArguments {
|
|
1152
1126
|
version: RawTransactionArgument<string>;
|
|
1153
1127
|
registry: RawTransactionArgument<string>;
|
|
1154
1128
|
poolRegistry: RawTransactionArgument<string>;
|
|
1129
|
+
profitVault: RawTransactionArgument<string>;
|
|
1155
1130
|
typusOracleCToken: RawTransactionArgument<string>;
|
|
1156
1131
|
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1157
1132
|
marketIndex: RawTransactionArgument<number | bigint>;
|
|
@@ -1165,12 +1140,13 @@ export interface MatchTradingOrderV2Arguments {
|
|
|
1165
1140
|
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
1166
1141
|
maxOperationCount: RawTransactionArgument<number | bigint>;
|
|
1167
1142
|
}
|
|
1168
|
-
export interface
|
|
1143
|
+
export interface MatchTradingOrderOptions {
|
|
1169
1144
|
package?: string;
|
|
1170
|
-
arguments:
|
|
1145
|
+
arguments: MatchTradingOrderArguments | [
|
|
1171
1146
|
version: RawTransactionArgument<string>,
|
|
1172
1147
|
registry: RawTransactionArgument<string>,
|
|
1173
1148
|
poolRegistry: RawTransactionArgument<string>,
|
|
1149
|
+
profitVault: RawTransactionArgument<string>,
|
|
1174
1150
|
typusOracleCToken: RawTransactionArgument<string>,
|
|
1175
1151
|
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1176
1152
|
marketIndex: RawTransactionArgument<number | bigint>,
|
|
@@ -1187,7 +1163,7 @@ export interface MatchTradingOrderV2Options {
|
|
|
1187
1163
|
typeArguments: [string, string];
|
|
1188
1164
|
}
|
|
1189
1165
|
/** [Authorized Function] Matches trading orders. */
|
|
1190
|
-
export declare function
|
|
1166
|
+
export declare function matchTradingOrder(options: MatchTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1191
1167
|
export interface ManagerCancelOrderByOpenInterestLimitArguments {
|
|
1192
1168
|
version: RawTransactionArgument<string>;
|
|
1193
1169
|
registry: RawTransactionArgument<string>;
|
|
@@ -1236,10 +1212,11 @@ export interface CancelLinkedOrdersOptions {
|
|
|
1236
1212
|
}
|
|
1237
1213
|
/** [Authorized Function] Cancels linked orders. */
|
|
1238
1214
|
export declare function cancelLinkedOrders(options: CancelLinkedOrdersOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1239
|
-
export interface
|
|
1215
|
+
export interface ManagerReducePositionArguments {
|
|
1240
1216
|
version: RawTransactionArgument<string>;
|
|
1241
1217
|
registry: RawTransactionArgument<string>;
|
|
1242
1218
|
poolRegistry: RawTransactionArgument<string>;
|
|
1219
|
+
profitVault: RawTransactionArgument<string>;
|
|
1243
1220
|
typusOracleCToken: RawTransactionArgument<string>;
|
|
1244
1221
|
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1245
1222
|
marketIndex: RawTransactionArgument<number | bigint>;
|
|
@@ -1252,12 +1229,13 @@ export interface ManagerReducePositionV2Arguments {
|
|
|
1252
1229
|
positionId: RawTransactionArgument<number | bigint>;
|
|
1253
1230
|
reducedRatioBp: RawTransactionArgument<number | bigint>;
|
|
1254
1231
|
}
|
|
1255
|
-
export interface
|
|
1232
|
+
export interface ManagerReducePositionOptions {
|
|
1256
1233
|
package?: string;
|
|
1257
|
-
arguments:
|
|
1234
|
+
arguments: ManagerReducePositionArguments | [
|
|
1258
1235
|
version: RawTransactionArgument<string>,
|
|
1259
1236
|
registry: RawTransactionArgument<string>,
|
|
1260
1237
|
poolRegistry: RawTransactionArgument<string>,
|
|
1238
|
+
profitVault: RawTransactionArgument<string>,
|
|
1261
1239
|
typusOracleCToken: RawTransactionArgument<string>,
|
|
1262
1240
|
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1263
1241
|
marketIndex: RawTransactionArgument<number | bigint>,
|
|
@@ -1273,7 +1251,7 @@ export interface ManagerReducePositionV2Options {
|
|
|
1273
1251
|
typeArguments: [string, string];
|
|
1274
1252
|
}
|
|
1275
1253
|
/** [Authorized Function] Reduces a position by the manager. */
|
|
1276
|
-
export declare function
|
|
1254
|
+
export declare function managerReducePosition(options: ManagerReducePositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1277
1255
|
export interface ManagerClearPositionArguments {
|
|
1278
1256
|
version: RawTransactionArgument<string>;
|
|
1279
1257
|
registry: RawTransactionArgument<string>;
|
|
@@ -1295,7 +1273,7 @@ export interface ManagerClearPositionOptions {
|
|
|
1295
1273
|
typeArguments: [string, string];
|
|
1296
1274
|
}
|
|
1297
1275
|
export declare function managerClearPosition(options: ManagerClearPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1298
|
-
export interface
|
|
1276
|
+
export interface ManagerCloseOptionPositionArguments {
|
|
1299
1277
|
version: RawTransactionArgument<string>;
|
|
1300
1278
|
registry: RawTransactionArgument<string>;
|
|
1301
1279
|
poolRegistry: RawTransactionArgument<string>;
|
|
@@ -1311,9 +1289,9 @@ export interface ManagerCloseOptionPositionV2Arguments {
|
|
|
1311
1289
|
competitionConfig: RawTransactionArgument<string>;
|
|
1312
1290
|
positionId: RawTransactionArgument<number | bigint>;
|
|
1313
1291
|
}
|
|
1314
|
-
export interface
|
|
1292
|
+
export interface ManagerCloseOptionPositionOptions {
|
|
1315
1293
|
package?: string;
|
|
1316
|
-
arguments:
|
|
1294
|
+
arguments: ManagerCloseOptionPositionArguments | [
|
|
1317
1295
|
version: RawTransactionArgument<string>,
|
|
1318
1296
|
registry: RawTransactionArgument<string>,
|
|
1319
1297
|
poolRegistry: RawTransactionArgument<string>,
|
|
@@ -1332,75 +1310,7 @@ export interface ManagerCloseOptionPositionV2Options {
|
|
|
1332
1310
|
typeArguments: [string, string, string];
|
|
1333
1311
|
}
|
|
1334
1312
|
/** [Authorized Function] Closes an option position by the manager. */
|
|
1335
|
-
export declare function
|
|
1336
|
-
export interface ManagerRemovePositionV2Arguments {
|
|
1337
|
-
version: RawTransactionArgument<string>;
|
|
1338
|
-
registry: RawTransactionArgument<string>;
|
|
1339
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1340
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
1341
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
1342
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
1343
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1344
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1345
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
1346
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
1347
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
1348
|
-
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
1349
|
-
competitionConfig: RawTransactionArgument<string>;
|
|
1350
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
1351
|
-
isOptionPosition: RawTransactionArgument<boolean>;
|
|
1352
|
-
process: RawTransactionArgument<string>;
|
|
1353
|
-
}
|
|
1354
|
-
export interface ManagerRemovePositionV2Options {
|
|
1355
|
-
package?: string;
|
|
1356
|
-
arguments: ManagerRemovePositionV2Arguments | [
|
|
1357
|
-
version: RawTransactionArgument<string>,
|
|
1358
|
-
registry: RawTransactionArgument<string>,
|
|
1359
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1360
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
1361
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
1362
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
1363
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1364
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1365
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
1366
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
1367
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
1368
|
-
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
1369
|
-
competitionConfig: RawTransactionArgument<string>,
|
|
1370
|
-
positionId: RawTransactionArgument<number | bigint>,
|
|
1371
|
-
isOptionPosition: RawTransactionArgument<boolean>,
|
|
1372
|
-
process: RawTransactionArgument<string>
|
|
1373
|
-
];
|
|
1374
|
-
typeArguments: [string, string, string];
|
|
1375
|
-
}
|
|
1376
|
-
export declare function managerRemovePositionV2(options: ManagerRemovePositionV2Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1377
|
-
export interface ManagerRemoveOrderArguments {
|
|
1378
|
-
version: RawTransactionArgument<string>;
|
|
1379
|
-
registry: RawTransactionArgument<string>;
|
|
1380
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
1381
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1382
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
1383
|
-
orderUser: RawTransactionArgument<string>;
|
|
1384
|
-
orderId: RawTransactionArgument<number | bigint>;
|
|
1385
|
-
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
1386
|
-
process: RawTransactionArgument<string>;
|
|
1387
|
-
}
|
|
1388
|
-
export interface ManagerRemoveOrderOptions {
|
|
1389
|
-
package?: string;
|
|
1390
|
-
arguments: ManagerRemoveOrderArguments | [
|
|
1391
|
-
version: RawTransactionArgument<string>,
|
|
1392
|
-
registry: RawTransactionArgument<string>,
|
|
1393
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
1394
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1395
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
1396
|
-
orderUser: RawTransactionArgument<string>,
|
|
1397
|
-
orderId: RawTransactionArgument<number | bigint>,
|
|
1398
|
-
triggerPrice: RawTransactionArgument<number | bigint>,
|
|
1399
|
-
process: RawTransactionArgument<string>
|
|
1400
|
-
];
|
|
1401
|
-
typeArguments: [string, string];
|
|
1402
|
-
}
|
|
1403
|
-
export declare function managerRemoveOrder(options: ManagerRemoveOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1313
|
+
export declare function managerCloseOptionPosition(options: ManagerCloseOptionPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1404
1314
|
export interface GetTradingFeeConfigArguments {
|
|
1405
1315
|
marketConfig: RawTransactionArgument<string>;
|
|
1406
1316
|
isOptionPosition: RawTransactionArgument<boolean>;
|
|
@@ -1582,6 +1492,26 @@ export interface AddDelegateUserOptions {
|
|
|
1582
1492
|
}
|
|
1583
1493
|
/** [User Function] Adds a delegate user to a user account. Safe with `check_owner` */
|
|
1584
1494
|
export declare function addDelegateUser(options: AddDelegateUserOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1495
|
+
export interface RemoveDelegateUserArguments {
|
|
1496
|
+
version: RawTransactionArgument<string>;
|
|
1497
|
+
registry: RawTransactionArgument<string>;
|
|
1498
|
+
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1499
|
+
user: RawTransactionArgument<string>;
|
|
1500
|
+
}
|
|
1501
|
+
export interface RemoveDelegateUserOptions {
|
|
1502
|
+
package?: string;
|
|
1503
|
+
arguments: RemoveDelegateUserArguments | [
|
|
1504
|
+
version: RawTransactionArgument<string>,
|
|
1505
|
+
registry: RawTransactionArgument<string>,
|
|
1506
|
+
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1507
|
+
user: RawTransactionArgument<string>
|
|
1508
|
+
];
|
|
1509
|
+
}
|
|
1510
|
+
/**
|
|
1511
|
+
* [User Function] Remove a delegate user to a user account. Safe with
|
|
1512
|
+
* `check_owner`
|
|
1513
|
+
*/
|
|
1514
|
+
export declare function removeDelegateUser(options: RemoveDelegateUserOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
1585
1515
|
export interface RemoveUserAccountArguments {
|
|
1586
1516
|
version: RawTransactionArgument<string>;
|
|
1587
1517
|
registry: RawTransactionArgument<string>;
|
|
@@ -1642,6 +1572,7 @@ export interface ExecuteOrder_Arguments {
|
|
|
1642
1572
|
marketIndex: RawTransactionArgument<number | bigint>;
|
|
1643
1573
|
symbolMarket: RawTransactionArgument<string>;
|
|
1644
1574
|
liquidityPool: RawTransactionArgument<string>;
|
|
1575
|
+
profitVault: RawTransactionArgument<string>;
|
|
1645
1576
|
order: RawTransactionArgument<string>;
|
|
1646
1577
|
protocolFeeShareBp: RawTransactionArgument<number | bigint>;
|
|
1647
1578
|
collateralOraclePrice: RawTransactionArgument<number | bigint>;
|
|
@@ -1661,6 +1592,7 @@ export interface ExecuteOrder_Options {
|
|
|
1661
1592
|
marketIndex: RawTransactionArgument<number | bigint>,
|
|
1662
1593
|
symbolMarket: RawTransactionArgument<string>,
|
|
1663
1594
|
liquidityPool: RawTransactionArgument<string>,
|
|
1595
|
+
profitVault: RawTransactionArgument<string>,
|
|
1664
1596
|
order: RawTransactionArgument<string>,
|
|
1665
1597
|
protocolFeeShareBp: RawTransactionArgument<number | bigint>,
|
|
1666
1598
|
collateralOraclePrice: RawTransactionArgument<number | bigint>,
|
|
@@ -2190,297 +2122,3 @@ export interface DeprecatedOptions {
|
|
|
2190
2122
|
arguments?: [];
|
|
2191
2123
|
}
|
|
2192
2124
|
export declare function deprecated(options?: DeprecatedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2193
|
-
export interface CreateTradingOrderArguments {
|
|
2194
|
-
version: RawTransactionArgument<string>;
|
|
2195
|
-
registry: RawTransactionArgument<string>;
|
|
2196
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2197
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2198
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2199
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2200
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2201
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
2202
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
2203
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
2204
|
-
linkedPositionId: RawTransactionArgument<number | bigint | null>;
|
|
2205
|
-
collateral: RawTransactionArgument<string>;
|
|
2206
|
-
reduceOnly: RawTransactionArgument<boolean>;
|
|
2207
|
-
isLong: RawTransactionArgument<boolean>;
|
|
2208
|
-
isStopOrder: RawTransactionArgument<boolean>;
|
|
2209
|
-
size: RawTransactionArgument<number | bigint>;
|
|
2210
|
-
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
2211
|
-
}
|
|
2212
|
-
export interface CreateTradingOrderOptions {
|
|
2213
|
-
package?: string;
|
|
2214
|
-
arguments: CreateTradingOrderArguments | [
|
|
2215
|
-
version: RawTransactionArgument<string>,
|
|
2216
|
-
registry: RawTransactionArgument<string>,
|
|
2217
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2218
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2219
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2220
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2221
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2222
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
2223
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
2224
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
2225
|
-
linkedPositionId: RawTransactionArgument<number | bigint | null>,
|
|
2226
|
-
collateral: RawTransactionArgument<string>,
|
|
2227
|
-
reduceOnly: RawTransactionArgument<boolean>,
|
|
2228
|
-
isLong: RawTransactionArgument<boolean>,
|
|
2229
|
-
isStopOrder: RawTransactionArgument<boolean>,
|
|
2230
|
-
size: RawTransactionArgument<number | bigint>,
|
|
2231
|
-
triggerPrice: RawTransactionArgument<number | bigint>
|
|
2232
|
-
];
|
|
2233
|
-
typeArguments: [string, string];
|
|
2234
|
-
}
|
|
2235
|
-
export declare function createTradingOrder(options: CreateTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2236
|
-
export interface MatchTradingOrderArguments {
|
|
2237
|
-
version: RawTransactionArgument<string>;
|
|
2238
|
-
registry: RawTransactionArgument<string>;
|
|
2239
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2240
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2241
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2242
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2243
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2244
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
2245
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
2246
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
2247
|
-
orderTypeTag: RawTransactionArgument<number>;
|
|
2248
|
-
triggerPrice: RawTransactionArgument<number | bigint>;
|
|
2249
|
-
maxOperationCount: RawTransactionArgument<number | bigint>;
|
|
2250
|
-
}
|
|
2251
|
-
export interface MatchTradingOrderOptions {
|
|
2252
|
-
package?: string;
|
|
2253
|
-
arguments: MatchTradingOrderArguments | [
|
|
2254
|
-
version: RawTransactionArgument<string>,
|
|
2255
|
-
registry: RawTransactionArgument<string>,
|
|
2256
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2257
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2258
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2259
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2260
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2261
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
2262
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
2263
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
2264
|
-
orderTypeTag: RawTransactionArgument<number>,
|
|
2265
|
-
triggerPrice: RawTransactionArgument<number | bigint>,
|
|
2266
|
-
maxOperationCount: RawTransactionArgument<number | bigint>
|
|
2267
|
-
];
|
|
2268
|
-
typeArguments: [string, string];
|
|
2269
|
-
}
|
|
2270
|
-
export declare function matchTradingOrder(options: MatchTradingOrderOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2271
|
-
export interface ManagerReducePositionArguments {
|
|
2272
|
-
version: RawTransactionArgument<string>;
|
|
2273
|
-
registry: RawTransactionArgument<string>;
|
|
2274
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2275
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2276
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2277
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2278
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2279
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
2280
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
2281
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
2282
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
2283
|
-
reducedRatioBp: RawTransactionArgument<number | bigint>;
|
|
2284
|
-
}
|
|
2285
|
-
export interface ManagerReducePositionOptions {
|
|
2286
|
-
package?: string;
|
|
2287
|
-
arguments: ManagerReducePositionArguments | [
|
|
2288
|
-
version: RawTransactionArgument<string>,
|
|
2289
|
-
registry: RawTransactionArgument<string>,
|
|
2290
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2291
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2292
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2293
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2294
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2295
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
2296
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
2297
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
2298
|
-
positionId: RawTransactionArgument<number | bigint>,
|
|
2299
|
-
reducedRatioBp: RawTransactionArgument<number | bigint>
|
|
2300
|
-
];
|
|
2301
|
-
typeArguments: [string, string];
|
|
2302
|
-
}
|
|
2303
|
-
export declare function managerReducePosition(options: ManagerReducePositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2304
|
-
export interface CreateTradingOrderWithBidReceiptArguments {
|
|
2305
|
-
version: RawTransactionArgument<string>;
|
|
2306
|
-
registry: RawTransactionArgument<string>;
|
|
2307
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2308
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
2309
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2310
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2311
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2312
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2313
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
2314
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
2315
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
2316
|
-
collateralBidReceipt: RawTransactionArgument<string>;
|
|
2317
|
-
isLong: RawTransactionArgument<boolean>;
|
|
2318
|
-
user: RawTransactionArgument<string>;
|
|
2319
|
-
}
|
|
2320
|
-
export interface CreateTradingOrderWithBidReceiptOptions {
|
|
2321
|
-
package?: string;
|
|
2322
|
-
arguments: CreateTradingOrderWithBidReceiptArguments | [
|
|
2323
|
-
version: RawTransactionArgument<string>,
|
|
2324
|
-
registry: RawTransactionArgument<string>,
|
|
2325
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2326
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
2327
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2328
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2329
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2330
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2331
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
2332
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
2333
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
2334
|
-
collateralBidReceipt: RawTransactionArgument<string>,
|
|
2335
|
-
isLong: RawTransactionArgument<boolean>,
|
|
2336
|
-
user: RawTransactionArgument<string>
|
|
2337
|
-
];
|
|
2338
|
-
typeArguments: [string, string, string];
|
|
2339
|
-
}
|
|
2340
|
-
export declare function createTradingOrderWithBidReceipt(options: CreateTradingOrderWithBidReceiptOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2341
|
-
export interface CreateTradingOrderWithBidReceiptV2Arguments {
|
|
2342
|
-
version: RawTransactionArgument<string>;
|
|
2343
|
-
registry: RawTransactionArgument<string>;
|
|
2344
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2345
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
2346
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2347
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2348
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2349
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2350
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
2351
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
2352
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
2353
|
-
tailsStakingRegistry: RawTransactionArgument<string>;
|
|
2354
|
-
competitionConfig: RawTransactionArgument<string>;
|
|
2355
|
-
collateralBidReceipt: RawTransactionArgument<string>;
|
|
2356
|
-
isLong: RawTransactionArgument<boolean>;
|
|
2357
|
-
user: RawTransactionArgument<string>;
|
|
2358
|
-
}
|
|
2359
|
-
export interface CreateTradingOrderWithBidReceiptV2Options {
|
|
2360
|
-
package?: string;
|
|
2361
|
-
arguments: CreateTradingOrderWithBidReceiptV2Arguments | [
|
|
2362
|
-
version: RawTransactionArgument<string>,
|
|
2363
|
-
registry: RawTransactionArgument<string>,
|
|
2364
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2365
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
2366
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2367
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2368
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2369
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2370
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
2371
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
2372
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
2373
|
-
tailsStakingRegistry: RawTransactionArgument<string>,
|
|
2374
|
-
competitionConfig: RawTransactionArgument<string>,
|
|
2375
|
-
collateralBidReceipt: RawTransactionArgument<string>,
|
|
2376
|
-
isLong: RawTransactionArgument<boolean>,
|
|
2377
|
-
user: RawTransactionArgument<string>
|
|
2378
|
-
];
|
|
2379
|
-
typeArguments: [string, string, string];
|
|
2380
|
-
}
|
|
2381
|
-
export declare function createTradingOrderWithBidReceiptV2(options: CreateTradingOrderWithBidReceiptV2Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2382
|
-
export interface ReduceOptionCollateralPositionSizeArguments {
|
|
2383
|
-
version: RawTransactionArgument<string>;
|
|
2384
|
-
registry: RawTransactionArgument<string>;
|
|
2385
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2386
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
2387
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2388
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2389
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2390
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2391
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
2392
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
2393
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
2394
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
2395
|
-
orderSize: RawTransactionArgument<number | bigint | null>;
|
|
2396
|
-
}
|
|
2397
|
-
export interface ReduceOptionCollateralPositionSizeOptions {
|
|
2398
|
-
package?: string;
|
|
2399
|
-
arguments: ReduceOptionCollateralPositionSizeArguments | [
|
|
2400
|
-
version: RawTransactionArgument<string>,
|
|
2401
|
-
registry: RawTransactionArgument<string>,
|
|
2402
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2403
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
2404
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2405
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2406
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2407
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2408
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
2409
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
2410
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
2411
|
-
positionId: RawTransactionArgument<number | bigint>,
|
|
2412
|
-
orderSize: RawTransactionArgument<number | bigint | null>
|
|
2413
|
-
];
|
|
2414
|
-
typeArguments: [string, string, string];
|
|
2415
|
-
}
|
|
2416
|
-
export declare function reduceOptionCollateralPositionSize(options: ReduceOptionCollateralPositionSizeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2417
|
-
export interface ManagerRemovePositionArguments {
|
|
2418
|
-
version: RawTransactionArgument<string>;
|
|
2419
|
-
registry: RawTransactionArgument<string>;
|
|
2420
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2421
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
2422
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2423
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2424
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2425
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2426
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
2427
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
2428
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
2429
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
2430
|
-
isOptionPosition: RawTransactionArgument<boolean>;
|
|
2431
|
-
process: RawTransactionArgument<string>;
|
|
2432
|
-
}
|
|
2433
|
-
export interface ManagerRemovePositionOptions {
|
|
2434
|
-
package?: string;
|
|
2435
|
-
arguments: ManagerRemovePositionArguments | [
|
|
2436
|
-
version: RawTransactionArgument<string>,
|
|
2437
|
-
registry: RawTransactionArgument<string>,
|
|
2438
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2439
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
2440
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2441
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2442
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2443
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2444
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
2445
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
2446
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
2447
|
-
positionId: RawTransactionArgument<number | bigint>,
|
|
2448
|
-
isOptionPosition: RawTransactionArgument<boolean>,
|
|
2449
|
-
process: RawTransactionArgument<string>
|
|
2450
|
-
];
|
|
2451
|
-
typeArguments: [string, string, string];
|
|
2452
|
-
}
|
|
2453
|
-
export declare function managerRemovePosition(options: ManagerRemovePositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
2454
|
-
export interface ManagerCloseOptionPositionArguments {
|
|
2455
|
-
version: RawTransactionArgument<string>;
|
|
2456
|
-
registry: RawTransactionArgument<string>;
|
|
2457
|
-
poolRegistry: RawTransactionArgument<string>;
|
|
2458
|
-
dovRegistry: RawTransactionArgument<string>;
|
|
2459
|
-
typusOracleCToken: RawTransactionArgument<string>;
|
|
2460
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>;
|
|
2461
|
-
marketIndex: RawTransactionArgument<number | bigint>;
|
|
2462
|
-
poolIndex: RawTransactionArgument<number | bigint>;
|
|
2463
|
-
typusEcosystemVersion: RawTransactionArgument<string>;
|
|
2464
|
-
typusUserRegistry: RawTransactionArgument<string>;
|
|
2465
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>;
|
|
2466
|
-
positionId: RawTransactionArgument<number | bigint>;
|
|
2467
|
-
}
|
|
2468
|
-
export interface ManagerCloseOptionPositionOptions {
|
|
2469
|
-
package?: string;
|
|
2470
|
-
arguments: ManagerCloseOptionPositionArguments | [
|
|
2471
|
-
version: RawTransactionArgument<string>,
|
|
2472
|
-
registry: RawTransactionArgument<string>,
|
|
2473
|
-
poolRegistry: RawTransactionArgument<string>,
|
|
2474
|
-
dovRegistry: RawTransactionArgument<string>,
|
|
2475
|
-
typusOracleCToken: RawTransactionArgument<string>,
|
|
2476
|
-
typusOracleTradingSymbol: RawTransactionArgument<string>,
|
|
2477
|
-
marketIndex: RawTransactionArgument<number | bigint>,
|
|
2478
|
-
poolIndex: RawTransactionArgument<number | bigint>,
|
|
2479
|
-
typusEcosystemVersion: RawTransactionArgument<string>,
|
|
2480
|
-
typusUserRegistry: RawTransactionArgument<string>,
|
|
2481
|
-
typusLeaderboardRegistry: RawTransactionArgument<string>,
|
|
2482
|
-
positionId: RawTransactionArgument<number | bigint>
|
|
2483
|
-
];
|
|
2484
|
-
typeArguments: [string, string, string];
|
|
2485
|
-
}
|
|
2486
|
-
export declare function managerCloseOptionPosition(options: ManagerCloseOptionPositionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|