@getpara/wagmi-v2-connector 2.0.0-alpha.6 → 2.0.0-alpha.61

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.
@@ -26,1017 +26,77 @@ export declare const createParaConnector: ({ para, chains: _chains, disableModal
26
26
  emitter: import("@wagmi/core/internal").Emitter<import("wagmi").ConnectorEventMap>;
27
27
  storage?: {
28
28
  key: string;
29
- getItem: <key extends string, value extends (import("@wagmi/core").StorageItemMap & Record<string, unknown>)[key], defaultValue extends value>(key: key, defaultValue?: defaultValue) => (defaultValue extends null ? value : value) | Promise<defaultValue extends null ? value : value>;
29
+ getItem: <key_1 extends string, value extends (import("@wagmi/core").StorageItemMap & Record<string, unknown>)[key_1], defaultValue_1 extends value>(key: key_1, defaultValue?: defaultValue_1) => (defaultValue_1 extends null ? value : value) | Promise<defaultValue_1 extends null ? value : value>;
30
30
  setItem: <key_1 extends string, value_1 extends (import("@wagmi/core").StorageItemMap & Record<string, unknown>)[key_1]>(key: key_1, value: value_1) => void | Promise<void>;
31
31
  removeItem: (key: string) => void | Promise<void>;
32
32
  };
33
- transports?: Record<number, import("wagmi").Transport>;
33
+ transports?: Record<number, import("wagmi").Transport> | undefined;
34
34
  }) => {
35
35
  type: string;
36
36
  name: string;
37
37
  icon: string;
38
38
  disconnect: () => Promise<void>;
39
39
  id: string;
40
- rdns?: string | readonly string[];
41
- supportsSimulation?: boolean;
40
+ rdns?: string | readonly string[] | undefined;
41
+ supportsSimulation?: boolean | undefined;
42
42
  setup?: () => Promise<void>;
43
43
  connect: (parameters?: {
44
- chainId?: number;
45
- isReconnecting?: boolean;
46
- }) => Promise<{
47
- accounts: readonly `0x${string}`[];
44
+ chainId?: number | undefined;
45
+ isReconnecting?: boolean | undefined;
46
+ } | undefined) => Promise<{
47
+ accounts: readonly import("viem").Address[];
48
48
  chainId: number;
49
49
  }>;
50
- getAccounts: () => Promise<readonly `0x${string}`[]>;
50
+ getAccounts: () => Promise<readonly import("viem").Address[]>;
51
51
  getChainId: () => Promise<number>;
