@dynamic-labs/ethereum 3.0.0-alpha.2 → 3.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,243 @@
1
1
 
2
+ ## [3.0.0-alpha.21](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.20...v3.0.0-alpha.21) (2024-07-17)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * invalid email error appears ([#6348](https://github.com/dynamic-labs/DynamicAuth/issues/6348)) ([01bcfd2](https://github.com/dynamic-labs/DynamicAuth/commit/01bcfd2f3cc37083c47c0f26e3398f974f6b6a17))
8
+ * stop unnecessary phantom btc popup when disconnecting ([#6188](https://github.com/dynamic-labs/DynamicAuth/issues/6188)) ([15c2eb5](https://github.com/dynamic-labs/DynamicAuth/commit/15c2eb5da90be93ab917e7c61a873a0e9a568211))
9
+
10
+ ## [3.0.0-alpha.20](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.19...v3.0.0-alpha.20) (2024-07-15)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * show/hide confirmation ui for aa session key wallets ([#6334](https://github.com/dynamic-labs/DynamicAuth/issues/6334)) ([6e17162](https://github.com/dynamic-labs/DynamicAuth/commit/6e17162e31915620b622f3ec5b4f8b7087f1728c))
16
+
17
+ ## [3.0.0-alpha.19](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.18...v3.0.0-alpha.19) (2024-07-13)
18
+
19
+ ## [3.0.0-alpha.18](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.17...v3.0.0-alpha.18) (2024-07-12)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * hide confirmation ui triggers passkey creation ([#6322](https://github.com/dynamic-labs/DynamicAuth/issues/6322)) ([c66f282](https://github.com/dynamic-labs/DynamicAuth/commit/c66f282cf8d64f19d7f5a7355aaaec980afbe245))
25
+
26
+ ## [3.0.0-alpha.17](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.16...v3.0.0-alpha.17) (2024-07-11)
27
+
28
+
29
+ ### Features
30
+
31
+ * add new hook to select wallet option to connect ([#6301](https://github.com/dynamic-labs/DynamicAuth/issues/6301)) ([833d71d](https://github.com/dynamic-labs/DynamicAuth/commit/833d71de164c57bfa22898c3425641a83a12e135))
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * refresh session keys correctly for solana embedded wallets ([#6309](https://github.com/dynamic-labs/DynamicAuth/issues/6309)) ([4b28e8a](https://github.com/dynamic-labs/DynamicAuth/commit/4b28e8ae231567754b6cfd07a7d41e86f1c73daa))
37
+
38
+ ## [3.0.0-alpha.16](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.15...v3.0.0-alpha.16) (2024-07-11)
39
+
40
+
41
+ ### ⚠ BREAKING CHANGES
42
+
43
+ * remove isConnected prop from wallets and have it as a method instead (#6265)
44
+
45
+ ### Features
46
+
47
+ * add bundlerRpc and paymasterRpc parameters to zerodev ([#6304](https://github.com/dynamic-labs/DynamicAuth/issues/6304)) ([156469b](https://github.com/dynamic-labs/DynamicAuth/commit/156469bf703f0c7fa455a24b8e4e328d3a0c58fc))
48
+
49
+
50
+ ### Bug Fixes
51
+
52
+ * headless embedded wallet export session refresh ([#6307](https://github.com/dynamic-labs/DynamicAuth/issues/6307)) ([5423cc1](https://github.com/dynamic-labs/DynamicAuth/commit/5423cc14c370968acf718b7deff6ea8df9228189))
53
+
54
+
55
+ * remove isConnected prop from wallets and have it as a method instead ([#6265](https://github.com/dynamic-labs/DynamicAuth/issues/6265)) ([652dcc2](https://github.com/dynamic-labs/DynamicAuth/commit/652dcc2d34c9a9719238606c67f600e40621183b))
56
+
57
+ ## [3.0.0-alpha.15](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.14...v3.0.0-alpha.15) (2024-07-11)
58
+
59
+
60
+ ### Bug Fixes
61
+
62
+ * catch third party wallet construction errors ([#6268](https://github.com/dynamic-labs/DynamicAuth/issues/6268)) ([badef39](https://github.com/dynamic-labs/DynamicAuth/commit/badef39d753c7d29925c6c8680053027bd99b69b))
63
+ * decode all solana transactions ([#6294](https://github.com/dynamic-labs/DynamicAuth/issues/6294)) ([5220ab2](https://github.com/dynamic-labs/DynamicAuth/commit/5220ab29381f3a7f1afc7043332b5a018b47eb0a))
64
+ * passkey cta ([#6255](https://github.com/dynamic-labs/DynamicAuth/issues/6255)) ([1b1b152](https://github.com/dynamic-labs/DynamicAuth/commit/1b1b152a24b409c5d941a9c92a003daf0bbe48a1))
65
+
66
+ ## [3.0.0-alpha.14](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.13...v3.0.0-alpha.14) (2024-07-09)
67
+
68
+
69
+ ### ⚠ BREAKING CHANGES
70
+
71
+ * remove setPrimaryWallet in favor of useSwitchWallet (#6212)
72
+ * move getBalance method to wallet so it can be fetched for any wallet not just the active one (#6200)
73
+ * make Wallet a class instead of just a type (#6094)
74
+
75
+ ### Features
76
+
77
+ * add @dynamic-labs/solana-extension ([#6140](https://github.com/dynamic-labs/DynamicAuth/issues/6140)) ([c0e2a06](https://github.com/dynamic-labs/DynamicAuth/commit/c0e2a067dd83163094b58a15696df8654da47c65))
78
+ * add solana support for multi-asset ([#6222](https://github.com/dynamic-labs/DynamicAuth/issues/6222)) ([9660d79](https://github.com/dynamic-labs/DynamicAuth/commit/9660d7962f1fb01011d68397bb367fdfc5335ca9))
79
+
80
+
81
+ ### Bug Fixes
82
+
83
+ * allow closing re-connect wallet modal ([#6250](https://github.com/dynamic-labs/DynamicAuth/issues/6250)) ([55ba25b](https://github.com/dynamic-labs/DynamicAuth/commit/55ba25bd3e907629aaa26e788885bfa38f8fe350))
84
+ * move getBalance method to wallet so it can be fetched for any wallet not just the active one ([#6200](https://github.com/dynamic-labs/DynamicAuth/issues/6200)) ([ee94773](https://github.com/dynamic-labs/DynamicAuth/commit/ee94773df9b31462a325666760fcf1fc70dec68a))
85
+ * move getNameService method to wallet so name service data can be fetched for any wallet ([#6205](https://github.com/dynamic-labs/DynamicAuth/issues/6205)) ([6671ae9](https://github.com/dynamic-labs/DynamicAuth/commit/6671ae92532ffc1889e24519e75f47d336ac0da6))
86
+ * relax phone number length validation ([#6226](https://github.com/dynamic-labs/DynamicAuth/issues/6226)) ([f0969b4](https://github.com/dynamic-labs/DynamicAuth/commit/f0969b4fbdafde07125cddecb16b4bfd011ea65e))
87
+ * sdkHasLoaded flipping back to false with otp ([#6242](https://github.com/dynamic-labs/DynamicAuth/issues/6242)) ([32ad9dd](https://github.com/dynamic-labs/DynamicAuth/commit/32ad9dd2dae7775f494506773fb343fe1a249c65))
88
+ * send transaction demo undefined address/value ([#6248](https://github.com/dynamic-labs/DynamicAuth/issues/6248)) ([036a511](https://github.com/dynamic-labs/DynamicAuth/commit/036a511fb848ef461edd9b7a5d79d478b0f1cf23))
89
+ * set last active account on accountChange request ([#6218](https://github.com/dynamic-labs/DynamicAuth/issues/6218)) ([05797d2](https://github.com/dynamic-labs/DynamicAuth/commit/05797d292aab8b4de02555594d4d1bbd4c9543eb))
90
+ * show ledger toggle when linking wallet ([#6202](https://github.com/dynamic-labs/DynamicAuth/issues/6202)) ([a449c0b](https://github.com/dynamic-labs/DynamicAuth/commit/a449c0bfc4e3a75ccd7084b930c48fbd6c14f691))
91
+ * show user wallet in profile view on single wallet mode even if it's not primary ([#6187](https://github.com/dynamic-labs/DynamicAuth/issues/6187)) ([ffaaeb2](https://github.com/dynamic-labs/DynamicAuth/commit/ffaaeb2c6cbb2868a381d85451ae5574024156bb))
92
+ * stop auto-switching to connected secondary wallet if primary wallet is not connected ([#6196](https://github.com/dynamic-labs/DynamicAuth/issues/6196)) ([4e8bcd2](https://github.com/dynamic-labs/DynamicAuth/commit/4e8bcd2d02d3fca54a0ed29c45b386ae99266b84))
93
+ * stop coinbase and solflare popups when secondary ([#6225](https://github.com/dynamic-labs/DynamicAuth/issues/6225)) ([7e9c104](https://github.com/dynamic-labs/DynamicAuth/commit/7e9c1049a09c9fd513c9a2a746d6baac916f1bf4))
94
+ * stop sending double sign request on network switch ([e325709](https://github.com/dynamic-labs/DynamicAuth/commit/e325709bb5d2d1331fe16cc705398fc7b1cc292a))
95
+ * tunrkey solana signer accept uint8array message ([#6137](https://github.com/dynamic-labs/DynamicAuth/issues/6137)) ([70f89ce](https://github.com/dynamic-labs/DynamicAuth/commit/70f89ce0dafa4c99b318c9c5adce59083cd6d284))
96
+ * update formatting of phantom bitcoin publickey ([#6210](https://github.com/dynamic-labs/DynamicAuth/issues/6210)) ([f58cea9](https://github.com/dynamic-labs/DynamicAuth/commit/f58cea99333fd7c6af8f56f637ee32f1f7ce8d76))
97
+ * use white color in farcaster qr code when in dark mode ([#6245](https://github.com/dynamic-labs/DynamicAuth/issues/6245)) ([a91958d](https://github.com/dynamic-labs/DynamicAuth/commit/a91958d8773be138da8f54791c4c67866257bbad))
98
+
99
+
100
+ * make Wallet a class instead of just a type ([#6094](https://github.com/dynamic-labs/DynamicAuth/issues/6094)) ([6dc4672](https://github.com/dynamic-labs/DynamicAuth/commit/6dc4672951cfadc22a6c569e74eae3485bd472f3))
101
+ * remove setPrimaryWallet in favor of useSwitchWallet ([#6212](https://github.com/dynamic-labs/DynamicAuth/issues/6212)) ([de125e1](https://github.com/dynamic-labs/DynamicAuth/commit/de125e1ebbc20507e4ec07f337f5f5fd13aabcbe))
102
+
103
+ ## [3.0.0-alpha.13](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.12...v3.0.0-alpha.13) (2024-06-27)
104
+
105
+
106
+ ### Bug Fixes
107
+
108
+ * coinbase smart wallet better handling in iframes ([#6184](https://github.com/dynamic-labs/DynamicAuth/issues/6184)) ([2c4befe](https://github.com/dynamic-labs/DynamicAuth/commit/2c4befedd09e6a432139cb3d08ea61004c3896d5))
109
+ * show connected network name when icon url is missing ([#6191](https://github.com/dynamic-labs/DynamicAuth/issues/6191)) ([dafd9e3](https://github.com/dynamic-labs/DynamicAuth/commit/dafd9e323f47ca3d61556e9a8c84ba3bfd27af8f))
110
+ * use correct account when creating wallet client ([#6179](https://github.com/dynamic-labs/DynamicAuth/issues/6179)) ([4e45a15](https://github.com/dynamic-labs/DynamicAuth/commit/4e45a15b2d7221ec80df919aa93468a75a94bed3))
111
+
112
+ ## [3.0.0-alpha.12](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.11...v3.0.0-alpha.12) (2024-06-27)
113
+
114
+
115
+ ### ⚠ BREAKING CHANGES
116
+
117
+ * return Transaction type from signTransaction and update solana … (#6180)
118
+
119
+ ### Bug Fixes
120
+
121
+ * return Transaction type from signTransaction and update solana … ([#6180](https://github.com/dynamic-labs/DynamicAuth/issues/6180)) ([07798b2](https://github.com/dynamic-labs/DynamicAuth/commit/07798b241a13f35a62e4ca0172a57a8d0cd98cf9))
122
+
123
+ ## [3.0.0-alpha.11](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.10...v3.0.0-alpha.11) (2024-06-26)
124
+
125
+
126
+ ### Bug Fixes
127
+
128
+ * prevent unwanted magiceden solana popups ([#6158](https://github.com/dynamic-labs/DynamicAuth/issues/6158)) ([b3c8208](https://github.com/dynamic-labs/DynamicAuth/commit/b3c820887eb5ec2badcfce3b19ec4dd874e90811))
129
+ * status icon for embedded wallets ([#6149](https://github.com/dynamic-labs/DynamicAuth/issues/6149)) ([135fd72](https://github.com/dynamic-labs/DynamicAuth/commit/135fd7274f4a6b2dcab98248f7bfe34a09e79f01))
130
+
131
+ ## [3.0.0-alpha.10](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.9...v3.0.0-alpha.10) (2024-06-24)
132
+
133
+
134
+ ### Bug Fixes
135
+
136
+ * clear expiresAt from local storage on logout ([#6110](https://github.com/dynamic-labs/DynamicAuth/issues/6110)) ([cbda893](https://github.com/dynamic-labs/DynamicAuth/commit/cbda893441154b6880a5419ce62a353b80f05e55))
137
+ * show SOL amount for complex transactions and better error display ([#6068](https://github.com/dynamic-labs/DynamicAuth/issues/6068)) ([454a3a0](https://github.com/dynamic-labs/DynamicAuth/commit/454a3a0a50805b3d63f44c2ef8c1dc766617eb2b))
138
+
139
+ ## [3.0.0-alpha.9](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.8...v3.0.0-alpha.9) (2024-06-21)
140
+
141
+ ## [3.0.0-alpha.8](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.7...v3.0.0-alpha.8) (2024-06-21)
142
+
143
+
144
+ ### ⚠ BREAKING CHANGES
145
+
146
+ * break out turnkey package into 3 separate packages (#6015)
147
+
148
+ ### Features
149
+
150
+ * add reinitialize hook ([#6098](https://github.com/dynamic-labs/DynamicAuth/issues/6098)) ([d978baa](https://github.com/dynamic-labs/DynamicAuth/commit/d978baa404d34064c36cc549229b1fcea1f20df0))
151
+
152
+
153
+ ### Bug Fixes
154
+
155
+ * always reconnect the wallet provider when calling getAddress ([#6097](https://github.com/dynamic-labs/DynamicAuth/issues/6097)) ([0f3d497](https://github.com/dynamic-labs/DynamicAuth/commit/0f3d497cedb38239fa9ada2bb25c6b4eaa72d7b1))
156
+ * break out turnkey package into 3 separate packages ([#6015](https://github.com/dynamic-labs/DynamicAuth/issues/6015)) ([a86fbef](https://github.com/dynamic-labs/DynamicAuth/commit/a86fbefe97558363b085e6f752af32d2943f91fa)), closes [#6017](https://github.com/dynamic-labs/DynamicAuth/issues/6017) [#6059](https://github.com/dynamic-labs/DynamicAuth/issues/6059)
157
+ * set latest blockhash on solana transactions if tx confirmation ui is disabled ([#6102](https://github.com/dynamic-labs/DynamicAuth/issues/6102)) ([b8035a3](https://github.com/dynamic-labs/DynamicAuth/commit/b8035a328e47409bf0416d3a01b2f17914488748))
158
+ * silently query unisat accounts ([#6101](https://github.com/dynamic-labs/DynamicAuth/issues/6101)) ([#6104](https://github.com/dynamic-labs/DynamicAuth/issues/6104)) ([643e704](https://github.com/dynamic-labs/DynamicAuth/commit/643e7048ff8610b31e6397e10b160ad456a45d11))
159
+ * stop querying magiceden solana accounts ([#6103](https://github.com/dynamic-labs/DynamicAuth/issues/6103)) ([#6108](https://github.com/dynamic-labs/DynamicAuth/issues/6108)) ([3cfdbc3](https://github.com/dynamic-labs/DynamicAuth/commit/3cfdbc3bc82bfe9bf53bf4236f7892a5440fcb86))
160
+ * trigger sign when linking an already linked unknown wallet ([#6105](https://github.com/dynamic-labs/DynamicAuth/issues/6105)) ([9e9c03b](https://github.com/dynamic-labs/DynamicAuth/commit/9e9c03bf615991c4f1183bf85c4d75c9a7773c85))
161
+
162
+ ## [3.0.0-alpha.7](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.6...v3.0.0-alpha.7) (2024-06-19)
163
+
164
+
165
+ ### ⚠ BREAKING CHANGES
166
+
167
+ * add selectedTabIndex and helpers (#6040)
168
+
169
+ ### Features
170
+
171
+ * add selectedTabIndex and helpers ([#6040](https://github.com/dynamic-labs/DynamicAuth/issues/6040)) ([ae20b80](https://github.com/dynamic-labs/DynamicAuth/commit/ae20b8081376dce97b18fa69c81c9ab73c1ff317))
172
+ * add useRefreshUser to trigger a user state refresh ([#6079](https://github.com/dynamic-labs/DynamicAuth/issues/6079)) ([1236d35](https://github.com/dynamic-labs/DynamicAuth/commit/1236d35fe9fab44ed2114ad9f3c8c6dca7ec27be))
173
+
174
+
175
+ ### Bug Fixes
176
+
177
+ * always return userWallets when available ([#6080](https://github.com/dynamic-labs/DynamicAuth/issues/6080)) ([#6083](https://github.com/dynamic-labs/DynamicAuth/issues/6083)) ([11992d2](https://github.com/dynamic-labs/DynamicAuth/commit/11992d2af5a401ba4ff1dc6904e2a9f8ef5904ca))
178
+ * less solana rpc calls and improve fee fetching ([#6019](https://github.com/dynamic-labs/DynamicAuth/issues/6019)) ([e2609db](https://github.com/dynamic-labs/DynamicAuth/commit/e2609db962c7708ff5b127cb23260a25bc5032e3))
179
+ * make account change idemopotent ([#6061](https://github.com/dynamic-labs/DynamicAuth/issues/6061)) ([8c87513](https://github.com/dynamic-labs/DynamicAuth/commit/8c8751390ea14888c4889679895e2f06d75717b9))
180
+ * only run multi wallet prompt when user profile or auth flow are open ([#6073](https://github.com/dynamic-labs/DynamicAuth/issues/6073)) ([d48ca10](https://github.com/dynamic-labs/DynamicAuth/commit/d48ca105359018457a78588fd8d9aa8a91583a02))
181
+ * recompute multiwallet state after merging accounts ([#6078](https://github.com/dynamic-labs/DynamicAuth/issues/6078)) ([e08a274](https://github.com/dynamic-labs/DynamicAuth/commit/e08a274c4d848f2a8360be7106cfbfa00b9a8f9b))
182
+ * stop querying okx for accounts while locked ([#6081](https://github.com/dynamic-labs/DynamicAuth/issues/6081)) ([#6084](https://github.com/dynamic-labs/DynamicAuth/issues/6084)) ([34365ac](https://github.com/dynamic-labs/DynamicAuth/commit/34365ac1981fe020b03e666c24535a247645d2ad))
183
+ * update copy for primary wallet not connected modal ([#6069](https://github.com/dynamic-labs/DynamicAuth/issues/6069)) ([4a3f43c](https://github.com/dynamic-labs/DynamicAuth/commit/4a3f43ce5585983f7fea0c5b97e812c0ade80e2c))
184
+
185
+ ## [3.0.0-alpha.6](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.5...v3.0.0-alpha.6) (2024-06-18)
186
+
187
+
188
+ ### Features
189
+
190
+ * implement useExternalAuth hook to signin using external jwt auth ([#6039](https://github.com/dynamic-labs/DynamicAuth/issues/6039)) ([ba90908](https://github.com/dynamic-labs/DynamicAuth/commit/ba90908509ec21f708a4a0782a7f94861fc3b484))
191
+
192
+
193
+ ### Bug Fixes
194
+
195
+ * allow sign-in with different ME BTC wallet after initial connection ([a527b46](https://github.com/dynamic-labs/DynamicAuth/commit/a527b464f321b4fc27730f57c3812e996b5ed878))
196
+ * close sign modal when signing in with a wallet when embedded wallet is enabled ([#6013](https://github.com/dynamic-labs/DynamicAuth/issues/6013)) ([0f4f3c8](https://github.com/dynamic-labs/DynamicAuth/commit/0f4f3c83db162f7a1794a3549b60bbad6b03e2c0))
197
+ * custom network without a valid icon should still display its name in network picker ([#6018](https://github.com/dynamic-labs/DynamicAuth/issues/6018)) ([0b10df6](https://github.com/dynamic-labs/DynamicAuth/commit/0b10df68950bfc9b8492443158a6bb030dc1122c))
198
+ * e2e: remove page pause ([#6045](https://github.com/dynamic-labs/DynamicAuth/issues/6045)) ([55bba00](https://github.com/dynamic-labs/DynamicAuth/commit/55bba0034255055d6ae266b1296542f47ed48e2b))
199
+ * more fixes for connect starknet button ([#6046](https://github.com/dynamic-labs/DynamicAuth/issues/6046)) ([0fb570a](https://github.com/dynamic-labs/DynamicAuth/commit/0fb570a44e65f8dd6d4d2bf5edb2ee54985ec9d4))
200
+ * set verified credentials on embedded wallet creation ([#6044](https://github.com/dynamic-labs/DynamicAuth/issues/6044)) ([b52a96d](https://github.com/dynamic-labs/DynamicAuth/commit/b52a96d321e7efdb30dce9cdb3f6f176c24ceb81))
201
+
202
+ ## [3.0.0-alpha.5](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.4...v3.0.0-alpha.5) (2024-06-14)
203
+
204
+
205
+ ### ⚠ BREAKING CHANGES
206
+
207
+ * remove viem dependency from non-evm packages (#5508)
208
+ * move rpc providers into their own packages (#5981)
209
+
210
+ ### Features
211
+
212
+ * add in-app browser navigation support for sats-connect ([#5988](https://github.com/dynamic-labs/DynamicAuth/issues/5988)) ([be27d2d](https://github.com/dynamic-labs/DynamicAuth/commit/be27d2d4030bbe2157e879497d8e6a00b4a3e404))
213
+ * move rpc providers into their own packages ([#5981](https://github.com/dynamic-labs/DynamicAuth/issues/5981)) ([d7a62d6](https://github.com/dynamic-labs/DynamicAuth/commit/d7a62d60e79dfa6d6651b0fa103e90b6f8a9ccf3))
214
+
215
+
216
+ ### Bug Fixes
217
+
218
+ * embedded solana wallets can send SPL tokens and estimate gas ([#5982](https://github.com/dynamic-labs/DynamicAuth/issues/5982)) ([36623eb](https://github.com/dynamic-labs/DynamicAuth/commit/36623eb99d1d1dfebfd8b6f3194eeff31e7de2bf))
219
+ * improve logic related to turnkey and emailVerifcation ([#5946](https://github.com/dynamic-labs/DynamicAuth/issues/5946)) ([dd0b2dc](https://github.com/dynamic-labs/DynamicAuth/commit/dd0b2dc6d93a8bbbcb6eef88732e62b747005bb3))
220
+ * show linked wallets with unavailable providers in user wallets list ([#5992](https://github.com/dynamic-labs/DynamicAuth/issues/5992)) ([996079c](https://github.com/dynamic-labs/DynamicAuth/commit/996079ced360651c7b1eb5273548e0548f6f9f3a))
221
+ * switch network modal not closing after switching to a supported network ([#5979](https://github.com/dynamic-labs/DynamicAuth/issues/5979)) ([f239952](https://github.com/dynamic-labs/DynamicAuth/commit/f2399523dd82bb28046992cac4582688b688bdc0))
222
+
223
+
224
+ * remove viem dependency from non-evm packages ([#5508](https://github.com/dynamic-labs/DynamicAuth/issues/5508)) ([0299dc3](https://github.com/dynamic-labs/DynamicAuth/commit/0299dc3cbb611182d763e9a89d1270c2e2f32df5))
225
+
226
+ ## [3.0.0-alpha.4](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.3...v3.0.0-alpha.4) (2024-06-12)
227
+
228
+
229
+ ### Bug Fixes
230
+
231
+ * cache getGenesisHash call to prevent over calling ([#5966](https://github.com/dynamic-labs/DynamicAuth/issues/5966)) ([b4d542f](https://github.com/dynamic-labs/DynamicAuth/commit/b4d542f0a85f5ba8c5b8f02f287caee45b4b6feb))
232
+ * handle raw messages in embedded wallet sign message modal ([#5815](https://github.com/dynamic-labs/DynamicAuth/issues/5815)) ([9adc289](https://github.com/dynamic-labs/DynamicAuth/commit/9adc28993b57c1c7f03c4ce6d500288dcf60881e))
233
+
234
+ ## [3.0.0-alpha.3](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.2...v3.0.0-alpha.3) (2024-06-11)
235
+
236
+
237
+ ### Bug Fixes
238
+
239
+ * only navigate to mfa backup codes when needed ([#5965](https://github.com/dynamic-labs/DynamicAuth/issues/5965)) ([edc462f](https://github.com/dynamic-labs/DynamicAuth/commit/edc462f20768885db1883a2c8d005e07044092d5))
240
+
2
241
  ## [3.0.0-alpha.2](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.1...v3.0.0-alpha.2) (2024-06-11)
3
242
 
4
243
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "3.0.0-alpha.2",
3
+ "version": "3.0.0-alpha.21",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -26,18 +26,18 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@dynamic-labs/sdk-api-core": "0.0.461",
30
- "@coinbase/wallet-sdk": "4.0.3",
29
+ "@dynamic-labs/sdk-api-core": "0.0.470",
30
+ "@coinbase/wallet-sdk": "4.0.4",
31
31
  "@walletconnect/ethereum-provider": "2.11.2",
32
32
  "eventemitter3": "5.0.1",
33
33
  "buffer": "6.0.3",
34
- "@dynamic-labs/rpc-provider-ethereum": "3.0.0-alpha.2",
35
- "@dynamic-labs/turnkey": "3.0.0-alpha.2",
36
- "@dynamic-labs/types": "3.0.0-alpha.2",
37
- "@dynamic-labs/utils": "3.0.0-alpha.2",
38
- "@dynamic-labs/viem-utils": "3.0.0-alpha.2",
39
- "@dynamic-labs/wallet-book": "3.0.0-alpha.2",
40
- "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.2",
34
+ "@dynamic-labs/embedded-wallet-evm": "3.0.0-alpha.21",
35
+ "@dynamic-labs/rpc-provider-ethereum": "3.0.0-alpha.21",
36
+ "@dynamic-labs/types": "3.0.0-alpha.21",
37
+ "@dynamic-labs/utils": "3.0.0-alpha.21",
38
+ "@dynamic-labs/viem-utils": "3.0.0-alpha.21",
39
+ "@dynamic-labs/wallet-book": "3.0.0-alpha.21",
40
+ "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.21",
41
41
  "stream": "0.0.2"
42
42
  },
43
43
  "peerDependencies": {
@@ -6,15 +6,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
6
6
  var _tslib = require('../_virtual/_tslib.cjs');
7
7
  var viem = require('viem');
8
8
  var accounts = require('viem/accounts');
9
- var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
10
9
  var utils = require('@dynamic-labs/utils');
10
+ var viemUtils = require('@dynamic-labs/viem-utils');
11
+ var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
11
12
  var findEvmNetwork = require('./utils/findEvmNetwork.cjs');
12
13
  var getNameservice = require('./utils/getNameservice.cjs');
13
14
 
14
15
  class EthWalletConnector extends walletConnectorCore.WalletConnectorBase {
15
16
  getPublicClient() {
16
17
  return _tslib.__awaiter(this, void 0, void 0, function* () {
17
- var _a, _b, _c;
18
+ var _a, _b;
18
19
  const networkId = (_a = (yield this.getNetwork())) !== null && _a !== void 0 ? _a : 1;
19
20
  if (this.evmNetworks.length === 0) {
20
21
  return undefined;
@@ -25,7 +26,10 @@ class EthWalletConnector extends walletConnectorCore.WalletConnectorBase {
25
26
  solana: [],
26
27
  starknet: undefined,
27
28
  };
28
- return (_c = (_b = this.chainRpcProviders) === null || _b === void 0 ? void 0 : _b.getEvmProviderByChainId(configurations, networkId)) === null || _c === void 0 ? void 0 : _c.provider;
29
+ if (!this.chainRpcProviders)
30
+ return undefined;
31
+ const providers = this.chainRpcProviders.getProviders(configurations);
32
+ return (_b = this.chainRpcProviders.getEvmProviderByChainId(providers, networkId)) === null || _b === void 0 ? void 0 : _b.provider;
29
33
  });
30
34
  }
31
35
  constructor(props) {
@@ -48,7 +52,7 @@ class EthWalletConnector extends walletConnectorCore.WalletConnectorBase {
48
52
  if (!this.supportsNetworkSwitching || !provider) {
49
53
  return Promise.resolve(undefined);
50
54
  }
51
- return utils.retryableFn(provider.getChainId, {
55
+ const chainId = yield utils.retryableFn(provider.getChainId, {
52
56
  fallbackValue: utils.FALLBACK_UNDEFINED,
53
57
  /**
54
58
  * The timeout is set to 1 second because the getChainId method
@@ -58,32 +62,43 @@ class EthWalletConnector extends walletConnectorCore.WalletConnectorBase {
58
62
  */
59
63
  timeoutMs: 1000,
60
64
  });
65
+ this.setActiveChain(viemUtils.chainsMap[chainId]);
66
+ return chainId;
61
67
  });
62
68
  }
63
- getNameService() {
69
+ getNameService(address) {
64
70
  return _tslib.__awaiter(this, void 0, void 0, function* () {
65
- const [[address], rpcProvider] = yield Promise.all([
66
- this.getConnectedAccounts(),
67
- this.getPublicClient(),
68
- ]);
69
- if (!address || !rpcProvider) {
71
+ const rpcProvider = yield this.getPublicClient();
72
+ if (!rpcProvider) {
70
73
  return;
71
74
  }
72
75
  return getNameservice.getNameservice({ address, rpcProvider });
73
76
  });
74
77
  }
78
+ isTestnet() {
79
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
80
+ var _a, _b, _c;
81
+ return (_c = (_b = (_a = (yield this.getPublicClient())) === null || _a === void 0 ? void 0 : _a.chain) === null || _b === void 0 ? void 0 : _b.testnet) !== null && _c !== void 0 ? _c : false;
82
+ });
83
+ }
84
+ parseAddress(address) {
85
+ try {
86
+ // Ensures the address follows the EIP55 format.
87
+ // see: https://eips.ethereum.org/EIPS/eip-55
88
+ return viem.getAddress(address);
89
+ }
90
+ catch (err) {
91
+ walletConnectorCore.logger.debug(`Failed to parse EVM address into EIP55 format: error getting checksum, returning default ${address}`, err);
92
+ }
93
+ return address;
94
+ }
75
95
  getSigner() {
76
96
  return _tslib.__awaiter(this, void 0, void 0, function* () {
77
97
  return this.getWalletClient();
78
98
  });
79
99
  }
80
- getBalance() {
100
+ getBalance(address) {
81
101
  return _tslib.__awaiter(this, void 0, void 0, function* () {
82
- // This is equivalent to getSigner().getAddress() but does not crash
83
- // if the signer is not available
84
- const [address] = yield this.getConnectedAccounts();
85
- if (!address)
86
- return;
87
102
  const client = yield this.getPublicClient();
88
103
  const result = yield (client === null || client === void 0 ? void 0 : client.getBalance({
89
104
  address: address,
@@ -123,7 +138,7 @@ class EthWalletConnector extends walletConnectorCore.WalletConnectorBase {
123
138
  return [];
124
139
  const addresses = yield utils.retryableFn(provider.getAddresses, {
125
140
  fallbackValue: [],
126
- timeoutMs: 300,
141
+ timeoutMs: 500,
127
142
  });
128
143
  if (addresses.length) {
129
144
  this.setActiveAccount(addresses[0]);
@@ -143,11 +158,15 @@ class EthWalletConnector extends walletConnectorCore.WalletConnectorBase {
143
158
  if (!this.supportsNetworkSwitching()) {
144
159
  throw new utils.DynamicError('Network switching is not supported');
145
160
  }
146
- yield provider.switchChain(utils.getOrMapViemChain(network));
161
+ const viemChain = viemUtils.getOrMapViemChain(network);
162
+ yield provider.switchChain(viemChain);
147
163
  if (this.key === 'magiceden') {
148
164
  const newChainId = yield provider.getChainId();
149
165
  this.emit('chainChange', { chain: newChainId.toString() });
150
166
  }
167
+ else {
168
+ this.setActiveChain(viemChain);
169
+ }
151
170
  }
152
171
  catch (error) {
153
172
  // we need to check for unrecognized chain error first because it also contains 'rejected' in message
@@ -173,7 +192,7 @@ class EthWalletConnector extends walletConnectorCore.WalletConnectorBase {
173
192
  return _tslib.__awaiter(this, arguments, void 0, function* ({ network, provider, }) {
174
193
  var _b;
175
194
  try {
176
- return yield provider.addChain({ chain: utils.getOrMapViemChain(network) });
195
+ return yield provider.addChain({ chain: viemUtils.getOrMapViemChain(network) });
177
196
  }
178
197
  catch (error) {
179
198
  if (((_b = error.message) === null || _b === void 0 ? void 0 : _b.includes('rejected')) ||
@@ -192,6 +211,22 @@ class EthWalletConnector extends walletConnectorCore.WalletConnectorBase {
192
211
  getActiveAccount() {
193
212
  return this.activeAccount;
194
213
  }
214
+ setActiveChain(chain) {
215
+ this.activeChain = chain;
216
+ }
217
+ getActiveChain() {
218
+ return this.activeChain;
219
+ }
220
+ createUiTransaction(from) {
221
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
222
+ const walletClient = yield this.getWalletClient();
223
+ const publicClient = yield this.getPublicClient();
224
+ if (!publicClient || !walletClient) {
225
+ throw new utils.DynamicError('No public client available');
226
+ }
227
+ return viemUtils.createViemUiTransaction({ from, publicClient, walletClient });
228
+ });
229
+ }
195
230
  }
196
231
 
197
232
  exports.EthWalletConnector = EthWalletConnector;
@@ -1,8 +1,8 @@
1
- import { WalletClient, PublicClient, Account, Hex } from 'viem';
2
- import { NameServiceData, WalletConnectorBase } from '@dynamic-labs/wallet-connector-core';
3
- import { EvmNetwork, GenericNetwork } from '@dynamic-labs/types';
1
+ import { Account, Hex, PublicClient, Transport, Chain as ViemChain, WalletClient } from 'viem';
4
2
  import { IChainRpcProviders } from '@dynamic-labs/rpc-provider-ethereum';
3
+ import { EvmNetwork, GenericNetwork, IUITransaction } from '@dynamic-labs/types';
5
4
  import { WalletBookSchema } from '@dynamic-labs/wallet-book';
5
+ import { ISendBalanceWalletConnector, NameServiceData, WalletConnectorBase } from '@dynamic-labs/wallet-connector-core';
6
6
  export type SwitchNetworkOps = {
7
7
  networkChainId?: number;
8
8
  networkName?: string;
@@ -15,16 +15,19 @@ export type EthWalletConnectorOpts = {
15
15
  evmNetworks: GenericNetwork[];
16
16
  walletBook: WalletBookSchema;
17
17
  };
18
- export declare abstract class EthWalletConnector extends WalletConnectorBase {
18
+ export declare abstract class EthWalletConnector extends WalletConnectorBase implements ISendBalanceWalletConnector {
19
19
  evmNetworks: EvmNetwork[];
20
20
  private activeAccount;
21
- abstract getWalletClient(chainId?: string): WalletClient | undefined;
22
- getPublicClient(): Promise<PublicClient | undefined>;
21
+ private activeChain;
22
+ abstract getWalletClient(chainId?: string): WalletClient<Transport, ViemChain, Account> | undefined;
23
+ getPublicClient(): Promise<void | PublicClient<Transport, ViemChain> | undefined>;
23
24
  constructor(props: EthWalletConnectorOpts);
24
25
  getNetwork(): Promise<number | undefined>;
25
- getNameService(): Promise<NameServiceData | undefined>;
26
+ getNameService(address: string): Promise<NameServiceData | undefined>;
27
+ isTestnet(): Promise<boolean>;
28
+ parseAddress(address: string): string;
26
29
  getSigner(): Promise<{
27
- account: Account | undefined;
30
+ account: Account;
28
31
  batch?: {
29
32
  multicall?: boolean | {
30
33
  batchSize?: number | undefined;
@@ -35,7 +38,7 @@ export declare abstract class EthWalletConnector extends WalletConnectorBase {
35
38
  ccipRead?: false | {
36
39
  request?: ((parameters: import("viem").CcipRequestParameters) => Promise<`0x${string}`>) | undefined;
37
40
  } | undefined;
38
- chain: import("viem").Chain | undefined;
41
+ chain: ViemChain;
39
42
  key: string;
40
43
  name: string;
41
44
  pollingInterval: number;
@@ -44,15 +47,15 @@ export declare abstract class EthWalletConnector extends WalletConnectorBase {
44
47
  type: string;
45
48
  uid: string;
46
49
  addChain: (args: import("viem").AddChainParameters) => Promise<void>;
47
- deployContract: <const abi extends import("viem").Abi | readonly unknown[], chainOverride extends import("viem").Chain | undefined>(args: import("viem").DeployContractParameters<abi, import("viem").Chain | undefined, Account | undefined, chainOverride>) => Promise<`0x${string}`>;
50
+ deployContract: <const abi extends import("viem").Abi | readonly unknown[], chainOverride extends ViemChain | undefined>(args: import("viem").DeployContractParameters<abi, ViemChain, Account, chainOverride>) => Promise<`0x${string}`>;
48
51
  getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
49
52
  getChainId: () => Promise<number>;
50
53
  getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
51
- prepareTransactionRequest: <const TRequest extends import("viem").PrepareTransactionRequestRequest<import("viem").Chain | undefined, TChainOverride>, TChainOverride extends import("viem").Chain | undefined = undefined, TAccountOverride extends `0x${string}` | Account | undefined = undefined>(args: import("viem").PrepareTransactionRequestParameters<import("viem").Chain | undefined, Account | undefined, TChainOverride, TAccountOverride, TRequest>) => Promise<import("viem").UnionRequiredBy<Extract<import("viem").UnionOmit<import("viem").ExtractChainFormatterParameters<import("viem").DeriveChain<import("viem").Chain, TChainOverride>, "transactionRequest", import("viem").TransactionRequest>, "from"> & (import("viem").DeriveChain<import("viem").Chain, TChainOverride> extends infer T_12 ? T_12 extends import("viem").DeriveChain<import("viem").Chain, TChainOverride> ? T_12 extends import("viem").Chain ? {
54
+ prepareTransactionRequest: <const TRequest extends import("viem").PrepareTransactionRequestRequest<ViemChain, TChainOverride>, TChainOverride extends ViemChain | undefined = undefined, TAccountOverride extends `0x${string}` | Account | undefined = undefined>(args: import("viem").PrepareTransactionRequestParameters<ViemChain, Account, TChainOverride, TAccountOverride, TRequest>) => Promise<import("viem").UnionRequiredBy<Extract<import("viem").UnionOmit<import("viem").ExtractChainFormatterParameters<import("viem").DeriveChain<ViemChain, TChainOverride>, "transactionRequest", import("viem").TransactionRequest>, "from"> & (import("viem").DeriveChain<ViemChain, TChainOverride> extends infer T_12 ? T_12 extends import("viem").DeriveChain<ViemChain, TChainOverride> ? T_12 extends ViemChain ? {
52
55
  chain: T_12;
53
56
  } : {
54
57
  chain?: undefined;
55
- } : never : never) & (import("viem").DeriveAccount<Account | undefined, TAccountOverride> extends infer T_13 ? T_13 extends import("viem").DeriveAccount<Account | undefined, TAccountOverride> ? T_13 extends Account ? {
58
+ } : never : never) & (import("viem").DeriveAccount<Account, TAccountOverride> extends infer T_13 ? T_13 extends import("viem").DeriveAccount<Account, TAccountOverride> ? T_13 extends Account ? {
56
59
  account: T_13;
57
60
  from: `0x${string}`;
58
61
  } : {
@@ -1436,11 +1439,11 @@ export declare abstract class EthWalletConnector extends WalletConnectorBase {
1436
1439
  sidecars: false | readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
1437
1440
  }, import("viem").TransactionSerializableEIP4844>)) | import("viem").Opaque<import("viem").TransactionSerializableEIP4844, TRequest> | import("viem").Opaque<import("viem").TransactionRequestEIP4844, TRequest> ? "eip4844" : never) | (TRequest["type"] extends string ? TRequest["type"] : never)>) ? T_21 extends "eip4844" ? import("viem").TransactionRequestEIP4844 : never : never : never)>> & {
1438
1441
  chainId?: number | undefined;
1439
- }, (TRequest["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? TRequest["parameters"][number] : "chainId" | "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees") extends infer T_22 ? T_22 extends (TRequest["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? TRequest["parameters"][number] : "chainId" | "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees") ? T_22 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_22 : never : never> & (unknown extends TRequest["kzg"] ? {} : Pick<TRequest, "kzg">) extends infer T ? { [K in keyof T]: (import("viem").UnionRequiredBy<Extract<import("viem").UnionOmit<import("viem").ExtractChainFormatterParameters<import("viem").DeriveChain<import("viem").Chain, TChainOverride>, "transactionRequest", import("viem").TransactionRequest>, "from"> & (import("viem").DeriveChain<import("viem").Chain, TChainOverride> extends infer T_1 ? T_1 extends import("viem").DeriveChain<import("viem").Chain, TChainOverride> ? T_1 extends import("viem").Chain ? {
1442
+ }, (TRequest["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? TRequest["parameters"][number] : "chainId" | "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees") extends infer T_22 ? T_22 extends (TRequest["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? TRequest["parameters"][number] : "chainId" | "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees") ? T_22 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_22 : never : never> & (unknown extends TRequest["kzg"] ? {} : Pick<TRequest, "kzg">) extends infer T ? { [K in keyof T]: (import("viem").UnionRequiredBy<Extract<import("viem").UnionOmit<import("viem").ExtractChainFormatterParameters<import("viem").DeriveChain<ViemChain, TChainOverride>, "transactionRequest", import("viem").TransactionRequest>, "from"> & (import("viem").DeriveChain<ViemChain, TChainOverride> extends infer T_1 ? T_1 extends import("viem").DeriveChain<ViemChain, TChainOverride> ? T_1 extends ViemChain ? {
1440
1443
  chain: T_1;
1441
1444
  } : {
1442
1445
  chain?: undefined;
1443
- } : never : never) & (import("viem").DeriveAccount<Account | undefined, TAccountOverride> extends infer T_2 ? T_2 extends import("viem").DeriveAccount<Account | undefined, TAccountOverride> ? T_2 extends Account ? {
1446
+ } : never : never) & (import("viem").DeriveAccount<Account, TAccountOverride> extends infer T_2 ? T_2 extends import("viem").DeriveAccount<Account, TAccountOverride> ? T_2 extends Account ? {
1444
1447
  account: T_2;
1445
1448
  from: `0x${string}`;
1446
1449
  } : {
@@ -2831,9 +2834,9 @@ export declare abstract class EthWalletConnector extends WalletConnectorBase {
2831
2834
  eth_accounts: Record<string, any>;
2832
2835
  }) => Promise<import("viem").RequestPermissionsReturnType>;
2833
2836
  sendRawTransaction: (args: import("viem").SendRawTransactionParameters) => Promise<`0x${string}`>;
2834
- sendTransaction: <const TRequest_1 extends import("viem").SendTransactionRequest<import("viem").Chain | undefined, TChainOverride_1>, TChainOverride_1 extends import("viem").Chain | undefined = undefined>(args: import("viem").SendTransactionParameters<import("viem").Chain | undefined, Account | undefined, TChainOverride_1, TRequest_1>) => Promise<`0x${string}`>;
2835
- signMessage: (args: import("viem").SignMessageParameters<Account | undefined>) => Promise<`0x${string}`>;
2836
- signTransaction: <TChainOverride_2 extends import("viem").Chain | undefined>(args: import("viem").SignTransactionParameters<import("viem").Chain | undefined, Account | undefined, TChainOverride_2>) => Promise<`0x02${string}` | `0x01${string}` | `0x03${string}` | import("viem").TransactionSerializedLegacy>;
2837
+ sendTransaction: <const TRequest_1 extends import("viem").SendTransactionRequest<ViemChain, TChainOverride_1>, TChainOverride_1 extends ViemChain | undefined = undefined>(args: import("viem").SendTransactionParameters<ViemChain, Account, TChainOverride_1, TRequest_1>) => Promise<`0x${string}`>;
2838
+ signMessage: (args: import("viem").SignMessageParameters<Account>) => Promise<`0x${string}`>;
2839
+ signTransaction: <TChainOverride_2 extends ViemChain | undefined>(args: import("viem").SignTransactionParameters<ViemChain, Account, TChainOverride_2>) => Promise<`0x02${string}` | `0x01${string}` | `0x03${string}` | import("viem").TransactionSerializedLegacy>;
2837
2840
  signTypedData: <const TTypedData extends {
2838
2841
  [x: string]: readonly import("viem").TypedDataParameter[];
2839
2842
  [x: `string[${string}]`]: undefined;
@@ -3041,10 +3044,10 @@ export declare abstract class EthWalletConnector extends WalletConnectorBase {
3041
3044
  uint256?: undefined;
3042
3045
  } | {
3043
3046
  [key: string]: unknown;
3044
- }, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, Account | undefined>) => Promise<`0x${string}`>;
3047
+ }, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, Account>) => Promise<`0x${string}`>;
3045
3048
  switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
3046
3049
  watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
3047
- writeContract: <const abi_1 extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi_1, "nonpayable" | "payable">, args extends import("viem").ContractFunctionArgs<abi_1, "nonpayable" | "payable", functionName>, TChainOverride_3 extends import("viem").Chain | undefined = undefined>(args: import("viem").WriteContractParameters<abi_1, functionName, args, import("viem").Chain | undefined, Account | undefined, TChainOverride_3>) => Promise<`0x${string}`>;
3050
+ writeContract: <const abi_1 extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi_1, "nonpayable" | "payable">, args extends import("viem").ContractFunctionArgs<abi_1, "nonpayable" | "payable", functionName>, TChainOverride_3 extends ViemChain | undefined = undefined>(args: import("viem").WriteContractParameters<abi_1, functionName, args, ViemChain, Account, TChainOverride_3>) => Promise<`0x${string}`>;
3048
3051
  extend: <const client extends {
3049
3052
  [x: string]: unknown;
3050
3053
  account?: undefined;
@@ -3059,9 +3062,9 @@ export declare abstract class EthWalletConnector extends WalletConnectorBase {
3059
3062
  transport?: undefined;
3060
3063
  type?: undefined;
3061
3064
  uid?: undefined;
3062
- } & import("viem").ExactPartial<Pick<import("viem").PublicActions<import("viem").Transport, import("viem").Chain | undefined, Account | undefined>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions<import("viem").Chain | undefined, Account | undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<import("viem").Transport, import("viem").Chain | undefined, Account | undefined, import("viem").WalletRpcSchema, import("viem").WalletActions<import("viem").Chain | undefined, Account | undefined>>) => client) => import("viem").Client<import("viem").Transport, import("viem").Chain | undefined, Account | undefined, import("viem").WalletRpcSchema, { [K_1 in keyof client]: client[K_1]; } & import("viem").WalletActions<import("viem").Chain | undefined, Account | undefined>>;
3065
+ } & import("viem").ExactPartial<Pick<import("viem").PublicActions<Transport, ViemChain, Account>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions<ViemChain, Account>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<Transport, ViemChain, Account, import("viem").WalletRpcSchema, import("viem").WalletActions<ViemChain, Account>>) => client) => import("viem").Client<Transport, ViemChain, Account, import("viem").WalletRpcSchema, { [K_1 in keyof client]: client[K_1]; } & import("viem").WalletActions<ViemChain, Account>>;
3063
3066
  } | undefined>;
3064
- getBalance(): Promise<string | undefined>;
3067
+ getBalance(address: string): Promise<string | undefined>;
3065
3068
  supportsNetworkSwitching(): boolean;
3066
3069
  switchNetwork({ networkName, networkChainId, }: SwitchNetworkOps): Promise<void>;
3067
3070
  getConnectedAccounts(): Promise<string[]>;
@@ -3076,5 +3079,8 @@ export declare abstract class EthWalletConnector extends WalletConnectorBase {
3076
3079
  protected evmNetworkRpcMap: () => EvmRpcMap;
3077
3080
  setActiveAccount(account: Hex | undefined): void;
3078
3081
  getActiveAccount(): Account | undefined;
3082
+ setActiveChain(chain: ViemChain | undefined): void;
3083
+ getActiveChain(): ViemChain | undefined;
3084
+ createUiTransaction(from: string): Promise<IUITransaction>;
3079
3085
  }
3080
3086
  export {};