@dynamic-labs/wallet-book 0.0.0-exp20240808.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.
Files changed (117) hide show
  1. package/CHANGELOG.md +3746 -0
  2. package/LICENSE +21 -0
  3. package/README.md +142 -0
  4. package/_virtual/_tslib.cjs +49 -0
  5. package/_virtual/_tslib.js +44 -0
  6. package/package.json +38 -0
  7. package/src/build/index.d.ts +76 -0
  8. package/src/build/sources/firstParty/index.d.ts +2 -0
  9. package/src/build/sources/index.d.ts +4 -0
  10. package/src/build/sources/walletConnect/index.d.ts +128 -0
  11. package/src/build/sources/walletConnect/preprocessors.d.ts +14 -0
  12. package/src/build/sources/walletConnectOverrides/index.d.ts +197 -0
  13. package/src/build/sources/walletGroups/index.d.ts +2 -0
  14. package/src/components/BrandIcon.cjs +27 -0
  15. package/src/components/BrandIcon.d.ts +8 -0
  16. package/src/components/BrandIcon.js +23 -0
  17. package/src/components/WalletBookContext.cjs +14 -0
  18. package/src/components/WalletBookContext.d.ts +9 -0
  19. package/src/components/WalletBookContext.js +9 -0
  20. package/src/components/WalletIcon.cjs +34 -0
  21. package/src/components/WalletIcon.d.ts +8 -0
  22. package/src/components/WalletIcon.js +30 -0
  23. package/src/components/index.d.ts +3 -0
  24. package/src/helpers/findWalletBookWallet.cjs +18 -0
  25. package/src/helpers/findWalletBookWallet.d.ts +70 -0
  26. package/src/helpers/findWalletBookWallet.js +14 -0
  27. package/src/helpers/findWalletGroup.cjs +19 -0
  28. package/src/helpers/findWalletGroup.d.ts +18 -0
  29. package/src/helpers/findWalletGroup.js +15 -0
  30. package/src/helpers/findWalletGroupOverride.cjs +14 -0
  31. package/src/helpers/findWalletGroupOverride.d.ts +3 -0
  32. package/src/helpers/findWalletGroupOverride.js +10 -0
  33. package/src/helpers/getBrandIconUrl.cjs +15 -0
  34. package/src/helpers/getBrandIconUrl.d.ts +2 -0
  35. package/src/helpers/getBrandIconUrl.js +11 -0
  36. package/src/helpers/getWalletBookCdnUrl.cjs +14 -0
  37. package/src/helpers/getWalletBookCdnUrl.d.ts +1 -0
  38. package/src/helpers/getWalletBookCdnUrl.js +10 -0
  39. package/src/helpers/getWalletBookWallet.cjs +17 -0
  40. package/src/helpers/getWalletBookWallet.d.ts +2 -0
  41. package/src/helpers/getWalletBookWallet.js +13 -0
  42. package/src/helpers/getWalletGroup.cjs +13 -0
  43. package/src/helpers/getWalletGroup.d.ts +3 -0
  44. package/src/helpers/getWalletGroup.js +9 -0
  45. package/src/helpers/getWalletIconUrl.cjs +34 -0
  46. package/src/helpers/getWalletIconUrl.d.ts +3 -0
  47. package/src/helpers/getWalletIconUrl.js +29 -0
  48. package/src/helpers/getWalletLinks.cjs +34 -0
  49. package/src/helpers/getWalletLinks.d.ts +10 -0
  50. package/src/helpers/getWalletLinks.js +30 -0
  51. package/src/helpers/getWalletPrimaryColor.cjs +14 -0
  52. package/src/helpers/getWalletPrimaryColor.d.ts +2 -0
  53. package/src/helpers/getWalletPrimaryColor.js +10 -0
  54. package/src/helpers/index.d.ts +14 -0
  55. package/src/helpers/isWalletEventSupported.cjs +8 -0
  56. package/src/helpers/isWalletEventSupported.d.ts +2 -0
  57. package/src/helpers/isWalletEventSupported.js +4 -0
  58. package/src/helpers/isWalletMethodSupported.cjs +8 -0
  59. package/src/helpers/isWalletMethodSupported.d.ts +2 -0
  60. package/src/helpers/isWalletMethodSupported.js +4 -0
  61. package/src/helpers/logger.cjs +10 -0
  62. package/src/helpers/logger.d.ts +2 -0
  63. package/src/helpers/logger.js +6 -0
  64. package/src/helpers/renderTemplate.cjs +23 -0
  65. package/src/helpers/renderTemplate.d.ts +12 -0
  66. package/src/helpers/renderTemplate.js +19 -0
  67. package/src/hooks/index.d.ts +2 -0
  68. package/src/hooks/useWalletBookCdn.cjs +51 -0
  69. package/src/hooks/useWalletBookCdn.d.ts +88 -0
  70. package/src/hooks/useWalletBookCdn.js +47 -0
  71. package/src/hooks/useWalletBookContext.cjs +24 -0
  72. package/src/hooks/useWalletBookContext.d.ts +1 -0
  73. package/src/hooks/useWalletBookContext.js +20 -0
  74. package/src/index.cjs +44 -0
  75. package/src/index.d.ts +18 -0
  76. package/src/index.js +20 -0
  77. package/src/schemas/index.d.ts +3 -0
  78. package/src/schemas/utils/filterEmptyObject.cjs +13 -0
  79. package/src/schemas/utils/filterEmptyObject.d.ts +6 -0
  80. package/src/schemas/utils/filterEmptyObject.js +9 -0
  81. package/src/schemas/utils/nonEmptyString.cjs +13 -0
  82. package/src/schemas/utils/nonEmptyString.d.ts +5 -0
  83. package/src/schemas/utils/nonEmptyString.js +9 -0
  84. package/src/schemas/utils/nonEmptyStringArray.cjs +13 -0
  85. package/src/schemas/utils/nonEmptyStringArray.d.ts +5 -0
  86. package/src/schemas/utils/nonEmptyStringArray.js +9 -0
  87. package/src/schemas/utils/processWalletConnectNativeUrl.d.ts +1 -0
  88. package/src/schemas/utils/sortKeys.d.ts +5 -0
  89. package/src/schemas/utils/transformAndroidId.cjs +24 -0
  90. package/src/schemas/utils/transformAndroidId.d.ts +1 -0
  91. package/src/schemas/utils/transformAndroidId.js +20 -0
  92. package/src/schemas/utils/transformChromeExtensionId.cjs +21 -0
  93. package/src/schemas/utils/transformChromeExtensionId.d.ts +1 -0
  94. package/src/schemas/utils/transformChromeExtensionId.js +17 -0
  95. package/src/schemas/utils/transformEdgeExtensionId.cjs +21 -0
  96. package/src/schemas/utils/transformEdgeExtensionId.d.ts +1 -0
  97. package/src/schemas/utils/transformEdgeExtensionId.js +17 -0
  98. package/src/schemas/utils/transformFirefoxExtensionId.cjs +21 -0
  99. package/src/schemas/utils/transformFirefoxExtensionId.d.ts +1 -0
  100. package/src/schemas/utils/transformFirefoxExtensionId.js +17 -0
  101. package/src/schemas/utils/transformIosId.cjs +28 -0
  102. package/src/schemas/utils/transformIosId.d.ts +1 -0
  103. package/src/schemas/utils/transformIosId.js +24 -0
  104. package/src/schemas/walletBookSchema.cjs +17 -0
  105. package/src/schemas/walletBookSchema.d.ts +1369 -0
  106. package/src/schemas/walletBookSchema.js +13 -0
  107. package/src/schemas/walletConnectSourceSchema.cjs +78 -0
  108. package/src/schemas/walletConnectSourceSchema.d.ts +516 -0
  109. package/src/schemas/walletConnectSourceSchema.js +74 -0
  110. package/src/schemas/walletGroup.cjs +27 -0
  111. package/src/schemas/walletGroup.d.ts +113 -0
  112. package/src/schemas/walletGroup.js +23 -0
  113. package/src/schemas/walletSchema.cjs +141 -0
  114. package/src/schemas/walletSchema.d.ts +614 -0
  115. package/src/schemas/walletSchema.js +136 -0
  116. package/wallet-book-fallbacks.cjs +1082 -0
  117. package/wallet-book-fallbacks.js +1076 -0
