@typus/typus-perp-sdk 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/client.d.ts +22 -3
- package/dist/src/client.js +66 -8
- package/dist/src/fetch.d.ts +61 -20
- package/dist/src/fetch.js +20 -14
- package/dist/src/generated/typus_perp/admin.d.ts +65 -21
- package/dist/src/generated/typus_perp/admin.js +139 -123
- package/dist/src/generated/typus_perp/competition.d.ts +5 -17
- package/dist/src/generated/typus_perp/competition.js +63 -39
- package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +9 -9
- package/dist/src/generated/typus_perp/deps/std/type_name.js +13 -16
- package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +2 -2
- package/dist/src/generated/typus_perp/deps/sui/balance.js +5 -8
- package/dist/src/generated/typus_perp/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_perp/deps/sui/object.js +13 -0
- package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +5 -3
- package/dist/src/generated/typus_perp/deps/sui/object_table.js +40 -9
- package/dist/src/generated/typus_perp/deps/sui/table.d.ts +5 -3
- package/dist/src/generated/typus_perp/deps/sui/table.js +40 -9
- package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +5 -3
- package/dist/src/generated/typus_perp/deps/sui/vec_set.js +5 -8
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +4 -2
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +9 -12
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +12 -6
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +41 -10
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +4 -2
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +40 -9
- package/dist/src/generated/typus_perp/error.d.ts +201 -94
- package/dist/src/generated/typus_perp/error.js +300 -273
- package/dist/src/generated/typus_perp/escrow.d.ts +14 -6
- package/dist/src/generated/typus_perp/escrow.js +38 -37
- package/dist/src/generated/typus_perp/lending.d.ts +1 -1
- package/dist/src/generated/typus_perp/lending.js +3 -3
- package/dist/src/generated/typus_perp/lp_pool.d.ts +438 -392
- package/dist/src/generated/typus_perp/lp_pool.js +987 -934
- package/dist/src/generated/typus_perp/math.d.ts +13 -16
- package/dist/src/generated/typus_perp/math.js +51 -50
- package/dist/src/generated/typus_perp/position.d.ts +194 -106
- package/dist/src/generated/typus_perp/position.js +714 -733
- package/dist/src/generated/typus_perp/profit_vault.d.ts +62 -20
- package/dist/src/generated/typus_perp/profit_vault.js +162 -148
- package/dist/src/generated/typus_perp/symbol.d.ts +12 -5
- package/dist/src/generated/typus_perp/symbol.js +28 -25
- package/dist/src/generated/typus_perp/trading.d.ts +956 -139
- package/dist/src/generated/typus_perp/trading.js +1577 -1151
- package/dist/src/generated/typus_perp/treasury_caps.d.ts +16 -7
- package/dist/src/generated/typus_perp/treasury_caps.js +60 -24
- package/dist/src/generated/typus_perp/user_account.d.ts +40 -0
- package/dist/src/generated/typus_perp/user_account.js +66 -0
- package/dist/src/generated/typus_stake_pool/admin.d.ts +144 -10
- package/dist/src/generated/typus_stake_pool/admin.js +132 -49
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +9 -9
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +13 -16
- package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/object.js +13 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +31 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +5 -3
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +5 -8
- package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +180 -79
- package/dist/src/generated/typus_stake_pool/stake_pool.js +446 -414
- package/dist/src/generated/utils/index.d.ts +4 -23
- package/dist/src/generated/utils/index.js +34 -54
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.js +35 -13
- package/dist/src/user/order.d.ts +0 -4
- package/dist/src/user/order.js +31 -74
- package/dist/src/user/orderWithBidReceipt.d.ts +0 -3
- package/dist/src/user/orderWithBidReceipt.js +24 -45
- package/dist/src/user/tlp.d.ts +0 -5
- package/dist/src/user/tlp.js +28 -73
- package/package.json +42 -40
|
@@ -7,14 +7,18 @@
|
|
|
7
7
|
* configurations. It also contains the entry functions for creating pools, adding
|
|
8
8
|
* liquidity, swapping, and redeeming.
|
|
9
9
|
*/
|
|
10
|
-
import { MoveStruct, type RawTransactionArgument } from
|
|
11
|
-
import { type Transaction } from
|
|
10
|
+
import { MoveStruct, type RawTransactionArgument } from '../utils/index';
|
|
11
|
+
import { type Transaction } from '@mysten/sui/transactions';
|
|
12
12
|
export declare const Registry: MoveStruct<{
|
|
13
|
-
id:
|
|
13
|
+
id: MoveStruct<{
|
|
14
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
15
|
+
}, "0x2::object::UID">;
|
|
14
16
|
/** The number of pools in the registry. */
|
|
15
17
|
num_pool: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
16
18
|
/** The UID of the liquidity pool registry. */
|
|
17
|
-
liquidity_pool_registry:
|
|
19
|
+
liquidity_pool_registry: MoveStruct<{
|
|
20
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
21
|
+
}, "0x2::object::UID">;
|
|
18
22
|
}, "@typus/perp::lp_pool::Registry">;
|
|
19
23
|
export declare const SpotConfig: MoveStruct<{
|
|
20
24
|
/** The minimum deposit amount. */
|
|
@@ -254,10 +258,12 @@ export declare const LiquidityPoolInfo: MoveStruct<{
|
|
|
254
258
|
}, "@typus/perp::lp_pool::LiquidityPoolInfo">;
|
|
255
259
|
export declare const LiquidityPool: MoveStruct<{
|
|
256
260
|
/**
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
id:
|
|
261
|
+
* The UID of the object. Token balances are dynamic fields under this id with
|
|
262
|
+
* TypeName key.
|
|
263
|
+
*/
|
|
264
|
+
id: MoveStruct<{
|
|
265
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
266
|
+
}, "0x2::object::UID">;
|
|
261
267
|
/** The index of the pool. */
|
|
262
268
|
index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
263
269
|
/** The type name of the LP token. */
|
|
@@ -390,7 +396,9 @@ export declare const LiquidityPool: MoveStruct<{
|
|
|
390
396
|
/** A vector of unsettled bid receipts from liquidations. */
|
|
391
397
|
liquidated_unsettled_receipts: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<{
|
|
392
398
|
receipt: {
|
|
393
|
-
id:
|
|
399
|
+
id: {
|
|
400
|
+
id: string;
|
|
401
|
+
};
|
|
394
402
|
vid: string;
|
|
395
403
|
index: string;
|
|
396
404
|
metadata: string;
|
|
@@ -410,7 +418,9 @@ export declare const LiquidityPool: MoveStruct<{
|
|
|
410
418
|
unrealized_liquidator_fee: string;
|
|
411
419
|
}[], Iterable<{
|
|
412
420
|
receipt: Iterable<{
|
|
413
|
-
id:
|
|
421
|
+
id: {
|
|
422
|
+
id: string | Uint8Array<ArrayBufferLike>;
|
|
423
|
+
};
|
|
414
424
|
vid: string | Uint8Array<ArrayBufferLike>;
|
|
415
425
|
index: string | number | bigint;
|
|
416
426
|
metadata: string;
|
|
@@ -450,7 +460,7 @@ export declare const DeactivatingShares: MoveStruct<{
|
|
|
450
460
|
/** The balance of the deactivating shares. */
|
|
451
461
|
balance: MoveStruct<{
|
|
452
462
|
value: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
453
|
-
}, "0x2::balance::Balance
|
|
463
|
+
}, "0x2::balance::Balance">;
|
|
454
464
|
/** The timestamp of the redemption. */
|
|
455
465
|
redeem_ts_ms: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
456
466
|
/** The timestamp when the shares can be unlocked. */
|
|
@@ -459,9 +469,11 @@ export declare const DeactivatingShares: MoveStruct<{
|
|
|
459
469
|
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
460
470
|
length: number;
|
|
461
471
|
}, string>;
|
|
462
|
-
}, "@typus/perp::lp_pool::DeactivatingShares
|
|
472
|
+
}, "@typus/perp::lp_pool::DeactivatingShares">;
|
|
463
473
|
export declare const ManagerDepositReceipt: MoveStruct<{
|
|
464
|
-
id:
|
|
474
|
+
id: MoveStruct<{
|
|
475
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
476
|
+
}, "0x2::object::UID">;
|
|
465
477
|
/** The index of the pool. */
|
|
466
478
|
index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
467
479
|
/** The type name of the token. */
|
|
@@ -830,45 +842,6 @@ export declare const ResumeTokenPoolEvent: MoveStruct<{
|
|
|
830
842
|
length: number;
|
|
831
843
|
}, string>;
|
|
832
844
|
}, "@typus/perp::lp_pool::ResumeTokenPoolEvent">;
|
|
833
|
-
export declare const DepositLendingEvent: MoveStruct<{
|
|
834
|
-
index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
835
|
-
lending_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
836
|
-
c_token_type: MoveStruct<{
|
|
837
|
-
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
838
|
-
}, "std::type_name::TypeName">;
|
|
839
|
-
deposit_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
840
|
-
minted_market_coin_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
841
|
-
latest_lending_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
842
|
-
latest_market_coin_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
843
|
-
latest_reserved_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
844
|
-
latest_liquidity_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
845
|
-
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
846
|
-
length: number;
|
|
847
|
-
}, string>;
|
|
848
|
-
}, "@typus/perp::lp_pool::DepositLendingEvent">;
|
|
849
|
-
export declare const WithdrawLendingEvent: MoveStruct<{
|
|
850
|
-
index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
851
|
-
lending_index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
852
|
-
c_token_type: MoveStruct<{
|
|
853
|
-
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
854
|
-
}, "std::type_name::TypeName">;
|
|
855
|
-
r_token_type: MoveStruct<{
|
|
856
|
-
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
857
|
-
}, "std::type_name::TypeName">;
|
|
858
|
-
withdraw_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
859
|
-
withdrawn_collateral_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
860
|
-
latest_lending_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
861
|
-
latest_market_coin_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
862
|
-
latest_reserved_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
863
|
-
latest_liquidity_amount: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
864
|
-
lending_interest: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
865
|
-
protocol_share: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
866
|
-
lending_reward: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
867
|
-
reward_protocol_share: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
868
|
-
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
869
|
-
length: number;
|
|
870
|
-
}, string>;
|
|
871
|
-
}, "@typus/perp::lp_pool::WithdrawLendingEvent">;
|
|
872
845
|
export declare const ManagerRemoveLiquidityTokenEvent: MoveStruct<{
|
|
873
846
|
index: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
874
847
|
liquidity_token: MoveStruct<{
|
|
@@ -960,9 +933,17 @@ export declare const BurnLpEvent: MoveStruct<{
|
|
|
960
933
|
length: number;
|
|
961
934
|
}, string>;
|
|
962
935
|
}, "@typus/perp::lp_pool::BurnLpEvent">;
|
|
936
|
+
export declare const MigrateLpOracleIdEvent: MoveStruct<{
|
|
937
|
+
sender: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
938
|
+
new_oracle_id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
939
|
+
u64_padding: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string[], Iterable<string | number | bigint> & {
|
|
940
|
+
length: number;
|
|
941
|
+
}, string>;
|
|
942
|
+
}, "@typus/perp::lp_pool::MigrateLpOracleIdEvent">;
|
|
963
943
|
export interface InitOptions {
|
|
964
944
|
package?: string;
|
|
965
|
-
arguments?: [
|
|
945
|
+
arguments?: [
|
|
946
|
+
];
|
|
966
947
|
}
|
|
967
948
|
export declare function init(options?: InitOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
968
949
|
export interface NewLiquidityPoolArguments {
|
|
@@ -979,7 +960,9 @@ export interface NewLiquidityPoolOptions {
|
|
|
979
960
|
lpTokenDecimal: RawTransactionArgument<number | bigint>,
|
|
980
961
|
unlockCountdownTsMs: RawTransactionArgument<number | bigint>
|
|
981
962
|
];
|
|
982
|
-
typeArguments: [
|
|
963
|
+
typeArguments: [
|
|
964
|
+
string
|
|
965
|
+
];
|
|
983
966
|
}
|
|
984
967
|
/** [Authorized Function] Creates a new liquidity pool. */
|
|
985
968
|
export declare function newLiquidityPool(options: NewLiquidityPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -1067,10 +1050,68 @@ export interface AddLiquidityTokenOptions {
|
|
|
1067
1050
|
borrowIntervalTsMs: RawTransactionArgument<number | bigint>,
|
|
1068
1051
|
maxOrderReserveRatioBp: RawTransactionArgument<number | bigint>
|
|
1069
1052
|
];
|
|
1070
|
-
typeArguments: [
|
|
1053
|
+
typeArguments: [
|
|
1054
|
+
string
|
|
1055
|
+
];
|
|
1071
1056
|
}
|
|
1072
|
-
/** [
|
|
1057
|
+
/** [DEPRECATED] Use `add_liquidity_token_v2` with `&OracleV2` instead. */
|
|
1073
1058
|
export declare function addLiquidityToken(options: AddLiquidityTokenOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1059
|
+
export interface AddLiquidityTokenV2Arguments {
|
|
1060
|
+
version: RawTransactionArgument<string>;
|
|
1061
|
+
registry: RawTransactionArgument<string>;
|
|
1062
|
+
index: RawTransactionArgument<number | bigint>;
|
|
1063
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1064
|
+
tokenDecimal: RawTransactionArgument<number | bigint>;
|
|
1065
|
+
targetWeightBp: RawTransactionArgument<number | bigint>;
|
|
1066
|
+
minDeposit: RawTransactionArgument<number | bigint>;
|
|
1067
|
+
maxCapacity: RawTransactionArgument<number | bigint>;
|
|
1068
|
+
basicMintFeeBp: RawTransactionArgument<number | bigint>;
|
|
1069
|
+
additionalMintFeeBp: RawTransactionArgument<number | bigint>;
|
|
1070
|
+
basicBurnFeeBp: RawTransactionArgument<number | bigint>;
|
|
1071
|
+
additionalBurnFeeBp: RawTransactionArgument<number | bigint>;
|
|
1072
|
+
swapFeeBp: RawTransactionArgument<number | bigint>;
|
|
1073
|
+
swapFeeProtocolShareBp: RawTransactionArgument<number | bigint>;
|
|
1074
|
+
lendingProtocolShareBp: RawTransactionArgument<number | bigint>;
|
|
1075
|
+
basicBorrowRate_0: RawTransactionArgument<number | bigint>;
|
|
1076
|
+
basicBorrowRate_1: RawTransactionArgument<number | bigint>;
|
|
1077
|
+
basicBorrowRate_2: RawTransactionArgument<number | bigint>;
|
|
1078
|
+
utilizationThresholdBp_0: RawTransactionArgument<number | bigint>;
|
|
1079
|
+
utilizationThresholdBp_1: RawTransactionArgument<number | bigint>;
|
|
1080
|
+
borrowIntervalTsMs: RawTransactionArgument<number | bigint>;
|
|
1081
|
+
maxOrderReserveRatioBp: RawTransactionArgument<number | bigint>;
|
|
1082
|
+
}
|
|
1083
|
+
export interface AddLiquidityTokenV2Options {
|
|
1084
|
+
package?: string;
|
|
1085
|
+
arguments: AddLiquidityTokenV2Arguments | [
|
|
1086
|
+
version: RawTransactionArgument<string>,
|
|
1087
|
+
registry: RawTransactionArgument<string>,
|
|
1088
|
+
index: RawTransactionArgument<number | bigint>,
|
|
1089
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1090
|
+
tokenDecimal: RawTransactionArgument<number | bigint>,
|
|
1091
|
+
targetWeightBp: RawTransactionArgument<number | bigint>,
|
|
1092
|
+
minDeposit: RawTransactionArgument<number | bigint>,
|
|
1093
|
+
maxCapacity: RawTransactionArgument<number | bigint>,
|
|
1094
|
+
basicMintFeeBp: RawTransactionArgument<number | bigint>,
|
|
1095
|
+
additionalMintFeeBp: RawTransactionArgument<number | bigint>,
|
|
1096
|
+
basicBurnFeeBp: RawTransactionArgument<number | bigint>,
|
|
1097
|
+
additionalBurnFeeBp: RawTransactionArgument<number | bigint>,
|
|
1098
|
+
swapFeeBp: RawTransactionArgument<number | bigint>,
|
|
1099
|
+
swapFeeProtocolShareBp: RawTransactionArgument<number | bigint>,
|
|
1100
|
+
lendingProtocolShareBp: RawTransactionArgument<number | bigint>,
|
|
1101
|
+
basicBorrowRate_0: RawTransactionArgument<number | bigint>,
|
|
1102
|
+
basicBorrowRate_1: RawTransactionArgument<number | bigint>,
|
|
1103
|
+
basicBorrowRate_2: RawTransactionArgument<number | bigint>,
|
|
1104
|
+
utilizationThresholdBp_0: RawTransactionArgument<number | bigint>,
|
|
1105
|
+
utilizationThresholdBp_1: RawTransactionArgument<number | bigint>,
|
|
1106
|
+
borrowIntervalTsMs: RawTransactionArgument<number | bigint>,
|
|
1107
|
+
maxOrderReserveRatioBp: RawTransactionArgument<number | bigint>
|
|
1108
|
+
];
|
|
1109
|
+
typeArguments: [
|
|
1110
|
+
string
|
|
1111
|
+
];
|
|
1112
|
+
}
|
|
1113
|
+
/** [Authorized Function] Adds a new liquidity token to a pool. */
|
|
1114
|
+
export declare function addLiquidityTokenV2(options: AddLiquidityTokenV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1074
1115
|
export interface UpdateSpotConfigArguments {
|
|
1075
1116
|
version: RawTransactionArgument<string>;
|
|
1076
1117
|
registry: RawTransactionArgument<string>;
|
|
@@ -1103,7 +1144,9 @@ export interface UpdateSpotConfigOptions {
|
|
|
1103
1144
|
swapFeeProtocolShareBp: RawTransactionArgument<number | bigint | null>,
|
|
1104
1145
|
lendingProtocolShareBp: RawTransactionArgument<number | bigint | null>
|
|
1105
1146
|
];
|
|
1106
|
-
typeArguments: [
|
|
1147
|
+
typeArguments: [
|
|
1148
|
+
string
|
|
1149
|
+
];
|
|
1107
1150
|
}
|
|
1108
1151
|
/** [Authorized Function] Updates the spot configuration for a token. */
|
|
1109
1152
|
export declare function updateSpotConfig(options: UpdateSpotConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -1121,7 +1164,10 @@ export interface ManagerEmergencyDepositOptions {
|
|
|
1121
1164
|
index: RawTransactionArgument<number | bigint>,
|
|
1122
1165
|
coin: RawTransactionArgument<string>
|
|
1123
1166
|
];
|
|
1124
|
-
typeArguments: [
|
|
1167
|
+
typeArguments: [
|
|
1168
|
+
string,
|
|
1169
|
+
string
|
|
1170
|
+
];
|
|
1125
1171
|
}
|
|
1126
1172
|
/** [Authorized Function] Allows a manager to deposit tokens in an emergency. */
|
|
1127
1173
|
export declare function managerEmergencyDeposit(options: ManagerEmergencyDepositOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -1139,7 +1185,10 @@ export interface ManagerEmergencyWithdrawOptions {
|
|
|
1139
1185
|
index: RawTransactionArgument<number | bigint>,
|
|
1140
1186
|
receipt: RawTransactionArgument<string>
|
|
1141
1187
|
];
|
|
1142
|
-
typeArguments: [
|
|
1188
|
+
typeArguments: [
|
|
1189
|
+
string,
|
|
1190
|
+
string
|
|
1191
|
+
];
|
|
1143
1192
|
}
|
|
1144
1193
|
/** [Authorized Function] Allows a manager to withdraw tokens in an emergency. */
|
|
1145
1194
|
export declare function managerEmergencyWithdraw(options: ManagerEmergencyWithdrawOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -1169,7 +1218,9 @@ export interface UpdateMarginConfigOptions {
|
|
|
1169
1218
|
borrowIntervalTsMs: RawTransactionArgument<number | bigint | null>,
|
|
1170
1219
|
maxOrderReserveRatioBp: RawTransactionArgument<number | bigint | null>
|
|
1171
1220
|
];
|
|
1172
|
-
typeArguments: [
|
|
1221
|
+
typeArguments: [
|
|
1222
|
+
string
|
|
1223
|
+
];
|
|
1173
1224
|
}
|
|
1174
1225
|
/** [Authorized Function] Updates the margin configuration for a token. */
|
|
1175
1226
|
export declare function updateMarginConfig(options: UpdateMarginConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -1191,10 +1242,38 @@ export interface MintLpOptions {
|
|
|
1191
1242
|
index: RawTransactionArgument<number | bigint>,
|
|
1192
1243
|
coin: RawTransactionArgument<string>
|
|
1193
1244
|
];
|
|
1194
|
-
typeArguments: [
|
|
1245
|
+
typeArguments: [
|
|
1246
|
+
string,
|
|
1247
|
+
string
|
|
1248
|
+
];
|
|
1195
1249
|
}
|
|
1196
|
-
/** [
|
|
1250
|
+
/** [DEPRECATED] Use `mint_lp_v2` with `&OracleV2` instead. */
|
|
1197
1251
|
export declare function mintLp(options: MintLpOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1252
|
+
export interface MintLpV2Arguments {
|
|
1253
|
+
version: RawTransactionArgument<string>;
|
|
1254
|
+
registry: RawTransactionArgument<string>;
|
|
1255
|
+
treasuryCaps: RawTransactionArgument<string>;
|
|
1256
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1257
|
+
index: RawTransactionArgument<number | bigint>;
|
|
1258
|
+
coin: RawTransactionArgument<string>;
|
|
1259
|
+
}
|
|
1260
|
+
export interface MintLpV2Options {
|
|
1261
|
+
package?: string;
|
|
1262
|
+
arguments: MintLpV2Arguments | [
|
|
1263
|
+
version: RawTransactionArgument<string>,
|
|
1264
|
+
registry: RawTransactionArgument<string>,
|
|
1265
|
+
treasuryCaps: RawTransactionArgument<string>,
|
|
1266
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1267
|
+
index: RawTransactionArgument<number | bigint>,
|
|
1268
|
+
coin: RawTransactionArgument<string>
|
|
1269
|
+
];
|
|
1270
|
+
typeArguments: [
|
|
1271
|
+
string,
|
|
1272
|
+
string
|
|
1273
|
+
];
|
|
1274
|
+
}
|
|
1275
|
+
/** [User Function] Mints LP tokens. */
|
|
1276
|
+
export declare function mintLpV2(options: MintLpV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1198
1277
|
export interface UpdateBorrowInfoArguments {
|
|
1199
1278
|
version: RawTransactionArgument<string>;
|
|
1200
1279
|
registry: RawTransactionArgument<string>;
|
|
@@ -1230,10 +1309,38 @@ export interface SwapOptions {
|
|
|
1230
1309
|
fromCoin: RawTransactionArgument<string>,
|
|
1231
1310
|
minToAmount: RawTransactionArgument<number | bigint>
|
|
1232
1311
|
];
|
|
1233
|
-
typeArguments: [
|
|
1312
|
+
typeArguments: [
|
|
1313
|
+
string,
|
|
1314
|
+
string
|
|
1315
|
+
];
|
|
1234
1316
|
}
|
|
1235
|
-
/** [
|
|
1317
|
+
/** [DEPRECATED] Use `swap_v2` with `&OracleV2` instead. */
|
|
1236
1318
|
export declare function swap(options: SwapOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1319
|
+
export interface SwapV2Arguments {
|
|
1320
|
+
version: RawTransactionArgument<string>;
|
|
1321
|
+
registry: RawTransactionArgument<string>;
|
|
1322
|
+
index: RawTransactionArgument<number | bigint>;
|
|
1323
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1324
|
+
fromCoin: RawTransactionArgument<string>;
|
|
1325
|
+
minToAmount: RawTransactionArgument<number | bigint>;
|
|
1326
|
+
}
|
|
1327
|
+
export interface SwapV2Options {
|
|
1328
|
+
package?: string;
|
|
1329
|
+
arguments: SwapV2Arguments | [
|
|
1330
|
+
version: RawTransactionArgument<string>,
|
|
1331
|
+
registry: RawTransactionArgument<string>,
|
|
1332
|
+
index: RawTransactionArgument<number | bigint>,
|
|
1333
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1334
|
+
fromCoin: RawTransactionArgument<string>,
|
|
1335
|
+
minToAmount: RawTransactionArgument<number | bigint>
|
|
1336
|
+
];
|
|
1337
|
+
typeArguments: [
|
|
1338
|
+
string,
|
|
1339
|
+
string
|
|
1340
|
+
];
|
|
1341
|
+
}
|
|
1342
|
+
/** [User Function] Swaps one token for another. */
|
|
1343
|
+
export declare function swapV2(options: SwapV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1237
1344
|
export interface RedeemArguments {
|
|
1238
1345
|
version: RawTransactionArgument<string>;
|
|
1239
1346
|
registry: RawTransactionArgument<string>;
|
|
@@ -1248,7 +1355,9 @@ export interface RedeemOptions {
|
|
|
1248
1355
|
index: RawTransactionArgument<number | bigint>,
|
|
1249
1356
|
balance: RawTransactionArgument<string>
|
|
1250
1357
|
];
|
|
1251
|
-
typeArguments: [
|
|
1358
|
+
typeArguments: [
|
|
1359
|
+
string
|
|
1360
|
+
];
|
|
1252
1361
|
}
|
|
1253
1362
|
/** [User Function] Redeems LP tokens for underlying assets. */
|
|
1254
1363
|
export declare function redeem(options: RedeemOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -1268,10 +1377,36 @@ export interface ClaimOptions {
|
|
|
1268
1377
|
treasuryCaps: RawTransactionArgument<string>,
|
|
1269
1378
|
oracle: RawTransactionArgument<string>
|
|
1270
1379
|
];
|
|
1271
|
-
typeArguments: [
|
|
1380
|
+
typeArguments: [
|
|
1381
|
+
string,
|
|
1382
|
+
string
|
|
1383
|
+
];
|
|
1272
1384
|
}
|
|
1273
|
-
/** [
|
|
1385
|
+
/** [DEPRECATED] Use `claim_v2` with `&OracleV2` instead. */
|
|
1274
1386
|
export declare function claim(options: ClaimOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1387
|
+
export interface ClaimV2Arguments {
|
|
1388
|
+
version: RawTransactionArgument<string>;
|
|
1389
|
+
registry: RawTransactionArgument<string>;
|
|
1390
|
+
index: RawTransactionArgument<number | bigint>;
|
|
1391
|
+
treasuryCaps: RawTransactionArgument<string>;
|
|
1392
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1393
|
+
}
|
|
1394
|
+
export interface ClaimV2Options {
|
|
1395
|
+
package?: string;
|
|
1396
|
+
arguments: ClaimV2Arguments | [
|
|
1397
|
+
version: RawTransactionArgument<string>,
|
|
1398
|
+
registry: RawTransactionArgument<string>,
|
|
1399
|
+
index: RawTransactionArgument<number | bigint>,
|
|
1400
|
+
treasuryCaps: RawTransactionArgument<string>,
|
|
1401
|
+
oracleV2: RawTransactionArgument<string>
|
|
1402
|
+
];
|
|
1403
|
+
typeArguments: [
|
|
1404
|
+
string,
|
|
1405
|
+
string
|
|
1406
|
+
];
|
|
1407
|
+
}
|
|
1408
|
+
/** [User Function] Claims underlying assets from redeemed LP tokens. */
|
|
1409
|
+
export declare function claimV2(options: ClaimV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1275
1410
|
export interface SuspendPoolArguments {
|
|
1276
1411
|
version: RawTransactionArgument<string>;
|
|
1277
1412
|
registry: RawTransactionArgument<string>;
|
|
@@ -1314,7 +1449,9 @@ export interface SuspendTokenPoolOptions {
|
|
|
1314
1449
|
registry: RawTransactionArgument<string>,
|
|
1315
1450
|
index: RawTransactionArgument<number | bigint>
|
|
1316
1451
|
];
|
|
1317
|
-
typeArguments: [
|
|
1452
|
+
typeArguments: [
|
|
1453
|
+
string
|
|
1454
|
+
];
|
|
1318
1455
|
}
|
|
1319
1456
|
/** [Authorized Function] Suspends a token pool. */
|
|
1320
1457
|
export declare function suspendTokenPool(options: SuspendTokenPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -1330,141 +1467,12 @@ export interface ResumeTokenPoolOptions {
|
|
|
1330
1467
|
registry: RawTransactionArgument<string>,
|
|
1331
1468
|
index: RawTransactionArgument<number | bigint>
|
|
1332
1469
|
];
|
|
1333
|
-
typeArguments: [
|
|
1470
|
+
typeArguments: [
|
|
1471
|
+
string
|
|
1472
|
+
];
|
|
1334
1473
|
}
|
|
1335
1474
|
/** [Authorized Function] Resumes a token pool. */
|
|
1336
1475
|
export declare function resumeTokenPool(options: ResumeTokenPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1337
|
-
export interface ManagerDepositScallopArguments {
|
|
1338
|
-
version: RawTransactionArgument<string>;
|
|
1339
|
-
registry: RawTransactionArgument<string>;
|
|
1340
|
-
index: RawTransactionArgument<number | bigint>;
|
|
1341
|
-
scallopVersion: RawTransactionArgument<string>;
|
|
1342
|
-
scallopMarket: RawTransactionArgument<string>;
|
|
1343
|
-
lendingAmount: RawTransactionArgument<number | bigint | null>;
|
|
1344
|
-
}
|
|
1345
|
-
export interface ManagerDepositScallopOptions {
|
|
1346
|
-
package?: string;
|
|
1347
|
-
arguments: ManagerDepositScallopArguments | [
|
|
1348
|
-
version: RawTransactionArgument<string>,
|
|
1349
|
-
registry: RawTransactionArgument<string>,
|
|
1350
|
-
index: RawTransactionArgument<number | bigint>,
|
|
1351
|
-
scallopVersion: RawTransactionArgument<string>,
|
|
1352
|
-
scallopMarket: RawTransactionArgument<string>,
|
|
1353
|
-
lendingAmount: RawTransactionArgument<number | bigint | null>
|
|
1354
|
-
];
|
|
1355
|
-
typeArguments: [string];
|
|
1356
|
-
}
|
|
1357
|
-
/** [Authorized Function] Manager deposits to Scallop. */
|
|
1358
|
-
export declare function managerDepositScallop(options: ManagerDepositScallopOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1359
|
-
export interface ManagerDepositNaviArguments {
|
|
1360
|
-
version: RawTransactionArgument<string>;
|
|
1361
|
-
registry: RawTransactionArgument<string>;
|
|
1362
|
-
index: RawTransactionArgument<number | bigint>;
|
|
1363
|
-
storage: RawTransactionArgument<string>;
|
|
1364
|
-
pool: RawTransactionArgument<string>;
|
|
1365
|
-
asset: RawTransactionArgument<number>;
|
|
1366
|
-
incentiveV2: RawTransactionArgument<string>;
|
|
1367
|
-
incentiveV3: RawTransactionArgument<string>;
|
|
1368
|
-
lendingAmount: RawTransactionArgument<number | bigint | null>;
|
|
1369
|
-
}
|
|
1370
|
-
export interface ManagerDepositNaviOptions {
|
|
1371
|
-
package?: string;
|
|
1372
|
-
arguments: ManagerDepositNaviArguments | [
|
|
1373
|
-
version: RawTransactionArgument<string>,
|
|
1374
|
-
registry: RawTransactionArgument<string>,
|
|
1375
|
-
index: RawTransactionArgument<number | bigint>,
|
|
1376
|
-
storage: RawTransactionArgument<string>,
|
|
1377
|
-
pool: RawTransactionArgument<string>,
|
|
1378
|
-
asset: RawTransactionArgument<number>,
|
|
1379
|
-
incentiveV2: RawTransactionArgument<string>,
|
|
1380
|
-
incentiveV3: RawTransactionArgument<string>,
|
|
1381
|
-
lendingAmount: RawTransactionArgument<number | bigint | null>
|
|
1382
|
-
];
|
|
1383
|
-
typeArguments: [string];
|
|
1384
|
-
}
|
|
1385
|
-
export declare function managerDepositNavi(options: ManagerDepositNaviOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1386
|
-
export interface ManagerWithdrawScallopArguments {
|
|
1387
|
-
version: RawTransactionArgument<string>;
|
|
1388
|
-
registry: RawTransactionArgument<string>;
|
|
1389
|
-
index: RawTransactionArgument<number | bigint>;
|
|
1390
|
-
scallopVersion: RawTransactionArgument<string>;
|
|
1391
|
-
scallopMarket: RawTransactionArgument<string>;
|
|
1392
|
-
withdrawAmount: RawTransactionArgument<number | bigint | null>;
|
|
1393
|
-
}
|
|
1394
|
-
export interface ManagerWithdrawScallopOptions {
|
|
1395
|
-
package?: string;
|
|
1396
|
-
arguments: ManagerWithdrawScallopArguments | [
|
|
1397
|
-
version: RawTransactionArgument<string>,
|
|
1398
|
-
registry: RawTransactionArgument<string>,
|
|
1399
|
-
index: RawTransactionArgument<number | bigint>,
|
|
1400
|
-
scallopVersion: RawTransactionArgument<string>,
|
|
1401
|
-
scallopMarket: RawTransactionArgument<string>,
|
|
1402
|
-
withdrawAmount: RawTransactionArgument<number | bigint | null>
|
|
1403
|
-
];
|
|
1404
|
-
typeArguments: [string];
|
|
1405
|
-
}
|
|
1406
|
-
/** [Authorized Function] Manager withdraws from Scallop. */
|
|
1407
|
-
export declare function managerWithdrawScallop(options: ManagerWithdrawScallopOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1408
|
-
export interface ManagerWithdrawNaviArguments {
|
|
1409
|
-
version: RawTransactionArgument<string>;
|
|
1410
|
-
registry: RawTransactionArgument<string>;
|
|
1411
|
-
index: RawTransactionArgument<number | bigint>;
|
|
1412
|
-
oracleConfig: RawTransactionArgument<string>;
|
|
1413
|
-
priceOracle: RawTransactionArgument<string>;
|
|
1414
|
-
supraOracleHolder: RawTransactionArgument<string>;
|
|
1415
|
-
pythPriceInfo: RawTransactionArgument<string>;
|
|
1416
|
-
feedAddress: RawTransactionArgument<string>;
|
|
1417
|
-
storage: RawTransactionArgument<string>;
|
|
1418
|
-
pool: RawTransactionArgument<string>;
|
|
1419
|
-
asset: RawTransactionArgument<number>;
|
|
1420
|
-
incentiveV2: RawTransactionArgument<string>;
|
|
1421
|
-
incentiveV3: RawTransactionArgument<string>;
|
|
1422
|
-
}
|
|
1423
|
-
export interface ManagerWithdrawNaviOptions {
|
|
1424
|
-
package?: string;
|
|
1425
|
-
arguments: ManagerWithdrawNaviArguments | [
|
|
1426
|
-
version: RawTransactionArgument<string>,
|
|
1427
|
-
registry: RawTransactionArgument<string>,
|
|
1428
|
-
index: RawTransactionArgument<number | bigint>,
|
|
1429
|
-
oracleConfig: RawTransactionArgument<string>,
|
|
1430
|
-
priceOracle: RawTransactionArgument<string>,
|
|
1431
|
-
supraOracleHolder: RawTransactionArgument<string>,
|
|
1432
|
-
pythPriceInfo: RawTransactionArgument<string>,
|
|
1433
|
-
feedAddress: RawTransactionArgument<string>,
|
|
1434
|
-
storage: RawTransactionArgument<string>,
|
|
1435
|
-
pool: RawTransactionArgument<string>,
|
|
1436
|
-
asset: RawTransactionArgument<number>,
|
|
1437
|
-
incentiveV2: RawTransactionArgument<string>,
|
|
1438
|
-
incentiveV3: RawTransactionArgument<string>
|
|
1439
|
-
];
|
|
1440
|
-
typeArguments: [string];
|
|
1441
|
-
}
|
|
1442
|
-
export declare function managerWithdrawNavi(options: ManagerWithdrawNaviOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1443
|
-
export interface ManagerRewardNaviArguments {
|
|
1444
|
-
version: RawTransactionArgument<string>;
|
|
1445
|
-
registry: RawTransactionArgument<string>;
|
|
1446
|
-
index: RawTransactionArgument<number | bigint>;
|
|
1447
|
-
storage: RawTransactionArgument<string>;
|
|
1448
|
-
rewardFund: RawTransactionArgument<string>;
|
|
1449
|
-
coinTypes: RawTransactionArgument<string[]>;
|
|
1450
|
-
ruleIds: RawTransactionArgument<string[]>;
|
|
1451
|
-
incentiveV3: RawTransactionArgument<string>;
|
|
1452
|
-
}
|
|
1453
|
-
export interface ManagerRewardNaviOptions {
|
|
1454
|
-
package?: string;
|
|
1455
|
-
arguments: ManagerRewardNaviArguments | [
|
|
1456
|
-
version: RawTransactionArgument<string>,
|
|
1457
|
-
registry: RawTransactionArgument<string>,
|
|
1458
|
-
index: RawTransactionArgument<number | bigint>,
|
|
1459
|
-
storage: RawTransactionArgument<string>,
|
|
1460
|
-
rewardFund: RawTransactionArgument<string>,
|
|
1461
|
-
coinTypes: RawTransactionArgument<string[]>,
|
|
1462
|
-
ruleIds: RawTransactionArgument<string[]>,
|
|
1463
|
-
incentiveV3: RawTransactionArgument<string>
|
|
1464
|
-
];
|
|
1465
|
-
typeArguments: [string];
|
|
1466
|
-
}
|
|
1467
|
-
export declare function managerRewardNavi(options: ManagerRewardNaviOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1468
1476
|
export interface ManagerRemoveLiquidityTokenArguments {
|
|
1469
1477
|
version: RawTransactionArgument<string>;
|
|
1470
1478
|
registry: RawTransactionArgument<string>;
|
|
@@ -1477,7 +1485,9 @@ export interface ManagerRemoveLiquidityTokenOptions {
|
|
|
1477
1485
|
registry: RawTransactionArgument<string>,
|
|
1478
1486
|
index: RawTransactionArgument<number | bigint>
|
|
1479
1487
|
];
|
|
1480
|
-
typeArguments: [
|
|
1488
|
+
typeArguments: [
|
|
1489
|
+
string
|
|
1490
|
+
];
|
|
1481
1491
|
}
|
|
1482
1492
|
/** [Authorized Function] Manager removes a liquidity token. */
|
|
1483
1493
|
export declare function managerRemoveLiquidityToken(options: ManagerRemoveLiquidityTokenOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -1493,7 +1503,9 @@ export interface CheckTokenPoolStatusOptions {
|
|
|
1493
1503
|
index: RawTransactionArgument<number | bigint>,
|
|
1494
1504
|
assertActive: RawTransactionArgument<boolean>
|
|
1495
1505
|
];
|
|
1496
|
-
typeArguments: [
|
|
1506
|
+
typeArguments: [
|
|
1507
|
+
string
|
|
1508
|
+
];
|
|
1497
1509
|
}
|
|
1498
1510
|
export declare function checkTokenPoolStatus(options: CheckTokenPoolStatusOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1499
1511
|
export interface TokenPoolIsActiveArguments {
|
|
@@ -1501,7 +1513,9 @@ export interface TokenPoolIsActiveArguments {
|
|
|
1501
1513
|
}
|
|
1502
1514
|
export interface TokenPoolIsActiveOptions {
|
|
1503
1515
|
package?: string;
|
|
1504
|
-
arguments: TokenPoolIsActiveArguments | [
|
|
1516
|
+
arguments: TokenPoolIsActiveArguments | [
|
|
1517
|
+
tokenPool: RawTransactionArgument<string>
|
|
1518
|
+
];
|
|
1505
1519
|
}
|
|
1506
1520
|
export declare function tokenPoolIsActive(options: TokenPoolIsActiveOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1507
1521
|
export interface RebalanceArguments {
|
|
@@ -1522,10 +1536,36 @@ export interface RebalanceOptions {
|
|
|
1522
1536
|
oracleTokenB: RawTransactionArgument<string>,
|
|
1523
1537
|
rebalanceAmount: RawTransactionArgument<number | bigint>
|
|
1524
1538
|
];
|
|
1525
|
-
typeArguments: [
|
|
1539
|
+
typeArguments: [
|
|
1540
|
+
string,
|
|
1541
|
+
string
|
|
1542
|
+
];
|
|
1526
1543
|
}
|
|
1527
|
-
/** [
|
|
1544
|
+
/** [DEPRECATED] Use `rebalance_v2` with `&OracleV2` instead. */
|
|
1528
1545
|
export declare function rebalance(options: RebalanceOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1546
|
+
export interface RebalanceV2Arguments {
|
|
1547
|
+
version: RawTransactionArgument<string>;
|
|
1548
|
+
registry: RawTransactionArgument<string>;
|
|
1549
|
+
index: RawTransactionArgument<number | bigint>;
|
|
1550
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1551
|
+
rebalanceAmount: RawTransactionArgument<number | bigint>;
|
|
1552
|
+
}
|
|
1553
|
+
export interface RebalanceV2Options {
|
|
1554
|
+
package?: string;
|
|
1555
|
+
arguments: RebalanceV2Arguments | [
|
|
1556
|
+
version: RawTransactionArgument<string>,
|
|
1557
|
+
registry: RawTransactionArgument<string>,
|
|
1558
|
+
index: RawTransactionArgument<number | bigint>,
|
|
1559
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1560
|
+
rebalanceAmount: RawTransactionArgument<number | bigint>
|
|
1561
|
+
];
|
|
1562
|
+
typeArguments: [
|
|
1563
|
+
string,
|
|
1564
|
+
string
|
|
1565
|
+
];
|
|
1566
|
+
}
|
|
1567
|
+
/** [Authorized Function] Manager take the liquidity token A to swap. */
|
|
1568
|
+
export declare function rebalanceV2(options: RebalanceV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1529
1569
|
export interface CompleteRebalancingArguments {
|
|
1530
1570
|
version: RawTransactionArgument<string>;
|
|
1531
1571
|
registry: RawTransactionArgument<string>;
|
|
@@ -1546,10 +1586,38 @@ export interface CompleteRebalancingOptions {
|
|
|
1546
1586
|
swappedBackBalance: RawTransactionArgument<string>,
|
|
1547
1587
|
rebalanceProcess: RawTransactionArgument<string>
|
|
1548
1588
|
];
|
|
1549
|
-
typeArguments: [
|
|
1589
|
+
typeArguments: [
|
|
1590
|
+
string,
|
|
1591
|
+
string
|
|
1592
|
+
];
|
|
1550
1593
|
}
|
|
1551
|
-
/** [
|
|
1594
|
+
/** [DEPRECATED] Use `complete_rebalancing_v2` with `&OracleV2` instead. */
|
|
1552
1595
|
export declare function completeRebalancing(options: CompleteRebalancingOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1596
|
+
export interface CompleteRebalancingV2Arguments {
|
|
1597
|
+
version: RawTransactionArgument<string>;
|
|
1598
|
+
registry: RawTransactionArgument<string>;
|
|
1599
|
+
index: RawTransactionArgument<number | bigint>;
|
|
1600
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1601
|
+
swappedBackBalance: RawTransactionArgument<string>;
|
|
1602
|
+
rebalanceProcess: RawTransactionArgument<string>;
|
|
1603
|
+
}
|
|
1604
|
+
export interface CompleteRebalancingV2Options {
|
|
1605
|
+
package?: string;
|
|
1606
|
+
arguments: CompleteRebalancingV2Arguments | [
|
|
1607
|
+
version: RawTransactionArgument<string>,
|
|
1608
|
+
registry: RawTransactionArgument<string>,
|
|
1609
|
+
index: RawTransactionArgument<number | bigint>,
|
|
1610
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1611
|
+
swappedBackBalance: RawTransactionArgument<string>,
|
|
1612
|
+
rebalanceProcess: RawTransactionArgument<string>
|
|
1613
|
+
];
|
|
1614
|
+
typeArguments: [
|
|
1615
|
+
string,
|
|
1616
|
+
string
|
|
1617
|
+
];
|
|
1618
|
+
}
|
|
1619
|
+
/** [Authorized Function] Manager swap back the liquidity token from A to B. */
|
|
1620
|
+
export declare function completeRebalancingV2(options: CompleteRebalancingV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1553
1621
|
export interface ManagerRemoveAllLiquidityArguments {
|
|
1554
1622
|
version: RawTransactionArgument<string>;
|
|
1555
1623
|
registry: RawTransactionArgument<string>;
|
|
@@ -1562,7 +1630,9 @@ export interface ManagerRemoveAllLiquidityOptions {
|
|
|
1562
1630
|
registry: RawTransactionArgument<string>,
|
|
1563
1631
|
index: RawTransactionArgument<number | bigint>
|
|
1564
1632
|
];
|
|
1565
|
-
typeArguments: [
|
|
1633
|
+
typeArguments: [
|
|
1634
|
+
string
|
|
1635
|
+
];
|
|
1566
1636
|
}
|
|
1567
1637
|
/**
|
|
1568
1638
|
* Only for current contract sunset purpose. Will be removed in new contract
|
|
@@ -1583,10 +1653,32 @@ export interface UpdateLiquidityValueOptions {
|
|
|
1583
1653
|
index: RawTransactionArgument<number | bigint>,
|
|
1584
1654
|
oracle: RawTransactionArgument<string>
|
|
1585
1655
|
];
|
|
1586
|
-
typeArguments: [
|
|
1656
|
+
typeArguments: [
|
|
1657
|
+
string
|
|
1658
|
+
];
|
|
1587
1659
|
}
|
|
1588
|
-
/** [
|
|
1660
|
+
/** [DEPRECATED] Use `update_liquidity_value_v2` with `&OracleV2` instead. */
|
|
1589
1661
|
export declare function updateLiquidityValue(options: UpdateLiquidityValueOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1662
|
+
export interface UpdateLiquidityValueV2Arguments {
|
|
1663
|
+
version: RawTransactionArgument<string>;
|
|
1664
|
+
registry: RawTransactionArgument<string>;
|
|
1665
|
+
index: RawTransactionArgument<number | bigint>;
|
|
1666
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1667
|
+
}
|
|
1668
|
+
export interface UpdateLiquidityValueV2Options {
|
|
1669
|
+
package?: string;
|
|
1670
|
+
arguments: UpdateLiquidityValueV2Arguments | [
|
|
1671
|
+
version: RawTransactionArgument<string>,
|
|
1672
|
+
registry: RawTransactionArgument<string>,
|
|
1673
|
+
index: RawTransactionArgument<number | bigint>,
|
|
1674
|
+
oracleV2: RawTransactionArgument<string>
|
|
1675
|
+
];
|
|
1676
|
+
typeArguments: [
|
|
1677
|
+
string
|
|
1678
|
+
];
|
|
1679
|
+
}
|
|
1680
|
+
/** [User Function] Update the liquidity value with oracle. */
|
|
1681
|
+
export declare function updateLiquidityValueV2(options: UpdateLiquidityValueV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1590
1682
|
export interface GetPoolLiquidityArguments {
|
|
1591
1683
|
version: RawTransactionArgument<string>;
|
|
1592
1684
|
registry: RawTransactionArgument<string>;
|
|
@@ -1605,11 +1697,23 @@ export interface GetPoolLiquidityOptions {
|
|
|
1605
1697
|
* [total_share_supply, tvl_usd, token_types, amounts, usds]
|
|
1606
1698
|
*/
|
|
1607
1699
|
export declare function getPoolLiquidity(options: GetPoolLiquidityOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1700
|
+
export interface GetV2PriceArguments {
|
|
1701
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1702
|
+
tokenType: RawTransactionArgument<string>;
|
|
1703
|
+
}
|
|
1704
|
+
export interface GetV2PriceOptions {
|
|
1705
|
+
package?: string;
|
|
1706
|
+
arguments: GetV2PriceArguments | [
|
|
1707
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1708
|
+
tokenType: RawTransactionArgument<string>
|
|
1709
|
+
];
|
|
1710
|
+
}
|
|
1711
|
+
export declare function getV2Price(options: GetV2PriceOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1608
1712
|
export interface UpdateTvlArguments {
|
|
1609
1713
|
version: RawTransactionArgument<string>;
|
|
1610
1714
|
liquidityPool: RawTransactionArgument<string>;
|
|
1611
1715
|
tokenType: RawTransactionArgument<string>;
|
|
1612
|
-
|
|
1716
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1613
1717
|
}
|
|
1614
1718
|
export interface UpdateTvlOptions {
|
|
1615
1719
|
package?: string;
|
|
@@ -1617,7 +1721,7 @@ export interface UpdateTvlOptions {
|
|
|
1617
1721
|
version: RawTransactionArgument<string>,
|
|
1618
1722
|
liquidityPool: RawTransactionArgument<string>,
|
|
1619
1723
|
tokenType: RawTransactionArgument<string>,
|
|
1620
|
-
|
|
1724
|
+
oracleV2: RawTransactionArgument<string>
|
|
1621
1725
|
];
|
|
1622
1726
|
}
|
|
1623
1727
|
export declare function updateTvl(options: UpdateTvlOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
@@ -1635,7 +1739,9 @@ export interface OrderFilledOptions {
|
|
|
1635
1739
|
dReserve: RawTransactionArgument<number | bigint>,
|
|
1636
1740
|
feeBalance: RawTransactionArgument<string>
|
|
1637
1741
|
];
|
|
1638
|
-
typeArguments: [
|
|
1742
|
+
typeArguments: [
|
|
1743
|
+
string
|
|
1744
|
+
];
|
|
1639
1745
|
}
|
|
1640
1746
|
export declare function orderFilled(options: OrderFilledOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1641
1747
|
export interface UpdateReserveAmountArguments {
|
|
@@ -1650,7 +1756,9 @@ export interface UpdateReserveAmountOptions {
|
|
|
1650
1756
|
addReserve: RawTransactionArgument<boolean>,
|
|
1651
1757
|
dReserve: RawTransactionArgument<number | bigint>
|
|
1652
1758
|
];
|
|
1653
|
-
typeArguments: [
|
|
1759
|
+
typeArguments: [
|
|
1760
|
+
string
|
|
1761
|
+
];
|
|
1654
1762
|
}
|
|
1655
1763
|
export declare function updateReserveAmount(options: UpdateReserveAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1656
1764
|
export interface PutCollateralArguments {
|
|
@@ -1667,7 +1775,9 @@ export interface PutCollateralOptions {
|
|
|
1667
1775
|
collateralOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1668
1776
|
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>
|
|
1669
1777
|
];
|
|
1670
|
-
typeArguments: [
|
|
1778
|
+
typeArguments: [
|
|
1779
|
+
string
|
|
1780
|
+
];
|
|
1671
1781
|
}
|
|
1672
1782
|
export declare function putCollateral(options: PutCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1673
1783
|
export interface RequestCollateralArguments {
|
|
@@ -1684,7 +1794,9 @@ export interface RequestCollateralOptions {
|
|
|
1684
1794
|
collateralOraclePrice: RawTransactionArgument<number | bigint>,
|
|
1685
1795
|
collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>
|
|
1686
1796
|
];
|
|
1687
|
-
typeArguments: [
|
|
1797
|
+
typeArguments: [
|
|
1798
|
+
string
|
|
1799
|
+
];
|
|
1688
1800
|
}
|
|
1689
1801
|
export declare function requestCollateral(options: RequestCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1690
1802
|
export interface PutReceiptCollateralsArguments {
|
|
@@ -1693,7 +1805,10 @@ export interface PutReceiptCollateralsArguments {
|
|
|
1693
1805
|
}
|
|
1694
1806
|
export interface PutReceiptCollateralsOptions {
|
|
1695
1807
|
package?: string;
|
|
1696
|
-
arguments: PutReceiptCollateralsArguments | [
|
|
1808
|
+
arguments: PutReceiptCollateralsArguments | [
|
|
1809
|
+
liquidityPool: RawTransactionArgument<string>,
|
|
1810
|
+
unsettledBidReceipts: RawTransactionArgument<string[]>
|
|
1811
|
+
];
|
|
1697
1812
|
}
|
|
1698
1813
|
export declare function putReceiptCollaterals(options: PutReceiptCollateralsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1699
1814
|
export interface GetReceiptCollateralArguments {
|
|
@@ -1701,7 +1816,9 @@ export interface GetReceiptCollateralArguments {
|
|
|
1701
1816
|
}
|
|
1702
1817
|
export interface GetReceiptCollateralOptions {
|
|
1703
1818
|
package?: string;
|
|
1704
|
-
arguments: GetReceiptCollateralArguments | [
|
|
1819
|
+
arguments: GetReceiptCollateralArguments | [
|
|
1820
|
+
liquidityPool: RawTransactionArgument<string>
|
|
1821
|
+
];
|
|
1705
1822
|
}
|
|
1706
1823
|
export declare function getReceiptCollateral(options: GetReceiptCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1707
1824
|
export interface CalculateMintLpArguments {
|
|
@@ -1762,33 +1879,11 @@ export interface CalculateLpFeeOptions {
|
|
|
1762
1879
|
];
|
|
1763
1880
|
}
|
|
1764
1881
|
export declare function calculateLpFee(options: CalculateLpFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1765
|
-
export interface CalculateFee_Arguments {
|
|
1766
|
-
liquidityPool: RawTransactionArgument<string>;
|
|
1767
|
-
tokenType: RawTransactionArgument<string>;
|
|
1768
|
-
depositAmount: RawTransactionArgument<number | bigint>;
|
|
1769
|
-
depositAmountUsd: RawTransactionArgument<number | bigint>;
|
|
1770
|
-
flowIn: RawTransactionArgument<boolean>;
|
|
1771
|
-
basicFeeBp: RawTransactionArgument<number | bigint>;
|
|
1772
|
-
additionalFeeBp: RawTransactionArgument<number | bigint>;
|
|
1773
|
-
}
|
|
1774
|
-
export interface CalculateFee_Options {
|
|
1775
|
-
package?: string;
|
|
1776
|
-
arguments: CalculateFee_Arguments | [
|
|
1777
|
-
liquidityPool: RawTransactionArgument<string>,
|
|
1778
|
-
tokenType: RawTransactionArgument<string>,
|
|
1779
|
-
depositAmount: RawTransactionArgument<number | bigint>,
|
|
1780
|
-
depositAmountUsd: RawTransactionArgument<number | bigint>,
|
|
1781
|
-
flowIn: RawTransactionArgument<boolean>,
|
|
1782
|
-
basicFeeBp: RawTransactionArgument<number | bigint>,
|
|
1783
|
-
additionalFeeBp: RawTransactionArgument<number | bigint>
|
|
1784
|
-
];
|
|
1785
|
-
}
|
|
1786
|
-
export declare function calculateFee_(options: CalculateFee_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1787
1882
|
export interface NormalSafetyCheckArguments {
|
|
1788
1883
|
version: RawTransactionArgument<string>;
|
|
1789
1884
|
registry: RawTransactionArgument<string>;
|
|
1790
1885
|
index: RawTransactionArgument<number | bigint>;
|
|
1791
|
-
|
|
1886
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1792
1887
|
}
|
|
1793
1888
|
export interface NormalSafetyCheckOptions {
|
|
1794
1889
|
package?: string;
|
|
@@ -1796,9 +1891,12 @@ export interface NormalSafetyCheckOptions {
|
|
|
1796
1891
|
version: RawTransactionArgument<string>,
|
|
1797
1892
|
registry: RawTransactionArgument<string>,
|
|
1798
1893
|
index: RawTransactionArgument<number | bigint>,
|
|
1799
|
-
|
|
1894
|
+
oracleV2: RawTransactionArgument<string>
|
|
1895
|
+
];
|
|
1896
|
+
typeArguments: [
|
|
1897
|
+
string,
|
|
1898
|
+
string
|
|
1800
1899
|
];
|
|
1801
|
-
typeArguments: [string, string];
|
|
1802
1900
|
}
|
|
1803
1901
|
export declare function normalSafetyCheck(options: NormalSafetyCheckOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1804
1902
|
export interface CalculateSwapFeeArguments {
|
|
@@ -1824,139 +1922,17 @@ export interface CheckTvlUpdatedArguments {
|
|
|
1824
1922
|
}
|
|
1825
1923
|
export interface CheckTvlUpdatedOptions {
|
|
1826
1924
|
package?: string;
|
|
1827
|
-
arguments: CheckTvlUpdatedArguments | [
|
|
1828
|
-
|
|
1829
|
-
export declare function checkTvlUpdated(options: CheckTvlUpdatedOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1830
|
-
export interface CalculateLendingAmountCappedArguments {
|
|
1831
|
-
tokenPool: RawTransactionArgument<string>;
|
|
1832
|
-
lendingAmount: RawTransactionArgument<number | bigint | null>;
|
|
1833
|
-
}
|
|
1834
|
-
export interface CalculateLendingAmountCappedOptions {
|
|
1835
|
-
package?: string;
|
|
1836
|
-
arguments: CalculateLendingAmountCappedArguments | [tokenPool: RawTransactionArgument<string>, lendingAmount: RawTransactionArgument<number | bigint | null>];
|
|
1837
|
-
}
|
|
1838
|
-
export declare function calculateLendingAmountCapped(options: CalculateLendingAmountCappedOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1839
|
-
export interface DepositScallopBasicArguments {
|
|
1840
|
-
liquidityPool: RawTransactionArgument<string>;
|
|
1841
|
-
scallopVersion: RawTransactionArgument<string>;
|
|
1842
|
-
scallopMarket: RawTransactionArgument<string>;
|
|
1843
|
-
depositAmount: RawTransactionArgument<number | bigint>;
|
|
1844
|
-
}
|
|
1845
|
-
export interface DepositScallopBasicOptions {
|
|
1846
|
-
package?: string;
|
|
1847
|
-
arguments: DepositScallopBasicArguments | [
|
|
1848
|
-
liquidityPool: RawTransactionArgument<string>,
|
|
1849
|
-
scallopVersion: RawTransactionArgument<string>,
|
|
1850
|
-
scallopMarket: RawTransactionArgument<string>,
|
|
1851
|
-
depositAmount: RawTransactionArgument<number | bigint>
|
|
1852
|
-
];
|
|
1853
|
-
typeArguments: [string];
|
|
1854
|
-
}
|
|
1855
|
-
export declare function depositScallopBasic(options: DepositScallopBasicOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1856
|
-
export interface WithdrawScallopBasicArguments {
|
|
1857
|
-
version: RawTransactionArgument<string>;
|
|
1858
|
-
liquidityPool: RawTransactionArgument<string>;
|
|
1859
|
-
scallopVersion: RawTransactionArgument<string>;
|
|
1860
|
-
scallopMarket: RawTransactionArgument<string>;
|
|
1861
|
-
withdrawAmount: RawTransactionArgument<number | bigint>;
|
|
1862
|
-
}
|
|
1863
|
-
export interface WithdrawScallopBasicOptions {
|
|
1864
|
-
package?: string;
|
|
1865
|
-
arguments: WithdrawScallopBasicArguments | [
|
|
1866
|
-
version: RawTransactionArgument<string>,
|
|
1867
|
-
liquidityPool: RawTransactionArgument<string>,
|
|
1868
|
-
scallopVersion: RawTransactionArgument<string>,
|
|
1869
|
-
scallopMarket: RawTransactionArgument<string>,
|
|
1870
|
-
withdrawAmount: RawTransactionArgument<number | bigint>
|
|
1871
|
-
];
|
|
1872
|
-
typeArguments: [string];
|
|
1873
|
-
}
|
|
1874
|
-
export declare function withdrawScallopBasic(options: WithdrawScallopBasicOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1875
|
-
export interface DepositNaviArguments {
|
|
1876
|
-
liquidityPool: RawTransactionArgument<string>;
|
|
1877
|
-
storage: RawTransactionArgument<string>;
|
|
1878
|
-
pool: RawTransactionArgument<string>;
|
|
1879
|
-
asset: RawTransactionArgument<number>;
|
|
1880
|
-
incentiveV2: RawTransactionArgument<string>;
|
|
1881
|
-
incentiveV3: RawTransactionArgument<string>;
|
|
1882
|
-
depositAmount: RawTransactionArgument<number | bigint>;
|
|
1883
|
-
}
|
|
1884
|
-
export interface DepositNaviOptions {
|
|
1885
|
-
package?: string;
|
|
1886
|
-
arguments: DepositNaviArguments | [
|
|
1887
|
-
liquidityPool: RawTransactionArgument<string>,
|
|
1888
|
-
storage: RawTransactionArgument<string>,
|
|
1889
|
-
pool: RawTransactionArgument<string>,
|
|
1890
|
-
asset: RawTransactionArgument<number>,
|
|
1891
|
-
incentiveV2: RawTransactionArgument<string>,
|
|
1892
|
-
incentiveV3: RawTransactionArgument<string>,
|
|
1893
|
-
depositAmount: RawTransactionArgument<number | bigint>
|
|
1894
|
-
];
|
|
1895
|
-
typeArguments: [string];
|
|
1896
|
-
}
|
|
1897
|
-
export declare function depositNavi(options: DepositNaviOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1898
|
-
export interface WithdrawNaviArguments {
|
|
1899
|
-
version: RawTransactionArgument<string>;
|
|
1900
|
-
liquidityPool: RawTransactionArgument<string>;
|
|
1901
|
-
oracleConfig: RawTransactionArgument<string>;
|
|
1902
|
-
priceOracle: RawTransactionArgument<string>;
|
|
1903
|
-
supraOracleHolder: RawTransactionArgument<string>;
|
|
1904
|
-
pythPriceInfo: RawTransactionArgument<string>;
|
|
1905
|
-
feedAddress: RawTransactionArgument<string>;
|
|
1906
|
-
storage: RawTransactionArgument<string>;
|
|
1907
|
-
pool: RawTransactionArgument<string>;
|
|
1908
|
-
asset: RawTransactionArgument<number>;
|
|
1909
|
-
incentiveV2: RawTransactionArgument<string>;
|
|
1910
|
-
incentiveV3: RawTransactionArgument<string>;
|
|
1911
|
-
}
|
|
1912
|
-
export interface WithdrawNaviOptions {
|
|
1913
|
-
package?: string;
|
|
1914
|
-
arguments: WithdrawNaviArguments | [
|
|
1915
|
-
version: RawTransactionArgument<string>,
|
|
1916
|
-
liquidityPool: RawTransactionArgument<string>,
|
|
1917
|
-
oracleConfig: RawTransactionArgument<string>,
|
|
1918
|
-
priceOracle: RawTransactionArgument<string>,
|
|
1919
|
-
supraOracleHolder: RawTransactionArgument<string>,
|
|
1920
|
-
pythPriceInfo: RawTransactionArgument<string>,
|
|
1921
|
-
feedAddress: RawTransactionArgument<string>,
|
|
1922
|
-
storage: RawTransactionArgument<string>,
|
|
1923
|
-
pool: RawTransactionArgument<string>,
|
|
1924
|
-
asset: RawTransactionArgument<number>,
|
|
1925
|
-
incentiveV2: RawTransactionArgument<string>,
|
|
1926
|
-
incentiveV3: RawTransactionArgument<string>
|
|
1927
|
-
];
|
|
1928
|
-
typeArguments: [string];
|
|
1929
|
-
}
|
|
1930
|
-
export declare function withdrawNavi(options: WithdrawNaviOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1931
|
-
export interface RewardNaviArguments {
|
|
1932
|
-
version: RawTransactionArgument<string>;
|
|
1933
|
-
liquidityPool: RawTransactionArgument<string>;
|
|
1934
|
-
storage: RawTransactionArgument<string>;
|
|
1935
|
-
rewardFund: RawTransactionArgument<string>;
|
|
1936
|
-
coinTypes: RawTransactionArgument<string[]>;
|
|
1937
|
-
ruleIds: RawTransactionArgument<string[]>;
|
|
1938
|
-
incentiveV3: RawTransactionArgument<string>;
|
|
1939
|
-
}
|
|
1940
|
-
export interface RewardNaviOptions {
|
|
1941
|
-
package?: string;
|
|
1942
|
-
arguments: RewardNaviArguments | [
|
|
1943
|
-
version: RawTransactionArgument<string>,
|
|
1944
|
-
liquidityPool: RawTransactionArgument<string>,
|
|
1945
|
-
storage: RawTransactionArgument<string>,
|
|
1946
|
-
rewardFund: RawTransactionArgument<string>,
|
|
1947
|
-
coinTypes: RawTransactionArgument<string[]>,
|
|
1948
|
-
ruleIds: RawTransactionArgument<string[]>,
|
|
1949
|
-
incentiveV3: RawTransactionArgument<string>
|
|
1925
|
+
arguments: CheckTvlUpdatedArguments | [
|
|
1926
|
+
liquidityPool: RawTransactionArgument<string>
|
|
1950
1927
|
];
|
|
1951
|
-
typeArguments: [string];
|
|
1952
1928
|
}
|
|
1953
|
-
export declare function
|
|
1929
|
+
export declare function checkTvlUpdated(options: CheckTvlUpdatedOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1954
1930
|
export interface BurnLp_Arguments {
|
|
1955
1931
|
version: RawTransactionArgument<string>;
|
|
1956
1932
|
registry: RawTransactionArgument<string>;
|
|
1957
1933
|
index: RawTransactionArgument<number | bigint>;
|
|
1958
1934
|
treasuryCaps: RawTransactionArgument<string>;
|
|
1959
|
-
|
|
1935
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1960
1936
|
burnLpBalance: RawTransactionArgument<string>;
|
|
1961
1937
|
}
|
|
1962
1938
|
export interface BurnLp_Options {
|
|
@@ -1966,18 +1942,20 @@ export interface BurnLp_Options {
|
|
|
1966
1942
|
registry: RawTransactionArgument<string>,
|
|
1967
1943
|
index: RawTransactionArgument<number | bigint>,
|
|
1968
1944
|
treasuryCaps: RawTransactionArgument<string>,
|
|
1969
|
-
|
|
1945
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1970
1946
|
burnLpBalance: RawTransactionArgument<string>
|
|
1971
1947
|
];
|
|
1972
|
-
typeArguments: [
|
|
1948
|
+
typeArguments: [
|
|
1949
|
+
string,
|
|
1950
|
+
string
|
|
1951
|
+
];
|
|
1973
1952
|
}
|
|
1974
1953
|
export declare function burnLp_(options: BurnLp_Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1975
1954
|
export interface ViewSwapResultArguments {
|
|
1976
1955
|
version: RawTransactionArgument<string>;
|
|
1977
1956
|
registry: RawTransactionArgument<string>;
|
|
1978
1957
|
index: RawTransactionArgument<number | bigint>;
|
|
1979
|
-
|
|
1980
|
-
oracleToToken: RawTransactionArgument<string>;
|
|
1958
|
+
oracleV2: RawTransactionArgument<string>;
|
|
1981
1959
|
fromAmount: RawTransactionArgument<number | bigint>;
|
|
1982
1960
|
}
|
|
1983
1961
|
export interface ViewSwapResultOptions {
|
|
@@ -1986,11 +1964,13 @@ export interface ViewSwapResultOptions {
|
|
|
1986
1964
|
version: RawTransactionArgument<string>,
|
|
1987
1965
|
registry: RawTransactionArgument<string>,
|
|
1988
1966
|
index: RawTransactionArgument<number | bigint>,
|
|
1989
|
-
|
|
1990
|
-
oracleToToken: RawTransactionArgument<string>,
|
|
1967
|
+
oracleV2: RawTransactionArgument<string>,
|
|
1991
1968
|
fromAmount: RawTransactionArgument<number | bigint>
|
|
1992
1969
|
];
|
|
1993
|
-
typeArguments: [
|
|
1970
|
+
typeArguments: [
|
|
1971
|
+
string,
|
|
1972
|
+
string
|
|
1973
|
+
];
|
|
1994
1974
|
}
|
|
1995
1975
|
export declare function viewSwapResult(options: ViewSwapResultOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
1996
1976
|
export interface GetReceiptCollateralBcsArguments {
|
|
@@ -1999,7 +1979,10 @@ export interface GetReceiptCollateralBcsArguments {
|
|
|
1999
1979
|
}
|
|
2000
1980
|
export interface GetReceiptCollateralBcsOptions {
|
|
2001
1981
|
package?: string;
|
|
2002
|
-
arguments: GetReceiptCollateralBcsArguments | [
|
|
1982
|
+
arguments: GetReceiptCollateralBcsArguments | [
|
|
1983
|
+
registry: RawTransactionArgument<string>,
|
|
1984
|
+
index: RawTransactionArgument<number | bigint>
|
|
1985
|
+
];
|
|
2003
1986
|
}
|
|
2004
1987
|
export declare function getReceiptCollateralBcs(options: GetReceiptCollateralBcsOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2005
1988
|
export interface GetExpiredReceiptCollateralBcsArguments {
|
|
@@ -2022,7 +2005,10 @@ export interface GetLiquidityPoolArguments {
|
|
|
2022
2005
|
}
|
|
2023
2006
|
export interface GetLiquidityPoolOptions {
|
|
2024
2007
|
package?: string;
|
|
2025
|
-
arguments: GetLiquidityPoolArguments | [
|
|
2008
|
+
arguments: GetLiquidityPoolArguments | [
|
|
2009
|
+
registry: RawTransactionArgument<string>,
|
|
2010
|
+
index: RawTransactionArgument<number | bigint>
|
|
2011
|
+
];
|
|
2026
2012
|
}
|
|
2027
2013
|
export declare function getLiquidityPool(options: GetLiquidityPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2028
2014
|
export interface GetMutLiquidityPoolArguments {
|
|
@@ -2031,7 +2017,10 @@ export interface GetMutLiquidityPoolArguments {
|
|
|
2031
2017
|
}
|
|
2032
2018
|
export interface GetMutLiquidityPoolOptions {
|
|
2033
2019
|
package?: string;
|
|
2034
|
-
arguments: GetMutLiquidityPoolArguments | [
|
|
2020
|
+
arguments: GetMutLiquidityPoolArguments | [
|
|
2021
|
+
registry: RawTransactionArgument<string>,
|
|
2022
|
+
index: RawTransactionArgument<number | bigint>
|
|
2023
|
+
];
|
|
2035
2024
|
}
|
|
2036
2025
|
export declare function getMutLiquidityPool(options: GetMutLiquidityPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2037
2026
|
export interface SafetyCheckArguments {
|
|
@@ -2053,7 +2042,9 @@ export interface CheckActiveArguments {
|
|
|
2053
2042
|
}
|
|
2054
2043
|
export interface CheckActiveOptions {
|
|
2055
2044
|
package?: string;
|
|
2056
|
-
arguments: CheckActiveArguments | [
|
|
2045
|
+
arguments: CheckActiveArguments | [
|
|
2046
|
+
liquidityPool: RawTransactionArgument<string>
|
|
2047
|
+
];
|
|
2057
2048
|
}
|
|
2058
2049
|
export declare function checkActive(options: CheckActiveOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2059
2050
|
export interface OracleMatchedArguments {
|
|
@@ -2076,7 +2067,10 @@ export interface GetTokenPoolArguments {
|
|
|
2076
2067
|
}
|
|
2077
2068
|
export interface GetTokenPoolOptions {
|
|
2078
2069
|
package?: string;
|
|
2079
|
-
arguments: GetTokenPoolArguments | [
|
|
2070
|
+
arguments: GetTokenPoolArguments | [
|
|
2071
|
+
liquidityPool: RawTransactionArgument<string>,
|
|
2072
|
+
tokenType: RawTransactionArgument<string>
|
|
2073
|
+
];
|
|
2080
2074
|
}
|
|
2081
2075
|
export declare function getTokenPool(options: GetTokenPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2082
2076
|
export interface GetMutTokenPoolArguments {
|
|
@@ -2085,7 +2079,10 @@ export interface GetMutTokenPoolArguments {
|
|
|
2085
2079
|
}
|
|
2086
2080
|
export interface GetMutTokenPoolOptions {
|
|
2087
2081
|
package?: string;
|
|
2088
|
-
arguments: GetMutTokenPoolArguments | [
|
|
2082
|
+
arguments: GetMutTokenPoolArguments | [
|
|
2083
|
+
liquidityPool: RawTransactionArgument<string>,
|
|
2084
|
+
tokenType: RawTransactionArgument<string>
|
|
2085
|
+
];
|
|
2089
2086
|
}
|
|
2090
2087
|
export declare function getMutTokenPool(options: GetMutTokenPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2091
2088
|
export interface GetLpTokenTypeArguments {
|
|
@@ -2094,7 +2091,10 @@ export interface GetLpTokenTypeArguments {
|
|
|
2094
2091
|
}
|
|
2095
2092
|
export interface GetLpTokenTypeOptions {
|
|
2096
2093
|
package?: string;
|
|
2097
|
-
arguments: GetLpTokenTypeArguments | [
|
|
2094
|
+
arguments: GetLpTokenTypeArguments | [
|
|
2095
|
+
registry: RawTransactionArgument<string>,
|
|
2096
|
+
index: RawTransactionArgument<number | bigint>
|
|
2097
|
+
];
|
|
2098
2098
|
}
|
|
2099
2099
|
export declare function getLpTokenType(options: GetLpTokenTypeOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2100
2100
|
export interface GetLiquidityTokenDecimalArguments {
|
|
@@ -2117,7 +2117,10 @@ export interface GetTokenPoolStateArguments {
|
|
|
2117
2117
|
}
|
|
2118
2118
|
export interface GetTokenPoolStateOptions {
|
|
2119
2119
|
package?: string;
|
|
2120
|
-
arguments: GetTokenPoolStateArguments | [
|
|
2120
|
+
arguments: GetTokenPoolStateArguments | [
|
|
2121
|
+
liquidityPool: RawTransactionArgument<string>,
|
|
2122
|
+
liquidityToken: RawTransactionArgument<string>
|
|
2123
|
+
];
|
|
2121
2124
|
}
|
|
2122
2125
|
export declare function getTokenPoolState(options: GetTokenPoolStateOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2123
2126
|
export interface CheckTradingOrderSizeValidArguments {
|
|
@@ -2140,7 +2143,10 @@ export interface GetCumulativeBorrowRateArguments {
|
|
|
2140
2143
|
}
|
|
2141
2144
|
export interface GetCumulativeBorrowRateOptions {
|
|
2142
2145
|
package?: string;
|
|
2143
|
-
arguments: GetCumulativeBorrowRateArguments | [
|
|
2146
|
+
arguments: GetCumulativeBorrowRateArguments | [
|
|
2147
|
+
liquidityPool: RawTransactionArgument<string>,
|
|
2148
|
+
liquidityToken: RawTransactionArgument<string>
|
|
2149
|
+
];
|
|
2144
2150
|
}
|
|
2145
2151
|
export declare function getCumulativeBorrowRate(options: GetCumulativeBorrowRateOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2146
2152
|
export interface GetTvlUsdArguments {
|
|
@@ -2148,19 +2154,53 @@ export interface GetTvlUsdArguments {
|
|
|
2148
2154
|
}
|
|
2149
2155
|
export interface GetTvlUsdOptions {
|
|
2150
2156
|
package?: string;
|
|
2151
|
-
arguments: GetTvlUsdArguments | [
|
|
2157
|
+
arguments: GetTvlUsdArguments | [
|
|
2158
|
+
liquidityPool: RawTransactionArgument<string>
|
|
2159
|
+
];
|
|
2152
2160
|
}
|
|
2153
2161
|
export declare function getTvlUsd(options: GetTvlUsdOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2154
2162
|
export interface GetBorrowRateDecimalOptions {
|
|
2155
2163
|
package?: string;
|
|
2156
|
-
arguments?: [
|
|
2164
|
+
arguments?: [
|
|
2165
|
+
];
|
|
2157
2166
|
}
|
|
2158
2167
|
export declare function getBorrowRateDecimal(options?: GetBorrowRateDecimalOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2159
|
-
export interface
|
|
2168
|
+
export interface SetAllOracleIdArguments {
|
|
2169
|
+
registry: RawTransactionArgument<string>;
|
|
2170
|
+
newOracleId: RawTransactionArgument<string>;
|
|
2171
|
+
}
|
|
2172
|
+
export interface SetAllOracleIdOptions {
|
|
2173
|
+
package?: string;
|
|
2174
|
+
arguments: SetAllOracleIdArguments | [
|
|
2175
|
+
registry: RawTransactionArgument<string>,
|
|
2176
|
+
newOracleId: RawTransactionArgument<string>
|
|
2177
|
+
];
|
|
2178
|
+
}
|
|
2179
|
+
/**
|
|
2180
|
+
* [Migration helper] Overwrite every TokenPool's `oracle_id` with the new OracleV2
|
|
2181
|
+
* object id. Iterates all liquidity pools in the registry and all TokenPools
|
|
2182
|
+
* within each.
|
|
2183
|
+
*/
|
|
2184
|
+
export declare function setAllOracleId(options: SetAllOracleIdOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2185
|
+
export interface MigrateOracleIdToV2Arguments {
|
|
2186
|
+
version: RawTransactionArgument<string>;
|
|
2187
|
+
registry: RawTransactionArgument<string>;
|
|
2188
|
+
oracleV2: RawTransactionArgument<string>;
|
|
2189
|
+
}
|
|
2190
|
+
export interface MigrateOracleIdToV2Options {
|
|
2160
2191
|
package?: string;
|
|
2161
|
-
arguments
|
|
2192
|
+
arguments: MigrateOracleIdToV2Arguments | [
|
|
2193
|
+
version: RawTransactionArgument<string>,
|
|
2194
|
+
registry: RawTransactionArgument<string>,
|
|
2195
|
+
oracleV2: RawTransactionArgument<string>
|
|
2196
|
+
];
|
|
2162
2197
|
}
|
|
2163
|
-
|
|
2198
|
+
/**
|
|
2199
|
+
* [Authorized Function] Overwrite every TokenPool's `oracle_id` with the live
|
|
2200
|
+
* `OracleV2` id. Run once after upgrading typus_perp to point all LP token configs
|
|
2201
|
+
* at the redeployed OracleV2.
|
|
2202
|
+
*/
|
|
2203
|
+
export declare function migrateOracleIdToV2(options: MigrateOracleIdToV2Options): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|
|
2164
2204
|
export interface GetUserDeactivatingSharesArguments {
|
|
2165
2205
|
registry: RawTransactionArgument<string>;
|
|
2166
2206
|
index: RawTransactionArgument<number | bigint>;
|
|
@@ -2168,7 +2208,13 @@ export interface GetUserDeactivatingSharesArguments {
|
|
|
2168
2208
|
}
|
|
2169
2209
|
export interface GetUserDeactivatingSharesOptions {
|
|
2170
2210
|
package?: string;
|
|
2171
|
-
arguments: GetUserDeactivatingSharesArguments | [
|
|
2172
|
-
|
|
2211
|
+
arguments: GetUserDeactivatingSharesArguments | [
|
|
2212
|
+
registry: RawTransactionArgument<string>,
|
|
2213
|
+
index: RawTransactionArgument<number | bigint>,
|
|
2214
|
+
user: RawTransactionArgument<string>
|
|
2215
|
+
];
|
|
2216
|
+
typeArguments: [
|
|
2217
|
+
string
|
|
2218
|
+
];
|
|
2173
2219
|
}
|
|
2174
2220
|
export declare function getUserDeactivatingShares(options: GetUserDeactivatingSharesOptions): (tx: Transaction) => import("@mysten/sui/transactions", { with: { "resolution-mode": "import" } }).TransactionResult;
|