52
52
  getProvider: (parameters?: {
53
- chainId?: number;
54
- }) => Promise<{
53
+ chainId?: number | undefined;
54
+ } | undefined) => Promise<{
55
55
  on: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
56
- removeListener: <event_1 extends keyof import("viem").EIP1193EventMap>(event: event_1, listener: import("viem").EIP1193EventMap[event_1]) => void;
57
- request: import("viem").EIP1193RequestFn<[{
58
- Method: "web3_clientVersion";
59
- Parameters?: undefined;
60
- ReturnType: string;
61
- }, {
62
- Method: "web3_sha3";
63
- Parameters: [data: `0x${string}`];
64
- ReturnType: string;
65
- }, {
66
- Method: "net_listening";
67
- Parameters?: undefined;
68
- ReturnType: boolean;
69
- }, {
70
- Method: "net_peerCount";
71
- Parameters?: undefined;
72
- ReturnType: `0x${string}`;
73
- }, {
74
- Method: "net_version";
75
- Parameters?: undefined;
76
- ReturnType: `0x${string}`;
77
- }, {
78
- Method: "eth_blobBaseFee";
79
- Parameters?: undefined;
80
- ReturnType: `0x${string}`;
81
- }, {
82
- Method: "eth_blockNumber";
83
- Parameters?: undefined;
84
- ReturnType: `0x${string}`;
85
- }, {
86
- Method: "eth_call";
87
- 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];
88
- ReturnType: `0x${string}`;
89
- }, {
90
- Method: "eth_createAccessList";
91
- Parameters: [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
92
- ReturnType: {
93
- accessList: import("viem").AccessList;
94
- gasUsed: `0x${string}`;
95
- };
96
- }, {
97
- Method: "eth_chainId";
98
- Parameters?: undefined;
99
- ReturnType: `0x${string}`;
100
- }, {
101
- Method: "eth_coinbase";
102
- Parameters?: undefined;
103
- ReturnType: `0x${string}`;
104
- }, {
105
- Method: "eth_estimateGas";
106
- 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];
107
- ReturnType: `0x${string}`;
108
- }, {
109
- Method: "eth_feeHistory";
110
- Parameters: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[]];
111
- ReturnType: import("viem").RpcFeeHistory;
112
- }, {
113
- Method: "eth_gasPrice";
114
- Parameters?: undefined;
115
- ReturnType: `0x${string}`;
116
- }, {
117
- Method: "eth_getBalance";
118
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
119
- ReturnType: `0x${string}`;
120
- }, {
121
- Method: "eth_getBlockByHash";
122
- Parameters: [hash: `0x${string}`, includeTransactionObjects: boolean];
123
- ReturnType: import("viem").RpcBlock;
124
- }, {
125
- Method: "eth_getBlockByNumber";
126
- Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
127
- ReturnType: import("viem").RpcBlock;
128
- }, {
129
- Method: "eth_getBlockTransactionCountByHash";
130
- Parameters: [hash: `0x${string}`];
131
- ReturnType: `0x${string}`;
132
- }, {
133
- Method: "eth_getBlockTransactionCountByNumber";
134
- Parameters: [block: `0x${string}` | import("viem").BlockTag];
135
- ReturnType: `0x${string}`;
136
- }, {
137
- Method: "eth_getCode";
138
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
139
- ReturnType: `0x${string}`;
140
- }, {
141
- Method: "eth_getFilterChanges";
142
- Parameters: [filterId: `0x${string}`];
143
- ReturnType: `0x${string}`[] | {
144
- address: `0x${string}`;
145
- blockHash: `0x${string}`;
146
- blockNumber: `0x${string}`;
147
- data: `0x${string}`;
148
- logIndex: `0x${string}`;
149
- transactionHash: `0x${string}`;
150
- transactionIndex: `0x${string}`;
151
- removed: boolean;
152
- }[];
153
- }, {
154
- Method: "eth_getFilterLogs";
155
- Parameters: [filterId: `0x${string}`];
156
- ReturnType: {
157
- address: `0x${string}`;
158
- blockHash: `0x${string}`;
159
- blockNumber: `0x${string}`;
160
- data: `0x${string}`;
161
- logIndex: `0x${string}`;
162
- transactionHash: `0x${string}`;
163
- transactionIndex: `0x${string}`;
164
- removed: boolean;
165
- }[];
166
- }, {
167
- Method: "eth_getLogs";
168
- Parameters: [{
169
- address?: `0x${string}` | `0x${string}`[];
170
- topics?: import("viem").LogTopic[];
171
- } & ({
172
- fromBlock?: `0x${string}` | import("viem").BlockTag;
173
- toBlock?: `0x${string}` | import("viem").BlockTag;
174
- blockHash?: undefined;
175
- } | {
176
- fromBlock?: undefined;
177
- toBlock?: undefined;
178
- blockHash?: `0x${string}`;
179
- })];
180
- ReturnType: {
181
- address: `0x${string}`;
182
- blockHash: `0x${string}`;
183
- blockNumber: `0x${string}`;
184
- data: `0x${string}`;
185
- logIndex: `0x${string}`;
186
- transactionHash: `0x${string}`;
187
- transactionIndex: `0x${string}`;
188
- removed: boolean;
189
- }[];
190
- }, {
191
- Method: "eth_getProof";
192
- Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag];
193
- ReturnType: import("viem").RpcProof;
194
- }, {
195
- Method: "eth_getStorageAt";
196
- Parameters: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
197
- ReturnType: `0x${string}`;
198
- }, {
199
- Method: "eth_getTransactionByBlockHashAndIndex";
200
- Parameters: [hash: `0x${string}`, index: `0x${string}`];
201
- ReturnType: import("viem").RpcTransaction;
202
- }, {
203
- Method: "eth_getTransactionByBlockNumberAndIndex";
204
- Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
205
- ReturnType: import("viem").RpcTransaction;
206
- }, {
207
- Method: "eth_getTransactionByHash";
208
- Parameters: [hash: `0x${string}`];
209
- ReturnType: import("viem").RpcTransaction;
210
- }, {
211
- Method: "eth_getTransactionCount";
212
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
213
- ReturnType: `0x${string}`;
214
- }, {
215
- Method: "eth_getTransactionReceipt";
216
- Parameters: [hash: `0x${string}`];
217
- ReturnType: import("viem").RpcTransactionReceipt;
218
- }, {
219
- Method: "eth_getUncleByBlockHashAndIndex";
220
- Parameters: [hash: `0x${string}`, index: `0x${string}`];
221
- ReturnType: import("viem").RpcUncle;
222
- }, {
223
- Method: "eth_getUncleByBlockNumberAndIndex";
224
- Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
225
- ReturnType: import("viem").RpcUncle;
226
- }, {
227
- Method: "eth_getUncleCountByBlockHash";
228
- Parameters: [hash: `0x${string}`];
229
- ReturnType: `0x${string}`;
230
- }, {
231
- Method: "eth_getUncleCountByBlockNumber";
232
- Parameters: [block: `0x${string}` | import("viem").BlockTag];
233
- ReturnType: `0x${string}`;
234
- }, {
235
- Method: "eth_maxPriorityFeePerGas";
236
- Parameters?: undefined;
237
- ReturnType: `0x${string}`;
238
- }, {
239
- Method: "eth_newBlockFilter";
240
- Parameters?: undefined;
241
- ReturnType: `0x${string}`;
242
- }, {
243
- Method: "eth_newFilter";
244
- Parameters: [filter: {
245
- fromBlock?: `0x${string}` | import("viem").BlockTag;
246
- toBlock?: `0x${string}` | import("viem").BlockTag;
247
- address?: `0x${string}` | `0x${string}`[];
248
- topics?: import("viem").LogTopic[];
249
- }];
250
- ReturnType: `0x${string}`;
251
- }, {
252
- Method: "eth_newPendingTransactionFilter";
253
- Parameters?: undefined;
254
- ReturnType: `0x${string}`;
255
- }, {
256
- Method: "eth_protocolVersion";
257
- Parameters?: undefined;
258
- ReturnType: string;
259
- }, {
260
- Method: "eth_sendRawTransaction";
261
- Parameters: [signedTransaction: `0x${string}`];
262
- ReturnType: `0x${string}`;
263
- }, {
264
- Method: "eth_simulateV1";
265
- Parameters: [{
266
- blockStateCalls: readonly {
267
- blockOverrides?: import("viem").RpcBlockOverrides;
268
- calls?: readonly import("viem").ExactPartial<import("viem").RpcTransactionRequest>[];
269
- stateOverrides?: import("viem").RpcStateOverride;
270
- }[];
271
- returnFullTransactions?: boolean;
272
- traceTransfers?: boolean;
273
- validation?: boolean;
274
- }, `0x${string}` | import("viem").BlockTag];
275
- ReturnType: readonly (import("viem").RpcBlock & {
276
- calls: readonly {
277
- error?: {
278
- data?: `0x${string}`;
279
- code: number;
280
- message: string;
281
- };
282
- logs?: readonly {
283
- address: `0x${string}`;
284
- blockHash: `0x${string}`;
285
- blockNumber: `0x${string}`;
286
- data: `0x${string}`;
287
- logIndex: `0x${string}`;
288
- transactionHash: `0x${string}`;
289
- transactionIndex: `0x${string}`;
290
- removed: boolean;
291
- }[];
292
- gasUsed: `0x${string}`;
293
- returnData: `0x${string}`;
294
- status: `0x${string}`;
295
- }[];
296
- })[];
297
- }, {
298
- Method: "eth_uninstallFilter";
299
- Parameters: [filterId: `0x${string}`];
300
- ReturnType: boolean;
301
- }, {
302
- Method: "eth_accounts";
303
- Parameters?: undefined;
304
- ReturnType: `0x${string}`[];
305
- }, {
306
- Method: "eth_chainId";
307
- Parameters?: undefined;
308
- ReturnType: `0x${string}`;
309
- }, {
310
- Method: "eth_estimateGas";
311
- 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];
312
- ReturnType: `0x${string}`;
313
- }, {
314
- Method: "eth_requestAccounts";
315
- Parameters?: undefined;
316
- ReturnType: `0x${string}`[];
317
- }, {
318
- Method: "eth_sendTransaction";
319
- Parameters: [transaction: import("viem").RpcTransactionRequest];
320
- ReturnType: `0x${string}`;
321
- }, {
322
- Method: "eth_sendRawTransaction";
323
- Parameters: [signedTransaction: `0x${string}`];
324
- ReturnType: `0x${string}`;
325
- }, {
326
- Method: "eth_sign";
327
- Parameters: [address: `0x${string}`, data: `0x${string}`];
328
- ReturnType: `0x${string}`;
329
- }, {
330
- Method: "eth_signTransaction";
331
- Parameters: [request: import("viem").RpcTransactionRequest];
332
- ReturnType: `0x${string}`;
333
- }, {
334
- Method: "eth_signTypedData_v4";
335
- Parameters: [address: `0x${string}`, message: string];
336
- ReturnType: `0x${string}`;
337
- }, {
338
- Method: "eth_syncing";
339
- Parameters?: undefined;
340
- ReturnType: false | import("viem").NetworkSync;
341
- }, {
342
- Method: "personal_sign";
343
- Parameters: [data: `0x${string}`, address: `0x${string}`];
344
- ReturnType: `0x${string}`;
345
- }, {
346
- Method: "wallet_addEthereumChain";
347
- Parameters: [chain: import("viem").AddEthereumChainParameter];
348
- ReturnType: null;
349
- }, {
350
- Method: "wallet_getCallsStatus";
351
- Parameters?: [string];
352
- ReturnType: import("viem").WalletGetCallsStatusReturnType<`0x${string}`, `0x${string}`>;
353
- }, {
354
- Method: "wallet_getCapabilities";
355
- Parameters?: [`0x${string}`];
356
- ReturnType: {
357
- [x: `0x${string}`]: import("viem").WalletCapabilities;
358
- };
359
- }, {
360
- Method: "wallet_getPermissions";
361
- Parameters?: undefined;
362
- ReturnType: import("viem").WalletPermission[];
363
- }, {
364
- Method: "wallet_grantPermissions";
365
- Parameters?: [import("viem").WalletGrantPermissionsParameters];
366
- ReturnType: {
367
- expiry: number;
368
- factory?: `0x${string}`;
369
- factoryData?: string;
370
- grantedPermissions: readonly {
371
- data: unknown;
372
- policies: readonly {
373
- data: unknown;
374
- type: string;
375
- }[];
376
- required?: boolean;
377
- type: string;
378
- }[];
379
- permissionsContext: string;
380
- signerData?: {
381
- userOpBuilder?: `0x${string}`;
382
- submitToAddress?: `0x${string}`;
383
- };
384
- };
385
- }, {
386
- Method: "wallet_requestPermissions";
387
- Parameters: [permissions: {
388
- eth_accounts: Record<string, any>;
389
- }];
390
- ReturnType: import("viem").WalletPermission[];
391
- }, {
392
- Method: "wallet_revokePermissions";
393
- Parameters: [permissions: {
394
- eth_accounts: Record<string, any>;
395
- }];
396
- ReturnType: null;
397
- }, {
398
- Method: "wallet_sendCalls";
399
- Parameters?: import("viem").WalletSendCallsParameters<import("viem").WalletCapabilities, `0x${string}`, `0x${string}`>;
400
- ReturnType: string;
401
- }, {
402
- Method: "wallet_sendTransaction";
403
- Parameters: [transaction: import("viem").RpcTransactionRequest];
404
- ReturnType: `0x${string}`;
405
- }, {
406
- Method: "wallet_showCallsStatus";
407
- Parameters?: [string];
408
- ReturnType: void;
409
- }, {
410
- Method: "wallet_switchEthereumChain";
411
- Parameters: [chain: {
412
- chainId: string;
413
- }];
414
- ReturnType: null;
415
- }, {
416
- Method: "wallet_watchAsset";
417
- Parameters: import("viem").WatchAssetParams;
418
- ReturnType: boolean;
419
- }, {
420
- Method: "eth_chainId";
421
- Parameters?: undefined;
422
- ReturnType: `0x${string}`;
423
- }, {
424
- Method: "eth_estimateUserOperationGas";
425
- Parameters: [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`] | [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`, stateOverrideSet: import("viem").RpcStateOverride];
426
- ReturnType: import("viem").RpcEstimateUserOperationGasReturnType;
427
- }, {
428
- Method: "eth_getUserOperationByHash";
429
- Parameters: [hash: `0x${string}`];
430
- ReturnType: import("viem").RpcGetUserOperationByHashReturnType;
431
- }, {
432
- Method: "eth_getUserOperationReceipt";
433
- Parameters: [hash: `0x${string}`];
434
- ReturnType: import("viem").RpcUserOperationReceipt;
435
- }, {
436
- Method: "eth_sendUserOperation";
437
- Parameters: [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`];
438
- ReturnType: `0x${string}`;
439
- }, {
440
- Method: "eth_supportedEntryPoints";
441
- Parameters?: undefined;
442
- ReturnType: readonly `0x${string}`[];
443
- }, {
444
- Method: "pm_getPaymasterStubData";
445
- Parameters?: [userOperation: import("viem").OneOf<import("viem").PartialBy<Pick<{
446
- callData: `0x${string}`;
447
- callGasLimit: `0x${string}`;
448
- initCode?: `0x${string}`;
449
- maxFeePerGas: `0x${string}`;
450
- maxPriorityFeePerGas: `0x${string}`;
451
- nonce: `0x${string}`;
452
- paymasterAndData?: `0x${string}`;
453
- preVerificationGas: `0x${string}`;
454
- sender: `0x${string}`;
455
- signature: `0x${string}`;
456
- verificationGasLimit: `0x${string}`;
457
- }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "preVerificationGas" | "sender" | "verificationGasLimit" | "initCode">, "maxFeePerGas" | "maxPriorityFeePerGas" | "callGasLimit" | "preVerificationGas" | "verificationGasLimit" | "initCode"> | import("viem").PartialBy<Pick<{
458
- callData: `0x${string}`;
459
- callGasLimit: `0x${string}`;
460
- factory?: `0x${string}`;
461
- factoryData?: `0x${string}`;
462
- maxFeePerGas: `0x${string}`;
463
- maxPriorityFeePerGas: `0x${string}`;
464
- nonce: `0x${string}`;
465
- paymaster?: `0x${string}`;
466
- paymasterData?: `0x${string}`;
467
- paymasterPostOpGasLimit?: `0x${string}`;
468
- paymasterVerificationGasLimit?: `0x${string}`;
469
- preVerificationGas: `0x${string}`;
470
- sender: `0x${string}`;
471
- signature: `0x${string}`;
472
- verificationGasLimit: `0x${string}`;
473
- }, "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];
474
- ReturnType: import("viem").OneOf<{
475
- paymasterAndData: `0x${string}`;
476
- } | {
477
- paymaster: `0x${string}`;
478
- paymasterData: `0x${string}`;
479
- paymasterVerificationGasLimit: `0x${string}`;
480
- paymasterPostOpGasLimit: `0x${string}`;
481
- }> & {
482
- sponsor?: {
483
- name: string;
484
- icon?: string;
485
- };
486
- isFinal?: boolean;
487
- };
488
- }, {
489
- Method: "pm_getPaymasterData";
490
- Parameters?: [userOperation: Pick<{
491
- callData: `0x${string}`;
492
- callGasLimit: `0x${string}`;
493
- initCode?: `0x${string}`;
494
- maxFeePerGas: `0x${string}`;
495
- maxPriorityFeePerGas: `0x${string}`;
496
- nonce: `0x${string}`;
497
- paymasterAndData?: `0x${string}`;
498
- preVerificationGas: `0x${string}`;
499
- sender: `0x${string}`;
500
- signature: `0x${string}`;
501
- verificationGasLimit: `0x${string}`;
502
- }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "preVerificationGas" | "sender" | "verificationGasLimit" | "initCode"> | Pick<{
503
- callData: `0x${string}`;
504
- callGasLimit: `0x${string}`;
505
- factory?: `0x${string}`;
506
- factoryData?: `0x${string}`;
507
- maxFeePerGas: `0x${string}`;
508
- maxPriorityFeePerGas: `0x${string}`;
509
- nonce: `0x${string}`;
510
- paymaster?: `0x${string}`;
511
- paymasterData?: `0x${string}`;
512
- paymasterPostOpGasLimit?: `0x${string}`;
513
- paymasterVerificationGasLimit?: `0x${string}`;
514
- preVerificationGas: `0x${string}`;
515
- sender: `0x${string}`;
516
- signature: `0x${string}`;
517
- verificationGasLimit: `0x${string}`;
518
- }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "factory" | "factoryData" | "preVerificationGas" | "sender" | "verificationGasLimit">, entrypoint: `0x${string}`, chainId: `0x${string}`, context: unknown];
519
- ReturnType: import("viem").OneOf<{
520
- paymasterAndData: `0x${string}`;
521
- } | {
522
- paymaster: `0x${string}`;
523
- paymasterData: `0x${string}`;
524
- paymasterVerificationGasLimit: `0x${string}`;
525
- paymasterPostOpGasLimit: `0x${string}`;
526
- }>;
527
- }], false>;
528
- isApexWallet?: true;
529
- isAvalanche?: true;
530
- isBackpack?: true;
531
- isBifrost?: true;
532
- isBitKeep?: true;
533
- isBitski?: true;
534
- isBlockWallet?: true;
535
- isBraveWallet?: true;
536
- isCoinbaseWallet?: true;
537
- isDawn?: true;
538
- isEnkrypt?: true;
539
- isExodus?: true;
540
- isFrame?: true;
541
- isFrontier?: true;
542
- isGamestop?: true;
543
- isHyperPay?: true;
544
- isImToken?: true;
545
- isKuCoinWallet?: true;
546
- isMathWallet?: true;
547
- isMetaMask?: true;
548
- isOkxWallet?: true;
549
- isOKExWallet?: true;
550
- isOneInchAndroidWallet?: true;
551
- isOneInchIOSWallet?: true;
552
- isOpera?: true;
553
- isPhantom?: true;
554
- isPortal?: true;
555
- isRabby?: true;
556
- isRainbow?: true;
557
- isStatus?: true;
558
- isTally?: true;
559
- isTokenPocket?: true;
560
- isTokenary?: true;
561
- isTrust?: true;
562
- isTrustWallet?: true;
563
- isUniswapWallet?: true;
564
- isXDEFI?: true;
565
- isZerion?: true;
56
+ removeListener: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
57
+ request: import("viem").EIP1193RequestFn<import("viem").EIP1474Methods>;
58
+ isApexWallet?: true | undefined;
59
+ isAvalanche?: true | undefined;
60
+ isBackpack?: true | undefined;
61
+ isBifrost?: true | undefined;
62
+ isBitKeep?: true | undefined;
63
+ isBitski?: true | undefined;
64
+ isBlockWallet?: true | undefined;
65
+ isBraveWallet?: true | undefined;
66
+ isCoinbaseWallet?: true | undefined;
67
+ isDawn?: true | undefined;
68
+ isEnkrypt?: true | undefined;
69
+ isExodus?: true | undefined;
70
+ isFrame?: true | undefined;
71
+ isFrontier?: true | undefined;
72
+ isGamestop?: true | undefined;
73
+ isHyperPay?: true | undefined;
74
+ isImToken?: true | undefined;
75
+ isKuCoinWallet?: true | undefined;
76
+ isMathWallet?: true | undefined;
77
+ isMetaMask?: true | undefined;
78
+ isOkxWallet?: true | undefined;
79
+ isOKExWallet?: true | undefined;
80
+ isOneInchAndroidWallet?: true | undefined;
81
+ isOneInchIOSWallet?: true | undefined;
82
+ isOpera?: true | undefined;
83
+ isPhantom?: true | undefined;
84
+ isPortal?: true | undefined;
85
+ isRabby?: true | undefined;
86
+ isRainbow?: true | undefined;
87
+ isStatus?: true | undefined;
88
+ isTally?: true | undefined;
89
+ isTokenPocket?: true | undefined;
90
+ isTokenary?: true | undefined;
91
+ isTrust?: true | undefined;
92
+ isTrustWallet?: true | undefined;
93
+ isUniswapWallet?: true | undefined;
94
+ isXDEFI?: true | undefined;
95
+ isZerion?: true | undefined;
566
96
  providers?: {
567
- on: <event_2 extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
568
- removeListener: <event_3 extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
569
- request: import("viem").EIP1193RequestFn<[{
570
- Method: "web3_clientVersion";
571
- Parameters?: undefined;
572
- ReturnType: string;
573
- }, {
574
- Method: "web3_sha3";
575
- Parameters: [data: `0x${string}`];
576
- ReturnType: string;
577
- }, {
578
- Method: "net_listening";
579
- Parameters?: undefined;
580
- ReturnType: boolean;
581
- }, {
582
- Method: "net_peerCount";
583
- Parameters?: undefined;
584
- ReturnType: `0x${string}`;
585
- }, {
586
- Method: "net_version";
587
- Parameters?: undefined;
588
- ReturnType: `0x${string}`;
589
- }, {
590
- Method: "eth_blobBaseFee";
591
- Parameters?: undefined;
592
- ReturnType: `0x${string}`;
593
- }, {
594
- Method: "eth_blockNumber";
595
- Parameters?: undefined;
596
- ReturnType: `0x${string}`;
597
- }, {
598
- Method: "eth_call";
599
- 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];
600
- ReturnType: `0x${string}`;
601
- }, {
602
- Method: "eth_createAccessList";
603
- Parameters: [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
604
- ReturnType: {
605
- accessList: import("viem").AccessList;
606
- gasUsed: `0x${string}`;
607
- };
608
- }, {
609
- Method: "eth_chainId";
610
- Parameters?: undefined;
611
- ReturnType: `0x${string}`;
612
- }, {
613
- Method: "eth_coinbase";
614
- Parameters?: undefined;
615
- ReturnType: `0x${string}`;
616
- }, {
617
- Method: "eth_estimateGas";
618
- 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];
619
- ReturnType: `0x${string}`;
620
- }, {
621
- Method: "eth_feeHistory";
622
- Parameters: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[]];
623
- ReturnType: import("viem").RpcFeeHistory;
624
- }, {
625
- Method: "eth_gasPrice";
626
- Parameters?: undefined;
627
- ReturnType: `0x${string}`;
628
- }, {
629
- Method: "eth_getBalance";
630
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
631
- ReturnType: `0x${string}`;
632
- }, {
633
- Method: "eth_getBlockByHash";
634
- Parameters: [hash: `0x${string}`, includeTransactionObjects: boolean];
635
- ReturnType: import("viem").RpcBlock;
636
- }, {
637
- Method: "eth_getBlockByNumber";
638
- Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
639
- ReturnType: import("viem").RpcBlock;
640
- }, {
641
- Method: "eth_getBlockTransactionCountByHash";
642
- Parameters: [hash: `0x${string}`];
643
- ReturnType: `0x${string}`;
644
- }, {
645
- Method: "eth_getBlockTransactionCountByNumber";
646
- Parameters: [block: `0x${string}` | import("viem").BlockTag];
647
- ReturnType: `0x${string}`;
648
- }, {
649
- Method: "eth_getCode";
650
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
651
- ReturnType: `0x${string}`;
652
- }, {
653
- Method: "eth_getFilterChanges";
654
- Parameters: [filterId: `0x${string}`];
655
- ReturnType: `0x${string}`[] | {
656
- address: `0x${string}`;
657
- blockHash: `0x${string}`;
658
- blockNumber: `0x${string}`;
659
- data: `0x${string}`;
660
- logIndex: `0x${string}`;
661
- transactionHash: `0x${string}`;
662
- transactionIndex: `0x${string}`;
663
- removed: boolean;
664
- }[];
665
- }, {
666
- Method: "eth_getFilterLogs";
667
- Parameters: [filterId: `0x${string}`];
668
- ReturnType: {
669
- address: `0x${string}`;
670
- blockHash: `0x${string}`;
671
- blockNumber: `0x${string}`;
672
- data: `0x${string}`;
673
- logIndex: `0x${string}`;
674
- transactionHash: `0x${string}`;
675
- transactionIndex: `0x${string}`;
676
- removed: boolean;
677
- }[];
678
- }, {
679
- Method: "eth_getLogs";
680
- Parameters: [{
681
- address?: `0x${string}` | `0x${string}`[];
682
- topics?: import("viem").LogTopic[];
683
- } & ({
684
- fromBlock?: `0x${string}` | import("viem").BlockTag;
685
- toBlock?: `0x${string}` | import("viem").BlockTag;
686
- blockHash?: undefined;
687
- } | {
688
- fromBlock?: undefined;
689
- toBlock?: undefined;
690
- blockHash?: `0x${string}`;
691
- })];
692
- ReturnType: {
693
- address: `0x${string}`;
694
- blockHash: `0x${string}`;
695
- blockNumber: `0x${string}`;
696
- data: `0x${string}`;
697
- logIndex: `0x${string}`;
698
- transactionHash: `0x${string}`;
699
- transactionIndex: `0x${string}`;
700
- removed: boolean;
701
- }[];
702
- }, {
703
- Method: "eth_getProof";
704
- Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag];
705
- ReturnType: import("viem").RpcProof;
706
- }, {
707
- Method: "eth_getStorageAt";
708
- Parameters: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
709
- ReturnType: `0x${string}`;
710
- }, {
711
- Method: "eth_getTransactionByBlockHashAndIndex";
712
- Parameters: [hash: `0x${string}`, index: `0x${string}`];
713
- ReturnType: import("viem").RpcTransaction;
714
- }, {
715
- Method: "eth_getTransactionByBlockNumberAndIndex";
716
- Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
717
- ReturnType: import("viem").RpcTransaction;
718
- }, {
719
- Method: "eth_getTransactionByHash";
720
- Parameters: [hash: `0x${string}`];
721
- ReturnType: import("viem").RpcTransaction;
722
- }, {
723
- Method: "eth_getTransactionCount";
724
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
725
- ReturnType: `0x${string}`;
726
- }, {
727
- Method: "eth_getTransactionReceipt";
728
- Parameters: [hash: `0x${string}`];
729
- ReturnType: import("viem").RpcTransactionReceipt;
730
- }, {
731
- Method: "eth_getUncleByBlockHashAndIndex";
732
- Parameters: [hash: `0x${string}`, index: `0x${string}`];
733
- ReturnType: import("viem").RpcUncle;
734
- }, {
735
- Method: "eth_getUncleByBlockNumberAndIndex";
736
- Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
737
- ReturnType: import("viem").RpcUncle;
738
- }, {
739
- Method: "eth_getUncleCountByBlockHash";
740
- Parameters: [hash: `0x${string}`];
741
- ReturnType: `0x${string}`;
742
- }, {
743
- Method: "eth_getUncleCountByBlockNumber";
744
- Parameters: [block: `0x${string}` | import("viem").BlockTag];
745
- ReturnType: `0x${string}`;
746
- }, {
747
- Method: "eth_maxPriorityFeePerGas";
748
- Parameters?: undefined;
749
- ReturnType: `0x${string}`;
750
- }, {
751
- Method: "eth_newBlockFilter";
752
- Parameters?: undefined;
753
- ReturnType: `0x${string}`;
754
- }, {
755
- Method: "eth_newFilter";
756
- Parameters: [filter: {
757
- fromBlock?: `0x${string}` | import("viem").BlockTag;
758
- toBlock?: `0x${string}` | import("viem").BlockTag;
759
- address?: `0x${string}` | `0x${string}`[];
760
- topics?: import("viem").LogTopic[];
761
- }];
762
- ReturnType: `0x${string}`;
763
- }, {
764
- Method: "eth_newPendingTransactionFilter";
765
- Parameters?: undefined;
766
- ReturnType: `0x${string}`;
767
- }, {
768
- Method: "eth_protocolVersion";
769
- Parameters?: undefined;
770
- ReturnType: string;
771
- }, {
772
- Method: "eth_sendRawTransaction";
773
- Parameters: [signedTransaction: `0x${string}`];
774
- ReturnType: `0x${string}`;
775
- }, {
776
- Method: "eth_simulateV1";
777
- Parameters: [{
778
- blockStateCalls: readonly {
779
- blockOverrides?: import("viem").RpcBlockOverrides;
780
- calls?: readonly import("viem").ExactPartial<import("viem").RpcTransactionRequest>[];
781
- stateOverrides?: import("viem").RpcStateOverride;
782
- }[];
783
- returnFullTransactions?: boolean;
784
- traceTransfers?: boolean;
785
- validation?: boolean;
786
- }, `0x${string}` | import("viem").BlockTag];
787
- ReturnType: readonly (import("viem").RpcBlock & {
788
- calls: readonly {
789
- error?: {
790
- data?: `0x${string}`;
791
- code: number;
792
- message: string;
793
- };
794
- logs?: readonly {
795
- address: `0x${string}`;
796
- blockHash: `0x${string}`;
797
- blockNumber: `0x${string}`;
798
- data: `0x${string}`;
799
- logIndex: `0x${string}`;
800
- transactionHash: `0x${string}`;
801
- transactionIndex: `0x${string}`;
802
- removed: boolean;
803
- }[];
804
- gasUsed: `0x${string}`;
805
- returnData: `0x${string}`;
806
- status: `0x${string}`;
807
- }[];
808
- })[];
809
- }, {
810
- Method: "eth_uninstallFilter";
811
- Parameters: [filterId: `0x${string}`];
812
- ReturnType: boolean;
813
- }, {
814
- Method: "eth_accounts";
815
- Parameters?: undefined;
816
- ReturnType: `0x${string}`[];
817
- }, {
818
- Method: "eth_chainId";
819
- Parameters?: undefined;
820
- ReturnType: `0x${string}`;
821
- }, {
822
- Method: "eth_estimateGas";
823
- 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];
824
- ReturnType: `0x${string}`;
825
- }, {
826
- Method: "eth_requestAccounts";
827
- Parameters?: undefined;
828
- ReturnType: `0x${string}`[];
829
- }, {
830
- Method: "eth_sendTransaction";
831
- Parameters: [transaction: import("viem").RpcTransactionRequest];
832
- ReturnType: `0x${string}`;
833
- }, {
834
- Method: "eth_sendRawTransaction";
835
- Parameters: [signedTransaction: `0x${string}`];
836
- ReturnType: `0x${string}`;
837
- }, {
838
- Method: "eth_sign";
839
- Parameters: [address: `0x${string}`, data: `0x${string}`];
840
- ReturnType: `0x${string}`;
841
- }, {
842
- Method: "eth_signTransaction";
843
- Parameters: [request: import("viem").RpcTransactionRequest];
844
- ReturnType: `0x${string}`;
845
- }, {
846
- Method: "eth_signTypedData_v4";
847
- Parameters: [address: `0x${string}`, message: string];
848
- ReturnType: `0x${string}`;
849
- }, {
850
- Method: "eth_syncing";
851
- Parameters?: undefined;
852
- ReturnType: false | import("viem").NetworkSync;
853
- }, {
854
- Method: "personal_sign";
855
- Parameters: [data: `0x${string}`, address: `0x${string}`];
856
- ReturnType: `0x${string}`;
857
- }, {
858
- Method: "wallet_addEthereumChain";
859
- Parameters: [chain: import("viem").AddEthereumChainParameter];
860
- ReturnType: null;
861
- }, {
862
- Method: "wallet_getCallsStatus";
863
- Parameters?: [string];
864
- ReturnType: import("viem").WalletGetCallsStatusReturnType<`0x${string}`, `0x${string}`>;
865
- }, {
866
- Method: "wallet_getCapabilities";
867
- Parameters?: [`0x${string}`];
868
- ReturnType: {
869
- [x: `0x${string}`]: import("viem").WalletCapabilities;
870
- };
871
- }, {
872
- Method: "wallet_getPermissions";
873
- Parameters?: undefined;
874
- ReturnType: import("viem").WalletPermission[];
875
- }, {
876
- Method: "wallet_grantPermissions";
877
- Parameters?: [import("viem").WalletGrantPermissionsParameters];
878
- ReturnType: {
879
- expiry: number;
880
- factory?: `0x${string}`;
881
- factoryData?: string;
882
- grantedPermissions: readonly {
883
- data: unknown;
884
- policies: readonly {
885
- data: unknown;
886
- type: string;
887
- }[];
888
- required?: boolean;
889
- type: string;
890
- }[];
891
- permissionsContext: string;
892
- signerData?: {
893
- userOpBuilder?: `0x${string}`;
894
- submitToAddress?: `0x${string}`;
895
- };
896
- };
897
- }, {
898
- Method: "wallet_requestPermissions";
899
- Parameters: [permissions: {
900
- eth_accounts: Record<string, any>;
901
- }];
902
- ReturnType: import("viem").WalletPermission[];
903
- }, {
904
- Method: "wallet_revokePermissions";
905
- Parameters: [permissions: {
906
- eth_accounts: Record<string, any>;
907
- }];
908
- ReturnType: null;
909
- }, {
910
- Method: "wallet_sendCalls";
911
- Parameters?: import("viem").WalletSendCallsParameters<import("viem").WalletCapabilities, `0x${string}`, `0x${string}`>;
912
- ReturnType: string;
913
- }, {
914
- Method: "wallet_sendTransaction";
915
- Parameters: [transaction: import("viem").RpcTransactionRequest];
916
- ReturnType: `0x${string}`;
917
- }, {
918
- Method: "wallet_showCallsStatus";
919
- Parameters?: [string];
920
- ReturnType: void;
921
- }, {
922
- Method: "wallet_switchEthereumChain";
923
- Parameters: [chain: {
924
- chainId: string;
925
- }];
926
- ReturnType: null;
927
- }, {
928
- Method: "wallet_watchAsset";
929
- Parameters: import("viem").WatchAssetParams;
930
- ReturnType: boolean;
931
- }, {
932
- Method: "eth_chainId";
933
- Parameters?: undefined;
934
- ReturnType: `0x${string}`;
935
- }, {
936
- Method: "eth_estimateUserOperationGas";
937
- Parameters: [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`] | [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`, stateOverrideSet: import("viem").RpcStateOverride];
938
- ReturnType: import("viem").RpcEstimateUserOperationGasReturnType;
939
- }, {
940
- Method: "eth_getUserOperationByHash";
941
- Parameters: [hash: `0x${string}`];
942
- ReturnType: import("viem").RpcGetUserOperationByHashReturnType;
943
- }, {
944
- Method: "eth_getUserOperationReceipt";
945
- Parameters: [hash: `0x${string}`];
946
- ReturnType: import("viem").RpcUserOperationReceipt;
947
- }, {
948
- Method: "eth_sendUserOperation";
949
- Parameters: [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`];
950
- ReturnType: `0x${string}`;
951
- }, {
952
- Method: "eth_supportedEntryPoints";
953
- Parameters?: undefined;
954
- ReturnType: readonly `0x${string}`[];
955
- }, {
956
- Method: "pm_getPaymasterStubData";
957
- Parameters?: [userOperation: import("viem").OneOf<import("viem").PartialBy<Pick<{
958
- callData: `0x${string}`;
959
- callGasLimit: `0x${string}`;
960
- initCode?: `0x${string}`;
961
- maxFeePerGas: `0x${string}`;
962
- maxPriorityFeePerGas: `0x${string}`;
963
- nonce: `0x${string}`;
964
- paymasterAndData?: `0x${string}`;
965
- preVerificationGas: `0x${string}`;
966
- sender: `0x${string}`;
967
- signature: `0x${string}`;
968
- verificationGasLimit: `0x${string}`;
969
- }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "preVerificationGas" | "sender" | "verificationGasLimit" | "initCode">, "maxFeePerGas" | "maxPriorityFeePerGas" | "callGasLimit" | "preVerificationGas" | "verificationGasLimit" | "initCode"> | import("viem").PartialBy<Pick<{
970
- callData: `0x${string}`;
971
- callGasLimit: `0x${string}`;
972
- factory?: `0x${string}`;
973
- factoryData?: `0x${string}`;
974
- maxFeePerGas: `0x${string}`;
975
- maxPriorityFeePerGas: `0x${string}`;
976
- nonce: `0x${string}`;
977
- paymaster?: `0x${string}`;
978
- paymasterData?: `0x${string}`;
979
- paymasterPostOpGasLimit?: `0x${string}`;
980
- paymasterVerificationGasLimit?: `0x${string}`;
981
- preVerificationGas: `0x${string}`;
982
- sender: `0x${string}`;
983
- signature: `0x${string}`;
984
- verificationGasLimit: `0x${string}`;
985
- }, "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];
986
- ReturnType: import("viem").OneOf<{
987
- paymasterAndData: `0x${string}`;
988
- } | {
989
- paymaster: `0x${string}`;
990
- paymasterData: `0x${string}`;
991
- paymasterVerificationGasLimit: `0x${string}`;
992
- paymasterPostOpGasLimit: `0x${string}`;
993
- }> & {
994
- sponsor?: {
995
- name: string;
996
- icon?: string;
997
- };
998
- isFinal?: boolean;
999
- };
1000
- }, {
1001
- Method: "pm_getPaymasterData";
1002
- Parameters?: [userOperation: Pick<{
1003
- callData: `0x${string}`;
1004
- callGasLimit: `0x${string}`;
1005
- initCode?: `0x${string}`;
1006
- maxFeePerGas: `0x${string}`;
1007
- maxPriorityFeePerGas: `0x${string}`;
1008
- nonce: `0x${string}`;
1009
- paymasterAndData?: `0x${string}`;
1010
- preVerificationGas: `0x${string}`;
1011
- sender: `0x${string}`;
1012
- signature: `0x${string}`;
1013
- verificationGasLimit: `0x${string}`;
1014
- }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "preVerificationGas" | "sender" | "verificationGasLimit" | "initCode"> | Pick<{
1015
- callData: `0x${string}`;
1016
- callGasLimit: `0x${string}`;
1017
- factory?: `0x${string}`;
1018
- factoryData?: `0x${string}`;
1019
- maxFeePerGas: `0x${string}`;
1020
- maxPriorityFeePerGas: `0x${string}`;
1021
- nonce: `0x${string}`;
1022
- paymaster?: `0x${string}`;
1023
- paymasterData?: `0x${string}`;
1024
- paymasterPostOpGasLimit?: `0x${string}`;
1025
- paymasterVerificationGasLimit?: `0x${string}`;
1026
- preVerificationGas: `0x${string}`;
1027
- sender: `0x${string}`;
1028
- signature: `0x${string}`;
1029
- verificationGasLimit: `0x${string}`;
1030
- }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "factory" | "factoryData" | "preVerificationGas" | "sender" | "verificationGasLimit">, entrypoint: `0x${string}`, chainId: `0x${string}`, context: unknown];
1031
- ReturnType: import("viem").OneOf<{
1032
- paymasterAndData: `0x${string}`;
1033
- } | {
1034
- paymaster: `0x${string}`;
1035
- paymasterData: `0x${string}`;
1036
- paymasterVerificationGasLimit: `0x${string}`;
1037
- paymasterPostOpGasLimit: `0x${string}`;
1038
- }>;
1039
- }], false>;
97
+ on: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
98
+ removeListener: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
99
+ request: import("viem").EIP1193RequestFn<import("viem").EIP1474Methods>;
1040
100
  isApexWallet?: true;
