@getpara/wagmi-v2-integration 0.1.0

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.
@@ -0,0 +1,1008 @@
1
+ import { Chain } from 'wagmi/chains';
2
+ import { InjectedParameters } from 'wagmi/connectors';
3
+ import ParaWeb, { ParaModalProps } from '@getpara/react-sdk';
4
+ import { Transport } from 'viem';
5
+ interface ParaConnectorOpts extends Partial<ParaModalProps> {
6
+ /**
7
+ * @deprecated Use `chains` in the wagmi config instead.
8
+ */
9
+ chains?: Chain[];
10
+ options: InjectedParameters;
11
+ para: ParaWeb;
12
+ disableModal?: boolean;
13
+ appName: string;
14
+ idOverride?: string;
15
+ storageOverride?: Pick<Storage, 'setItem' | 'getItem'>;
16
+ iconOverride?: string;
17
+ nameOverride?: string;
18
+ transports?: Record<number, Transport>;
19
+ }
20
+ export declare const paraConnector: ({ para, chains: _chains, disableModal, storageOverride, options, iconOverride, nameOverride, idOverride, transports, ...modalProps }: ParaConnectorOpts) => import("wagmi").CreateConnectorFn<unknown, {
21
+ type: string;
22
+ name: string;
23
+ icon: string;
24
+ disconnect: () => Promise<void>;
25
+ id: string;
26
+ supportsSimulation?: boolean;
27
+ setup?: () => Promise<void>;
28
+ connect: (parameters?: {
29
+ chainId?: number;
30
+ isReconnecting?: boolean;
31
+ }) => Promise<{
32
+ accounts: readonly `0x${string}`[];
33
+ chainId: number;
34
+ }>;
35
+ getAccounts: () => Promise<readonly `0x${string}`[]>;
36
+ getChainId: () => Promise<number>;
37
+ getProvider: (parameters?: {
38
+ chainId?: number;
39
+ }) => Promise<{
40
+ on: <TEvent extends keyof import("viem").EIP1193EventMap>(event: TEvent, listener: import("viem").EIP1193EventMap[TEvent]) => void;
41
+ removeListener: <TEvent_1 extends keyof import("viem").EIP1193EventMap>(event: TEvent_1, listener: import("viem").EIP1193EventMap[TEvent_1]) => void;
42
+ request: import("viem").EIP1193RequestFn<[{
43
+ Method: "web3_clientVersion";
44
+ Parameters?: undefined;
45
+ ReturnType: string;
46
+ }, {
47
+ Method: "web3_sha3";
48
+ Parameters: [data: `0x${string}`];
49
+ ReturnType: string;
50
+ }, {
51
+ Method: "net_listening";
52
+ Parameters?: undefined;
53
+ ReturnType: boolean;
54
+ }, {
55
+ Method: "net_peerCount";
56
+ Parameters?: undefined;
57
+ ReturnType: `0x${string}`;
58
+ }, {
59
+ Method: "net_version";
60
+ Parameters?: undefined;
61
+ ReturnType: `0x${string}`;
62
+ }, {
63
+ Method: "eth_blobBaseFee";
64
+ Parameters?: undefined;
65
+ ReturnType: `0x${string}`;
66
+ }, {
67
+ Method: "eth_blockNumber";
68
+ Parameters?: undefined;
69
+ ReturnType: `0x${string}`;
70
+ }, {
71
+ Method: "eth_call";
72
+ Parameters: [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier, stateOverrideSet: import("viem").RpcStateOverride];
73
+ ReturnType: `0x${string}`;
74
+ }, {
75
+ Method: "eth_chainId";
76
+ Parameters?: undefined;
77
+ ReturnType: `0x${string}`;
78
+ }, {
79
+ Method: "eth_coinbase";
80
+ Parameters?: undefined;
81
+ ReturnType: `0x${string}`;
82
+ }, {
83
+ Method: "eth_estimateGas";
84
+ Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag, stateOverride: import("viem").RpcStateOverride];
85
+ ReturnType: `0x${string}`;
86
+ }, {
87
+ Method: "eth_feeHistory";
88
+ Parameters: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[]];
89
+ ReturnType: import("viem").RpcFeeHistory;
90
+ }, {
91
+ Method: "eth_gasPrice";
92
+ Parameters?: undefined;
93
+ ReturnType: `0x${string}`;
94
+ }, {
95
+ Method: "eth_getBalance";
96
+ Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
97
+ ReturnType: `0x${string}`;
98
+ }, {
99
+ Method: "eth_getBlockByHash";
100
+ Parameters: [hash: `0x${string}`, includeTransactionObjects: boolean];
101
+ ReturnType: import("viem").RpcBlock;
102
+ }, {
103
+ Method: "eth_getBlockByNumber";
104
+ Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
105
+ ReturnType: import("viem").RpcBlock;
106
+ }, {
107
+ Method: "eth_getBlockTransactionCountByHash";
108
+ Parameters: [hash: `0x${string}`];
109
+ ReturnType: `0x${string}`;
110
+ }, {
111
+ Method: "eth_getBlockTransactionCountByNumber";
112
+ Parameters: [block: `0x${string}` | import("viem").BlockTag];
113
+ ReturnType: `0x${string}`;
114
+ }, {
115
+ Method: "eth_getCode";
116
+ Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
117
+ ReturnType: `0x${string}`;
118
+ }, {
119
+ Method: "eth_getFilterChanges";
120
+ Parameters: [filterId: `0x${string}`];
121
+ ReturnType: `0x${string}`[] | {
122
+ address: `0x${string}`;
123
+ blockHash: `0x${string}`;
124
+ blockNumber: `0x${string}`;
125
+ data: `0x${string}`;
126
+ logIndex: `0x${string}`;
127
+ transactionHash: `0x${string}`;
128
+ transactionIndex: `0x${string}`;
129
+ removed: boolean;
130
+ }[];
131
+ }, {
132
+ Method: "eth_getFilterLogs";
133
+ Parameters: [filterId: `0x${string}`];
134
+ ReturnType: {
135
+ address: `0x${string}`;
136
+ blockHash: `0x${string}`;
137
+ blockNumber: `0x${string}`;
138
+ data: `0x${string}`;
139
+ logIndex: `0x${string}`;
140
+ transactionHash: `0x${string}`;
141
+ transactionIndex: `0x${string}`;
142
+ removed: boolean;
143
+ }[];
144
+ }, {
145
+ Method: "eth_getLogs";
146
+ Parameters: [{
147
+ address?: `0x${string}` | `0x${string}`[];
148
+ topics?: import("viem").LogTopic[];
149
+ } & ({
150
+ fromBlock?: `0x${string}` | import("viem").BlockTag;
151
+ toBlock?: `0x${string}` | import("viem").BlockTag;
152
+ blockHash?: undefined;
153
+ } | {
154
+ fromBlock?: undefined;
155
+ toBlock?: undefined;
156
+ blockHash?: `0x${string}`;
157
+ })];
158
+ ReturnType: {
159
+ address: `0x${string}`;
160
+ blockHash: `0x${string}`;
161
+ blockNumber: `0x${string}`;
162
+ data: `0x${string}`;
163
+ logIndex: `0x${string}`;
164
+ transactionHash: `0x${string}`;
165
+ transactionIndex: `0x${string}`;
166
+ removed: boolean;
167
+ }[];
168
+ }, {
169
+ Method: "eth_getProof";
170
+ Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag];
171
+ ReturnType: import("viem").RpcProof;
172
+ }, {
173
+ Method: "eth_getStorageAt";
174
+ Parameters: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
175
+ ReturnType: `0x${string}`;
176
+ }, {
177
+ Method: "eth_getTransactionByBlockHashAndIndex";
178
+ Parameters: [hash: `0x${string}`, index: `0x${string}`];
179
+ ReturnType: import("viem").RpcTransaction;
180
+ }, {
181
+ Method: "eth_getTransactionByBlockNumberAndIndex";
182
+ Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
183
+ ReturnType: import("viem").RpcTransaction;
184
+ }, {
185
+ Method: "eth_getTransactionByHash";
186
+ Parameters: [hash: `0x${string}`];
187
+ ReturnType: import("viem").RpcTransaction;
188
+ }, {
189
+ Method: "eth_getTransactionCount";
190
+ Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
191
+ ReturnType: `0x${string}`;
192
+ }, {
193
+ Method: "eth_getTransactionReceipt";
194
+ Parameters: [hash: `0x${string}`];
195
+ ReturnType: import("viem").RpcTransactionReceipt;
196
+ }, {
197
+ Method: "eth_getUncleByBlockHashAndIndex";
198
+ Parameters: [hash: `0x${string}`, index: `0x${string}`];
199
+ ReturnType: import("viem").RpcUncle;
200
+ }, {
201
+ Method: "eth_getUncleByBlockNumberAndIndex";
202
+ Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
203
+ ReturnType: import("viem").RpcUncle;
204
+ }, {
205
+ Method: "eth_getUncleCountByBlockHash";
206
+ Parameters: [hash: `0x${string}`];
207
+ ReturnType: `0x${string}`;
208
+ }, {
209
+ Method: "eth_getUncleCountByBlockNumber";
210
+ Parameters: [block: `0x${string}` | import("viem").BlockTag];
211
+ ReturnType: `0x${string}`;
212
+ }, {
213
+ Method: "eth_maxPriorityFeePerGas";
214
+ Parameters?: undefined;
215
+ ReturnType: `0x${string}`;
216
+ }, {
217
+ Method: "eth_newBlockFilter";
218
+ Parameters?: undefined;
219
+ ReturnType: `0x${string}`;
220
+ }, {
221
+ Method: "eth_newFilter";
222
+ Parameters: [filter: {
223
+ fromBlock?: `0x${string}` | import("viem").BlockTag;
224
+ toBlock?: `0x${string}` | import("viem").BlockTag;
225
+ address?: `0x${string}` | `0x${string}`[];
226
+ topics?: import("viem").LogTopic[];
227
+ }];
228
+ ReturnType: `0x${string}`;
229
+ }, {
230
+ Method: "eth_newPendingTransactionFilter";
231
+ Parameters?: undefined;
232
+ ReturnType: `0x${string}`;
233
+ }, {
234
+ Method: "eth_protocolVersion";
235
+ Parameters?: undefined;
236
+ ReturnType: string;
237
+ }, {
238
+ Method: "eth_sendRawTransaction";
239
+ Parameters: [signedTransaction: `0x${string}`];
240
+ ReturnType: `0x${string}`;
241
+ }, {
242
+ Method: "eth_uninstallFilter";
243
+ Parameters: [filterId: `0x${string}`];
244
+ ReturnType: boolean;
245
+ }, {
246
+ Method: "eth_accounts";
247
+ Parameters?: undefined;
248
+ ReturnType: `0x${string}`[];
249
+ }, {
250
+ Method: "eth_chainId";
251
+ Parameters?: undefined;
252
+ ReturnType: `0x${string}`;
253
+ }, {
254
+ Method: "eth_estimateGas";
255
+ Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag, stateOverride: import("viem").RpcStateOverride];
256
+ ReturnType: `0x${string}`;
257
+ }, {
258
+ Method: "eth_requestAccounts";
259
+ Parameters?: undefined;
260
+ ReturnType: `0x${string}`[];
261
+ }, {
262
+ Method: "eth_sendTransaction";
263
+ Parameters: [transaction: import("viem").RpcTransactionRequest];
264
+ ReturnType: `0x${string}`;
265
+ }, {
266
+ Method: "eth_sendRawTransaction";
267
+ Parameters: [signedTransaction: `0x${string}`];
268
+ ReturnType: `0x${string}`;
269
+ }, {
270
+ Method: "eth_sign";
271
+ Parameters: [address: `0x${string}`, data: `0x${string}`];
272
+ ReturnType: `0x${string}`;
273
+ }, {
274
+ Method: "eth_signTransaction";
275
+ Parameters: [request: import("viem").RpcTransactionRequest];
276
+ ReturnType: `0x${string}`;
277
+ }, {
278
+ Method: "eth_signTypedData_v4";
279
+ Parameters: [address: `0x${string}`, message: string];
280
+ ReturnType: `0x${string}`;
281
+ }, {
282
+ Method: "eth_syncing";
283
+ Parameters?: undefined;
284
+ ReturnType: false | import("viem").NetworkSync;
285
+ }, {
286
+ Method: "personal_sign";
287
+ Parameters: [data: `0x${string}`, address: `0x${string}`];
288
+ ReturnType: `0x${string}`;
289
+ }, {
290
+ Method: "wallet_addEthereumChain";
291
+ Parameters: [chain: import("viem").AddEthereumChainParameter];
292
+ ReturnType: null;
293
+ }, {
294
+ Method: "wallet_getCallsStatus";
295
+ Parameters?: [string];
296
+ ReturnType: import("viem").WalletGetCallsStatusReturnType<`0x${string}`, `0x${string}`>;
297
+ }, {
298
+ Method: "wallet_getCapabilities";
299
+ Parameters?: [`0x${string}`];
300
+ ReturnType: {
301
+ [x: `0x${string}`]: import("viem").WalletCapabilities;
302
+ };
303
+ }, {
304
+ Method: "wallet_getPermissions";
305
+ Parameters?: undefined;
306
+ ReturnType: import("viem").WalletPermission[];
307
+ }, {
308
+ Method: "wallet_grantPermissions";
309
+ Parameters?: [import("viem").WalletGrantPermissionsParameters];
310
+ ReturnType: {
311
+ expiry: number;
312
+ factory?: `0x${string}`;
313
+ factoryData?: string;
314
+ grantedPermissions: readonly {
315
+ data: unknown;
316
+ policies: readonly {
317
+ data: unknown;
318
+ type: string;
319
+ }[];
320
+ required?: boolean;
321
+ type: string;
322
+ }[];
323
+ permissionsContext: string;
324
+ signerData?: {
325
+ userOpBuilder?: `0x${string}`;
326
+ submitToAddress?: `0x${string}`;
327
+ };
328
+ };
329
+ }, {
330
+ Method: "wallet_requestPermissions";
331
+ Parameters: [permissions: {
332
+ eth_accounts: Record<string, any>;
333
+ }];
334
+ ReturnType: import("viem").WalletPermission[];
335
+ }, {
336
+ Method: "wallet_revokePermissions";
337
+ Parameters: [permissions: {
338
+ eth_accounts: Record<string, any>;
339
+ }];
340
+ ReturnType: null;
341
+ }, {
342
+ Method: "wallet_sendCalls";
343
+ Parameters?: import("viem").WalletSendCallsParameters<import("viem").WalletCapabilities, `0x${string}`, `0x${string}`>;
344
+ ReturnType: string;
345
+ }, {
346
+ Method: "wallet_showCallsStatus";
347
+ Parameters?: [string];
348
+ ReturnType: void;
349
+ }, {
350
+ Method: "wallet_switchEthereumChain";
351
+ Parameters: [chain: {
352
+ chainId: string;
353
+ }];
354
+ ReturnType: null;
355
+ }, {
356
+ Method: "wallet_watchAsset";
357
+ Parameters: import("viem").WatchAssetParams;
358
+ ReturnType: boolean;
359
+ }, {
360
+ Method: "eth_chainId";
361
+ Parameters?: undefined;
362
+ ReturnType: `0x${string}`;
363
+ }, {
364
+ Method: "eth_estimateUserOperationGas";
365
+ Parameters: [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`] | [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`, stateOverrideSet: import("viem").RpcStateOverride];
366
+ ReturnType: import("viem").RpcEstimateUserOperationGasReturnType;
367
+ }, {
368
+ Method: "eth_getUserOperationByHash";
369
+ Parameters: [hash: `0x${string}`];
370
+ ReturnType: import("viem").RpcGetUserOperationByHashReturnType;
371
+ }, {
372
+ Method: "eth_getUserOperationReceipt";
373
+ Parameters: [hash: `0x${string}`];
374
+ ReturnType: import("viem").RpcUserOperationReceipt;
375
+ }, {
376
+ Method: "eth_sendUserOperation";
377
+ Parameters: [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`];
378
+ ReturnType: `0x${string}`;
379
+ }, {
380
+ Method: "eth_supportedEntryPoints";
381
+ Parameters?: undefined;
382
+ ReturnType: readonly `0x${string}`[];
383
+ }, {
384
+ Method: "pm_getPaymasterStubData";
385
+ Parameters?: [userOperation: import("viem").OneOf<import("wagmi/chains").PartialBy<Pick<{
386
+ callData: `0x${string}`;
387
+ callGasLimit: `0x${string}`;
388
+ initCode?: `0x${string}`;
389
+ maxFeePerGas: `0x${string}`;
390
+ maxPriorityFeePerGas: `0x${string}`;
391
+ nonce: `0x${string}`;
392
+ paymasterAndData?: `0x${string}`;
393
+ preVerificationGas: `0x${string}`;
394
+ sender: `0x${string}`;
395
+ signature: `0x${string}`;
396
+ verificationGasLimit: `0x${string}`;
397
+ }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "preVerificationGas" | "sender" | "verificationGasLimit" | "initCode">, "maxFeePerGas" | "maxPriorityFeePerGas" | "callGasLimit" | "preVerificationGas" | "verificationGasLimit" | "initCode"> | import("wagmi/chains").PartialBy<Pick<{
398
+ callData: `0x${string}`;
399
+ callGasLimit: `0x${string}`;
400
+ factory?: `0x${string}`;
401
+ factoryData?: `0x${string}`;
402
+ maxFeePerGas: `0x${string}`;
403
+ maxPriorityFeePerGas: `0x${string}`;
404
+ nonce: `0x${string}`;
405
+ paymaster?: `0x${string}`;
406
+ paymasterData?: `0x${string}`;
407
+ paymasterPostOpGasLimit?: `0x${string}`;
408
+ paymasterVerificationGasLimit?: `0x${string}`;
409
+ preVerificationGas: `0x${string}`;
410
+ sender: `0x${string}`;
411
+ signature: `0x${string}`;
412
+ verificationGasLimit: `0x${string}`;
413
+ }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "factory" | "factoryData" | "preVerificationGas" | "sender" | "verificationGasLimit">, "maxFeePerGas" | "maxPriorityFeePerGas" | "callGasLimit" | "factory" | "factoryData" | "preVerificationGas" | "verificationGasLimit">>, entrypoint: `0x${string}`, chainId: `0x${string}`, context: unknown];
414
+ ReturnType: import("viem").OneOf<{
415
+ paymasterAndData: `0x${string}`;
416
+ } | {
417
+ paymaster: `0x${string}`;
418
+ paymasterData: `0x${string}`;
419
+ paymasterVerificationGasLimit: `0x${string}`;
420
+ paymasterPostOpGasLimit: `0x${string}`;
421
+ }> & {
422
+ sponsor?: {
423
+ name: string;
424
+ icon?: string;
425
+ };
426
+ isFinal?: boolean;
427
+ };
428
+ }, {
429
+ Method: "pm_getPaymasterData";
430
+ Parameters?: [userOperation: Pick<{
431
+ callData: `0x${string}`;
432
+ callGasLimit: `0x${string}`;
433
+ initCode?: `0x${string}`;
434
+ maxFeePerGas: `0x${string}`;
435
+ maxPriorityFeePerGas: `0x${string}`;
436
+ nonce: `0x${string}`;
437
+ paymasterAndData?: `0x${string}`;
438
+ preVerificationGas: `0x${string}`;
439
+ sender: `0x${string}`;
440
+ signature: `0x${string}`;
441
+ verificationGasLimit: `0x${string}`;
442
+ }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "preVerificationGas" | "sender" | "verificationGasLimit" | "initCode"> | Pick<{
443
+ callData: `0x${string}`;
444
+ callGasLimit: `0x${string}`;
445
+ factory?: `0x${string}`;
446
+ factoryData?: `0x${string}`;
447
+ maxFeePerGas: `0x${string}`;
448
+ maxPriorityFeePerGas: `0x${string}`;
449
+ nonce: `0x${string}`;
450
+ paymaster?: `0x${string}`;
451
+ paymasterData?: `0x${string}`;
452
+ paymasterPostOpGasLimit?: `0x${string}`;
453
+ paymasterVerificationGasLimit?: `0x${string}`;
454
+ preVerificationGas: `0x${string}`;
455
+ sender: `0x${string}`;
456
+ signature: `0x${string}`;
457
+ verificationGasLimit: `0x${string}`;
458
+ }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "factory" | "factoryData" | "preVerificationGas" | "sender" | "verificationGasLimit">, entrypoint: `0x${string}`, chainId: `0x${string}`, context: unknown];
459
+ ReturnType: import("viem").OneOf<{
460
+ paymasterAndData: `0x${string}`;
461
+ } | {
462
+ paymaster: `0x${string}`;
463
+ paymasterData: `0x${string}`;
464
+ paymasterVerificationGasLimit: `0x${string}`;
465
+ paymasterPostOpGasLimit: `0x${string}`;
466
+ }>;
467
+ }]>;
468
+ isApexWallet?: true;
469
+ isAvalanche?: true;
470
+ isBackpack?: true;
471
+ isBifrost?: true;
472
+ isBitKeep?: true;
473
+ isBitski?: true;
474
+ isBlockWallet?: true;
475
+ isBraveWallet?: true;
476
+ isCoinbaseWallet?: true;
477
+ isDawn?: true;
478
+ isEnkrypt?: true;
479
+ isExodus?: true;
480
+ isFrame?: true;
481
+ isFrontier?: true;
482
+ isGamestop?: true;
483
+ isHyperPay?: true;
484
+ isImToken?: true;
485
+ isKuCoinWallet?: true;
486
+ isMathWallet?: true;
487
+ isMetaMask?: true;
488
+ isOkxWallet?: true;
489
+ isOKExWallet?: true;
490
+ isOneInchAndroidWallet?: true;
491
+ isOneInchIOSWallet?: true;
492
+ isOpera?: true;
493
+ isPhantom?: true;
494
+ isPortal?: true;
495
+ isRabby?: true;
496
+ isRainbow?: true;
497
+ isStatus?: true;
498
+ isTally?: true;
499
+ isTokenPocket?: true;
500
+ isTokenary?: true;
501
+ isTrust?: true;
502
+ isTrustWallet?: true;
503
+ isXDEFI?: true;
504
+ isZerion?: true;
505
+ providers?: {
506
+ on: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
507
+ removeListener: <event_1 extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
508
+ request: import("viem").EIP1193RequestFn<[{
509
+ Method: "web3_clientVersion";
510
+ Parameters?: undefined;
511
+ ReturnType: string;
512
+ }, {
513
+ Method: "web3_sha3";
514
+ Parameters: [data: `0x${string}`];
515
+ ReturnType: string;
516
+ }, {
517
+ Method: "net_listening";
518
+ Parameters?: undefined;
519
+ ReturnType: boolean;
520
+ }, {
521
+ Method: "net_peerCount";
522
+ Parameters?: undefined;
523
+ ReturnType: `0x${string}`;
524
+ }, {
525
+ Method: "net_version";
526
+ Parameters?: undefined;
527
+ ReturnType: `0x${string}`;
528
+ }, {
529
+ Method: "eth_blobBaseFee";
530
+ Parameters?: undefined;
531
+ ReturnType: `0x${string}`;
532
+ }, {
533
+ Method: "eth_blockNumber";
534
+ Parameters?: undefined;
535
+ ReturnType: `0x${string}`;
536
+ }, {
537
+ Method: "eth_call";
538
+ Parameters: [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier, stateOverrideSet: import("viem").RpcStateOverride];
539
+ ReturnType: `0x${string}`;
540
+ }, {
541
+ Method: "eth_chainId";
542
+ Parameters?: undefined;
543
+ ReturnType: `0x${string}`;
544
+ }, {
545
+ Method: "eth_coinbase";
546
+ Parameters?: undefined;
547
+ ReturnType: `0x${string}`;
548
+ }, {
549
+ Method: "eth_estimateGas";
550
+ Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag, stateOverride: import("viem").RpcStateOverride];
551
+ ReturnType: `0x${string}`;
552
+ }, {
553
+ Method: "eth_feeHistory";
554
+ Parameters: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[]];
555
+ ReturnType: import("viem").RpcFeeHistory;
556
+ }, {
557
+ Method: "eth_gasPrice";
558
+ Parameters?: undefined;
559
+ ReturnType: `0x${string}`;
560
+ }, {
561
+ Method: "eth_getBalance";
562
+ Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
563
+ ReturnType: `0x${string}`;
564
+ }, {
565
+ Method: "eth_getBlockByHash";
566
+ Parameters: [hash: `0x${string}`, includeTransactionObjects: boolean];
567
+ ReturnType: import("viem").RpcBlock;
568
+ }, {
569
+ Method: "eth_getBlockByNumber";
570
+ Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
571
+ ReturnType: import("viem").RpcBlock;
572
+ }, {
573
+ Method: "eth_getBlockTransactionCountByHash";
574
+ Parameters: [hash: `0x${string}`];
575
+ ReturnType: `0x${string}`;
576
+ }, {
577
+ Method: "eth_getBlockTransactionCountByNumber";
578
+ Parameters: [block: `0x${string}` | import("viem").BlockTag];
579
+ ReturnType: `0x${string}`;
580
+ }, {
581
+ Method: "eth_getCode";
582
+ Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
583
+ ReturnType: `0x${string}`;
584
+ }, {
585
+ Method: "eth_getFilterChanges";
586
+ Parameters: [filterId: `0x${string}`];
587
+ ReturnType: `0x${string}`[] | {
588
+ address: `0x${string}`;
589
+ blockHash: `0x${string}`;
590
+ blockNumber: `0x${string}`;
591
+ data: `0x${string}`;
592
+ logIndex: `0x${string}`;
593
+ transactionHash: `0x${string}`;
594
+ transactionIndex: `0x${string}`;
595
+ removed: boolean;
596
+ }[];
597
+ }, {
598
+ Method: "eth_getFilterLogs";
599
+ Parameters: [filterId: `0x${string}`];
600
+ ReturnType: {
601
+ address: `0x${string}`;
602
+ blockHash: `0x${string}`;
603
+ blockNumber: `0x${string}`;
604
+ data: `0x${string}`;
605
+ logIndex: `0x${string}`;
606
+ transactionHash: `0x${string}`;
607
+ transactionIndex: `0x${string}`;
608
+ removed: boolean;
609
+ }[];
610
+ }, {
611
+ Method: "eth_getLogs";
612
+ Parameters: [{
613
+ address?: `0x${string}` | `0x${string}`[];
614
+ topics?: import("viem").LogTopic[];
615
+ } & ({
616
+ fromBlock?: `0x${string}` | import("viem").BlockTag;
617
+ toBlock?: `0x${string}` | import("viem").BlockTag;
618
+ blockHash?: undefined;
619
+ } | {
620
+ fromBlock?: undefined;
621
+ toBlock?: undefined;
622
+ blockHash?: `0x${string}`;
623
+ })];
624
+ ReturnType: {
625
+ address: `0x${string}`;
626
+ blockHash: `0x${string}`;
627
+ blockNumber: `0x${string}`;
628
+ data: `0x${string}`;
629
+ logIndex: `0x${string}`;
630
+ transactionHash: `0x${string}`;
631
+ transactionIndex: `0x${string}`;
632
+ removed: boolean;
633
+ }[];
634
+ }, {
635
+ Method: "eth_getProof";
636
+ Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag];
637
+ ReturnType: import("viem").RpcProof;
638
+ }, {
639
+ Method: "eth_getStorageAt";
640
+ Parameters: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
641
+ ReturnType: `0x${string}`;
642
+ }, {
643
+ Method: "eth_getTransactionByBlockHashAndIndex";
644
+ Parameters: [hash: `0x${string}`, index: `0x${string}`];
645
+ ReturnType: import("viem").RpcTransaction;
646
+ }, {
647
+ Method: "eth_getTransactionByBlockNumberAndIndex";
648
+ Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
649
+ ReturnType: import("viem").RpcTransaction;
650
+ }, {
651
+ Method: "eth_getTransactionByHash";
652
+ Parameters: [hash: `0x${string}`];
653
+ ReturnType: import("viem").RpcTransaction;
654
+ }, {
655
+ Method: "eth_getTransactionCount";
656
+ Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
657
+ ReturnType: `0x${string}`;
658
+ }, {
659
+ Method: "eth_getTransactionReceipt";
660
+ Parameters: [hash: `0x${string}`];
661
+ ReturnType: import("viem").RpcTransactionReceipt;
662
+ }, {
663
+ Method: "eth_getUncleByBlockHashAndIndex";
664
+ Parameters: [hash: `0x${string}`, index: `0x${string}`];
665
+ ReturnType: import("viem").RpcUncle;
666
+ }, {
667
+ Method: "eth_getUncleByBlockNumberAndIndex";
668
+ Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
669
+ ReturnType: import("viem").RpcUncle;
670
+ }, {
671
+ Method: "eth_getUncleCountByBlockHash";
672
+ Parameters: [hash: `0x${string}`];
673
+ ReturnType: `0x${string}`;
674
+ }, {
675
+ Method: "eth_getUncleCountByBlockNumber";
676
+ Parameters: [block: `0x${string}` | import("viem").BlockTag];
677
+ ReturnType: `0x${string}`;
678
+ }, {
679
+ Method: "eth_maxPriorityFeePerGas";
680
+ Parameters?: undefined;
681
+ ReturnType: `0x${string}`;
682
+ }, {
683
+ Method: "eth_newBlockFilter";
684
+ Parameters?: undefined;
685
+ ReturnType: `0x${string}`;
686
+ }, {
687
+ Method: "eth_newFilter";
688
+ Parameters: [filter: {
689
+ fromBlock?: `0x${string}` | import("viem").BlockTag;
690
+ toBlock?: `0x${string}` | import("viem").BlockTag;
691
+ address?: `0x${string}` | `0x${string}`[];
692
+ topics?: import("viem").LogTopic[];
693
+ }];
694
+ ReturnType: `0x${string}`;
695
+ }, {
696
+ Method: "eth_newPendingTransactionFilter";
697
+ Parameters?: undefined;
698
+ ReturnType: `0x${string}`;
699
+ }, {
700
+ Method: "eth_protocolVersion";
701
+ Parameters?: undefined;
702
+ ReturnType: string;
703
+ }, {
704
+ Method: "eth_sendRawTransaction";
705
+ Parameters: [signedTransaction: `0x${string}`];
706
+ ReturnType: `0x${string}`;
707
+ }, {
708
+ Method: "eth_uninstallFilter";
709
+ Parameters: [filterId: `0x${string}`];
710
+ ReturnType: boolean;
711
+ }, {
712
+ Method: "eth_accounts";
713
+ Parameters?: undefined;
714
+ ReturnType: `0x${string}`[];
715
+ }, {
716
+ Method: "eth_chainId";
717
+ Parameters?: undefined;
718
+ ReturnType: `0x${string}`;
719
+ }, {
720
+ Method: "eth_estimateGas";
721
+ Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag, stateOverride: import("viem").RpcStateOverride];
722
+ ReturnType: `0x${string}`;
723
+ }, {
724
+ Method: "eth_requestAccounts";
725
+ Parameters?: undefined;
726
+ ReturnType: `0x${string}`[];
727
+ }, {
728
+ Method: "eth_sendTransaction";
729
+ Parameters: [transaction: import("viem").RpcTransactionRequest];
730
+ ReturnType: `0x${string}`;
731
+ }, {
732
+ Method: "eth_sendRawTransaction";
733
+ Parameters: [signedTransaction: `0x${string}`];
734
+ ReturnType: `0x${string}`;
735
+ }, {
736
+ Method: "eth_sign";
737
+ Parameters: [address: `0x${string}`, data: `0x${string}`];
738
+ ReturnType: `0x${string}`;
739
+ }, {
740
+ Method: "eth_signTransaction";
741
+ Parameters: [request: import("viem").RpcTransactionRequest];
742
+ ReturnType: `0x${string}`;
743
+ }, {
744
+ Method: "eth_signTypedData_v4";
745
+ Parameters: [address: `0x${string}`, message: string];
746
+ ReturnType: `0x${string}`;
747
+ }, {
748
+ Method: "eth_syncing";
749
+ Parameters?: undefined;
750
+ ReturnType: false | import("viem").NetworkSync;
751
+ }, {
752
+ Method: "personal_sign";
753
+ Parameters: [data: `0x${string}`, address: `0x${string}`];
754
+ ReturnType: `0x${string}`;
755
+ }, {
756
+ Method: "wallet_addEthereumChain";
757
+ Parameters: [chain: import("viem").AddEthereumChainParameter];
758
+ ReturnType: null;
759
+ }, {
760
+ Method: "wallet_getCallsStatus";
761
+ Parameters?: [string];
762
+ ReturnType: import("viem").WalletGetCallsStatusReturnType<`0x${string}`, `0x${string}`>;
763
+ }, {
764
+ Method: "wallet_getCapabilities";
765
+ Parameters?: [`0x${string}`];
766
+ ReturnType: {
767
+ [x: `0x${string}`]: import("viem").WalletCapabilities;
768
+ };
769
+ }, {
770
+ Method: "wallet_getPermissions";
771
+ Parameters?: undefined;
772
+ ReturnType: import("viem").WalletPermission[];
773
+ }, {
774
+ Method: "wallet_grantPermissions";
775
+ Parameters?: [import("viem").WalletGrantPermissionsParameters];
776
+ ReturnType: {
777
+ expiry: number;
778
+ factory?: `0x${string}`;
779
+ factoryData?: string;
780
+ grantedPermissions: readonly {
781
+ data: unknown;
782
+ policies: readonly {
783
+ data: unknown;
784
+ type: string;
785
+ }[];
786
+ required?: boolean;
787
+ type: string;
788
+ }[];
789
+ permissionsContext: string;
790
+ signerData?: {
791
+ userOpBuilder?: `0x${string}`;
792
+ submitToAddress?: `0x${string}`;
793
+ };
794
+ };
795
+ }, {
796
+ Method: "wallet_requestPermissions";
797
+ Parameters: [permissions: {
798
+ eth_accounts: Record<string, any>;
799
+ }];
800
+ ReturnType: import("viem").WalletPermission[];
801
+ }, {
802
+ Method: "wallet_revokePermissions";
803
+ Parameters: [permissions: {
804
+ eth_accounts: Record<string, any>;
805
+ }];
806
+ ReturnType: null;
807
+ }, {
808
+ Method: "wallet_sendCalls";
809
+ Parameters?: import("viem").WalletSendCallsParameters<import("viem").WalletCapabilities, `0x${string}`, `0x${string}`>;
810
+ ReturnType: string;
811
+ }, {
812
+ Method: "wallet_showCallsStatus";
813
+ Parameters?: [string];
814
+ ReturnType: void;
815
+ }, {
816
+ Method: "wallet_switchEthereumChain";
817
+ Parameters: [chain: {
818
+ chainId: string;
819
+ }];
820
+ ReturnType: null;
821
+ }, {
822
+ Method: "wallet_watchAsset";
823
+ Parameters: import("viem").WatchAssetParams;
824
+ ReturnType: boolean;
825
+ }, {
826
+ Method: "eth_chainId";
827
+ Parameters?: undefined;
828
+ ReturnType: `0x${string}`;
829
+ }, {
830
+ Method: "eth_estimateUserOperationGas";
831
+ Parameters: [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`] | [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`, stateOverrideSet: import("viem").RpcStateOverride];
832
+ ReturnType: import("viem").RpcEstimateUserOperationGasReturnType;
833
+ }, {
834
+ Method: "eth_getUserOperationByHash";
835
+ Parameters: [hash: `0x${string}`];
836
+ ReturnType: import("viem").RpcGetUserOperationByHashReturnType;
837
+ }, {
838
+ Method: "eth_getUserOperationReceipt";
839
+ Parameters: [hash: `0x${string}`];
840
+ ReturnType: import("viem").RpcUserOperationReceipt;
841
+ }, {
842
+ Method: "eth_sendUserOperation";
843
+ Parameters: [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`];
844
+ ReturnType: `0x${string}`;
845
+ }, {
846
+ Method: "eth_supportedEntryPoints";
847
+ Parameters?: undefined;
848
+ ReturnType: readonly `0x${string}`[];
849
+ }, {
850
+ Method: "pm_getPaymasterStubData";
851
+ Parameters?: [userOperation: import("viem").OneOf<import("wagmi/chains").PartialBy<Pick<{
852
+ callData: `0x${string}`;
853
+ callGasLimit: `0x${string}`;
854
+ initCode?: `0x${string}`;
855
+ maxFeePerGas: `0x${string}`;
856
+ maxPriorityFeePerGas: `0x${string}`;
857
+ nonce: `0x${string}`;
858
+ paymasterAndData?: `0x${string}`;
859
+ preVerificationGas: `0x${string}`;
860
+ sender: `0x${string}`;
861
+ signature: `0x${string}`;
862
+ verificationGasLimit: `0x${string}`;
863
+ }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "preVerificationGas" | "sender" | "verificationGasLimit" | "initCode">, "maxFeePerGas" | "maxPriorityFeePerGas" | "callGasLimit" | "preVerificationGas" | "verificationGasLimit" | "initCode"> | import("wagmi/chains").PartialBy<Pick<{
864
+ callData: `0x${string}`;
865
+ callGasLimit: `0x${string}`;
866
+ factory?: `0x${string}`;
867
+ factoryData?: `0x${string}`;
868
+ maxFeePerGas: `0x${string}`;
869
+ maxPriorityFeePerGas: `0x${string}`;
870
+ nonce: `0x${string}`;
871
+ paymaster?: `0x${string}`;
872
+ paymasterData?: `0x${string}`;
873
+ paymasterPostOpGasLimit?: `0x${string}`;
874
+ paymasterVerificationGasLimit?: `0x${string}`;
875
+ preVerificationGas: `0x${string}`;
876
+ sender: `0x${string}`;
877
+ signature: `0x${string}`;
878
+ verificationGasLimit: `0x${string}`;
879
+ }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "factory" | "factoryData" | "preVerificationGas" | "sender" | "verificationGasLimit">, "maxFeePerGas" | "maxPriorityFeePerGas" | "callGasLimit" | "factory" | "factoryData" | "preVerificationGas" | "verificationGasLimit">>, entrypoint: `0x${string}`, chainId: `0x${string}`, context: unknown];
880
+ ReturnType: import("viem").OneOf<{
881
+ paymasterAndData: `0x${string}`;
882
+ } | {
883
+ paymaster: `0x${string}`;
884
+ paymasterData: `0x${string}`;
885
+ paymasterVerificationGasLimit: `0x${string}`;
886
+ paymasterPostOpGasLimit: `0x${string}`;
887
+ }> & {
888
+ sponsor?: {
889
+ name: string;
890
+ icon?: string;
891
+ };
892
+ isFinal?: boolean;
893
+ };
894
+ }, {
895
+ Method: "pm_getPaymasterData";
896
+ Parameters?: [userOperation: Pick<{
897
+ callData: `0x${string}`;
898
+ callGasLimit: `0x${string}`;
899
+ initCode?: `0x${string}`;
900
+ maxFeePerGas: `0x${string}`;
901
+ maxPriorityFeePerGas: `0x${string}`;
902
+ nonce: `0x${string}`;
903
+ paymasterAndData?: `0x${string}`;
904
+ preVerificationGas: `0x${string}`;
905
+ sender: `0x${string}`;
906
+ signature: `0x${string}`;
907
+ verificationGasLimit: `0x${string}`;
908
+ }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "preVerificationGas" | "sender" | "verificationGasLimit" | "initCode"> | Pick<{
909
+ callData: `0x${string}`;
910
+ callGasLimit: `0x${string}`;
911
+ factory?: `0x${string}`;
912
+ factoryData?: `0x${string}`;
913
+ maxFeePerGas: `0x${string}`;
914
+ maxPriorityFeePerGas: `0x${string}`;
915
+ nonce: `0x${string}`;
916
+ paymaster?: `0x${string}`;
917
+ paymasterData?: `0x${string}`;
918
+ paymasterPostOpGasLimit?: `0x${string}`;
919
+ paymasterVerificationGasLimit?: `0x${string}`;
920
+ preVerificationGas: `0x${string}`;
921
+ sender: `0x${string}`;
922
+ signature: `0x${string}`;
923
+ verificationGasLimit: `0x${string}`;
924
+ }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "factory" | "factoryData" | "preVerificationGas" | "sender" | "verificationGasLimit">, entrypoint: `0x${string}`, chainId: `0x${string}`, context: unknown];
925
+ ReturnType: import("viem").OneOf<{
926
+ paymasterAndData: `0x${string}`;
927
+ } | {
928
+ paymaster: `0x${string}`;
929
+ paymasterData: `0x${string}`;
930
+ paymasterVerificationGasLimit: `0x${string}`;
931
+ paymasterPostOpGasLimit: `0x${string}`;
932
+ }>;
933
+ }]>;
934
+ isApexWallet?: true;
935
+ isAvalanche?: true;
936
+ isBackpack?: true;
937
+ isBifrost?: true;
938
+ isBitKeep?: true;
939
+ isBitski?: true;
940
+ isBlockWallet?: true;
941
+ isBraveWallet?: true;
942
+ isCoinbaseWallet?: true;
943
+ isDawn?: true;
944
+ isEnkrypt?: true;
945
+ isExodus?: true;
946
+ isFrame?: true;
947
+ isFrontier?: true;
948
+ isGamestop?: true;
949
+ isHyperPay?: true;
950
+ isImToken?: true;
951
+ isKuCoinWallet?: true;
952
+ isMathWallet?: true;
953
+ isMetaMask?: true;
954
+ isOkxWallet?: true;
955
+ isOKExWallet?: true;
956
+ isOneInchAndroidWallet?: true;
957
+ isOneInchIOSWallet?: true;
958
+ isOpera?: true;
959
+ isPhantom?: true;
960
+ isPortal?: true;
961
+ isRabby?: true;
962
+ isRainbow?: true;
963
+ isStatus?: true;
964
+ isTally?: true;
965
+ isTokenPocket?: true;
966
+ isTokenary?: true;
967
+ isTrust?: true;
968
+ isTrustWallet?: true;
969
+ isXDEFI?: true;
970
+ isZerion?: true;
971
+ providers?: any[];
972
+ _events?: {
973
+ connect?: () => void;
974
+ };
975
+ _state?: {
976
+ accounts?: string[];
977
+ initialized?: boolean;
978
+ isConnected?: boolean;
979
+ isPermanentlyDisconnected?: boolean;
980
+ isUnlocked?: boolean;
981
+ };
982
+ }[];
983
+ _events?: {
984
+ connect?: () => void;
985
+ };
986
+ _state?: {
987
+ accounts?: string[];
988
+ initialized?: boolean;
989
+ isConnected?: boolean;
990
+ isPermanentlyDisconnected?: boolean;
991
+ isUnlocked?: boolean;
992
+ };
993
+ }>;
994
+ getClient?: (parameters?: {
995
+ chainId?: number;
996
+ }) => Promise<never>;
997
+ isAuthorized: () => Promise<boolean>;
998
+ switchChain?: (parameters: {
999
+ addEthereumChainParameter?: import("@wagmi/core/internal").ExactPartial<import("@wagmi/core/internal").Omit<import("viem").AddEthereumChainParameter, "chainId">>;
1000
+ chainId: number;
1001
+ }) => Promise<Chain>;
1002
+ onAccountsChanged: (accounts: string[]) => void;
1003
+ onChainChanged: (chainId: string) => void;
1004
+ onConnect: ((connectInfo: import("viem").ProviderConnectInfo) => void) & ((connectInfo: import("viem").ProviderConnectInfo) => void);
1005
+ onDisconnect: (error?: Error) => void;
1006
+ onMessage?: (message: import("viem").ProviderMessage) => void;
1007
+ }, Record<string, unknown>>;
1008
+ export {};