@scallop-io/sui-scallop-sdk 2.3.4 → 2.3.6

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
@@ -102,7 +102,7 @@ declare const queryKeys: {
102
102
  getNormalizedMoveFunction: (props?: QueryKeys.RPC.GetNormalizedMoveFunction) => (string | QueryKeys.RPC.GetNormalizedMoveFunction | undefined)[];
103
103
  };
104
104
  oracle: {
105
- getPythLatestPriceFeeds: (priceIds: string[], endpoint: string) => (string | string[])[];
105
+ getPythLatestPriceFeeds: (endpoint?: string, priceIds?: string[]) => (string | string[] | undefined)[];
106
106
  getCoinPrices: (priceIds: string[]) => (string | string[])[];
107
107
  };
108
108
  };
@@ -1393,7 +1393,7 @@ declare class ScallopUtils implements ScallopUtilsInterface {
1393
1393
  * Get asset coin price.
1394
1394
  *
1395
1395
  * @description
1396
- * The strategy for obtaining the price is to get it through API first,
1396
+ * The strategy for obtaining the price is to get it through pyth API first,
1397
1397
  * and then on-chain data if API cannot be retrieved.
1398
1398
  * Currently, we only support obtaining from pyth protocol, other
1399
1399
  * oracles will be supported in the future.
@@ -1401,7 +1401,7 @@ declare class ScallopUtils implements ScallopUtilsInterface {
1401
1401
  * @param assetCoinNames - Specific an array of support asset coin name.
1402
1402
  * @return Asset coin price.
1403
1403
  */
1404
- getCoinPrices(coinNames?: string[]): Promise<OptionalKeys<Record<string, number>>>;
1404
+ getCoinPrices(coinNames?: string[], useOnChainObjects?: boolean): Promise<OptionalKeys<Record<string, number>>>;
1405
1405
  /**
1406
1406
  * Convert apr to apy.
1407
1407
  *
package/dist/index.d.ts CHANGED
@@ -102,7 +102,7 @@ declare const queryKeys: {
102
102
  getNormalizedMoveFunction: (props?: QueryKeys.RPC.GetNormalizedMoveFunction) => (string | QueryKeys.RPC.GetNormalizedMoveFunction | undefined)[];
103
103
  };
104
104
  oracle: {
105
- getPythLatestPriceFeeds: (priceIds: string[], endpoint: string) => (string | string[])[];
105
+ getPythLatestPriceFeeds: (endpoint?: string, priceIds?: string[]) => (string | string[] | undefined)[];
106
106
  getCoinPrices: (priceIds: string[]) => (string | string[])[];
107
107
  };
108
108
  };
@@ -1393,7 +1393,7 @@ declare class ScallopUtils implements ScallopUtilsInterface {
1393
1393
  * Get asset coin price.
1394
1394
  *
1395
1395
  * @description
1396
- * The strategy for obtaining the price is to get it through API first,
1396
+ * The strategy for obtaining the price is to get it through pyth API first,
1397
1397
  * and then on-chain data if API cannot be retrieved.
1398
1398
  * Currently, we only support obtaining from pyth protocol, other
1399
1399
  * oracles will be supported in the future.
@@ -1401,7 +1401,7 @@ declare class ScallopUtils implements ScallopUtilsInterface {
1401
1401
  * @param assetCoinNames - Specific an array of support asset coin name.
1402
1402
  * @return Asset coin price.
1403
1403
  */
1404
- getCoinPrices(coinNames?: string[]): Promise<OptionalKeys<Record<string, number>>>;
1404
+ getCoinPrices(coinNames?: string[], useOnChainObjects?: boolean): Promise<OptionalKeys<Record<string, number>>>;
1405
1405
  /**
1406
1406
  * Convert apr to apy.
1407
1407
  *