@dynamic-labs/wallet-book 1.1.0-alpha.9 → 1.1.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.
- package/CHANGELOG.md +198 -0
- package/README.md +46 -1
- package/_virtual/_tslib.cjs +6 -1
- package/_virtual/_tslib.js +6 -1
- package/package.json +4 -2
- package/src/build/index.d.ts +4 -0
- package/src/build/sources/walletConnect/index.d.ts +28 -24
- package/src/build/sources/walletConnectOverrides/index.d.ts +12 -0
- package/src/components/BrandIcon.cjs +25 -0
- package/src/components/BrandIcon.d.ts +8 -0
- package/src/components/BrandIcon.js +21 -0
- package/src/components/WalletIcon.cjs +2 -1
- package/src/components/WalletIcon.js +2 -1
- package/src/components/index.d.ts +1 -0
- package/src/helpers/findWalletBookWallet.cjs +0 -2
- package/src/helpers/findWalletBookWallet.d.ts +4 -1
- package/src/helpers/findWalletBookWallet.js +0 -2
- package/src/helpers/findWalletGroup.d.ts +9 -0
- package/src/helpers/findWalletGroupOverride.cjs +13 -0
- package/src/helpers/findWalletGroupOverride.d.ts +3 -0
- package/src/helpers/findWalletGroupOverride.js +9 -0
- package/src/helpers/getBrandIconUrl.cjs +17 -0
- package/src/helpers/getBrandIconUrl.d.ts +2 -0
- package/src/helpers/getBrandIconUrl.js +13 -0
- package/src/helpers/getWalletBookWallet.cjs +18 -6
- package/src/helpers/getWalletBookWallet.js +18 -6
- package/src/helpers/getWalletIconUrl.cjs +3 -6
- package/src/helpers/getWalletIconUrl.js +3 -6
- package/src/helpers/index.d.ts +2 -0
- package/src/helpers/normalizeWalletName.cjs +7 -0
- package/src/helpers/normalizeWalletName.js +3 -0
- package/src/hooks/useWalletBookCdn.cjs +22 -16
- package/src/hooks/useWalletBookCdn.d.ts +13 -1
- package/src/hooks/useWalletBookCdn.js +22 -16
- package/src/hooks/useWalletBookContext.cjs +2 -0
- package/src/hooks/useWalletBookContext.js +2 -0
- package/src/index.cjs +6 -0
- package/src/index.d.ts +2 -2
- package/src/index.js +3 -0
- package/src/schemas/walletBookSchema.d.ts +213 -20
- package/src/schemas/walletGroup.cjs +6 -0
- package/src/schemas/walletGroup.d.ts +112 -2
- package/src/schemas/walletGroup.js +6 -0
- package/src/schemas/walletSchema.cjs +39 -20
- package/src/schemas/walletSchema.d.ts +77 -4
- package/src/schemas/walletSchema.js +39 -21
- package/wallet-book-fallbacks.cjs +217 -9
- package/wallet-book-fallbacks.js +217 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
3
|
-
brand: z.
|
|
3
|
+
brand: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
4
4
|
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
5
5
|
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
6
6
|
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
@@ -15,17 +15,18 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
15
15
|
imageId?: unknown;
|
|
16
16
|
primaryColor?: unknown;
|
|
17
17
|
spriteId?: unknown;
|
|
18
|
-
}
|
|
18
|
+
}>, {
|
|
19
19
|
alt?: string | undefined;
|
|
20
20
|
imageId?: string | undefined;
|
|
21
21
|
primaryColor?: string | undefined;
|
|
22
22
|
spriteId?: string | undefined;
|
|
23
|
-
}
|
|
23
|
+
}, {
|
|
24
24
|
alt?: unknown;
|
|
25
25
|
imageId?: unknown;
|
|
26
26
|
primaryColor?: unknown;
|
|
27
27
|
spriteId?: unknown;
|
|
28
|
-
}
|
|
28
|
+
}>>;
|
|
29
|
+
chainGroup: z.ZodOptional<z.ZodString>;
|
|
29
30
|
chains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
30
31
|
desktop: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
31
32
|
chromeId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
@@ -77,6 +78,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
77
78
|
}>>;
|
|
78
79
|
filterFromWalletConnect: z.ZodOptional<z.ZodBoolean>;
|
|
79
80
|
group: z.ZodOptional<z.ZodString>;
|
|
81
|
+
hardwareWallets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
80
82
|
injectedConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
81
83
|
chain: z.ZodString;
|
|
82
84
|
extensionLocators: z.ZodArray<z.ZodObject<{
|
|
@@ -89,6 +91,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
89
91
|
flag: string;
|
|
90
92
|
value?: boolean | undefined;
|
|
91
93
|
}>, "many">;
|
|
94
|
+
providerInterface: z.ZodOptional<z.ZodString>;
|
|
92
95
|
walletStandard: z.ZodOptional<z.ZodObject<{
|
|
93
96
|
features: z.ZodArray<z.ZodString, "many">;
|
|
94
97
|
name: z.ZodString;
|
|
@@ -106,6 +109,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
106
109
|
value: boolean;
|
|
107
110
|
flag: string;
|
|
108
111
|
}[];
|
|
112
|
+
providerInterface?: string | undefined;
|
|
109
113
|
walletStandard?: {
|
|
110
114
|
features: string[];
|
|
111
115
|
name: string;
|
|
@@ -117,6 +121,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
117
121
|
flag: string;
|
|
118
122
|
value?: boolean | undefined;
|
|
119
123
|
}[];
|
|
124
|
+
providerInterface?: string | undefined;
|
|
120
125
|
walletStandard?: {
|
|
121
126
|
features: string[];
|
|
122
127
|
name: string;
|
|
@@ -174,7 +179,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
174
179
|
} | undefined, {
|
|
175
180
|
sdks?: unknown;
|
|
176
181
|
} | undefined>;
|
|
177
|
-
|
|
182
|
+
walletGroup: z.ZodOptional<z.ZodString>;
|
|
178
183
|
}, "strip", z.ZodTypeAny, {
|
|
179
184
|
name: string;
|
|
180
185
|
brand?: {
|
|
@@ -183,6 +188,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
183
188
|
primaryColor?: string | undefined;
|
|
184
189
|
spriteId?: string | undefined;
|
|
185
190
|
} | undefined;
|
|
191
|
+
chainGroup?: string | undefined;
|
|
186
192
|
chains?: string[] | undefined;
|
|
187
193
|
desktop?: {
|
|
188
194
|
chromeId?: string | undefined;
|
|
@@ -198,12 +204,14 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
198
204
|
} | undefined;
|
|
199
205
|
filterFromWalletConnect?: boolean | undefined;
|
|
200
206
|
group?: string | undefined;
|
|
207
|
+
hardwareWallets?: string[] | undefined;
|
|
201
208
|
injectedConfig?: {
|
|
202
209
|
chain: string;
|
|
203
210
|
extensionLocators: {
|
|
204
211
|
value: boolean;
|
|
205
212
|
flag: string;
|
|
206
213
|
}[];
|
|
214
|
+
providerInterface?: string | undefined;
|
|
207
215
|
walletStandard?: {
|
|
208
216
|
features: string[];
|
|
209
217
|
name: string;
|
|
@@ -224,7 +232,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
224
232
|
walletConnect?: {
|
|
225
233
|
sdks?: string[] | undefined;
|
|
226
234
|
} | undefined;
|
|
227
|
-
|
|
235
|
+
walletGroup?: string | undefined;
|
|
228
236
|
}, {
|
|
229
237
|
name: string;
|
|
230
238
|
brand?: {
|
|
@@ -233,6 +241,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
233
241
|
primaryColor?: unknown;
|
|
234
242
|
spriteId?: unknown;
|
|
235
243
|
} | undefined;
|
|
244
|
+
chainGroup?: string | undefined;
|
|
236
245
|
chains?: string[] | undefined;
|
|
237
246
|
desktop?: {
|
|
238
247
|
chromeId?: unknown;
|
|
@@ -248,12 +257,14 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
248
257
|
} | undefined;
|
|
249
258
|
filterFromWalletConnect?: boolean | undefined;
|
|
250
259
|
group?: string | undefined;
|
|
260
|
+
hardwareWallets?: string[] | undefined;
|
|
251
261
|
injectedConfig?: {
|
|
252
262
|
chain: string;
|
|
253
263
|
extensionLocators: {
|
|
254
264
|
flag: string;
|
|
255
265
|
value?: boolean | undefined;
|
|
256
266
|
}[];
|
|
267
|
+
providerInterface?: string | undefined;
|
|
257
268
|
walletStandard?: {
|
|
258
269
|
features: string[];
|
|
259
270
|
name: string;
|
|
@@ -274,7 +285,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
274
285
|
walletConnect?: {
|
|
275
286
|
sdks?: unknown;
|
|
276
287
|
} | undefined;
|
|
277
|
-
|
|
288
|
+
walletGroup?: string | undefined;
|
|
278
289
|
}>, {
|
|
279
290
|
name: string;
|
|
280
291
|
brand?: {
|
|
@@ -283,6 +294,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
283
294
|
primaryColor?: string | undefined;
|
|
284
295
|
spriteId?: string | undefined;
|
|
285
296
|
} | undefined;
|
|
297
|
+
chainGroup?: string | undefined;
|
|
286
298
|
chains?: string[] | undefined;
|
|
287
299
|
desktop?: {
|
|
288
300
|
chromeId?: string | undefined;
|
|
@@ -298,12 +310,14 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
298
310
|
} | undefined;
|
|
299
311
|
filterFromWalletConnect?: boolean | undefined;
|
|
300
312
|
group?: string | undefined;
|
|
313
|
+
hardwareWallets?: string[] | undefined;
|
|
301
314
|
injectedConfig?: {
|
|
302
315
|
chain: string;
|
|
303
316
|
extensionLocators: {
|
|
304
317
|
value: boolean;
|
|
305
318
|
flag: string;
|
|
306
319
|
}[];
|
|
320
|
+
providerInterface?: string | undefined;
|
|
307
321
|
walletStandard?: {
|
|
308
322
|
features: string[];
|
|
309
323
|
name: string;
|
|
@@ -324,7 +338,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
324
338
|
walletConnect?: {
|
|
325
339
|
sdks?: string[] | undefined;
|
|
326
340
|
} | undefined;
|
|
327
|
-
|
|
341
|
+
walletGroup?: string | undefined;
|
|
328
342
|
}, unknown>, {
|
|
329
343
|
name: string;
|
|
330
344
|
brand?: {
|
|
@@ -333,6 +347,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
333
347
|
primaryColor?: string | undefined;
|
|
334
348
|
spriteId?: string | undefined;
|
|
335
349
|
} | undefined;
|
|
350
|
+
chainGroup?: string | undefined;
|
|
336
351
|
chains?: string[] | undefined;
|
|
337
352
|
desktop?: {
|
|
338
353
|
chromeId?: string | undefined;
|
|
@@ -348,12 +363,14 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
348
363
|
} | undefined;
|
|
349
364
|
filterFromWalletConnect?: boolean | undefined;
|
|
350
365
|
group?: string | undefined;
|
|
366
|
+
hardwareWallets?: string[] | undefined;
|
|
351
367
|
injectedConfig?: {
|
|
352
368
|
chain: string;
|
|
353
369
|
extensionLocators: {
|
|
354
370
|
value: boolean;
|
|
355
371
|
flag: string;
|
|
356
372
|
}[];
|
|
373
|
+
providerInterface?: string | undefined;
|
|
357
374
|
walletStandard?: {
|
|
358
375
|
features: string[];
|
|
359
376
|
name: string;
|
|
@@ -374,7 +391,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
374
391
|
walletConnect?: {
|
|
375
392
|
sdks?: string[] | undefined;
|
|
376
393
|
} | undefined;
|
|
377
|
-
|
|
394
|
+
walletGroup?: string | undefined;
|
|
378
395
|
}, unknown>>;
|
|
379
396
|
export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
380
397
|
groups: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -406,6 +423,51 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
406
423
|
} | undefined>;
|
|
407
424
|
key: z.ZodString;
|
|
408
425
|
name: z.ZodString;
|
|
426
|
+
walletOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
427
|
+
brand: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
428
|
+
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
429
|
+
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
430
|
+
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
431
|
+
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
432
|
+
}, "strip", z.ZodTypeAny, {
|
|
433
|
+
alt?: string | undefined;
|
|
434
|
+
imageId?: string | undefined;
|
|
435
|
+
primaryColor?: string | undefined;
|
|
436
|
+
spriteId?: string | undefined;
|
|
437
|
+
}, {
|
|
438
|
+
alt?: unknown;
|
|
439
|
+
imageId?: unknown;
|
|
440
|
+
primaryColor?: unknown;
|
|
441
|
+
spriteId?: unknown;
|
|
442
|
+
}>, {
|
|
443
|
+
alt?: string | undefined;
|
|
444
|
+
imageId?: string | undefined;
|
|
445
|
+
primaryColor?: string | undefined;
|
|
446
|
+
spriteId?: string | undefined;
|
|
447
|
+
}, {
|
|
448
|
+
alt?: unknown;
|
|
449
|
+
imageId?: unknown;
|
|
450
|
+
primaryColor?: unknown;
|
|
451
|
+
spriteId?: unknown;
|
|
452
|
+
}>>;
|
|
453
|
+
name: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
454
|
+
}, "strip", z.ZodTypeAny, {
|
|
455
|
+
brand?: {
|
|
456
|
+
alt?: string | undefined;
|
|
457
|
+
imageId?: string | undefined;
|
|
458
|
+
primaryColor?: string | undefined;
|
|
459
|
+
spriteId?: string | undefined;
|
|
460
|
+
} | undefined;
|
|
461
|
+
name?: string | undefined;
|
|
462
|
+
}, {
|
|
463
|
+
brand?: {
|
|
464
|
+
alt?: unknown;
|
|
465
|
+
imageId?: unknown;
|
|
466
|
+
primaryColor?: unknown;
|
|
467
|
+
spriteId?: unknown;
|
|
468
|
+
} | undefined;
|
|
469
|
+
name?: unknown;
|
|
470
|
+
}>>>;
|
|
409
471
|
}, "strip", z.ZodTypeAny, {
|
|
410
472
|
name: string;
|
|
411
473
|
key: string;
|
|
@@ -415,6 +477,15 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
415
477
|
primaryColor?: string | undefined;
|
|
416
478
|
spriteId?: string | undefined;
|
|
417
479
|
} | undefined;
|
|
480
|
+
walletOverrides?: Record<string, {
|
|
481
|
+
brand?: {
|
|
482
|
+
alt?: string | undefined;
|
|
483
|
+
imageId?: string | undefined;
|
|
484
|
+
primaryColor?: string | undefined;
|
|
485
|
+
spriteId?: string | undefined;
|
|
486
|
+
} | undefined;
|
|
487
|
+
name?: string | undefined;
|
|
488
|
+
}> | undefined;
|
|
418
489
|
}, {
|
|
419
490
|
name: string;
|
|
420
491
|
key: string;
|
|
@@ -424,9 +495,18 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
424
495
|
primaryColor?: unknown;
|
|
425
496
|
spriteId?: unknown;
|
|
426
497
|
} | undefined;
|
|
498
|
+
walletOverrides?: Record<string, {
|
|
499
|
+
brand?: {
|
|
500
|
+
alt?: unknown;
|
|
501
|
+
imageId?: unknown;
|
|
502
|
+
primaryColor?: unknown;
|
|
503
|
+
spriteId?: unknown;
|
|
504
|
+
} | undefined;
|
|
505
|
+
name?: unknown;
|
|
506
|
+
}> | undefined;
|
|
427
507
|
}>>;
|
|
428
508
|
wallets: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
429
|
-
brand: z.
|
|
509
|
+
brand: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
430
510
|
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
431
511
|
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
432
512
|
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
@@ -441,17 +521,18 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
441
521
|
imageId?: unknown;
|
|
442
522
|
primaryColor?: unknown;
|
|
443
523
|
spriteId?: unknown;
|
|
444
|
-
}
|
|
524
|
+
}>, {
|
|
445
525
|
alt?: string | undefined;
|
|
446
526
|
imageId?: string | undefined;
|
|
447
527
|
primaryColor?: string | undefined;
|
|
448
528
|
spriteId?: string | undefined;
|
|
449
|
-
}
|
|
529
|
+
}, {
|
|
450
530
|
alt?: unknown;
|
|
451
531
|
imageId?: unknown;
|
|
452
532
|
primaryColor?: unknown;
|
|
453
533
|
spriteId?: unknown;
|
|
454
|
-
}
|
|
534
|
+
}>>;
|
|
535
|
+
chainGroup: z.ZodOptional<z.ZodString>;
|
|
455
536
|
chains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
456
537
|
desktop: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
457
538
|
chromeId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
@@ -503,6 +584,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
503
584
|
}>>;
|
|
504
585
|
filterFromWalletConnect: z.ZodOptional<z.ZodBoolean>;
|
|
505
586
|
group: z.ZodOptional<z.ZodString>;
|
|
587
|
+
hardwareWallets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
506
588
|
injectedConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
507
589
|
chain: z.ZodString;
|
|
508
590
|
extensionLocators: z.ZodArray<z.ZodObject<{
|
|
@@ -515,6 +597,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
515
597
|
flag: string;
|
|
516
598
|
value?: boolean | undefined;
|
|
517
599
|
}>, "many">;
|
|
600
|
+
providerInterface: z.ZodOptional<z.ZodString>;
|
|
518
601
|
walletStandard: z.ZodOptional<z.ZodObject<{
|
|
519
602
|
features: z.ZodArray<z.ZodString, "many">;
|
|
520
603
|
name: z.ZodString;
|
|
@@ -532,6 +615,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
532
615
|
value: boolean;
|
|
533
616
|
flag: string;
|
|
534
617
|
}[];
|
|
618
|
+
providerInterface?: string | undefined;
|
|
535
619
|
walletStandard?: {
|
|
536
620
|
features: string[];
|
|
537
621
|
name: string;
|
|
@@ -543,6 +627,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
543
627
|
flag: string;
|
|
544
628
|
value?: boolean | undefined;
|
|
545
629
|
}[];
|
|
630
|
+
providerInterface?: string | undefined;
|
|
546
631
|
walletStandard?: {
|
|
547
632
|
features: string[];
|
|
548
633
|
name: string;
|
|
@@ -600,7 +685,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
600
685
|
} | undefined, {
|
|
601
686
|
sdks?: unknown;
|
|
602
687
|
} | undefined>;
|
|
603
|
-
|
|
688
|
+
walletGroup: z.ZodOptional<z.ZodString>;
|
|
604
689
|
}, "strip", z.ZodTypeAny, {
|
|
605
690
|
name: string;
|
|
606
691
|
brand?: {
|
|
@@ -609,6 +694,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
609
694
|
primaryColor?: string | undefined;
|
|
610
695
|
spriteId?: string | undefined;
|
|
611
696
|
} | undefined;
|
|
697
|
+
chainGroup?: string | undefined;
|
|
612
698
|
chains?: string[] | undefined;
|
|
613
699
|
desktop?: {
|
|
614
700
|
chromeId?: string | undefined;
|
|
@@ -624,12 +710,14 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
624
710
|
} | undefined;
|
|
625
711
|
filterFromWalletConnect?: boolean | undefined;
|
|
626
712
|
group?: string | undefined;
|
|
713
|
+
hardwareWallets?: string[] | undefined;
|
|
627
714
|
injectedConfig?: {
|
|
628
715
|
chain: string;
|
|
629
716
|
extensionLocators: {
|
|
630
717
|
value: boolean;
|
|
631
718
|
flag: string;
|
|
632
719
|
}[];
|
|
720
|
+
providerInterface?: string | undefined;
|
|
633
721
|
walletStandard?: {
|
|
634
722
|
features: string[];
|
|
635
723
|
name: string;
|
|
@@ -650,7 +738,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
650
738
|
walletConnect?: {
|
|
651
739
|
sdks?: string[] | undefined;
|
|
652
740
|
} | undefined;
|
|
653
|
-
|
|
741
|
+
walletGroup?: string | undefined;
|
|
654
742
|
}, {
|
|
655
743
|
name: string;
|
|
656
744
|
brand?: {
|
|
@@ -659,6 +747,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
659
747
|
primaryColor?: unknown;
|
|
660
748
|
spriteId?: unknown;
|
|
661
749
|
} | undefined;
|
|
750
|
+
chainGroup?: string | undefined;
|
|
662
751
|
chains?: string[] | undefined;
|
|
663
752
|
desktop?: {
|
|
664
753
|
chromeId?: unknown;
|
|
@@ -674,12 +763,14 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
674
763
|
} | undefined;
|
|
675
764
|
filterFromWalletConnect?: boolean | undefined;
|
|
676
765
|
group?: string | undefined;
|
|
766
|
+
hardwareWallets?: string[] | undefined;
|
|
677
767
|
injectedConfig?: {
|
|
678
768
|
chain: string;
|
|
679
769
|
extensionLocators: {
|
|
680
770
|
flag: string;
|
|
681
771
|
value?: boolean | undefined;
|
|
682
772
|
}[];
|
|
773
|
+
providerInterface?: string | undefined;
|
|
683
774
|
walletStandard?: {
|
|
684
775
|
features: string[];
|
|
685
776
|
name: string;
|
|
@@ -700,7 +791,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
700
791
|
walletConnect?: {
|
|
701
792
|
sdks?: unknown;
|
|
702
793
|
} | undefined;
|
|
703
|
-
|
|
794
|
+
walletGroup?: string | undefined;
|
|
704
795
|
}>, {
|
|
705
796
|
name: string;
|
|
706
797
|
brand?: {
|
|
@@ -709,6 +800,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
709
800
|
primaryColor?: string | undefined;
|
|
710
801
|
spriteId?: string | undefined;
|
|
711
802
|
} | undefined;
|
|
803
|
+
chainGroup?: string | undefined;
|
|
712
804
|
chains?: string[] | undefined;
|
|
713
805
|
desktop?: {
|
|
714
806
|
chromeId?: string | undefined;
|
|
@@ -724,12 +816,14 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
724
816
|
} | undefined;
|
|
725
817
|
filterFromWalletConnect?: boolean | undefined;
|
|
726
818
|
group?: string | undefined;
|
|
819
|
+
hardwareWallets?: string[] | undefined;
|
|
727
820
|
injectedConfig?: {
|
|
728
821
|
chain: string;
|
|
729
822
|
extensionLocators: {
|
|
730
823
|
value: boolean;
|
|
731
824
|
flag: string;
|
|
732
825
|
}[];
|
|
826
|
+
providerInterface?: string | undefined;
|
|
733
827
|
walletStandard?: {
|
|
734
828
|
features: string[];
|
|
735
829
|
name: string;
|
|
@@ -750,7 +844,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
750
844
|
walletConnect?: {
|
|
751
845
|
sdks?: string[] | undefined;
|
|
752
846
|
} | undefined;
|
|
753
|
-
|
|
847
|
+
walletGroup?: string | undefined;
|
|
754
848
|
}, unknown>, {
|
|
755
849
|
name: string;
|
|
756
850
|
brand?: {
|
|
@@ -759,6 +853,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
759
853
|
primaryColor?: string | undefined;
|
|
760
854
|
spriteId?: string | undefined;
|
|
761
855
|
} | undefined;
|
|
856
|
+
chainGroup?: string | undefined;
|
|
762
857
|
chains?: string[] | undefined;
|
|
763
858
|
desktop?: {
|
|
764
859
|
chromeId?: string | undefined;
|
|
@@ -774,12 +869,14 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
774
869
|
} | undefined;
|
|
775
870
|
filterFromWalletConnect?: boolean | undefined;
|
|
776
871
|
group?: string | undefined;
|
|
872
|
+
hardwareWallets?: string[] | undefined;
|
|
777
873
|
injectedConfig?: {
|
|
778
874
|
chain: string;
|
|
779
875
|
extensionLocators: {
|
|
780
876
|
value: boolean;
|
|
781
877
|
flag: string;
|
|
782
878
|
}[];
|
|
879
|
+
providerInterface?: string | undefined;
|
|
783
880
|
walletStandard?: {
|
|
784
881
|
features: string[];
|
|
785
882
|
name: string;
|
|
@@ -800,7 +897,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
800
897
|
walletConnect?: {
|
|
801
898
|
sdks?: string[] | undefined;
|
|
802
899
|
} | undefined;
|
|
803
|
-
|
|
900
|
+
walletGroup?: string | undefined;
|
|
804
901
|
}, unknown>>;
|
|
805
902
|
}, "strip", z.ZodTypeAny, {
|
|
806
903
|
groups: Record<string, {
|
|
@@ -812,6 +909,15 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
812
909
|
primaryColor?: string | undefined;
|
|
813
910
|
spriteId?: string | undefined;
|
|
814
911
|
} | undefined;
|
|
912
|
+
walletOverrides?: Record<string, {
|
|
913
|
+
brand?: {
|
|
914
|
+
alt?: string | undefined;
|
|
915
|
+
imageId?: string | undefined;
|
|
916
|
+
primaryColor?: string | undefined;
|
|
917
|
+
spriteId?: string | undefined;
|
|
918
|
+
} | undefined;
|
|
919
|
+
name?: string | undefined;
|
|
920
|
+
}> | undefined;
|
|
815
921
|
}>;
|
|
816
922
|
wallets: Record<string, {
|
|
817
923
|
name: string;
|
|
@@ -821,6 +927,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
821
927
|
primaryColor?: string | undefined;
|
|
822
928
|
spriteId?: string | undefined;
|
|
823
929
|
} | undefined;
|
|
930
|
+
chainGroup?: string | undefined;
|
|
824
931
|
chains?: string[] | undefined;
|
|
825
932
|
desktop?: {
|
|
826
933
|
chromeId?: string | undefined;
|
|
@@ -836,12 +943,14 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
836
943
|
} | undefined;
|
|
837
944
|
filterFromWalletConnect?: boolean | undefined;
|
|
838
945
|
group?: string | undefined;
|
|
946
|
+
hardwareWallets?: string[] | undefined;
|
|
839
947
|
injectedConfig?: {
|
|
840
948
|
chain: string;
|
|
841
949
|
extensionLocators: {
|
|
842
950
|
value: boolean;
|
|
843
951
|
flag: string;
|
|
844
952
|
}[];
|
|
953
|
+
providerInterface?: string | undefined;
|
|
845
954
|
walletStandard?: {
|
|
846
955
|
features: string[];
|
|
847
956
|
name: string;
|
|
@@ -862,7 +971,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
862
971
|
walletConnect?: {
|
|
863
972
|
sdks?: string[] | undefined;
|
|
864
973
|
} | undefined;
|
|
865
|
-
|
|
974
|
+
walletGroup?: string | undefined;
|
|
866
975
|
}>;
|
|
867
976
|
}, {
|
|
868
977
|
groups: Record<string, {
|
|
@@ -874,6 +983,15 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
874
983
|
primaryColor?: unknown;
|
|
875
984
|
spriteId?: unknown;
|
|
876
985
|
} | undefined;
|
|
986
|
+
walletOverrides?: Record<string, {
|
|
987
|
+
brand?: {
|
|
988
|
+
alt?: unknown;
|
|
989
|
+
imageId?: unknown;
|
|
990
|
+
primaryColor?: unknown;
|
|
991
|
+
spriteId?: unknown;
|
|
992
|
+
} | undefined;
|
|
993
|
+
name?: unknown;
|
|
994
|
+
}> | undefined;
|
|
877
995
|
}>;
|
|
878
996
|
wallets: Record<string, unknown>;
|
|
879
997
|
}>, {
|
|
@@ -886,6 +1004,15 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
886
1004
|
primaryColor?: string | undefined;
|
|
887
1005
|
spriteId?: string | undefined;
|
|
888
1006
|
} | undefined;
|
|
1007
|
+
walletOverrides?: Record<string, {
|
|
1008
|
+
brand?: {
|
|
1009
|
+
alt?: string | undefined;
|
|
1010
|
+
imageId?: string | undefined;
|
|
1011
|
+
primaryColor?: string | undefined;
|
|
1012
|
+
spriteId?: string | undefined;
|
|
1013
|
+
} | undefined;
|
|
1014
|
+
name?: string | undefined;
|
|
1015
|
+
}> | undefined;
|
|
889
1016
|
}>;
|
|
890
1017
|
wallets: Record<string, {
|
|
891
1018
|
name: string;
|
|
@@ -895,6 +1022,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
895
1022
|
primaryColor?: string | undefined;
|
|
896
1023
|
spriteId?: string | undefined;
|
|
897
1024
|
} | undefined;
|
|
1025
|
+
chainGroup?: string | undefined;
|
|
898
1026
|
chains?: string[] | undefined;
|
|
899
1027
|
desktop?: {
|
|
900
1028
|
chromeId?: string | undefined;
|
|
@@ -910,12 +1038,14 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
910
1038
|
} | undefined;
|
|
911
1039
|
filterFromWalletConnect?: boolean | undefined;
|
|
912
1040
|
group?: string | undefined;
|
|
1041
|
+
hardwareWallets?: string[] | undefined;
|
|
913
1042
|
injectedConfig?: {
|
|
914
1043
|
chain: string;
|
|
915
1044
|
extensionLocators: {
|
|
916
1045
|
value: boolean;
|
|
917
1046
|
flag: string;
|
|
918
1047
|
}[];
|
|
1048
|
+
providerInterface?: string | undefined;
|
|
919
1049
|
walletStandard?: {
|
|
920
1050
|
features: string[];
|
|
921
1051
|
name: string;
|
|
@@ -936,7 +1066,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
936
1066
|
walletConnect?: {
|
|
937
1067
|
sdks?: string[] | undefined;
|
|
938
1068
|
} | undefined;
|
|
939
|
-
|
|
1069
|
+
walletGroup?: string | undefined;
|
|
940
1070
|
}>;
|
|
941
1071
|
}, unknown>;
|
|
942
1072
|
export type WalletBookSchema = z.infer<typeof walletBookSchema>;
|
|
@@ -970,6 +1100,51 @@ declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
970
1100
|
} | undefined>;
|
|
971
1101
|
key: z.ZodString;
|
|
972
1102
|
name: z.ZodString;
|
|
1103
|
+
walletOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1104
|
+
brand: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1105
|
+
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
1106
|
+
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
1107
|
+
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
1108
|
+
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
1109
|
+
}, "strip", z.ZodTypeAny, {
|
|
1110
|
+
alt?: string | undefined;
|
|
1111
|
+
imageId?: string | undefined;
|
|
1112
|
+
primaryColor?: string | undefined;
|
|
1113
|
+
spriteId?: string | undefined;
|
|
1114
|
+
}, {
|
|
1115
|
+
alt?: unknown;
|
|
1116
|
+
imageId?: unknown;
|
|
1117
|
+
primaryColor?: unknown;
|
|
1118
|
+
spriteId?: unknown;
|
|
1119
|
+
}>, {
|
|
1120
|
+
alt?: string | undefined;
|
|
1121
|
+
imageId?: string | undefined;
|
|
1122
|
+
primaryColor?: string | undefined;
|
|
1123
|
+
spriteId?: string | undefined;
|
|
1124
|
+
}, {
|
|
1125
|
+
alt?: unknown;
|
|
1126
|
+
imageId?: unknown;
|
|
1127
|
+
primaryColor?: unknown;
|
|
1128
|
+
spriteId?: unknown;
|
|
1129
|
+
}>>;
|
|
1130
|
+
name: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
1131
|
+
}, "strip", z.ZodTypeAny, {
|
|
1132
|
+
brand?: {
|
|
1133
|
+
alt?: string | undefined;
|
|
1134
|
+
imageId?: string | undefined;
|
|
1135
|
+
primaryColor?: string | undefined;
|
|
1136
|
+
spriteId?: string | undefined;
|
|
1137
|
+
} | undefined;
|
|
1138
|
+
name?: string | undefined;
|
|
1139
|
+
}, {
|
|
1140
|
+
brand?: {
|
|
1141
|
+
alt?: unknown;
|
|
1142
|
+
imageId?: unknown;
|
|
1143
|
+
primaryColor?: unknown;
|
|
1144
|
+
spriteId?: unknown;
|
|
1145
|
+
} | undefined;
|
|
1146
|
+
name?: unknown;
|
|
1147
|
+
}>>>;
|
|
973
1148
|
}, "strip", z.ZodTypeAny, {
|
|
974
1149
|
name: string;
|
|
975
1150
|
key: string;
|
|
@@ -979,6 +1154,15 @@ declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
979
1154
|
primaryColor?: string | undefined;
|
|
980
1155
|
spriteId?: string | undefined;
|
|
981
1156
|
} | undefined;
|
|
1157
|
+
walletOverrides?: Record<string, {
|
|
1158
|
+
brand?: {
|
|
1159
|
+
alt?: string | undefined;
|
|
1160
|
+
imageId?: string | undefined;
|
|
1161
|
+
primaryColor?: string | undefined;
|
|
1162
|
+
spriteId?: string | undefined;
|
|
1163
|
+
} | undefined;
|
|
1164
|
+
name?: string | undefined;
|
|
1165
|
+
}> | undefined;
|
|
982
1166
|
}, {
|
|
983
1167
|
name: string;
|
|
984
1168
|
key: string;
|
|
@@ -988,6 +1172,15 @@ declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
988
1172
|
primaryColor?: unknown;
|
|
989
1173
|
spriteId?: unknown;
|
|
990
1174
|
} | undefined;
|
|
1175
|
+
walletOverrides?: Record<string, {
|
|
1176
|
+
brand?: {
|
|
1177
|
+
alt?: unknown;
|
|
1178
|
+
imageId?: unknown;
|
|
1179
|
+
primaryColor?: unknown;
|
|
1180
|
+
spriteId?: unknown;
|
|
1181
|
+
} | undefined;
|
|
1182
|
+
name?: unknown;
|
|
1183
|
+
}> | undefined;
|
|
991
1184
|
}>>;
|
|
992
1185
|
export type WalletGroupRecordSchema = z.infer<typeof WalletGroupRecordSchema>;
|
|
993
1186
|
export type WalletBookGroupSchema = z.infer<typeof walletBookSchema>['groups'];
|
|
@@ -4,7 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var zod = require('zod');
|
|
6
6
|
var nonEmptyString = require('./utils/nonEmptyString.cjs');
|
|
7
|
+
var walletSchema = require('./walletSchema.cjs');
|
|
7
8
|
|
|
9
|
+
const WalletOverrideEntrySchema = zod.z.object({
|
|
10
|
+
brand: walletSchema.brandSchema.optional(),
|
|
11
|
+
name: nonEmptyString.nonEmptyString,
|
|
12
|
+
});
|
|
8
13
|
const walletGroupSchema = zod.z.object({
|
|
9
14
|
brand: zod.z
|
|
10
15
|
.object({
|
|
@@ -27,6 +32,7 @@ const walletGroupSchema = zod.z.object({
|
|
|
27
32
|
}),
|
|
28
33
|
key: zod.z.string(),
|
|
29
34
|
name: zod.z.string(),
|
|
35
|
+
walletOverrides: zod.z.record(WalletOverrideEntrySchema).optional(),
|
|
30
36
|
});
|
|
31
37
|
|
|
32
38
|
exports.walletGroupSchema = walletGroupSchema;
|