@scallop-io/sui-scallop-sdk 1.3.0-alpha.5 → 1.3.0-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scallop-io/sui-scallop-sdk",
3
- "version": "1.3.0-alpha.5",
3
+ "version": "1.3.0-alpha.6",
4
4
  "description": "Typescript sdk for interacting with Scallop contract on SUI",
5
5
  "keywords": [
6
6
  "sui",
@@ -101,9 +101,9 @@ export const queryKeys = {
101
101
  { owner },
102
102
  ],
103
103
  },
104
- pyth: {
104
+ oracle: {
105
105
  getPythLatestPriceFeed: (pythPriceId?: string) => [
106
- 'pyth',
106
+ 'oracle',
107
107
  'getPythPriceId',
108
108
  { pythPriceId },
109
109
  ],
@@ -559,7 +559,7 @@ export class ScallopUtils {
559
559
  const pythConnection = new SuiPriceServiceConnection(endpoint);
560
560
  try {
561
561
  const feed = await this.address.cache.queryClient.fetchQuery({
562
- queryKey: queryKeys.pyth.getPythLatestPriceFeed(priceId),
562
+ queryKey: queryKeys.oracle.getPythLatestPriceFeed(priceId),
563
563
  queryFn: async () => {
564
564
  return await pythConnection.getLatestPriceFeeds([priceId]);
565
565
  },