timelock-sdk 0.0.261 → 0.0.262
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/client.cjs +3 -3
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +416 -405
- package/dist/client.d.ts +528 -517
- package/dist/client.js +3 -3
- package/dist/client.js.map +1 -1
- package/dist/{index-II5ZBr2H.d.cts → index-CnAweRnf.d.cts} +13 -13
- package/dist/{index-CPzYSjnh.d.ts → index-CsAM1JRX.d.ts} +9 -9
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -1424,7 +1424,7 @@ const useMarketPriceHistory = (marketAddr, resolution, startTimestamp, endTimest
|
|
|
1424
1424
|
//#endregion
|
|
1425
1425
|
//#region src/hooks/pool/usePoolVolume.ts
|
|
1426
1426
|
const usePoolVolume = (poolManager, poolKey) => {
|
|
1427
|
-
const {
|
|
1427
|
+
const { univ4GraphqlClient } = useTimelockConfig();
|
|
1428
1428
|
const poolId = (0, react.useMemo)(() => poolKey ? getPoolId(poolKey) : void 0, [poolKey]);
|
|
1429
1429
|
return (0, _tanstack_react_query.useQuery)({
|
|
1430
1430
|
queryKey: [
|
|
@@ -1433,7 +1433,7 @@ const usePoolVolume = (poolManager, poolKey) => {
|
|
|
1433
1433
|
(poolManager === null || poolManager === void 0 ? void 0 : poolManager.toLowerCase()) || "--"
|
|
1434
1434
|
],
|
|
1435
1435
|
queryFn: async () => {
|
|
1436
|
-
const result = await
|
|
1436
|
+
const result = await univ4GraphqlClient.GetPoolVolume({ poolId });
|
|
1437
1437
|
return {
|
|
1438
1438
|
...result.Pool[0],
|
|
1439
1439
|
volume0: BigInt(result.Pool[0].volume0),
|
|
@@ -1446,7 +1446,7 @@ const usePoolVolume = (poolManager, poolKey) => {
|
|
|
1446
1446
|
positionCount: BigInt(result.Pool[0].positionCount)
|
|
1447
1447
|
};
|
|
1448
1448
|
},
|
|
1449
|
-
enabled: !!poolId && !!
|
|
1449
|
+
enabled: !!poolId && !!univ4GraphqlClient
|
|
1450
1450
|
});
|
|
1451
1451
|
};
|
|
1452
1452
|
|