@dynamic-labs/wallet-book 0.19.3 → 1.0.0-alpha.1
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 +41 -24
- package/package.json +2 -2
- package/src/build/sources/walletConnect/index.d.ts +14 -12
- package/src/build/sources/walletConnectOverrides/index.d.ts +40 -0
- package/src/schemas/walletConnectSourceSchema.cjs +6 -2
- package/src/schemas/walletConnectSourceSchema.d.ts +32 -20
- package/src/schemas/walletConnectSourceSchema.js +6 -2
- package/wallet-book-fallbacks.cjs +13 -22
- package/wallet-book-fallbacks.js +13 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,41 +1,58 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
## [1.0.0-alpha.1](https://github.com/dynamic-labs/DynamicAuth/compare/v1.0.0-alpha.0...v1.0.0-alpha.1) (2023-11-22)
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
### Features
|
|
6
6
|
|
|
7
|
-
*
|
|
7
|
+
* add basic zerodev connector ([#3782](https://github.com/dynamic-labs/DynamicAuth/issues/3782)) ([3f8debd](https://github.com/dynamic-labs/DynamicAuth/commit/3f8debddb1bff325389193e0348128ebb9ba59b9))
|
|
8
|
+
* add hcaptcha to dynamic signin methods ([#3853](https://github.com/dynamic-labs/DynamicAuth/issues/3853)) ([a4a9ad3](https://github.com/dynamic-labs/DynamicAuth/commit/a4a9ad3b048e33acc5b885cd797697ca4f41995e))
|
|
9
|
+
* add hcaptcha to magic login methods ([#3894](https://github.com/dynamic-labs/DynamicAuth/issues/3894)) ([c76b750](https://github.com/dynamic-labs/DynamicAuth/commit/c76b750351557ad9cf5bbcc39bd7fd0970b66312))
|
|
10
|
+
* add need help section to sign message modal ([#3847](https://github.com/dynamic-labs/DynamicAuth/issues/3847)) ([4f90617](https://github.com/dynamic-labs/DynamicAuth/commit/4f90617bcf400a7171062435c731d95c6bbf41c7))
|
|
11
|
+
* add perawallet to wallet book ([#3868](https://github.com/dynamic-labs/DynamicAuth/issues/3868)) ([5f4e79d](https://github.com/dynamic-labs/DynamicAuth/commit/5f4e79df202b02088b15c5dfab7feee5789e9ece))
|
|
12
|
+
* add serialization to allow sending events callbacks and wallet connectors used by customers ([0077eb0](https://github.com/dynamic-labs/DynamicAuth/commit/0077eb0af05feb765d0c61911a48d5e98554760a))
|
|
13
|
+
* add support for dynamic domains for starknet signatures ([#3927](https://github.com/dynamic-labs/DynamicAuth/issues/3927)) ([52797ce](https://github.com/dynamic-labs/DynamicAuth/commit/52797ce867c956049bfa5021cf5b1c562e771a2e))
|
|
14
|
+
* add support for Pera Wallet ([#3866](https://github.com/dynamic-labs/DynamicAuth/issues/3866)) ([cb99ae7](https://github.com/dynamic-labs/DynamicAuth/commit/cb99ae77605d913932a77bf2ea565b7e7baf781a))
|
|
15
|
+
* add support for private starknet rpc providers ([#3881](https://github.com/dynamic-labs/DynamicAuth/issues/3881)) ([8fd5ef9](https://github.com/dynamic-labs/DynamicAuth/commit/8fd5ef902d48ef828b1cb89d0e462ea5b54f4e42))
|
|
16
|
+
* add zerodev to wallet book and render generic wallet icon ([#3822](https://github.com/dynamic-labs/DynamicAuth/issues/3822)) ([9c5768d](https://github.com/dynamic-labs/DynamicAuth/commit/9c5768d0fc1169c62927926c0e436b6a448d5656))
|
|
17
|
+
* allow updating evmNetworks in real time ([#3877](https://github.com/dynamic-labs/DynamicAuth/issues/3877)) ([b4a2521](https://github.com/dynamic-labs/DynamicAuth/commit/b4a2521830b859a129d70bad2ae1213db075550d))
|
|
18
|
+
* editable copies as typed data ([#3784](https://github.com/dynamic-labs/DynamicAuth/issues/3784)) ([d6c6d74](https://github.com/dynamic-labs/DynamicAuth/commit/d6c6d74e60c9c9d459414c452fbd780d3f6bc2f9))
|
|
19
|
+
* email inputs now use email keyboard ([#3843](https://github.com/dynamic-labs/DynamicAuth/issues/3843)) ([76926e2](https://github.com/dynamic-labs/DynamicAuth/commit/76926e26b6a188d9d8e3bba2512340610e218e9f))
|
|
20
|
+
* hide unlink if disabled in dashboard ([#3825](https://github.com/dynamic-labs/DynamicAuth/issues/3825)) ([a0625e6](https://github.com/dynamic-labs/DynamicAuth/commit/a0625e6fd01aa5b57e6b8542efe04e280e0c6830))
|
|
21
|
+
* initialize smart wallet from verified credentials ([#3790](https://github.com/dynamic-labs/DynamicAuth/issues/3790)) ([1fc5890](https://github.com/dynamic-labs/DynamicAuth/commit/1fc5890f2e0ef458bfb59d38d536c41d183bc2a2))
|
|
22
|
+
* set smart wallet as primary when owner is an embedded wallet ([#3898](https://github.com/dynamic-labs/DynamicAuth/issues/3898)) ([ec40172](https://github.com/dynamic-labs/DynamicAuth/commit/ec401729f38d946d5431bbbb15c5c1cdc66acb73))
|
|
23
|
+
* support forced network validation via DynamicContext setting ([#3879](https://github.com/dynamic-labs/DynamicAuth/issues/3879)) ([a7993b9](https://github.com/dynamic-labs/DynamicAuth/commit/a7993b9b6bdd739bcb4e66e46d14e7f8623bed66))
|
|
24
|
+
* **transaction:** add sponsored gas transaction ([#3869](https://github.com/dynamic-labs/DynamicAuth/issues/3869)) ([ccceb24](https://github.com/dynamic-labs/DynamicAuth/commit/ccceb2421e029dc60e53912e404b574324d6772f))
|
|
8
25
|
|
|
9
26
|
|
|
10
27
|
### Bug Fixes
|
|
11
28
|
|
|
12
|
-
*
|
|
13
|
-
*
|
|
29
|
+
* **account-abstraction:** set verified credentials before setting EOA to wallet connector ([#3941](https://github.com/dynamic-labs/DynamicAuth/issues/3941)) ([7475c46](https://github.com/dynamic-labs/DynamicAuth/commit/7475c465f5ddf9e27d0b05d23e58d9b474fa8fd4))
|
|
30
|
+
* add brand to zerodev object ([#3828](https://github.com/dynamic-labs/DynamicAuth/issues/3828)) ([81cb237](https://github.com/dynamic-labs/DynamicAuth/commit/81cb237df4def8e1c53b4ae145afafccf3b04683))
|
|
31
|
+
* add spriteId to zerodev ([#3829](https://github.com/dynamic-labs/DynamicAuth/issues/3829)) ([6b87c5c](https://github.com/dynamic-labs/DynamicAuth/commit/6b87c5c3d5869f6cd15a7534fb0260932845fbb1))
|
|
32
|
+
* allow metadata to be updated in updateUser hook ([#3928](https://github.com/dynamic-labs/DynamicAuth/issues/3928)) ([4f39fbd](https://github.com/dynamic-labs/DynamicAuth/commit/4f39fbd757b4e816dd60651252575c1f7e4d80aa))
|
|
33
|
+
* blocto flow connect only infinite recursion ([#3883](https://github.com/dynamic-labs/DynamicAuth/issues/3883)) ([6c6f5ba](https://github.com/dynamic-labs/DynamicAuth/commit/6c6f5ba5dc0657cc7ffdc82a4ea7935f65686088))
|
|
34
|
+
* clear project settings on page refresh ([#3826](https://github.com/dynamic-labs/DynamicAuth/issues/3826)) ([da5b8f0](https://github.com/dynamic-labs/DynamicAuth/commit/da5b8f0a99bf913ea11314954e5f08c2b019f50f))
|
|
35
|
+
* don't call computeConnectedStateForWallets too often to avoid infinite loops ([#3946](https://github.com/dynamic-labs/DynamicAuth/issues/3946)) ([de4e61a](https://github.com/dynamic-labs/DynamicAuth/commit/de4e61a3fcdc9c25cbe030c3c25cbc2c04929a93))
|
|
36
|
+
* don't call disconnect multiple times ([#3940](https://github.com/dynamic-labs/DynamicAuth/issues/3940)) ([3ea8623](https://github.com/dynamic-labs/DynamicAuth/commit/3ea86233d8d07dfb3c751a5fec45d5df84e9e143))
|
|
37
|
+
* **embedded wallet:** stop overriding primary wallet selection ([#3796](https://github.com/dynamic-labs/DynamicAuth/issues/3796)) ([75b81e7](https://github.com/dynamic-labs/DynamicAuth/commit/75b81e74d472ce8cc493646b441d2b4fe3962373))
|
|
38
|
+
* exodusevm wallet connect and mobile deep linking ([#3855](https://github.com/dynamic-labs/DynamicAuth/issues/3855)) ([cf0b3f0](https://github.com/dynamic-labs/DynamicAuth/commit/cf0b3f077f935eab32ce45947f62e73342d6c169))
|
|
39
|
+
* handle errors properly when engaging captcha ([#3896](https://github.com/dynamic-labs/DynamicAuth/issues/3896)) ([2596315](https://github.com/dynamic-labs/DynamicAuth/commit/25963153d699b26c6e04ea38b267446d3a3af13b))
|
|
40
|
+
* null safe check to window object ([#3882](https://github.com/dynamic-labs/DynamicAuth/issues/3882)) ([8856b5a](https://github.com/dynamic-labs/DynamicAuth/commit/8856b5ae40d43285eac667401387971b9e3f077d))
|
|
41
|
+
* pass correct wallet connector onLinkSuccess ([#3904](https://github.com/dynamic-labs/DynamicAuth/issues/3904)) ([79cca69](https://github.com/dynamic-labs/DynamicAuth/commit/79cca69ed53a5ef2c4e4d712ce0934e1a4c11459))
|
|
42
|
+
* remove extra captcha context provider instantiation causing unecessary rerenderings ([#3914](https://github.com/dynamic-labs/DynamicAuth/issues/3914)) ([14120a6](https://github.com/dynamic-labs/DynamicAuth/commit/14120a6ac0415f9a59608b376e88de6c729d4e5d))
|
|
43
|
+
* remove the coming soon label ([#3860](https://github.com/dynamic-labs/DynamicAuth/issues/3860)) ([1effb7f](https://github.com/dynamic-labs/DynamicAuth/commit/1effb7f124bda66aae3e8991b5386a1cee28fd99))
|
|
44
|
+
* Revert "chore: fix vite build ([#3849](https://github.com/dynamic-labs/DynamicAuth/issues/3849))" ([#3870](https://github.com/dynamic-labs/DynamicAuth/issues/3870)) ([13bc424](https://github.com/dynamic-labs/DynamicAuth/commit/13bc42483bcb9338babd46eae00988acada83578))
|
|
45
|
+
* **single-wallet:** prompt user to select correct wallet ([#3742](https://github.com/dynamic-labs/DynamicAuth/issues/3742)) ([ccfdd3c](https://github.com/dynamic-labs/DynamicAuth/commit/ccfdd3cc6a4ac7f3b1ea13be92e58982ecfb1c59))
|
|
46
|
+
* update walletconnect.json and walletconnect source schema ([#3854](https://github.com/dynamic-labs/DynamicAuth/issues/3854)) ([88ee546](https://github.com/dynamic-labs/DynamicAuth/commit/88ee5468db0130b19c6637a5632e64e0bb5197ba))
|
|
47
|
+
* useEmailProvider not checking for enabled providers properly ([7c16edc](https://github.com/dynamic-labs/DynamicAuth/commit/7c16edc3785ba10d69762b174f054b0d10b8a072))
|
|
48
|
+
* **wagmi:** ensure chain is defined on wallet client ([#3888](https://github.com/dynamic-labs/DynamicAuth/issues/3888)) ([0e145f6](https://github.com/dynamic-labs/DynamicAuth/commit/0e145f6ac42f55df7a020716d4ddc023554d72f9))
|
|
14
49
|
|
|
15
|
-
|
|
50
|
+
## [1.0.0-alpha.0](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0...v1.0.0-alpha.0) (2023-10-31)
|
|
16
51
|
|
|
17
52
|
|
|
18
53
|
### Features
|
|
19
54
|
|
|
20
|
-
*
|
|
21
|
-
* feat: add help section to sign message modal ([4e0a0c4](https://github.com/dynamic-labs/DynamicAuth/commit/4e0a0c4cde73f802bfcaa99351d295060244382f))
|
|
22
|
-
|
|
23
|
-
### Bug Fixes
|
|
24
|
-
|
|
25
|
-
* fix(embedded wallets): allow switching primary wallet ([#3796](https://github.com/dynamic-labs/DynamicAuth/issues/3796)) ([#3797](https://github.com/dynamic-labs/DynamicAuth/issues/3797)) ([a01af71](https://github.com/dynamic-labs/DynamicAuth/commit/a01af71ce0c79a791c4c4bb7d3f3d41bd7fe8edf))
|
|
26
|
-
* fix(embedded wallets): improve logic to check for enabled providers ([5189b96](https://github.com/dynamic-labs/DynamicAuth/commit/5189b96d8fa82e656c916cad130619be6e3b7afd))
|
|
27
|
-
* fix(single wallet): improve account switching UX ([#3742](https://github.com/dynamic-labs/DynamicAuth/issues/3742)) ([#3856](https://github.com/dynamic-labs/DynamicAuth/issues/3856)) ([1efffab](https://github.com/dynamic-labs/DynamicAuth/commit/1efffabf4a668f266564ecaa4405f3fb063bbf38))
|
|
28
|
-
* fix(wagmi): ensure chain is defined on wallet client ([#3888](https://github.com/dynamic-labs/DynamicAuth/issues/3888)) ([#3897](https://github.com/dynamic-labs/DynamicAuth/issues/3897)) ([3ee4885](https://github.com/dynamic-labs/DynamicAuth/commit/3ee4885b129ee619bc82ce09e39a3d5934afd734))
|
|
29
|
-
* fix(ui): remove the coming soon label ([#3876](https://github.com/dynamic-labs/DynamicAuth/issues/3876)) ([298f777](https://github.com/dynamic-labs/DynamicAuth/commit/298f777e4c5923075856e8b47c792c1951615c0e)), closes [#3860](https://github.com/dynamic-labs/DynamicAuth/issues/3860)
|
|
30
|
-
* fix(ssr): add window null check to utils ([#3882](https://github.com/dynamic-labs/DynamicAuth/issues/3882)) ([#3885](https://github.com/dynamic-labs/DynamicAuth/issues/3885)) ([bc8b8e3](https://github.com/dynamic-labs/DynamicAuth/commit/bc8b8e386fd82d9ca6b53deaa3aa852d6ebdafdc))
|
|
31
|
-
* fix(callbacks): pass correct wallet connector onLinkSuccess ([#3904](https://github.com/dynamic-labs/DynamicAuth/issues/3904)) ([#3908](https://github.com/dynamic-labs/DynamicAuth/issues/3908)) ([f05f5f8](https://github.com/dynamic-labs/DynamicAuth/commit/f05f5f8f336c42e24a7422959ba06002aba8be02))
|
|
32
|
-
|
|
33
|
-
### [0.19.1](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0...v0.19.1) (2023-11-03)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
### Features
|
|
37
|
-
|
|
38
|
-
* adding editable copies as typed data ([#3773](https://github.com/dynamic-labs/DynamicAuth/issues/3773)) ([#3793](https://github.com/dynamic-labs/DynamicAuth/issues/3793)) ([f2a4135](https://github.com/dynamic-labs/DynamicAuth/commit/f2a41356686aeb8381ee3f4ec3d1f52b7e2f6dcd))
|
|
55
|
+
* adding editable copies ([#3773](https://github.com/dynamic-labs/DynamicAuth/issues/3773)) ([7b61b50](https://github.com/dynamic-labs/DynamicAuth/commit/7b61b50be76d8f59a8e01ac855d044fdf4bb923e))
|
|
39
56
|
|
|
40
57
|
## [0.19.0](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.28...v0.19.0) (2023-10-31)
|
|
41
58
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-book",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-alpha.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"zod": "3.22.4",
|
|
29
|
-
"@dynamic-labs/logger": "0.
|
|
29
|
+
"@dynamic-labs/logger": "1.0.0-alpha.1"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"react": "^17.0.2 || ^18.0.0",
|
|
@@ -10,6 +10,13 @@ export declare const walletConnectSourceData: Record<string, {
|
|
|
10
10
|
universal: string | null;
|
|
11
11
|
};
|
|
12
12
|
sdks: string[];
|
|
13
|
+
metadata: {
|
|
14
|
+
shortName: string | null;
|
|
15
|
+
colors: {
|
|
16
|
+
primary: string | null;
|
|
17
|
+
secondary: string | null;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
13
20
|
app: {
|
|
14
21
|
android: string | null;
|
|
15
22
|
ios: string | null;
|
|
@@ -24,6 +31,7 @@ export declare const walletConnectSourceData: Record<string, {
|
|
|
24
31
|
windows: string | null;
|
|
25
32
|
};
|
|
26
33
|
app_type: string;
|
|
34
|
+
category: string | null;
|
|
27
35
|
description: string | null;
|
|
28
36
|
homepage: string;
|
|
29
37
|
id: string;
|
|
@@ -37,23 +45,17 @@ export declare const walletConnectSourceData: Record<string, {
|
|
|
37
45
|
injected_id: string;
|
|
38
46
|
namespace: string;
|
|
39
47
|
}[] | null;
|
|
40
|
-
|
|
41
|
-
shortName: string | null;
|
|
42
|
-
colors: {
|
|
43
|
-
primary: string | null;
|
|
44
|
-
secondary: string | null;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
48
|
+
rdns: string | null;
|
|
47
49
|
slug: string;
|
|
48
|
-
|
|
50
|
+
updatedAt: string;
|
|
51
|
+
versions: string[];
|
|
52
|
+
supported_standards?: {
|
|
53
|
+
title: string;
|
|
49
54
|
id: string;
|
|
50
55
|
standard_id: number;
|
|
51
56
|
standard_prefix: string;
|
|
52
|
-
title: string;
|
|
53
57
|
url: string;
|
|
54
|
-
}[];
|
|
55
|
-
updatedAt: string;
|
|
56
|
-
versions: string[];
|
|
58
|
+
}[] | undefined;
|
|
57
59
|
}>;
|
|
58
60
|
export declare const walletConnectTransformedData: Promise<Record<string, {
|
|
59
61
|
name: string;
|
|
@@ -20,6 +20,26 @@ export declare const applyOverrides: (sourceData: any, overrides?: {
|
|
|
20
20
|
value: string;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
+
exodusevm: {
|
|
24
|
+
chains: {
|
|
25
|
+
action: string;
|
|
26
|
+
value: string[];
|
|
27
|
+
};
|
|
28
|
+
mobile: {
|
|
29
|
+
action: string;
|
|
30
|
+
value: {
|
|
31
|
+
androidId: string;
|
|
32
|
+
iosId: string;
|
|
33
|
+
native: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
walletConnect: {
|
|
37
|
+
action: string;
|
|
38
|
+
value: {
|
|
39
|
+
sdks: string[];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
23
43
|
ledger: {
|
|
24
44
|
switchNetworkOnlyFromWallet: {
|
|
25
45
|
action: string;
|
|
@@ -144,6 +164,26 @@ export declare const walletConnectOverrides: {
|
|
|
144
164
|
value: string;
|
|
145
165
|
};
|
|
146
166
|
};
|
|
167
|
+
exodusevm: {
|
|
168
|
+
chains: {
|
|
169
|
+
action: string;
|
|
170
|
+
value: string[];
|
|
171
|
+
};
|
|
172
|
+
mobile: {
|
|
173
|
+
action: string;
|
|
174
|
+
value: {
|
|
175
|
+
androidId: string;
|
|
176
|
+
iosId: string;
|
|
177
|
+
native: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
walletConnect: {
|
|
181
|
+
action: string;
|
|
182
|
+
value: {
|
|
183
|
+
sdks: string[];
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
147
187
|
ledger: {
|
|
148
188
|
switchNetworkOnlyFromWallet: {
|
|
149
189
|
action: string;
|
|
@@ -20,6 +20,7 @@ const walletConnectSourceValueSchema = zod.z
|
|
|
20
20
|
windows: zod.z.string().nullable(),
|
|
21
21
|
}),
|
|
22
22
|
app_type: zod.z.string(),
|
|
23
|
+
category: zod.z.string().nullable(),
|
|
23
24
|
chains: zod.z.array(zod.z.string()),
|
|
24
25
|
description: zod.z.string().nullable(),
|
|
25
26
|
desktop: zod.z.object({
|
|
@@ -52,15 +53,18 @@ const walletConnectSourceValueSchema = zod.z
|
|
|
52
53
|
universal: zod.z.string().nullable(),
|
|
53
54
|
}),
|
|
54
55
|
name: zod.z.string(),
|
|
56
|
+
rdns: zod.z.string().nullable(),
|
|
55
57
|
sdks: zod.z.array(zod.z.string()),
|
|
56
58
|
slug: zod.z.string(),
|
|
57
|
-
supported_standards: zod.z
|
|
59
|
+
supported_standards: zod.z
|
|
60
|
+
.array(zod.z.object({
|
|
58
61
|
id: zod.z.string(),
|
|
59
62
|
standard_id: zod.z.number(),
|
|
60
63
|
standard_prefix: zod.z.string(),
|
|
61
64
|
title: zod.z.string(),
|
|
62
65
|
url: zod.z.string(),
|
|
63
|
-
}))
|
|
66
|
+
}))
|
|
67
|
+
.optional(),
|
|
64
68
|
updatedAt: zod.z.string(),
|
|
65
69
|
versions: zod.z.array(zod.z.string()),
|
|
66
70
|
})
|
|
@@ -38,6 +38,7 @@ export declare const walletConnectSourceValueSchema: z.ZodObject<{
|
|
|
38
38
|
windows: string | null;
|
|
39
39
|
}>;
|
|
40
40
|
app_type: z.ZodString;
|
|
41
|
+
category: z.ZodNullable<z.ZodString>;
|
|
41
42
|
chains: z.ZodArray<z.ZodString, "many">;
|
|
42
43
|
description: z.ZodNullable<z.ZodString>;
|
|
43
44
|
desktop: z.ZodObject<{
|
|
@@ -112,9 +113,10 @@ export declare const walletConnectSourceValueSchema: z.ZodObject<{
|
|
|
112
113
|
universal: string | null;
|
|
113
114
|
}>;
|
|
114
115
|
name: z.ZodString;
|
|
116
|
+
rdns: z.ZodNullable<z.ZodString>;
|
|
115
117
|
sdks: z.ZodArray<z.ZodString, "many">;
|
|
116
118
|
slug: z.ZodString;
|
|
117
|
-
supported_standards: z.ZodArray<z.ZodObject<{
|
|
119
|
+
supported_standards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
118
120
|
id: z.ZodString;
|
|
119
121
|
standard_id: z.ZodNumber;
|
|
120
122
|
standard_prefix: z.ZodString;
|
|
@@ -132,7 +134,7 @@ export declare const walletConnectSourceValueSchema: z.ZodObject<{
|
|
|
132
134
|
standard_prefix: string;
|
|
133
135
|
title: string;
|
|
134
136
|
url: string;
|
|
135
|
-
}>, "many"
|
|
137
|
+
}>, "many">>;
|
|
136
138
|
updatedAt: z.ZodString;
|
|
137
139
|
versions: z.ZodArray<z.ZodString, "many">;
|
|
138
140
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -150,6 +152,7 @@ export declare const walletConnectSourceValueSchema: z.ZodObject<{
|
|
|
150
152
|
windows: string | null;
|
|
151
153
|
};
|
|
152
154
|
app_type: string;
|
|
155
|
+
category: string | null;
|
|
153
156
|
chains: string[];
|
|
154
157
|
description: string | null;
|
|
155
158
|
desktop: {
|
|
@@ -180,17 +183,18 @@ export declare const walletConnectSourceValueSchema: z.ZodObject<{
|
|
|
180
183
|
universal: string | null;
|
|
181
184
|
};
|
|
182
185
|
name: string;
|
|
186
|
+
rdns: string | null;
|
|
183
187
|
sdks: string[];
|
|
184
188
|
slug: string;
|
|
185
|
-
|
|
189
|
+
updatedAt: string;
|
|
190
|
+
versions: string[];
|
|
191
|
+
supported_standards?: {
|
|
186
192
|
id: string;
|
|
187
193
|
standard_id: number;
|
|
188
194
|
standard_prefix: string;
|
|
189
195
|
title: string;
|
|
190
196
|
url: string;
|
|
191
|
-
}[];
|
|
192
|
-
updatedAt: string;
|
|
193
|
-
versions: string[];
|
|
197
|
+
}[] | undefined;
|
|
194
198
|
}, {
|
|
195
199
|
app: {
|
|
196
200
|
android: string | null;
|
|
@@ -206,6 +210,7 @@ export declare const walletConnectSourceValueSchema: z.ZodObject<{
|
|
|
206
210
|
windows: string | null;
|
|
207
211
|
};
|
|
208
212
|
app_type: string;
|
|
213
|
+
category: string | null;
|
|
209
214
|
chains: string[];
|
|
210
215
|
description: string | null;
|
|
211
216
|
desktop: {
|
|
@@ -236,17 +241,18 @@ export declare const walletConnectSourceValueSchema: z.ZodObject<{
|
|
|
236
241
|
universal: string | null;
|
|
237
242
|
};
|
|
238
243
|
name: string;
|
|
244
|
+
rdns: string | null;
|
|
239
245
|
sdks: string[];
|
|
240
246
|
slug: string;
|
|
241
|
-
|
|
247
|
+
updatedAt: string;
|
|
248
|
+
versions: string[];
|
|
249
|
+
supported_standards?: {
|
|
242
250
|
id: string;
|
|
243
251
|
standard_id: number;
|
|
244
252
|
standard_prefix: string;
|
|
245
253
|
title: string;
|
|
246
254
|
url: string;
|
|
247
|
-
}[];
|
|
248
|
-
updatedAt: string;
|
|
249
|
-
versions: string[];
|
|
255
|
+
}[] | undefined;
|
|
250
256
|
}>;
|
|
251
257
|
/**
|
|
252
258
|
* Validates the walletconnect.json file to ensure it is in the correct format
|
|
@@ -290,6 +296,7 @@ export declare const walletConnectSourceSchema: z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
290
296
|
windows: string | null;
|
|
291
297
|
}>;
|
|
292
298
|
app_type: z.ZodString;
|
|
299
|
+
category: z.ZodNullable<z.ZodString>;
|
|
293
300
|
chains: z.ZodArray<z.ZodString, "many">;
|
|
294
301
|
description: z.ZodNullable<z.ZodString>;
|
|
295
302
|
desktop: z.ZodObject<{
|
|
@@ -364,9 +371,10 @@ export declare const walletConnectSourceSchema: z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
364
371
|
universal: string | null;
|
|
365
372
|
}>;
|
|
366
373
|
name: z.ZodString;
|
|
374
|
+
rdns: z.ZodNullable<z.ZodString>;
|
|
367
375
|
sdks: z.ZodArray<z.ZodString, "many">;
|
|
368
376
|
slug: z.ZodString;
|
|
369
|
-
supported_standards: z.ZodArray<z.ZodObject<{
|
|
377
|
+
supported_standards: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
370
378
|
id: z.ZodString;
|
|
371
379
|
standard_id: z.ZodNumber;
|
|
372
380
|
standard_prefix: z.ZodString;
|
|
@@ -384,7 +392,7 @@ export declare const walletConnectSourceSchema: z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
384
392
|
standard_prefix: string;
|
|
385
393
|
title: string;
|
|
386
394
|
url: string;
|
|
387
|
-
}>, "many"
|
|
395
|
+
}>, "many">>;
|
|
388
396
|
updatedAt: z.ZodString;
|
|
389
397
|
versions: z.ZodArray<z.ZodString, "many">;
|
|
390
398
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -402,6 +410,7 @@ export declare const walletConnectSourceSchema: z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
402
410
|
windows: string | null;
|
|
403
411
|
};
|
|
404
412
|
app_type: string;
|
|
413
|
+
category: string | null;
|
|
405
414
|
chains: string[];
|
|
406
415
|
description: string | null;
|
|
407
416
|
desktop: {
|
|
@@ -432,17 +441,18 @@ export declare const walletConnectSourceSchema: z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
432
441
|
universal: string | null;
|
|
433
442
|
};
|
|
434
443
|
name: string;
|
|
444
|
+
rdns: string | null;
|
|
435
445
|
sdks: string[];
|
|
436
446
|
slug: string;
|
|
437
|
-
|
|
447
|
+
updatedAt: string;
|
|
448
|
+
versions: string[];
|
|
449
|
+
supported_standards?: {
|
|
438
450
|
id: string;
|
|
439
451
|
standard_id: number;
|
|
440
452
|
standard_prefix: string;
|
|
441
453
|
title: string;
|
|
442
454
|
url: string;
|
|
443
|
-
}[];
|
|
444
|
-
updatedAt: string;
|
|
445
|
-
versions: string[];
|
|
455
|
+
}[] | undefined;
|
|
446
456
|
}, {
|
|
447
457
|
app: {
|
|
448
458
|
android: string | null;
|
|
@@ -458,6 +468,7 @@ export declare const walletConnectSourceSchema: z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
458
468
|
windows: string | null;
|
|
459
469
|
};
|
|
460
470
|
app_type: string;
|
|
471
|
+
category: string | null;
|
|
461
472
|
chains: string[];
|
|
462
473
|
description: string | null;
|
|
463
474
|
desktop: {
|
|
@@ -488,17 +499,18 @@ export declare const walletConnectSourceSchema: z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
488
499
|
universal: string | null;
|
|
489
500
|
};
|
|
490
501
|
name: string;
|
|
502
|
+
rdns: string | null;
|
|
491
503
|
sdks: string[];
|
|
492
504
|
slug: string;
|
|
493
|
-
|
|
505
|
+
updatedAt: string;
|
|
506
|
+
versions: string[];
|
|
507
|
+
supported_standards?: {
|
|
494
508
|
id: string;
|
|
495
509
|
standard_id: number;
|
|
496
510
|
standard_prefix: string;
|
|
497
511
|
title: string;
|
|
498
512
|
url: string;
|
|
499
|
-
}[];
|
|
500
|
-
updatedAt: string;
|
|
501
|
-
versions: string[];
|
|
513
|
+
}[] | undefined;
|
|
502
514
|
}>>;
|
|
503
515
|
export type WalletConnectSourceSchema = z.infer<typeof walletConnectSourceSchema>;
|
|
504
516
|
export type WalletConnectSourceValueSchema = z.infer<typeof walletConnectSourceValueSchema>;
|
|
@@ -16,6 +16,7 @@ const walletConnectSourceValueSchema = z
|
|
|
16
16
|
windows: z.string().nullable(),
|
|
17
17
|
}),
|
|
18
18
|
app_type: z.string(),
|
|
19
|
+
category: z.string().nullable(),
|
|
19
20
|
chains: z.array(z.string()),
|
|
20
21
|
description: z.string().nullable(),
|
|
21
22
|
desktop: z.object({
|
|
@@ -48,15 +49,18 @@ const walletConnectSourceValueSchema = z
|
|
|
48
49
|
universal: z.string().nullable(),
|
|
49
50
|
}),
|
|
50
51
|
name: z.string(),
|
|
52
|
+
rdns: z.string().nullable(),
|
|
51
53
|
sdks: z.array(z.string()),
|
|
52
54
|
slug: z.string(),
|
|
53
|
-
supported_standards: z
|
|
55
|
+
supported_standards: z
|
|
56
|
+
.array(z.object({
|
|
54
57
|
id: z.string(),
|
|
55
58
|
standard_id: z.number(),
|
|
56
59
|
standard_prefix: z.string(),
|
|
57
60
|
title: z.string(),
|
|
58
61
|
url: z.string(),
|
|
59
|
-
}))
|
|
62
|
+
}))
|
|
63
|
+
.optional(),
|
|
60
64
|
updatedAt: z.string(),
|
|
61
65
|
versions: z.array(z.string()),
|
|
62
66
|
})
|
|
@@ -250,8 +250,8 @@ var wallets = {
|
|
|
250
250
|
trust: {
|
|
251
251
|
brand: {
|
|
252
252
|
alt: "Trust Wallet",
|
|
253
|
-
imageId: "
|
|
254
|
-
primaryColor: "#
|
|
253
|
+
imageId: "7677b54f-3486-46e2-4e37-bf8747814f00",
|
|
254
|
+
primaryColor: "#0500FF"
|
|
255
255
|
},
|
|
256
256
|
chains: [
|
|
257
257
|
"eip155:1"
|
|
@@ -270,7 +270,8 @@ var wallets = {
|
|
|
270
270
|
walletConnect: {
|
|
271
271
|
sdks: [
|
|
272
272
|
"sign_v1",
|
|
273
|
-
"sign_v2"
|
|
273
|
+
"sign_v2",
|
|
274
|
+
"auth_v1"
|
|
274
275
|
]
|
|
275
276
|
}
|
|
276
277
|
},
|
|
@@ -285,8 +286,15 @@ var wallets = {
|
|
|
285
286
|
"eip155:10",
|
|
286
287
|
"eip155:137",
|
|
287
288
|
"eip155:42161",
|
|
288
|
-
"eip155:56"
|
|
289
|
+
"eip155:56",
|
|
290
|
+
"eip155:7777777",
|
|
291
|
+
"eip155:8453"
|
|
289
292
|
],
|
|
293
|
+
desktop: {
|
|
294
|
+
chromeId: "opfgelmcmbiajamepnmloijbpoleiama",
|
|
295
|
+
edgeId: "cpojfbodiccabbabgimdeohkkpjfpbnf",
|
|
296
|
+
firefoxId: "rainbow-extension"
|
|
297
|
+
},
|
|
290
298
|
filterFromWalletConnect: true,
|
|
291
299
|
injectedConfig: [
|
|
292
300
|
{
|
|
@@ -344,30 +352,13 @@ var wallets = {
|
|
|
344
352
|
lilico: {
|
|
345
353
|
brand: {
|
|
346
354
|
alt: "Lilico Wallet",
|
|
347
|
-
primaryColor: "#FC814A",
|
|
348
355
|
spriteId: "lilico"
|
|
349
356
|
},
|
|
350
|
-
chains: [
|
|
351
|
-
"flow:mainnet",
|
|
352
|
-
"flow:testnet"
|
|
353
|
-
],
|
|
354
357
|
desktop: {
|
|
355
358
|
chromeId: "hpclkefagolihohboafpheddmmgdffjm"
|
|
356
359
|
},
|
|
357
360
|
filterFromWalletConnect: true,
|
|
358
|
-
|
|
359
|
-
androidId: "io.outblock.lilico",
|
|
360
|
-
iosId: "id1644169603",
|
|
361
|
-
native: "lilico://wc",
|
|
362
|
-
universal: "https://link.lilico.app/wc"
|
|
363
|
-
},
|
|
364
|
-
name: "Lilico",
|
|
365
|
-
shortName: "lilico",
|
|
366
|
-
walletConnect: {
|
|
367
|
-
sdks: [
|
|
368
|
-
"sign_v2"
|
|
369
|
-
]
|
|
370
|
-
}
|
|
361
|
+
name: "Lilico"
|
|
371
362
|
},
|
|
372
363
|
magicemailotp: {
|
|
373
364
|
brand: {
|
package/wallet-book-fallbacks.js
CHANGED
|
@@ -246,8 +246,8 @@ var wallets = {
|
|
|
246
246
|
trust: {
|
|
247
247
|
brand: {
|
|
248
248
|
alt: "Trust Wallet",
|
|
249
|
-
imageId: "
|
|
250
|
-
primaryColor: "#
|
|
249
|
+
imageId: "7677b54f-3486-46e2-4e37-bf8747814f00",
|
|
250
|
+
primaryColor: "#0500FF"
|
|
251
251
|
},
|
|
252
252
|
chains: [
|
|
253
253
|
"eip155:1"
|
|
@@ -266,7 +266,8 @@ var wallets = {
|
|
|
266
266
|
walletConnect: {
|
|
267
267
|
sdks: [
|
|
268
268
|
"sign_v1",
|
|
269
|
-
"sign_v2"
|
|
269
|
+
"sign_v2",
|
|
270
|
+
"auth_v1"
|
|
270
271
|
]
|
|
271
272
|
}
|
|
272
273
|
},
|
|
@@ -281,8 +282,15 @@ var wallets = {
|
|
|
281
282
|
"eip155:10",
|
|
282
283
|
"eip155:137",
|
|
283
284
|
"eip155:42161",
|
|
284
|
-
"eip155:56"
|
|
285
|
+
"eip155:56",
|
|
286
|
+
"eip155:7777777",
|
|
287
|
+
"eip155:8453"
|
|
285
288
|
],
|
|
289
|
+
desktop: {
|
|
290
|
+
chromeId: "opfgelmcmbiajamepnmloijbpoleiama",
|
|
291
|
+
edgeId: "cpojfbodiccabbabgimdeohkkpjfpbnf",
|
|
292
|
+
firefoxId: "rainbow-extension"
|
|
293
|
+
},
|
|
286
294
|
filterFromWalletConnect: true,
|
|
287
295
|
injectedConfig: [
|
|
288
296
|
{
|
|
@@ -340,30 +348,13 @@ var wallets = {
|
|
|
340
348
|
lilico: {
|
|
341
349
|
brand: {
|
|
342
350
|
alt: "Lilico Wallet",
|
|
343
|
-
primaryColor: "#FC814A",
|
|
344
351
|
spriteId: "lilico"
|
|
345
352
|
},
|
|
346
|
-
chains: [
|
|
347
|
-
"flow:mainnet",
|
|
348
|
-
"flow:testnet"
|
|
349
|
-
],
|
|
350
353
|
desktop: {
|
|
351
354
|
chromeId: "hpclkefagolihohboafpheddmmgdffjm"
|
|
352
355
|
},
|
|
353
356
|
filterFromWalletConnect: true,
|
|
354
|
-
|
|
355
|
-
androidId: "io.outblock.lilico",
|
|
356
|
-
iosId: "id1644169603",
|
|
357
|
-
native: "lilico://wc",
|
|
358
|
-
universal: "https://link.lilico.app/wc"
|
|
359
|
-
},
|
|
360
|
-
name: "Lilico",
|
|
361
|
-
shortName: "lilico",
|
|
362
|
-
walletConnect: {
|
|
363
|
-
sdks: [
|
|
364
|
-
"sign_v2"
|
|
365
|
-
]
|
|
366
|
-
}
|
|
357
|
+
name: "Lilico"
|
|
367
358
|
},
|
|
368
359
|
magicemailotp: {
|
|
369
360
|
brand: {
|