@reown/appkit-controllers 1.8.17-e9f7498b3f7938cfa4273429341ce0df8121b99a.0 → 1.8.17-fetchwallets-networkids.0

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.
@@ -1,4 +1,4 @@
1
- import { type ChainNamespace, type Connection } from '@reown/appkit-common';
1
+ import { type CaipNetworkId, type ChainNamespace, type Connection } from '@reown/appkit-common';
2
2
  import { type WalletItem } from '../src/utils/ConnectUtil.js';
3
3
  import type { UseAppKitAccountReturn, UseAppKitNetworkReturn } from '../src/utils/TypeUtil.js';
4
4
  export type { Connection } from '@reown/appkit-common';
@@ -25,6 +25,11 @@ interface DeleteRecentConnectionProps {
25
25
  address: string;
26
26
  connectorId: string;
27
27
  }
28
+ interface FetchWalletsProps {
29
+ page?: number;
30
+ query?: string;
31
+ caipNetworkIds?: CaipNetworkId[];
32
+ }
28
33
  export declare function useAppKitProvider<T>(chainNamespace: ChainNamespace): {
29
34
  walletProvider: T;
30
35
  walletProviderType: import("./index.js").ConnectorType | undefined;
@@ -120,10 +125,7 @@ export interface UseAppKitWalletsReturn {
120
125
  * @param options.page - Page number to fetch (default: 1)
121
126
  * @param options.query - Search query to filter wallets (default: '')
122
127
  */
123
- fetchWallets: (options?: {
124
- page?: number;
125
- query?: string;
126
- }) => Promise<void>;
128
+ fetchWallets: (options?: FetchWalletsProps) => Promise<void>;
127
129
  /**
128
130
  * Function to connect to a wallet.
129
131
  * - For WalletConnect wallets: initiates WC connection and returns the URI with the `wcUri` state.
@@ -1,4 +1,4 @@
1
- import type { ChainNamespace } from '@reown/appkit-common';
1
+ import type { CaipNetworkId, ChainNamespace } from '@reown/appkit-common';
2
2
  import { FetchUtil } from '../utils/FetchUtil.js';
3
3
  import type { ApiGetWalletsRequest, ProjectLimits, Tier, WcWallet } from '../utils/TypeUtil.js';
4
4
  export declare const api: FetchUtil;
@@ -35,6 +35,12 @@ interface PrefetchParameters {
35
35
  fetchNetworkImages?: boolean;
36
36
  fetchWalletRanks?: boolean;
37
37
  }
38
+ interface SearchWalletParams extends Pick<ApiGetWalletsRequest, 'search' | 'badge'> {
39
+ caipNetworkIds?: CaipNetworkId[];
40
+ }
41
+ interface FetchWalletsByPageParams extends Pick<ApiGetWalletsRequest, 'page'> {
42
+ caipNetworkIds?: CaipNetworkId[];
43
+ }
38
44
  type StateKey = keyof ApiControllerState;
39
45
  export declare const ApiController: {
40
46
  state: ApiControllerState;
@@ -71,11 +77,11 @@ export declare const ApiController: {
71
77
  prefetchWalletRanks(): Promise<void>;
72
78
  fetchFeaturedWallets(): Promise<void>;
73
79
  fetchRecommendedWallets(): Promise<void>;
74
- fetchWalletsByPage({ page }: Pick<ApiGetWalletsRequest, "page">): Promise<void>;
80
+ fetchWalletsByPage({ page, caipNetworkIds }: FetchWalletsByPageParams): Promise<void>;
75
81
  initializeExcludedWallets({ ids }: {
76
82
  ids: string[];
77
83
  }): Promise<void>;
78
- searchWallet({ search, badge }: Pick<ApiGetWalletsRequest, "search" | "badge">): Promise<void>;
84
+ searchWallet({ search, badge, caipNetworkIds }: SearchWalletParams): Promise<void>;
79
85
  initPromise(key: string, fetchFn: () => Promise<void>): Promise<unknown>;
80
86
  prefetch({ fetchConnectorImages, fetchFeaturedWallets, fetchRecommendedWallets, fetchNetworkImages, fetchWalletRanks }?: PrefetchParameters): Promise<PromiseSettledResult<unknown>[]>;
81
87
  prefetchAnalyticsConfig(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reown/appkit-controllers",
3
- "version": "1.8.17-e9f7498b3f7938cfa4273429341ce0df8121b99a.0",
3
+ "version": "1.8.17-fetchwallets-networkids.0",
4
4
  "sideEffects": false,
5
5
  "type": "module",
6
6
  "main": "./dist/esm/exports/index.js",
@@ -56,8 +56,8 @@
56
56
  "@walletconnect/universal-provider": "2.23.1",
57
57
  "valtio": "2.1.7",
58
58
  "viem": ">=2.37.9",
59
- "@reown/appkit-common": "1.8.17-e9f7498b3f7938cfa4273429341ce0df8121b99a.0",
60
- "@reown/appkit-wallet": "1.8.17-e9f7498b3f7938cfa4273429341ce0df8121b99a.0"
59
+ "@reown/appkit-common": "1.8.17-fetchwallets-networkids.0",
60
+ "@reown/appkit-wallet": "1.8.17-fetchwallets-networkids.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@vitest/coverage-v8": "2.1.9",