@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.
@@ -53,7 +53,7 @@ export declare const queryKeys: {
53
53
  owner: string | undefined;
54
54
  })[];
55
55
  };
56
- pyth: {
56
+ oracle: {
57
57
  getPythLatestPriceFeed: (pythPriceId?: string) => (string | {
58
58
  pythPriceId: string | undefined;
59
59
  })[];
package/dist/index.js CHANGED
@@ -443,9 +443,9 @@ var queryKeys = {
443
443
  { owner }
444
444
  ]
445
445
  },
446
- pyth: {
446
+ oracle: {
447
447
  getPythLatestPriceFeed: (pythPriceId) => [
448
- "pyth",
448
+ "oracle",
449
449
  "getPythPriceId",
450
450
  { pythPriceId }
451
451
  ]
@@ -4805,7 +4805,7 @@ var ScallopUtils = class {
4805
4805
  const pythConnection = new import_pyth_sui_js.SuiPriceServiceConnection(endpoint);
4806
4806
  try {
4807
4807
  const feed = await this.address.cache.queryClient.fetchQuery({
4808
- queryKey: queryKeys.pyth.getPythLatestPriceFeed(priceId),
4808
+ queryKey: queryKeys.oracle.getPythLatestPriceFeed(priceId),
4809
4809
  queryFn: async () => {
4810
4810
  return await pythConnection.getLatestPriceFeeds([priceId]);
4811
4811
  }