1041
101
  isAvalanche?: true;
1042
102
  isBackpack?: true;
@@ -1075,41 +135,41 @@ export declare const createParaConnector: ({ para, chains: _chains, disableModal
1075
135
  isUniswapWallet?: true;
1076
136
  isXDEFI?: true;
1077
137
  isZerion?: true;
1078
- providers?: any[];
138
+ providers?: /*elided*/ any[];
1079
139
  _events?: {
1080
- connect?: () => void;
1081
- };
140
+ connect?: (() => void) | undefined;
141
+ } | undefined;
1082
142
  _state?: {
1083
143
  accounts?: string[];
1084
144
  initialized?: boolean;
1085
145
  isConnected?: boolean;
1086
146
  isPermanentlyDisconnected?: boolean;
1087
147
  isUnlocked?: boolean;
1088
- };
148
+ } | undefined;
1089
149
  }[];
1090
150
  _events?: {
1091
- connect?: () => void;
1092
- };
151
+ connect?: (() => void) | undefined;
152
+ } | undefined;
1093
153
  _state?: {
1094
154
  accounts?: string[];
1095
155
  initialized?: boolean;
1096
156
  isConnected?: boolean;
1097
157
  isPermanentlyDisconnected?: boolean;
1098
158
  isUnlocked?: boolean;
1099
- };
159
+ } | undefined;
1100
160
  }>;
