@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/dist/constants/queryKeys.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/constants/queryKeys.ts +2 -2
- package/src/models/scallopUtils.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -361,9 +361,9 @@ var queryKeys = {
|
|
|
361
361
|
{ owner }
|
|
362
362
|
]
|
|
363
363
|
},
|
|
364
|
-
|
|
364
|
+
oracle: {
|
|
365
365
|
getPythLatestPriceFeed: (pythPriceId) => [
|
|
366
|
-
"
|
|
366
|
+
"oracle",
|
|
367
367
|
"getPythPriceId",
|
|
368
368
|
{ pythPriceId }
|
|
369
369
|
]
|
|
@@ -4726,7 +4726,7 @@ var ScallopUtils = class {
|
|
|
4726
4726
|
const pythConnection = new SuiPriceServiceConnection(endpoint);
|
|
4727
4727
|
try {
|
|
4728
4728
|
const feed = await this.address.cache.queryClient.fetchQuery({
|
|
4729
|
-
queryKey: queryKeys.
|
|
4729
|
+
queryKey: queryKeys.oracle.getPythLatestPriceFeed(priceId),
|
|
4730
4730
|
queryFn: async () => {
|
|
4731
4731
|
return await pythConnection.getLatestPriceFeeds([priceId]);
|
|
4732
4732
|
}
|