@dynamic-labs/wallet-book 4.20.10 → 4.20.12
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 +22 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +5 -5
- package/src/build/index.d.ts +1 -0
- package/src/build/sources/walletConnect/index.d.ts +1 -0
- package/src/helpers/findWalletBookWallet.d.ts +1 -0
- package/src/helpers/findWalletBookWalletByNameAndChain.d.ts +1 -0
- package/src/hooks/fetchWalletBook/fetchWalletBook.d.ts +1 -0
- package/src/hooks/useWalletBookCdn.d.ts +1 -0
- package/src/schemas/walletBookSchema.d.ts +20 -0
- package/src/schemas/walletSchema.cjs +7 -3
- package/src/schemas/walletSchema.d.ts +12 -0
- package/src/schemas/walletSchema.js +7 -3
- package/wallet-book-fallbacks.cjs +25 -2
- package/wallet-book-fallbacks.js +25 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.20.12](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.11...v4.20.12) (2025-07-01)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* bring back braavos mobile deeplink support ([#9041](https://github.com/dynamic-labs/dynamic-auth/issues/9041)) ([90a7eb6](https://github.com/dynamic-labs/dynamic-auth/commit/90a7eb620f6bd27d4560e88fe5542a121e586bed))
|
|
8
|
+
* start exchange funding errors should be logged as error ([#9056](https://github.com/dynamic-labs/dynamic-auth/issues/9056)) ([ba122af](https://github.com/dynamic-labs/dynamic-auth/commit/ba122afb68c462fe8627828bd20f9cc5f92803ff))
|
|
9
|
+
* WC redirect on mobile ([#9063](https://github.com/dynamic-labs/dynamic-auth/issues/9063)) ([f43aa4a](https://github.com/dynamic-labs/dynamic-auth/commit/f43aa4aedea20e3baf012f4778f5e6a47c27515c))
|
|
10
|
+
|
|
11
|
+
### [4.20.11](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.10...v4.20.11) (2025-07-01)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* add signed typed data to waas ([#9050](https://github.com/dynamic-labs/dynamic-auth/issues/9050)) ([19c8fea](https://github.com/dynamic-labs/dynamic-auth/commit/19c8fea2e5448e027cbec2f6158d32247dfcd321))
|
|
17
|
+
* pass jwt to waas operations ([#8981](https://github.com/dynamic-labs/dynamic-auth/issues/8981)) ([6b63394](https://github.com/dynamic-labs/dynamic-auth/commit/6b63394a1a724c2a1499a3d1ff13078d2314b10e))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* 7702 signature for undeployed contracts ([#9052](https://github.com/dynamic-labs/dynamic-auth/issues/9052)) ([7052149](https://github.com/dynamic-labs/dynamic-auth/commit/7052149aae53524a0ac2bdad0b7ddf68e3c86189))
|
|
23
|
+
|
|
2
24
|
### [4.20.10](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.9...v4.20.10) (2025-06-30)
|
|
3
25
|
|
|
4
26
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-book",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.12",
|
|
4
4
|
"author": "Dynamic Labs, Inc.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./src/index.cjs",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"zod": "3.22.4",
|
|
20
|
-
"@dynamic-labs/assert-package-version": "4.20.
|
|
21
|
-
"@dynamic-labs/iconic": "4.20.
|
|
22
|
-
"@dynamic-labs/logger": "4.20.
|
|
23
|
-
"@dynamic-labs/utils": "4.20.
|
|
20
|
+
"@dynamic-labs/assert-package-version": "4.20.12",
|
|
21
|
+
"@dynamic-labs/iconic": "4.20.12",
|
|
22
|
+
"@dynamic-labs/logger": "4.20.12",
|
|
23
|
+
"@dynamic-labs/utils": "4.20.12",
|
|
24
24
|
"eventemitter3": "5.0.1",
|
|
25
25
|
"util": "0.12.5"
|
|
26
26
|
},
|
package/src/build/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export declare const generateWalletFallbacks: (wallets: WalletRecordsSchema) =>
|
|
|
51
51
|
android?: string | null | undefined;
|
|
52
52
|
androidId?: string | undefined;
|
|
53
53
|
inAppBrowser?: string | null | undefined;
|
|
54
|
+
inAppBrowserV2?: string | null | undefined;
|
|
54
55
|
ios?: string | null | undefined;
|
|
55
56
|
iosId?: string | undefined;
|
|
56
57
|
native?: string | undefined;
|
|
@@ -103,6 +103,7 @@ export declare const walletConnectTransformedData: Promise<Record<string, {
|
|
|
103
103
|
android?: string | null | undefined;
|
|
104
104
|
androidId?: string | undefined;
|
|
105
105
|
inAppBrowser?: string | null | undefined;
|
|
106
|
+
inAppBrowserV2?: string | null | undefined;
|
|
106
107
|
ios?: string | null | undefined;
|
|
107
108
|
iosId?: string | undefined;
|
|
108
109
|
native?: string | undefined;
|
|
@@ -45,6 +45,7 @@ export declare const findWalletBookWallet: (walletBook: WalletBookSchema, wallet
|
|
|
45
45
|
android?: string | null | undefined;
|
|
46
46
|
androidId?: string | undefined;
|
|
47
47
|
inAppBrowser?: string | null | undefined;
|
|
48
|
+
inAppBrowserV2?: string | null | undefined;
|
|
48
49
|
ios?: string | null | undefined;
|
|
49
50
|
iosId?: string | undefined;
|
|
50
51
|
native?: string | undefined;
|
|
@@ -45,6 +45,7 @@ export declare const findWalletBookWalletByNameAndChain: (walletBook: WalletBook
|
|
|
45
45
|
android?: string | null | undefined;
|
|
46
46
|
androidId?: string | undefined;
|
|
47
47
|
inAppBrowser?: string | null | undefined;
|
|
48
|
+
inAppBrowserV2?: string | null | undefined;
|
|
48
49
|
ios?: string | null | undefined;
|
|
49
50
|
iosId?: string | undefined;
|
|
50
51
|
native?: string | undefined;
|
|
@@ -65,6 +65,7 @@ export declare const walletBookCache: {
|
|
|
65
65
|
android?: string | null | undefined;
|
|
66
66
|
androidId?: string | undefined;
|
|
67
67
|
inAppBrowser?: string | null | undefined;
|
|
68
|
+
inAppBrowserV2?: string | null | undefined;
|
|
68
69
|
ios?: string | null | undefined;
|
|
69
70
|
iosId?: string | undefined;
|
|
70
71
|
native?: string | undefined;
|
|
@@ -62,6 +62,7 @@ export declare const useWalletBookCdn: () => {
|
|
|
62
62
|
android?: string | null | undefined;
|
|
63
63
|
androidId?: string | undefined;
|
|
64
64
|
inAppBrowser?: string | null | undefined;
|
|
65
|
+
inAppBrowserV2?: string | null | undefined;
|
|
65
66
|
ios?: string | null | undefined;
|
|
66
67
|
iosId?: string | undefined;
|
|
67
68
|
native?: string | undefined;
|
|
@@ -142,6 +142,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
142
142
|
android: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
143
143
|
androidId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
144
144
|
inAppBrowser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
|
+
inAppBrowserV2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
146
|
ios: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
146
147
|
iosId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
147
148
|
native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
@@ -150,6 +151,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
150
151
|
android?: string | null | undefined;
|
|
151
152
|
androidId?: string | undefined;
|
|
152
153
|
inAppBrowser?: string | null | undefined;
|
|
154
|
+
inAppBrowserV2?: string | null | undefined;
|
|
153
155
|
ios?: string | null | undefined;
|
|
154
156
|
iosId?: string | undefined;
|
|
155
157
|
native?: string | undefined;
|
|
@@ -158,6 +160,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
158
160
|
android?: string | null | undefined;
|
|
159
161
|
androidId?: unknown;
|
|
160
162
|
inAppBrowser?: string | null | undefined;
|
|
163
|
+
inAppBrowserV2?: string | null | undefined;
|
|
161
164
|
ios?: string | null | undefined;
|
|
162
165
|
iosId?: unknown;
|
|
163
166
|
native?: unknown;
|
|
@@ -166,6 +169,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
166
169
|
android?: string | null | undefined;
|
|
167
170
|
androidId?: string | undefined;
|
|
168
171
|
inAppBrowser?: string | null | undefined;
|
|
172
|
+
inAppBrowserV2?: string | null | undefined;
|
|
169
173
|
ios?: string | null | undefined;
|
|
170
174
|
iosId?: string | undefined;
|
|
171
175
|
native?: string | undefined;
|
|
@@ -174,6 +178,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
174
178
|
android?: string | null | undefined;
|
|
175
179
|
androidId?: unknown;
|
|
176
180
|
inAppBrowser?: string | null | undefined;
|
|
181
|
+
inAppBrowserV2?: string | null | undefined;
|
|
177
182
|
ios?: string | null | undefined;
|
|
178
183
|
iosId?: unknown;
|
|
179
184
|
native?: unknown;
|
|
@@ -282,6 +287,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
282
287
|
android?: string | null | undefined;
|
|
283
288
|
androidId?: string | undefined;
|
|
284
289
|
inAppBrowser?: string | null | undefined;
|
|
290
|
+
inAppBrowserV2?: string | null | undefined;
|
|
285
291
|
ios?: string | null | undefined;
|
|
286
292
|
iosId?: string | undefined;
|
|
287
293
|
native?: string | undefined;
|
|
@@ -351,6 +357,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
351
357
|
android?: string | null | undefined;
|
|
352
358
|
androidId?: unknown;
|
|
353
359
|
inAppBrowser?: string | null | undefined;
|
|
360
|
+
inAppBrowserV2?: string | null | undefined;
|
|
354
361
|
ios?: string | null | undefined;
|
|
355
362
|
iosId?: unknown;
|
|
356
363
|
native?: unknown;
|
|
@@ -420,6 +427,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
420
427
|
android?: string | null | undefined;
|
|
421
428
|
androidId?: string | undefined;
|
|
422
429
|
inAppBrowser?: string | null | undefined;
|
|
430
|
+
inAppBrowserV2?: string | null | undefined;
|
|
423
431
|
ios?: string | null | undefined;
|
|
424
432
|
iosId?: string | undefined;
|
|
425
433
|
native?: string | undefined;
|
|
@@ -489,6 +497,7 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
|
|
|
489
497
|
android?: string | null | undefined;
|
|
490
498
|
androidId?: string | undefined;
|
|
491
499
|
inAppBrowser?: string | null | undefined;
|
|
500
|
+
inAppBrowserV2?: string | null | undefined;
|
|
492
501
|
ios?: string | null | undefined;
|
|
493
502
|
iosId?: string | undefined;
|
|
494
503
|
native?: string | undefined;
|
|
@@ -736,6 +745,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
736
745
|
android: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
737
746
|
androidId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
738
747
|
inAppBrowser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
748
|
+
inAppBrowserV2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
739
749
|
ios: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
740
750
|
iosId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
741
751
|
native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
@@ -744,6 +754,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
744
754
|
android?: string | null | undefined;
|
|
745
755
|
androidId?: string | undefined;
|
|
746
756
|
inAppBrowser?: string | null | undefined;
|
|
757
|
+
inAppBrowserV2?: string | null | undefined;
|
|
747
758
|
ios?: string | null | undefined;
|
|
748
759
|
iosId?: string | undefined;
|
|
749
760
|
native?: string | undefined;
|
|
@@ -752,6 +763,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
752
763
|
android?: string | null | undefined;
|
|
753
764
|
androidId?: unknown;
|
|
754
765
|
inAppBrowser?: string | null | undefined;
|
|
766
|
+
inAppBrowserV2?: string | null | undefined;
|
|
755
767
|
ios?: string | null | undefined;
|
|
756
768
|
iosId?: unknown;
|
|
757
769
|
native?: unknown;
|
|
@@ -760,6 +772,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
760
772
|
android?: string | null | undefined;
|
|
761
773
|
androidId?: string | undefined;
|
|
762
774
|
inAppBrowser?: string | null | undefined;
|
|
775
|
+
inAppBrowserV2?: string | null | undefined;
|
|
763
776
|
ios?: string | null | undefined;
|
|
764
777
|
iosId?: string | undefined;
|
|
765
778
|
native?: string | undefined;
|
|
@@ -768,6 +781,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
768
781
|
android?: string | null | undefined;
|
|
769
782
|
androidId?: unknown;
|
|
770
783
|
inAppBrowser?: string | null | undefined;
|
|
784
|
+
inAppBrowserV2?: string | null | undefined;
|
|
771
785
|
ios?: string | null | undefined;
|
|
772
786
|
iosId?: unknown;
|
|
773
787
|
native?: unknown;
|
|
@@ -876,6 +890,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
876
890
|
android?: string | null | undefined;
|
|
877
891
|
androidId?: string | undefined;
|
|
878
892
|
inAppBrowser?: string | null | undefined;
|
|
893
|
+
inAppBrowserV2?: string | null | undefined;
|
|
879
894
|
ios?: string | null | undefined;
|
|
880
895
|
iosId?: string | undefined;
|
|
881
896
|
native?: string | undefined;
|
|
@@ -945,6 +960,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
945
960
|
android?: string | null | undefined;
|
|
946
961
|
androidId?: unknown;
|
|
947
962
|
inAppBrowser?: string | null | undefined;
|
|
963
|
+
inAppBrowserV2?: string | null | undefined;
|
|
948
964
|
ios?: string | null | undefined;
|
|
949
965
|
iosId?: unknown;
|
|
950
966
|
native?: unknown;
|
|
@@ -1014,6 +1030,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1014
1030
|
android?: string | null | undefined;
|
|
1015
1031
|
androidId?: string | undefined;
|
|
1016
1032
|
inAppBrowser?: string | null | undefined;
|
|
1033
|
+
inAppBrowserV2?: string | null | undefined;
|
|
1017
1034
|
ios?: string | null | undefined;
|
|
1018
1035
|
iosId?: string | undefined;
|
|
1019
1036
|
native?: string | undefined;
|
|
@@ -1083,6 +1100,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1083
1100
|
android?: string | null | undefined;
|
|
1084
1101
|
androidId?: string | undefined;
|
|
1085
1102
|
inAppBrowser?: string | null | undefined;
|
|
1103
|
+
inAppBrowserV2?: string | null | undefined;
|
|
1086
1104
|
ios?: string | null | undefined;
|
|
1087
1105
|
iosId?: string | undefined;
|
|
1088
1106
|
native?: string | undefined;
|
|
@@ -1171,6 +1189,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1171
1189
|
android?: string | null | undefined;
|
|
1172
1190
|
androidId?: string | undefined;
|
|
1173
1191
|
inAppBrowser?: string | null | undefined;
|
|
1192
|
+
inAppBrowserV2?: string | null | undefined;
|
|
1174
1193
|
ios?: string | null | undefined;
|
|
1175
1194
|
iosId?: string | undefined;
|
|
1176
1195
|
native?: string | undefined;
|
|
@@ -1278,6 +1297,7 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1278
1297
|
android?: string | null | undefined;
|
|
1279
1298
|
androidId?: string | undefined;
|
|
1280
1299
|
inAppBrowser?: string | null | undefined;
|
|
1300
|
+
inAppBrowserV2?: string | null | undefined;
|
|
1281
1301
|
ios?: string | null | undefined;
|
|
1282
1302
|
iosId?: string | undefined;
|
|
1283
1303
|
native?: string | undefined;
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var zod = require('zod');
|
|
7
|
+
var filterEmptyObject = require('./utils/filterEmptyObject.cjs');
|
|
7
8
|
var nonEmptyString = require('./utils/nonEmptyString.cjs');
|
|
9
|
+
var nonEmptyStringArray = require('./utils/nonEmptyStringArray.cjs');
|
|
10
|
+
var transformAndroidId = require('./utils/transformAndroidId.cjs');
|
|
8
11
|
var transformChromeExtensionId = require('./utils/transformChromeExtensionId.cjs');
|
|
9
12
|
var transformEdgeExtensionId = require('./utils/transformEdgeExtensionId.cjs');
|
|
10
13
|
var transformFirefoxExtensionId = require('./utils/transformFirefoxExtensionId.cjs');
|
|
11
14
|
var transformIosId = require('./utils/transformIosId.cjs');
|
|
12
|
-
var transformAndroidId = require('./utils/transformAndroidId.cjs');
|
|
13
|
-
var nonEmptyStringArray = require('./utils/nonEmptyStringArray.cjs');
|
|
14
|
-
var filterEmptyObject = require('./utils/filterEmptyObject.cjs');
|
|
15
15
|
|
|
16
16
|
const injectedConfigSchema = zod.z.object({
|
|
17
17
|
chain: zod.z.string(),
|
|
@@ -87,7 +87,11 @@ const walletSchema = zod.z
|
|
|
87
87
|
.object({
|
|
88
88
|
android: zod.string().nullish(),
|
|
89
89
|
androidId: nonEmptyString.nonEmptyString.transform(transformAndroidId.transformAndroidId),
|
|
90
|
+
/**
|
|
91
|
+
* @deprecated Use inAppBrowserV2 instead for EVM wallet deep linking
|
|
92
|
+
*/
|
|
90
93
|
inAppBrowser: zod.string().nullish(),
|
|
94
|
+
inAppBrowserV2: zod.string().nullish(),
|
|
91
95
|
ios: zod.string().nullish(),
|
|
92
96
|
iosId: nonEmptyString.nonEmptyString.transform(transformIosId.transformIosId),
|
|
93
97
|
native: nonEmptyString.nonEmptyString,
|
|
@@ -247,7 +247,11 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
247
247
|
mobile: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
248
248
|
android: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
249
249
|
androidId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
250
|
+
/**
|
|
251
|
+
* @deprecated Use inAppBrowserV2 instead for EVM wallet deep linking
|
|
252
|
+
*/
|
|
250
253
|
inAppBrowser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
254
|
+
inAppBrowserV2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
251
255
|
ios: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
252
256
|
iosId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
253
257
|
native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
@@ -256,6 +260,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
256
260
|
android?: string | null | undefined;
|
|
257
261
|
androidId?: string | undefined;
|
|
258
262
|
inAppBrowser?: string | null | undefined;
|
|
263
|
+
inAppBrowserV2?: string | null | undefined;
|
|
259
264
|
ios?: string | null | undefined;
|
|
260
265
|
iosId?: string | undefined;
|
|
261
266
|
native?: string | undefined;
|
|
@@ -264,6 +269,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
264
269
|
android?: string | null | undefined;
|
|
265
270
|
androidId?: unknown;
|
|
266
271
|
inAppBrowser?: string | null | undefined;
|
|
272
|
+
inAppBrowserV2?: string | null | undefined;
|
|
267
273
|
ios?: string | null | undefined;
|
|
268
274
|
iosId?: unknown;
|
|
269
275
|
native?: unknown;
|
|
@@ -272,6 +278,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
272
278
|
android?: string | null | undefined;
|
|
273
279
|
androidId?: string | undefined;
|
|
274
280
|
inAppBrowser?: string | null | undefined;
|
|
281
|
+
inAppBrowserV2?: string | null | undefined;
|
|
275
282
|
ios?: string | null | undefined;
|
|
276
283
|
iosId?: string | undefined;
|
|
277
284
|
native?: string | undefined;
|
|
@@ -280,6 +287,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
280
287
|
android?: string | null | undefined;
|
|
281
288
|
androidId?: unknown;
|
|
282
289
|
inAppBrowser?: string | null | undefined;
|
|
290
|
+
inAppBrowserV2?: string | null | undefined;
|
|
283
291
|
ios?: string | null | undefined;
|
|
284
292
|
iosId?: unknown;
|
|
285
293
|
native?: unknown;
|
|
@@ -391,6 +399,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
391
399
|
android?: string | null | undefined;
|
|
392
400
|
androidId?: string | undefined;
|
|
393
401
|
inAppBrowser?: string | null | undefined;
|
|
402
|
+
inAppBrowserV2?: string | null | undefined;
|
|
394
403
|
ios?: string | null | undefined;
|
|
395
404
|
iosId?: string | undefined;
|
|
396
405
|
native?: string | undefined;
|
|
@@ -460,6 +469,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
460
469
|
android?: string | null | undefined;
|
|
461
470
|
androidId?: unknown;
|
|
462
471
|
inAppBrowser?: string | null | undefined;
|
|
472
|
+
inAppBrowserV2?: string | null | undefined;
|
|
463
473
|
ios?: string | null | undefined;
|
|
464
474
|
iosId?: unknown;
|
|
465
475
|
native?: unknown;
|
|
@@ -529,6 +539,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
529
539
|
android?: string | null | undefined;
|
|
530
540
|
androidId?: string | undefined;
|
|
531
541
|
inAppBrowser?: string | null | undefined;
|
|
542
|
+
inAppBrowserV2?: string | null | undefined;
|
|
532
543
|
ios?: string | null | undefined;
|
|
533
544
|
iosId?: string | undefined;
|
|
534
545
|
native?: string | undefined;
|
|
@@ -598,6 +609,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
598
609
|
android?: string | null | undefined;
|
|
599
610
|
androidId?: string | undefined;
|
|
600
611
|
inAppBrowser?: string | null | undefined;
|
|
612
|
+
inAppBrowserV2?: string | null | undefined;
|
|
601
613
|
ios?: string | null | undefined;
|
|
602
614
|
iosId?: string | undefined;
|
|
603
615
|
native?: string | undefined;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { z, string } from 'zod';
|
|
3
|
+
import { filterEmptyObject } from './utils/filterEmptyObject.js';
|
|
3
4
|
import { nonEmptyString } from './utils/nonEmptyString.js';
|
|
5
|
+
import { nonEmptyStringArray } from './utils/nonEmptyStringArray.js';
|
|
6
|
+
import { transformAndroidId } from './utils/transformAndroidId.js';
|
|
4
7
|
import { transformChromeExtensionId } from './utils/transformChromeExtensionId.js';
|
|
5
8
|
import { transformEdgeExtensionId } from './utils/transformEdgeExtensionId.js';
|
|
6
9
|
import { transformFirefoxExtensionId } from './utils/transformFirefoxExtensionId.js';
|
|
7
10
|
import { transformIosId } from './utils/transformIosId.js';
|
|
8
|
-
import { transformAndroidId } from './utils/transformAndroidId.js';
|
|
9
|
-
import { nonEmptyStringArray } from './utils/nonEmptyStringArray.js';
|
|
10
|
-
import { filterEmptyObject } from './utils/filterEmptyObject.js';
|
|
11
11
|
|
|
12
12
|
const injectedConfigSchema = z.object({
|
|
13
13
|
chain: z.string(),
|
|
@@ -83,7 +83,11 @@ const walletSchema = z
|
|
|
83
83
|
.object({
|
|
84
84
|
android: string().nullish(),
|
|
85
85
|
androidId: nonEmptyString.transform(transformAndroidId),
|
|
86
|
+
/**
|
|
87
|
+
* @deprecated Use inAppBrowserV2 instead for EVM wallet deep linking
|
|
88
|
+
*/
|
|
86
89
|
inAppBrowser: string().nullish(),
|
|
90
|
+
inAppBrowserV2: string().nullish(),
|
|
87
91
|
ios: string().nullish(),
|
|
88
92
|
iosId: nonEmptyString.transform(transformIosId),
|
|
89
93
|
native: nonEmptyString,
|
|
@@ -276,10 +276,12 @@ var wallets = {
|
|
|
276
276
|
mobile: {
|
|
277
277
|
androidId: "io.metamask",
|
|
278
278
|
inAppBrowser: "https://metamask.app.link/dapp",
|
|
279
|
+
inAppBrowserV2: "https://metamask.app.link/dapp/{{dappURI}}",
|
|
279
280
|
iosId: "id1438144202",
|
|
280
281
|
native: "metamask://wc",
|
|
281
282
|
universal: "https://metamask.app.link/wc"
|
|
282
283
|
},
|
|
284
|
+
mobileExperience: "in-app-browser",
|
|
283
285
|
name: "MetaMask",
|
|
284
286
|
shortName: "MetaMask",
|
|
285
287
|
walletConnect: {
|
|
@@ -319,6 +321,7 @@ var wallets = {
|
|
|
319
321
|
],
|
|
320
322
|
mobile: {
|
|
321
323
|
androidId: "org.toshi",
|
|
324
|
+
inAppBrowserV2: "https://go.cb-w.com/dapp?cb_url={{encodedDappURI}}",
|
|
322
325
|
iosId: "id1278383455"
|
|
323
326
|
},
|
|
324
327
|
name: "Coinbase",
|
|
@@ -348,6 +351,7 @@ var wallets = {
|
|
|
348
351
|
mobile: {
|
|
349
352
|
androidId: "org.toshi",
|
|
350
353
|
inAppBrowser: "cbwallet://dapp?url={{encodedDappURI}}",
|
|
354
|
+
inAppBrowserV2: "cbwallet://dapp?url={{encodedDappURI}}",
|
|
351
355
|
iosId: "id1278383455"
|
|
352
356
|
},
|
|
353
357
|
mobileExperience: "in-app-browser",
|
|
@@ -424,7 +428,7 @@ var wallets = {
|
|
|
424
428
|
androidId: "app.phantom",
|
|
425
429
|
iosId: "id1598432977"
|
|
426
430
|
},
|
|
427
|
-
mobileExperience: "
|
|
431
|
+
mobileExperience: "redirect",
|
|
428
432
|
name: "Phantom"
|
|
429
433
|
},
|
|
430
434
|
phantombtc: {
|
|
@@ -496,6 +500,7 @@ var wallets = {
|
|
|
496
500
|
androidId: "app.phantom",
|
|
497
501
|
iosId: "id1598432977"
|
|
498
502
|
},
|
|
503
|
+
mobileExperience: "in-app-browser",
|
|
499
504
|
name: "Phantom",
|
|
500
505
|
shortName: "Phantom (EVM)"
|
|
501
506
|
},
|
|
@@ -688,6 +693,7 @@ var wallets = {
|
|
|
688
693
|
mobile: {
|
|
689
694
|
androidId: "app.braavos.wallet",
|
|
690
695
|
inAppBrowser: "https://link.braavos.app/dapp/{{encodedDappURI}}",
|
|
696
|
+
inAppBrowserV2: "https://link.braavos.app/dapp/{{encodedDappURI}}",
|
|
691
697
|
iosId: "id1636013523"
|
|
692
698
|
},
|
|
693
699
|
name: "Braavos"
|
|
@@ -752,6 +758,7 @@ var wallets = {
|
|
|
752
758
|
],
|
|
753
759
|
mobile: {
|
|
754
760
|
androidId: "com.wallet.crypto.trustapp",
|
|
761
|
+
inAppBrowserV2: "https://link.trustwallet.com/open_url?url={{encodedDappURI}}",
|
|
755
762
|
iosId: "id1288339409",
|
|
756
763
|
native: "trust://wc",
|
|
757
764
|
universal: "https://link.trustwallet.com/wc"
|
|
@@ -808,7 +815,8 @@ var wallets = {
|
|
|
808
815
|
],
|
|
809
816
|
mobile: {
|
|
810
817
|
androidId: "me.rainbow",
|
|
811
|
-
|
|
818
|
+
inAppBrowserV2: "rainbow://dapp?url={{encodedDappURI}}",
|
|
819
|
+
iosId: "id1598432977",
|
|
812
820
|
native: "rainbow://wc",
|
|
813
821
|
universal: "https://rnbwapp.com/wc"
|
|
814
822
|
},
|
|
@@ -948,6 +956,7 @@ var wallets = {
|
|
|
948
956
|
mobile: {
|
|
949
957
|
androidId: "com.magiceden.wallet",
|
|
950
958
|
inAppBrowser: "magiceden://browser",
|
|
959
|
+
inAppBrowserV2: "magiceden://browser/{{encodedDappURI}}",
|
|
951
960
|
iosId: "id6478631482",
|
|
952
961
|
native: "magiceden://wc",
|
|
953
962
|
universal: "https://magiceden.io/browser"
|
|
@@ -986,6 +995,7 @@ var wallets = {
|
|
|
986
995
|
mobile: {
|
|
987
996
|
androidId: "com.magiceden.wallet",
|
|
988
997
|
inAppBrowser: "magiceden://browser/{{encodedDappURI}}",
|
|
998
|
+
inAppBrowserV2: "magiceden://browser/{{encodedDappURI}}",
|
|
989
999
|
iosId: "id6478631482",
|
|
990
1000
|
universal: "https://magiceden.io/browser/{{encodedDappURI}}"
|
|
991
1001
|
},
|
|
@@ -1030,6 +1040,7 @@ var wallets = {
|
|
|
1030
1040
|
mobile: {
|
|
1031
1041
|
androidId: "com.magiceden.wallet",
|
|
1032
1042
|
inAppBrowser: "magiceden://browser/{{encodedDappURI}}",
|
|
1043
|
+
inAppBrowserV2: "magiceden://browser/{{encodedDappURI}}",
|
|
1033
1044
|
iosId: "id6478631482",
|
|
1034
1045
|
universal: "https://magiceden.io/browser/{{encodedDappURI}}"
|
|
1035
1046
|
},
|
|
@@ -1206,6 +1217,8 @@ var wallets = {
|
|
|
1206
1217
|
],
|
|
1207
1218
|
mobile: {
|
|
1208
1219
|
androidId: "com.okinc.okex.gp",
|
|
1220
|
+
inAppBrowser: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1221
|
+
inAppBrowserV2: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1209
1222
|
iosId: "id1327268470",
|
|
1210
1223
|
native: "okex://main/wc"
|
|
1211
1224
|
},
|
|
@@ -1287,6 +1300,7 @@ var wallets = {
|
|
|
1287
1300
|
mobile: {
|
|
1288
1301
|
androidId: "com.okinc.okex.gp",
|
|
1289
1302
|
inAppBrowser: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1303
|
+
inAppBrowserV2: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1290
1304
|
iosId: "id1327268470"
|
|
1291
1305
|
},
|
|
1292
1306
|
mobileExperience: "in-app-browser",
|
|
@@ -1368,6 +1382,7 @@ var wallets = {
|
|
|
1368
1382
|
mobile: {
|
|
1369
1383
|
androidId: "com.secretkeylabs.xverse",
|
|
1370
1384
|
inAppBrowser: "xverse://browser?url={{encodedDappURI}}",
|
|
1385
|
+
inAppBrowserV2: "xverse://browser?url={{encodedDappURI}}",
|
|
1371
1386
|
iosId: "id1552272513"
|
|
1372
1387
|
},
|
|
1373
1388
|
name: "Xverse",
|
|
@@ -1517,6 +1532,7 @@ var wallets = {
|
|
|
1517
1532
|
mobile: {
|
|
1518
1533
|
androidId: "com.okinc.okex.gp",
|
|
1519
1534
|
inAppBrowser: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1535
|
+
inAppBrowserV2: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1520
1536
|
iosId: "id1327268470"
|
|
1521
1537
|
},
|
|
1522
1538
|
name: "OKX Wallet"
|
|
@@ -1580,6 +1596,12 @@ var wallets = {
|
|
|
1580
1596
|
]
|
|
1581
1597
|
}
|
|
1582
1598
|
],
|
|
1599
|
+
mobile: {
|
|
1600
|
+
androidId: "com.bitkeep.wallet",
|
|
1601
|
+
inAppBrowser: "https://bkcode.vip?action=dapp&url={{encodedDappURI}}",
|
|
1602
|
+
inAppBrowserV2: "https://bkcode.vip?action=dapp&url={{encodedDappURI}}",
|
|
1603
|
+
iosId: "id1395301115"
|
|
1604
|
+
},
|
|
1583
1605
|
name: "Bitget Wallet"
|
|
1584
1606
|
},
|
|
1585
1607
|
backpackeclipse: {
|
|
@@ -1613,6 +1635,7 @@ var wallets = {
|
|
|
1613
1635
|
mobile: {
|
|
1614
1636
|
androidId: "app.backpack.mobile",
|
|
1615
1637
|
inAppBrowser: "backpack://ul/v1/browse/{{encodedDappURI}}",
|
|
1638
|
+
inAppBrowserV2: "backpack://ul/v1/browse/{{encodedDappURI}}",
|
|
1616
1639
|
iosId: "id6445964121"
|
|
1617
1640
|
},
|
|
1618
1641
|
mobileExperience: "in-app-browser",
|
package/wallet-book-fallbacks.js
CHANGED
|
@@ -272,10 +272,12 @@ var wallets = {
|
|
|
272
272
|
mobile: {
|
|
273
273
|
androidId: "io.metamask",
|
|
274
274
|
inAppBrowser: "https://metamask.app.link/dapp",
|
|
275
|
+
inAppBrowserV2: "https://metamask.app.link/dapp/{{dappURI}}",
|
|
275
276
|
iosId: "id1438144202",
|
|
276
277
|
native: "metamask://wc",
|
|
277
278
|
universal: "https://metamask.app.link/wc"
|
|
278
279
|
},
|
|
280
|
+
mobileExperience: "in-app-browser",
|
|
279
281
|
name: "MetaMask",
|
|
280
282
|
shortName: "MetaMask",
|
|
281
283
|
walletConnect: {
|
|
@@ -315,6 +317,7 @@ var wallets = {
|
|
|
315
317
|
],
|
|
316
318
|
mobile: {
|
|
317
319
|
androidId: "org.toshi",
|
|
320
|
+
inAppBrowserV2: "https://go.cb-w.com/dapp?cb_url={{encodedDappURI}}",
|
|
318
321
|
iosId: "id1278383455"
|
|
319
322
|
},
|
|
320
323
|
name: "Coinbase",
|
|
@@ -344,6 +347,7 @@ var wallets = {
|
|
|
344
347
|
mobile: {
|
|
345
348
|
androidId: "org.toshi",
|
|
346
349
|
inAppBrowser: "cbwallet://dapp?url={{encodedDappURI}}",
|
|
350
|
+
inAppBrowserV2: "cbwallet://dapp?url={{encodedDappURI}}",
|
|
347
351
|
iosId: "id1278383455"
|
|
348
352
|
},
|
|
349
353
|
mobileExperience: "in-app-browser",
|
|
@@ -420,7 +424,7 @@ var wallets = {
|
|
|
420
424
|
androidId: "app.phantom",
|
|
421
425
|
iosId: "id1598432977"
|
|
422
426
|
},
|
|
423
|
-
mobileExperience: "
|
|
427
|
+
mobileExperience: "redirect",
|
|
424
428
|
name: "Phantom"
|
|
425
429
|
},
|
|
426
430
|
phantombtc: {
|
|
@@ -492,6 +496,7 @@ var wallets = {
|
|
|
492
496
|
androidId: "app.phantom",
|
|
493
497
|
iosId: "id1598432977"
|
|
494
498
|
},
|
|
499
|
+
mobileExperience: "in-app-browser",
|
|
495
500
|
name: "Phantom",
|
|
496
501
|
shortName: "Phantom (EVM)"
|
|
497
502
|
},
|
|
@@ -684,6 +689,7 @@ var wallets = {
|
|
|
684
689
|
mobile: {
|
|
685
690
|
androidId: "app.braavos.wallet",
|
|
686
691
|
inAppBrowser: "https://link.braavos.app/dapp/{{encodedDappURI}}",
|
|
692
|
+
inAppBrowserV2: "https://link.braavos.app/dapp/{{encodedDappURI}}",
|
|
687
693
|
iosId: "id1636013523"
|
|
688
694
|
},
|
|
689
695
|
name: "Braavos"
|
|
@@ -748,6 +754,7 @@ var wallets = {
|
|
|
748
754
|
],
|
|
749
755
|
mobile: {
|
|
750
756
|
androidId: "com.wallet.crypto.trustapp",
|
|
757
|
+
inAppBrowserV2: "https://link.trustwallet.com/open_url?url={{encodedDappURI}}",
|
|
751
758
|
iosId: "id1288339409",
|
|
752
759
|
native: "trust://wc",
|
|
753
760
|
universal: "https://link.trustwallet.com/wc"
|
|
@@ -804,7 +811,8 @@ var wallets = {
|
|
|
804
811
|
],
|
|
805
812
|
mobile: {
|
|
806
813
|
androidId: "me.rainbow",
|
|
807
|
-
|
|
814
|
+
inAppBrowserV2: "rainbow://dapp?url={{encodedDappURI}}",
|
|
815
|
+
iosId: "id1598432977",
|
|
808
816
|
native: "rainbow://wc",
|
|
809
817
|
universal: "https://rnbwapp.com/wc"
|
|
810
818
|
},
|
|
@@ -944,6 +952,7 @@ var wallets = {
|
|
|
944
952
|
mobile: {
|
|
945
953
|
androidId: "com.magiceden.wallet",
|
|
946
954
|
inAppBrowser: "magiceden://browser",
|
|
955
|
+
inAppBrowserV2: "magiceden://browser/{{encodedDappURI}}",
|
|
947
956
|
iosId: "id6478631482",
|
|
948
957
|
native: "magiceden://wc",
|
|
949
958
|
universal: "https://magiceden.io/browser"
|
|
@@ -982,6 +991,7 @@ var wallets = {
|
|
|
982
991
|
mobile: {
|
|
983
992
|
androidId: "com.magiceden.wallet",
|
|
984
993
|
inAppBrowser: "magiceden://browser/{{encodedDappURI}}",
|
|
994
|
+
inAppBrowserV2: "magiceden://browser/{{encodedDappURI}}",
|
|
985
995
|
iosId: "id6478631482",
|
|
986
996
|
universal: "https://magiceden.io/browser/{{encodedDappURI}}"
|
|
987
997
|
},
|
|
@@ -1026,6 +1036,7 @@ var wallets = {
|
|
|
1026
1036
|
mobile: {
|
|
1027
1037
|
androidId: "com.magiceden.wallet",
|
|
1028
1038
|
inAppBrowser: "magiceden://browser/{{encodedDappURI}}",
|
|
1039
|
+
inAppBrowserV2: "magiceden://browser/{{encodedDappURI}}",
|
|
1029
1040
|
iosId: "id6478631482",
|
|
1030
1041
|
universal: "https://magiceden.io/browser/{{encodedDappURI}}"
|
|
1031
1042
|
},
|
|
@@ -1202,6 +1213,8 @@ var wallets = {
|
|
|
1202
1213
|
],
|
|
1203
1214
|
mobile: {
|
|
1204
1215
|
androidId: "com.okinc.okex.gp",
|
|
1216
|
+
inAppBrowser: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1217
|
+
inAppBrowserV2: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1205
1218
|
iosId: "id1327268470",
|
|
1206
1219
|
native: "okex://main/wc"
|
|
1207
1220
|
},
|
|
@@ -1283,6 +1296,7 @@ var wallets = {
|
|
|
1283
1296
|
mobile: {
|
|
1284
1297
|
androidId: "com.okinc.okex.gp",
|
|
1285
1298
|
inAppBrowser: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1299
|
+
inAppBrowserV2: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1286
1300
|
iosId: "id1327268470"
|
|
1287
1301
|
},
|
|
1288
1302
|
mobileExperience: "in-app-browser",
|
|
@@ -1364,6 +1378,7 @@ var wallets = {
|
|
|
1364
1378
|
mobile: {
|
|
1365
1379
|
androidId: "com.secretkeylabs.xverse",
|
|
1366
1380
|
inAppBrowser: "xverse://browser?url={{encodedDappURI}}",
|
|
1381
|
+
inAppBrowserV2: "xverse://browser?url={{encodedDappURI}}",
|
|
1367
1382
|
iosId: "id1552272513"
|
|
1368
1383
|
},
|
|
1369
1384
|
name: "Xverse",
|
|
@@ -1513,6 +1528,7 @@ var wallets = {
|
|
|
1513
1528
|
mobile: {
|
|
1514
1529
|
androidId: "com.okinc.okex.gp",
|
|
1515
1530
|
inAppBrowser: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1531
|
+
inAppBrowserV2: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1516
1532
|
iosId: "id1327268470"
|
|
1517
1533
|
},
|
|
1518
1534
|
name: "OKX Wallet"
|
|
@@ -1576,6 +1592,12 @@ var wallets = {
|
|
|
1576
1592
|
]
|
|
1577
1593
|
}
|
|
1578
1594
|
],
|
|
1595
|
+
mobile: {
|
|
1596
|
+
androidId: "com.bitkeep.wallet",
|
|
1597
|
+
inAppBrowser: "https://bkcode.vip?action=dapp&url={{encodedDappURI}}",
|
|
1598
|
+
inAppBrowserV2: "https://bkcode.vip?action=dapp&url={{encodedDappURI}}",
|
|
1599
|
+
iosId: "id1395301115"
|
|
1600
|
+
},
|
|
1579
1601
|
name: "Bitget Wallet"
|
|
1580
1602
|
},
|
|
1581
1603
|
backpackeclipse: {
|
|
@@ -1609,6 +1631,7 @@ var wallets = {
|
|
|
1609
1631
|
mobile: {
|
|
1610
1632
|
androidId: "app.backpack.mobile",
|
|
1611
1633
|
inAppBrowser: "backpack://ul/v1/browse/{{encodedDappURI}}",
|
|
1634
|
+
inAppBrowserV2: "backpack://ul/v1/browse/{{encodedDappURI}}",
|
|
1612
1635
|
iosId: "id6445964121"
|
|
1613
1636
|
},
|
|
1614
1637
|
mobileExperience: "in-app-browser",
|