@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.js
CHANGED
|
@@ -443,9 +443,9 @@ var queryKeys = {
|
|
|
443
443
|
{ owner }
|
|
444
444
|
]
|
|
445
445
|
},
|
|
446
|
-
|
|
446
|
+
oracle: {
|
|
447
447
|
getPythLatestPriceFeed: (pythPriceId) => [
|
|
448
|
-
"
|
|
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.
|
|
4808
|
+
queryKey: queryKeys.oracle.getPythLatestPriceFeed(priceId),
|
|
4809
4809
|
queryFn: async () => {
|
|
4810
4810
|
return await pythConnection.getLatestPriceFeeds([priceId]);
|
|
4811
4811
|
}
|