haedal-vault-sdk 1.8.0 → 1.8.2
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 +7 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ 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
|
|
6
|
+
import * as _pythnetwork_price_service_sdk from '@pythnetwork/price-service-sdk';
|
|
7
|
+
import { SuiPriceServiceConnection, SuiPythClient } from '@pythnetwork/pyth-sui-js';
|
|
7
8
|
import * as CetusDlmmSDK from '@cetusprotocol/dlmm-sdk';
|
|
8
9
|
import CetusDlmmSDK__default, { DlmmPosition, BinLiquidityInfo, DlmmPool } from '@cetusprotocol/dlmm-sdk';
|
|
9
10
|
import BN from 'bn.js';
|
|
@@ -220,6 +221,7 @@ declare class PythPriceModule implements IModule {
|
|
|
220
221
|
protected pythConfigs: PythConfigs;
|
|
221
222
|
protected global_config_id: string;
|
|
222
223
|
protected pyth_oracle_id: string;
|
|
224
|
+
protected oracle_infos_handle: string;
|
|
223
225
|
protected vaults_published_at: string;
|
|
224
226
|
protected versioned_id: string;
|
|
225
227
|
protected isV2: boolean;
|
|
@@ -228,7 +230,7 @@ declare class PythPriceModule implements IModule {
|
|
|
228
230
|
*
|
|
229
231
|
* @param sdk - The VolatileVaultsSDK instance to be used for interacting with the service.
|
|
230
232
|
*/
|
|
231
|
-
constructor(sdk: VolatileVaultsSDK, pythConfigs: PythConfigs, vaults_published_at: string, global_config_id: string, pyth_oracle_id: string, versioned_id: string, isV2: boolean);
|
|
233
|
+
constructor(sdk: VolatileVaultsSDK, pythConfigs: PythConfigs, vaults_published_at: string, global_config_id: string, pyth_oracle_id: string, versioned_id: string, oracle_infos_handle: string, isV2: boolean);
|
|
232
234
|
/**
|
|
233
235
|
* Returns the associated SDK instance
|
|
234
236
|
*/
|
|
@@ -259,7 +261,7 @@ declare class PythPriceModule implements IModule {
|
|
|
259
261
|
*/
|
|
260
262
|
getLatestPrice(coinTypeList: string[], useCache?: boolean): Promise<Record<string, Price>>;
|
|
261
263
|
getPriceFeedsUpdateData(feedIds: string[]): Promise<Buffer[] | undefined>;
|
|
262
|
-
getLatestPriceFeeds(feedIds: string[]): Promise<
|
|
264
|
+
getLatestPriceFeeds(feedIds: string[]): Promise<_pythnetwork_price_service_sdk.PriceFeed[] | undefined>;
|
|
263
265
|
/**
|
|
264
266
|
* Builds the payload to update Pyth price feeds with the provided coin types and transaction.
|
|
265
267
|
*
|
|
@@ -605,6 +607,7 @@ type VaultsV2Configs = {
|
|
|
605
607
|
global_config_id: string;
|
|
606
608
|
versioned_id: string;
|
|
607
609
|
pyth_oracle_id: string;
|
|
610
|
+
oracle_infos_handle: string;
|
|
608
611
|
};
|
|
609
612
|
};
|
|
610
613
|
type ActionAcl = {
|
|
@@ -853,6 +856,7 @@ declare class VaultsModuleV2 implements IModule {
|
|
|
853
856
|
pool: VaultPool;
|
|
854
857
|
}>;
|
|
855
858
|
private calculatePositionValueRates;
|
|
859
|
+
private calculateDepositAmountsV2;
|
|
856
860
|
private calculateDepositAmounts;
|
|
857
861
|
private calculateDepositOtherSide;
|
|
858
862
|
private calculateDepositFlexibleBoth;
|