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