@turtleclub/hooks 0.5.0-beta.72 → 0.5.0-beta.73
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
CHANGED
|
@@ -644,6 +644,9 @@ async function getSupportedTokens(filters, options) {
|
|
|
644
644
|
if (filters?.limit !== void 0) params.append("limit", filters.limit.toString());
|
|
645
645
|
if (filters?.search) params.append("search", filters.search);
|
|
646
646
|
if (filters?.chainId) params.append("chainId", filters.chainId);
|
|
647
|
+
if (filters?.withStreamsMinAmount) {
|
|
648
|
+
params.append("withStreamsMinAmount", String(filters.withStreamsMinAmount));
|
|
649
|
+
}
|
|
647
650
|
if (filters?.ids?.length) {
|
|
648
651
|
filters.ids.forEach((id) => params.append("ids", id));
|
|
649
652
|
}
|
|
@@ -678,11 +681,12 @@ function useSupportedTokens({
|
|
|
678
681
|
limit = 20,
|
|
679
682
|
search,
|
|
680
683
|
chainId,
|
|
684
|
+
withStreamsMinAmount,
|
|
681
685
|
enabled = true,
|
|
682
686
|
ids = []
|
|
683
687
|
} = {}) {
|
|
684
688
|
const { data, isLoading, error, refetch } = (0, import_react_query3.useQuery)({
|
|
685
|
-
...supportedTokensQueries.list({ offset, limit, search, chainId, ids }),
|
|
689
|
+
...supportedTokensQueries.list({ offset, limit, search, chainId, withStreamsMinAmount, ids }),
|
|
686
690
|
...queryDefaults,
|
|
687
691
|
staleTime: 5 * 60 * 1e3,
|
|
688
692
|
// 1 minutes
|