@turtleclub/hooks 0.5.0-beta.30 → 0.5.0-beta.32
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/index.cjs +7 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/v2/streams/hooks.ts +3 -7
- package/src/v2/streams/queries.ts +3 -3
- package/src/v2/streams/schemas.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -1406,7 +1406,8 @@ var getStreamWalletsQuerySchema = import_zod10.z.object({
|
|
|
1406
1406
|
var streamWalletDetailsSchema = import_zod10.z.object({
|
|
1407
1407
|
streamId: import_zod10.z.string(),
|
|
1408
1408
|
userAddress: import_zod10.z.string(),
|
|
1409
|
-
snapshots: import_zod10.z.array(streamWalletSnapshotSchema)
|
|
1409
|
+
snapshots: import_zod10.z.array(streamWalletSnapshotSchema),
|
|
1410
|
+
stream: streamSchema
|
|
1410
1411
|
});
|
|
1411
1412
|
var getStreamWalletDetailsResponseSchema = import_zod10.z.object({
|
|
1412
1413
|
wallet: streamWalletDetailsSchema
|
|
@@ -1495,9 +1496,9 @@ var streamsQueries = (0, import_query_key_factory10.createQueryKeys)("streams",
|
|
|
1495
1496
|
queryKey: [query],
|
|
1496
1497
|
queryFn: () => getStreamWallets(query)
|
|
1497
1498
|
}),
|
|
1498
|
-
walletDetails: (
|
|
1499
|
-
queryKey: [
|
|
1500
|
-
queryFn: () => getStreamWalletDetails(
|
|
1499
|
+
walletDetails: (query) => ({
|
|
1500
|
+
queryKey: [query],
|
|
1501
|
+
queryFn: () => getStreamWalletDetails(query.streamId, query.userAddress)
|
|
1501
1502
|
}),
|
|
1502
1503
|
supportedChains: {
|
|
1503
1504
|
queryKey: null,
|
|
@@ -2611,13 +2612,10 @@ function useStreamWallets({
|
|
|
2611
2612
|
return (0, import_react_query14.useQuery)(createQueryOptions(streamsQueries.wallets(query), options));
|
|
2612
2613
|
}
|
|
2613
2614
|
function useStreamWalletDetails({
|
|
2614
|
-
|
|
2615
|
-
userAddress,
|
|
2615
|
+
query,
|
|
2616
2616
|
options
|
|
2617
2617
|
}) {
|
|
2618
|
-
return (0, import_react_query14.useQuery)(
|
|
2619
|
-
createQueryOptions(streamsQueries.walletDetails({ streamId, userAddress }), options)
|
|
2620
|
-
);
|
|
2618
|
+
return (0, import_react_query14.useQuery)(createQueryOptions(streamsQueries.walletDetails(query), options));
|
|
2621
2619
|
}
|
|
2622
2620
|
function useStreamSupportedChains({
|
|
2623
2621
|
options
|