lll-sdk 0.0.0-experimental-20250902194310 → 0.0.0-experimental-20250902202808

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 CHANGED
@@ -147,7 +147,8 @@ type PositionCloseParams = {
147
147
  positionId: string;
148
148
  };
149
149
  type CalculateOpenPositionParams = {
150
- marketId: string;
150
+ baseToken: string;
151
+ quoteToken: string;
151
152
  isLong: boolean;
152
153
  isQuote: boolean;
153
154
  depositAmount: Decimal;
@@ -666,30 +667,10 @@ declare class LeverageModules {
666
667
  * 开仓预计算
667
668
  */
668
669
  calculateOpenPosition: (params: CalculateOpenPositionParams) => Promise<{
669
- is_exceed: boolean;
670
- quoteID?: string;
671
- amountIn: BN;
672
- amountOut: BN;
673
- byAmountIn: boolean;
674
- paths: _cetusprotocol_aggregator_sdk.Path[];
675
- insufficientLiquidity: boolean;
676
- deviationRatio?: number;
677
- packages?: Map<string, string>;
678
- totalDeepFee?: number;
679
- error?: _cetusprotocol_aggregator_sdk.RouterError;
680
- overlayFee?: number;
681
- amount_in?: undefined;
682
- amount_out?: undefined;
683
- route_obj?: undefined;
684
- originRes?: undefined;
685
- } | {
686
- amount_in: any;
687
- amount_out: any;
688
- is_exceed: any;
689
- route_obj: any;
690
- byAmountIn: boolean;
691
- originRes: any;
692
- } | null>;
670
+ amountIn: any;
671
+ amountOut: any;
672
+ amountOutLimit: string;
673
+ }>;
693
674
  }
694
675
 
695
676
  interface SdkOptions extends BaseSdkOptions {
package/dist/index.d.ts CHANGED
@@ -147,7 +147,8 @@ type PositionCloseParams = {
147
147
  positionId: string;
148
148
  };
149
149
  type CalculateOpenPositionParams = {
150
- marketId: string;
150
+ baseToken: string;
151
+ quoteToken: string;
151
152
  isLong: boolean;
152
153
  isQuote: boolean;
153
154
  depositAmount: Decimal;
@@ -666,30 +667,10 @@ declare class LeverageModules {
666
667
  * 开仓预计算
667
668
  */
668
669
  calculateOpenPosition: (params: CalculateOpenPositionParams) => Promise<{
669
- is_exceed: boolean;
670
- quoteID?: string;
671
- amountIn: BN;
672
- amountOut: BN;
673
- byAmountIn: boolean;
674
- paths: _cetusprotocol_aggregator_sdk.Path[];
675
- insufficientLiquidity: boolean;
676
- deviationRatio?: number;
677
- packages?: Map<string, string>;
678
- totalDeepFee?: number;
679
- error?: _cetusprotocol_aggregator_sdk.RouterError;
680
- overlayFee?: number;
681
- amount_in?: undefined;
682
- amount_out?: undefined;
683
- route_obj?: undefined;
684
- originRes?: undefined;
685
- } | {
686
- amount_in: any;
687
- amount_out: any;
688
- is_exceed: any;
689
- route_obj: any;
690
- byAmountIn: boolean;
691
- originRes: any;
692
- } | null>;
670
+ amountIn: any;
671
+ amountOut: any;
672
+ amountOutLimit: string;
673
+ }>;
693
674
  }
694
675
 
695
676
  interface SdkOptions extends BaseSdkOptions {