@dynamic-labs/wallet-book 4.20.9 → 4.20.11
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 +30 -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 +21 -1
- package/wallet-book-fallbacks.js +21 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,34 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.20.11](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.10...v4.20.11) (2025-07-01)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* 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))
|
|
8
|
+
* 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))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* 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))
|
|
14
|
+
|
|
15
|
+
### [4.20.10](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.9...v4.20.10) (2025-06-30)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* add refresh user to react native ([#9019](https://github.com/dynamic-labs/dynamic-auth/issues/9019)) ([01adcda](https://github.com/dynamic-labs/dynamic-auth/commit/01adcda39994ba2955cad58bbd1d4e5063cc1122))
|
|
21
|
+
* support sui wallets on mobile ([#9038](https://github.com/dynamic-labs/dynamic-auth/issues/9038)) ([6f077da](https://github.com/dynamic-labs/dynamic-auth/commit/6f077da7deab525b0a3c5692a50a987c98f2b7e9))
|
|
22
|
+
* upgradetoDynamicWaas hook ([#9022](https://github.com/dynamic-labs/dynamic-auth/issues/9022)) ([3f1c42d](https://github.com/dynamic-labs/dynamic-auth/commit/3f1c42d71ab8b5a88d6b622f0b5fb41eb4ca9a4b))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* allow user to retry connecting with metamask on mobile deep link ([#9018](https://github.com/dynamic-labs/dynamic-auth/issues/9018)) ([09494c4](https://github.com/dynamic-labs/dynamic-auth/commit/09494c41680bb9949dc75df843e085c7743adc66))
|
|
28
|
+
* bump react 19 incompatible dependencies in sdk-react-core ([#9034](https://github.com/dynamic-labs/dynamic-auth/issues/9034)) ([e446f9c](https://github.com/dynamic-labs/dynamic-auth/commit/e446f9c26cf6d4566bf55be2e33dd540500d8fa5))
|
|
29
|
+
* filter out policies consent field from user profile view ([#9043](https://github.com/dynamic-labs/dynamic-auth/issues/9043)) ([e0e5003](https://github.com/dynamic-labs/dynamic-auth/commit/e0e500321719f1e1cfb8a67520641a6fb2f26cf8))
|
|
30
|
+
* use sui devnet for sui transactions ([#9042](https://github.com/dynamic-labs/dynamic-auth/issues/9042)) ([c61af4a](https://github.com/dynamic-labs/dynamic-auth/commit/c61af4a544ff35081b1286fc4b871a8ae031c3f3))
|
|
31
|
+
|
|
2
32
|
### [4.20.9](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.8...v4.20.9) (2025-06-24)
|
|
3
33
|
|
|
4
34
|
|
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.11",
|
|
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.11",
|
|
21
|
+
"@dynamic-labs/iconic": "4.20.11",
|
|
22
|
+
"@dynamic-labs/logger": "4.20.11",
|
|
23
|
+
"@dynamic-labs/utils": "4.20.11",
|
|
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",
|
|
@@ -688,6 +692,7 @@ var wallets = {
|
|
|
688
692
|
mobile: {
|
|
689
693
|
androidId: "app.braavos.wallet",
|
|
690
694
|
inAppBrowser: "https://link.braavos.app/dapp/{{encodedDappURI}}",
|
|
695
|
+
inAppBrowserV2: "https://link.braavos.app/dapp/{{encodedDappURI}}",
|
|
691
696
|
iosId: "id1636013523"
|
|
692
697
|
},
|
|
693
698
|
name: "Braavos"
|
|
@@ -752,6 +757,7 @@ var wallets = {
|
|
|
752
757
|
],
|
|
753
758
|
mobile: {
|
|
754
759
|
androidId: "com.wallet.crypto.trustapp",
|
|
760
|
+
inAppBrowserV2: "https://link.trustwallet.com/open_url?url={{encodedDappURI}}",
|
|
755
761
|
iosId: "id1288339409",
|
|
756
762
|
native: "trust://wc",
|
|
757
763
|
universal: "https://link.trustwallet.com/wc"
|
|
@@ -808,7 +814,8 @@ var wallets = {
|
|
|
808
814
|
],
|
|
809
815
|
mobile: {
|
|
810
816
|
androidId: "me.rainbow",
|
|
811
|
-
|
|
817
|
+
inAppBrowserV2: "rainbow://dapp?url={{encodedDappURI}}",
|
|
818
|
+
iosId: "id1598432977",
|
|
812
819
|
native: "rainbow://wc",
|
|
813
820
|
universal: "https://rnbwapp.com/wc"
|
|
814
821
|
},
|
|
@@ -948,6 +955,7 @@ var wallets = {
|
|
|
948
955
|
mobile: {
|
|
949
956
|
androidId: "com.magiceden.wallet",
|
|
950
957
|
inAppBrowser: "magiceden://browser",
|
|
958
|
+
inAppBrowserV2: "magiceden://browser/{{encodedDappURI}}",
|
|
951
959
|
iosId: "id6478631482",
|
|
952
960
|
native: "magiceden://wc",
|
|
953
961
|
universal: "https://magiceden.io/browser"
|
|
@@ -986,6 +994,7 @@ var wallets = {
|
|
|
986
994
|
mobile: {
|
|
987
995
|
androidId: "com.magiceden.wallet",
|
|
988
996
|
inAppBrowser: "magiceden://browser/{{encodedDappURI}}",
|
|
997
|
+
inAppBrowserV2: "magiceden://browser/{{encodedDappURI}}",
|
|
989
998
|
iosId: "id6478631482",
|
|
990
999
|
universal: "https://magiceden.io/browser/{{encodedDappURI}}"
|
|
991
1000
|
},
|
|
@@ -1030,6 +1039,7 @@ var wallets = {
|
|
|
1030
1039
|
mobile: {
|
|
1031
1040
|
androidId: "com.magiceden.wallet",
|
|
1032
1041
|
inAppBrowser: "magiceden://browser/{{encodedDappURI}}",
|
|
1042
|
+
inAppBrowserV2: "magiceden://browser/{{encodedDappURI}}",
|
|
1033
1043
|
iosId: "id6478631482",
|
|
1034
1044
|
universal: "https://magiceden.io/browser/{{encodedDappURI}}"
|
|
1035
1045
|
},
|
|
@@ -1287,6 +1297,7 @@ var wallets = {
|
|
|
1287
1297
|
mobile: {
|
|
1288
1298
|
androidId: "com.okinc.okex.gp",
|
|
1289
1299
|
inAppBrowser: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1300
|
+
inAppBrowserV2: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1290
1301
|
iosId: "id1327268470"
|
|
1291
1302
|
},
|
|
1292
1303
|
mobileExperience: "in-app-browser",
|
|
@@ -1368,6 +1379,7 @@ var wallets = {
|
|
|
1368
1379
|
mobile: {
|
|
1369
1380
|
androidId: "com.secretkeylabs.xverse",
|
|
1370
1381
|
inAppBrowser: "xverse://browser?url={{encodedDappURI}}",
|
|
1382
|
+
inAppBrowserV2: "xverse://browser?url={{encodedDappURI}}",
|
|
1371
1383
|
iosId: "id1552272513"
|
|
1372
1384
|
},
|
|
1373
1385
|
name: "Xverse",
|
|
@@ -1517,6 +1529,7 @@ var wallets = {
|
|
|
1517
1529
|
mobile: {
|
|
1518
1530
|
androidId: "com.okinc.okex.gp",
|
|
1519
1531
|
inAppBrowser: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1532
|
+
inAppBrowserV2: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1520
1533
|
iosId: "id1327268470"
|
|
1521
1534
|
},
|
|
1522
1535
|
name: "OKX Wallet"
|
|
@@ -1580,6 +1593,12 @@ var wallets = {
|
|
|
1580
1593
|
]
|
|
1581
1594
|
}
|
|
1582
1595
|
],
|
|
1596
|
+
mobile: {
|
|
1597
|
+
androidId: "com.bitkeep.wallet",
|
|
1598
|
+
inAppBrowser: "https://bkcode.vip?action=dapp&url={{encodedDappURI}}",
|
|
1599
|
+
inAppBrowserV2: "https://bkcode.vip?action=dapp&url={{encodedDappURI}}",
|
|
1600
|
+
iosId: "id1395301115"
|
|
1601
|
+
},
|
|
1583
1602
|
name: "Bitget Wallet"
|
|
1584
1603
|
},
|
|
1585
1604
|
backpackeclipse: {
|
|
@@ -1613,6 +1632,7 @@ var wallets = {
|
|
|
1613
1632
|
mobile: {
|
|
1614
1633
|
androidId: "app.backpack.mobile",
|
|
1615
1634
|
inAppBrowser: "backpack://ul/v1/browse/{{encodedDappURI}}",
|
|
1635
|
+
inAppBrowserV2: "backpack://ul/v1/browse/{{encodedDappURI}}",
|
|
1616
1636
|
iosId: "id6445964121"
|
|
1617
1637
|
},
|
|
1618
1638
|
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",
|
|
@@ -684,6 +688,7 @@ var wallets = {
|
|
|
684
688
|
mobile: {
|
|
685
689
|
androidId: "app.braavos.wallet",
|
|
686
690
|
inAppBrowser: "https://link.braavos.app/dapp/{{encodedDappURI}}",
|
|
691
|
+
inAppBrowserV2: "https://link.braavos.app/dapp/{{encodedDappURI}}",
|
|
687
692
|
iosId: "id1636013523"
|
|
688
693
|
},
|
|
689
694
|
name: "Braavos"
|
|
@@ -748,6 +753,7 @@ var wallets = {
|
|
|
748
753
|
],
|
|
749
754
|
mobile: {
|
|
750
755
|
androidId: "com.wallet.crypto.trustapp",
|
|
756
|
+
inAppBrowserV2: "https://link.trustwallet.com/open_url?url={{encodedDappURI}}",
|
|
751
757
|
iosId: "id1288339409",
|
|
752
758
|
native: "trust://wc",
|
|
753
759
|
universal: "https://link.trustwallet.com/wc"
|
|
@@ -804,7 +810,8 @@ var wallets = {
|
|
|
804
810
|
],
|
|
805
811
|
mobile: {
|
|
806
812
|
androidId: "me.rainbow",
|
|
807
|
-
|
|
813
|
+
inAppBrowserV2: "rainbow://dapp?url={{encodedDappURI}}",
|
|
814
|
+
iosId: "id1598432977",
|
|
808
815
|
native: "rainbow://wc",
|
|
809
816
|
universal: "https://rnbwapp.com/wc"
|
|
810
817
|
},
|
|
@@ -944,6 +951,7 @@ var wallets = {
|
|
|
944
951
|
mobile: {
|
|
945
952
|
androidId: "com.magiceden.wallet",
|
|
946
953
|
inAppBrowser: "magiceden://browser",
|
|
954
|
+
inAppBrowserV2: "magiceden://browser/{{encodedDappURI}}",
|
|
947
955
|
iosId: "id6478631482",
|
|
948
956
|
native: "magiceden://wc",
|
|
949
957
|
universal: "https://magiceden.io/browser"
|
|
@@ -982,6 +990,7 @@ var wallets = {
|
|
|
982
990
|
mobile: {
|
|
983
991
|
androidId: "com.magiceden.wallet",
|
|
984
992
|
inAppBrowser: "magiceden://browser/{{encodedDappURI}}",
|
|
993
|
+
inAppBrowserV2: "magiceden://browser/{{encodedDappURI}}",
|
|
985
994
|
iosId: "id6478631482",
|
|
986
995
|
universal: "https://magiceden.io/browser/{{encodedDappURI}}"
|
|
987
996
|
},
|
|
@@ -1026,6 +1035,7 @@ var wallets = {
|
|
|
1026
1035
|
mobile: {
|
|
1027
1036
|
androidId: "com.magiceden.wallet",
|
|
1028
1037
|
inAppBrowser: "magiceden://browser/{{encodedDappURI}}",
|
|
1038
|
+
inAppBrowserV2: "magiceden://browser/{{encodedDappURI}}",
|
|
1029
1039
|
iosId: "id6478631482",
|
|
1030
1040
|
universal: "https://magiceden.io/browser/{{encodedDappURI}}"
|
|
1031
1041
|
},
|
|
@@ -1283,6 +1293,7 @@ var wallets = {
|
|
|
1283
1293
|
mobile: {
|
|
1284
1294
|
androidId: "com.okinc.okex.gp",
|
|
1285
1295
|
inAppBrowser: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1296
|
+
inAppBrowserV2: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1286
1297
|
iosId: "id1327268470"
|
|
1287
1298
|
},
|
|
1288
1299
|
mobileExperience: "in-app-browser",
|
|
@@ -1364,6 +1375,7 @@ var wallets = {
|
|
|
1364
1375
|
mobile: {
|
|
1365
1376
|
androidId: "com.secretkeylabs.xverse",
|
|
1366
1377
|
inAppBrowser: "xverse://browser?url={{encodedDappURI}}",
|
|
1378
|
+
inAppBrowserV2: "xverse://browser?url={{encodedDappURI}}",
|
|
1367
1379
|
iosId: "id1552272513"
|
|
1368
1380
|
},
|
|
1369
1381
|
name: "Xverse",
|
|
@@ -1513,6 +1525,7 @@ var wallets = {
|
|
|
1513
1525
|
mobile: {
|
|
1514
1526
|
androidId: "com.okinc.okex.gp",
|
|
1515
1527
|
inAppBrowser: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1528
|
+
inAppBrowserV2: "okx://wallet/dapp/url?dappUrl={{encodedDappURI}}",
|
|
1516
1529
|
iosId: "id1327268470"
|
|
1517
1530
|
},
|
|
1518
1531
|
name: "OKX Wallet"
|
|
@@ -1576,6 +1589,12 @@ var wallets = {
|
|
|
1576
1589
|
]
|
|
1577
1590
|
}
|
|
1578
1591
|
],
|
|
1592
|
+
mobile: {
|
|
1593
|
+
androidId: "com.bitkeep.wallet",
|
|
1594
|
+
inAppBrowser: "https://bkcode.vip?action=dapp&url={{encodedDappURI}}",
|
|
1595
|
+
inAppBrowserV2: "https://bkcode.vip?action=dapp&url={{encodedDappURI}}",
|
|
1596
|
+
iosId: "id1395301115"
|
|
1597
|
+
},
|
|
1579
1598
|
name: "Bitget Wallet"
|
|
1580
1599
|
},
|
|
1581
1600
|
backpackeclipse: {
|
|
@@ -1609,6 +1628,7 @@ var wallets = {
|
|
|
1609
1628
|
mobile: {
|
|
1610
1629
|
androidId: "app.backpack.mobile",
|
|
1611
1630
|
inAppBrowser: "backpack://ul/v1/browse/{{encodedDappURI}}",
|
|
1631
|
+
inAppBrowserV2: "backpack://ul/v1/browse/{{encodedDappURI}}",
|
|
1612
1632
|
iosId: "id6445964121"
|
|
1613
1633
|
},
|
|
1614
1634
|
mobileExperience: "in-app-browser",
|