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