@dynamic-labs/wallet-book 1.2.0-alpha.1 → 1.3.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 +29 -0
- package/package.json +4 -4
- package/src/build/index.d.ts +0 -1
- package/src/build/sources/walletConnect/index.d.ts +0 -1
- package/src/build/sources/walletConnectOverrides/index.d.ts +0 -72
- package/src/helpers/findWalletBookWallet.d.ts +0 -1
- package/src/helpers/findWalletGroup.d.ts +0 -2
- package/src/helpers/getBrandIconUrl.cjs +0 -3
- package/src/helpers/getBrandIconUrl.js +0 -3
- package/src/hooks/useWalletBookCdn.d.ts +0 -3
- package/src/schemas/walletBookSchema.d.ts +8 -114
- package/src/schemas/walletGroup.cjs +1 -13
- package/src/schemas/walletGroup.d.ts +4 -51
- package/src/schemas/walletGroup.js +1 -13
- package/src/schemas/walletSchema.cjs +1 -14
- package/src/schemas/walletSchema.d.ts +2 -32
- package/src/schemas/walletSchema.js +1 -14
- package/wallet-book-fallbacks.cjs +67 -5
- package/wallet-book-fallbacks.js +67 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,33 @@
|
|
|
1
1
|
|
|
2
|
+
## [1.3.0](https://github.com/dynamic-labs/DynamicAuth/compare/v1.2.0...v1.3.0) (2024-03-05)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add okx and bitget starknet wallets ([#4837](https://github.com/dynamic-labs/DynamicAuth/issues/4837)) ([181a111](https://github.com/dynamic-labs/DynamicAuth/commit/181a111b787306e5ac24616e5d3387db7db8fd18))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* improve offline error handling ([80386bf](https://github.com/dynamic-labs/DynamicAuth/commit/80386bfe538dc5a24be0692b3cdf49e8b264b41c))
|
|
13
|
+
|
|
14
|
+
## [1.2.0](https://github.com/dynamic-labs/DynamicAuth/compare/v1.2.0-alpha.1...v1.2.0) (2024-02-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* add networkValidationMode and deprecate enableForcedNetworkValidation ([#4776](https://github.com/dynamic-labs/DynamicAuth/issues/4776)) ([d826bf7](https://github.com/dynamic-labs/DynamicAuth/commit/d826bf704814e69466f811186499839472d107fc))
|
|
20
|
+
* include l1 fee to gas estimation ([#4743](https://github.com/dynamic-labs/DynamicAuth/issues/4743)) ([601a7ab](https://github.com/dynamic-labs/DynamicAuth/commit/601a7ab07791e89b07eb70f2960ff855eff84a87))
|
|
21
|
+
* add FilterChain helper function ([#4632](https://github.com/dynamic-labs/DynamicAuth/issues/4632)) ([56d474b](https://github.com/dynamic-labs/DynamicAuth/commit/56d474bf50a566774179ae929c4587ef841809bc))
|
|
22
|
+
* allow exporting embedded wallets key/seed using email auth session ([#4580](https://github.com/dynamic-labs/DynamicAuth/issues/4580)) ([7b7a826](https://github.com/dynamic-labs/DynamicAuth/commit/7b7a8265ff16057284a50046f2310e1abdca5e50))
|
|
23
|
+
* add retry email otp in headless ([#4639](https://github.com/dynamic-labs/DynamicAuth/issues/4639)) ([70630e2](https://github.com/dynamic-labs/DynamicAuth/commit/70630e28e4b370581add65fc5f69c41c28346cc6))
|
|
24
|
+
* add tabs to wallet list view ([#4619](https://github.com/dynamic-labs/DynamicAuth/issues/4619)) ([c552a8e](https://github.com/dynamic-labs/DynamicAuth/commit/c552a8ec9a484b6015e95e9b3b30cd1cd151a45b))
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* enable Banxa for all chains ([#4791](https://github.com/dynamic-labs/DynamicAuth/issues/4791)) ([#4823](https://github.com/dynamic-labs/DynamicAuth/issues/4823)) ([18f76f7](https://github.com/dynamic-labs/DynamicAuth/commit/18f76f7798c58009a70a8322e87e78047a6e33a0))
|
|
29
|
+
* fix universal links when using walletconnect ([#4773](https://github.com/dynamic-labs/DynamicAuth/issues/4773)) ([#4779](https://github.com/dynamic-labs/DynamicAuth/issues/4779)) ([3186ef8](https://github.com/dynamic-labs/DynamicAuth/commit/3186ef8896cebd750d2998ad9cc43e4bd11a594a))
|
|
30
|
+
|
|
2
31
|
## [1.2.0-alpha.1](https://github.com/dynamic-labs/DynamicAuth/compare/v1.2.0-alpha.0...v1.2.0-alpha.1) (2024-02-09)
|
|
3
32
|
|
|
4
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-book",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"zod": "3.22.4",
|
|
29
|
-
"@dynamic-labs/iconic": "1.
|
|
30
|
-
"@dynamic-labs/logger": "1.
|
|
31
|
-
"@dynamic-labs/utils": "1.
|
|
29
|
+
"@dynamic-labs/iconic": "1.3.0",
|
|
30
|
+
"@dynamic-labs/logger": "1.3.0",
|
|
31
|
+
"@dynamic-labs/utils": "1.3.0",
|
|
32
32
|
"util": "0.12.5"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
package/src/build/index.d.ts
CHANGED
|
@@ -12,14 +12,6 @@ export declare const applyOverrides: (sourceData: any, overrides?: {
|
|
|
12
12
|
value: null;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
dawn: {
|
|
16
|
-
brand: {
|
|
17
|
-
imageId: {
|
|
18
|
-
action: string;
|
|
19
|
-
value: null;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
15
|
exodus: {
|
|
24
16
|
group: {
|
|
25
17
|
action: string;
|
|
@@ -52,21 +44,7 @@ export declare const applyOverrides: (sourceData: any, overrides?: {
|
|
|
52
44
|
value: boolean;
|
|
53
45
|
};
|
|
54
46
|
};
|
|
55
|
-
lilico: {
|
|
56
|
-
brand: {
|
|
57
|
-
imageId: {
|
|
58
|
-
action: string;
|
|
59
|
-
value: null;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
47
|
metamask: {
|
|
64
|
-
brand: {
|
|
65
|
-
imageId: {
|
|
66
|
-
action: string;
|
|
67
|
-
value: null;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
48
|
walletConnect: {
|
|
71
49
|
sdks: {
|
|
72
50
|
action: string;
|
|
@@ -75,12 +53,6 @@ export declare const applyOverrides: (sourceData: any, overrides?: {
|
|
|
75
53
|
};
|
|
76
54
|
};
|
|
77
55
|
okxwallet: {
|
|
78
|
-
brand: {
|
|
79
|
-
imageId: {
|
|
80
|
-
action: string;
|
|
81
|
-
value: null;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
56
|
desktop: {
|
|
85
57
|
action: string;
|
|
86
58
|
value: {
|
|
@@ -96,10 +68,6 @@ export declare const applyOverrides: (sourceData: any, overrides?: {
|
|
|
96
68
|
};
|
|
97
69
|
rainbow: {
|
|
98
70
|
brand: {
|
|
99
|
-
imageId: {
|
|
100
|
-
action: string;
|
|
101
|
-
value: null;
|
|
102
|
-
};
|
|
103
71
|
spriteId: {
|
|
104
72
|
action: string;
|
|
105
73
|
value: string;
|
|
@@ -146,10 +114,6 @@ export declare const applyOverrides: (sourceData: any, overrides?: {
|
|
|
146
114
|
};
|
|
147
115
|
zengo: {
|
|
148
116
|
brand: {
|
|
149
|
-
imageId: {
|
|
150
|
-
action: string;
|
|
151
|
-
value: null;
|
|
152
|
-
};
|
|
153
117
|
primaryColor: {
|
|
154
118
|
action: string;
|
|
155
119
|
value: string;
|
|
@@ -182,14 +146,6 @@ export declare const walletConnectOverrides: {
|
|
|
182
146
|
value: null;
|
|
183
147
|
};
|
|
184
148
|
};
|
|
185
|
-
dawn: {
|
|
186
|
-
brand: {
|
|
187
|
-
imageId: {
|
|
188
|
-
action: string;
|
|
189
|
-
value: null;
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
};
|
|
193
149
|
exodus: {
|
|
194
150
|
group: {
|
|
195
151
|
action: string;
|
|
@@ -222,21 +178,7 @@ export declare const walletConnectOverrides: {
|
|
|
222
178
|
value: boolean;
|
|
223
179
|
};
|
|
224
180
|
};
|
|
225
|
-
lilico: {
|
|
226
|
-
brand: {
|
|
227
|
-
imageId: {
|
|
228
|
-
action: string;
|
|
229
|
-
value: null;
|
|
230
|
-
};
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
181
|
metamask: {
|
|
234
|
-
brand: {
|
|
235
|
-
imageId: {
|
|
236
|
-
action: string;
|
|
237
|
-
value: null;
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
182
|
walletConnect: {
|
|
241
183
|
sdks: {
|
|
242
184
|
action: string;
|
|
@@ -245,12 +187,6 @@ export declare const walletConnectOverrides: {
|
|
|
245
187
|
};
|
|
246
188
|
};
|
|
247
189
|
okxwallet: {
|
|
248
|
-
brand: {
|
|
249
|
-
imageId: {
|
|
250
|
-
action: string;
|
|
251
|
-
value: null;
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
190
|
desktop: {
|
|
255
191
|
action: string;
|
|
256
192
|
value: {
|
|
@@ -266,10 +202,6 @@ export declare const walletConnectOverrides: {
|
|
|
266
202
|
};
|
|
267
203
|
rainbow: {
|
|
268
204
|
brand: {
|
|
269
|
-
imageId: {
|
|
270
|
-
action: string;
|
|
271
|
-
value: null;
|
|
272
|
-
};
|
|
273
205
|
spriteId: {
|
|
274
206
|
action: string;
|
|
275
207
|
value: string;
|
|
@@ -316,10 +248,6 @@ export declare const walletConnectOverrides: {
|
|
|
316
248
|
};
|
|
317
249
|
zengo: {
|
|
318
250
|
brand: {
|
|
319
|
-
imageId: {
|
|
320
|
-
action: string;
|
|
321
|
-
value: null;
|
|
322
|
-
};
|
|
323
251
|
primaryColor: {
|
|
324
252
|
action: string;
|
|
325
253
|
value: string;
|
|
@@ -4,14 +4,12 @@ export declare const findWalletGroup: (walletBook: WalletBookSchema, walletGroup
|
|
|
4
4
|
name: string;
|
|
5
5
|
brand?: {
|
|
6
6
|
alt?: string | undefined;
|
|
7
|
-
imageId?: string | undefined;
|
|
8
7
|
primaryColor?: string | undefined;
|
|
9
8
|
spriteId?: string | undefined;
|
|
10
9
|
} | undefined;
|
|
11
10
|
walletOverrides?: Record<string, {
|
|
12
11
|
brand?: {
|
|
13
12
|
alt?: string | undefined;
|
|
14
|
-
imageId?: string | undefined;
|
|
15
13
|
primaryColor?: string | undefined;
|
|
16
14
|
spriteId?: string | undefined;
|
|
17
15
|
} | undefined;
|
|
@@ -8,9 +8,6 @@ const getBrandIconUrl = (brand) => {
|
|
|
8
8
|
if (brand.spriteId) {
|
|
9
9
|
return renderTemplate.renderTemplate('iconicUrl', brand.spriteId);
|
|
10
10
|
}
|
|
11
|
-
if (brand.imageId) {
|
|
12
|
-
return renderTemplate.renderTemplate('walletConnectUrl', brand.imageId);
|
|
13
|
-
}
|
|
14
11
|
return '';
|
|
15
12
|
};
|
|
16
13
|
|
|
@@ -4,14 +4,12 @@ export declare const useWalletBookCdn: () => {
|
|
|
4
4
|
name: string;
|
|
5
5
|
brand?: {
|
|
6
6
|
alt?: string | undefined;
|
|
7
|
-
imageId?: string | undefined;
|
|
8
7
|
primaryColor?: string | undefined;
|
|
9
8
|
spriteId?: string | undefined;
|
|
10
9
|
} | undefined;
|
|
11
10
|
walletOverrides?: Record<string, {
|
|
12
11
|
brand?: {
|
|
13
12
|
alt?: string | undefined;
|
|
14
|
-
imageId?: string | undefined;
|
|
15
13
|
primaryColor?: string | undefined;
|
|
16
14
|
spriteId?: string | undefined;
|
|
17
15
|
} | undefined;
|
|
@@ -22,7 +20,6 @@ export declare const useWalletBookCdn: () => {
|
|
|
22
20
|
name: string;
|
|
23
21
|
brand?: {
|
|
24
22
|
alt?: string | undefined;
|
|
25
|
-
imageId?: string | undefined;
|
|
26
23
|
primaryColor?: string | undefined;
|
|
27
24
|
spriteId?: string | undefined;
|
|
28
25
|
} | undefined;
|
|
@@ -1,28 +1,15 @@
|
|
|
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.ZodOptional<z.
|
|
3
|
+
brand: z.ZodOptional<z.ZodObject<{
|
|
4
4
|
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
5
|
-
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
6
5
|
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
7
6
|
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
8
7
|
}, "strip", z.ZodTypeAny, {
|
|
9
8
|
alt?: string | undefined;
|
|
10
|
-
imageId?: string | undefined;
|
|
11
9
|
primaryColor?: string | undefined;
|
|
12
10
|
spriteId?: string | undefined;
|
|
13
11
|
}, {
|
|
14
12
|
alt?: unknown;
|
|
15
|
-
imageId?: unknown;
|
|
16
|
-
primaryColor?: unknown;
|
|
17
|
-
spriteId?: unknown;
|
|
18
|
-
}>, {
|
|
19
|
-
alt?: string | undefined;
|
|
20
|
-
imageId?: string | undefined;
|
|
21
|
-
primaryColor?: string | undefined;
|
|
22
|
-
spriteId?: string | undefined;
|
|
23
|
-
}, {
|
|
24
|
-
alt?: unknown;
|
|
25
|
-
imageId?: unknown;
|
|
26
13
|
primaryColor?: unknown;
|
|
27
14
|
spriteId?: unknown;
|
|
28
15
|
}>>;
|
|
@@ -184,7 +171,6 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
184
171
|
name: string;
|
|
185
172
|
brand?: {
|
|
186
173
|
alt?: string | undefined;
|
|
187
|
-
imageId?: string | undefined;
|
|
188
174
|
primaryColor?: string | undefined;
|
|
189
175
|
spriteId?: string | undefined;
|
|
190
176
|
} | undefined;
|
|
@@ -237,7 +223,6 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
237
223
|
name: string;
|
|
238
224
|
brand?: {
|
|
239
225
|
alt?: unknown;
|
|
240
|
-
imageId?: unknown;
|
|
241
226
|
primaryColor?: unknown;
|
|
242
227
|
spriteId?: unknown;
|
|
243
228
|
} | undefined;
|
|
@@ -290,7 +275,6 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
290
275
|
name: string;
|
|
291
276
|
brand?: {
|
|
292
277
|
alt?: string | undefined;
|
|
293
|
-
imageId?: string | undefined;
|
|
294
278
|
primaryColor?: string | undefined;
|
|
295
279
|
spriteId?: string | undefined;
|
|
296
280
|
} | undefined;
|
|
@@ -343,7 +327,6 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
343
327
|
name: string;
|
|
344
328
|
brand?: {
|
|
345
329
|
alt?: string | undefined;
|
|
346
|
-
imageId?: string | undefined;
|
|
347
330
|
primaryColor?: string | undefined;
|
|
348
331
|
spriteId?: string | undefined;
|
|
349
332
|
} | undefined;
|
|
@@ -395,58 +378,32 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
395
378
|
}, unknown>>;
|
|
396
379
|
export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
397
380
|
groups: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
398
|
-
brand: z.
|
|
381
|
+
brand: z.ZodOptional<z.ZodObject<{
|
|
399
382
|
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
400
|
-
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
401
383
|
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
402
384
|
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
403
385
|
}, "strip", z.ZodTypeAny, {
|
|
404
386
|
alt?: string | undefined;
|
|
405
|
-
imageId?: string | undefined;
|
|
406
387
|
primaryColor?: string | undefined;
|
|
407
388
|
spriteId?: string | undefined;
|
|
408
389
|
}, {
|
|
409
390
|
alt?: unknown;
|
|
410
|
-
imageId?: unknown;
|
|
411
391
|
primaryColor?: unknown;
|
|
412
392
|
spriteId?: unknown;
|
|
413
|
-
}
|
|
414
|
-
alt?: string | undefined;
|
|
415
|
-
imageId?: string | undefined;
|
|
416
|
-
primaryColor?: string | undefined;
|
|
417
|
-
spriteId?: string | undefined;
|
|
418
|
-
} | undefined, {
|
|
419
|
-
alt?: unknown;
|
|
420
|
-
imageId?: unknown;
|
|
421
|
-
primaryColor?: unknown;
|
|
422
|
-
spriteId?: unknown;
|
|
423
|
-
} | undefined>;
|
|
393
|
+
}>>;
|
|
424
394
|
key: z.ZodString;
|
|
425
395
|
name: z.ZodString;
|
|
426
396
|
walletOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
427
|
-
brand: z.ZodOptional<z.
|
|
397
|
+
brand: z.ZodOptional<z.ZodObject<{
|
|
428
398
|
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
429
|
-
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
430
399
|
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
431
400
|
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
432
401
|
}, "strip", z.ZodTypeAny, {
|
|
433
402
|
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
403
|
primaryColor?: string | undefined;
|
|
446
404
|
spriteId?: string | undefined;
|
|
447
405
|
}, {
|
|
448
406
|
alt?: unknown;
|
|
449
|
-
imageId?: unknown;
|
|
450
407
|
primaryColor?: unknown;
|
|
451
408
|
spriteId?: unknown;
|
|
452
409
|
}>>;
|
|
@@ -454,7 +411,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
454
411
|
}, "strip", z.ZodTypeAny, {
|
|
455
412
|
brand?: {
|
|
456
413
|
alt?: string | undefined;
|
|
457
|
-
imageId?: string | undefined;
|
|
458
414
|
primaryColor?: string | undefined;
|
|
459
415
|
spriteId?: string | undefined;
|
|
460
416
|
} | undefined;
|
|
@@ -462,7 +418,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
462
418
|
}, {
|
|
463
419
|
brand?: {
|
|
464
420
|
alt?: unknown;
|
|
465
|
-
imageId?: unknown;
|
|
466
421
|
primaryColor?: unknown;
|
|
467
422
|
spriteId?: unknown;
|
|
468
423
|
} | undefined;
|
|
@@ -473,14 +428,12 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
473
428
|
key: string;
|
|
474
429
|
brand?: {
|
|
475
430
|
alt?: string | undefined;
|
|
476
|
-
imageId?: string | undefined;
|
|
477
431
|
primaryColor?: string | undefined;
|
|
478
432
|
spriteId?: string | undefined;
|
|
479
433
|
} | undefined;
|
|
480
434
|
walletOverrides?: Record<string, {
|
|
481
435
|
brand?: {
|
|
482
436
|
alt?: string | undefined;
|
|
483
|
-
imageId?: string | undefined;
|
|
484
437
|
primaryColor?: string | undefined;
|
|
485
438
|
spriteId?: string | undefined;
|
|
486
439
|
} | undefined;
|
|
@@ -491,14 +444,12 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
491
444
|
key: string;
|
|
492
445
|
brand?: {
|
|
493
446
|
alt?: unknown;
|
|
494
|
-
imageId?: unknown;
|
|
495
447
|
primaryColor?: unknown;
|
|
496
448
|
spriteId?: unknown;
|
|
497
449
|
} | undefined;
|
|
498
450
|
walletOverrides?: Record<string, {
|
|
499
451
|
brand?: {
|
|
500
452
|
alt?: unknown;
|
|
501
|
-
imageId?: unknown;
|
|
502
453
|
primaryColor?: unknown;
|
|
503
454
|
spriteId?: unknown;
|
|
504
455
|
} | undefined;
|
|
@@ -506,29 +457,16 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
506
457
|
}> | undefined;
|
|
507
458
|
}>>;
|
|
508
459
|
wallets: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
509
|
-
brand: z.ZodOptional<z.
|
|
460
|
+
brand: z.ZodOptional<z.ZodObject<{
|
|
510
461
|
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
511
|
-
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
512
462
|
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
513
463
|
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
514
464
|
}, "strip", z.ZodTypeAny, {
|
|
515
465
|
alt?: string | undefined;
|
|
516
|
-
imageId?: string | undefined;
|
|
517
466
|
primaryColor?: string | undefined;
|
|
518
467
|
spriteId?: string | undefined;
|
|
519
468
|
}, {
|
|
520
469
|
alt?: unknown;
|
|
521
|
-
imageId?: unknown;
|
|
522
|
-
primaryColor?: unknown;
|
|
523
|
-
spriteId?: unknown;
|
|
524
|
-
}>, {
|
|
525
|
-
alt?: string | undefined;
|
|
526
|
-
imageId?: string | undefined;
|
|
527
|
-
primaryColor?: string | undefined;
|
|
528
|
-
spriteId?: string | undefined;
|
|
529
|
-
}, {
|
|
530
|
-
alt?: unknown;
|
|
531
|
-
imageId?: unknown;
|
|
532
470
|
primaryColor?: unknown;
|
|
533
471
|
spriteId?: unknown;
|
|
534
472
|
}>>;
|
|
@@ -690,7 +628,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
690
628
|
name: string;
|
|
691
629
|
brand?: {
|
|
692
630
|
alt?: string | undefined;
|
|
693
|
-
imageId?: string | undefined;
|
|
694
631
|
primaryColor?: string | undefined;
|
|
695
632
|
spriteId?: string | undefined;
|
|
696
633
|
} | undefined;
|
|
@@ -743,7 +680,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
743
680
|
name: string;
|
|
744
681
|
brand?: {
|
|
745
682
|
alt?: unknown;
|
|
746
|
-
imageId?: unknown;
|
|
747
683
|
primaryColor?: unknown;
|
|
748
684
|
spriteId?: unknown;
|
|
749
685
|
} | undefined;
|
|
@@ -796,7 +732,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
796
732
|
name: string;
|
|
797
733
|
brand?: {
|
|
798
734
|
alt?: string | undefined;
|
|
799
|
-
imageId?: string | undefined;
|
|
800
735
|
primaryColor?: string | undefined;
|
|
801
736
|
spriteId?: string | undefined;
|
|
802
737
|
} | undefined;
|
|
@@ -849,7 +784,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
849
784
|
name: string;
|
|
850
785
|
brand?: {
|
|
851
786
|
alt?: string | undefined;
|
|
852
|
-
imageId?: string | undefined;
|
|
853
787
|
primaryColor?: string | undefined;
|
|
854
788
|
spriteId?: string | undefined;
|
|
855
789
|
} | undefined;
|
|
@@ -905,14 +839,12 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
905
839
|
key: string;
|
|
906
840
|
brand?: {
|
|
907
841
|
alt?: string | undefined;
|
|
908
|
-
imageId?: string | undefined;
|
|
909
842
|
primaryColor?: string | undefined;
|
|
910
843
|
spriteId?: string | undefined;
|
|
911
844
|
} | undefined;
|
|
912
845
|
walletOverrides?: Record<string, {
|
|
913
846
|
brand?: {
|
|
914
847
|
alt?: string | undefined;
|
|
915
|
-
imageId?: string | undefined;
|
|
916
848
|
primaryColor?: string | undefined;
|
|
917
849
|
spriteId?: string | undefined;
|
|
918
850
|
} | undefined;
|
|
@@ -923,7 +855,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
923
855
|
name: string;
|
|
924
856
|
brand?: {
|
|
925
857
|
alt?: string | undefined;
|
|
926
|
-
imageId?: string | undefined;
|
|
927
858
|
primaryColor?: string | undefined;
|
|
928
859
|
spriteId?: string | undefined;
|
|
929
860
|
} | undefined;
|
|
@@ -979,14 +910,12 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
979
910
|
key: string;
|
|
980
911
|
brand?: {
|
|
981
912
|
alt?: unknown;
|
|
982
|
-
imageId?: unknown;
|
|
983
913
|
primaryColor?: unknown;
|
|
984
914
|
spriteId?: unknown;
|
|
985
915
|
} | undefined;
|
|
986
916
|
walletOverrides?: Record<string, {
|
|
987
917
|
brand?: {
|
|
988
918
|
alt?: unknown;
|
|
989
|
-
imageId?: unknown;
|
|
990
919
|
primaryColor?: unknown;
|
|
991
920
|
spriteId?: unknown;
|
|
992
921
|
} | undefined;
|
|
@@ -1000,14 +929,12 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1000
929
|
key: string;
|
|
1001
930
|
brand?: {
|
|
1002
931
|
alt?: string | undefined;
|
|
1003
|
-
imageId?: string | undefined;
|
|
1004
932
|
primaryColor?: string | undefined;
|
|
1005
933
|
spriteId?: string | undefined;
|
|
1006
934
|
} | undefined;
|
|
1007
935
|
walletOverrides?: Record<string, {
|
|
1008
936
|
brand?: {
|
|
1009
937
|
alt?: string | undefined;
|
|
1010
|
-
imageId?: string | undefined;
|
|
1011
938
|
primaryColor?: string | undefined;
|
|
1012
939
|
spriteId?: string | undefined;
|
|
1013
940
|
} | undefined;
|
|
@@ -1018,7 +945,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1018
945
|
name: string;
|
|
1019
946
|
brand?: {
|
|
1020
947
|
alt?: string | undefined;
|
|
1021
|
-
imageId?: string | undefined;
|
|
1022
948
|
primaryColor?: string | undefined;
|
|
1023
949
|
spriteId?: string | undefined;
|
|
1024
950
|
} | undefined;
|
|
@@ -1072,58 +998,32 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1072
998
|
export type WalletBookSchema = z.infer<typeof walletBookSchema>;
|
|
1073
999
|
export type WalletRecordsSchema = z.infer<typeof walletBookSchema>['wallets'];
|
|
1074
1000
|
declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1075
|
-
brand: z.
|
|
1001
|
+
brand: z.ZodOptional<z.ZodObject<{
|
|
1076
1002
|
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
1077
|
-
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
1078
1003
|
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
1079
1004
|
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
1080
1005
|
}, "strip", z.ZodTypeAny, {
|
|
1081
1006
|
alt?: string | undefined;
|
|
1082
|
-
imageId?: string | undefined;
|
|
1083
1007
|
primaryColor?: string | undefined;
|
|
1084
1008
|
spriteId?: string | undefined;
|
|
1085
1009
|
}, {
|
|
1086
1010
|
alt?: unknown;
|
|
1087
|
-
imageId?: unknown;
|
|
1088
|
-
primaryColor?: unknown;
|
|
1089
|
-
spriteId?: unknown;
|
|
1090
|
-
}>>, {
|
|
1091
|
-
alt?: string | undefined;
|
|
1092
|
-
imageId?: string | undefined;
|
|
1093
|
-
primaryColor?: string | undefined;
|
|
1094
|
-
spriteId?: string | undefined;
|
|
1095
|
-
} | undefined, {
|
|
1096
|
-
alt?: unknown;
|
|
1097
|
-
imageId?: unknown;
|
|
1098
1011
|
primaryColor?: unknown;
|
|
1099
1012
|
spriteId?: unknown;
|
|
1100
|
-
}
|
|
1013
|
+
}>>;
|
|
1101
1014
|
key: z.ZodString;
|
|
1102
1015
|
name: z.ZodString;
|
|
1103
1016
|
walletOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1104
|
-
brand: z.ZodOptional<z.
|
|
1017
|
+
brand: z.ZodOptional<z.ZodObject<{
|
|
1105
1018
|
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
1106
|
-
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
1107
1019
|
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
1108
1020
|
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
1109
1021
|
}, "strip", z.ZodTypeAny, {
|
|
1110
1022
|
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
1023
|
primaryColor?: string | undefined;
|
|
1123
1024
|
spriteId?: string | undefined;
|
|
1124
1025
|
}, {
|
|
1125
1026
|
alt?: unknown;
|
|
1126
|
-
imageId?: unknown;
|
|
1127
1027
|
primaryColor?: unknown;
|
|
1128
1028
|
spriteId?: unknown;
|
|
1129
1029
|
}>>;
|
|
@@ -1131,7 +1031,6 @@ declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1131
1031
|
}, "strip", z.ZodTypeAny, {
|
|
1132
1032
|
brand?: {
|
|
1133
1033
|
alt?: string | undefined;
|
|
1134
|
-
imageId?: string | undefined;
|
|
1135
1034
|
primaryColor?: string | undefined;
|
|
1136
1035
|
spriteId?: string | undefined;
|
|
1137
1036
|
} | undefined;
|
|
@@ -1139,7 +1038,6 @@ declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1139
1038
|
}, {
|
|
1140
1039
|
brand?: {
|
|
1141
1040
|
alt?: unknown;
|
|
1142
|
-
imageId?: unknown;
|
|
1143
1041
|
primaryColor?: unknown;
|
|
1144
1042
|
spriteId?: unknown;
|
|
1145
1043
|
} | undefined;
|
|
@@ -1150,14 +1048,12 @@ declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1150
1048
|
key: string;
|
|
1151
1049
|
brand?: {
|
|
1152
1050
|
alt?: string | undefined;
|
|
1153
|
-
imageId?: string | undefined;
|
|
1154
1051
|
primaryColor?: string | undefined;
|
|
1155
1052
|
spriteId?: string | undefined;
|
|
1156
1053
|
} | undefined;
|
|
1157
1054
|
walletOverrides?: Record<string, {
|
|
1158
1055
|
brand?: {
|
|
1159
1056
|
alt?: string | undefined;
|
|
1160
|
-
imageId?: string | undefined;
|
|
1161
1057
|
primaryColor?: string | undefined;
|
|
1162
1058
|
spriteId?: string | undefined;
|
|
1163
1059
|
} | undefined;
|
|
@@ -1168,14 +1064,12 @@ declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1168
1064
|
key: string;
|
|
1169
1065
|
brand?: {
|
|
1170
1066
|
alt?: unknown;
|
|
1171
|
-
imageId?: unknown;
|
|
1172
1067
|
primaryColor?: unknown;
|
|
1173
1068
|
spriteId?: unknown;
|
|
1174
1069
|
} | undefined;
|
|
1175
1070
|
walletOverrides?: Record<string, {
|
|
1176
1071
|
brand?: {
|
|
1177
1072
|
alt?: unknown;
|
|
1178
|
-
imageId?: unknown;
|
|
1179
1073
|
primaryColor?: unknown;
|
|
1180
1074
|
spriteId?: unknown;
|
|
1181
1075
|
} | undefined;
|
|
@@ -14,22 +14,10 @@ const walletGroupSchema = zod.z.object({
|
|
|
14
14
|
brand: zod.z
|
|
15
15
|
.object({
|
|
16
16
|
alt: nonEmptyString.nonEmptyString,
|
|
17
|
-
imageId: nonEmptyString.nonEmptyString,
|
|
18
17
|
primaryColor: nonEmptyString.nonEmptyString,
|
|
19
18
|
spriteId: nonEmptyString.nonEmptyString,
|
|
20
19
|
})
|
|
21
|
-
.optional()
|
|
22
|
-
.refine((val) => {
|
|
23
|
-
if (!val)
|
|
24
|
-
return true;
|
|
25
|
-
if (!(val.spriteId && val.imageId) && (val.spriteId || val.imageId)) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
return false;
|
|
29
|
-
}, {
|
|
30
|
-
message: 'Only one of spriteId or imageId can be defined',
|
|
31
|
-
path: ['brand'],
|
|
32
|
-
}),
|
|
20
|
+
.optional(),
|
|
33
21
|
key: zod.z.string(),
|
|
34
22
|
name: zod.z.string(),
|
|
35
23
|
walletOverrides: zod.z.record(WalletOverrideEntrySchema).optional(),
|
|
@@ -1,28 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
declare const WalletOverrideEntrySchema: z.ZodObject<{
|
|
3
|
-
brand: z.ZodOptional<z.
|
|
3
|
+
brand: z.ZodOptional<z.ZodObject<{
|
|
4
4
|
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
5
|
-
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
6
5
|
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
7
6
|
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
8
7
|
}, "strip", z.ZodTypeAny, {
|
|
9
8
|
alt?: string | undefined;
|
|
10
|
-
imageId?: string | undefined;
|
|
11
9
|
primaryColor?: string | undefined;
|
|
12
10
|
spriteId?: string | undefined;
|
|
13
11
|
}, {
|
|
14
12
|
alt?: unknown;
|
|
15
|
-
imageId?: unknown;
|
|
16
|
-
primaryColor?: unknown;
|
|
17
|
-
spriteId?: unknown;
|
|
18
|
-
}>, {
|
|
19
|
-
alt?: string | undefined;
|
|
20
|
-
imageId?: string | undefined;
|
|
21
|
-
primaryColor?: string | undefined;
|
|
22
|
-
spriteId?: string | undefined;
|
|
23
|
-
}, {
|
|
24
|
-
alt?: unknown;
|
|
25
|
-
imageId?: unknown;
|
|
26
13
|
primaryColor?: unknown;
|
|
27
14
|
spriteId?: unknown;
|
|
28
15
|
}>>;
|
|
@@ -30,7 +17,6 @@ declare const WalletOverrideEntrySchema: z.ZodObject<{
|
|
|
30
17
|
}, "strip", z.ZodTypeAny, {
|
|
31
18
|
brand?: {
|
|
32
19
|
alt?: string | undefined;
|
|
33
|
-
imageId?: string | undefined;
|
|
34
20
|
primaryColor?: string | undefined;
|
|
35
21
|
spriteId?: string | undefined;
|
|
36
22
|
} | undefined;
|
|
@@ -38,65 +24,38 @@ declare const WalletOverrideEntrySchema: z.ZodObject<{
|
|
|
38
24
|
}, {
|
|
39
25
|
brand?: {
|
|
40
26
|
alt?: unknown;
|
|
41
|
-
imageId?: unknown;
|
|
42
27
|
primaryColor?: unknown;
|
|
43
28
|
spriteId?: unknown;
|
|
44
29
|
} | undefined;
|
|
45
30
|
name?: unknown;
|
|
46
31
|
}>;
|
|
47
32
|
export declare const walletGroupSchema: z.ZodObject<{
|
|
48
|
-
brand: z.
|
|
33
|
+
brand: z.ZodOptional<z.ZodObject<{
|
|
49
34
|
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
50
|
-
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
51
35
|
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
52
36
|
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
53
37
|
}, "strip", z.ZodTypeAny, {
|
|
54
38
|
alt?: string | undefined;
|
|
55
|
-
imageId?: string | undefined;
|
|
56
39
|
primaryColor?: string | undefined;
|
|
57
40
|
spriteId?: string | undefined;
|
|
58
41
|
}, {
|
|
59
42
|
alt?: unknown;
|
|
60
|
-
imageId?: unknown;
|
|
61
43
|
primaryColor?: unknown;
|
|
62
44
|
spriteId?: unknown;
|
|
63
|
-
}
|
|
64
|
-
alt?: string | undefined;
|
|
65
|
-
imageId?: string | undefined;
|
|
66
|
-
primaryColor?: string | undefined;
|
|
67
|
-
spriteId?: string | undefined;
|
|
68
|
-
} | undefined, {
|
|
69
|
-
alt?: unknown;
|
|
70
|
-
imageId?: unknown;
|
|
71
|
-
primaryColor?: unknown;
|
|
72
|
-
spriteId?: unknown;
|
|
73
|
-
} | undefined>;
|
|
45
|
+
}>>;
|
|
74
46
|
key: z.ZodString;
|
|
75
47
|
name: z.ZodString;
|
|
76
48
|
walletOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
77
|
-
brand: z.ZodOptional<z.
|
|
49
|
+
brand: z.ZodOptional<z.ZodObject<{
|
|
78
50
|
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
79
|
-
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
80
51
|
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
81
52
|
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
82
53
|
}, "strip", z.ZodTypeAny, {
|
|
83
54
|
alt?: string | undefined;
|
|
84
|
-
imageId?: string | undefined;
|
|
85
|
-
primaryColor?: string | undefined;
|
|
86
|
-
spriteId?: string | undefined;
|
|
87
|
-
}, {
|
|
88
|
-
alt?: unknown;
|
|
89
|
-
imageId?: unknown;
|
|
90
|
-
primaryColor?: unknown;
|
|
91
|
-
spriteId?: unknown;
|
|
92
|
-
}>, {
|
|
93
|
-
alt?: string | undefined;
|
|
94
|
-
imageId?: string | undefined;
|
|
95
55
|
primaryColor?: string | undefined;
|
|
96
56
|
spriteId?: string | undefined;
|
|
97
57
|
}, {
|
|
98
58
|
alt?: unknown;
|
|
99
|
-
imageId?: unknown;
|
|
100
59
|
primaryColor?: unknown;
|
|
101
60
|
spriteId?: unknown;
|
|
102
61
|
}>>;
|
|
@@ -104,7 +63,6 @@ export declare const walletGroupSchema: z.ZodObject<{
|
|
|
104
63
|
}, "strip", z.ZodTypeAny, {
|
|
105
64
|
brand?: {
|
|
106
65
|
alt?: string | undefined;
|
|
107
|
-
imageId?: string | undefined;
|
|
108
66
|
primaryColor?: string | undefined;
|
|
109
67
|
spriteId?: string | undefined;
|
|
110
68
|
} | undefined;
|
|
@@ -112,7 +70,6 @@ export declare const walletGroupSchema: z.ZodObject<{
|
|
|
112
70
|
}, {
|
|
113
71
|
brand?: {
|
|
114
72
|
alt?: unknown;
|
|
115
|
-
imageId?: unknown;
|
|
116
73
|
primaryColor?: unknown;
|
|
117
74
|
spriteId?: unknown;
|
|
118
75
|
} | undefined;
|
|
@@ -123,14 +80,12 @@ export declare const walletGroupSchema: z.ZodObject<{
|
|
|
123
80
|
key: string;
|
|
124
81
|
brand?: {
|
|
125
82
|
alt?: string | undefined;
|
|
126
|
-
imageId?: string | undefined;
|
|
127
83
|
primaryColor?: string | undefined;
|
|
128
84
|
spriteId?: string | undefined;
|
|
129
85
|
} | undefined;
|
|
130
86
|
walletOverrides?: Record<string, {
|
|
131
87
|
brand?: {
|
|
132
88
|
alt?: string | undefined;
|
|
133
|
-
imageId?: string | undefined;
|
|
134
89
|
primaryColor?: string | undefined;
|
|
135
90
|
spriteId?: string | undefined;
|
|
136
91
|
} | undefined;
|
|
@@ -141,14 +96,12 @@ export declare const walletGroupSchema: z.ZodObject<{
|
|
|
141
96
|
key: string;
|
|
142
97
|
brand?: {
|
|
143
98
|
alt?: unknown;
|
|
144
|
-
imageId?: unknown;
|
|
145
99
|
primaryColor?: unknown;
|
|
146
100
|
spriteId?: unknown;
|
|
147
101
|
} | undefined;
|
|
148
102
|
walletOverrides?: Record<string, {
|
|
149
103
|
brand?: {
|
|
150
104
|
alt?: unknown;
|
|
151
|
-
imageId?: unknown;
|
|
152
105
|
primaryColor?: unknown;
|
|
153
106
|
spriteId?: unknown;
|
|
154
107
|
} | undefined;
|
|
@@ -10,22 +10,10 @@ const walletGroupSchema = z.object({
|
|
|
10
10
|
brand: z
|
|
11
11
|
.object({
|
|
12
12
|
alt: nonEmptyString,
|
|
13
|
-
imageId: nonEmptyString,
|
|
14
13
|
primaryColor: nonEmptyString,
|
|
15
14
|
spriteId: nonEmptyString,
|
|
16
15
|
})
|
|
17
|
-
.optional()
|
|
18
|
-
.refine((val) => {
|
|
19
|
-
if (!val)
|
|
20
|
-
return true;
|
|
21
|
-
if (!(val.spriteId && val.imageId) && (val.spriteId || val.imageId)) {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
return false;
|
|
25
|
-
}, {
|
|
26
|
-
message: 'Only one of spriteId or imageId can be defined',
|
|
27
|
-
path: ['brand'],
|
|
28
|
-
}),
|
|
16
|
+
.optional(),
|
|
29
17
|
key: z.string(),
|
|
30
18
|
name: z.string(),
|
|
31
19
|
walletOverrides: z.record(WalletOverrideEntrySchema).optional(),
|
|
@@ -45,23 +45,10 @@ const injectedConfigSchema = zod.z.object({
|
|
|
45
45
|
path: ['config'],
|
|
46
46
|
}),
|
|
47
47
|
});
|
|
48
|
-
const brandSchema = zod.z
|
|
49
|
-
.object({
|
|
48
|
+
const brandSchema = zod.z.object({
|
|
50
49
|
alt: nonEmptyString.nonEmptyString,
|
|
51
|
-
imageId: nonEmptyString.nonEmptyString,
|
|
52
50
|
primaryColor: nonEmptyString.nonEmptyString,
|
|
53
51
|
spriteId: nonEmptyString.nonEmptyString,
|
|
54
|
-
})
|
|
55
|
-
.refine((val) => {
|
|
56
|
-
if (!val)
|
|
57
|
-
return true;
|
|
58
|
-
if (!(val.spriteId && val.imageId) && (val.spriteId || val.imageId)) {
|
|
59
|
-
return true;
|
|
60
|
-
}
|
|
61
|
-
return false;
|
|
62
|
-
}, {
|
|
63
|
-
message: 'Only one of spriteId or imageId can be defined',
|
|
64
|
-
path: ['brand'],
|
|
65
52
|
});
|
|
66
53
|
const walletSchema = zod.z
|
|
67
54
|
.preprocess((val) => val, zod.z.object({
|
|
@@ -57,56 +57,30 @@ declare const injectedConfigSchema: z.ZodObject<{
|
|
|
57
57
|
} | undefined;
|
|
58
58
|
windowLocations?: string[] | undefined;
|
|
59
59
|
}>;
|
|
60
|
-
export declare const brandSchema: z.
|
|
60
|
+
export declare const brandSchema: z.ZodObject<{
|
|
61
61
|
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
62
|
-
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
63
62
|
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
64
63
|
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
65
64
|
}, "strip", z.ZodTypeAny, {
|
|
66
65
|
alt?: string | undefined;
|
|
67
|
-
imageId?: string | undefined;
|
|
68
66
|
primaryColor?: string | undefined;
|
|
69
67
|
spriteId?: string | undefined;
|
|
70
68
|
}, {
|
|
71
69
|
alt?: unknown;
|
|
72
|
-
imageId?: unknown;
|
|
73
|
-
primaryColor?: unknown;
|
|
74
|
-
spriteId?: unknown;
|
|
75
|
-
}>, {
|
|
76
|
-
alt?: string | undefined;
|
|
77
|
-
imageId?: string | undefined;
|
|
78
|
-
primaryColor?: string | undefined;
|
|
79
|
-
spriteId?: string | undefined;
|
|
80
|
-
}, {
|
|
81
|
-
alt?: unknown;
|
|
82
|
-
imageId?: unknown;
|
|
83
70
|
primaryColor?: unknown;
|
|
84
71
|
spriteId?: unknown;
|
|
85
72
|
}>;
|
|
86
73
|
export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
87
|
-
brand: z.ZodOptional<z.
|
|
74
|
+
brand: z.ZodOptional<z.ZodObject<{
|
|
88
75
|
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
89
|
-
imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
90
76
|
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
91
77
|
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
92
78
|
}, "strip", z.ZodTypeAny, {
|
|
93
79
|
alt?: string | undefined;
|
|
94
|
-
imageId?: string | undefined;
|
|
95
|
-
primaryColor?: string | undefined;
|
|
96
|
-
spriteId?: string | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
alt?: unknown;
|
|
99
|
-
imageId?: unknown;
|
|
100
|
-
primaryColor?: unknown;
|
|
101
|
-
spriteId?: unknown;
|
|
102
|
-
}>, {
|
|
103
|
-
alt?: string | undefined;
|
|
104
|
-
imageId?: string | undefined;
|
|
105
80
|
primaryColor?: string | undefined;
|
|
106
81
|
spriteId?: string | undefined;
|
|
107
82
|
}, {
|
|
108
83
|
alt?: unknown;
|
|
109
|
-
imageId?: unknown;
|
|
110
84
|
primaryColor?: unknown;
|
|
111
85
|
spriteId?: unknown;
|
|
112
86
|
}>>;
|
|
@@ -280,7 +254,6 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
280
254
|
name: string;
|
|
281
255
|
brand?: {
|
|
282
256
|
alt?: string | undefined;
|
|
283
|
-
imageId?: string | undefined;
|
|
284
257
|
primaryColor?: string | undefined;
|
|
285
258
|
spriteId?: string | undefined;
|
|
286
259
|
} | undefined;
|
|
@@ -333,7 +306,6 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
333
306
|
name: string;
|
|
334
307
|
brand?: {
|
|
335
308
|
alt?: unknown;
|
|
336
|
-
imageId?: unknown;
|
|
337
309
|
primaryColor?: unknown;
|
|
338
310
|
spriteId?: unknown;
|
|
339
311
|
} | undefined;
|
|
@@ -386,7 +358,6 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
386
358
|
name: string;
|
|
387
359
|
brand?: {
|
|
388
360
|
alt?: string | undefined;
|
|
389
|
-
imageId?: string | undefined;
|
|
390
361
|
primaryColor?: string | undefined;
|
|
391
362
|
spriteId?: string | undefined;
|
|
392
363
|
} | undefined;
|
|
@@ -439,7 +410,6 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
439
410
|
name: string;
|
|
440
411
|
brand?: {
|
|
441
412
|
alt?: string | undefined;
|
|
442
|
-
imageId?: string | undefined;
|
|
443
413
|
primaryColor?: string | undefined;
|
|
444
414
|
spriteId?: string | undefined;
|
|
445
415
|
} | undefined;
|
|
@@ -41,23 +41,10 @@ const injectedConfigSchema = z.object({
|
|
|
41
41
|
path: ['config'],
|
|
42
42
|
}),
|
|
43
43
|
});
|
|
44
|
-
const brandSchema = z
|
|
45
|
-
.object({
|
|
44
|
+
const brandSchema = z.object({
|
|
46
45
|
alt: nonEmptyString,
|
|
47
|
-
imageId: nonEmptyString,
|
|
48
46
|
primaryColor: nonEmptyString,
|
|
49
47
|
spriteId: nonEmptyString,
|
|
50
|
-
})
|
|
51
|
-
.refine((val) => {
|
|
52
|
-
if (!val)
|
|
53
|
-
return true;
|
|
54
|
-
if (!(val.spriteId && val.imageId) && (val.spriteId || val.imageId)) {
|
|
55
|
-
return true;
|
|
56
|
-
}
|
|
57
|
-
return false;
|
|
58
|
-
}, {
|
|
59
|
-
message: 'Only one of spriteId or imageId can be defined',
|
|
60
|
-
path: ['brand'],
|
|
61
48
|
});
|
|
62
49
|
const walletSchema = z
|
|
63
50
|
.preprocess((val) => val, z.object({
|
|
@@ -6,12 +6,20 @@ var groups = {
|
|
|
6
6
|
argentx: {
|
|
7
7
|
brand: {
|
|
8
8
|
alt: "ArgentX",
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
primaryColor: "#FF875B",
|
|
10
|
+
spriteId: "argentx"
|
|
11
11
|
},
|
|
12
12
|
key: "argentx",
|
|
13
13
|
name: "ArgentX"
|
|
14
14
|
},
|
|
15
|
+
bitgetwallet: {
|
|
16
|
+
brand: {
|
|
17
|
+
alt: "Bitget Wallet",
|
|
18
|
+
spriteId: "bitget"
|
|
19
|
+
},
|
|
20
|
+
key: "bitgetwallet",
|
|
21
|
+
name: "Bitget Wallet"
|
|
22
|
+
},
|
|
15
23
|
blocto: {
|
|
16
24
|
brand: {
|
|
17
25
|
alt: "Blocto",
|
|
@@ -461,8 +469,8 @@ var wallets = {
|
|
|
461
469
|
trust: {
|
|
462
470
|
brand: {
|
|
463
471
|
alt: "Trust Wallet",
|
|
464
|
-
|
|
465
|
-
|
|
472
|
+
primaryColor: "#0500FF",
|
|
473
|
+
spriteId: "7677b54f-3486-46e2-4e37-bf8747814f00"
|
|
466
474
|
},
|
|
467
475
|
chains: [
|
|
468
476
|
"eip155:1"
|
|
@@ -700,7 +708,7 @@ var wallets = {
|
|
|
700
708
|
exodus: {
|
|
701
709
|
brand: {
|
|
702
710
|
alt: "Exodus Wallet",
|
|
703
|
-
|
|
711
|
+
spriteId: "4c16cad4-cac9-4643-6726-c696efaf5200"
|
|
704
712
|
},
|
|
705
713
|
chainGroup: "exodus",
|
|
706
714
|
chains: [
|
|
@@ -868,6 +876,60 @@ var wallets = {
|
|
|
868
876
|
chromeId: "aflkmfhebedbjioipglgcbcmnbpgliof"
|
|
869
877
|
},
|
|
870
878
|
name: "Backpack (EVM)"
|
|
879
|
+
},
|
|
880
|
+
okxwalletbtc: {
|
|
881
|
+
brand: {
|
|
882
|
+
alt: "OKX Wallet",
|
|
883
|
+
spriteId: "okx"
|
|
884
|
+
},
|
|
885
|
+
chainGroup: "okxwallet",
|
|
886
|
+
desktop: {
|
|
887
|
+
chromeId: "mcohilncbfahbmgdjkbpemcciiolgcge"
|
|
888
|
+
},
|
|
889
|
+
group: "okxwallet",
|
|
890
|
+
injectedConfig: [
|
|
891
|
+
{
|
|
892
|
+
chain: "btc",
|
|
893
|
+
extensionLocators: [
|
|
894
|
+
],
|
|
895
|
+
windowLocations: [
|
|
896
|
+
"okxwallet.bitcoin"
|
|
897
|
+
]
|
|
898
|
+
}
|
|
899
|
+
],
|
|
900
|
+
mobile: {
|
|
901
|
+
androidId: "com.okinc.okex.gp",
|
|
902
|
+
iosId: "id1327268470"
|
|
903
|
+
},
|
|
904
|
+
name: "OKX",
|
|
905
|
+
shortName: "OKX Wallet (Bitcoin)"
|
|
906
|
+
},
|
|
907
|
+
unisat: {
|
|
908
|
+
brand: {
|
|
909
|
+
alt: "UniSat",
|
|
910
|
+
spriteId: "unisat"
|
|
911
|
+
},
|
|
912
|
+
desktop: {
|
|
913
|
+
chromeId: "ppbibelpcjmhbdihakflkdcoccbgbkpo"
|
|
914
|
+
},
|
|
915
|
+
injectedConfig: [
|
|
916
|
+
{
|
|
917
|
+
chain: "btc",
|
|
918
|
+
extensionLocators: [
|
|
919
|
+
],
|
|
920
|
+
windowLocations: [
|
|
921
|
+
"unisat"
|
|
922
|
+
]
|
|
923
|
+
}
|
|
924
|
+
],
|
|
925
|
+
name: "UniSat"
|
|
926
|
+
},
|
|
927
|
+
zerodev: {
|
|
928
|
+
brand: {
|
|
929
|
+
alt: "Smart Wallet",
|
|
930
|
+
spriteId: "smartwallet"
|
|
931
|
+
},
|
|
932
|
+
name: "ZeroDev"
|
|
871
933
|
}
|
|
872
934
|
};
|
|
873
935
|
var walletBookFallbacks = {
|
package/wallet-book-fallbacks.js
CHANGED
|
@@ -2,12 +2,20 @@ var groups = {
|
|
|
2
2
|
argentx: {
|
|
3
3
|
brand: {
|
|
4
4
|
alt: "ArgentX",
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
primaryColor: "#FF875B",
|
|
6
|
+
spriteId: "argentx"
|
|
7
7
|
},
|
|
8
8
|
key: "argentx",
|
|
9
9
|
name: "ArgentX"
|
|
10
10
|
},
|
|
11
|
+
bitgetwallet: {
|
|
12
|
+
brand: {
|
|
13
|
+
alt: "Bitget Wallet",
|
|
14
|
+
spriteId: "bitget"
|
|
15
|
+
},
|
|
16
|
+
key: "bitgetwallet",
|
|
17
|
+
name: "Bitget Wallet"
|
|
18
|
+
},
|
|
11
19
|
blocto: {
|
|
12
20
|
brand: {
|
|
13
21
|
alt: "Blocto",
|
|
@@ -457,8 +465,8 @@ var wallets = {
|
|
|
457
465
|
trust: {
|
|
458
466
|
brand: {
|
|
459
467
|
alt: "Trust Wallet",
|
|
460
|
-
|
|
461
|
-
|
|
468
|
+
primaryColor: "#0500FF",
|
|
469
|
+
spriteId: "7677b54f-3486-46e2-4e37-bf8747814f00"
|
|
462
470
|
},
|
|
463
471
|
chains: [
|
|
464
472
|
"eip155:1"
|
|
@@ -696,7 +704,7 @@ var wallets = {
|
|
|
696
704
|
exodus: {
|
|
697
705
|
brand: {
|
|
698
706
|
alt: "Exodus Wallet",
|
|
699
|
-
|
|
707
|
+
spriteId: "4c16cad4-cac9-4643-6726-c696efaf5200"
|
|
700
708
|
},
|
|
701
709
|
chainGroup: "exodus",
|
|
702
710
|
chains: [
|
|
@@ -864,6 +872,60 @@ var wallets = {
|
|
|
864
872
|
chromeId: "aflkmfhebedbjioipglgcbcmnbpgliof"
|
|
865
873
|
},
|
|
866
874
|
name: "Backpack (EVM)"
|
|
875
|
+
},
|
|
876
|
+
okxwalletbtc: {
|
|
877
|
+
brand: {
|
|
878
|
+
alt: "OKX Wallet",
|
|
879
|
+
spriteId: "okx"
|
|
880
|
+
},
|
|
881
|
+
chainGroup: "okxwallet",
|
|
882
|
+
desktop: {
|
|
883
|
+
chromeId: "mcohilncbfahbmgdjkbpemcciiolgcge"
|
|
884
|
+
},
|
|
885
|
+
group: "okxwallet",
|
|
886
|
+
injectedConfig: [
|
|
887
|
+
{
|
|
888
|
+
chain: "btc",
|
|
889
|
+
extensionLocators: [
|
|
890
|
+
],
|
|
891
|
+
windowLocations: [
|
|
892
|
+
"okxwallet.bitcoin"
|
|
893
|
+
]
|
|
894
|
+
}
|
|
895
|
+
],
|
|
896
|
+
mobile: {
|
|
897
|
+
androidId: "com.okinc.okex.gp",
|
|
898
|
+
iosId: "id1327268470"
|
|
899
|
+
},
|
|
900
|
+
name: "OKX",
|
|
901
|
+
shortName: "OKX Wallet (Bitcoin)"
|
|
902
|
+
},
|
|
903
|
+
unisat: {
|
|
904
|
+
brand: {
|
|
905
|
+
alt: "UniSat",
|
|
906
|
+
spriteId: "unisat"
|
|
907
|
+
},
|
|
908
|
+
desktop: {
|
|
909
|
+
chromeId: "ppbibelpcjmhbdihakflkdcoccbgbkpo"
|
|
910
|
+
},
|
|
911
|
+
injectedConfig: [
|
|
912
|
+
{
|
|
913
|
+
chain: "btc",
|
|
914
|
+
extensionLocators: [
|
|
915
|
+
],
|
|
916
|
+
windowLocations: [
|
|
917
|
+
"unisat"
|
|
918
|
+
]
|
|
919
|
+
}
|
|
920
|
+
],
|
|
921
|
+
name: "UniSat"
|
|
922
|
+
},
|
|
923
|
+
zerodev: {
|
|
924
|
+
brand: {
|
|
925
|
+
alt: "Smart Wallet",
|
|
926
|
+
spriteId: "smartwallet"
|
|
927
|
+
},
|
|
928
|
+
name: "ZeroDev"
|
|
867
929
|
}
|
|
868
930
|
};
|
|
869
931
|
var walletBookFallbacks = {
|