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