@dynamic-labs/multi-wallet 0.16.12-viem.1 → 0.16.13

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.
Files changed (58) hide show
  1. package/CHANGELOG.md +13 -3
  2. package/package.json +4 -4
  3. package/src/errors.cjs +2 -1
  4. package/src/errors.d.ts +6 -2
  5. package/src/errors.js +2 -1
  6. package/src/multi-wallet.cjs +4 -3
  7. package/src/multi-wallet.js +4 -3
  8. package/src/rpcProviders.cjs +2 -6
  9. package/src/rpcProviders.js +2 -6
  10. package/src/types.d.ts +8 -16
  11. package/src/utils/assignConfirmationScreenToProvider/assignConfirmationScreenToProvider.cjs +54 -0
  12. package/src/utils/assignConfirmationScreenToProvider/assignConfirmationScreenToProvider.d.ts +3 -0
  13. package/src/utils/assignConfirmationScreenToProvider/assignConfirmationScreenToProvider.js +50 -0
  14. package/src/utils/assignConfirmationScreenToProvider/index.d.ts +1 -0
  15. package/src/utils/isFunction/isFunction.cjs +8 -0
  16. package/src/utils/isFunction/isFunction.js +4 -0
  17. package/src/utils/message.cjs +2 -2
  18. package/src/utils/message.js +1 -1
  19. package/src/wallets/algorand/myalgo.d.ts +2 -1
  20. package/src/wallets/clients/coinbase/coinbase.cjs +2 -2
  21. package/src/wallets/clients/coinbase/coinbase.js +2 -2
  22. package/src/wallets/clients/walletConnect/walletConnect.cjs +5 -9
  23. package/src/wallets/clients/walletConnect/walletConnect.d.ts +2 -2
  24. package/src/wallets/clients/walletConnect/walletConnect.js +5 -9
  25. package/src/wallets/ethereum/BloctoEvm.cjs +140 -0
  26. package/src/wallets/ethereum/BloctoEvm.d.ts +2 -4
  27. package/src/wallets/ethereum/BloctoEvm.js +134 -0
  28. package/src/wallets/ethereum/MagicConnector/MagicClientNetworkHandler/MagicClientNetworkHandler.cjs +37 -5
  29. package/src/wallets/ethereum/MagicConnector/MagicClientNetworkHandler/MagicClientNetworkHandler.d.ts +3 -0
  30. package/src/wallets/ethereum/MagicConnector/MagicClientNetworkHandler/MagicClientNetworkHandler.js +37 -5
  31. package/src/wallets/ethereum/MagicConnector/MagicWalletConnector/MagicWalletConnector.cjs +14 -35
  32. package/src/wallets/ethereum/MagicConnector/MagicWalletConnector/MagicWalletConnector.d.ts +4 -4
  33. package/src/wallets/ethereum/MagicConnector/MagicWalletConnector/MagicWalletConnector.js +14 -35
  34. package/src/wallets/ethereum/coinbase.cjs +7 -18
  35. package/src/wallets/ethereum/coinbase.d.ts +2 -750
  36. package/src/wallets/ethereum/coinbase.js +7 -18
  37. package/src/wallets/ethereum/ethProvider.cjs +29 -13
  38. package/src/wallets/ethereum/ethProvider.d.ts +7 -7
  39. package/src/wallets/ethereum/ethProvider.js +29 -13
  40. package/src/wallets/ethereum/ethProviderHelper.cjs +34 -52
  41. package/src/wallets/ethereum/ethProviderHelper.d.ts +20 -20
  42. package/src/wallets/ethereum/ethProviderHelper.js +34 -52
  43. package/src/wallets/ethereum/fortmatic.cjs +7 -15
  44. package/src/wallets/ethereum/fortmatic.d.ts +3 -5
  45. package/src/wallets/ethereum/fortmatic.js +7 -15
  46. package/src/wallets/ethereum/meta-mask.cjs +2 -13
  47. package/src/wallets/ethereum/meta-mask.d.ts +3 -752
  48. package/src/wallets/ethereum/meta-mask.js +2 -13
  49. package/src/wallets/walletConnect/walletConnect.cjs +6 -8
  50. package/src/wallets/walletConnect/walletConnect.d.ts +4 -751
  51. package/src/wallets/walletConnect/walletConnect.js +6 -8
  52. package/src/wallets/walletConnect/walletConnectV2.cjs +7 -11
  53. package/src/wallets/walletConnect/walletConnectV2.d.ts +4 -751
  54. package/src/wallets/walletConnect/walletConnectV2.js +7 -11
  55. package/src/wallets/window.d.ts +1 -3
  56. package/src/getOrMapViemChain.cjs +0 -77
  57. package/src/getOrMapViemChain.d.ts +0 -11
  58. package/src/getOrMapViemChain.js +0 -51