1101
161
  getClient?: (parameters?: {
1102
- chainId?: number;
1103
- }) => Promise<never>;
162
+ chainId?: number | undefined;
163
+ } | undefined) => Promise<import("viem").Client>;
1104
164
  isAuthorized: () => Promise<boolean>;
1105
- switchChain?: (parameters: {
1106
- addEthereumChainParameter?: import("@wagmi/core/internal").ExactPartial<import("@wagmi/core/internal").Omit<import("viem").AddEthereumChainParameter, "chainId">>;
165
+ switchChain?: (parameters: import("@wagmi/core/internal").Compute<{
166
+ addEthereumChainParameter?: import("@wagmi/core/internal").ExactPartial<import("@wagmi/core/internal").Omit<import("viem").AddEthereumChainParameter, "chainId">> | undefined;
1107
167
  chainId: number;
1108
- }) => Promise<Chain>;
168
+ }>) => Promise<Chain>;
1109
169
  onAccountsChanged: (accounts: string[]) => void;
1110
170
  onChainChanged: (chainId: string) => void;
1111
171
  onConnect: ((connectInfo: import("viem").ProviderConnectInfo) => void) & ((connectInfo: import("viem").ProviderConnectInfo) => void);
1112
- onDisconnect: (error?: Error) => void;
172
+ onDisconnect: (error?: Error | undefined) => void;
1113
173
  onMessage?: (message: import("viem").ProviderMessage) => void;
1114
174
  };
