@dynamic-labs/wallet-book 2.0.0-alpha.2 → 2.0.0-alpha.21

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 CHANGED
@@ -1,4 +1,240 @@
1
1
 
2
+ ## [2.0.0-alpha.21](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.20...v2.0.0-alpha.21) (2024-03-20)
3
+
4
+
5
+ ### Features
6
+
7
+ * implement barebones signer in PhantomRedirect connector ([#5043](https://github.com/dynamic-labs/DynamicAuth/issues/5043)) ([4d7ff79](https://github.com/dynamic-labs/DynamicAuth/commit/4d7ff79acfe554d651791139b5e1d23ebafe712c))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * find embedded wallets when no chain is specified ([#5036](https://github.com/dynamic-labs/DynamicAuth/issues/5036)) ([ac50742](https://github.com/dynamic-labs/DynamicAuth/commit/ac50742c6002f48aae7b60c9ec094eb12df8dcca))
13
+ * ignore walletconnect chainChange event when it's the same chain ([#5029](https://github.com/dynamic-labs/DynamicAuth/issues/5029)) ([115311a](https://github.com/dynamic-labs/DynamicAuth/commit/115311a4a64ae35317b8864f93c38203566714fc))
14
+
15
+ ## [2.0.0-alpha.20](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.19...v2.0.0-alpha.20) (2024-03-19)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * prevent solflare connect popping up on page refresh when connected ([#5032](https://github.com/dynamic-labs/DynamicAuth/issues/5032)) ([28175a9](https://github.com/dynamic-labs/DynamicAuth/commit/28175a9af43f3e7f2cab30148563eaf5573477d1))
21
+ * show correct user identifier in onboarding view ([#5021](https://github.com/dynamic-labs/DynamicAuth/issues/5021)) ([c84747f](https://github.com/dynamic-labs/DynamicAuth/commit/c84747f01eb2a0a827ca48e62f03739d4e6df136))
22
+ * use address as the wallet client account ([#5037](https://github.com/dynamic-labs/DynamicAuth/issues/5037)) ([287631e](https://github.com/dynamic-labs/DynamicAuth/commit/287631e9a027e3a39ee2ad6b45ca404febd03929))
23
+
24
+ ## [2.0.0-alpha.19](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.18...v2.0.0-alpha.19) (2024-03-19)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * add localization to email form ([#5009](https://github.com/dynamic-labs/DynamicAuth/issues/5009)) ([f3c100c](https://github.com/dynamic-labs/DynamicAuth/commit/f3c100cb0b815880d11c6b619d94bfaa7330a115))
30
+ * include domain on signTypedData for ZeroDev connector ([#5017](https://github.com/dynamic-labs/DynamicAuth/issues/5017)) ([71c9131](https://github.com/dynamic-labs/DynamicAuth/commit/71c91311a75309810bc497c8f82981553ddc57fd))
31
+ * Remove Copy Address button if there is no wallet ([#4994](https://github.com/dynamic-labs/DynamicAuth/issues/4994)) ([fe1e641](https://github.com/dynamic-labs/DynamicAuth/commit/fe1e6417be2299e65ba4bcbc3347dfc27f021853))
32
+
33
+ ## [2.0.0-alpha.18](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.17...v2.0.0-alpha.18) (2024-03-15)
34
+
35
+ ## [2.0.0-alpha.17](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.16...v2.0.0-alpha.17) (2024-03-15)
36
+
37
+
38
+ ### ⚠ BREAKING CHANGES
39
+
40
+ * rename prop canConnectViaEmail to requiresNonDynamicEmailOtp (#4991)
41
+
42
+ ### Features
43
+
44
+ * allow creating embedded wallet with phone number without email ([#4953](https://github.com/dynamic-labs/DynamicAuth/issues/4953)) ([39d31cb](https://github.com/dynamic-labs/DynamicAuth/commit/39d31cbc969fff7acf53c0b6c5e5093ff846f3ea))
45
+
46
+
47
+ * rename prop canConnectViaEmail to requiresNonDynamicEmailOtp ([#4991](https://github.com/dynamic-labs/DynamicAuth/issues/4991)) ([e83a365](https://github.com/dynamic-labs/DynamicAuth/commit/e83a3658d4f5cf0630fc8f15be66f2d3db84ab98))
48
+
49
+ ## [2.0.0-alpha.16](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.15...v2.0.0-alpha.16) (2024-03-15)
50
+
51
+
52
+ ### Features
53
+
54
+ * add bundlerProvider prop to allow AA customers to select a provider ([#4975](https://github.com/dynamic-labs/DynamicAuth/issues/4975)) ([1870cef](https://github.com/dynamic-labs/DynamicAuth/commit/1870cef4f50944a86226d10f09ef7bf6595f3c95))
55
+
56
+ ## [2.0.0-alpha.15](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.14...v2.0.0-alpha.15) (2024-03-15)
57
+
58
+
59
+ ### Features
60
+
61
+ * Add support for mobile farcaster signin ([#4973](https://github.com/dynamic-labs/DynamicAuth/issues/4973)) ([98261a4](https://github.com/dynamic-labs/DynamicAuth/commit/98261a47bd319cd93b36f5cdd6a9be0064887686))
62
+
63
+ ## [2.0.0-alpha.14](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.13...v2.0.0-alpha.14) (2024-03-14)
64
+
65
+
66
+ ### Bug Fixes
67
+
68
+ * convert empty value when checking for gas sponsorship ([#4970](https://github.com/dynamic-labs/DynamicAuth/issues/4970)) ([8439a20](https://github.com/dynamic-labs/DynamicAuth/commit/8439a2035729150f33507b22c2678b16ae47976b))
69
+ * omit wallet connect on mobile ([#4954](https://github.com/dynamic-labs/DynamicAuth/issues/4954)) ([6ac29a8](https://github.com/dynamic-labs/DynamicAuth/commit/6ac29a8961dc010688425fb67a4fb621ca9f80b2))
70
+
71
+ ## [2.0.0-alpha.13](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.12...v2.0.0-alpha.13) (2024-03-14)
72
+
73
+ ## [2.0.0-alpha.12](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.11...v2.0.0-alpha.12) (2024-03-13)
74
+
75
+
76
+ ### Features
77
+
78
+ * add sign-in with farcaster ([#4947](https://github.com/dynamic-labs/DynamicAuth/issues/4947)) ([3927d24](https://github.com/dynamic-labs/DynamicAuth/commit/3927d24392a8944997ca05431c6ab54757be62d9))
79
+
80
+
81
+ ### Bug Fixes
82
+
83
+ * wallet connect links with query params ([#4948](https://github.com/dynamic-labs/DynamicAuth/issues/4948)) ([0738130](https://github.com/dynamic-labs/DynamicAuth/commit/0738130f82473a197e035b8dd74d996bdbb24c11))
84
+
85
+ ## [2.0.0-alpha.11](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.10...v2.0.0-alpha.11) (2024-03-12)
86
+
87
+
88
+ ### ⚠ BREAKING CHANGES
89
+
90
+ * rename FetchPublicAddressOpts to GetAddressOpts (#4910)
91
+ * remove use effect in useWalletEventListeners (#4843)
92
+ * rename fetchPublicAddress to getAddress (#4851)
93
+
94
+ ### Features
95
+
96
+ * Add farcaster to iconic ([#4925](https://github.com/dynamic-labs/DynamicAuth/issues/4925)) ([ab282dc](https://github.com/dynamic-labs/DynamicAuth/commit/ab282dc9cdcc0fe11f014d002b056ef4d3b34234))
97
+ * use transaction confirmation ui on signAndSendTransaction for solana embedded wallets ([#4909](https://github.com/dynamic-labs/DynamicAuth/issues/4909)) ([d77e89e](https://github.com/dynamic-labs/DynamicAuth/commit/d77e89ecff9dfc67ed48537f541a9995b2662e1e))
98
+
99
+
100
+ ### Bug Fixes
101
+
102
+ * add back connect button css variables ([#4922](https://github.com/dynamic-labs/DynamicAuth/issues/4922)) ([1119d62](https://github.com/dynamic-labs/DynamicAuth/commit/1119d62c2db6504952393060930524c3823e4a00))
103
+ * keep adaptive wallet list height ([#4916](https://github.com/dynamic-labs/DynamicAuth/issues/4916)) ([62aa54e](https://github.com/dynamic-labs/DynamicAuth/commit/62aa54e81d563082f7aa519f2ff2b5132e7dd83d))
104
+ * pass account and chain to walletClient ([#4865](https://github.com/dynamic-labs/DynamicAuth/issues/4865)) ([17a143f](https://github.com/dynamic-labs/DynamicAuth/commit/17a143f87a77e56227b2517038c20cf67f8e08bf))
105
+ * update walletbook to fix zerion in-app browser detection issue ([#4917](https://github.com/dynamic-labs/DynamicAuth/issues/4917)) ([48b05d7](https://github.com/dynamic-labs/DynamicAuth/commit/48b05d78e4f7add09787b64505723d4eca34d3e0))
106
+
107
+
108
+ * remove use effect in useWalletEventListeners ([#4843](https://github.com/dynamic-labs/DynamicAuth/issues/4843)) ([2e948bb](https://github.com/dynamic-labs/DynamicAuth/commit/2e948bbca0dbdceab7460a844d0988eacd47f581))
109
+ * rename fetchPublicAddress to getAddress ([#4851](https://github.com/dynamic-labs/DynamicAuth/issues/4851)) ([668e7dd](https://github.com/dynamic-labs/DynamicAuth/commit/668e7dd62e1f323dbe64209b5c59c2cd0ee45d61))
110
+ * rename FetchPublicAddressOpts to GetAddressOpts ([#4910](https://github.com/dynamic-labs/DynamicAuth/issues/4910)) ([e5e4b1b](https://github.com/dynamic-labs/DynamicAuth/commit/e5e4b1b08a4e010afa44f8abb0bf6af7f236a86a))
111
+
112
+ ## [2.0.0-alpha.10](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.9...v2.0.0-alpha.10) (2024-03-08)
113
+
114
+
115
+ ### ⚠ BREAKING CHANGES
116
+
117
+ * rename hideEmbeddedWalletUIs prop to hideEmbeddedWalletTra… (#4892)
118
+ * refactor send transaction for multi chain (#4831)
119
+
120
+ ### Features
121
+
122
+ * add sandbox indicator to sdk ([62fd821](https://github.com/dynamic-labs/DynamicAuth/commit/62fd821a895bb54cec4cae3d153aa0056a7e6638))
123
+
124
+
125
+ ### Bug Fixes
126
+
127
+ * coinbase connector and auth fetcher no being set properly ([#4891](https://github.com/dynamic-labs/DynamicAuth/issues/4891)) ([328566f](https://github.com/dynamic-labs/DynamicAuth/commit/328566ff39c38d5b5761ddc655de3a5d08bb567a))
128
+ * fix server side rendering ([#4811](https://github.com/dynamic-labs/DynamicAuth/issues/4811)) ([063dfae](https://github.com/dynamic-labs/DynamicAuth/commit/063dfae8b6750875d2f35dd9709a1f675495f4fb))
129
+ * hide network ([#4885](https://github.com/dynamic-labs/DynamicAuth/issues/4885)) ([ec10c58](https://github.com/dynamic-labs/DynamicAuth/commit/ec10c588218f067e991d5830fc06ec081e4e1d18))
130
+ * network picker on mobile ([#4887](https://github.com/dynamic-labs/DynamicAuth/issues/4887)) ([6e0ab1b](https://github.com/dynamic-labs/DynamicAuth/commit/6e0ab1bc7d138b73373741960a501ff7cf20e3f9))
131
+
132
+
133
+ * refactor send transaction for multi chain ([#4831](https://github.com/dynamic-labs/DynamicAuth/issues/4831)) ([c98444b](https://github.com/dynamic-labs/DynamicAuth/commit/c98444be7935420dda3d8216d03946f5893eb82f))
134
+ * rename hideEmbeddedWalletUIs prop to hideEmbeddedWalletTra… ([#4892](https://github.com/dynamic-labs/DynamicAuth/issues/4892)) ([7cdf519](https://github.com/dynamic-labs/DynamicAuth/commit/7cdf5196b1cd8516de2d456163fe9071956d40d3))
135
+
136
+ ## [2.0.0-alpha.9](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.8...v2.0.0-alpha.9) (2024-03-06)
137
+
138
+
139
+ ### Features
140
+
141
+ * solana connector new sendTransaction method ([#4842](https://github.com/dynamic-labs/DynamicAuth/issues/4842)) ([0b198e3](https://github.com/dynamic-labs/DynamicAuth/commit/0b198e30d83fbbc8d506654d87cbfad403fda289))
142
+ * specify solana network when using phantom redirect deeplinking ([#4863](https://github.com/dynamic-labs/DynamicAuth/issues/4863)) ([fb4ee7c](https://github.com/dynamic-labs/DynamicAuth/commit/fb4ee7cfc0493c9c85b6ccb31954842556c58aa4))
143
+
144
+
145
+ ### Bug Fixes
146
+
147
+ * isLoggedIn should return true even when there is no primary wallet ([#4875](https://github.com/dynamic-labs/DynamicAuth/issues/4875)) ([f396e22](https://github.com/dynamic-labs/DynamicAuth/commit/f396e22b9d809b05ac52194ffa4346f3591d17fe))
148
+ * update btckit network conversion for signPsbt ([a6009e1](https://github.com/dynamic-labs/DynamicAuth/commit/a6009e18c453b4e65545455fea0e52ed7a983b4d))
149
+ * user getting logged out when signing in with email linked to a unavailable wallet ([#4858](https://github.com/dynamic-labs/DynamicAuth/issues/4858)) ([8653e13](https://github.com/dynamic-labs/DynamicAuth/commit/8653e13d2067dd0161e660b4374c08a9fe0bc203))
150
+
151
+ ## [2.0.0-alpha.8](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.7...v2.0.0-alpha.8) (2024-03-04)
152
+
153
+ ## [2.0.0-alpha.7](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.6...v2.0.0-alpha.7) (2024-02-28)
154
+
155
+
156
+ ### ⚠ BREAKING CHANGES
157
+
158
+ * add networkValidationMode and remove enableForcedNetworkValidation (#4778)
159
+
160
+ ### Features
161
+
162
+ * add bitget and okx wallets ([51fab41](https://github.com/dynamic-labs/DynamicAuth/commit/51fab413096fd89ce99c6c617cf4f3f5db9bf44d))
163
+ * add networkValidationMode and remove enableForcedNetworkValidation ([#4778](https://github.com/dynamic-labs/DynamicAuth/issues/4778)) ([ccb9576](https://github.com/dynamic-labs/DynamicAuth/commit/ccb9576c81b2c570185f5126d6d1fcfcbb5ac9e3))
164
+
165
+
166
+ ### Bug Fixes
167
+
168
+ * **GVTY-1243:** non evm onramp urls ([#4791](https://github.com/dynamic-labs/DynamicAuth/issues/4791)) ([fea602e](https://github.com/dynamic-labs/DynamicAuth/commit/fea602e2835b4bb9bc096b96375fa97297bf35f1))
169
+ * revert use enableForcedNetworkValidation on connect-only ([#4750](https://github.com/dynamic-labs/DynamicAuth/issues/4750)) ([#4772](https://github.com/dynamic-labs/DynamicAuth/issues/4772)) ([b871c22](https://github.com/dynamic-labs/DynamicAuth/commit/b871c2295f39230bc34ae1fca5f8817cd9251a17))
170
+ * use correct chromeId for okx and bitget wallets and remove group from coin98 ([#4795](https://github.com/dynamic-labs/DynamicAuth/issues/4795)) ([e63bad7](https://github.com/dynamic-labs/DynamicAuth/commit/e63bad76ed06636151212c915a102359a03b4218))
171
+
172
+ ## [2.0.0-alpha.6](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.5...v2.0.0-alpha.6) (2024-02-26)
173
+
174
+
175
+ ### ⚠ BREAKING CHANGES
176
+
177
+ * setShowAuthFlow opens dynamic profile in non-multi-wallet states
178
+
179
+ ### Features
180
+
181
+ * allow passing prop to hide embedded wallet action confirmation UIs ([#4775](https://github.com/dynamic-labs/DynamicAuth/issues/4775)) ([d7c6a46](https://github.com/dynamic-labs/DynamicAuth/commit/d7c6a4699e41f6a62d31880c3bd0346ebfa0e3ba))
182
+ * make sms mobile keyboard numeric ([#4755](https://github.com/dynamic-labs/DynamicAuth/issues/4755)) ([f36844a](https://github.com/dynamic-labs/DynamicAuth/commit/f36844aeaae240c520181b3242492db8ffc64a50))
183
+ * setShowAuthFlow opens dynamic profile in non-multi-wallet states ([42dbbc0](https://github.com/dynamic-labs/DynamicAuth/commit/42dbbc00a5cebe937dca5a80397cdd3c577f6a45))
184
+
185
+
186
+ ### Bug Fixes
187
+
188
+ * demo one-time codes for solana wallets fix ([#4760](https://github.com/dynamic-labs/DynamicAuth/issues/4760)) ([a5ab2a8](https://github.com/dynamic-labs/DynamicAuth/commit/a5ab2a8bc348a35a898e03db0900bfab88184c17))
189
+ * only store passcode in backend when auto-generated by dynamic ([#4764](https://github.com/dynamic-labs/DynamicAuth/issues/4764)) ([528bedc](https://github.com/dynamic-labs/DynamicAuth/commit/528bedce5cbd3022ddafe4242954a04f5b70ae74))
190
+ * use enableForcedNetworkValidation on connect-only ([#4750](https://github.com/dynamic-labs/DynamicAuth/issues/4750)) ([6299f7c](https://github.com/dynamic-labs/DynamicAuth/commit/6299f7c3ce705ddb19714f6b7a3a488851ed8dde))
191
+
192
+ ## [2.0.0-alpha.5](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.4...v2.0.0-alpha.5) (2024-02-22)
193
+
194
+
195
+ ### ⚠ BREAKING CHANGES
196
+
197
+ * wagmi v2 (#4660)
198
+
199
+ ### Features
200
+
201
+ * wagmi v2 ([#4660](https://github.com/dynamic-labs/DynamicAuth/issues/4660)) ([d8894e6](https://github.com/dynamic-labs/DynamicAuth/commit/d8894e61393b90ccf44904c33394b54286f0f9e9))
202
+
203
+ ## [2.0.0-alpha.4](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.3...v2.0.0-alpha.4) (2024-02-22)
204
+
205
+
206
+ ### ⚠ BREAKING CHANGES
207
+
208
+ * remove wallet connector from callback types (#4730)
209
+ * drop support for walletconnect v1 (#4666)
210
+
211
+ ### Features
212
+
213
+ * add coin98 evm ([1d64f5f](https://github.com/dynamic-labs/DynamicAuth/commit/1d64f5f00885ff671358651fd0251b77a2e05739))
214
+ * add support for solana versioned transactions ([#4721](https://github.com/dynamic-labs/DynamicAuth/issues/4721)) ([25b1643](https://github.com/dynamic-labs/DynamicAuth/commit/25b1643f8addbada09fff5d22e988bdf22038170))
215
+
216
+
217
+ ### Bug Fixes
218
+
219
+ * allow rpc-providers package to use exports based on usage ([#4539](https://github.com/dynamic-labs/DynamicAuth/issues/4539)) ([abdc196](https://github.com/dynamic-labs/DynamicAuth/commit/abdc19641580cbcfe8f9e357c645f8291bc9ed66))
220
+ * coinbasesocial should display coinbase in profile linking section ([#4680](https://github.com/dynamic-labs/DynamicAuth/issues/4680)) ([21cbe2e](https://github.com/dynamic-labs/DynamicAuth/commit/21cbe2e24345a33bc927428c01cc7b5c724e40e5))
221
+ * improve on transaction confirmation step ([#4704](https://github.com/dynamic-labs/DynamicAuth/issues/4704)) ([f2b27cf](https://github.com/dynamic-labs/DynamicAuth/commit/f2b27cfd94452be2eb7e88a298f61ef56985931f))
222
+ * prevent the DynamicMultiWalletPromptsWidget from opening if useris not logged in ([#4701](https://github.com/dynamic-labs/DynamicAuth/issues/4701)) ([2bb35fd](https://github.com/dynamic-labs/DynamicAuth/commit/2bb35fd29b60677e893390f7d47857cd76c73adc))
223
+ * reduce isPreauthorized calls when starknet wallet is connected ([#4710](https://github.com/dynamic-labs/DynamicAuth/issues/4710)) ([ca6a630](https://github.com/dynamic-labs/DynamicAuth/commit/ca6a630dd47a1c116afcd63fe7256ffc745532ab))
224
+ * update sepolia currency symbol ([#4728](https://github.com/dynamic-labs/DynamicAuth/issues/4728)) ([3c228a0](https://github.com/dynamic-labs/DynamicAuth/commit/3c228a03ccc962374ad1dac3ab45af92732ba61a))
225
+ * use overflow clip when available, use hidden by default ([#4696](https://github.com/dynamic-labs/DynamicAuth/issues/4696)) ([29fb2a1](https://github.com/dynamic-labs/DynamicAuth/commit/29fb2a1e48b010c6c1d525403fbdcf7ded068466))
226
+
227
+
228
+ * drop support for walletconnect v1 ([#4666](https://github.com/dynamic-labs/DynamicAuth/issues/4666)) ([4af93e4](https://github.com/dynamic-labs/DynamicAuth/commit/4af93e4f9b95fa4c49bbfda0c1144da1a4a43991))
229
+ * remove wallet connector from callback types ([#4730](https://github.com/dynamic-labs/DynamicAuth/issues/4730)) ([08cb200](https://github.com/dynamic-labs/DynamicAuth/commit/08cb200a09c0fd78d2093d1a60b17089b3b2c2b1))
230
+
231
+ ## [2.0.0-alpha.3](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.2...v2.0.0-alpha.3) (2024-02-13)
232
+
233
+
234
+ ### Bug Fixes
235
+
236
+ * allow any icon to be used in wallet list tabs ([#4678](https://github.com/dynamic-labs/DynamicAuth/issues/4678)) ([eb03603](https://github.com/dynamic-labs/DynamicAuth/commit/eb036031725a91cb28c144b3bdcb5b20b3314038))
237
+
2
238
  ## [2.0.0-alpha.2](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.1...v2.0.0-alpha.2) (2024-02-13)
3
239
 
4
240
 
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  - [Updating Wallet Book](#updating-wallet-book)
7
7
  - [Adding First Party Wallet](#adding-first-party-wallet)
8
8
  - [Adding injected (browser extension) wallets](#adding-injected-browser-extension-wallets)
9
- - [If you need to override any of the following functions: signMessage, fetchPublicAddress, getSigner, isInstalledOnBrowser, etc...](#if-you-need-to-override-any-of-the-following-functions-signmessage-fetchpublicaddress-getsigner-isinstalledonbrowser-etc)
9
+ - [If you need to override any of the following functions: signMessage, getAddress, getSigner, isInstalledOnBrowser, etc...](#if-you-need-to-override-any-of-the-following-functions-signmessage-fetchpublicaddress-getsigner-isinstalledonbrowser-etc)
10
10
  - [Things to remember when adding a new wallet](#things-to-remember-when-adding-a-new-wallet)
11
11
  - [**Checklist before submitting the PR**:](#checklist-before-submitting-the-pr)
12
12
  - [Updating Wallet Connect Data](#updating-wallet-connect-data)
@@ -69,7 +69,7 @@ injectedConfig: [
69
69
  name: 'OKX'
70
70
  ```
71
71
 
72
- #### If you need to override any of the following functions: signMessage, fetchPublicAddress, getSigner, isInstalledOnBrowser, etc...
72
+ #### If you need to override any of the following functions: signMessage, getAddress, getSigner, isInstalledOnBrowser, etc...
73
73
 
74
74
  1. Create a file in the respective `ethereum/src/injected/` or `solana/src/injected/`. The basic file should follow this form:
75
75
 
@@ -85,7 +85,7 @@ export class <NameOfConnector> extends InjectedWalletBase {
85
85
  }
86
86
 
87
87
  // override the methods you need below
88
- override async fetchPublicAddress() {
88
+ override async getAddress() {
89
89
  ...
90
90
  }
91
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-book",
3
- "version": "2.0.0-alpha.2",
3
+ "version": "2.0.0-alpha.21",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "zod": "3.22.4",
29
- "@dynamic-labs/iconic": "2.0.0-alpha.2",
30
- "@dynamic-labs/logger": "2.0.0-alpha.2",
31
- "@dynamic-labs/utils": "2.0.0-alpha.2",
29
+ "@dynamic-labs/iconic": "2.0.0-alpha.21",
30
+ "@dynamic-labs/logger": "2.0.0-alpha.21",
31
+ "@dynamic-labs/utils": "2.0.0-alpha.21",
32
32
  "util": "0.12.5"
33
33
  },
34
34
  "peerDependencies": {
@@ -39,6 +39,15 @@ export declare const applyOverrides: (sourceData: any, overrides?: {
39
39
  };
40
40
  };
41
41
  ledger: {
42
+ mobile: {
43
+ action: string;
44
+ value: {
45
+ androidId: string;
46
+ iosId: string;
47
+ native: string;
48
+ universal: string;
49
+ };
50
+ };
42
51
  switchNetworkOnlyFromWallet: {
43
52
  action: string;
44
53
  value: boolean;
@@ -173,6 +182,15 @@ export declare const walletConnectOverrides: {
173
182
  };
174
183
  };
175
184
  ledger: {
185
+ mobile: {
186
+ action: string;
187
+ value: {
188
+ androidId: string;
189
+ iosId: string;
190
+ native: string;
191
+ universal: string;
192
+ };
193
+ };
176
194
  switchNetworkOnlyFromWallet: {
177
195
  action: string;
178
196
  value: boolean;
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _tslib = require('../../_virtual/_tslib.cjs');
6
6
  var react = require('react');
7
7
  var getWalletIconUrl = require('../helpers/getWalletIconUrl.cjs');
8
- require('../helpers/logger.cjs');
9
8
  require('../helpers/renderTemplate.cjs');
9
+ require('../helpers/logger.cjs');
10
10
  var getBrandIconUrl = require('../helpers/getBrandIconUrl.cjs');
11
11
 
12
12
  const BrandIcon = (_a) => {
@@ -1,8 +1,8 @@
1
1
  import { __rest } from '../../_virtual/_tslib.js';
2
2
  import { useState, createElement, Fragment } from 'react';
3
3
  import { getDefaultWalletIconUrl } from '../helpers/getWalletIconUrl.js';
4
- import '../helpers/logger.js';
5
4
  import '../helpers/renderTemplate.js';
5
+ import '../helpers/logger.js';
6
6
  import { getBrandIconUrl } from '../helpers/getBrandIconUrl.js';
7
7
 
8
8
  const BrandIcon = (_a) => {
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _tslib = require('../../_virtual/_tslib.cjs');
6
6
  var react = require('react');
7
7
  var getWalletIconUrl = require('../helpers/getWalletIconUrl.cjs');
8
- require('../helpers/logger.cjs');
9
8
  var findWalletBookWallet = require('../helpers/findWalletBookWallet.cjs');
10
9
  require('../helpers/renderTemplate.cjs');
10
+ require('../helpers/logger.cjs');
11
11
  require('@dynamic-labs/utils');
12
12
  require('../schemas/walletConnectSourceSchema.cjs');
13
13
  require('../schemas/walletBookSchema.cjs');
@@ -1,9 +1,9 @@
1
1
  import { __rest } from '../../_virtual/_tslib.js';
2
2
  import { useState, createElement, Fragment } from 'react';
3
3
  import { getWalletIconUrl, getDefaultWalletIconUrl } from '../helpers/getWalletIconUrl.js';
4
- import '../helpers/logger.js';
5
4
  import { findWalletBookWallet } from '../helpers/findWalletBookWallet.js';
6
5
  import '../helpers/renderTemplate.js';
6
+ import '../helpers/logger.js';
7
7
  import '@dynamic-labs/utils';
8
8
  import '../schemas/walletConnectSourceSchema.js';
9
9
  import '../schemas/walletBookSchema.js';
@@ -3,7 +3,6 @@ export declare const findWalletBookWallet: (walletBook: WalletBookSchema, wallet
3
3
  name: string;
4
4
  brand?: {
5
5
  alt?: string | undefined;
6
- imageId?: string | undefined;
7
6
  primaryColor?: string | undefined;
8
7
  spriteId?: string | undefined;
9
8
  } | undefined;
@@ -4,14 +4,12 @@ export declare const findWalletGroup: (walletBook: WalletBookSchema, walletGroup
4
4
  name: string;
5
5
  brand?: {
6
6
  alt?: string | undefined;
7
- imageId?: string | undefined;
8
7
  primaryColor?: string | undefined;
9
8
  spriteId?: string | undefined;
10
9
  } | undefined;
11
10
  walletOverrides?: Record<string, {
12
11
  brand?: {
13
12
  alt?: string | undefined;
14
- imageId?: string | undefined;
15
13
  primaryColor?: string | undefined;
16
14
  spriteId?: string | undefined;
17
15
  } | undefined;
@@ -2,25 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var normalizeWalletName = require('./normalizeWalletName.cjs');
6
- var logger = require('./logger.cjs');
7
-
8
5
  const getWalletBookWallet = (walletBook, walletKey) => {
9
- var _a, _b, _c;
6
+ var _a, _b;
10
7
  if (!walletKey)
11
8
  throw new Error('Wallet key is required. Please pass in a wallet key to getWalletBookWallet');
12
- const walletDataFromKeyLookup = (_a = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) === null || _a === void 0 ? void 0 : _a[walletKey];
13
- if (!walletDataFromKeyLookup) {
14
- // adds fallback support. normalizeWalletName will be removed in v2
15
- const normalizedWalletKey = normalizeWalletName.normalizeWalletName(walletKey);
16
- const walletDataFromNormalizedKeyLookup = (_b = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) === null || _b === void 0 ? void 0 : _b[normalizedWalletKey];
17
- if (walletDataFromNormalizedKeyLookup) {
18
- logger.logger.warn(`deprecated: using walletName: ${walletKey} to look up wallet data is deprecated. use connector.key instead ${normalizedWalletKey}`);
19
- return walletDataFromNormalizedKeyLookup;
20
- }
21
- throw new Error(`Wallet ${normalizedWalletKey} not found in wallet book (${Object.keys((_c = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) !== null && _c !== void 0 ? _c : {}).length} wallets found)`);
9
+ const walletData = (_a = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) === null || _a === void 0 ? void 0 : _a[walletKey];
10
+ if (!walletData) {
11
+ throw new Error(`Wallet ${walletKey} not found in wallet book (${Object.keys((_b = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) !== null && _b !== void 0 ? _b : {}).length} wallets found)`);
22
12
  }
23
- return walletDataFromKeyLookup;
13
+ return walletData;
24
14
  };
25
15
 
26
16
  exports.getWalletBookWallet = getWalletBookWallet;
@@ -1,22 +1,12 @@
1
- import { normalizeWalletName } from './normalizeWalletName.js';
2
- import { logger } from './logger.js';
3
-
4
1
  const getWalletBookWallet = (walletBook, walletKey) => {
5
- var _a, _b, _c;
2
+ var _a, _b;
6
3
  if (!walletKey)
7
4
  throw new Error('Wallet key is required. Please pass in a wallet key to getWalletBookWallet');
8
- const walletDataFromKeyLookup = (_a = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) === null || _a === void 0 ? void 0 : _a[walletKey];
9
- if (!walletDataFromKeyLookup) {
10
- // adds fallback support. normalizeWalletName will be removed in v2
11
- const normalizedWalletKey = normalizeWalletName(walletKey);
12
- const walletDataFromNormalizedKeyLookup = (_b = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) === null || _b === void 0 ? void 0 : _b[normalizedWalletKey];
13
- if (walletDataFromNormalizedKeyLookup) {
14
- logger.warn(`deprecated: using walletName: ${walletKey} to look up wallet data is deprecated. use connector.key instead ${normalizedWalletKey}`);
15
- return walletDataFromNormalizedKeyLookup;
16
- }
17
- throw new Error(`Wallet ${normalizedWalletKey} not found in wallet book (${Object.keys((_c = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) !== null && _c !== void 0 ? _c : {}).length} wallets found)`);
5
+ const walletData = (_a = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) === null || _a === void 0 ? void 0 : _a[walletKey];
6
+ if (!walletData) {
7
+ throw new Error(`Wallet ${walletKey} not found in wallet book (${Object.keys((_b = walletBook === null || walletBook === void 0 ? void 0 : walletBook.wallets) !== null && _b !== void 0 ? _b : {}).length} wallets found)`);
18
8
  }
19
- return walletDataFromKeyLookup;
9
+ return walletData;
20
10
  };
21
11
 
22
12
  export { getWalletBookWallet };
@@ -2,7 +2,6 @@ export * from './getWalletIconUrl';
2
2
  export * from './getWalletBookWallet';
3
3
  export * from './getWalletLinks';
4
4
  export * from './getWalletPrimaryColor';
5
- export * from './normalizeWalletName';
6
5
  export * from './renderTemplate';
7
6
  export * from './findWalletBookWallet';
8
7
  export * from './logger';
@@ -8,8 +8,8 @@ var utils = require('@dynamic-labs/utils');
8
8
  require('../schemas/walletConnectSourceSchema.cjs');
9
9
  var walletBookSchema = require('../schemas/walletBookSchema.cjs');
10
10
  require('../schemas/walletSchema.cjs');
11
- var logger = require('../helpers/logger.cjs');
12
11
  require('../helpers/renderTemplate.cjs');
12
+ var logger = require('../helpers/logger.cjs');
13
13
  var getWalletBookCdnUrl = require('../helpers/getWalletBookCdnUrl.cjs');
14
14
  var walletBookFallbacks = require('../../wallet-book-fallbacks.cjs');
15
15
 
@@ -4,14 +4,12 @@ export declare const useWalletBookCdn: () => {
4
4
  name: string;
5
5
  brand?: {
6
6
  alt?: string | undefined;
7
- imageId?: string | undefined;
8
7
  primaryColor?: string | undefined;
9
8
  spriteId?: string | undefined;
10
9
  } | undefined;
11
10
  walletOverrides?: Record<string, {
12
11
  brand?: {
13
12
  alt?: string | undefined;
14
- imageId?: string | undefined;
15
13
  primaryColor?: string | undefined;
16
14
  spriteId?: string | undefined;
17
15
  } | undefined;
@@ -22,7 +20,6 @@ export declare const useWalletBookCdn: () => {
22
20
  name: string;
23
21
  brand?: {
24
22
  alt?: string | undefined;
25
- imageId?: string | undefined;
26
23
  primaryColor?: string | undefined;
27
24
  spriteId?: string | undefined;
28
25
  } | undefined;
@@ -4,8 +4,8 @@ import { retryableFn } from '@dynamic-labs/utils';
4
4
  import '../schemas/walletConnectSourceSchema.js';
5
5
  import { walletBookSchema } from '../schemas/walletBookSchema.js';
6
6
  import '../schemas/walletSchema.js';
7
- import { logger } from '../helpers/logger.js';
8
7
  import '../helpers/renderTemplate.js';
8
+ import { logger } from '../helpers/logger.js';
9
9
  import { getWalletBookCdnUrl } from '../helpers/getWalletBookCdnUrl.js';
10
10
  import walletBookFallbacks from '../../wallet-book-fallbacks.js';
11
11
 
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var react = require('react');
6
6
  require('../../_virtual/_tslib.cjs');
7
- require('../helpers/logger.cjs');
8
7
  require('../helpers/renderTemplate.cjs');
8
+ require('../helpers/logger.cjs');
9
9
  require('@dynamic-labs/utils');
10
10
  require('../schemas/walletConnectSourceSchema.cjs');
11
11
  require('../schemas/walletBookSchema.cjs');
@@ -1,7 +1,7 @@
1
1
  import { useContext } from 'react';
2
2
  import '../../_virtual/_tslib.js';
3
- import '../helpers/logger.js';
4
3
  import '../helpers/renderTemplate.js';
4
+ import '../helpers/logger.js';
5
5
  import '@dynamic-labs/utils';
6
6
  import '../schemas/walletConnectSourceSchema.js';
7
7
  import '../schemas/walletBookSchema.js';
@@ -1,28 +1,15 @@
1
1
  import { z } from 'zod';
2
2
  export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
3
- brand: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3
+ brand: z.ZodOptional<z.ZodObject<{
4
4
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
5
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
6
5
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
7
6
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
8
7
  }, "strip", z.ZodTypeAny, {
9
8
  alt?: string | undefined;
10
- imageId?: string | undefined;
11
9
  primaryColor?: string | undefined;
12
10
  spriteId?: string | undefined;
13
11
  }, {
14
12
  alt?: unknown;
15
- imageId?: unknown;
16
- primaryColor?: unknown;
17
- spriteId?: unknown;
18
- }>, {
19
- alt?: string | undefined;
20
- imageId?: string | undefined;
21
- primaryColor?: string | undefined;
22
- spriteId?: string | undefined;
23
- }, {
24
- alt?: unknown;
25
- imageId?: unknown;
26
13
  primaryColor?: unknown;
27
14
  spriteId?: unknown;
28
15
  }>>;
@@ -184,7 +171,6 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
184
171
  name: string;
185
172
  brand?: {
186
173
  alt?: string | undefined;
187
- imageId?: string | undefined;
188
174
  primaryColor?: string | undefined;
189
175
  spriteId?: string | undefined;
190
176
  } | undefined;
@@ -237,7 +223,6 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
237
223
  name: string;
238
224
  brand?: {
239
225
  alt?: unknown;
240
- imageId?: unknown;
241
226
  primaryColor?: unknown;
242
227
  spriteId?: unknown;
243
228
  } | undefined;
@@ -290,7 +275,6 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
290
275
  name: string;
291
276
  brand?: {
292
277
  alt?: string | undefined;
293
- imageId?: string | undefined;
294
278
  primaryColor?: string | undefined;
295
279
  spriteId?: string | undefined;
296
280
  } | undefined;
@@ -343,7 +327,6 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
343
327
  name: string;
344
328
  brand?: {
345
329
  alt?: string | undefined;
346
- imageId?: string | undefined;
347
330
  primaryColor?: string | undefined;
348
331
  spriteId?: string | undefined;
349
332
  } | undefined;
@@ -395,58 +378,32 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
395
378
  }, unknown>>;
396
379
  export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
397
380
  groups: z.ZodRecord<z.ZodString, z.ZodObject<{
398
- brand: z.ZodEffects<z.ZodOptional<z.ZodObject<{
381
+ brand: z.ZodOptional<z.ZodObject<{
399
382
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
400
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
401
383
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
402
384
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
403
385
  }, "strip", z.ZodTypeAny, {
404
386
  alt?: string | undefined;
405
- imageId?: string | undefined;
406
387
  primaryColor?: string | undefined;
407
388
  spriteId?: string | undefined;
408
389
  }, {
409
390
  alt?: unknown;
410
- imageId?: unknown;
411
391
  primaryColor?: unknown;
412
392
  spriteId?: unknown;
413
- }>>, {
414
- alt?: string | undefined;
415
- imageId?: string | undefined;
416
- primaryColor?: string | undefined;
417
- spriteId?: string | undefined;
418
- } | undefined, {
419
- alt?: unknown;
420
- imageId?: unknown;
421
- primaryColor?: unknown;
422
- spriteId?: unknown;
423
- } | undefined>;
393
+ }>>;
424
394
  key: z.ZodString;
425
395
  name: z.ZodString;
426
396
  walletOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
427
- brand: z.ZodOptional<z.ZodEffects<z.ZodObject<{
397
+ brand: z.ZodOptional<z.ZodObject<{
428
398
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
429
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
430
399
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
431
400
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
432
401
  }, "strip", z.ZodTypeAny, {
433
402
  alt?: string | undefined;
434
- imageId?: string | undefined;
435
- primaryColor?: string | undefined;
436
- spriteId?: string | undefined;
437
- }, {
438
- alt?: unknown;
439
- imageId?: unknown;
440
- primaryColor?: unknown;
441
- spriteId?: unknown;
442
- }>, {
443
- alt?: string | undefined;
444
- imageId?: string | undefined;
445
403
  primaryColor?: string | undefined;
446
404
  spriteId?: string | undefined;
447
405
  }, {
448
406
  alt?: unknown;
449
- imageId?: unknown;
450
407
  primaryColor?: unknown;
451
408
  spriteId?: unknown;
452
409
  }>>;
@@ -454,7 +411,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
454
411
  }, "strip", z.ZodTypeAny, {
455
412
  brand?: {
456
413
  alt?: string | undefined;
457
- imageId?: string | undefined;
458
414
  primaryColor?: string | undefined;
459
415
  spriteId?: string | undefined;
460
416
  } | undefined;
@@ -462,7 +418,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
462
418
  }, {
463
419
  brand?: {
464
420
  alt?: unknown;
465
- imageId?: unknown;
466
421
  primaryColor?: unknown;
467
422
  spriteId?: unknown;
468
423
  } | undefined;
@@ -473,14 +428,12 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
473
428
  key: string;
474
429
  brand?: {
475
430
  alt?: string | undefined;
476
- imageId?: string | undefined;
477
431
  primaryColor?: string | undefined;
478
432
  spriteId?: string | undefined;
479
433
  } | undefined;
480
434
  walletOverrides?: Record<string, {
481
435
  brand?: {
482
436
  alt?: string | undefined;
483
- imageId?: string | undefined;
484
437
  primaryColor?: string | undefined;
485
438
  spriteId?: string | undefined;
486
439
  } | undefined;
@@ -491,14 +444,12 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
491
444
  key: string;
492
445
  brand?: {
493
446
  alt?: unknown;
494
- imageId?: unknown;
495
447
  primaryColor?: unknown;
496
448
  spriteId?: unknown;
497
449
  } | undefined;
498
450
  walletOverrides?: Record<string, {
499
451
  brand?: {
500
452
  alt?: unknown;
501
- imageId?: unknown;
502
453
  primaryColor?: unknown;
503
454
  spriteId?: unknown;
504
455
  } | undefined;
@@ -506,29 +457,16 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
506
457
  }> | undefined;
507
458
  }>>;
508
459
  wallets: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
509
- brand: z.ZodOptional<z.ZodEffects<z.ZodObject<{
460
+ brand: z.ZodOptional<z.ZodObject<{
510
461
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
511
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
512
462
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
513
463
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
514
464
  }, "strip", z.ZodTypeAny, {
515
465
  alt?: string | undefined;
516
- imageId?: string | undefined;
517
466
  primaryColor?: string | undefined;
518
467
  spriteId?: string | undefined;
519
468
  }, {
520
469
  alt?: unknown;
521
- imageId?: unknown;
522
- primaryColor?: unknown;
523
- spriteId?: unknown;
524
- }>, {
525
- alt?: string | undefined;
526
- imageId?: string | undefined;
527
- primaryColor?: string | undefined;
528
- spriteId?: string | undefined;
529
- }, {
530
- alt?: unknown;
531
- imageId?: unknown;
532
470
  primaryColor?: unknown;
533
471
  spriteId?: unknown;
534
472
  }>>;
@@ -690,7 +628,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
690
628
  name: string;
691
629
  brand?: {
692
630
  alt?: string | undefined;
693
- imageId?: string | undefined;
694
631
  primaryColor?: string | undefined;
695
632
  spriteId?: string | undefined;
696
633
  } | undefined;
@@ -743,7 +680,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
743
680
  name: string;
744
681
  brand?: {
745
682
  alt?: unknown;
746
- imageId?: unknown;
747
683
  primaryColor?: unknown;
748
684
  spriteId?: unknown;
749
685
  } | undefined;
@@ -796,7 +732,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
796
732
  name: string;
797
733
  brand?: {
798
734
  alt?: string | undefined;
799
- imageId?: string | undefined;
800
735
  primaryColor?: string | undefined;
801
736
  spriteId?: string | undefined;
802
737
  } | undefined;
@@ -849,7 +784,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
849
784
  name: string;
850
785
  brand?: {
851
786
  alt?: string | undefined;
852
- imageId?: string | undefined;
853
787
  primaryColor?: string | undefined;
854
788
  spriteId?: string | undefined;
855
789
  } | undefined;
@@ -905,14 +839,12 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
905
839
  key: string;
906
840
  brand?: {
907
841
  alt?: string | undefined;
908
- imageId?: string | undefined;
909
842
  primaryColor?: string | undefined;
910
843
  spriteId?: string | undefined;
911
844
  } | undefined;
912
845
  walletOverrides?: Record<string, {
913
846
  brand?: {
914
847
  alt?: string | undefined;
915
- imageId?: string | undefined;
916
848
  primaryColor?: string | undefined;
917
849
  spriteId?: string | undefined;
918
850
  } | undefined;
@@ -923,7 +855,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
923
855
  name: string;
924
856
  brand?: {
925
857
  alt?: string | undefined;
926
- imageId?: string | undefined;
927
858
  primaryColor?: string | undefined;
928
859
  spriteId?: string | undefined;
929
860
  } | undefined;
@@ -979,14 +910,12 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
979
910
  key: string;
980
911
  brand?: {
981
912
  alt?: unknown;
982
- imageId?: unknown;
983
913
  primaryColor?: unknown;
984
914
  spriteId?: unknown;
985
915
  } | undefined;
986
916
  walletOverrides?: Record<string, {
987
917
  brand?: {
988
918
  alt?: unknown;
989
- imageId?: unknown;
990
919
  primaryColor?: unknown;
991
920
  spriteId?: unknown;
992
921
  } | undefined;
@@ -1000,14 +929,12 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
1000
929
  key: string;
1001
930
  brand?: {
1002
931
  alt?: string | undefined;
1003
- imageId?: string | undefined;
1004
932
  primaryColor?: string | undefined;
1005
933
  spriteId?: string | undefined;
1006
934
  } | undefined;
1007
935
  walletOverrides?: Record<string, {
1008
936
  brand?: {
1009
937
  alt?: string | undefined;
1010
- imageId?: string | undefined;
1011
938
  primaryColor?: string | undefined;
1012
939
  spriteId?: string | undefined;
1013
940
  } | undefined;
@@ -1018,7 +945,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
1018
945
  name: string;
1019
946
  brand?: {
1020
947
  alt?: string | undefined;
1021
- imageId?: string | undefined;
1022
948
  primaryColor?: string | undefined;
1023
949
  spriteId?: string | undefined;
1024
950
  } | undefined;
@@ -1072,58 +998,32 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
1072
998
  export type WalletBookSchema = z.infer<typeof walletBookSchema>;
1073
999
  export type WalletRecordsSchema = z.infer<typeof walletBookSchema>['wallets'];
1074
1000
  declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1075
- brand: z.ZodEffects<z.ZodOptional<z.ZodObject<{
1001
+ brand: z.ZodOptional<z.ZodObject<{
1076
1002
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1077
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1078
1003
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1079
1004
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1080
1005
  }, "strip", z.ZodTypeAny, {
1081
1006
  alt?: string | undefined;
1082
- imageId?: string | undefined;
1083
1007
  primaryColor?: string | undefined;
1084
1008
  spriteId?: string | undefined;
1085
1009
  }, {
1086
1010
  alt?: unknown;
1087
- imageId?: unknown;
1088
- primaryColor?: unknown;
1089
- spriteId?: unknown;
1090
- }>>, {
1091
- alt?: string | undefined;
1092
- imageId?: string | undefined;
1093
- primaryColor?: string | undefined;
1094
- spriteId?: string | undefined;
1095
- } | undefined, {
1096
- alt?: unknown;
1097
- imageId?: unknown;
1098
1011
  primaryColor?: unknown;
1099
1012
  spriteId?: unknown;
1100
- } | undefined>;
1013
+ }>>;
1101
1014
  key: z.ZodString;
1102
1015
  name: z.ZodString;
1103
1016
  walletOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1104
- brand: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1017
+ brand: z.ZodOptional<z.ZodObject<{
1105
1018
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1106
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1107
1019
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1108
1020
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1109
1021
  }, "strip", z.ZodTypeAny, {
1110
1022
  alt?: string | undefined;
1111
- imageId?: string | undefined;
1112
- primaryColor?: string | undefined;
1113
- spriteId?: string | undefined;
1114
- }, {
1115
- alt?: unknown;
1116
- imageId?: unknown;
1117
- primaryColor?: unknown;
1118
- spriteId?: unknown;
1119
- }>, {
1120
- alt?: string | undefined;
1121
- imageId?: string | undefined;
1122
1023
  primaryColor?: string | undefined;
1123
1024
  spriteId?: string | undefined;
1124
1025
  }, {
1125
1026
  alt?: unknown;
1126
- imageId?: unknown;
1127
1027
  primaryColor?: unknown;
1128
1028
  spriteId?: unknown;
1129
1029
  }>>;
@@ -1131,7 +1031,6 @@ declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1131
1031
  }, "strip", z.ZodTypeAny, {
1132
1032
  brand?: {
1133
1033
  alt?: string | undefined;
1134
- imageId?: string | undefined;
1135
1034
  primaryColor?: string | undefined;
1136
1035
  spriteId?: string | undefined;
1137
1036
  } | undefined;
@@ -1139,7 +1038,6 @@ declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1139
1038
  }, {
1140
1039
  brand?: {
1141
1040
  alt?: unknown;
1142
- imageId?: unknown;
1143
1041
  primaryColor?: unknown;
1144
1042
  spriteId?: unknown;
1145
1043
  } | undefined;
@@ -1150,14 +1048,12 @@ declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1150
1048
  key: string;
1151
1049
  brand?: {
1152
1050
  alt?: string | undefined;
1153
- imageId?: string | undefined;
1154
1051
  primaryColor?: string | undefined;
1155
1052
  spriteId?: string | undefined;
1156
1053
  } | undefined;
1157
1054
  walletOverrides?: Record<string, {
1158
1055
  brand?: {
1159
1056
  alt?: string | undefined;
1160
- imageId?: string | undefined;
1161
1057
  primaryColor?: string | undefined;
1162
1058
  spriteId?: string | undefined;
1163
1059
  } | undefined;
@@ -1168,14 +1064,12 @@ declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1168
1064
  key: string;
1169
1065
  brand?: {
1170
1066
  alt?: unknown;
1171
- imageId?: unknown;
1172
1067
  primaryColor?: unknown;
1173
1068
  spriteId?: unknown;
1174
1069
  } | undefined;
1175
1070
  walletOverrides?: Record<string, {
1176
1071
  brand?: {
1177
1072
  alt?: unknown;
1178
- imageId?: unknown;
1179
1073
  primaryColor?: unknown;
1180
1074
  spriteId?: unknown;
1181
1075
  } | undefined;
@@ -12,6 +12,22 @@ var groups = {
12
12
  key: "argentx",
13
13
  name: "ArgentX"
14
14
  },
15
+ backpack: {
16
+ brand: {
17
+ alt: "Backpack",
18
+ spriteId: "backpack"
19
+ },
20
+ key: "backpack",
21
+ name: "Backpack"
22
+ },
23
+ bitgetwallet: {
24
+ brand: {
25
+ alt: "Bitget Wallet",
26
+ spriteId: "bitget"
27
+ },
28
+ key: "bitgetwallet",
29
+ name: "Bitget Wallet"
30
+ },
15
31
  blocto: {
16
32
  brand: {
17
33
  alt: "Blocto",
@@ -147,6 +163,10 @@ var wallets = {
147
163
  {
148
164
  flag: "isMagicEden",
149
165
  value: false
166
+ },
167
+ {
168
+ flag: "isZerion",
169
+ value: false
150
170
  }
151
171
  ]
152
172
  }
@@ -864,10 +884,82 @@ var wallets = {
864
884
  primaryColor: "#e43c3c",
865
885
  spriteId: "backpack"
866
886
  },
887
+ chainGroup: "backpack",
867
888
  desktop: {
868
889
  chromeId: "aflkmfhebedbjioipglgcbcmnbpgliof"
869
890
  },
870
- name: "Backpack (EVM)"
891
+ eip6963Config: {
892
+ rdns: "app.backpack"
893
+ },
894
+ group: "backpack",
895
+ injectedConfig: [
896
+ {
897
+ chain: "evm",
898
+ extensionLocators: [
899
+ {
900
+ flag: "isBackpack",
901
+ value: true
902
+ }
903
+ ],
904
+ windowLocations: [
905
+ ]
906
+ }
907
+ ],
908
+ name: "Backpack"
909
+ },
910
+ okxwalletbtc: {
911
+ brand: {
912
+ alt: "OKX Wallet",
913
+ spriteId: "okx"
914
+ },
915
+ chainGroup: "okxwallet",
916
+ desktop: {
917
+ chromeId: "mcohilncbfahbmgdjkbpemcciiolgcge"
918
+ },
919
+ group: "okxwallet",
920
+ injectedConfig: [
921
+ {
922
+ chain: "btc",
923
+ extensionLocators: [
924
+ ],
925
+ windowLocations: [
926
+ "okxwallet.bitcoin"
927
+ ]
928
+ }
929
+ ],
930
+ mobile: {
931
+ androidId: "com.okinc.okex.gp",
932
+ iosId: "id1327268470"
933
+ },
934
+ name: "OKX",
935
+ shortName: "OKX Wallet (Bitcoin)"
936
+ },
937
+ unisat: {
938
+ brand: {
939
+ alt: "UniSat",
940
+ spriteId: "unisat"
941
+ },
942
+ desktop: {
943
+ chromeId: "ppbibelpcjmhbdihakflkdcoccbgbkpo"
944
+ },
945
+ injectedConfig: [
946
+ {
947
+ chain: "btc",
948
+ extensionLocators: [
949
+ ],
950
+ windowLocations: [
951
+ "unisat"
952
+ ]
953
+ }
954
+ ],
955
+ name: "UniSat"
956
+ },
957
+ zerodev: {
958
+ brand: {
959
+ alt: "Smart Wallet",
960
+ spriteId: "smartwallet"
961
+ },
962
+ name: "ZeroDev"
871
963
  }
872
964
  };
873
965
  var walletBookFallbacks = {
@@ -8,6 +8,22 @@ var groups = {
8
8
  key: "argentx",
9
9
  name: "ArgentX"
10
10
  },
11
+ backpack: {
12
+ brand: {
13
+ alt: "Backpack",
14
+ spriteId: "backpack"
15
+ },
16
+ key: "backpack",
17
+ name: "Backpack"
18
+ },
19
+ bitgetwallet: {
20
+ brand: {
21
+ alt: "Bitget Wallet",
22
+ spriteId: "bitget"
23
+ },
24
+ key: "bitgetwallet",
25
+ name: "Bitget Wallet"
26
+ },
11
27
  blocto: {
12
28
  brand: {
13
29
  alt: "Blocto",
@@ -143,6 +159,10 @@ var wallets = {
143
159
  {
144
160
  flag: "isMagicEden",
145
161
  value: false
162
+ },
163
+ {
164
+ flag: "isZerion",
165
+ value: false
146
166
  }
147
167
  ]
148
168
  }
@@ -860,10 +880,82 @@ var wallets = {
860
880
  primaryColor: "#e43c3c",
861
881
  spriteId: "backpack"
862
882
  },
883
+ chainGroup: "backpack",
863
884
  desktop: {
864
885
  chromeId: "aflkmfhebedbjioipglgcbcmnbpgliof"
865
886
  },
866
- name: "Backpack (EVM)"
887
+ eip6963Config: {
888
+ rdns: "app.backpack"
889
+ },
890
+ group: "backpack",
891
+ injectedConfig: [
892
+ {
893
+ chain: "evm",
894
+ extensionLocators: [
895
+ {
896
+ flag: "isBackpack",
897
+ value: true
898
+ }
899
+ ],
900
+ windowLocations: [
901
+ ]
902
+ }
903
+ ],
904
+ name: "Backpack"
905
+ },
906
+ okxwalletbtc: {
907
+ brand: {
908
+ alt: "OKX Wallet",
909
+ spriteId: "okx"
910
+ },
911
+ chainGroup: "okxwallet",
912
+ desktop: {
913
+ chromeId: "mcohilncbfahbmgdjkbpemcciiolgcge"
914
+ },
915
+ group: "okxwallet",
916
+ injectedConfig: [
917
+ {
918
+ chain: "btc",
919
+ extensionLocators: [
920
+ ],
921
+ windowLocations: [
922
+ "okxwallet.bitcoin"
923
+ ]
924
+ }
925
+ ],
926
+ mobile: {
927
+ androidId: "com.okinc.okex.gp",
928
+ iosId: "id1327268470"
929
+ },
930
+ name: "OKX",
931
+ shortName: "OKX Wallet (Bitcoin)"
932
+ },
933
+ unisat: {
934
+ brand: {
935
+ alt: "UniSat",
936
+ spriteId: "unisat"
937
+ },
938
+ desktop: {
939
+ chromeId: "ppbibelpcjmhbdihakflkdcoccbgbkpo"
940
+ },
941
+ injectedConfig: [
942
+ {
943
+ chain: "btc",
944
+ extensionLocators: [
945
+ ],
946
+ windowLocations: [
947
+ "unisat"
948
+ ]
949
+ }
950
+ ],
951
+ name: "UniSat"
952
+ },
953
+ zerodev: {
954
+ brand: {
955
+ alt: "Smart Wallet",
956
+ spriteId: "smartwallet"
957
+ },
958
+ name: "ZeroDev"
867
959
  }
868
960
  };
869
961
  var walletBookFallbacks = {
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const normalizeWalletName = (name) => { var _a; return (_a = name === null || name === void 0 ? void 0 : name.toLowerCase().replace(/\W/g, '')) !== null && _a !== void 0 ? _a : 'undefined-wallet'; };
6
-
7
- exports.normalizeWalletName = normalizeWalletName;
@@ -1 +0,0 @@
1
- export declare const normalizeWalletName: (name?: string) => string;
@@ -1,3 +0,0 @@
1
- const normalizeWalletName = (name) => { var _a; return (_a = name === null || name === void 0 ? void 0 : name.toLowerCase().replace(/\W/g, '')) !== null && _a !== void 0 ? _a : 'undefined-wallet'; };
2
-
3
- export { normalizeWalletName };