@getpara/wagmi-v2-integration 2.0.0-dev.1 → 2.0.0-dev.10

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