lll-sdk 0.0.0-experimental-20250902145508 → 0.0.0-experimental-20250902194310
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/index.d.mts +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -164,6 +164,22 @@ type PositionManageLeverageParams = {
|
|
|
164
164
|
targetLeverage: number;
|
|
165
165
|
slippage: number;
|
|
166
166
|
};
|
|
167
|
+
type PositionRepayParams = {
|
|
168
|
+
marketId: string;
|
|
169
|
+
positionId: string;
|
|
170
|
+
amount: Decimal;
|
|
171
|
+
isQuote: boolean;
|
|
172
|
+
clmmPool: string;
|
|
173
|
+
slippage: number;
|
|
174
|
+
};
|
|
175
|
+
type PositionTopUpCokenParams = {
|
|
176
|
+
marketId: string;
|
|
177
|
+
positionId: string;
|
|
178
|
+
amount: Decimal;
|
|
179
|
+
isQuote: boolean;
|
|
180
|
+
clmmPool: string;
|
|
181
|
+
slippage: number;
|
|
182
|
+
};
|
|
167
183
|
|
|
168
184
|
declare class SuiLendModule {
|
|
169
185
|
private sdk;
|
|
@@ -561,6 +577,14 @@ declare class LeverageModules {
|
|
|
561
577
|
* 杠杆仓位平仓
|
|
562
578
|
*/
|
|
563
579
|
leveragePositionClose: (params: PositionCloseParams, txb?: Transaction) => Promise<Transaction>;
|
|
580
|
+
/**
|
|
581
|
+
* 杠杆仓位偿还
|
|
582
|
+
*/
|
|
583
|
+
positionRepay: (params: PositionRepayParams) => Promise<Transaction>;
|
|
584
|
+
/**
|
|
585
|
+
* 杠杆仓位追加保证金
|
|
586
|
+
*/
|
|
587
|
+
positionTopUpCoken: (params: PositionTopUpCokenParams) => Promise<Transaction>;
|
|
564
588
|
/**
|
|
565
589
|
* 计算闪电贷参数
|
|
566
590
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -164,6 +164,22 @@ type PositionManageLeverageParams = {
|
|
|
164
164
|
targetLeverage: number;
|
|
165
165
|
slippage: number;
|
|
166
166
|
};
|
|
167
|
+
type PositionRepayParams = {
|
|
168
|
+
marketId: string;
|
|
169
|
+
positionId: string;
|
|
170
|
+
amount: Decimal;
|
|
171
|
+
isQuote: boolean;
|
|
172
|
+
clmmPool: string;
|
|
173
|
+
slippage: number;
|
|
174
|
+
};
|
|
175
|
+
type PositionTopUpCokenParams = {
|
|
176
|
+
marketId: string;
|
|
177
|
+
positionId: string;
|
|
178
|
+
amount: Decimal;
|
|
179
|
+
isQuote: boolean;
|
|
180
|
+
clmmPool: string;
|
|
181
|
+
slippage: number;
|
|
182
|
+
};
|
|
167
183
|
|
|
168
184
|
declare class SuiLendModule {
|
|
169
185
|
private sdk;
|
|
@@ -561,6 +577,14 @@ declare class LeverageModules {
|
|
|
561
577
|
* 杠杆仓位平仓
|
|
562
578
|
*/
|
|
563
579
|
leveragePositionClose: (params: PositionCloseParams, txb?: Transaction) => Promise<Transaction>;
|
|
580
|
+
/**
|
|
581
|
+
* 杠杆仓位偿还
|
|
582
|
+
*/
|
|
583
|
+
positionRepay: (params: PositionRepayParams) => Promise<Transaction>;
|
|
584
|
+
/**
|
|
585
|
+
* 杠杆仓位追加保证金
|
|
586
|
+
*/
|
|
587
|
+
positionTopUpCoken: (params: PositionTopUpCokenParams) => Promise<Transaction>;
|
|
564
588
|
/**
|
|
565
589
|
* 计算闪电贷参数
|
|
566
590
|
*/
|