zksync-sso 0.0.0-beta.1 → 0.0.0-beta.2
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/.npmignore +7 -0
- package/README.md +106 -2
- package/dist/_cjs/abi/Factory.js +40 -1
- package/dist/_cjs/abi/Factory.js.map +1 -1
- package/dist/_cjs/client/actions/account.js +1 -1
- package/dist/_cjs/client/actions/account.js.map +1 -1
- package/dist/_cjs/client/actions/passkey.js +2 -0
- package/dist/_cjs/client/actions/passkey.js.map +1 -1
- package/dist/_cjs/client/actions/sendEip712Transaction.js +45 -0
- package/dist/_cjs/client/actions/sendEip712Transaction.js.map +1 -0
- package/dist/_cjs/client/clients/session.js +20 -9
- package/dist/_cjs/client/clients/session.js.map +1 -1
- package/dist/_cjs/client/decorators/publicActionsRewrite.js +46 -0
- package/dist/_cjs/client/decorators/publicActionsRewrite.js.map +1 -0
- package/dist/_cjs/client/decorators/session_wallet.js +18 -11
- package/dist/_cjs/client/decorators/session_wallet.js.map +1 -1
- package/dist/_cjs/client/smart-account.js +0 -1
- package/dist/_cjs/client/smart-account.js.map +1 -1
- package/dist/_cjs/client-auth-server/Signer.js +9 -0
- package/dist/_cjs/client-auth-server/Signer.js.map +1 -1
- package/dist/_cjs/client-auth-server/WalletProvider.js +3 -0
- package/dist/_cjs/client-auth-server/WalletProvider.js.map +1 -1
- package/dist/_cjs/client-auth-server/session.js +3 -3
- package/dist/_cjs/client-auth-server/session.js.map +1 -1
- package/dist/_cjs/connector/index.js +15 -8
- package/dist/_cjs/connector/index.js.map +1 -1
- package/dist/_cjs/errors/errors.js +2 -1
- package/dist/_cjs/errors/errors.js.map +1 -1
- package/dist/_esm/abi/Factory.js +40 -1
- package/dist/_esm/abi/Factory.js.map +1 -1
- package/dist/_esm/client/actions/account.js +1 -1
- package/dist/_esm/client/actions/account.js.map +1 -1
- package/dist/_esm/client/actions/passkey.js +2 -0
- package/dist/_esm/client/actions/passkey.js.map +1 -1
- package/dist/_esm/client/actions/sendEip712Transaction.js +93 -0
- package/dist/_esm/client/actions/sendEip712Transaction.js.map +1 -0
- package/dist/_esm/client/clients/session.js +18 -9
- package/dist/_esm/client/clients/session.js.map +1 -1
- package/dist/_esm/client/decorators/publicActionsRewrite.js +43 -0
- package/dist/_esm/client/decorators/publicActionsRewrite.js.map +1 -0
- package/dist/_esm/client/decorators/session_wallet.js +21 -25
- package/dist/_esm/client/decorators/session_wallet.js.map +1 -1
- package/dist/_esm/client/smart-account.js +0 -1
- package/dist/_esm/client/smart-account.js.map +1 -1
- package/dist/_esm/client-auth-server/Signer.js +9 -0
- package/dist/_esm/client-auth-server/Signer.js.map +1 -1
- package/dist/_esm/client-auth-server/WalletProvider.js +3 -0
- package/dist/_esm/client-auth-server/WalletProvider.js.map +1 -1
- package/dist/_esm/client-auth-server/session.js +4 -4
- package/dist/_esm/client-auth-server/session.js.map +1 -1
- package/dist/_esm/connector/index.js +15 -8
- package/dist/_esm/connector/index.js.map +1 -1
- package/dist/_esm/errors/errors.js +1 -1
- package/dist/_esm/errors/errors.js.map +1 -1
- package/dist/_types/abi/Factory.d.ts +31 -1
- package/dist/_types/abi/Factory.d.ts.map +1 -1
- package/dist/_types/client/actions/passkey.d.ts.map +1 -1
- package/dist/_types/client/actions/sendEip712Transaction.d.ts +60 -0
- package/dist/_types/client/actions/sendEip712Transaction.d.ts.map +1 -0
- package/dist/_types/client/clients/session.d.ts +5 -0
- package/dist/_types/client/clients/session.d.ts.map +1 -1
- package/dist/_types/client/decorators/publicActionsRewrite.d.ts +4 -0
- package/dist/_types/client/decorators/publicActionsRewrite.d.ts.map +1 -0
- package/dist/_types/client/decorators/session_wallet.d.ts +2 -2
- package/dist/_types/client/decorators/session_wallet.d.ts.map +1 -1
- package/dist/_types/client/smart-account.d.ts.map +1 -1
- package/dist/_types/client-auth-server/Signer.d.ts +1070 -1
- package/dist/_types/client-auth-server/Signer.d.ts.map +1 -1
- package/dist/_types/client-auth-server/WalletProvider.d.ts +1064 -0
- package/dist/_types/client-auth-server/WalletProvider.d.ts.map +1 -1
- package/dist/_types/client-auth-server/interface.d.ts +4 -0
- package/dist/_types/client-auth-server/interface.d.ts.map +1 -1
- package/dist/_types/client-auth-server/session.d.ts.map +1 -1
- package/dist/_types/connector/index.d.ts.map +1 -1
- package/dist/_types/errors/errors.d.ts +1 -1
- package/dist/_types/errors/errors.d.ts.map +1 -1
- package/package.json +2 -2
- package/prepare-package.mjs +2 -6
- package/src/abi/Factory.ts +40 -1
- package/src/client/actions/account.ts +1 -1
- package/src/client/actions/passkey.ts +2 -0
- package/src/client/actions/sendEip712Transaction.ts +149 -0
- package/src/client/clients/session.ts +26 -12
- package/src/client/decorators/publicActionsRewrite.ts +52 -0
- package/src/client/decorators/session_wallet.ts +26 -28
- package/src/client/smart-account.ts +0 -1
- package/src/client-auth-server/Signer.ts +10 -0
- package/src/client-auth-server/WalletProvider.ts +4 -0
- package/src/client-auth-server/interface.ts +2 -0
- package/src/client-auth-server/session.ts +4 -4
- package/src/connector/index.ts +10 -4
- package/src/errors/errors.ts +1 -1
|
@@ -16,6 +16,1070 @@ export declare class WalletProvider extends EventEmitter implements ProviderInte
|
|
|
16
16
|
constructor({ metadata, chains, transports, session, authServerUrl }: WalletProviderConstructorOptions);
|
|
17
17
|
protected get chain(): Chain;
|
|
18
18
|
get connected(): boolean;
|
|
19
|
+
getClient(parameters?: {
|
|
20
|
+
chainId?: number;
|
|
21
|
+
}): {
|
|
22
|
+
account: import("viem").Account;
|
|
23
|
+
batch?: import("viem").ClientConfig["batch"] | undefined;
|
|
24
|
+
cacheTime: number;
|
|
25
|
+
ccipRead?: import("viem").ClientConfig["ccipRead"] | undefined;
|
|
26
|
+
chain: Chain;
|
|
27
|
+
key: string;
|
|
28
|
+
name: string;
|
|
29
|
+
pollingInterval: number;
|
|
30
|
+
request: import("viem").EIP1193RequestFn<[{
|
|
31
|
+
Method: "web3_clientVersion";
|
|
32
|
+
Parameters?: undefined;
|
|
33
|
+
ReturnType: string;
|
|
34
|
+
}, {
|
|
35
|
+
Method: "web3_sha3";
|
|
36
|
+
Parameters: [data: import("viem").Hash];
|
|
37
|
+
ReturnType: string;
|
|
38
|
+
}, {
|
|
39
|
+
Method: "net_listening";
|
|
40
|
+
Parameters?: undefined;
|
|
41
|
+
ReturnType: boolean;
|
|
42
|
+
}, {
|
|
43
|
+
Method: "net_peerCount";
|
|
44
|
+
Parameters?: undefined;
|
|
45
|
+
ReturnType: import("viem").Quantity;
|
|
46
|
+
}, {
|
|
47
|
+
Method: "net_version";
|
|
48
|
+
Parameters?: undefined;
|
|
49
|
+
ReturnType: import("viem").Quantity;
|
|
50
|
+
}, {
|
|
51
|
+
Method: "eth_blobBaseFee";
|
|
52
|
+
Parameters?: undefined;
|
|
53
|
+
ReturnType: import("viem").Quantity;
|
|
54
|
+
}, {
|
|
55
|
+
Method: "eth_blockNumber";
|
|
56
|
+
Parameters?: undefined;
|
|
57
|
+
ReturnType: import("viem").Quantity;
|
|
58
|
+
}, {
|
|
59
|
+
Method: "eth_call";
|
|
60
|
+
Parameters: [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier, stateOverrideSet: import("viem").RpcStateOverride];
|
|
61
|
+
ReturnType: import("viem").Hex;
|
|
62
|
+
}, {
|
|
63
|
+
Method: "eth_chainId";
|
|
64
|
+
Parameters?: undefined;
|
|
65
|
+
ReturnType: import("viem").Quantity;
|
|
66
|
+
}, {
|
|
67
|
+
Method: "eth_coinbase";
|
|
68
|
+
Parameters?: undefined;
|
|
69
|
+
ReturnType: Address;
|
|
70
|
+
}, {
|
|
71
|
+
Method: "eth_estimateGas";
|
|
72
|
+
Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag, stateOverride: import("viem").RpcStateOverride];
|
|
73
|
+
ReturnType: import("viem").Quantity;
|
|
74
|
+
}, {
|
|
75
|
+
Method: "eth_feeHistory";
|
|
76
|
+
Parameters: [blockCount: import("viem").Quantity, newestBlock: import("viem").RpcBlockNumber | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
|
|
77
|
+
ReturnType: import("viem").RpcFeeHistory;
|
|
78
|
+
}, {
|
|
79
|
+
Method: "eth_gasPrice";
|
|
80
|
+
Parameters?: undefined;
|
|
81
|
+
ReturnType: import("viem").Quantity;
|
|
82
|
+
}, {
|
|
83
|
+
Method: "eth_getBalance";
|
|
84
|
+
Parameters: [address: Address, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
85
|
+
ReturnType: import("viem").Quantity;
|
|
86
|
+
}, {
|
|
87
|
+
Method: "eth_getBlockByHash";
|
|
88
|
+
Parameters: [hash: import("viem").Hash, includeTransactionObjects: boolean];
|
|
89
|
+
ReturnType: import("viem").RpcBlock | null;
|
|
90
|
+
}, {
|
|
91
|
+
Method: "eth_getBlockByNumber";
|
|
92
|
+
Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag, includeTransactionObjects: boolean];
|
|
93
|
+
ReturnType: import("viem").RpcBlock | null;
|
|
94
|
+
}, {
|
|
95
|
+
Method: "eth_getBlockTransactionCountByHash";
|
|
96
|
+
Parameters: [hash: import("viem").Hash];
|
|
97
|
+
ReturnType: import("viem").Quantity;
|
|
98
|
+
}, {
|
|
99
|
+
Method: "eth_getBlockTransactionCountByNumber";
|
|
100
|
+
Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag];
|
|
101
|
+
ReturnType: import("viem").Quantity;
|
|
102
|
+
}, {
|
|
103
|
+
Method: "eth_getCode";
|
|
104
|
+
Parameters: [address: Address, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
105
|
+
ReturnType: import("viem").Hex;
|
|
106
|
+
}, {
|
|
107
|
+
Method: "eth_getFilterChanges";
|
|
108
|
+
Parameters: [filterId: import("viem").Quantity];
|
|
109
|
+
ReturnType: import("viem").RpcLog[] | import("viem").Hex[];
|
|
110
|
+
}, {
|
|
111
|
+
Method: "eth_getFilterLogs";
|
|
112
|
+
Parameters: [filterId: import("viem").Quantity];
|
|
113
|
+
ReturnType: import("viem").RpcLog[];
|
|
114
|
+
}, {
|
|
115
|
+
Method: "eth_getLogs";
|
|
116
|
+
Parameters: [{
|
|
117
|
+
address?: Address | Address[] | undefined;
|
|
118
|
+
topics?: import("viem").LogTopic[] | undefined;
|
|
119
|
+
} & ({
|
|
120
|
+
fromBlock?: import("viem").RpcBlockNumber | import("viem").BlockTag | undefined;
|
|
121
|
+
toBlock?: import("viem").RpcBlockNumber | import("viem").BlockTag | undefined;
|
|
122
|
+
blockHash?: undefined;
|
|
123
|
+
} | {
|
|
124
|
+
fromBlock?: undefined;
|
|
125
|
+
toBlock?: undefined;
|
|
126
|
+
blockHash?: import("viem").Hash | undefined;
|
|
127
|
+
})];
|
|
128
|
+
ReturnType: import("viem").RpcLog[];
|
|
129
|
+
}, {
|
|
130
|
+
Method: "eth_getProof";
|
|
131
|
+
Parameters: [address: Address, storageKeys: import("viem").Hash[], block: import("viem").RpcBlockNumber | import("viem").BlockTag];
|
|
132
|
+
ReturnType: import("viem").RpcProof;
|
|
133
|
+
}, {
|
|
134
|
+
Method: "eth_getStorageAt";
|
|
135
|
+
Parameters: [address: Address, index: import("viem").Quantity, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
136
|
+
ReturnType: import("viem").Hex;
|
|
137
|
+
}, {
|
|
138
|
+
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
139
|
+
Parameters: [hash: import("viem").Hash, index: import("viem").Quantity];
|
|
140
|
+
ReturnType: import("viem").RpcTransaction | null;
|
|
141
|
+
}, {
|
|
142
|
+
Method: "eth_getTransactionByBlockNumberAndIndex";
|
|
143
|
+
Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag, index: import("viem").Quantity];
|
|
144
|
+
ReturnType: import("viem").RpcTransaction | null;
|
|
145
|
+
}, {
|
|
146
|
+
Method: "eth_getTransactionByHash";
|
|
147
|
+
Parameters: [hash: import("viem").Hash];
|
|
148
|
+
ReturnType: import("viem").RpcTransaction | null;
|
|
149
|
+
}, {
|
|
150
|
+
Method: "eth_getTransactionCount";
|
|
151
|
+
Parameters: [address: Address, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
152
|
+
ReturnType: import("viem").Quantity;
|
|
153
|
+
}, {
|
|
154
|
+
Method: "eth_getTransactionReceipt";
|
|
155
|
+
Parameters: [hash: import("viem").Hash];
|
|
156
|
+
ReturnType: import("viem").RpcTransactionReceipt | null;
|
|
157
|
+
}, {
|
|
158
|
+
Method: "eth_getUncleByBlockHashAndIndex";
|
|
159
|
+
Parameters: [hash: import("viem").Hash, index: import("viem").Quantity];
|
|
160
|
+
ReturnType: import("viem").RpcUncle | null;
|
|
161
|
+
}, {
|
|
162
|
+
Method: "eth_getUncleByBlockNumberAndIndex";
|
|
163
|
+
Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag, index: import("viem").Quantity];
|
|
164
|
+
ReturnType: import("viem").RpcUncle | null;
|
|
165
|
+
}, {
|
|
166
|
+
Method: "eth_getUncleCountByBlockHash";
|
|
167
|
+
Parameters: [hash: import("viem").Hash];
|
|
168
|
+
ReturnType: import("viem").Quantity;
|
|
169
|
+
}, {
|
|
170
|
+
Method: "eth_getUncleCountByBlockNumber";
|
|
171
|
+
Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag];
|
|
172
|
+
ReturnType: import("viem").Quantity;
|
|
173
|
+
}, {
|
|
174
|
+
Method: "eth_maxPriorityFeePerGas";
|
|
175
|
+
Parameters?: undefined;
|
|
176
|
+
ReturnType: import("viem").Quantity;
|
|
177
|
+
}, {
|
|
178
|
+
Method: "eth_newBlockFilter";
|
|
179
|
+
Parameters?: undefined;
|
|
180
|
+
ReturnType: import("viem").Quantity;
|
|
181
|
+
}, {
|
|
182
|
+
Method: "eth_newFilter";
|
|
183
|
+
Parameters: [filter: {
|
|
184
|
+
fromBlock?: import("viem").RpcBlockNumber | import("viem").BlockTag | undefined;
|
|
185
|
+
toBlock?: import("viem").RpcBlockNumber | import("viem").BlockTag | undefined;
|
|
186
|
+
address?: Address | Address[] | undefined;
|
|
187
|
+
topics?: import("viem").LogTopic[] | undefined;
|
|
188
|
+
}];
|
|
189
|
+
ReturnType: import("viem").Quantity;
|
|
190
|
+
}, {
|
|
191
|
+
Method: "eth_newPendingTransactionFilter";
|
|
192
|
+
Parameters?: undefined;
|
|
193
|
+
ReturnType: import("viem").Quantity;
|
|
194
|
+
}, {
|
|
195
|
+
Method: "eth_protocolVersion";
|
|
196
|
+
Parameters?: undefined;
|
|
197
|
+
ReturnType: string;
|
|
198
|
+
}, {
|
|
199
|
+
Method: "eth_sendRawTransaction";
|
|
200
|
+
Parameters: [signedTransaction: import("viem").Hex];
|
|
201
|
+
ReturnType: import("viem").Hash;
|
|
202
|
+
}, {
|
|
203
|
+
Method: "eth_uninstallFilter";
|
|
204
|
+
Parameters: [filterId: import("viem").Quantity];
|
|
205
|
+
ReturnType: boolean;
|
|
206
|
+
}, {
|
|
207
|
+
Method: "eth_accounts";
|
|
208
|
+
Parameters?: undefined;
|
|
209
|
+
ReturnType: Address[];
|
|
210
|
+
}, {
|
|
211
|
+
Method: "eth_chainId";
|
|
212
|
+
Parameters?: undefined;
|
|
213
|
+
ReturnType: import("viem").Quantity;
|
|
214
|
+
}, {
|
|
215
|
+
Method: "eth_estimateGas";
|
|
216
|
+
Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag, stateOverride: import("viem").RpcStateOverride];
|
|
217
|
+
ReturnType: import("viem").Quantity;
|
|
218
|
+
}, {
|
|
219
|
+
Method: "eth_requestAccounts";
|
|
220
|
+
Parameters?: undefined;
|
|
221
|
+
ReturnType: Address[];
|
|
222
|
+
}, {
|
|
223
|
+
Method: "eth_sendTransaction";
|
|
224
|
+
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
225
|
+
ReturnType: import("viem").Hash;
|
|
226
|
+
}, {
|
|
227
|
+
Method: "eth_sendRawTransaction";
|
|
228
|
+
Parameters: [signedTransaction: import("viem").Hex];
|
|
229
|
+
ReturnType: import("viem").Hash;
|
|
230
|
+
}, {
|
|
231
|
+
Method: "eth_sign";
|
|
232
|
+
Parameters: [address: Address, data: import("viem").Hex];
|
|
233
|
+
ReturnType: import("viem").Hex;
|
|
234
|
+
}, {
|
|
235
|
+
Method: "eth_signTransaction";
|
|
236
|
+
Parameters: [request: import("viem").RpcTransactionRequest];
|
|
237
|
+
ReturnType: import("viem").Hex;
|
|
238
|
+
}, {
|
|
239
|
+
Method: "eth_signTypedData_v4";
|
|
240
|
+
Parameters: [address: Address, message: string];
|
|
241
|
+
ReturnType: import("viem").Hex;
|
|
242
|
+
}, {
|
|
243
|
+
Method: "eth_syncing";
|
|
244
|
+
Parameters?: undefined;
|
|
245
|
+
ReturnType: import("viem").NetworkSync | false;
|
|
246
|
+
}, {
|
|
247
|
+
Method: "personal_sign";
|
|
248
|
+
Parameters: [data: import("viem").Hex, address: Address];
|
|
249
|
+
ReturnType: import("viem").Hex;
|
|
250
|
+
}, {
|
|
251
|
+
Method: "wallet_addEthereumChain";
|
|
252
|
+
Parameters: [chain: import("viem").AddEthereumChainParameter];
|
|
253
|
+
ReturnType: null;
|
|
254
|
+
}, {
|
|
255
|
+
Method: "wallet_getCallsStatus";
|
|
256
|
+
Parameters?: [string];
|
|
257
|
+
ReturnType: import("viem").WalletGetCallsStatusReturnType;
|
|
258
|
+
}, {
|
|
259
|
+
Method: "wallet_getCapabilities";
|
|
260
|
+
Parameters?: [Address];
|
|
261
|
+
ReturnType: import("viem").Prettify<import("viem").WalletCapabilitiesRecord>;
|
|
262
|
+
}, {
|
|
263
|
+
Method: "wallet_getPermissions";
|
|
264
|
+
Parameters?: undefined;
|
|
265
|
+
ReturnType: import("viem").WalletPermission[];
|
|
266
|
+
}, {
|
|
267
|
+
Method: "wallet_grantPermissions";
|
|
268
|
+
Parameters?: [import("viem").WalletGrantPermissionsParameters];
|
|
269
|
+
ReturnType: import("viem").Prettify<import("viem").WalletGrantPermissionsReturnType>;
|
|
270
|
+
}, {
|
|
271
|
+
Method: "wallet_requestPermissions";
|
|
272
|
+
Parameters: [permissions: {
|
|
273
|
+
eth_accounts: Record<string, any>;
|
|
274
|
+
}];
|
|
275
|
+
ReturnType: import("viem").WalletPermission[];
|
|
276
|
+
}, {
|
|
277
|
+
Method: "wallet_revokePermissions";
|
|
278
|
+
Parameters: [permissions: {
|
|
279
|
+
eth_accounts: Record<string, any>;
|
|
280
|
+
}];
|
|
281
|
+
ReturnType: null;
|
|
282
|
+
}, {
|
|
283
|
+
Method: "wallet_sendCalls";
|
|
284
|
+
Parameters?: import("viem").WalletSendCallsParameters;
|
|
285
|
+
ReturnType: string;
|
|
286
|
+
}, {
|
|
287
|
+
Method: "wallet_showCallsStatus";
|
|
288
|
+
Parameters?: [string];
|
|
289
|
+
ReturnType: void;
|
|
290
|
+
}, {
|
|
291
|
+
Method: "wallet_switchEthereumChain";
|
|
292
|
+
Parameters: [chain: {
|
|
293
|
+
chainId: string;
|
|
294
|
+
}];
|
|
295
|
+
ReturnType: null;
|
|
296
|
+
}, {
|
|
297
|
+
Method: "wallet_watchAsset";
|
|
298
|
+
Parameters: import("viem").WatchAssetParams;
|
|
299
|
+
ReturnType: boolean;
|
|
300
|
+
}]>;
|
|
301
|
+
transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
|
|
302
|
+
type: string;
|
|
303
|
+
uid: string;
|
|
304
|
+
signMessage: (args: import("viem").SignMessageParameters<import("viem").Account>) => Promise<import("viem").SignMessageReturnType>;
|
|
305
|
+
signTypedData: <const typedData extends {
|
|
306
|
+
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
307
|
+
[x: `string[${string}]`]: undefined;
|
|
308
|
+
[x: `function[${string}]`]: undefined;
|
|
309
|
+
[x: `bytes32[${string}]`]: undefined;
|
|
310
|
+
[x: `address[${string}]`]: undefined;
|
|
311
|
+
[x: `uint256[${string}]`]: undefined;
|
|
312
|
+
[x: `uint8[${string}]`]: undefined;
|
|
313
|
+
[x: `bytes4[${string}]`]: undefined;
|
|
314
|
+
[x: `uint64[${string}]`]: undefined;
|
|
315
|
+
[x: `bytes[${string}]`]: undefined;
|
|
316
|
+
[x: `bool[${string}]`]: undefined;
|
|
317
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
318
|
+
[x: `bytes1[${string}]`]: undefined;
|
|
319
|
+
[x: `bytes5[${string}]`]: undefined;
|
|
320
|
+
[x: `bytes13[${string}]`]: undefined;
|
|
321
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
322
|
+
[x: `bytes16[${string}]`]: undefined;
|
|
323
|
+
[x: `bytes26[${string}]`]: undefined;
|
|
324
|
+
[x: `bytes6[${string}]`]: undefined;
|
|
325
|
+
[x: `bytes22[${string}]`]: undefined;
|
|
326
|
+
[x: `bytes7[${string}]`]: undefined;
|
|
327
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
328
|
+
[x: `bytes9[${string}]`]: undefined;
|
|
329
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
330
|
+
[x: `bytes11[${string}]`]: undefined;
|
|
331
|
+
[x: `bytes12[${string}]`]: undefined;
|
|
332
|
+
[x: `bytes14[${string}]`]: undefined;
|
|
333
|
+
[x: `bytes15[${string}]`]: undefined;
|
|
334
|
+
[x: `bytes17[${string}]`]: undefined;
|
|
335
|
+
[x: `bytes18[${string}]`]: undefined;
|
|
336
|
+
[x: `bytes19[${string}]`]: undefined;
|
|
337
|
+
[x: `bytes20[${string}]`]: undefined;
|
|
338
|
+
[x: `bytes21[${string}]`]: undefined;
|
|
339
|
+
[x: `bytes23[${string}]`]: undefined;
|
|
340
|
+
[x: `bytes24[${string}]`]: undefined;
|
|
341
|
+
[x: `bytes25[${string}]`]: undefined;
|
|
342
|
+
[x: `bytes27[${string}]`]: undefined;
|
|
343
|
+
[x: `bytes28[${string}]`]: undefined;
|
|
344
|
+
[x: `bytes29[${string}]`]: undefined;
|
|
345
|
+
[x: `bytes30[${string}]`]: undefined;
|
|
346
|
+
[x: `bytes31[${string}]`]: undefined;
|
|
347
|
+
[x: `int[${string}]`]: undefined;
|
|
348
|
+
[x: `int16[${string}]`]: undefined;
|
|
349
|
+
[x: `int8[${string}]`]: undefined;
|
|
350
|
+
[x: `int24[${string}]`]: undefined;
|
|
351
|
+
[x: `int32[${string}]`]: undefined;
|
|
352
|
+
[x: `int40[${string}]`]: undefined;
|
|
353
|
+
[x: `int48[${string}]`]: undefined;
|
|
354
|
+
[x: `int56[${string}]`]: undefined;
|
|
355
|
+
[x: `int64[${string}]`]: undefined;
|
|
356
|
+
[x: `int72[${string}]`]: undefined;
|
|
357
|
+
[x: `int80[${string}]`]: undefined;
|
|
358
|
+
[x: `int88[${string}]`]: undefined;
|
|
359
|
+
[x: `int96[${string}]`]: undefined;
|
|
360
|
+
[x: `int104[${string}]`]: undefined;
|
|
361
|
+
[x: `int112[${string}]`]: undefined;
|
|
362
|
+
[x: `int120[${string}]`]: undefined;
|
|
363
|
+
[x: `int128[${string}]`]: undefined;
|
|
364
|
+
[x: `int136[${string}]`]: undefined;
|
|
365
|
+
[x: `int144[${string}]`]: undefined;
|
|
366
|
+
[x: `int152[${string}]`]: undefined;
|
|
367
|
+
[x: `int160[${string}]`]: undefined;
|
|
368
|
+
[x: `int168[${string}]`]: undefined;
|
|
369
|
+
[x: `int176[${string}]`]: undefined;
|
|
370
|
+
[x: `int184[${string}]`]: undefined;
|
|
371
|
+
[x: `int192[${string}]`]: undefined;
|
|
372
|
+
[x: `int200[${string}]`]: undefined;
|
|
373
|
+
[x: `int208[${string}]`]: undefined;
|
|
374
|
+
[x: `int216[${string}]`]: undefined;
|
|
375
|
+
[x: `int224[${string}]`]: undefined;
|
|
376
|
+
[x: `int232[${string}]`]: undefined;
|
|
377
|
+
[x: `int240[${string}]`]: undefined;
|
|
378
|
+
[x: `int248[${string}]`]: undefined;
|
|
379
|
+
[x: `int256[${string}]`]: undefined;
|
|
380
|
+
[x: `uint[${string}]`]: undefined;
|
|
381
|
+
[x: `uint16[${string}]`]: undefined;
|
|
382
|
+
[x: `uint24[${string}]`]: undefined;
|
|
383
|
+
[x: `uint32[${string}]`]: undefined;
|
|
384
|
+
[x: `uint40[${string}]`]: undefined;
|
|
385
|
+
[x: `uint48[${string}]`]: undefined;
|
|
386
|
+
[x: `uint56[${string}]`]: undefined;
|
|
387
|
+
[x: `uint72[${string}]`]: undefined;
|
|
388
|
+
[x: `uint80[${string}]`]: undefined;
|
|
389
|
+
[x: `uint88[${string}]`]: undefined;
|
|
390
|
+
[x: `uint96[${string}]`]: undefined;
|
|
391
|
+
[x: `uint104[${string}]`]: undefined;
|
|
392
|
+
[x: `uint112[${string}]`]: undefined;
|
|
393
|
+
[x: `uint120[${string}]`]: undefined;
|
|
394
|
+
[x: `uint128[${string}]`]: undefined;
|
|
395
|
+
[x: `uint136[${string}]`]: undefined;
|
|
396
|
+
[x: `uint144[${string}]`]: undefined;
|
|
397
|
+
[x: `uint152[${string}]`]: undefined;
|
|
398
|
+
[x: `uint160[${string}]`]: undefined;
|
|
399
|
+
[x: `uint168[${string}]`]: undefined;
|
|
400
|
+
[x: `uint176[${string}]`]: undefined;
|
|
401
|
+
[x: `uint184[${string}]`]: undefined;
|
|
402
|
+
[x: `uint192[${string}]`]: undefined;
|
|
403
|
+
[x: `uint200[${string}]`]: undefined;
|
|
404
|
+
[x: `uint208[${string}]`]: undefined;
|
|
405
|
+
[x: `uint216[${string}]`]: undefined;
|
|
406
|
+
[x: `uint224[${string}]`]: undefined;
|
|
407
|
+
[x: `uint232[${string}]`]: undefined;
|
|
408
|
+
[x: `uint240[${string}]`]: undefined;
|
|
409
|
+
[x: `uint248[${string}]`]: undefined;
|
|
410
|
+
string?: undefined;
|
|
411
|
+
bytes32?: undefined;
|
|
412
|
+
address?: undefined;
|
|
413
|
+
uint256?: undefined;
|
|
414
|
+
uint8?: undefined;
|
|
415
|
+
bytes4?: undefined;
|
|
416
|
+
uint64?: undefined;
|
|
417
|
+
bytes?: undefined;
|
|
418
|
+
bool?: undefined;
|
|
419
|
+
bytes2?: undefined;
|
|
420
|
+
bytes1?: undefined;
|
|
421
|
+
bytes5?: undefined;
|
|
422
|
+
bytes13?: undefined;
|
|
423
|
+
bytes3?: undefined;
|
|
424
|
+
bytes16?: undefined;
|
|
425
|
+
bytes26?: undefined;
|
|
426
|
+
bytes6?: undefined;
|
|
427
|
+
bytes22?: undefined;
|
|
428
|
+
bytes7?: undefined;
|
|
429
|
+
bytes8?: undefined;
|
|
430
|
+
bytes9?: undefined;
|
|
431
|
+
bytes10?: undefined;
|
|
432
|
+
bytes11?: undefined;
|
|
433
|
+
bytes12?: undefined;
|
|
434
|
+
bytes14?: undefined;
|
|
435
|
+
bytes15?: undefined;
|
|
436
|
+
bytes17?: undefined;
|
|
437
|
+
bytes18?: undefined;
|
|
438
|
+
bytes19?: undefined;
|
|
439
|
+
bytes20?: undefined;
|
|
440
|
+
bytes21?: undefined;
|
|
441
|
+
bytes23?: undefined;
|
|
442
|
+
bytes24?: undefined;
|
|
443
|
+
bytes25?: undefined;
|
|
444
|
+
bytes27?: undefined;
|
|
445
|
+
bytes28?: undefined;
|
|
446
|
+
bytes29?: undefined;
|
|
447
|
+
bytes30?: undefined;
|
|
448
|
+
bytes31?: undefined;
|
|
449
|
+
int16?: undefined;
|
|
450
|
+
int8?: undefined;
|
|
451
|
+
int24?: undefined;
|
|
452
|
+
int32?: undefined;
|
|
453
|
+
int40?: undefined;
|
|
454
|
+
int48?: undefined;
|
|
455
|
+
int56?: undefined;
|
|
456
|
+
int64?: undefined;
|
|
457
|
+
int72?: undefined;
|
|
458
|
+
int80?: undefined;
|
|
459
|
+
int88?: undefined;
|
|
460
|
+
int96?: undefined;
|
|
461
|
+
int104?: undefined;
|
|
462
|
+
int112?: undefined;
|
|
463
|
+
int120?: undefined;
|
|
464
|
+
int128?: undefined;
|
|
465
|
+
int136?: undefined;
|
|
466
|
+
int144?: undefined;
|
|
467
|
+
int152?: undefined;
|
|
468
|
+
int160?: undefined;
|
|
469
|
+
int168?: undefined;
|
|
470
|
+
int176?: undefined;
|
|
471
|
+
int184?: undefined;
|
|
472
|
+
int192?: undefined;
|
|
473
|
+
int200?: undefined;
|
|
474
|
+
int208?: undefined;
|
|
475
|
+
int216?: undefined;
|
|
476
|
+
int224?: undefined;
|
|
477
|
+
int232?: undefined;
|
|
478
|
+
int240?: undefined;
|
|
479
|
+
int248?: undefined;
|
|
480
|
+
int256?: undefined;
|
|
481
|
+
uint16?: undefined;
|
|
482
|
+
uint24?: undefined;
|
|
483
|
+
uint32?: undefined;
|
|
484
|
+
uint40?: undefined;
|
|
485
|
+
uint48?: undefined;
|
|
486
|
+
uint56?: undefined;
|
|
487
|
+
uint72?: undefined;
|
|
488
|
+
uint80?: undefined;
|
|
489
|
+
uint88?: undefined;
|
|
490
|
+
uint96?: undefined;
|
|
491
|
+
uint104?: undefined;
|
|
492
|
+
uint112?: undefined;
|
|
493
|
+
uint120?: undefined;
|
|
494
|
+
uint128?: undefined;
|
|
495
|
+
uint136?: undefined;
|
|
496
|
+
uint144?: undefined;
|
|
497
|
+
uint152?: undefined;
|
|
498
|
+
uint160?: undefined;
|
|
499
|
+
uint168?: undefined;
|
|
500
|
+
uint176?: undefined;
|
|
501
|
+
uint184?: undefined;
|
|
502
|
+
uint192?: undefined;
|
|
503
|
+
uint200?: undefined;
|
|
504
|
+
uint208?: undefined;
|
|
505
|
+
uint216?: undefined;
|
|
506
|
+
uint224?: undefined;
|
|
507
|
+
uint232?: undefined;
|
|
508
|
+
uint240?: undefined;
|
|
509
|
+
uint248?: undefined;
|
|
510
|
+
} | {
|
|
511
|
+
[key: string]: unknown;
|
|
512
|
+
}, primaryType extends string>(args: import("viem").SignTypedDataParameters<typedData, primaryType, import("viem").Account>) => Promise<import("viem").SignTypedDataReturnType>;
|
|
513
|
+
signTransaction: <chainOverride extends Chain | undefined>(args: import("viem").SignTransactionParameters<Chain, import("viem").Account, chainOverride>) => Promise<import("viem").SignTransactionReturnType>;
|
|
514
|
+
getChainId: () => Promise<import("viem").GetChainIdReturnType>;
|
|
515
|
+
sendRawTransaction: (args: import("viem").SendRawTransactionParameters) => Promise<import("viem").SendRawTransactionReturnType>;
|
|
516
|
+
sendTransaction: <const request extends import("viem").SendTransactionRequest<Chain, chainOverride>, chainOverride extends Chain | undefined = undefined>(args: import("viem").SendTransactionParameters<Chain, import("viem").Account, chainOverride, request>) => Promise<import("viem").SendTransactionReturnType>;
|
|
517
|
+
writeContract: <const abi extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi, "nonpayable" | "payable">, args_1 extends import("viem").ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends Chain | undefined = undefined>(args: import("viem").WriteContractParameters<abi, functionName, args_1, Chain, import("viem").Account, chainOverride>) => Promise<import("viem").WriteContractReturnType>;
|
|
518
|
+
deployContract: <const abi extends import("viem").Abi | readonly unknown[], chainOverride extends Chain | undefined>(args: import("viem").DeployContractParameters<abi, Chain, import("viem").Account, chainOverride>) => Promise<import("viem").DeployContractReturnType>;
|
|
519
|
+
getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
|
|
520
|
+
extend: <const client extends {
|
|
521
|
+
[x: string]: unknown;
|
|
522
|
+
account?: undefined;
|
|
523
|
+
batch?: undefined;
|
|
524
|
+
cacheTime?: undefined;
|
|
525
|
+
ccipRead?: undefined;
|
|
526
|
+
chain?: undefined;
|
|
527
|
+
key?: undefined;
|
|
528
|
+
name?: undefined;
|
|
529
|
+
pollingInterval?: undefined;
|
|
530
|
+
request?: undefined;
|
|
531
|
+
transport?: undefined;
|
|
532
|
+
type?: undefined;
|
|
533
|
+
uid?: undefined;
|
|
534
|
+
} & import("viem").ExactPartial<Pick<import("viem").PublicActions<Transport, Chain, import("viem").Account>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions<Chain, import("viem").Account>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<Transport, Chain, import("viem").Account, [{
|
|
535
|
+
Method: "web3_clientVersion";
|
|
536
|
+
Parameters?: undefined;
|
|
537
|
+
ReturnType: string;
|
|
538
|
+
}, {
|
|
539
|
+
Method: "web3_sha3";
|
|
540
|
+
Parameters: [data: import("viem").Hash];
|
|
541
|
+
ReturnType: string;
|
|
542
|
+
}, {
|
|
543
|
+
Method: "net_listening";
|
|
544
|
+
Parameters?: undefined;
|
|
545
|
+
ReturnType: boolean;
|
|
546
|
+
}, {
|
|
547
|
+
Method: "net_peerCount";
|
|
548
|
+
Parameters?: undefined;
|
|
549
|
+
ReturnType: import("viem").Quantity;
|
|
550
|
+
}, {
|
|
551
|
+
Method: "net_version";
|
|
552
|
+
Parameters?: undefined;
|
|
553
|
+
ReturnType: import("viem").Quantity;
|
|
554
|
+
}, {
|
|
555
|
+
Method: "eth_blobBaseFee";
|
|
556
|
+
Parameters?: undefined;
|
|
557
|
+
ReturnType: import("viem").Quantity;
|
|
558
|
+
}, {
|
|
559
|
+
Method: "eth_blockNumber";
|
|
560
|
+
Parameters?: undefined;
|
|
561
|
+
ReturnType: import("viem").Quantity;
|
|
562
|
+
}, {
|
|
563
|
+
Method: "eth_call";
|
|
564
|
+
Parameters: [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier, stateOverrideSet: import("viem").RpcStateOverride];
|
|
565
|
+
ReturnType: import("viem").Hex;
|
|
566
|
+
}, {
|
|
567
|
+
Method: "eth_chainId";
|
|
568
|
+
Parameters?: undefined;
|
|
569
|
+
ReturnType: import("viem").Quantity;
|
|
570
|
+
}, {
|
|
571
|
+
Method: "eth_coinbase";
|
|
572
|
+
Parameters?: undefined;
|
|
573
|
+
ReturnType: Address;
|
|
574
|
+
}, {
|
|
575
|
+
Method: "eth_estimateGas";
|
|
576
|
+
Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag, stateOverride: import("viem").RpcStateOverride];
|
|
577
|
+
ReturnType: import("viem").Quantity;
|
|
578
|
+
}, {
|
|
579
|
+
Method: "eth_feeHistory";
|
|
580
|
+
Parameters: [blockCount: import("viem").Quantity, newestBlock: import("viem").RpcBlockNumber | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
|
|
581
|
+
ReturnType: import("viem").RpcFeeHistory;
|
|
582
|
+
}, {
|
|
583
|
+
Method: "eth_gasPrice";
|
|
584
|
+
Parameters?: undefined;
|
|
585
|
+
ReturnType: import("viem").Quantity;
|
|
586
|
+
}, {
|
|
587
|
+
Method: "eth_getBalance";
|
|
588
|
+
Parameters: [address: Address, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
589
|
+
ReturnType: import("viem").Quantity;
|
|
590
|
+
}, {
|
|
591
|
+
Method: "eth_getBlockByHash";
|
|
592
|
+
Parameters: [hash: import("viem").Hash, includeTransactionObjects: boolean];
|
|
593
|
+
ReturnType: import("viem").RpcBlock | null;
|
|
594
|
+
}, {
|
|
595
|
+
Method: "eth_getBlockByNumber";
|
|
596
|
+
Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag, includeTransactionObjects: boolean];
|
|
597
|
+
ReturnType: import("viem").RpcBlock | null;
|
|
598
|
+
}, {
|
|
599
|
+
Method: "eth_getBlockTransactionCountByHash";
|
|
600
|
+
Parameters: [hash: import("viem").Hash];
|
|
601
|
+
ReturnType: import("viem").Quantity;
|
|
602
|
+
}, {
|
|
603
|
+
Method: "eth_getBlockTransactionCountByNumber";
|
|
604
|
+
Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag];
|
|
605
|
+
ReturnType: import("viem").Quantity;
|
|
606
|
+
}, {
|
|
607
|
+
Method: "eth_getCode";
|
|
608
|
+
Parameters: [address: Address, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
609
|
+
ReturnType: import("viem").Hex;
|
|
610
|
+
}, {
|
|
611
|
+
Method: "eth_getFilterChanges";
|
|
612
|
+
Parameters: [filterId: import("viem").Quantity];
|
|
613
|
+
ReturnType: import("viem").RpcLog[] | import("viem").Hex[];
|
|
614
|
+
}, {
|
|
615
|
+
Method: "eth_getFilterLogs";
|
|
616
|
+
Parameters: [filterId: import("viem").Quantity];
|
|
617
|
+
ReturnType: import("viem").RpcLog[];
|
|
618
|
+
}, {
|
|
619
|
+
Method: "eth_getLogs";
|
|
620
|
+
Parameters: [{
|
|
621
|
+
address?: Address | Address[] | undefined;
|
|
622
|
+
topics?: import("viem").LogTopic[] | undefined;
|
|
623
|
+
} & ({
|
|
624
|
+
fromBlock?: import("viem").RpcBlockNumber | import("viem").BlockTag | undefined;
|
|
625
|
+
toBlock?: import("viem").RpcBlockNumber | import("viem").BlockTag | undefined;
|
|
626
|
+
blockHash?: undefined;
|
|
627
|
+
} | {
|
|
628
|
+
fromBlock?: undefined;
|
|
629
|
+
toBlock?: undefined;
|
|
630
|
+
blockHash?: import("viem").Hash | undefined;
|
|
631
|
+
})];
|
|
632
|
+
ReturnType: import("viem").RpcLog[];
|
|
633
|
+
}, {
|
|
634
|
+
Method: "eth_getProof";
|
|
635
|
+
Parameters: [address: Address, storageKeys: import("viem").Hash[], block: import("viem").RpcBlockNumber | import("viem").BlockTag];
|
|
636
|
+
ReturnType: import("viem").RpcProof;
|
|
637
|
+
}, {
|
|
638
|
+
Method: "eth_getStorageAt";
|
|
639
|
+
Parameters: [address: Address, index: import("viem").Quantity, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
640
|
+
ReturnType: import("viem").Hex;
|
|
641
|
+
}, {
|
|
642
|
+
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
643
|
+
Parameters: [hash: import("viem").Hash, index: import("viem").Quantity];
|
|
644
|
+
ReturnType: import("viem").RpcTransaction | null;
|
|
645
|
+
}, {
|
|
646
|
+
Method: "eth_getTransactionByBlockNumberAndIndex";
|
|
647
|
+
Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag, index: import("viem").Quantity];
|
|
648
|
+
ReturnType: import("viem").RpcTransaction | null;
|
|
649
|
+
}, {
|
|
650
|
+
Method: "eth_getTransactionByHash";
|
|
651
|
+
Parameters: [hash: import("viem").Hash];
|
|
652
|
+
ReturnType: import("viem").RpcTransaction | null;
|
|
653
|
+
}, {
|
|
654
|
+
Method: "eth_getTransactionCount";
|
|
655
|
+
Parameters: [address: Address, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
656
|
+
ReturnType: import("viem").Quantity;
|
|
657
|
+
}, {
|
|
658
|
+
Method: "eth_getTransactionReceipt";
|
|
659
|
+
Parameters: [hash: import("viem").Hash];
|
|
660
|
+
ReturnType: import("viem").RpcTransactionReceipt | null;
|
|
661
|
+
}, {
|
|
662
|
+
Method: "eth_getUncleByBlockHashAndIndex";
|
|
663
|
+
Parameters: [hash: import("viem").Hash, index: import("viem").Quantity];
|
|
664
|
+
ReturnType: import("viem").RpcUncle | null;
|
|
665
|
+
}, {
|
|
666
|
+
Method: "eth_getUncleByBlockNumberAndIndex";
|
|
667
|
+
Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag, index: import("viem").Quantity];
|
|
668
|
+
ReturnType: import("viem").RpcUncle | null;
|
|
669
|
+
}, {
|
|
670
|
+
Method: "eth_getUncleCountByBlockHash";
|
|
671
|
+
Parameters: [hash: import("viem").Hash];
|
|
672
|
+
ReturnType: import("viem").Quantity;
|
|
673
|
+
}, {
|
|
674
|
+
Method: "eth_getUncleCountByBlockNumber";
|
|
675
|
+
Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag];
|
|
676
|
+
ReturnType: import("viem").Quantity;
|
|
677
|
+
}, {
|
|
678
|
+
Method: "eth_maxPriorityFeePerGas";
|
|
679
|
+
Parameters?: undefined;
|
|
680
|
+
ReturnType: import("viem").Quantity;
|
|
681
|
+
}, {
|
|
682
|
+
Method: "eth_newBlockFilter";
|
|
683
|
+
Parameters?: undefined;
|
|
684
|
+
ReturnType: import("viem").Quantity;
|
|
685
|
+
}, {
|
|
686
|
+
Method: "eth_newFilter";
|
|
687
|
+
Parameters: [filter: {
|
|
688
|
+
fromBlock?: import("viem").RpcBlockNumber | import("viem").BlockTag | undefined;
|
|
689
|
+
toBlock?: import("viem").RpcBlockNumber | import("viem").BlockTag | undefined;
|
|
690
|
+
address?: Address | Address[] | undefined;
|
|
691
|
+
topics?: import("viem").LogTopic[] | undefined;
|
|
692
|
+
}];
|
|
693
|
+
ReturnType: import("viem").Quantity;
|
|
694
|
+
}, {
|
|
695
|
+
Method: "eth_newPendingTransactionFilter";
|
|
696
|
+
Parameters?: undefined;
|
|
697
|
+
ReturnType: import("viem").Quantity;
|
|
698
|
+
}, {
|
|
699
|
+
Method: "eth_protocolVersion";
|
|
700
|
+
Parameters?: undefined;
|
|
701
|
+
ReturnType: string;
|
|
702
|
+
}, {
|
|
703
|
+
Method: "eth_sendRawTransaction";
|
|
704
|
+
Parameters: [signedTransaction: import("viem").Hex];
|
|
705
|
+
ReturnType: import("viem").Hash;
|
|
706
|
+
}, {
|
|
707
|
+
Method: "eth_uninstallFilter";
|
|
708
|
+
Parameters: [filterId: import("viem").Quantity];
|
|
709
|
+
ReturnType: boolean;
|
|
710
|
+
}, {
|
|
711
|
+
Method: "eth_accounts";
|
|
712
|
+
Parameters?: undefined;
|
|
713
|
+
ReturnType: Address[];
|
|
714
|
+
}, {
|
|
715
|
+
Method: "eth_chainId";
|
|
716
|
+
Parameters?: undefined;
|
|
717
|
+
ReturnType: import("viem").Quantity;
|
|
718
|
+
}, {
|
|
719
|
+
Method: "eth_estimateGas";
|
|
720
|
+
Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag, stateOverride: import("viem").RpcStateOverride];
|
|
721
|
+
ReturnType: import("viem").Quantity;
|
|
722
|
+
}, {
|
|
723
|
+
Method: "eth_requestAccounts";
|
|
724
|
+
Parameters?: undefined;
|
|
725
|
+
ReturnType: Address[];
|
|
726
|
+
}, {
|
|
727
|
+
Method: "eth_sendTransaction";
|
|
728
|
+
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
729
|
+
ReturnType: import("viem").Hash;
|
|
730
|
+
}, {
|
|
731
|
+
Method: "eth_sendRawTransaction";
|
|
732
|
+
Parameters: [signedTransaction: import("viem").Hex];
|
|
733
|
+
ReturnType: import("viem").Hash;
|
|
734
|
+
}, {
|
|
735
|
+
Method: "eth_sign";
|
|
736
|
+
Parameters: [address: Address, data: import("viem").Hex];
|
|
737
|
+
ReturnType: import("viem").Hex;
|
|
738
|
+
}, {
|
|
739
|
+
Method: "eth_signTransaction";
|
|
740
|
+
Parameters: [request: import("viem").RpcTransactionRequest];
|
|
741
|
+
ReturnType: import("viem").Hex;
|
|
742
|
+
}, {
|
|
743
|
+
Method: "eth_signTypedData_v4";
|
|
744
|
+
Parameters: [address: Address, message: string];
|
|
745
|
+
ReturnType: import("viem").Hex;
|
|
746
|
+
}, {
|
|
747
|
+
Method: "eth_syncing";
|
|
748
|
+
Parameters?: undefined;
|
|
749
|
+
ReturnType: import("viem").NetworkSync | false;
|
|
750
|
+
}, {
|
|
751
|
+
Method: "personal_sign";
|
|
752
|
+
Parameters: [data: import("viem").Hex, address: Address];
|
|
753
|
+
ReturnType: import("viem").Hex;
|
|
754
|
+
}, {
|
|
755
|
+
Method: "wallet_addEthereumChain";
|
|
756
|
+
Parameters: [chain: import("viem").AddEthereumChainParameter];
|
|
757
|
+
ReturnType: null;
|
|
758
|
+
}, {
|
|
759
|
+
Method: "wallet_getCallsStatus";
|
|
760
|
+
Parameters?: [string];
|
|
761
|
+
ReturnType: import("viem").WalletGetCallsStatusReturnType;
|
|
762
|
+
}, {
|
|
763
|
+
Method: "wallet_getCapabilities";
|
|
764
|
+
Parameters?: [Address];
|
|
765
|
+
ReturnType: {
|
|
766
|
+
[x: `0x${string}`]: import("viem").WalletCapabilities;
|
|
767
|
+
};
|
|
768
|
+
}, {
|
|
769
|
+
Method: "wallet_getPermissions";
|
|
770
|
+
Parameters?: undefined;
|
|
771
|
+
ReturnType: import("viem").WalletPermission[];
|
|
772
|
+
}, {
|
|
773
|
+
Method: "wallet_grantPermissions";
|
|
774
|
+
Parameters?: [import("viem").WalletGrantPermissionsParameters];
|
|
775
|
+
ReturnType: import("viem").Prettify<import("viem").WalletGrantPermissionsReturnType>;
|
|
776
|
+
}, {
|
|
777
|
+
Method: "wallet_requestPermissions";
|
|
778
|
+
Parameters: [permissions: {
|
|
779
|
+
eth_accounts: Record<string, any>;
|
|
780
|
+
}];
|
|
781
|
+
ReturnType: import("viem").WalletPermission[];
|
|
782
|
+
}, {
|
|
783
|
+
Method: "wallet_revokePermissions";
|
|
784
|
+
Parameters: [permissions: {
|
|
785
|
+
eth_accounts: Record<string, any>;
|
|
786
|
+
}];
|
|
787
|
+
ReturnType: null;
|
|
788
|
+
}, {
|
|
789
|
+
Method: "wallet_sendCalls";
|
|
790
|
+
Parameters?: import("viem").WalletSendCallsParameters;
|
|
791
|
+
ReturnType: string;
|
|
792
|
+
}, {
|
|
793
|
+
Method: "wallet_showCallsStatus";
|
|
794
|
+
Parameters?: [string];
|
|
795
|
+
ReturnType: void;
|
|
796
|
+
}, {
|
|
797
|
+
Method: "wallet_switchEthereumChain";
|
|
798
|
+
Parameters: [chain: {
|
|
799
|
+
chainId: string;
|
|
800
|
+
}];
|
|
801
|
+
ReturnType: null;
|
|
802
|
+
}, {
|
|
803
|
+
Method: "wallet_watchAsset";
|
|
804
|
+
Parameters: import("viem").WatchAssetParams;
|
|
805
|
+
ReturnType: boolean;
|
|
806
|
+
}], import("../client/decorators/session_wallet.js").ZksyncSsoWalletActions<Chain, import("viem").Account>>) => client) => import("viem").Client<Transport, Chain, import("viem").Account, [{
|
|
807
|
+
Method: "web3_clientVersion";
|
|
808
|
+
Parameters?: undefined;
|
|
809
|
+
ReturnType: string;
|
|
810
|
+
}, {
|
|
811
|
+
Method: "web3_sha3";
|
|
812
|
+
Parameters: [data: import("viem").Hash];
|
|
813
|
+
ReturnType: string;
|
|
814
|
+
}, {
|
|
815
|
+
Method: "net_listening";
|
|
816
|
+
Parameters?: undefined;
|
|
817
|
+
ReturnType: boolean;
|
|
818
|
+
}, {
|
|
819
|
+
Method: "net_peerCount";
|
|
820
|
+
Parameters?: undefined;
|
|
821
|
+
ReturnType: import("viem").Quantity;
|
|
822
|
+
}, {
|
|
823
|
+
Method: "net_version";
|
|
824
|
+
Parameters?: undefined;
|
|
825
|
+
ReturnType: import("viem").Quantity;
|
|
826
|
+
}, {
|
|
827
|
+
Method: "eth_blobBaseFee";
|
|
828
|
+
Parameters?: undefined;
|
|
829
|
+
ReturnType: import("viem").Quantity;
|
|
830
|
+
}, {
|
|
831
|
+
Method: "eth_blockNumber";
|
|
832
|
+
Parameters?: undefined;
|
|
833
|
+
ReturnType: import("viem").Quantity;
|
|
834
|
+
}, {
|
|
835
|
+
Method: "eth_call";
|
|
836
|
+
Parameters: [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier, stateOverrideSet: import("viem").RpcStateOverride];
|
|
837
|
+
ReturnType: import("viem").Hex;
|
|
838
|
+
}, {
|
|
839
|
+
Method: "eth_chainId";
|
|
840
|
+
Parameters?: undefined;
|
|
841
|
+
ReturnType: import("viem").Quantity;
|
|
842
|
+
}, {
|
|
843
|
+
Method: "eth_coinbase";
|
|
844
|
+
Parameters?: undefined;
|
|
845
|
+
ReturnType: Address;
|
|
846
|
+
}, {
|
|
847
|
+
Method: "eth_estimateGas";
|
|
848
|
+
Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag, stateOverride: import("viem").RpcStateOverride];
|
|
849
|
+
ReturnType: import("viem").Quantity;
|
|
850
|
+
}, {
|
|
851
|
+
Method: "eth_feeHistory";
|
|
852
|
+
Parameters: [blockCount: import("viem").Quantity, newestBlock: import("viem").RpcBlockNumber | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
|
|
853
|
+
ReturnType: import("viem").RpcFeeHistory;
|
|
854
|
+
}, {
|
|
855
|
+
Method: "eth_gasPrice";
|
|
856
|
+
Parameters?: undefined;
|
|
857
|
+
ReturnType: import("viem").Quantity;
|
|
858
|
+
}, {
|
|
859
|
+
Method: "eth_getBalance";
|
|
860
|
+
Parameters: [address: Address, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
861
|
+
ReturnType: import("viem").Quantity;
|
|
862
|
+
}, {
|
|
863
|
+
Method: "eth_getBlockByHash";
|
|
864
|
+
Parameters: [hash: import("viem").Hash, includeTransactionObjects: boolean];
|
|
865
|
+
ReturnType: import("viem").RpcBlock | null;
|
|
866
|
+
}, {
|
|
867
|
+
Method: "eth_getBlockByNumber";
|
|
868
|
+
Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag, includeTransactionObjects: boolean];
|
|
869
|
+
ReturnType: import("viem").RpcBlock | null;
|
|
870
|
+
}, {
|
|
871
|
+
Method: "eth_getBlockTransactionCountByHash";
|
|
872
|
+
Parameters: [hash: import("viem").Hash];
|
|
873
|
+
ReturnType: import("viem").Quantity;
|
|
874
|
+
}, {
|
|
875
|
+
Method: "eth_getBlockTransactionCountByNumber";
|
|
876
|
+
Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag];
|
|
877
|
+
ReturnType: import("viem").Quantity;
|
|
878
|
+
}, {
|
|
879
|
+
Method: "eth_getCode";
|
|
880
|
+
Parameters: [address: Address, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
881
|
+
ReturnType: import("viem").Hex;
|
|
882
|
+
}, {
|
|
883
|
+
Method: "eth_getFilterChanges";
|
|
884
|
+
Parameters: [filterId: import("viem").Quantity];
|
|
885
|
+
ReturnType: import("viem").RpcLog[] | import("viem").Hex[];
|
|
886
|
+
}, {
|
|
887
|
+
Method: "eth_getFilterLogs";
|
|
888
|
+
Parameters: [filterId: import("viem").Quantity];
|
|
889
|
+
ReturnType: import("viem").RpcLog[];
|
|
890
|
+
}, {
|
|
891
|
+
Method: "eth_getLogs";
|
|
892
|
+
Parameters: [{
|
|
893
|
+
address?: Address | Address[] | undefined;
|
|
894
|
+
topics?: import("viem").LogTopic[] | undefined;
|
|
895
|
+
} & ({
|
|
896
|
+
fromBlock?: import("viem").RpcBlockNumber | import("viem").BlockTag | undefined;
|
|
897
|
+
toBlock?: import("viem").RpcBlockNumber | import("viem").BlockTag | undefined;
|
|
898
|
+
blockHash?: undefined;
|
|
899
|
+
} | {
|
|
900
|
+
fromBlock?: undefined;
|
|
901
|
+
toBlock?: undefined;
|
|
902
|
+
blockHash?: import("viem").Hash | undefined;
|
|
903
|
+
})];
|
|
904
|
+
ReturnType: import("viem").RpcLog[];
|
|
905
|
+
}, {
|
|
906
|
+
Method: "eth_getProof";
|
|
907
|
+
Parameters: [address: Address, storageKeys: import("viem").Hash[], block: import("viem").RpcBlockNumber | import("viem").BlockTag];
|
|
908
|
+
ReturnType: import("viem").RpcProof;
|
|
909
|
+
}, {
|
|
910
|
+
Method: "eth_getStorageAt";
|
|
911
|
+
Parameters: [address: Address, index: import("viem").Quantity, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
912
|
+
ReturnType: import("viem").Hex;
|
|
913
|
+
}, {
|
|
914
|
+
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
915
|
+
Parameters: [hash: import("viem").Hash, index: import("viem").Quantity];
|
|
916
|
+
ReturnType: import("viem").RpcTransaction | null;
|
|
917
|
+
}, {
|
|
918
|
+
Method: "eth_getTransactionByBlockNumberAndIndex";
|
|
919
|
+
Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag, index: import("viem").Quantity];
|
|
920
|
+
ReturnType: import("viem").RpcTransaction | null;
|
|
921
|
+
}, {
|
|
922
|
+
Method: "eth_getTransactionByHash";
|
|
923
|
+
Parameters: [hash: import("viem").Hash];
|
|
924
|
+
ReturnType: import("viem").RpcTransaction | null;
|
|
925
|
+
}, {
|
|
926
|
+
Method: "eth_getTransactionCount";
|
|
927
|
+
Parameters: [address: Address, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
928
|
+
ReturnType: import("viem").Quantity;
|
|
929
|
+
}, {
|
|
930
|
+
Method: "eth_getTransactionReceipt";
|
|
931
|
+
Parameters: [hash: import("viem").Hash];
|
|
932
|
+
ReturnType: import("viem").RpcTransactionReceipt | null;
|
|
933
|
+
}, {
|
|
934
|
+
Method: "eth_getUncleByBlockHashAndIndex";
|
|
935
|
+
Parameters: [hash: import("viem").Hash, index: import("viem").Quantity];
|
|
936
|
+
ReturnType: import("viem").RpcUncle | null;
|
|
937
|
+
}, {
|
|
938
|
+
Method: "eth_getUncleByBlockNumberAndIndex";
|
|
939
|
+
Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag, index: import("viem").Quantity];
|
|
940
|
+
ReturnType: import("viem").RpcUncle | null;
|
|
941
|
+
}, {
|
|
942
|
+
Method: "eth_getUncleCountByBlockHash";
|
|
943
|
+
Parameters: [hash: import("viem").Hash];
|
|
944
|
+
ReturnType: import("viem").Quantity;
|
|
945
|
+
}, {
|
|
946
|
+
Method: "eth_getUncleCountByBlockNumber";
|
|
947
|
+
Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag];
|
|
948
|
+
ReturnType: import("viem").Quantity;
|
|
949
|
+
}, {
|
|
950
|
+
Method: "eth_maxPriorityFeePerGas";
|
|
951
|
+
Parameters?: undefined;
|
|
952
|
+
ReturnType: import("viem").Quantity;
|
|
953
|
+
}, {
|
|
954
|
+
Method: "eth_newBlockFilter";
|
|
955
|
+
Parameters?: undefined;
|
|
956
|
+
ReturnType: import("viem").Quantity;
|
|
957
|
+
}, {
|
|
958
|
+
Method: "eth_newFilter";
|
|
959
|
+
Parameters: [filter: {
|
|
960
|
+
fromBlock?: import("viem").RpcBlockNumber | import("viem").BlockTag | undefined;
|
|
961
|
+
toBlock?: import("viem").RpcBlockNumber | import("viem").BlockTag | undefined;
|
|
962
|
+
address?: Address | Address[] | undefined;
|
|
963
|
+
topics?: import("viem").LogTopic[] | undefined;
|
|
964
|
+
}];
|
|
965
|
+
ReturnType: import("viem").Quantity;
|
|
966
|
+
}, {
|
|
967
|
+
Method: "eth_newPendingTransactionFilter";
|
|
968
|
+
Parameters?: undefined;
|
|
969
|
+
ReturnType: import("viem").Quantity;
|
|
970
|
+
}, {
|
|
971
|
+
Method: "eth_protocolVersion";
|
|
972
|
+
Parameters?: undefined;
|
|
973
|
+
ReturnType: string;
|
|
974
|
+
}, {
|
|
975
|
+
Method: "eth_sendRawTransaction";
|
|
976
|
+
Parameters: [signedTransaction: import("viem").Hex];
|
|
977
|
+
ReturnType: import("viem").Hash;
|
|
978
|
+
}, {
|
|
979
|
+
Method: "eth_uninstallFilter";
|
|
980
|
+
Parameters: [filterId: import("viem").Quantity];
|
|
981
|
+
ReturnType: boolean;
|
|
982
|
+
}, {
|
|
983
|
+
Method: "eth_accounts";
|
|
984
|
+
Parameters?: undefined;
|
|
985
|
+
ReturnType: Address[];
|
|
986
|
+
}, {
|
|
987
|
+
Method: "eth_chainId";
|
|
988
|
+
Parameters?: undefined;
|
|
989
|
+
ReturnType: import("viem").Quantity;
|
|
990
|
+
}, {
|
|
991
|
+
Method: "eth_estimateGas";
|
|
992
|
+
Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag, stateOverride: import("viem").RpcStateOverride];
|
|
993
|
+
ReturnType: import("viem").Quantity;
|
|
994
|
+
}, {
|
|
995
|
+
Method: "eth_requestAccounts";
|
|
996
|
+
Parameters?: undefined;
|
|
997
|
+
ReturnType: Address[];
|
|
998
|
+
}, {
|
|
999
|
+
Method: "eth_sendTransaction";
|
|
1000
|
+
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
1001
|
+
ReturnType: import("viem").Hash;
|
|
1002
|
+
}, {
|
|
1003
|
+
Method: "eth_sendRawTransaction";
|
|
1004
|
+
Parameters: [signedTransaction: import("viem").Hex];
|
|
1005
|
+
ReturnType: import("viem").Hash;
|
|
1006
|
+
}, {
|
|
1007
|
+
Method: "eth_sign";
|
|
1008
|
+
Parameters: [address: Address, data: import("viem").Hex];
|
|
1009
|
+
ReturnType: import("viem").Hex;
|
|
1010
|
+
}, {
|
|
1011
|
+
Method: "eth_signTransaction";
|
|
1012
|
+
Parameters: [request: import("viem").RpcTransactionRequest];
|
|
1013
|
+
ReturnType: import("viem").Hex;
|
|
1014
|
+
}, {
|
|
1015
|
+
Method: "eth_signTypedData_v4";
|
|
1016
|
+
Parameters: [address: Address, message: string];
|
|
1017
|
+
ReturnType: import("viem").Hex;
|
|
1018
|
+
}, {
|
|
1019
|
+
Method: "eth_syncing";
|
|
1020
|
+
Parameters?: undefined;
|
|
1021
|
+
ReturnType: import("viem").NetworkSync | false;
|
|
1022
|
+
}, {
|
|
1023
|
+
Method: "personal_sign";
|
|
1024
|
+
Parameters: [data: import("viem").Hex, address: Address];
|
|
1025
|
+
ReturnType: import("viem").Hex;
|
|
1026
|
+
}, {
|
|
1027
|
+
Method: "wallet_addEthereumChain";
|
|
1028
|
+
Parameters: [chain: import("viem").AddEthereumChainParameter];
|
|
1029
|
+
ReturnType: null;
|
|
1030
|
+
}, {
|
|
1031
|
+
Method: "wallet_getCallsStatus";
|
|
1032
|
+
Parameters?: [string];
|
|
1033
|
+
ReturnType: import("viem").WalletGetCallsStatusReturnType;
|
|
1034
|
+
}, {
|
|
1035
|
+
Method: "wallet_getCapabilities";
|
|
1036
|
+
Parameters?: [Address];
|
|
1037
|
+
ReturnType: {
|
|
1038
|
+
[x: `0x${string}`]: import("viem").WalletCapabilities;
|
|
1039
|
+
};
|
|
1040
|
+
}, {
|
|
1041
|
+
Method: "wallet_getPermissions";
|
|
1042
|
+
Parameters?: undefined;
|
|
1043
|
+
ReturnType: import("viem").WalletPermission[];
|
|
1044
|
+
}, {
|
|
1045
|
+
Method: "wallet_grantPermissions";
|
|
1046
|
+
Parameters?: [import("viem").WalletGrantPermissionsParameters];
|
|
1047
|
+
ReturnType: import("viem").Prettify<import("viem").WalletGrantPermissionsReturnType>;
|
|
1048
|
+
}, {
|
|
1049
|
+
Method: "wallet_requestPermissions";
|
|
1050
|
+
Parameters: [permissions: {
|
|
1051
|
+
eth_accounts: Record<string, any>;
|
|
1052
|
+
}];
|
|
1053
|
+
ReturnType: import("viem").WalletPermission[];
|
|
1054
|
+
}, {
|
|
1055
|
+
Method: "wallet_revokePermissions";
|
|
1056
|
+
Parameters: [permissions: {
|
|
1057
|
+
eth_accounts: Record<string, any>;
|
|
1058
|
+
}];
|
|
1059
|
+
ReturnType: null;
|
|
1060
|
+
}, {
|
|
1061
|
+
Method: "wallet_sendCalls";
|
|
1062
|
+
Parameters?: import("viem").WalletSendCallsParameters;
|
|
1063
|
+
ReturnType: string;
|
|
1064
|
+
}, {
|
|
1065
|
+
Method: "wallet_showCallsStatus";
|
|
1066
|
+
Parameters?: [string];
|
|
1067
|
+
ReturnType: void;
|
|
1068
|
+
}, {
|
|
1069
|
+
Method: "wallet_switchEthereumChain";
|
|
1070
|
+
Parameters: [chain: {
|
|
1071
|
+
chainId: string;
|
|
1072
|
+
}];
|
|
1073
|
+
ReturnType: null;
|
|
1074
|
+
}, {
|
|
1075
|
+
Method: "wallet_watchAsset";
|
|
1076
|
+
Parameters: import("viem").WatchAssetParams;
|
|
1077
|
+
ReturnType: boolean;
|
|
1078
|
+
}], { [K in keyof client]: client[K]; } & import("../client/decorators/session_wallet.js").ZksyncSsoWalletActions<Chain, import("viem").Account>>;
|
|
1079
|
+
sessionKey: import("viem").Hash;
|
|
1080
|
+
sessionConfig: import("../utils/session.js").SessionConfig;
|
|
1081
|
+
contracts: import("../client/index.js").SessionRequiredContracts;
|
|
1082
|
+
};
|
|
19
1083
|
request<M extends Method>(request: RequestArguments<M>): Promise<ExtractReturnType<M>>;
|
|
20
1084
|
handshake(): Promise<Address[]>;
|
|
21
1085
|
disconnect(): Promise<void>;
|