@@ -0,0 +1,614 @@
1
+ import { z } from 'zod';
2
+ declare const injectedConfigSchema: z.ZodObject<{
3
+ chain: z.ZodString;
4
+ extensionLocators: z.ZodArray<z.ZodObject<{
5
+ flag: z.ZodString;
6
+ value: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ value: boolean;
9
+ flag: string;
10
+ }, {
11
+ flag: string;
12
+ value?: boolean | undefined;
13
+ }>, "many">;
14
+ /**
15
+ * Allows declaring which interface, if any, this wallet's implementation follows
16
+ * ex. Leather with https://btckit.org/
17
+ */
18
+ providerInterface: z.ZodOptional<z.ZodString>;
19
+ /**
20
+ * Allows declaring that this wallet is discoverable through the the Wallet Standard
21
+ * See https://github.com/wallet-standard/wallet-standard
22
+ * Also allows ignoring wallets that don't support the provided features
23
+ */
24
+ walletStandard: z.ZodOptional<z.ZodObject<{
25
+ features: z.ZodArray<z.ZodString, "many">;
26
+ name: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ features: string[];
29
+ name: string;
30
+ }, {
31
+ features: string[];
32
+ name: string;
33
+ }>>;
34
+ walletStandardLocators: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
+ locator: z.ZodString;
36
+ name: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ name: string;
39
+ locator: string;
40
+ }, {
41
+ name: string;
42
+ locator: string;
43
+ }>, "many">>;
44
+ windowLocations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, string[] | undefined>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ chain: string;
47
+ extensionLocators: {
48
+ value: boolean;
49
+ flag: string;
50
+ }[];
51
+ providerInterface?: string | undefined;
52
+ walletStandard?: {
53
+ features: string[];
54
+ name: string;
55
+ } | undefined;
56
+ walletStandardLocators?: {
57
+ name: string;
58
+ locator: string;
59
+ }[] | undefined;
60
+ windowLocations?: string[] | undefined;
61
+ }, {
62
+ chain: string;
63
+ extensionLocators: {
64
+ flag: string;
65
+ value?: boolean | undefined;
66
+ }[];
67
+ providerInterface?: string | undefined;
68
+ walletStandard?: {
69
+ features: string[];
70
+ name: string;
71
+ } | undefined;
72
+ walletStandardLocators?: {
73
+ name: string;
74
+ locator: string;
75
+ }[] | undefined;
76
+ windowLocations?: string[] | undefined;
77
+ }>;
78
+ export declare const brandSchema: z.ZodObject<{
79
+ alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
80
+ primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
81
+ spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ alt?: string | undefined;
84
+ primaryColor?: string | undefined;
85
+ spriteId?: string | undefined;
86
+ }, {
87
+ alt?: unknown;
88
+ primaryColor?: unknown;
89
+ spriteId?: unknown;
90
+ }>;
91
+ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
92
+ brand: z.ZodOptional<z.ZodObject<{
93
+ alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
94
+ primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
95
+ spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ alt?: string | undefined;
98
+ primaryColor?: string | undefined;
99
+ spriteId?: string | undefined;
100
+ }, {
101
+ alt?: unknown;
102
+ primaryColor?: unknown;
103
+ spriteId?: unknown;
104
+ }>>;
105
+ chainGroup: z.ZodOptional<z.ZodString>;
106
+ chains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
107
+ desktop: z.ZodEffects<z.ZodOptional<z.ZodObject<{
108
+ chromeId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
109
+ edgeId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
110
+ firefoxId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
111
+ native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
112
+ operaId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
113
+ safariId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
114
+ universal: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ chromeId?: string | undefined;
117
+ edgeId?: string | undefined;
118
+ firefoxId?: string | undefined;
119
+ native?: string | undefined;
120
+ operaId?: string | undefined;
121
+ safariId?: string | undefined;
122
+ universal?: string | undefined;
123
+ }, {
124
+ chromeId?: unknown;
125
+ edgeId?: unknown;
126
+ firefoxId?: unknown;
127
+ native?: unknown;
128
+ operaId?: unknown;
129
+ safariId?: unknown;
130
+ universal?: unknown;
131
+ }>>, {
132
+ chromeId?: string | undefined;
133
+ edgeId?: string | undefined;
134
+ firefoxId?: string | undefined;
135
+ native?: string | undefined;
136
+ operaId?: string | undefined;
137
+ safariId?: string | undefined;
138
+ universal?: string | undefined;
139
+ } | undefined, {
140
+ chromeId?: unknown;
141
+ edgeId?: unknown;
142
+ firefoxId?: unknown;
143
+ native?: unknown;
144
+ operaId?: unknown;
145
+ safariId?: unknown;
146
+ universal?: unknown;
147
+ } | undefined>;
148
+ eip6963Config: z.ZodOptional<z.ZodObject<{
149
+ rdns: z.ZodString;
150
+ }, "strip", z.ZodTypeAny, {
151
+ rdns: string;
152
+ }, {
153
+ rdns: string;
154
+ }>>;
155
+ filterFromWalletConnect: z.ZodOptional<z.ZodBoolean>;
156
+ group: z.ZodOptional<z.ZodString>;
157
+ /**
158
+ * Indicates which hardware wallets are enabled for this wallet
159
+ */
160
+ hardwareWallets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
161
+ injectedConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
162
+ chain: z.ZodString;
163
+ extensionLocators: z.ZodArray<z.ZodObject<{
164
+ flag: z.ZodString;
165
+ value: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ value: boolean;
168
+ flag: string;
169
+ }, {
170
+ flag: string;
171
+ value?: boolean | undefined;
172
+ }>, "many">;
173
+ /**
174
+ * Allows declaring which interface, if any, this wallet's implementation follows
175
+ * ex. Leather with https://btckit.org/
176
+ */
177
+ providerInterface: z.ZodOptional<z.ZodString>;
178
+ /**
179
+ * Allows declaring that this wallet is discoverable through the the Wallet Standard
180
+ * See https://github.com/wallet-standard/wallet-standard
181
+ * Also allows ignoring wallets that don't support the provided features
182
+ */
183
+ walletStandard: z.ZodOptional<z.ZodObject<{
184
+ features: z.ZodArray<z.ZodString, "many">;
185
+ name: z.ZodString;
186
+ }, "strip", z.ZodTypeAny, {
187
+ features: string[];
188
+ name: string;
189
+ }, {
190
+ features: string[];
191
+ name: string;
192
+ }>>;
193
+ walletStandardLocators: z.ZodOptional<z.ZodArray<z.ZodObject<{
194
+ locator: z.ZodString;
195
+ name: z.ZodString;
196
+ }, "strip", z.ZodTypeAny, {
197
+ name: string;
198
+ locator: string;
199
+ }, {
200
+ name: string;
201
+ locator: string;
202
+ }>, "many">>;
203
+ windowLocations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, string[] | undefined>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ chain: string;
206
+ extensionLocators: {
207
+ value: boolean;
208
+ flag: string;
209
+ }[];
210
+ providerInterface?: string | undefined;
211
+ walletStandard?: {
212
+ features: string[];
213
+ name: string;
214
+ } | undefined;
215
+ walletStandardLocators?: {
216
+ name: string;
217
+ locator: string;
218
+ }[] | undefined;
219
+ windowLocations?: string[] | undefined;
220
+ }, {
221
+ chain: string;
222
+ extensionLocators: {
223
+ flag: string;
224
+ value?: boolean | undefined;
225
+ }[];
226
+ providerInterface?: string | undefined;
227
+ walletStandard?: {
228
+ features: string[];
229
+ name: string;
230
+ } | undefined;
231
+ walletStandardLocators?: {
232
+ name: string;
233
+ locator: string;
234
+ }[] | undefined;
235
+ windowLocations?: string[] | undefined;
236
+ }>, "many">>;
237
+ mobile: z.ZodEffects<z.ZodOptional<z.ZodObject<{
238
+ android: z.ZodOptional<z.ZodNullable<z.ZodString>>;
239
+ androidId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
240
+ inAppBrowser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
241
+ ios: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
+ iosId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
243
+ native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
244
+ universal: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ android?: string | null | undefined;
247
+ androidId?: string | undefined;
248
+ inAppBrowser?: string | null | undefined;
249
+ ios?: string | null | undefined;
250
+ iosId?: string | undefined;
251
+ native?: string | undefined;
252
+ universal?: string | undefined;
253
+ }, {
254
+ android?: string | null | undefined;
255
+ androidId?: unknown;
256
+ inAppBrowser?: string | null | undefined;
257
+ ios?: string | null | undefined;
258
+ iosId?: unknown;
259
+ native?: unknown;
260
+ universal?: unknown;
261
+ }>>, {
262
+ android?: string | null | undefined;
263
+ androidId?: string | undefined;
264
+ inAppBrowser?: string | null | undefined;
265
+ ios?: string | null | undefined;
266
+ iosId?: string | undefined;
267
+ native?: string | undefined;
268
+ universal?: string | undefined;
269
+ } | undefined, {
270
+ android?: string | null | undefined;
271
+ androidId?: unknown;
272
+ inAppBrowser?: string | null | undefined;
273
+ ios?: string | null | undefined;
274
+ iosId?: unknown;
275
+ native?: unknown;
276
+ universal?: unknown;
277
+ } | undefined>;
278
+ mobileExperience: z.ZodOptional<z.ZodEnum<["in-app-browser", "redirect"]>>;
279
+ name: z.ZodString;
280
+ shortName: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
281
+ showOnlyIfInstalled: z.ZodOptional<z.ZodBoolean>;
282
+ switchNetworkOnlyFromWallet: z.ZodOptional<z.ZodBoolean>;
283
+ walletConnect: z.ZodEffects<z.ZodOptional<z.ZodObject<{
284
+ sdks: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ sdks?: string[] | undefined;
287
+ }, {
288
+ sdks?: unknown;
289
+ }>>, {
290
+ sdks?: string[] | undefined;
291
+ } | undefined, {
292
+ sdks?: unknown;
293
+ } | undefined>;
294
+ walletGroup: z.ZodOptional<z.ZodString>;
295
+ /**
296
+ * Indicates which connector methods/events are not supported, keyed by wallet type
297
+ */
298
+ walletLimitations: z.ZodOptional<z.ZodObject<{
299
+ browserExtension: z.ZodOptional<z.ZodObject<{
300
+ unsupportedEvents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
301
+ unsupportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ unsupportedEvents?: string[] | undefined;
304
+ unsupportedMethods?: string[] | undefined;
305
+ }, {
306
+ unsupportedEvents?: string[] | undefined;
307
+ unsupportedMethods?: string[] | undefined;
308
+ }>>;
309
+ mobile: z.ZodOptional<z.ZodObject<{
310
+ unsupportedEvents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
311
+ unsupportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ unsupportedEvents?: string[] | undefined;
314
+ unsupportedMethods?: string[] | undefined;
315
+ }, {
316
+ unsupportedEvents?: string[] | undefined;
317
+ unsupportedMethods?: string[] | undefined;
318
+ }>>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ browserExtension?: {
321
+ unsupportedEvents?: string[] | undefined;
322
+ unsupportedMethods?: string[] | undefined;
323
+ } | undefined;
324
+ mobile?: {
325
+ unsupportedEvents?: string[] | undefined;
326
+ unsupportedMethods?: string[] | undefined;
327
+ } | undefined;
328
+ }, {
329
+ browserExtension?: {
330
+ unsupportedEvents?: string[] | undefined;
331
+ unsupportedMethods?: string[] | undefined;
332
+ } | undefined;
333
+ mobile?: {
334
+ unsupportedEvents?: string[] | undefined;
335
+ unsupportedMethods?: string[] | undefined;
336
+ } | undefined;
337
+ }>>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ name: string;
340
+ brand?: {
341
+ alt?: string | undefined;
342
+ primaryColor?: string | undefined;
343
+ spriteId?: string | undefined;
344
+ } | undefined;
345
+ chainGroup?: string | undefined;
346
+ chains?: string[] | undefined;
347
+ desktop?: {
348
+ chromeId?: string | undefined;
349
+ edgeId?: string | undefined;
350
+ firefoxId?: string | undefined;
351
+ native?: string | undefined;
352
+ operaId?: string | undefined;
353
+ safariId?: string | undefined;
354
+ universal?: string | undefined;
355
+ } | undefined;
356
+ eip6963Config?: {
357
+ rdns: string;
358
+ } | undefined;
359
+ filterFromWalletConnect?: boolean | undefined;
360
+ group?: string | undefined;
361
+ hardwareWallets?: string[] | undefined;
362
+ injectedConfig?: {
363
+ chain: string;
364
+ extensionLocators: {
365
+ value: boolean;
366
+ flag: string;
367
+ }[];
368
+ providerInterface?: string | undefined;
369
+ walletStandard?: {
370
+ features: string[];
371
+ name: string;
372
+ } | undefined;
373
+ walletStandardLocators?: {
374
+ name: string;
375
+ locator: string;
376
+ }[] | undefined;
377
+ windowLocations?: string[] | undefined;
378
+ }[] | undefined;
379
+ mobile?: {
380
+ android?: string | null | undefined;
381
+ androidId?: string | undefined;
382
+ inAppBrowser?: string | null | undefined;
383
+ ios?: string | null | undefined;
384
+ iosId?: string | undefined;
385
+ native?: string | undefined;
386
+ universal?: string | undefined;
387
+ } | undefined;
388
+ mobileExperience?: "in-app-browser" | "redirect" | undefined;
389
+ shortName?: string | undefined;
390
+ showOnlyIfInstalled?: boolean | undefined;
391
+ switchNetworkOnlyFromWallet?: boolean | undefined;
392
+ walletConnect?: {
393
+ sdks?: string[] | undefined;
394
+ } | undefined;
395
+ walletGroup?: string | undefined;
396
+ walletLimitations?: {
397
+ browserExtension?: {
398
+ unsupportedEvents?: string[] | undefined;
399
+ unsupportedMethods?: string[] | undefined;
400
+ } | undefined;
401
+ mobile?: {
402
+ unsupportedEvents?: string[] | undefined;
403
+ unsupportedMethods?: string[] | undefined;
404
+ } | undefined;
405
+ } | undefined;
406
+ }, {
407
+ name: string;
408
+ brand?: {
409
+ alt?: unknown;
410
+ primaryColor?: unknown;
411
+ spriteId?: unknown;
412
+ } | undefined;
413
+ chainGroup?: string | undefined;
414
+ chains?: string[] | undefined;
415
+ desktop?: {
416
+ chromeId?: unknown;
417
+ edgeId?: unknown;
418
+ firefoxId?: unknown;
419
+ native?: unknown;
420
+ operaId?: unknown;
421
+ safariId?: unknown;
422
+ universal?: unknown;
423
+ } | undefined;
424
+ eip6963Config?: {
425
+ rdns: string;
426
+ } | undefined;
427
+ filterFromWalletConnect?: boolean | undefined;
428
+ group?: string | undefined;
429
+ hardwareWallets?: string[] | undefined;
430
+ injectedConfig?: {
431
+ chain: string;
432
+ extensionLocators: {
433
+ flag: string;
434
+ value?: boolean | undefined;
435
+ }[];
436
+ providerInterface?: string | undefined;
437
+ walletStandard?: {
438
+ features: string[];
439
+ name: string;
440
+ } | undefined;
441
+ walletStandardLocators?: {
442
+ name: string;
443
+ locator: string;
444
+ }[] | undefined;
445
+ windowLocations?: string[] | undefined;
446
+ }[] | undefined;
447
+ mobile?: {
448
+ android?: string | null | undefined;
449
+ androidId?: unknown;
450
+ inAppBrowser?: string | null | undefined;
451
+ ios?: string | null | undefined;
452
+ iosId?: unknown;
453
+ native?: unknown;
454
+ universal?: unknown;
455
+ } | undefined;
456
+ mobileExperience?: "in-app-browser" | "redirect" | undefined;
457
+ shortName?: unknown;
458
+ showOnlyIfInstalled?: boolean | undefined;
459
+ switchNetworkOnlyFromWallet?: boolean | undefined;
460
+ walletConnect?: {
461
+ sdks?: unknown;
462
+ } | undefined;
463
+ walletGroup?: string | undefined;
464
+ walletLimitations?: {
465
+ browserExtension?: {
466
+ unsupportedEvents?: string[] | undefined;
467
+ unsupportedMethods?: string[] | undefined;
468
+ } | undefined;
469
+ mobile?: {
470
+ unsupportedEvents?: string[] | undefined;
471
+ unsupportedMethods?: string[] | undefined;
472
+ } | undefined;
473
+ } | undefined;
474
+ }>, {
475
+ name: string;
476
+ brand?: {
477
+ alt?: string | undefined;
478
+ primaryColor?: string | undefined;
479
+ spriteId?: string | undefined;
480
+ } | undefined;
481
+ chainGroup?: string | undefined;
482
+ chains?: string[] | undefined;
483
+ desktop?: {
484
+ chromeId?: string | undefined;
485
+ edgeId?: string | undefined;
486
+ firefoxId?: string | undefined;
487
+ native?: string | undefined;
488
+ operaId?: string | undefined;
489
+ safariId?: string | undefined;
490
+ universal?: string | undefined;
491
+ } | undefined;
492
+ eip6963Config?: {
493
+ rdns: string;
494
+ } | undefined;
495
+ filterFromWalletConnect?: boolean | undefined;
496
+ group?: string | undefined;
497
+ hardwareWallets?: string[] | undefined;
498
+ injectedConfig?: {
499
+ chain: string;
500
+ extensionLocators: {
501
+ value: boolean;
502
+ flag: string;
503
+ }[];
504
+ providerInterface?: string | undefined;
505
+ walletStandard?: {
506
+ features: string[];
507
+ name: string;
508
+ } | undefined;
509
+ walletStandardLocators?: {
510
+ name: string;
511
+ locator: string;
512
+ }[] | undefined;
513
+ windowLocations?: string[] | undefined;
514
+ }[] | undefined;
515
+ mobile?: {
516
+ android?: string | null | undefined;
517
+ androidId?: string | undefined;
518
+ inAppBrowser?: string | null | undefined;
519
+ ios?: string | null | undefined;
520
+ iosId?: string | undefined;
521
+ native?: string | undefined;
522
+ universal?: string | undefined;
523
+ } | undefined;
524
+ mobileExperience?: "in-app-browser" | "redirect" | undefined;
525
+ shortName?: string | undefined;
526
+ showOnlyIfInstalled?: boolean | undefined;
527
+ switchNetworkOnlyFromWallet?: boolean | undefined;
528
+ walletConnect?: {
529
+ sdks?: string[] | undefined;
530
+ } | undefined;
531
+ walletGroup?: string | undefined;
532
+ walletLimitations?: {
533
+ browserExtension?: {
534
+ unsupportedEvents?: string[] | undefined;
535
+ unsupportedMethods?: string[] | undefined;
536
+ } | undefined;
537
+ mobile?: {
538
+ unsupportedEvents?: string[] | undefined;
539
+ unsupportedMethods?: string[] | undefined;
540
+ } | undefined;
541
+ } | undefined;
542
+ }, unknown>, {
543
+ name: string;
544
+ brand?: {
545
+ alt?: string | undefined;
546
+ primaryColor?: string | undefined;
547
+ spriteId?: string | undefined;
548
+ } | undefined;
549
+ chainGroup?: string | undefined;
550
+ chains?: string[] | undefined;
551
+ desktop?: {
552
+ chromeId?: string | undefined;
553
+ edgeId?: string | undefined;
554
+ firefoxId?: string | undefined;
555
+ native?: string | undefined;
556
+ operaId?: string | undefined;
557
+ safariId?: string | undefined;
558
+ universal?: string | undefined;
559
+ } | undefined;
560
+ eip6963Config?: {
561
+ rdns: string;
562
+ } | undefined;
563
+ filterFromWalletConnect?: boolean | undefined;
564
+ group?: string | undefined;
565
+ hardwareWallets?: string[] | undefined;
566
+ injectedConfig?: {
567
+ chain: string;
568
+ extensionLocators: {
569
+ value: boolean;
570
+ flag: string;
571
+ }[];
572
+ providerInterface?: string | undefined;
573
+ walletStandard?: {
574
+ features: string[];
575
+ name: string;
576
+ } | undefined;
577
+ walletStandardLocators?: {
578
+ name: string;
579
+ locator: string;
580
+ }[] | undefined;
581
+ windowLocations?: string[] | undefined;
582
+ }[] | undefined;
583
+ mobile?: {
584
+ android?: string | null | undefined;
585
+ androidId?: string | undefined;
586
+ inAppBrowser?: string | null | undefined;
587
+ ios?: string | null | undefined;
588
+ iosId?: string | undefined;
589
+ native?: string | undefined;
590
+ universal?: string | undefined;
591
+ } | undefined;
592
+ mobileExperience?: "in-app-browser" | "redirect" | undefined;
593
+ shortName?: string | undefined;
594
+ showOnlyIfInstalled?: boolean | undefined;
595
+ switchNetworkOnlyFromWallet?: boolean | undefined;
596
+ walletConnect?: {
597
+ sdks?: string[] | undefined;
598
+ } | undefined;
599
+ walletGroup?: string | undefined;
600
+ walletLimitations?: {
601
+ browserExtension?: {
602
+ unsupportedEvents?: string[] | undefined;
603
+ unsupportedMethods?: string[] | undefined;
604
+ } | undefined;
605
+ mobile?: {
606
+ unsupportedEvents?: string[] | undefined;
607
+ unsupportedMethods?: string[] | undefined;
608
+ } | undefined;
609
+ } | undefined;
610
+ }, unknown>;
611
+ export type WalletSchema = z.infer<typeof walletSchema>;
612
+ export type WalletInjectedConfigSchema = z.infer<typeof injectedConfigSchema>;
613
+ export type WalletBrand = z.infer<typeof brandSchema>;
614
+ export {};