@@ -1,6 +1,6 @@
1
1
  import Provider, { UniversalProviderOpts } from '@walletconnect/universal-provider';
2
+ import { ethers } from 'ethers';
2
3
  import type { SessionTypes } from '@walletconnect/types';
3
- import { WalletClient } from 'viem';
4
4
  import { WalletConnector, Chain, FetchPublicAddressOpts, WalletEventListeners } from '@dynamic-labs/wallet-connector-core';
5
5
  import { EvmNetwork } from '../ethereum/evm-network';
6
6
  import { EthProvider } from '../ethereum/ethProvider';
@@ -24,754 +24,7 @@ declare class WalletConnectV2 extends EthProvider implements WalletConnector {
24
24
  setupEventListeners(listeners: WalletEventListeners): void;
25
25
  teardownEventListeners(): void;
26
26
  getDeepLink(): string | undefined;
27
- getWeb3Provider(): {
28
- chain: undefined;
29
- key: string;
30
- name: string;
31
- pollingInterval: number;
32
- request: {
33
- (args: {
34
- method: "web3_clientVersion";
35
- params?: undefined;
36
- }): Promise<string>;
37
- (args: {
38
- method: "web3_sha3";
39
- params: [data: `0x${string}`];
40
- }): Promise<string>;
41
- (args: {
42
- method: "net_listening";
43
- params?: undefined;
44
- }): Promise<boolean>;
45
- (args: {
46
- method: "net_peerCount";
47
- params?: undefined;
48
- }): Promise<`0x${string}`>;
49
- (args: {
50
- method: "net_version";
51
- params?: undefined;
52
- }): Promise<`0x${string}`>;
53
- (args: {
54
- method: "eth_blockNumber";
55
- params?: undefined;
56
- }): Promise<`0x${string}`>;
57
- (args: {
58
- method: "eth_call";
59
- params: [request: Partial<import("viem").RpcTransactionRequest>, block?: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier | undefined];
60
- }): Promise<`0x${string}`>;
61
- (args: {
62
- method: "eth_chainId";
63
- params?: undefined;
64
- }): Promise<`0x${string}`>;
65
- (args: {
66
- method: "eth_coinbase";
67
- params?: undefined;
68
- }): Promise<`0x${string}`>;
69
- (args: {
70
- method: "eth_estimateGas";
71
- params: [parameters: import("viem").RpcTransactionRequest, block?: `0x${string}` | import("viem").BlockTag | undefined];
72
- }): Promise<`0x${string}`>;
73
- (args: {
74
- method: "eth_feeHistory";
75
- params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
76
- }): Promise<import("viem").RpcFeeHistory>;
77
- (args: {
78
- method: "eth_gasPrice";
79
- params?: undefined;
80
- }): Promise<`0x${string}`>;
81
- (args: {
82
- method: "eth_getBalance";
83
- params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
84
- }): Promise<`0x${string}`>;
85
- (args: {
86
- method: "eth_getBlockByHash";
87
- params: [hash: `0x${string}`, includeTransactionObjects: boolean];
88
- }): Promise<import("viem").RpcBlock | null>;
89
- (args: {
90
- method: "eth_getBlockByNumber";
91
- params: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
92
- }): Promise<import("viem").RpcBlock | null>;
93
- (args: {
94
- method: "eth_getBlockTransactionCountByHash";
95
- params: [hash: `0x${string}`];
96
- }): Promise<`0x${string}`>;
97
- (args: {
98
- method: "eth_getBlockTransactionCountByNumber";
99
- params: [block: `0x${string}` | import("viem").BlockTag];
100
- }): Promise<`0x${string}`>;
101
- (args: {
102
- method: "eth_getCode";
103
- params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
104
- }): Promise<`0x${string}`>;
105
- (args: {
106
- method: "eth_getFilterChanges";
107
- params: [filterId: `0x${string}`];
108
- }): Promise<{
109
- address: `0x${string}`;
110
- blockHash: `0x${string}` | null;
111
- blockNumber: `0x${string}` | null;
112
- data: `0x${string}`;
113
- logIndex: `0x${string}` | null;
114
- transactionHash: `0x${string}` | null;
115
- transactionIndex: `0x${string}` | null;
116
- topics: [`0x${string}`, ...`0x${string}`[]] | [];
117
- removed: boolean;
118
- }[] | `0x${string}`[]>;
119
- (args: {
120
- method: "eth_getFilterLogs";
121
- params: [filterId: `0x${string}`];
122
- }): Promise<{
123
- address: `0x${string}`;
124
- blockHash: `0x${string}` | null;
125
- blockNumber: `0x${string}` | null;
126
- data: `0x${string}`;
127
- logIndex: `0x${string}` | null;
128
- transactionHash: `0x${string}` | null;
129
- transactionIndex: `0x${string}` | null;
130
- topics: [`0x${string}`, ...`0x${string}`[]] | [];
131
- removed: boolean;
132
- }[]>;
133
- (args: {
134
- method: "eth_getLogs";
135
- params: [parameters: {
136
- address?: `0x${string}` | `0x${string}`[] | undefined;
137
- topics?: import("viem/dist/types/types").LogTopic[] | undefined;
138
- } & ({
139
- fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
140
- toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
141
- blockHash?: undefined;
142
- } | {
143
- fromBlock?: undefined;
144
- toBlock?: undefined;
145
- blockHash?: `0x${string}` | undefined;
146
- })];
147
- }): Promise<{
148
- address: `0x${string}`;
149
- blockHash: `0x${string}` | null;
150
- blockNumber: `0x${string}` | null;
151
- data: `0x${string}`;
152
- logIndex: `0x${string}` | null;
153
- transactionHash: `0x${string}` | null;
154
- transactionIndex: `0x${string}` | null;
155
- topics: [`0x${string}`, ...`0x${string}`[]] | [];
156
- removed: boolean;
157
- }[]>;
158
- (args: {
159
- method: "eth_getStorageAt";
160
- params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
161
- }): Promise<`0x${string}`>;
162
- (args: {
163
- method: "eth_getTransactionByBlockHashAndIndex";
164
- params: [hash: `0x${string}`, index: `0x${string}`];
165
- }): Promise<import("viem").RpcTransaction | null>;
166
- (args: {
167
- method: "eth_getTransactionByBlockNumberAndIndex";
168
- params: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
169
- }): Promise<import("viem").RpcTransaction | null>;
170
- (args: {
171
- method: "eth_getTransactionByHash";
172
- params: [hash: `0x${string}`];
173
- }): Promise<import("viem").RpcTransaction | null>;
174
- (args: {
175
- method: "eth_getTransactionCount";
176
- params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
177
- }): Promise<`0x${string}`>;
178
- (args: {
179
- method: "eth_getTransactionReceipt";
180
- params: [hash: `0x${string}`];
181
- }): Promise<import("viem").RpcTransactionReceipt | null>;
182
- (args: {
183
- method: "eth_getUncleByBlockHashAndIndex";
184
- params: [hash: `0x${string}`, index: `0x${string}`];
185
- }): Promise<import("viem").RpcUncle | null>;
186
- (args: {
187
- method: "eth_getUncleByBlockNumberAndIndex";
188
- params: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
189
- }): Promise<import("viem").RpcUncle | null>;
190
- (args: {
191
- method: "eth_getUncleCountByBlockHash";
192
- params: [hash: `0x${string}`];
193
- }): Promise<`0x${string}`>;
194
- (args: {
195
- method: "eth_getUncleCountByBlockNumber";
196
- params: [block: `0x${string}` | import("viem").BlockTag];
197
- }): Promise<`0x${string}`>;
198
- (args: {
199
- method: "eth_newBlockFilter";
200
- params?: undefined;
201
- }): Promise<`0x${string}`>;
202
- (args: {
203
- method: "eth_newFilter";
204
- params: [filter: {
205
- fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
206
- toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
207
- address?: `0x${string}` | `0x${string}`[] | undefined;
208
- topics?: import("viem/dist/types/types").LogTopic[] | undefined;
209
- }];
210
- }): Promise<`0x${string}`>;
211
- (args: {
212
- method: "eth_newPendingTransactionFilter";
213
- params?: undefined;
214
- }): Promise<`0x${string}`>;
215
- (args: {
216
- method: "eth_protocolVersion";
217
- params?: undefined;
218
- }): Promise<string>;
219
- (args: {
220
- method: "eth_sendRawTransaction";
221
- params: [signedTransaction: `0x${string}`];
222
- }): Promise<`0x${string}`>;
223
- (args: {
224
- method: "eth_uninstallFilter";
225
- params: [filterId: `0x${string}`];
226
- }): Promise<boolean>;
227
- } & {
228
- (args: {
229
- method: "eth_sendTransaction";
230
- params: [request: import("viem").RpcTransactionRequest];
231
- }): Promise<`0x${string}`>;
232
- (args: {
233
- method: "eth_sign";
234
- params: [address: `0x${string}`, data: `0x${string}`];
235
- }): Promise<`0x${string}`>;
236
- (args: {
237
- method: "eth_signTransaction";
238
- params: [request: import("viem").RpcTransactionRequest];
239
- }): Promise<`0x${string}`>;
240
- (args: {
241
- method: "eth_signTypedData_v4";
242
- params: [address: `0x${string}`, message: string];
243
- }): Promise<`0x${string}`>;
244
- (args: {
245
- method: "eth_syncing";
246
- params?: undefined;
247
- }): Promise<false | import("viem/dist/types/types/eip1193").NetworkSync>;
248
- (args: {
249
- method: "personal_sign";
250
- params: [data: `0x${string}`, address: `0x${string}`];
251
- }): Promise<`0x${string}`>;
252
- } & {
253
- (args: {
254
- method: "eth_accounts";
255
- params?: undefined;
256
- }): Promise<`0x${string}`[]>;
257
- (args: {
258
- method: "eth_chainId";
259
- params?: undefined;
260
- }): Promise<`0x${string}`>;
261
- (args: {
262
- method: "eth_requestAccounts";
263
- params?: undefined;
264
- }): Promise<`0x${string}`[]>;
265
- (args: {
266
- method: "wallet_requestPermissions";
267
- params: [permissions: {
268
- eth_accounts: Record<string, any>;
269
- }];
270
- }): Promise<import("viem/dist/types/types/eip1193").WalletPermission[]>;
271
- (args: {
272
- method: "wallet_getPermissions";
273
- params?: undefined;
274
- }): Promise<import("viem/dist/types/types/eip1193").WalletPermission[]>;
275
- (args: {
276
- method: "wallet_addEthereumChain";
277
- params: [chain: import("viem/dist/types/types/eip1193").Chain];
278
- }): Promise<null>;
279
- (args: {
280
- method: "wallet_switchEthereumChain";
281
- params: [chain: {
282
- chainId: string;
283
- }];
284
- }): Promise<null>;
285
- (args: {
286
- method: "wallet_watchAsset";
287
- params: import("viem/dist/types/types/eip1193").WatchAssetParams;
288
- }): Promise<boolean>;
289
- };
290
- transport: import("viem").TransportConfig<"custom", {
291
- (args: {
292
- method: "web3_clientVersion";
293
- params?: undefined;
294
- }): Promise<string>;
295
- (args: {
296
- method: "web3_sha3";
297
- params: [data: `0x${string}`];
298
- }): Promise<string>;
299
- (args: {
300
- method: "net_listening";
301
- params?: undefined;
302
- }): Promise<boolean>;
303
- (args: {
304
- method: "net_peerCount";
305
- params?: undefined;
306
- }): Promise<`0x${string}`>;
307
- (args: {
308
- method: "net_version";
309
- params?: undefined;
310
- }): Promise<`0x${string}`>;
311
- (args: {
312
- method: "eth_blockNumber";
313
- params?: undefined;
314
- }): Promise<`0x${string}`>;
315
- (args: {
316
- method: "eth_call";
317
- params: [request: Partial<import("viem").RpcTransactionRequest>, block?: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier | undefined];
318
- }): Promise<`0x${string}`>;
319
- (args: {
320
- method: "eth_chainId";
321
- params?: undefined;
322
- }): Promise<`0x${string}`>;
323
- (args: {
324
- method: "eth_coinbase";
325
- params?: undefined;
326
- }): Promise<`0x${string}`>;
327
- (args: {
328
- method: "eth_estimateGas";
329
- params: [parameters: import("viem").RpcTransactionRequest, block?: `0x${string}` | import("viem").BlockTag | undefined];
330
- }): Promise<`0x${string}`>;
331
- (args: {
332
- method: "eth_feeHistory";
333
- params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
334
- }): Promise<import("viem").RpcFeeHistory>;
335
- (args: {
336
- method: "eth_gasPrice";
337
- params?: undefined;
338
- }): Promise<`0x${string}`>;
339
- (args: {
340
- method: "eth_getBalance";
341
- params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
342
- }): Promise<`0x${string}`>;
343
- (args: {
344
- method: "eth_getBlockByHash";
345
- params: [hash: `0x${string}`, includeTransactionObjects: boolean];
346
- }): Promise<import("viem").RpcBlock | null>;
347
- (args: {
348
- method: "eth_getBlockByNumber";
349
- params: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
350
- }): Promise<import("viem").RpcBlock | null>;
351
- (args: {
352
- method: "eth_getBlockTransactionCountByHash";
353
- params: [hash: `0x${string}`];
354
- }): Promise<`0x${string}`>;
355
- (args: {
356
- method: "eth_getBlockTransactionCountByNumber";
357
- params: [block: `0x${string}` | import("viem").BlockTag];
358
- }): Promise<`0x${string}`>;
359
- (args: {
360
- method: "eth_getCode";
361
- params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
362
- }): Promise<`0x${string}`>;
363
- (args: {
364
- method: "eth_getFilterChanges";
365
- params: [filterId: `0x${string}`];
366
- }): Promise<{
367
- address: `0x${string}`;
368
- blockHash: `0x${string}` | null;
369
- blockNumber: `0x${string}` | null;
370
- data: `0x${string}`;
371
- logIndex: `0x${string}` | null;
372
- transactionHash: `0x${string}` | null;
373
- transactionIndex: `0x${string}` | null;
374
- topics: [`0x${string}`, ...`0x${string}`[]] | [];
375
- removed: boolean;
376
- }[] | `0x${string}`[]>;
377
- (args: {
378
- method: "eth_getFilterLogs";
379
- params: [filterId: `0x${string}`];
380
- }): Promise<{
381
- address: `0x${string}`;
382
- blockHash: `0x${string}` | null;
383
- blockNumber: `0x${string}` | null;
384
- data: `0x${string}`;
385
- logIndex: `0x${string}` | null;
386
- transactionHash: `0x${string}` | null;
387
- transactionIndex: `0x${string}` | null;
388
- topics: [`0x${string}`, ...`0x${string}`[]] | [];
389
- removed: boolean;
390
- }[]>;
391
- (args: {
392
- method: "eth_getLogs";
393
- params: [parameters: {
394
- address?: `0x${string}` | `0x${string}`[] | undefined;
395
- topics?: import("viem/dist/types/types").LogTopic[] | undefined;
396
- } & ({
397
- fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
398
- toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
399
- blockHash?: undefined;
400
- } | {
401
- fromBlock?: undefined;
402
- toBlock?: undefined;
403
- blockHash?: `0x${string}` | undefined;
404
- })];
405
- }): Promise<{
406
- address: `0x${string}`;
407
- blockHash: `0x${string}` | null;
408
- blockNumber: `0x${string}` | null;
409
- data: `0x${string}`;
410
- logIndex: `0x${string}` | null;
411
- transactionHash: `0x${string}` | null;
412
- transactionIndex: `0x${string}` | null;
413
- topics: [`0x${string}`, ...`0x${string}`[]] | [];
414
- removed: boolean;
415
- }[]>;
416
- (args: {
417
- method: "eth_getStorageAt";
418
- params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
419
- }): Promise<`0x${string}`>;
420
- (args: {
421
- method: "eth_getTransactionByBlockHashAndIndex";
422
- params: [hash: `0x${string}`, index: `0x${string}`];
423
- }): Promise<import("viem").RpcTransaction | null>;
424
- (args: {
425
- method: "eth_getTransactionByBlockNumberAndIndex";
426
- params: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
427
- }): Promise<import("viem").RpcTransaction | null>;
428
- (args: {
429
- method: "eth_getTransactionByHash";
430
- params: [hash: `0x${string}`];
431
- }): Promise<import("viem").RpcTransaction | null>;
432
- (args: {
433
- method: "eth_getTransactionCount";
434
- params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
435
- }): Promise<`0x${string}`>;
436
- (args: {
437
- method: "eth_getTransactionReceipt";
438
- params: [hash: `0x${string}`];
439
- }): Promise<import("viem").RpcTransactionReceipt | null>;
440
- (args: {
441
- method: "eth_getUncleByBlockHashAndIndex";
442
- params: [hash: `0x${string}`, index: `0x${string}`];
443
- }): Promise<import("viem").RpcUncle | null>;
444
- (args: {
445
- method: "eth_getUncleByBlockNumberAndIndex";
446
- params: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
447
- }): Promise<import("viem").RpcUncle | null>;
448
- (args: {
449
- method: "eth_getUncleCountByBlockHash";
450
- params: [hash: `0x${string}`];
451
- }): Promise<`0x${string}`>;
452
- (args: {
453
- method: "eth_getUncleCountByBlockNumber";
454
- params: [block: `0x${string}` | import("viem").BlockTag];
455
- }): Promise<`0x${string}`>;
456
- (args: {
457
- method: "eth_newBlockFilter";
458
- params?: undefined;
459
- }): Promise<`0x${string}`>;
460
- (args: {
461
- method: "eth_newFilter";
462
- params: [filter: {
463
- fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
464
- toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
465
- address?: `0x${string}` | `0x${string}`[] | undefined;
466
- topics?: import("viem/dist/types/types").LogTopic[] | undefined;
467
- }];
468
- }): Promise<`0x${string}`>;
469
- (args: {
470
- method: "eth_newPendingTransactionFilter";
471
- params?: undefined;
472
- }): Promise<`0x${string}`>;
473
- (args: {
474
- method: "eth_protocolVersion";
475
- params?: undefined;
476
- }): Promise<string>;
477
- (args: {
478
- method: "eth_sendRawTransaction";
479
- params: [signedTransaction: `0x${string}`];
480
- }): Promise<`0x${string}`>;
481
- (args: {
482
- method: "eth_uninstallFilter";
483
- params: [filterId: `0x${string}`];
484
- }): Promise<boolean>;
485
- } & {
486
- (args: {
487
- method: "eth_sendTransaction";
488
- params: [request: import("viem").RpcTransactionRequest];
489
- }): Promise<`0x${string}`>;
490
- (args: {
491
- method: "eth_sign";
492
- params: [address: `0x${string}`, data: `0x${string}`];
493
- }): Promise<`0x${string}`>;
494
- (args: {
495
- method: "eth_signTransaction";
496
- params: [request: import("viem").RpcTransactionRequest];
497
- }): Promise<`0x${string}`>;
498
- (args: {
499
- method: "eth_signTypedData_v4";
500
- params: [address: `0x${string}`, message: string];
501
- }): Promise<`0x${string}`>;
502
- (args: {
503
- method: "eth_syncing";
504
- params?: undefined;
505
- }): Promise<false | import("viem/dist/types/types/eip1193").NetworkSync>;
506
- (args: {
507
- method: "personal_sign";
508
- params: [data: `0x${string}`, address: `0x${string}`];
509
- }): Promise<`0x${string}`>;
510
- } & {
511
- (args: {
512
- method: "eth_accounts";
513
- params?: undefined;
514
- }): Promise<`0x${string}`[]>;
515
- (args: {
516
- method: "eth_chainId";
517
- params?: undefined;
518
- }): Promise<`0x${string}`>;
519
- (args: {
520
- method: "eth_requestAccounts";
521
- params?: undefined;
522
- }): Promise<`0x${string}`[]>;
523
- (args: {
524
- method: "wallet_requestPermissions";
525
- params: [permissions: {
526
- eth_accounts: Record<string, any>;
527
- }];
528
- }): Promise<import("viem/dist/types/types/eip1193").WalletPermission[]>;
529
- (args: {
530
- method: "wallet_getPermissions";
531
- params?: undefined;
532
- }): Promise<import("viem/dist/types/types/eip1193").WalletPermission[]>;
533
- (args: {
534
- method: "wallet_addEthereumChain";
535
- params: [chain: import("viem/dist/types/types/eip1193").Chain];
536
- }): Promise<null>;
537
- (args: {
538
- method: "wallet_switchEthereumChain";
539
- params: [chain: {
540
- chainId: string;
541
- }];
542
- }): Promise<null>;
543
- (args: {
544
- method: "wallet_watchAsset";
545
- params: import("viem/dist/types/types/eip1193").WatchAssetParams;
546
- }): Promise<boolean>;
547
- }> & ((...args: any) => Promise<any>);
548
- type: string;
549
- uid: string;
550
- addChain: (args: import("viem").AddChainParameters) => Promise<void>;
551
- deployContract: <TAbi extends import("abitype/dist/abi-7aa1f183").l | readonly unknown[], TChainOverride extends import("viem").Chain<import("viem/dist/types/types").Formatters> | undefined>(args: import("viem").DeployContractParameters<TAbi, undefined, undefined, TChainOverride>) => Promise<`0x${string}`>;
552
- getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
553
- getChainId: () => Promise<number>;
554
- getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
555
- requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
556
- requestPermissions: (args: {
557
- [x: string]: Record<string, any>;
558
- eth_accounts: Record<string, any>;
559
- }) => Promise<import("viem").RequestPermissionsReturnType>;
560
- sendTransaction: <TChainOverride_1 extends import("viem").Chain<import("viem/dist/types/types").Formatters> | undefined>(args: import("viem").SendTransactionParameters<undefined, undefined, TChainOverride_1>) => Promise<`0x${string}`>;
561
- signMessage: (args: import("viem").SignMessageParameters<undefined>) => Promise<`0x${string}`>;
562
- signTypedData: <TTypedData extends {
563
- [x: string]: readonly import("abitype/dist/abi-7aa1f183").o[];
564
- [x: `string[${string}]`]: undefined;
565
- [x: `function[${string}]`]: undefined;
566
- [x: `address[${string}]`]: undefined;
567
- [x: `bool[${string}]`]: undefined;
568
- [x: `bytes[${string}]`]: undefined;
569
- [x: `bytes1[${string}]`]: undefined;
570
- [x: `bytes2[${string}]`]: undefined;
571
- [x: `bytes3[${string}]`]: undefined;
572
- [x: `bytes4[${string}]`]: undefined;
573
- [x: `bytes5[${string}]`]: undefined;
574
- [x: `bytes6[${string}]`]: undefined;
575
- [x: `bytes7[${string}]`]: undefined;
576
- [x: `bytes8[${string}]`]: undefined;
577
- [x: `bytes9[${string}]`]: undefined;
578
- [x: `bytes10[${string}]`]: undefined;
579
- [x: `bytes11[${string}]`]: undefined;
580
- [x: `bytes12[${string}]`]: undefined;
581
- [x: `bytes13[${string}]`]: undefined;
582
- [x: `bytes14[${string}]`]: undefined;
583
- [x: `bytes15[${string}]`]: undefined;
584
- [x: `bytes16[${string}]`]: undefined;
585
- [x: `bytes17[${string}]`]: undefined;
586
- [x: `bytes18[${string}]`]: undefined;
587
- [x: `bytes19[${string}]`]: undefined;
588
- [x: `bytes20[${string}]`]: undefined;
589
- [x: `bytes21[${string}]`]: undefined;
590
- [x: `bytes22[${string}]`]: undefined;
591
- [x: `bytes23[${string}]`]: undefined;
592
- [x: `bytes24[${string}]`]: undefined;
593
- [x: `bytes25[${string}]`]: undefined;
594
- [x: `bytes26[${string}]`]: undefined;
595
- [x: `bytes27[${string}]`]: undefined;
596
- [x: `bytes28[${string}]`]: undefined;
597
- [x: `bytes29[${string}]`]: undefined;
598
- [x: `bytes30[${string}]`]: undefined;
599
- [x: `bytes31[${string}]`]: undefined;
600
- [x: `bytes32[${string}]`]: undefined;
601
- [x: `int[${string}]`]: undefined;
602
- [x: `int8[${string}]`]: undefined;
603
- [x: `int16[${string}]`]: undefined;
604
- [x: `int24[${string}]`]: undefined;
605
- [x: `int32[${string}]`]: undefined;
606
- [x: `int40[${string}]`]: undefined;
607
- [x: `int48[${string}]`]: undefined;
608
- [x: `int56[${string}]`]: undefined;
609
- [x: `int64[${string}]`]: undefined;
610
- [x: `int72[${string}]`]: undefined;
611
- [x: `int80[${string}]`]: undefined;
612
- [x: `int88[${string}]`]: undefined;
613
- [x: `int96[${string}]`]: undefined;
614
- [x: `int104[${string}]`]: undefined;
615
- [x: `int112[${string}]`]: undefined;
616
- [x: `int120[${string}]`]: undefined;
617
- [x: `int128[${string}]`]: undefined;
618
- [x: `int136[${string}]`]: undefined;
619
- [x: `int144[${string}]`]: undefined;
620
- [x: `int152[${string}]`]: undefined;
621
- [x: `int160[${string}]`]: undefined;
622
- [x: `int168[${string}]`]: undefined;
623
- [x: `int176[${string}]`]: undefined;
624
- [x: `int184[${string}]`]: undefined;
625
- [x: `int192[${string}]`]: undefined;
626
- [x: `int200[${string}]`]: undefined;
627
- [x: `int208[${string}]`]: undefined;
628
- [x: `int216[${string}]`]: undefined;
629
- [x: `int224[${string}]`]: undefined;
630
- [x: `int232[${string}]`]: undefined;
631
- [x: `int240[${string}]`]: undefined;
632
- [x: `int248[${string}]`]: undefined;
633
- [x: `int256[${string}]`]: undefined;
634
- [x: `uint[${string}]`]: undefined;
635
- [x: `uint8[${string}]`]: undefined;
636
- [x: `uint16[${string}]`]: undefined;
637
- [x: `uint24[${string}]`]: undefined;
638
- [x: `uint32[${string}]`]: undefined;
639
- [x: `uint40[${string}]`]: undefined;
640
- [x: `uint48[${string}]`]: undefined;
641
- [x: `uint56[${string}]`]: undefined;
642
- [x: `uint64[${string}]`]: undefined;
643
- [x: `uint72[${string}]`]: undefined;
644
- [x: `uint80[${string}]`]: undefined;
645
- [x: `uint88[${string}]`]: undefined;
646
- [x: `uint96[${string}]`]: undefined;
647
- [x: `uint104[${string}]`]: undefined;
648
- [x: `uint112[${string}]`]: undefined;
649
- [x: `uint120[${string}]`]: undefined;
650
- [x: `uint128[${string}]`]: undefined;
651
- [x: `uint136[${string}]`]: undefined;
652
- [x: `uint144[${string}]`]: undefined;
653
- [x: `uint152[${string}]`]: undefined;
654
- [x: `uint160[${string}]`]: undefined;
655
- [x: `uint168[${string}]`]: undefined;
656
- [x: `uint176[${string}]`]: undefined;
657
- [x: `uint184[${string}]`]: undefined;
658
- [x: `uint192[${string}]`]: undefined;
659
- [x: `uint200[${string}]`]: undefined;
660
- [x: `uint208[${string}]`]: undefined;
661
- [x: `uint216[${string}]`]: undefined;
662
- [x: `uint224[${string}]`]: undefined;
663
- [x: `uint232[${string}]`]: undefined;
664
- [x: `uint240[${string}]`]: undefined;
665
- [x: `uint248[${string}]`]: undefined;
666
- [x: `uint256[${string}]`]: undefined;
667
- string?: undefined;
668
- address?: undefined;
669
- bool?: undefined;
670
- bytes?: undefined;
671
- bytes1?: undefined;
672
- bytes2?: undefined;
673
- bytes3?: undefined;
674
- bytes4?: undefined;
675
- bytes5?: undefined;
676
- bytes6?: undefined;
677
- bytes7?: undefined;
678
- bytes8?: undefined;
679
- bytes9?: undefined;
680
- bytes10?: undefined;
681
- bytes11?: undefined;
682
- bytes12?: undefined;
683
- bytes13?: undefined;
684
- bytes14?: undefined;
685
- bytes15?: undefined;
686
- bytes16?: undefined;
687
- bytes17?: undefined;
688
- bytes18?: undefined;
689
- bytes19?: undefined;
690
- bytes20?: undefined;
691
- bytes21?: undefined;
692
- bytes22?: undefined;
693
- bytes23?: undefined;
694
- bytes24?: undefined;
695
- bytes25?: undefined;
696
- bytes26?: undefined;
697
- bytes27?: undefined;
698
- bytes28?: undefined;
699
- bytes29?: undefined;
700
- bytes30?: undefined;
701
- bytes31?: undefined;
702
- bytes32?: undefined;
703
- int8?: undefined;
704
- int16?: undefined;
705
- int24?: undefined;
706
- int32?: undefined;
707
- int40?: undefined;
708
- int48?: undefined;
709
- int56?: undefined;
710
- int64?: undefined;
711
- int72?: undefined;
712
- int80?: undefined;
713
- int88?: undefined;
714
- int96?: undefined;
715
- int104?: undefined;
716
- int112?: undefined;
717
- int120?: undefined;
718
- int128?: undefined;
719
- int136?: undefined;
720
- int144?: undefined;
721
- int152?: undefined;
722
- int160?: undefined;
723
- int168?: undefined;
724
- int176?: undefined;
725
- int184?: undefined;
726
- int192?: undefined;
727
- int200?: undefined;
728
- int208?: undefined;
729
- int216?: undefined;
730
- int224?: undefined;
731
- int232?: undefined;
732
- int240?: undefined;
733
- int248?: undefined;
734
- int256?: undefined;
735
- uint8?: undefined;
736
- uint16?: undefined;
737
- uint24?: undefined;
738
- uint32?: undefined;
739
- uint40?: undefined;
740
- uint48?: undefined;
741
- uint56?: undefined;
742
- uint64?: undefined;
743
- uint72?: undefined;
744
- uint80?: undefined;
745
- uint88?: undefined;
746
- uint96?: undefined;
747
- uint104?: undefined;
748
- uint112?: undefined;
749
- uint120?: undefined;
750
- uint128?: undefined;
751
- uint136?: undefined;
752
- uint144?: undefined;
753
- uint152?: undefined;
754
- uint160?: undefined;
755
- uint168?: undefined;
756
- uint176?: undefined;
757
- uint184?: undefined;
758
- uint192?: undefined;
759
- uint200?: undefined;
760
- uint208?: undefined;
761
- uint216?: undefined;
762
- uint224?: undefined;
763
- uint232?: undefined;
764
- uint240?: undefined;
765
- uint248?: undefined;
766
- uint256?: undefined;
767
- } | {
768
- [key: string]: unknown;
769
- }, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, undefined>) => Promise<`0x${string}`>;
770
- switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
771
- watchAsset: (args: import("viem/dist/types/types/eip1193").WatchAssetParams) => Promise<boolean>;
772
- writeContract: <TAbi_1 extends import("abitype/dist/abi-7aa1f183").l | readonly unknown[], TFunctionName extends string, TChainOverride_2 extends import("viem").Chain<import("viem/dist/types/types").Formatters> | undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, undefined, undefined, TChainOverride_2>) => Promise<`0x${string}`>;
773
- account: undefined;
774
- };
27
+ getWeb3Provider(): ethers.providers.Web3Provider;
775
28
  isInstalledOnBrowser(): boolean;
776
29
  connect(): Promise<void>;
777
30
  fetchPublicAddress(opts?: FetchPublicAddressOpts): Promise<string | undefined>;
@@ -780,8 +33,8 @@ declare class WalletConnectV2 extends EthProvider implements WalletConnector {
780
33
  endSession(): Promise<void>;
781
34
  providerSwitchNetwork({ network, provider, }: {
782
35
  network: EvmNetwork;
783
- provider: WalletClient;
36
+ provider: ethers.providers.Web3Provider;
784
37
  }): Promise<void>;
785
- getConnectedAccounts(): Promise<`0x${string}`[]>;
38
+ getConnectedAccounts(): Promise<string[]>;
786
39
  }
787
40
  export default WalletConnectV2;