haedal-vault-sdk 1.8.4 → 2.0.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/index.d.ts +3 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,7 @@ import { PreSwapLpChangeParams, AggregatorClient } from '@cetusprotocol/aggregat
|
|
|
3
3
|
import { PaginationArgs, DataPage, CoinPairType, TableHandle, IModule as IModule$1, Package, SuiAddressType, FullClient, CoinAsset, SuiResource } from '@cetusprotocol/common-sdk';
|
|
4
4
|
import { Pool as Pool$1, CetusClmmSDK } from '@cetusprotocol/sui-clmm-sdk';
|
|
5
5
|
import { TransactionObjectArgument, Transaction } from '@mysten/sui/transactions';
|
|
6
|
-
import
|
|
7
|
-
import { SuiPriceServiceConnection, SuiPythClient } from '@pythnetwork/pyth-sui-js';
|
|
6
|
+
import { SuiPriceServiceConnection, SuiPythClient, PriceUpdate } from '@pythnetwork/pyth-sui-js';
|
|
8
7
|
import * as CetusDlmmSDK from '@cetusprotocol/dlmm-sdk';
|
|
9
8
|
import CetusDlmmSDK__default, { DlmmPosition, BinLiquidityInfo, DlmmPool } from '@cetusprotocol/dlmm-sdk';
|
|
10
9
|
import BN from 'bn.js';
|
|
@@ -263,7 +262,7 @@ declare class PythPriceModule implements IModule {
|
|
|
263
262
|
*/
|
|
264
263
|
getLatestPrice(coinTypeList: string[], useCache?: boolean): Promise<Record<string, Price>>;
|
|
265
264
|
getPriceFeedsUpdateData(feedIds: string[]): Promise<Buffer[] | undefined>;
|
|
266
|
-
getLatestPriceFeeds(feedIds: string[]): Promise<
|
|
265
|
+
getLatestPriceFeeds(feedIds: string[]): Promise<PriceUpdate | undefined>;
|
|
267
266
|
/**
|
|
268
267
|
* Builds the payload to update Pyth price feeds with the provided coin types and transaction.
|
|
269
268
|
*
|
|
@@ -1198,7 +1197,7 @@ token_amount: string, // The amount of LP tokens the wallet has in the pool
|
|
|
1198
1197
|
pool: Pool, // The pool containing liquidity and tick information
|
|
1199
1198
|
clmmPool: Pool$1): VaultsBalance;
|
|
1200
1199
|
declare function getVaultValidBalances(poolBalances: Balances[], feeList: Balances[], rewarderList: Balances[]): Balances[];
|
|
1201
|
-
declare function getUpdatePriceType(
|
|
1200
|
+
declare function getUpdatePriceType(rewarderList: string[], coin_type_a: string, coin_type_b: string): string[];
|
|
1202
1201
|
/**
|
|
1203
1202
|
* Adjusts the oracle price by applying the specified decimal (expo) to it.
|
|
1204
1203
|
* The price is scaled based on the expo value, which determines whether to scale the price up or down.
|