1115
175
  export declare const paraConnector: (opts: ParaConnectorOpts) => (config: {
@@ -1117,1017 +177,77 @@ export declare const paraConnector: (opts: ParaConnectorOpts) => (config: {
1117
177
  emitter: import("@wagmi/core/internal").Emitter<import("wagmi").ConnectorEventMap>;
1118
178
  storage?: {
1119
179
  key: string;
1120
- getItem: <key extends string, value extends (import("@wagmi/core").StorageItemMap & Record<string, unknown>)[key], defaultValue extends value>(key: key, defaultValue?: defaultValue) => (defaultValue extends null ? value : value) | Promise<defaultValue extends null ? value : value>;
180
+ getItem: <key_1 extends string, value extends (import("@wagmi/core").StorageItemMap & Record<string, unknown>)[key_1], defaultValue_1 extends value>(key: key_1, defaultValue?: defaultValue_1) => (defaultValue_1 extends null ? value : value) | Promise<defaultValue_1 extends null ? value : value>;
1121
181
  setItem: <key_1 extends string, value_1 extends (import("@wagmi/core").StorageItemMap & Record<string, unknown>)[key_1]>(key: key_1, value: value_1) => void | Promise<void>;
1122
182
  removeItem: (key: string) => void | Promise<void>;
1123
183
  };
1124
- transports?: Record<number, import("wagmi").Transport>;
184
+ transports?: Record<number, import("wagmi").Transport> | undefined;
1125
185
  }) => {
1126
186
  type: string;
1127
187
  name: string;
1128
188
  icon: string;
1129
189
  disconnect: () => Promise<void>;
1130
190
  id: string;
1131
- rdns?: string | readonly string[];
1132
- supportsSimulation?: boolean;
191
+ rdns?: string | readonly string[] | undefined;
192
+ supportsSimulation?: boolean | undefined;
1133
193
  setup?: () => Promise<void>;
1134
194
  connect: (parameters?: {
1135
- chainId?: number;
1136
- isReconnecting?: boolean;
1137
- }) => Promise<{
1138
- accounts: readonly `0x${string}`[];
195
+ chainId?: number | undefined;
196
+ isReconnecting?: boolean | undefined;
197
+ } | undefined) => Promise<{
198
+ accounts: readonly import("viem").Address[];
1139
199
  chainId: number;
1140
200
  }>;
1141
- getAccounts: () => Promise<readonly `0x${string}`[]>;
201
+ getAccounts: () => Promise<readonly import("viem").Address[]>;
1142
202
  getChainId: () => Promise<number>;
1143
203
  getProvider: (parameters?: {
1144
- chainId?: number;
1145
- }) => Promise<{
204
+ chainId?: number | undefined;
205
+ } | undefined) => Promise<{
1146
206
  on: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
1147
- removeListener: <event_1 extends keyof import("viem").EIP1193EventMap>(event: event_1, listener: import("viem").EIP1193EventMap[event_1]) => void;
1148
- request: import("viem").EIP1193RequestFn<[{
1149
- Method: "web3_clientVersion";
1150
- Parameters?: undefined;
1151
- ReturnType: string;
1152
- }, {
1153
- Method: "web3_sha3";
1154
- Parameters: [data: `0x${string}`];
1155
- ReturnType: string;
1156
- }, {
1157
- Method: "net_listening";
1158
- Parameters?: undefined;
1159
- ReturnType: boolean;
1160
- }, {
1161
- Method: "net_peerCount";
1162
- Parameters?: undefined;
1163
- ReturnType: `0x${string}`;
1164
- }, {
1165
- Method: "net_version";
1166
- Parameters?: undefined;
1167
- ReturnType: `0x${string}`;
1168
- }, {
1169
- Method: "eth_blobBaseFee";
1170
- Parameters?: undefined;
1171
- ReturnType: `0x${string}`;
1172
- }, {
1173
- Method: "eth_blockNumber";
1174
- Parameters?: undefined;
1175
- ReturnType: `0x${string}`;
1176
- }, {
1177
- Method: "eth_call";
1178
- 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];
1179
- ReturnType: `0x${string}`;
1180
- }, {
1181
- Method: "eth_createAccessList";
1182
- Parameters: [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1183
- ReturnType: {
1184
- accessList: import("viem").AccessList;
1185
- gasUsed: `0x${string}`;
1186
- };
1187
- }, {
1188
- Method: "eth_chainId";
1189
- Parameters?: undefined;
1190
- ReturnType: `0x${string}`;
1191
- }, {
1192
- Method: "eth_coinbase";
1193
- Parameters?: undefined;
1194
- ReturnType: `0x${string}`;
1195
- }, {
1196
- Method: "eth_estimateGas";
1197
- 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];
1198
- ReturnType: `0x${string}`;
1199
- }, {
1200
- Method: "eth_feeHistory";
1201
- Parameters: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[]];
1202
- ReturnType: import("viem").RpcFeeHistory;
1203
- }, {
1204
- Method: "eth_gasPrice";
1205
- Parameters?: undefined;
1206
- ReturnType: `0x${string}`;
1207
- }, {
1208
- Method: "eth_getBalance";
1209
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1210
- ReturnType: `0x${string}`;
1211
- }, {
1212
- Method: "eth_getBlockByHash";
1213
- Parameters: [hash: `0x${string}`, includeTransactionObjects: boolean];
1214
- ReturnType: import("viem").RpcBlock;
1215
- }, {
1216
- Method: "eth_getBlockByNumber";
1217
- Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
1218
- ReturnType: import("viem").RpcBlock;
1219
- }, {
1220
- Method: "eth_getBlockTransactionCountByHash";
1221
- Parameters: [hash: `0x${string}`];
1222
- ReturnType: `0x${string}`;
1223
- }, {
1224
- Method: "eth_getBlockTransactionCountByNumber";
1225
- Parameters: [block: `0x${string}` | import("viem").BlockTag];
1226
- ReturnType: `0x${string}`;
1227
- }, {
1228
- Method: "eth_getCode";
1229
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1230
- ReturnType: `0x${string}`;
1231
- }, {
1232
- Method: "eth_getFilterChanges";
1233
- Parameters: [filterId: `0x${string}`];
1234
- ReturnType: `0x${string}`[] | {
1235
- address: `0x${string}`;
1236
- blockHash: `0x${string}`;
1237
- blockNumber: `0x${string}`;
1238
- data: `0x${string}`;
1239
- logIndex: `0x${string}`;
1240
- transactionHash: `0x${string}`;
1241
- transactionIndex: `0x${string}`;
1242
- removed: boolean;
1243
- }[];
1244
- }, {
1245
- Method: "eth_getFilterLogs";
1246
- Parameters: [filterId: `0x${string}`];
1247
- ReturnType: {
1248
- address: `0x${string}`;
1249
- blockHash: `0x${string}`;
1250
- blockNumber: `0x${string}`;
1251
- data: `0x${string}`;
1252
- logIndex: `0x${string}`;
1253
- transactionHash: `0x${string}`;
1254
- transactionIndex: `0x${string}`;
1255
- removed: boolean;
1256
- }[];
1257
- }, {
1258
- Method: "eth_getLogs";
1259
- Parameters: [{
1260
- address?: `0x${string}` | `0x${string}`[];
1261
- topics?: import("viem").LogTopic[];
1262
- } & ({
1263
- fromBlock?: `0x${string}` | import("viem").BlockTag;
1264
- toBlock?: `0x${string}` | import("viem").BlockTag;
1265
- blockHash?: undefined;
1266
- } | {
1267
- fromBlock?: undefined;
1268
- toBlock?: undefined;
1269
- blockHash?: `0x${string}`;
1270
- })];
1271
- ReturnType: {
1272
- address: `0x${string}`;
1273
- blockHash: `0x${string}`;
1274
- blockNumber: `0x${string}`;
1275
- data: `0x${string}`;
1276
- logIndex: `0x${string}`;
1277
- transactionHash: `0x${string}`;
1278
- transactionIndex: `0x${string}`;
1279
- removed: boolean;
1280
- }[];
1281
- }, {
1282
- Method: "eth_getProof";
1283
- Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag];
1284
- ReturnType: import("viem").RpcProof;
1285
- }, {
1286
- Method: "eth_getStorageAt";
1287
- Parameters: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1288
- ReturnType: `0x${string}`;
1289
- }, {
1290
- Method: "eth_getTransactionByBlockHashAndIndex";
1291
- Parameters: [hash: `0x${string}`, index: `0x${string}`];
1292
- ReturnType: import("viem").RpcTransaction;
1293
- }, {
1294
- Method: "eth_getTransactionByBlockNumberAndIndex";
1295
- Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
1296
- ReturnType: import("viem").RpcTransaction;
1297
- }, {
1298
- Method: "eth_getTransactionByHash";
1299
- Parameters: [hash: `0x${string}`];
1300
- ReturnType: import("viem").RpcTransaction;
1301
- }, {
1302
- Method: "eth_getTransactionCount";
1303
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1304
- ReturnType: `0x${string}`;
1305
- }, {
1306
- Method: "eth_getTransactionReceipt";
1307
- Parameters: [hash: `0x${string}`];
1308
- ReturnType: import("viem").RpcTransactionReceipt;
1309
- }, {
1310
- Method: "eth_getUncleByBlockHashAndIndex";
1311
- Parameters: [hash: `0x${string}`, index: `0x${string}`];
1312
- ReturnType: import("viem").RpcUncle;
1313
- }, {
1314
- Method: "eth_getUncleByBlockNumberAndIndex";
1315
- Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
1316
- ReturnType: import("viem").RpcUncle;
1317
- }, {
1318
- Method: "eth_getUncleCountByBlockHash";
1319
- Parameters: [hash: `0x${string}`];
1320
- ReturnType: `0x${string}`;
1321
- }, {
1322
- Method: "eth_getUncleCountByBlockNumber";
1323
- Parameters: [block: `0x${string}` | import("viem").BlockTag];
1324
- ReturnType: `0x${string}`;
1325
- }, {
1326
- Method: "eth_maxPriorityFeePerGas";
1327
- Parameters?: undefined;
1328
- ReturnType: `0x${string}`;
1329
- }, {
1330
- Method: "eth_newBlockFilter";
1331
- Parameters?: undefined;
1332
- ReturnType: `0x${string}`;
1333
- }, {
1334
- Method: "eth_newFilter";
1335
- Parameters: [filter: {
1336
- fromBlock?: `0x${string}` | import("viem").BlockTag;
1337
- toBlock?: `0x${string}` | import("viem").BlockTag;
1338
- address?: `0x${string}` | `0x${string}`[];
1339
- topics?: import("viem").LogTopic[];
1340
- }];
1341
- ReturnType: `0x${string}`;
1342
- }, {
1343
- Method: "eth_newPendingTransactionFilter";
1344
- Parameters?: undefined;
1345
- ReturnType: `0x${string}`;
1346
- }, {
1347
- Method: "eth_protocolVersion";
1348
- Parameters?: undefined;
1349
- ReturnType: string;
1350
- }, {
1351
- Method: "eth_sendRawTransaction";
1352
- Parameters: [signedTransaction: `0x${string}`];
1353
- ReturnType: `0x${string}`;
1354
- }, {
1355
- Method: "eth_simulateV1";
1356
- Parameters: [{
1357
- blockStateCalls: readonly {
1358
- blockOverrides?: import("viem").RpcBlockOverrides;
1359
- calls?: readonly import("viem").ExactPartial<import("viem").RpcTransactionRequest>[];
1360
- stateOverrides?: import("viem").RpcStateOverride;
1361
- }[];
1362
- returnFullTransactions?: boolean;
1363
- traceTransfers?: boolean;
1364
- validation?: boolean;
1365
- }, `0x${string}` | import("viem").BlockTag];
1366
- ReturnType: readonly (import("viem").RpcBlock & {
1367
- calls: readonly {
1368
- error?: {
1369
- data?: `0x${string}`;
1370
- code: number;
1371
- message: string;
1372
- };
1373
- logs?: readonly {
1374
- address: `0x${string}`;
1375
- blockHash: `0x${string}`;
1376
- blockNumber: `0x${string}`;
1377
- data: `0x${string}`;
1378
- logIndex: `0x${string}`;
1379
- transactionHash: `0x${string}`;
1380
- transactionIndex: `0x${string}`;
1381
- removed: boolean;
1382
- }[];
1383
- gasUsed: `0x${string}`;
1384
- returnData: `0x${string}`;
1385
- status: `0x${string}`;
1386
- }[];
1387
- })[];
1388
- }, {
1389
- Method: "eth_uninstallFilter";
1390
- Parameters: [filterId: `0x${string}`];
1391
- ReturnType: boolean;
1392
- }, {
1393
- Method: "eth_accounts";
1394
- Parameters?: undefined;
1395
- ReturnType: `0x${string}`[];
1396
- }, {
1397
- Method: "eth_chainId";
1398
- Parameters?: undefined;
1399
- ReturnType: `0x${string}`;
1400
- }, {
1401
- Method: "eth_estimateGas";
1402
- 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];
1403
- ReturnType: `0x${string}`;
1404
- }, {
1405
- Method: "eth_requestAccounts";
1406
- Parameters?: undefined;
1407
- ReturnType: `0x${string}`[];
1408
- }, {
1409
- Method: "eth_sendTransaction";
1410
- Parameters: [transaction: import("viem").RpcTransactionRequest];
1411
- ReturnType: `0x${string}`;
1412
- }, {
1413
- Method: "eth_sendRawTransaction";
1414
- Parameters: [signedTransaction: `0x${string}`];
1415
- ReturnType: `0x${string}`;
1416
- }, {
1417
- Method: "eth_sign";
1418
- Parameters: [address: `0x${string}`, data: `0x${string}`];
1419
- ReturnType: `0x${string}`;
1420
- }, {
1421
- Method: "eth_signTransaction";
1422
- Parameters: [request: import("viem").RpcTransactionRequest];
1423
- ReturnType: `0x${string}`;
1424
- }, {
1425
- Method: "eth_signTypedData_v4";
1426
- Parameters: [address: `0x${string}`, message: string];
1427
- ReturnType: `0x${string}`;
1428
- }, {
1429
- Method: "eth_syncing";
1430
- Parameters?: undefined;
1431
- ReturnType: false | import("viem").NetworkSync;
1432
- }, {
1433
- Method: "personal_sign";
1434
- Parameters: [data: `0x${string}`, address: `0x${string}`];
1435
- ReturnType: `0x${string}`;
1436
- }, {
1437
- Method: "wallet_addEthereumChain";
1438
- Parameters: [chain: import("viem").AddEthereumChainParameter];
1439
- ReturnType: null;
1440
- }, {
1441
- Method: "wallet_getCallsStatus";
1442
- Parameters?: [string];
1443
- ReturnType: import("viem").WalletGetCallsStatusReturnType<`0x${string}`, `0x${string}`>;
1444
- }, {
1445
- Method: "wallet_getCapabilities";
1446
- Parameters?: [`0x${string}`];
1447
- ReturnType: {
1448
- [x: `0x${string}`]: import("viem").WalletCapabilities;
1449
- };
1450
- }, {
1451
- Method: "wallet_getPermissions";
1452
- Parameters?: undefined;
1453
- ReturnType: import("viem").WalletPermission[];
1454
- }, {
1455
- Method: "wallet_grantPermissions";
1456
- Parameters?: [import("viem").WalletGrantPermissionsParameters];
1457
- ReturnType: {
1458
- expiry: number;
1459
- factory?: `0x${string}`;
1460
- factoryData?: string;
1461
- grantedPermissions: readonly {
1462
- data: unknown;
1463
- policies: readonly {
1464
- data: unknown;
1465
- type: string;
1466
- }[];
1467
- required?: boolean;
1468
- type: string;
1469
- }[];
1470
- permissionsContext: string;
1471
- signerData?: {
1472
- userOpBuilder?: `0x${string}`;
1473
- submitToAddress?: `0x${string}`;
1474
- };
1475
- };
1476
- }, {
1477
- Method: "wallet_requestPermissions";
1478
- Parameters: [permissions: {
1479
- eth_accounts: Record<string, any>;
1480
- }];
1481
- ReturnType: import("viem").WalletPermission[];
1482
- }, {
1483
- Method: "wallet_revokePermissions";
1484
- Parameters: [permissions: {
1485
- eth_accounts: Record<string, any>;
1486
- }];
1487
- ReturnType: null;
1488
- }, {
1489
- Method: "wallet_sendCalls";
1490
- Parameters?: import("viem").WalletSendCallsParameters<import("viem").WalletCapabilities, `0x${string}`, `0x${string}`>;
1491
- ReturnType: string;
1492
- }, {
1493
- Method: "wallet_sendTransaction";
1494
- Parameters: [transaction: import("viem").RpcTransactionRequest];
1495
- ReturnType: `0x${string}`;
1496
- }, {
1497
- Method: "wallet_showCallsStatus";
1498
- Parameters?: [string];
1499
- ReturnType: void;
1500
- }, {
1501
- Method: "wallet_switchEthereumChain";
1502
- Parameters: [chain: {
1503
- chainId: string;
1504
- }];
1505
- ReturnType: null;
1506
- }, {
1507
- Method: "wallet_watchAsset";
1508
- Parameters: import("viem").WatchAssetParams;
1509
- ReturnType: boolean;
1510
- }, {
1511
- Method: "eth_chainId";
1512
- Parameters?: undefined;
1513
- ReturnType: `0x${string}`;
1514
- }, {
1515
- Method: "eth_estimateUserOperationGas";
1516
- Parameters: [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`] | [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`, stateOverrideSet: import("viem").RpcStateOverride];
1517
- ReturnType: import("viem").RpcEstimateUserOperationGasReturnType;
1518
- }, {
1519
- Method: "eth_getUserOperationByHash";
1520
- Parameters: [hash: `0x${string}`];
1521
- ReturnType: import("viem").RpcGetUserOperationByHashReturnType;
1522
- }, {
1523
- Method: "eth_getUserOperationReceipt";
1524
- Parameters: [hash: `0x${string}`];
1525
- ReturnType: import("viem").RpcUserOperationReceipt;
1526
- }, {
1527
- Method: "eth_sendUserOperation";
1528
- Parameters: [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`];
1529
- ReturnType: `0x${string}`;
1530
- }, {
1531
- Method: "eth_supportedEntryPoints";
1532
- Parameters?: undefined;
1533
- ReturnType: readonly `0x${string}`[];
1534
- }, {
1535
- Method: "pm_getPaymasterStubData";
1536
- Parameters?: [userOperation: import("viem").OneOf<import("viem").PartialBy<Pick<{
1537
- callData: `0x${string}`;
1538
- callGasLimit: `0x${string}`;
1539
- initCode?: `0x${string}`;
1540
- maxFeePerGas: `0x${string}`;
1541
- maxPriorityFeePerGas: `0x${string}`;
1542
- nonce: `0x${string}`;
1543
- paymasterAndData?: `0x${string}`;
1544
- preVerificationGas: `0x${string}`;
1545
- sender: `0x${string}`;
1546
- signature: `0x${string}`;
1547
- verificationGasLimit: `0x${string}`;
1548
- }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "preVerificationGas" | "sender" | "verificationGasLimit" | "initCode">, "maxFeePerGas" | "maxPriorityFeePerGas" | "callGasLimit" | "preVerificationGas" | "verificationGasLimit" | "initCode"> | import("viem").PartialBy<Pick<{
1549
- callData: `0x${string}`;
1550
- callGasLimit: `0x${string}`;
1551
- factory?: `0x${string}`;
1552
- factoryData?: `0x${string}`;
1553
- maxFeePerGas: `0x${string}`;
1554
- maxPriorityFeePerGas: `0x${string}`;
1555
- nonce: `0x${string}`;
1556
- paymaster?: `0x${string}`;
1557
- paymasterData?: `0x${string}`;
1558
- paymasterPostOpGasLimit?: `0x${string}`;
1559
- paymasterVerificationGasLimit?: `0x${string}`;
1560
- preVerificationGas: `0x${string}`;
1561
- sender: `0x${string}`;
1562
- signature: `0x${string}`;
1563
- verificationGasLimit: `0x${string}`;
1564
- }, "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];
1565
- ReturnType: import("viem").OneOf<{
1566
- paymasterAndData: `0x${string}`;
1567
- } | {
1568
- paymaster: `0x${string}`;
1569
- paymasterData: `0x${string}`;
1570
- paymasterVerificationGasLimit: `0x${string}`;
1571
- paymasterPostOpGasLimit: `0x${string}`;
1572
- }> & {
1573
- sponsor?: {
1574
- name: string;
1575
- icon?: string;
1576
- };
1577
- isFinal?: boolean;
1578
- };
1579
- }, {
1580
- Method: "pm_getPaymasterData";
1581
- Parameters?: [userOperation: Pick<{
1582
- callData: `0x${string}`;
1583
- callGasLimit: `0x${string}`;
1584
- initCode?: `0x${string}`;
1585
- maxFeePerGas: `0x${string}`;
1586
- maxPriorityFeePerGas: `0x${string}`;
1587
- nonce: `0x${string}`;
1588
- paymasterAndData?: `0x${string}`;
1589
- preVerificationGas: `0x${string}`;
1590
- sender: `0x${string}`;
1591
- signature: `0x${string}`;
1592
- verificationGasLimit: `0x${string}`;
1593
- }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "preVerificationGas" | "sender" | "verificationGasLimit" | "initCode"> | Pick<{
1594
- callData: `0x${string}`;
1595
- callGasLimit: `0x${string}`;
1596
- factory?: `0x${string}`;
1597
- factoryData?: `0x${string}`;
1598
- maxFeePerGas: `0x${string}`;
1599
- maxPriorityFeePerGas: `0x${string}`;
1600
- nonce: `0x${string}`;
1601
- paymaster?: `0x${string}`;
1602
- paymasterData?: `0x${string}`;
1603
- paymasterPostOpGasLimit?: `0x${string}`;
1604
- paymasterVerificationGasLimit?: `0x${string}`;
1605
- preVerificationGas: `0x${string}`;
1606
- sender: `0x${string}`;
1607
- signature: `0x${string}`;
1608
- verificationGasLimit: `0x${string}`;
1609
- }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "factory" | "factoryData" | "preVerificationGas" | "sender" | "verificationGasLimit">, entrypoint: `0x${string}`, chainId: `0x${string}`, context: unknown];
1610
- ReturnType: import("viem").OneOf<{
1611
- paymasterAndData: `0x${string}`;
1612
- } | {
1613
- paymaster: `0x${string}`;
1614
- paymasterData: `0x${string}`;
1615
- paymasterVerificationGasLimit: `0x${string}`;
1616
- paymasterPostOpGasLimit: `0x${string}`;
1617
- }>;
1618
- }], false>;
1619
- isApexWallet?: true;
1620
- isAvalanche?: true;
1621
- isBackpack?: true;
1622
- isBifrost?: true;
1623
- isBitKeep?: true;
1624
- isBitski?: true;
1625
- isBlockWallet?: true;
1626
- isBraveWallet?: true;
1627
- isCoinbaseWallet?: true;
1628
- isDawn?: true;
1629
- isEnkrypt?: true;
1630
- isExodus?: true;
1631
- isFrame?: true;
1632
- isFrontier?: true;
1633
- isGamestop?: true;
1634
- isHyperPay?: true;
1635
- isImToken?: true;
1636
- isKuCoinWallet?: true;
1637
- isMathWallet?: true;
1638
- isMetaMask?: true;
1639
- isOkxWallet?: true;
1640
- isOKExWallet?: true;
1641
- isOneInchAndroidWallet?: true;
1642
- isOneInchIOSWallet?: true;
1643
- isOpera?: true;
1644
- isPhantom?: true;
1645
- isPortal?: true;
1646
- isRabby?: true;
1647
- isRainbow?: true;
1648
- isStatus?: true;
1649
- isTally?: true;
1650
- isTokenPocket?: true;
1651
- isTokenary?: true;
1652
- isTrust?: true;
1653
- isTrustWallet?: true;
1654
- isUniswapWallet?: true;
1655
- isXDEFI?: true;
1656
- isZerion?: true;
207
+ removeListener: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
208
+ request: import("viem").EIP1193RequestFn<import("viem").EIP1474Methods>;
209
+ isApexWallet?: true | undefined;
210
+ isAvalanche?: true | undefined;
211
+ isBackpack?: true | undefined;
212
+ isBifrost?: true | undefined;
213
+ isBitKeep?: true | undefined;
214
+ isBitski?: true | undefined;
215
+ isBlockWallet?: true | undefined;
216
+ isBraveWallet?: true | undefined;
217
+ isCoinbaseWallet?: true | undefined;
218
+ isDawn?: true | undefined;
219
+ isEnkrypt?: true | undefined;
220
+ isExodus?: true | undefined;
221
+ isFrame?: true | undefined;
222
+ isFrontier?: true | undefined;
223
+ isGamestop?: true | undefined;
224
+ isHyperPay?: true | undefined;
225
+ isImToken?: true | undefined;
226
+ isKuCoinWallet?: true | undefined;
227
+ isMathWallet?: true | undefined;
228
+ isMetaMask?: true | undefined;
229
+ isOkxWallet?: true | undefined;
230
+ isOKExWallet?: true | undefined;
231
+ isOneInchAndroidWallet?: true | undefined;
232
+ isOneInchIOSWallet?: true | undefined;
233
+ isOpera?: true | undefined;
234
+ isPhantom?: true | undefined;
235
+ isPortal?: true | undefined;
236
+ isRabby?: true | undefined;
237
+ isRainbow?: true | undefined;
238
+ isStatus?: true | undefined;
239
+ isTally?: true | undefined;
240
+ isTokenPocket?: true | undefined;
241
+ isTokenary?: true | undefined;
242
+ isTrust?: true | undefined;
243
+ isTrustWallet?: true | undefined;
244
+ isUniswapWallet?: true | undefined;
245
+ isXDEFI?: true | undefined;
246
+ isZerion?: true | undefined;
1657
247
  providers?: {
1658
- on: <event_2 extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
1659
- removeListener: <event_3 extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
1660
- request: import("viem").EIP1193RequestFn<[{
1661
- Method: "web3_clientVersion";
1662
- Parameters?: undefined;
1663
- ReturnType: string;
1664
- }, {
1665
- Method: "web3_sha3";
1666
- Parameters: [data: `0x${string}`];
1667
- ReturnType: string;
1668
- }, {
1669
- Method: "net_listening";
1670
- Parameters?: undefined;
1671
- ReturnType: boolean;
1672
- }, {
1673
- Method: "net_peerCount";
1674
- Parameters?: undefined;
1675
- ReturnType: `0x${string}`;
1676
- }, {
1677
- Method: "net_version";
1678
- Parameters?: undefined;
1679
- ReturnType: `0x${string}`;
1680
- }, {
1681
- Method: "eth_blobBaseFee";
1682
- Parameters?: undefined;
1683
- ReturnType: `0x${string}`;
1684
- }, {
1685
- Method: "eth_blockNumber";
1686
- Parameters?: undefined;
1687
- ReturnType: `0x${string}`;
1688
- }, {
1689
- Method: "eth_call";
1690
- 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];
1691
- ReturnType: `0x${string}`;
1692
- }, {
1693
- Method: "eth_createAccessList";
1694
- Parameters: [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1695
- ReturnType: {
1696
- accessList: import("viem").AccessList;
1697
- gasUsed: `0x${string}`;
1698
- };
1699
- }, {
1700
- Method: "eth_chainId";
1701
- Parameters?: undefined;
1702
- ReturnType: `0x${string}`;
1703
- }, {
1704
- Method: "eth_coinbase";
1705
- Parameters?: undefined;
1706
- ReturnType: `0x${string}`;
1707
- }, {
1708
- Method: "eth_estimateGas";
1709
- 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];
1710
- ReturnType: `0x${string}`;
1711
- }, {
1712
- Method: "eth_feeHistory";
1713
- Parameters: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[]];
1714
- ReturnType: import("viem").RpcFeeHistory;
1715
- }, {
1716
- Method: "eth_gasPrice";
1717
- Parameters?: undefined;
1718
- ReturnType: `0x${string}`;
1719
- }, {
1720
- Method: "eth_getBalance";
1721
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1722
- ReturnType: `0x${string}`;
1723
- }, {
1724
- Method: "eth_getBlockByHash";
1725
- Parameters: [hash: `0x${string}`, includeTransactionObjects: boolean];
1726
- ReturnType: import("viem").RpcBlock;
1727
- }, {
1728
- Method: "eth_getBlockByNumber";
1729
- Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
1730
- ReturnType: import("viem").RpcBlock;
1731
- }, {
1732
- Method: "eth_getBlockTransactionCountByHash";
1733
- Parameters: [hash: `0x${string}`];
1734
- ReturnType: `0x${string}`;
1735
- }, {
1736
- Method: "eth_getBlockTransactionCountByNumber";
1737
- Parameters: [block: `0x${string}` | import("viem").BlockTag];
1738
- ReturnType: `0x${string}`;
1739
- }, {
1740
- Method: "eth_getCode";
1741
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1742
- ReturnType: `0x${string}`;
1743
- }, {
1744
- Method: "eth_getFilterChanges";
1745
- Parameters: [filterId: `0x${string}`];
1746
- ReturnType: `0x${string}`[] | {
1747
- address: `0x${string}`;
1748
- blockHash: `0x${string}`;
1749
- blockNumber: `0x${string}`;
1750
- data: `0x${string}`;
1751
- logIndex: `0x${string}`;
1752
- transactionHash: `0x${string}`;
1753
- transactionIndex: `0x${string}`;
1754
- removed: boolean;
1755
- }[];
1756
- }, {
1757
- Method: "eth_getFilterLogs";
1758
- Parameters: [filterId: `0x${string}`];
1759
- ReturnType: {
1760
- address: `0x${string}`;
1761
- blockHash: `0x${string}`;
1762
- blockNumber: `0x${string}`;
1763
- data: `0x${string}`;
1764
- logIndex: `0x${string}`;
1765
- transactionHash: `0x${string}`;
1766
- transactionIndex: `0x${string}`;
1767
- removed: boolean;
1768
- }[];
1769
- }, {
1770
- Method: "eth_getLogs";
1771
- Parameters: [{
1772
- address?: `0x${string}` | `0x${string}`[];
1773
- topics?: import("viem").LogTopic[];
1774
- } & ({
1775
- fromBlock?: `0x${string}` | import("viem").BlockTag;
1776
- toBlock?: `0x${string}` | import("viem").BlockTag;
1777
- blockHash?: undefined;
1778
- } | {
1779
- fromBlock?: undefined;
1780
- toBlock?: undefined;
1781
- blockHash?: `0x${string}`;
1782
- })];
1783
- ReturnType: {
1784
- address: `0x${string}`;
1785
- blockHash: `0x${string}`;
1786
- blockNumber: `0x${string}`;
1787
- data: `0x${string}`;
1788
- logIndex: `0x${string}`;
1789
- transactionHash: `0x${string}`;
1790
- transactionIndex: `0x${string}`;
1791
- removed: boolean;
1792
- }[];
1793
- }, {
1794
- Method: "eth_getProof";
1795
- Parameters: [address: `0x${string}`, storageKeys: `0x${string}`[], block: `0x${string}` | import("viem").BlockTag];
1796
- ReturnType: import("viem").RpcProof;
1797
- }, {
1798
- Method: "eth_getStorageAt";
1799
- Parameters: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1800
- ReturnType: `0x${string}`;
1801
- }, {
1802
- Method: "eth_getTransactionByBlockHashAndIndex";
1803
- Parameters: [hash: `0x${string}`, index: `0x${string}`];
1804
- ReturnType: import("viem").RpcTransaction;
1805
- }, {
1806
- Method: "eth_getTransactionByBlockNumberAndIndex";
1807
- Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
1808
- ReturnType: import("viem").RpcTransaction;
1809
- }, {
1810
- Method: "eth_getTransactionByHash";
1811
- Parameters: [hash: `0x${string}`];
1812
- ReturnType: import("viem").RpcTransaction;
1813
- }, {
1814
- Method: "eth_getTransactionCount";
1815
- Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1816
- ReturnType: `0x${string}`;
1817
- }, {
1818
- Method: "eth_getTransactionReceipt";
1819
- Parameters: [hash: `0x${string}`];
1820
- ReturnType: import("viem").RpcTransactionReceipt;
1821
- }, {
1822
- Method: "eth_getUncleByBlockHashAndIndex";
1823
- Parameters: [hash: `0x${string}`, index: `0x${string}`];
1824
- ReturnType: import("viem").RpcUncle;
1825
- }, {
1826
- Method: "eth_getUncleByBlockNumberAndIndex";
1827
- Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
1828
- ReturnType: import("viem").RpcUncle;
1829
- }, {
1830
- Method: "eth_getUncleCountByBlockHash";
1831
- Parameters: [hash: `0x${string}`];
1832
- ReturnType: `0x${string}`;
1833
- }, {
1834
- Method: "eth_getUncleCountByBlockNumber";
1835
- Parameters: [block: `0x${string}` | import("viem").BlockTag];
1836
- ReturnType: `0x${string}`;
1837
- }, {
1838
- Method: "eth_maxPriorityFeePerGas";
1839
- Parameters?: undefined;
1840
- ReturnType: `0x${string}`;
1841
- }, {
1842
- Method: "eth_newBlockFilter";
1843
- Parameters?: undefined;
1844
- ReturnType: `0x${string}`;
1845
- }, {
1846
- Method: "eth_newFilter";
1847
- Parameters: [filter: {
1848
- fromBlock?: `0x${string}` | import("viem").BlockTag;
1849
- toBlock?: `0x${string}` | import("viem").BlockTag;
1850
- address?: `0x${string}` | `0x${string}`[];
1851
- topics?: import("viem").LogTopic[];
1852
- }];
1853
- ReturnType: `0x${string}`;
1854
- }, {
1855
- Method: "eth_newPendingTransactionFilter";
1856
- Parameters?: undefined;
1857
- ReturnType: `0x${string}`;
1858
- }, {
1859
- Method: "eth_protocolVersion";
1860
- Parameters?: undefined;
1861
- ReturnType: string;
1862
- }, {
1863
- Method: "eth_sendRawTransaction";
1864
- Parameters: [signedTransaction: `0x${string}`];
1865
- ReturnType: `0x${string}`;
1866
- }, {
1867
- Method: "eth_simulateV1";
1868
- Parameters: [{
1869
- blockStateCalls: readonly {
1870
- blockOverrides?: import("viem").RpcBlockOverrides;
1871
- calls?: readonly import("viem").ExactPartial<import("viem").RpcTransactionRequest>[];
1872
- stateOverrides?: import("viem").RpcStateOverride;
1873
- }[];
1874
- returnFullTransactions?: boolean;
1875
- traceTransfers?: boolean;
1876
- validation?: boolean;
1877
- }, `0x${string}` | import("viem").BlockTag];
1878
- ReturnType: readonly (import("viem").RpcBlock & {
1879
- calls: readonly {
1880
- error?: {
1881
- data?: `0x${string}`;
1882
- code: number;
1883
- message: string;
1884
- };
1885
- logs?: readonly {
1886
- address: `0x${string}`;
1887
- blockHash: `0x${string}`;
1888
- blockNumber: `0x${string}`;
1889
- data: `0x${string}`;
1890
- logIndex: `0x${string}`;
1891
- transactionHash: `0x${string}`;
1892
- transactionIndex: `0x${string}`;
1893
- removed: boolean;
1894
- }[];
1895
- gasUsed: `0x${string}`;
1896
- returnData: `0x${string}`;
1897
- status: `0x${string}`;
1898
- }[];
1899
- })[];
1900
- }, {
1901
- Method: "eth_uninstallFilter";
1902
- Parameters: [filterId: `0x${string}`];
1903
- ReturnType: boolean;
1904
- }, {
1905
- Method: "eth_accounts";
1906
- Parameters?: undefined;
1907
- ReturnType: `0x${string}`[];
1908
- }, {
1909
- Method: "eth_chainId";
1910
- Parameters?: undefined;
1911
- ReturnType: `0x${string}`;
1912
- }, {
1913
- Method: "eth_estimateGas";
1914
- 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];
1915
- ReturnType: `0x${string}`;
1916
- }, {
1917
- Method: "eth_requestAccounts";
1918
- Parameters?: undefined;
1919
- ReturnType: `0x${string}`[];
1920
- }, {
1921
- Method: "eth_sendTransaction";
1922
- Parameters: [transaction: import("viem").RpcTransactionRequest];
1923
- ReturnType: `0x${string}`;
1924
- }, {
1925
- Method: "eth_sendRawTransaction";
1926
- Parameters: [signedTransaction: `0x${string}`];
1927
- ReturnType: `0x${string}`;
1928
- }, {
1929
- Method: "eth_sign";
1930
- Parameters: [address: `0x${string}`, data: `0x${string}`];
1931
- ReturnType: `0x${string}`;
1932
- }, {
1933
- Method: "eth_signTransaction";
1934
- Parameters: [request: import("viem").RpcTransactionRequest];
1935
- ReturnType: `0x${string}`;
1936
- }, {
1937
- Method: "eth_signTypedData_v4";
1938
- Parameters: [address: `0x${string}`, message: string];
1939
- ReturnType: `0x${string}`;
1940
- }, {
1941
- Method: "eth_syncing";
1942
- Parameters?: undefined;
1943
- ReturnType: false | import("viem").NetworkSync;
1944
- }, {
1945
- Method: "personal_sign";
1946
- Parameters: [data: `0x${string}`, address: `0x${string}`];
1947
- ReturnType: `0x${string}`;
1948
- }, {
1949
- Method: "wallet_addEthereumChain";
1950
- Parameters: [chain: import("viem").AddEthereumChainParameter];
1951
- ReturnType: null;
1952
- }, {
1953
- Method: "wallet_getCallsStatus";
1954
- Parameters?: [string];
1955
- ReturnType: import("viem").WalletGetCallsStatusReturnType<`0x${string}`, `0x${string}`>;
1956
- }, {
1957
- Method: "wallet_getCapabilities";
1958
- Parameters?: [`0x${string}`];
1959
- ReturnType: {
1960
- [x: `0x${string}`]: import("viem").WalletCapabilities;
1961
- };
1962
- }, {
1963
- Method: "wallet_getPermissions";
1964
- Parameters?: undefined;
1965
- ReturnType: import("viem").WalletPermission[];
1966
- }, {
1967
- Method: "wallet_grantPermissions";
1968
- Parameters?: [import("viem").WalletGrantPermissionsParameters];
1969
- ReturnType: {
1970
- expiry: number;
1971
- factory?: `0x${string}`;
1972
- factoryData?: string;
1973
- grantedPermissions: readonly {
1974
- data: unknown;
1975
- policies: readonly {
1976
- data: unknown;
1977
- type: string;
1978
- }[];
1979
- required?: boolean;
1980
- type: string;
1981
- }[];
1982
- permissionsContext: string;
1983
- signerData?: {
1984
- userOpBuilder?: `0x${string}`;
1985
- submitToAddress?: `0x${string}`;
1986
- };
1987
- };
1988
- }, {
1989
- Method: "wallet_requestPermissions";
1990
- Parameters: [permissions: {
1991
- eth_accounts: Record<string, any>;
1992
- }];
1993
- ReturnType: import("viem").WalletPermission[];
1994
- }, {
1995
- Method: "wallet_revokePermissions";
1996
- Parameters: [permissions: {
1997
- eth_accounts: Record<string, any>;
1998
- }];
1999
- ReturnType: null;
2000
- }, {
2001
- Method: "wallet_sendCalls";
2002
- Parameters?: import("viem").WalletSendCallsParameters<import("viem").WalletCapabilities, `0x${string}`, `0x${string}`>;
2003
- ReturnType: string;
2004
- }, {
2005
- Method: "wallet_sendTransaction";
2006
- Parameters: [transaction: import("viem").RpcTransactionRequest];
2007
- ReturnType: `0x${string}`;
2008
- }, {
2009
- Method: "wallet_showCallsStatus";
2010
- Parameters?: [string];
2011
- ReturnType: void;
2012
- }, {
2013
- Method: "wallet_switchEthereumChain";
2014
- Parameters: [chain: {
2015
- chainId: string;
2016
- }];
2017
- ReturnType: null;
2018
- }, {
2019
- Method: "wallet_watchAsset";
2020
- Parameters: import("viem").WatchAssetParams;
2021
- ReturnType: boolean;
2022
- }, {
2023
- Method: "eth_chainId";
2024
- Parameters?: undefined;
2025
- ReturnType: `0x${string}`;
2026
- }, {
2027
- Method: "eth_estimateUserOperationGas";
2028
- Parameters: [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`] | [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`, stateOverrideSet: import("viem").RpcStateOverride];
2029
- ReturnType: import("viem").RpcEstimateUserOperationGasReturnType;
2030
- }, {
2031
- Method: "eth_getUserOperationByHash";
2032
- Parameters: [hash: `0x${string}`];
2033
- ReturnType: import("viem").RpcGetUserOperationByHashReturnType;
2034
- }, {
2035
- Method: "eth_getUserOperationReceipt";
2036
- Parameters: [hash: `0x${string}`];
2037
- ReturnType: import("viem").RpcUserOperationReceipt;
2038
- }, {
2039
- Method: "eth_sendUserOperation";
2040
- Parameters: [userOperation: import("viem").RpcUserOperation, entrypoint: `0x${string}`];
2041
- ReturnType: `0x${string}`;
2042
- }, {
2043
- Method: "eth_supportedEntryPoints";
2044
- Parameters?: undefined;
2045
- ReturnType: readonly `0x${string}`[];
2046
- }, {
2047
- Method: "pm_getPaymasterStubData";
2048
- Parameters?: [userOperation: import("viem").OneOf<import("viem").PartialBy<Pick<{
2049
- callData: `0x${string}`;
2050
- callGasLimit: `0x${string}`;
2051
- initCode?: `0x${string}`;
2052
- maxFeePerGas: `0x${string}`;
2053
- maxPriorityFeePerGas: `0x${string}`;
2054
- nonce: `0x${string}`;
2055
- paymasterAndData?: `0x${string}`;
2056
- preVerificationGas: `0x${string}`;
2057
- sender: `0x${string}`;
2058
- signature: `0x${string}`;
2059
- verificationGasLimit: `0x${string}`;
2060
- }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "preVerificationGas" | "sender" | "verificationGasLimit" | "initCode">, "maxFeePerGas" | "maxPriorityFeePerGas" | "callGasLimit" | "preVerificationGas" | "verificationGasLimit" | "initCode"> | import("viem").PartialBy<Pick<{
2061
- callData: `0x${string}`;
2062
- callGasLimit: `0x${string}`;
2063
- factory?: `0x${string}`;
2064
- factoryData?: `0x${string}`;
2065
- maxFeePerGas: `0x${string}`;
2066
- maxPriorityFeePerGas: `0x${string}`;
2067
- nonce: `0x${string}`;
2068
- paymaster?: `0x${string}`;
2069
- paymasterData?: `0x${string}`;
2070
- paymasterPostOpGasLimit?: `0x${string}`;
2071
- paymasterVerificationGasLimit?: `0x${string}`;
2072
- preVerificationGas: `0x${string}`;
2073
- sender: `0x${string}`;
2074
- signature: `0x${string}`;
2075
- verificationGasLimit: `0x${string}`;
2076
- }, "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];
2077
- ReturnType: import("viem").OneOf<{
2078
- paymasterAndData: `0x${string}`;
2079
- } | {
2080
- paymaster: `0x${string}`;
2081
- paymasterData: `0x${string}`;
2082
- paymasterVerificationGasLimit: `0x${string}`;
2083
- paymasterPostOpGasLimit: `0x${string}`;
2084
- }> & {
2085
- sponsor?: {
2086
- name: string;
2087
- icon?: string;
2088
- };
2089
- isFinal?: boolean;
2090
- };
2091
- }, {
2092
- Method: "pm_getPaymasterData";
2093
- Parameters?: [userOperation: Pick<{
2094
- callData: `0x${string}`;
2095
- callGasLimit: `0x${string}`;
2096
- initCode?: `0x${string}`;
2097
- maxFeePerGas: `0x${string}`;
2098
- maxPriorityFeePerGas: `0x${string}`;
2099
- nonce: `0x${string}`;
2100
- paymasterAndData?: `0x${string}`;
2101
- preVerificationGas: `0x${string}`;
2102
- sender: `0x${string}`;
2103
- signature: `0x${string}`;
2104
- verificationGasLimit: `0x${string}`;
2105
- }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "preVerificationGas" | "sender" | "verificationGasLimit" | "initCode"> | Pick<{
2106
- callData: `0x${string}`;
2107
- callGasLimit: `0x${string}`;
2108
- factory?: `0x${string}`;
2109
- factoryData?: `0x${string}`;
2110
- maxFeePerGas: `0x${string}`;
2111
- maxPriorityFeePerGas: `0x${string}`;
2112
- nonce: `0x${string}`;
2113
- paymaster?: `0x${string}`;
2114
- paymasterData?: `0x${string}`;
2115
- paymasterPostOpGasLimit?: `0x${string}`;
2116
- paymasterVerificationGasLimit?: `0x${string}`;
2117
- preVerificationGas: `0x${string}`;
2118
- sender: `0x${string}`;
2119
- signature: `0x${string}`;
2120
- verificationGasLimit: `0x${string}`;
2121
- }, "nonce" | "maxFeePerGas" | "maxPriorityFeePerGas" | "callData" | "callGasLimit" | "factory" | "factoryData" | "preVerificationGas" | "sender" | "verificationGasLimit">, entrypoint: `0x${string}`, chainId: `0x${string}`, context: unknown];
2122
- ReturnType: import("viem").OneOf<{
2123
- paymasterAndData: `0x${string}`;
2124
- } | {
2125
- paymaster: `0x${string}`;
2126
- paymasterData: `0x${string}`;
2127
- paymasterVerificationGasLimit: `0x${string}`;
2128
- paymasterPostOpGasLimit: `0x${string}`;
2129
- }>;
2130
- }], false>;
248
+ on: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
249
+ removeListener: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
250
+ request: import("viem").EIP1193RequestFn<import("viem").EIP1474Methods>;
2131
251
  isApexWallet?: true;
2132
252
  isAvalanche?: true;
2133
253
  isBackpack?: true;
@@ -2166,40 +286,40 @@ export declare const paraConnector: (opts: ParaConnectorOpts) => (config: {
2166
286
  isUniswapWallet?: true;
2167
287
  isXDEFI?: true;
2168
288
  isZerion?: true;
2169
- providers?: any[];
289
+ providers?: /*elided*/ any[];
2170
290
  _events?: {
2171
- connect?: () => void;
2172
- };
291
+ connect?: (() => void) | undefined;
292
+ } | undefined;
2173
293
  _state?: {
2174
294
  accounts?: string[];
2175
295
  initialized?: boolean;
2176
296
  isConnected?: boolean;
2177
297
  isPermanentlyDisconnected?: boolean;
2178
298
  isUnlocked?: boolean;
2179
- };
299
+ } | undefined;
2180
300
  }[];
2181
301
  _events?: {
2182
- connect?: () => void;
2183
- };
302
+ connect?: (() => void) | undefined;
303
+ } | undefined;
2184
304
  _state?: {
2185
305
  accounts?: string[];
2186
306
  initialized?: boolean;
2187
307
  isConnected?: boolean;
2188
308
  isPermanentlyDisconnected?: boolean;
2189
309
  isUnlocked?: boolean;
2190
- };
310
+ } | undefined;
2191
311
  }>;
2192
312
  getClient?: (parameters?: {
2193
- chainId?: number;
2194
- }) => Promise<never>;
313
+ chainId?: number | undefined;
314
+ } | undefined) => Promise<import("viem").Client>;
2195
315
  isAuthorized: () => Promise<boolean>;
2196
- switchChain?: (parameters: {
2197
- addEthereumChainParameter?: import("@wagmi/core/internal").ExactPartial<import("@wagmi/core/internal").Omit<import("viem").AddEthereumChainParameter, "chainId">>;
316
+ switchChain?: (parameters: import("@wagmi/core/internal").Compute<{
317
+ addEthereumChainParameter?: import("@wagmi/core/internal").ExactPartial<import("@wagmi/core/internal").Omit<import("viem").AddEthereumChainParameter, "chainId">> | undefined;
2198
318
  chainId: number;
2199
- }) => Promise<Chain>;
319
+ }>) => Promise<Chain>;
2200
320
  onAccountsChanged: (accounts: string[]) => void;
2201
321
  onChainChanged: (chainId: string) => void;
2202
322
  onConnect: ((connectInfo: import("viem").ProviderConnectInfo) => void) & ((connectInfo: import("viem").ProviderConnectInfo) => void);
2203
- onDisconnect: (error?: Error) => void;
323
+ onDisconnect: (error?: Error | undefined) => void;
2204
324
  onMessage?: (message: import("viem").ProviderMessage) => void;
2205
325
  };