lll-sdk 0.0.0-experimental-20250902111900 → 0.0.0-experimental-20250902112744
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 +6 -6
- package/dist/index.d.ts +6 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SdkWrapper, BaseSdkOptions, Package } from '@cetusprotocol/common-sdk';
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_transactions from '@mysten/sui/transactions';
|
|
3
|
+
import { Transaction } from '@mysten/sui/transactions';
|
|
3
4
|
import { SuilendClient as SuilendClient$1 } from '@suilend/sdk/client';
|
|
4
5
|
import { SuilendClient, ParsedLendingMarket, ParsedReserve } from '@suilend/sdk';
|
|
5
6
|
import { CoinMetadata } from '@mysten/sui/client';
|
|
6
7
|
import { Reserve } from '@suilend/sdk/_generated/suilend/reserve/structs';
|
|
7
8
|
import BN from 'bn.js';
|
|
8
9
|
import Decimal from 'decimal.js';
|
|
9
|
-
import { Transaction } from '@mysten/sui/transactions';
|
|
10
10
|
import BigNumber$1 from 'bignumber.js';
|
|
11
11
|
import * as _cetusprotocol_aggregator_sdk from '@cetusprotocol/aggregator-sdk';
|
|
12
12
|
import { AggregatorClient } from '@cetusprotocol/aggregator-sdk';
|
|
@@ -212,7 +212,7 @@ declare class SuiLendModule {
|
|
|
212
212
|
netValueUsd: any;
|
|
213
213
|
rewardMap: any;
|
|
214
214
|
} | undefined>;
|
|
215
|
-
createObligation: (transaction: Transaction) => Promise<
|
|
215
|
+
createObligation: (transaction: Transaction) => Promise<_mysten_sui_transactions.TransactionResult>;
|
|
216
216
|
refreshReservePrices: (tx: Transaction, priceObjectId: string, reserveArrayIndex: bigint) => Promise<void>;
|
|
217
217
|
getLatestPriceFeeds: (reserves: Reserve<string>[]) => Promise<Record<string, Price>>;
|
|
218
218
|
priceCheck(price: Price, age?: number): Price | undefined;
|
|
@@ -597,11 +597,11 @@ declare class LeverageModules {
|
|
|
597
597
|
/**
|
|
598
598
|
* 借出资产(SUI和非SUI统一处理)
|
|
599
599
|
*/
|
|
600
|
-
borrowAsset: (params: BorrowAssetParams, tx: Transaction) =>
|
|
600
|
+
borrowAsset: (params: BorrowAssetParams, tx: Transaction) => _mysten_sui_transactions.TransactionResult;
|
|
601
601
|
/**
|
|
602
602
|
* 提取资产(SUI和非SUI统一处理)
|
|
603
603
|
*/
|
|
604
|
-
withdrawAsset: (params: WithdrawAssetParams, tx: Transaction) =>
|
|
604
|
+
withdrawAsset: (params: WithdrawAssetParams, tx: Transaction) => _mysten_sui_transactions.TransactionResult;
|
|
605
605
|
/**
|
|
606
606
|
* 还款
|
|
607
607
|
*/
|
|
@@ -637,7 +637,7 @@ declare class LeverageModules {
|
|
|
637
637
|
/**
|
|
638
638
|
* 执行路由Swap
|
|
639
639
|
*/
|
|
640
|
-
routerSwap: (params: RouterSwapParams) => Promise<
|
|
640
|
+
routerSwap: (params: RouterSwapParams) => Promise<_mysten_sui_transactions.TransactionObjectArgument | undefined>;
|
|
641
641
|
/**
|
|
642
642
|
* 开仓预计算
|
|
643
643
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SdkWrapper, BaseSdkOptions, Package } from '@cetusprotocol/common-sdk';
|
|
2
|
-
import * as
|
|
2
|
+
import * as _mysten_sui_transactions from '@mysten/sui/transactions';
|
|
3
|
+
import { Transaction } from '@mysten/sui/transactions';
|
|
3
4
|
import { SuilendClient as SuilendClient$1 } from '@suilend/sdk/client';
|
|
4
5
|
import { SuilendClient, ParsedLendingMarket, ParsedReserve } from '@suilend/sdk';
|
|
5
6
|
import { CoinMetadata } from '@mysten/sui/client';
|
|
6
7
|
import { Reserve } from '@suilend/sdk/_generated/suilend/reserve/structs';
|
|
7
8
|
import BN from 'bn.js';
|
|
8
9
|
import Decimal from 'decimal.js';
|
|
9
|
-
import { Transaction } from '@mysten/sui/transactions';
|
|
10
10
|
import BigNumber$1 from 'bignumber.js';
|
|
11
11
|
import * as _cetusprotocol_aggregator_sdk from '@cetusprotocol/aggregator-sdk';
|
|
12
12
|
import { AggregatorClient } from '@cetusprotocol/aggregator-sdk';
|
|
@@ -212,7 +212,7 @@ declare class SuiLendModule {
|
|
|
212
212
|
netValueUsd: any;
|
|
213
213
|
rewardMap: any;
|
|
214
214
|
} | undefined>;
|
|
215
|
-
createObligation: (transaction: Transaction) => Promise<
|
|
215
|
+
createObligation: (transaction: Transaction) => Promise<_mysten_sui_transactions.TransactionResult>;
|
|
216
216
|
refreshReservePrices: (tx: Transaction, priceObjectId: string, reserveArrayIndex: bigint) => Promise<void>;
|
|
217
217
|
getLatestPriceFeeds: (reserves: Reserve<string>[]) => Promise<Record<string, Price>>;
|
|
218
218
|
priceCheck(price: Price, age?: number): Price | undefined;
|
|
@@ -597,11 +597,11 @@ declare class LeverageModules {
|
|
|
597
597
|
/**
|
|
598
598
|
* 借出资产(SUI和非SUI统一处理)
|
|
599
599
|
*/
|
|
600
|
-
borrowAsset: (params: BorrowAssetParams, tx: Transaction) =>
|
|
600
|
+
borrowAsset: (params: BorrowAssetParams, tx: Transaction) => _mysten_sui_transactions.TransactionResult;
|
|
601
601
|
/**
|
|
602
602
|
* 提取资产(SUI和非SUI统一处理)
|
|
603
603
|
*/
|
|
604
|
-
withdrawAsset: (params: WithdrawAssetParams, tx: Transaction) =>
|
|
604
|
+
withdrawAsset: (params: WithdrawAssetParams, tx: Transaction) => _mysten_sui_transactions.TransactionResult;
|
|
605
605
|
/**
|
|
606
606
|
* 还款
|
|
607
607
|
*/
|
|
@@ -637,7 +637,7 @@ declare class LeverageModules {
|
|
|
637
637
|
/**
|
|
638
638
|
* 执行路由Swap
|
|
639
639
|
*/
|
|
640
|
-
routerSwap: (params: RouterSwapParams) => Promise<
|
|
640
|
+
routerSwap: (params: RouterSwapParams) => Promise<_mysten_sui_transactions.TransactionObjectArgument | undefined>;
|
|
641
641
|
/**
|
|
642
642
|
* 开仓预计算
|
|
643
643
|
*/
|