@getpara/wagmi-v2-integration 2.0.0-alpha.26 → 2.0.0-alpha.28

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