@wagmi/connectors 1.0.0-next.2 → 1.0.0-next.4
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/README.md +3 -3
- package/dist/coinbaseWallet.d.ts +1 -831
- package/dist/index.d.ts +1 -19
- package/dist/injected.d.ts +1 -833
- package/dist/ledger.d.ts +1 -810
- package/dist/metaMask.d.ts +1 -37
- package/dist/mock/index.d.ts +1 -1578
- package/dist/safe.d.ts +1 -822
- package/dist/walletConnect.d.ts +1 -873
- package/dist/walletConnectLegacy.d.ts +1 -811
- package/package.json +1 -1
- package/dist/base-335f54fd.d.ts +0 -129
- package/dist/chunk-FMYAICWT.js +0 -364
- package/dist/chunk-OQILYQDO.js +0 -15
- package/dist/chunk-QYMCVNHT.js +0 -68
- package/dist/chunk-ZCAPXGBX.js +0 -26
- package/dist/coinbaseWallet.js +0 -215
- package/dist/index.js +0 -12
- package/dist/injected.js +0 -9
- package/dist/ledger.js +0 -192
- package/dist/metaMask.js +0 -123
- package/dist/mock/index.js +0 -202
- package/dist/safe.js +0 -128
- package/dist/walletConnect.js +0 -311
- package/dist/walletConnectLegacy.js +0 -178
package/dist/coinbaseWallet.d.ts
CHANGED
|
@@ -1,831 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as viem_dist_types_types_eip1193 from 'viem/dist/types/types/eip1193';
|
|
3
|
-
import * as viem_dist_types_types from 'viem/dist/types/types';
|
|
4
|
-
import * as viem from 'viem';
|
|
5
|
-
import { CoinbaseWalletProvider } from '@coinbase/wallet-sdk';
|
|
6
|
-
import { CoinbaseWalletSDKOptions } from '@coinbase/wallet-sdk/dist/CoinbaseWalletSDK';
|
|
7
|
-
import { Chain } from '@wagmi/chains';
|
|
8
|
-
import { C as Connector } from './base-335f54fd.js';
|
|
9
|
-
import 'abitype';
|
|
10
|
-
import 'eventemitter3';
|
|
11
|
-
|
|
12
|
-
type Options = Omit<CoinbaseWalletSDKOptions, 'reloadOnDisconnect'> & {
|
|
13
|
-
/**
|
|
14
|
-
* Fallback Ethereum JSON RPC URL
|
|
15
|
-
* @default ""
|
|
16
|
-
*/
|
|
17
|
-
jsonRpcUrl?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Fallback Ethereum Chain ID
|
|
20
|
-
* @default 1
|
|
21
|
-
*/
|
|
22
|
-
chainId?: number;
|
|
23
|
-
/**
|
|
24
|
-
* Whether or not to reload dapp automatically after disconnect.
|
|
25
|
-
*/
|
|
26
|
-
reloadOnDisconnect?: boolean;
|
|
27
|
-
};
|
|
28
|
-
declare class CoinbaseWalletConnector extends Connector<CoinbaseWalletProvider, Options> {
|
|
29
|
-
#private;
|
|
30
|
-
readonly id = "coinbaseWallet";
|
|
31
|
-
readonly name = "Coinbase Wallet";
|
|
32
|
-
readonly ready = true;
|
|
33
|
-
constructor({ chains, options }: {
|
|
34
|
-
chains?: Chain[];
|
|
35
|
-
options: Options;
|
|
36
|
-
});
|
|
37
|
-
connect({ chainId }?: {
|
|
38
|
-
chainId?: number;
|
|
39
|
-
}): Promise<{
|
|
40
|
-
account: `0x${string}`;
|
|
41
|
-
chain: {
|
|
42
|
-
id: number;
|
|
43
|
-
unsupported: boolean;
|
|
44
|
-
};
|
|
45
|
-
}>;
|
|
46
|
-
disconnect(): Promise<void>;
|
|
47
|
-
getAccount(): Promise<`0x${string}`>;
|
|
48
|
-
getChainId(): Promise<number>;
|
|
49
|
-
getProvider(): Promise<CoinbaseWalletProvider>;
|
|
50
|
-
getWalletClient({ chainId }?: {
|
|
51
|
-
chainId?: number;
|
|
52
|
-
}): Promise<{
|
|
53
|
-
chain: Chain;
|
|
54
|
-
key: string;
|
|
55
|
-
name: string;
|
|
56
|
-
pollingInterval: number;
|
|
57
|
-
request: {
|
|
58
|
-
(args: {
|
|
59
|
-
method: "web3_clientVersion";
|
|
60
|
-
params?: undefined;
|
|
61
|
-
}): Promise<string>;
|
|
62
|
-
(args: {
|
|
63
|
-
method: "web3_sha3";
|
|
64
|
-
params: [data: `0x${string}`];
|
|
65
|
-
}): Promise<string>;
|
|
66
|
-
(args: {
|
|
67
|
-
method: "net_listening";
|
|
68
|
-
params?: undefined;
|
|
69
|
-
}): Promise<boolean>;
|
|
70
|
-
(args: {
|
|
71
|
-
method: "net_peerCount";
|
|
72
|
-
params?: undefined;
|
|
73
|
-
}): Promise<`0x${string}`>;
|
|
74
|
-
(args: {
|
|
75
|
-
method: "net_version";
|
|
76
|
-
params?: undefined;
|
|
77
|
-
}): Promise<`0x${string}`>;
|
|
78
|
-
(args: {
|
|
79
|
-
method: "eth_blockNumber";
|
|
80
|
-
params?: undefined;
|
|
81
|
-
}): Promise<`0x${string}`>;
|
|
82
|
-
(args: {
|
|
83
|
-
method: "eth_call";
|
|
84
|
-
params: [request: Partial<viem.RpcTransactionRequest>, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
85
|
-
}): Promise<`0x${string}`>;
|
|
86
|
-
(args: {
|
|
87
|
-
method: "eth_chainId";
|
|
88
|
-
params?: undefined;
|
|
89
|
-
}): Promise<`0x${string}`>;
|
|
90
|
-
(args: {
|
|
91
|
-
method: "eth_coinbase";
|
|
92
|
-
params?: undefined;
|
|
93
|
-
}): Promise<`0x${string}`>;
|
|
94
|
-
(args: {
|
|
95
|
-
method: "eth_estimateGas";
|
|
96
|
-
params: [parameters: viem.RpcTransactionRequest, block: `0x${string}` | viem.BlockTag];
|
|
97
|
-
}): Promise<`0x${string}`>;
|
|
98
|
-
(args: {
|
|
99
|
-
method: "eth_feeHistory";
|
|
100
|
-
params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
|
|
101
|
-
}): Promise<viem.RpcFeeHistory>;
|
|
102
|
-
(args: {
|
|
103
|
-
method: "eth_gasPrice";
|
|
104
|
-
params?: undefined;
|
|
105
|
-
}): Promise<`0x${string}`>;
|
|
106
|
-
(args: {
|
|
107
|
-
method: "eth_getBalance";
|
|
108
|
-
params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
109
|
-
}): Promise<`0x${string}`>;
|
|
110
|
-
(args: {
|
|
111
|
-
method: "eth_getBlockByHash";
|
|
112
|
-
params: [hash: `0x${string}`, includeTransactionObjects: boolean];
|
|
113
|
-
}): Promise<viem.RpcBlock | null>;
|
|
114
|
-
(args: {
|
|
115
|
-
method: "eth_getBlockByNumber";
|
|
116
|
-
params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
|
|
117
|
-
}): Promise<viem.RpcBlock | null>;
|
|
118
|
-
(args: {
|
|
119
|
-
method: "eth_getBlockTransactionCountByHash";
|
|
120
|
-
params: [hash: `0x${string}`];
|
|
121
|
-
}): Promise<`0x${string}`>;
|
|
122
|
-
(args: {
|
|
123
|
-
method: "eth_getBlockTransactionCountByNumber";
|
|
124
|
-
params: [block: `0x${string}` | viem.BlockTag];
|
|
125
|
-
}): Promise<`0x${string}`>;
|
|
126
|
-
(args: {
|
|
127
|
-
method: "eth_getCode";
|
|
128
|
-
params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
129
|
-
}): Promise<`0x${string}`>;
|
|
130
|
-
(args: {
|
|
131
|
-
method: "eth_getFilterChanges";
|
|
132
|
-
params: [filterId: `0x${string}`];
|
|
133
|
-
}): Promise<`0x${string}`[] | {
|
|
134
|
-
address: `0x${string}`;
|
|
135
|
-
blockHash: `0x${string}` | null;
|
|
136
|
-
blockNumber: `0x${string}` | null;
|
|
137
|
-
data: `0x${string}`;
|
|
138
|
-
logIndex: `0x${string}` | null;
|
|
139
|
-
transactionHash: `0x${string}` | null;
|
|
140
|
-
transactionIndex: `0x${string}` | null;
|
|
141
|
-
topics: [] | [`0x${string}`, ...`0x${string}`[]];
|
|
142
|
-
removed: boolean;
|
|
143
|
-
}[]>;
|
|
144
|
-
(args: {
|
|
145
|
-
method: "eth_getFilterLogs";
|
|
146
|
-
params: [filterId: `0x${string}`];
|
|
147
|
-
}): Promise<{
|
|
148
|
-
address: `0x${string}`;
|
|
149
|
-
blockHash: `0x${string}` | null;
|
|
150
|
-
blockNumber: `0x${string}` | null;
|
|
151
|
-
data: `0x${string}`;
|
|
152
|
-
logIndex: `0x${string}` | null;
|
|
153
|
-
transactionHash: `0x${string}` | null;
|
|
154
|
-
transactionIndex: `0x${string}` | null;
|
|
155
|
-
topics: [] | [`0x${string}`, ...`0x${string}`[]];
|
|
156
|
-
removed: boolean;
|
|
157
|
-
}[]>;
|
|
158
|
-
(args: {
|
|
159
|
-
method: "eth_getLogs";
|
|
160
|
-
params: [parameters: {
|
|
161
|
-
address?: `0x${string}` | `0x${string}`[] | undefined;
|
|
162
|
-
topics?: viem_dist_types_types.LogTopic[] | undefined;
|
|
163
|
-
} & ({
|
|
164
|
-
fromBlock?: `0x${string}` | viem.BlockTag | undefined;
|
|
165
|
-
toBlock?: `0x${string}` | viem.BlockTag | undefined;
|
|
166
|
-
blockHash?: undefined;
|
|
167
|
-
} | {
|
|
168
|
-
fromBlock?: undefined;
|
|
169
|
-
toBlock?: undefined;
|
|
170
|
-
blockHash?: `0x${string}` | undefined;
|
|
171
|
-
})];
|
|
172
|
-
}): Promise<{
|
|
173
|
-
address: `0x${string}`;
|
|
174
|
-
blockHash: `0x${string}` | null;
|
|
175
|
-
blockNumber: `0x${string}` | null;
|
|
176
|
-
data: `0x${string}`;
|
|
177
|
-
logIndex: `0x${string}` | null;
|
|
178
|
-
transactionHash: `0x${string}` | null;
|
|
179
|
-
transactionIndex: `0x${string}` | null;
|
|
180
|
-
topics: [] | [`0x${string}`, ...`0x${string}`[]];
|
|
181
|
-
removed: boolean;
|
|
182
|
-
}[]>;
|
|
183
|
-
(args: {
|
|
184
|
-
method: "eth_getStorageAt";
|
|
185
|
-
params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
186
|
-
}): Promise<`0x${string}`>;
|
|
187
|
-
(args: {
|
|
188
|
-
method: "eth_getTransactionByBlockHashAndIndex";
|
|
189
|
-
params: [hash: `0x${string}`, index: `0x${string}`];
|
|
190
|
-
}): Promise<viem.RpcTransaction | null>;
|
|
191
|
-
(args: {
|
|
192
|
-
method: "eth_getTransactionByBlockNumberAndIndex";
|
|
193
|
-
params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
|
|
194
|
-
}): Promise<viem.RpcTransaction | null>;
|
|
195
|
-
(args: {
|
|
196
|
-
method: "eth_getTransactionByHash";
|
|
197
|
-
params: [hash: `0x${string}`];
|
|
198
|
-
}): Promise<viem.RpcTransaction | null>;
|
|
199
|
-
(args: {
|
|
200
|
-
method: "eth_getTransactionCount";
|
|
201
|
-
params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
202
|
-
}): Promise<`0x${string}`>;
|
|
203
|
-
(args: {
|
|
204
|
-
method: "eth_getTransactionReceipt";
|
|
205
|
-
params: [hash: `0x${string}`];
|
|
206
|
-
}): Promise<viem.RpcTransactionReceipt | null>;
|
|
207
|
-
(args: {
|
|
208
|
-
method: "eth_getUncleByBlockHashAndIndex";
|
|
209
|
-
params: [hash: `0x${string}`, index: `0x${string}`];
|
|
210
|
-
}): Promise<viem.RpcUncle | null>;
|
|
211
|
-
(args: {
|
|
212
|
-
method: "eth_getUncleByBlockNumberAndIndex";
|
|
213
|
-
params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
|
|
214
|
-
}): Promise<viem.RpcUncle | null>;
|
|
215
|
-
(args: {
|
|
216
|
-
method: "eth_getUncleCountByBlockHash";
|
|
217
|
-
params: [hash: `0x${string}`];
|
|
218
|
-
}): Promise<`0x${string}`>;
|
|
219
|
-
(args: {
|
|
220
|
-
method: "eth_getUncleCountByBlockNumber";
|
|
221
|
-
params: [block: `0x${string}` | viem.BlockTag];
|
|
222
|
-
}): Promise<`0x${string}`>;
|
|
223
|
-
(args: {
|
|
224
|
-
method: "eth_newBlockFilter";
|
|
225
|
-
params?: undefined;
|
|
226
|
-
}): Promise<`0x${string}`>;
|
|
227
|
-
(args: {
|
|
228
|
-
method: "eth_newFilter";
|
|
229
|
-
params: [filter: {
|
|
230
|
-
fromBlock?: `0x${string}` | viem.BlockTag | undefined;
|
|
231
|
-
toBlock?: `0x${string}` | viem.BlockTag | undefined;
|
|
232
|
-
address?: `0x${string}` | `0x${string}`[] | undefined;
|
|
233
|
-
topics?: viem_dist_types_types.LogTopic[] | undefined;
|
|
234
|
-
}];
|
|
235
|
-
}): Promise<`0x${string}`>;
|
|
236
|
-
(args: {
|
|
237
|
-
method: "eth_newPendingTransactionFilter";
|
|
238
|
-
params?: undefined;
|
|
239
|
-
}): Promise<`0x${string}`>;
|
|
240
|
-
(args: {
|
|
241
|
-
method: "eth_protocolVersion";
|
|
242
|
-
params?: undefined;
|
|
243
|
-
}): Promise<string>;
|
|
244
|
-
(args: {
|
|
245
|
-
method: "eth_sendRawTransaction";
|
|
246
|
-
params: [signedTransaction: `0x${string}`];
|
|
247
|
-
}): Promise<`0x${string}`>;
|
|
248
|
-
(args: {
|
|
249
|
-
method: "eth_uninstallFilter";
|
|
250
|
-
params: [filterId: `0x${string}`];
|
|
251
|
-
}): Promise<boolean>;
|
|
252
|
-
} & {
|
|
253
|
-
(args: {
|
|
254
|
-
method: "eth_sendTransaction";
|
|
255
|
-
params: [request: viem.RpcTransactionRequest];
|
|
256
|
-
}): Promise<`0x${string}`>;
|
|
257
|
-
(args: {
|
|
258
|
-
method: "eth_sign";
|
|
259
|
-
params: [address: `0x${string}`, data: `0x${string}`];
|
|
260
|
-
}): Promise<`0x${string}`>;
|
|
261
|
-
(args: {
|
|
262
|
-
method: "eth_signTransaction";
|
|
263
|
-
params: [request: viem.RpcTransactionRequest];
|
|
264
|
-
}): Promise<`0x${string}`>;
|
|
265
|
-
(args: {
|
|
266
|
-
method: "eth_signTypedData_v4";
|
|
267
|
-
params: [address: `0x${string}`, message: string];
|
|
268
|
-
}): Promise<`0x${string}`>;
|
|
269
|
-
(args: {
|
|
270
|
-
method: "eth_syncing";
|
|
271
|
-
params?: undefined;
|
|
272
|
-
}): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
|
|
273
|
-
(args: {
|
|
274
|
-
method: "personal_sign";
|
|
275
|
-
params: [data: `0x${string}`, address: `0x${string}`];
|
|
276
|
-
}): Promise<`0x${string}`>;
|
|
277
|
-
} & {
|
|
278
|
-
(args: {
|
|
279
|
-
method: "eth_accounts";
|
|
280
|
-
params?: undefined;
|
|
281
|
-
}): Promise<`0x${string}`[]>;
|
|
282
|
-
(args: {
|
|
283
|
-
method: "eth_chainId";
|
|
284
|
-
params?: undefined;
|
|
285
|
-
}): Promise<`0x${string}`>;
|
|
286
|
-
(args: {
|
|
287
|
-
method: "eth_requestAccounts";
|
|
288
|
-
params?: undefined;
|
|
289
|
-
}): Promise<`0x${string}`[]>;
|
|
290
|
-
(args: {
|
|
291
|
-
method: "wallet_requestPermissions";
|
|
292
|
-
params: [permissions: {
|
|
293
|
-
eth_accounts: Record<string, any>;
|
|
294
|
-
}];
|
|
295
|
-
}): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
|
|
296
|
-
(args: {
|
|
297
|
-
method: "wallet_getPermissions";
|
|
298
|
-
params?: undefined;
|
|
299
|
-
}): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
|
|
300
|
-
(args: {
|
|
301
|
-
method: "wallet_addEthereumChain";
|
|
302
|
-
params: [chain: viem_dist_types_types_eip1193.Chain];
|
|
303
|
-
}): Promise<null>;
|
|
304
|
-
(args: {
|
|
305
|
-
method: "wallet_switchEthereumChain";
|
|
306
|
-
params: [chain: {
|
|
307
|
-
chainId: string;
|
|
308
|
-
}];
|
|
309
|
-
}): Promise<null>;
|
|
310
|
-
(args: {
|
|
311
|
-
method: "wallet_watchAsset";
|
|
312
|
-
params: viem_dist_types_types_eip1193.WatchAssetParams;
|
|
313
|
-
}): Promise<boolean>;
|
|
314
|
-
};
|
|
315
|
-
transport: viem.TransportConfig<"custom", {
|
|
316
|
-
(args: {
|
|
317
|
-
method: "web3_clientVersion";
|
|
318
|
-
params?: undefined;
|
|
319
|
-
}): Promise<string>;
|
|
320
|
-
(args: {
|
|
321
|
-
method: "web3_sha3";
|
|
322
|
-
params: [data: `0x${string}`];
|
|
323
|
-
}): Promise<string>;
|
|
324
|
-
(args: {
|
|
325
|
-
method: "net_listening";
|
|
326
|
-
params?: undefined;
|
|
327
|
-
}): Promise<boolean>;
|
|
328
|
-
(args: {
|
|
329
|
-
method: "net_peerCount";
|
|
330
|
-
params?: undefined;
|
|
331
|
-
}): Promise<`0x${string}`>;
|
|
332
|
-
(args: {
|
|
333
|
-
method: "net_version";
|
|
334
|
-
params?: undefined;
|
|
335
|
-
}): Promise<`0x${string}`>;
|
|
336
|
-
(args: {
|
|
337
|
-
method: "eth_blockNumber";
|
|
338
|
-
params?: undefined;
|
|
339
|
-
}): Promise<`0x${string}`>;
|
|
340
|
-
(args: {
|
|
341
|
-
method: "eth_call";
|
|
342
|
-
params: [request: Partial<viem.RpcTransactionRequest>, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
343
|
-
}): Promise<`0x${string}`>;
|
|
344
|
-
(args: {
|
|
345
|
-
method: "eth_chainId";
|
|
346
|
-
params?: undefined;
|
|
347
|
-
}): Promise<`0x${string}`>;
|
|
348
|
-
(args: {
|
|
349
|
-
method: "eth_coinbase";
|
|
350
|
-
params?: undefined;
|
|
351
|
-
}): Promise<`0x${string}`>;
|
|
352
|
-
(args: {
|
|
353
|
-
method: "eth_estimateGas";
|
|
354
|
-
params: [parameters: viem.RpcTransactionRequest, block: `0x${string}` | viem.BlockTag];
|
|
355
|
-
}): Promise<`0x${string}`>;
|
|
356
|
-
(args: {
|
|
357
|
-
method: "eth_feeHistory";
|
|
358
|
-
params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
|
|
359
|
-
}): Promise<viem.RpcFeeHistory>;
|
|
360
|
-
(args: {
|
|
361
|
-
method: "eth_gasPrice";
|
|
362
|
-
params?: undefined;
|
|
363
|
-
}): Promise<`0x${string}`>;
|
|
364
|
-
(args: {
|
|
365
|
-
method: "eth_getBalance";
|
|
366
|
-
params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
367
|
-
}): Promise<`0x${string}`>;
|
|
368
|
-
(args: {
|
|
369
|
-
method: "eth_getBlockByHash";
|
|
370
|
-
params: [hash: `0x${string}`, includeTransactionObjects: boolean];
|
|
371
|
-
}): Promise<viem.RpcBlock | null>;
|
|
372
|
-
(args: {
|
|
373
|
-
method: "eth_getBlockByNumber";
|
|
374
|
-
params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
|
|
375
|
-
}): Promise<viem.RpcBlock | null>;
|
|
376
|
-
(args: {
|
|
377
|
-
method: "eth_getBlockTransactionCountByHash";
|
|
378
|
-
params: [hash: `0x${string}`];
|
|
379
|
-
}): Promise<`0x${string}`>;
|
|
380
|
-
(args: {
|
|
381
|
-
method: "eth_getBlockTransactionCountByNumber";
|
|
382
|
-
params: [block: `0x${string}` | viem.BlockTag];
|
|
383
|
-
}): Promise<`0x${string}`>;
|
|
384
|
-
(args: {
|
|
385
|
-
method: "eth_getCode";
|
|
386
|
-
params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
387
|
-
}): Promise<`0x${string}`>;
|
|
388
|
-
(args: {
|
|
389
|
-
method: "eth_getFilterChanges";
|
|
390
|
-
params: [filterId: `0x${string}`];
|
|
391
|
-
}): Promise<`0x${string}`[] | {
|
|
392
|
-
address: `0x${string}`;
|
|
393
|
-
blockHash: `0x${string}` | null;
|
|
394
|
-
blockNumber: `0x${string}` | null;
|
|
395
|
-
data: `0x${string}`;
|
|
396
|
-
logIndex: `0x${string}` | null;
|
|
397
|
-
transactionHash: `0x${string}` | null;
|
|
398
|
-
transactionIndex: `0x${string}` | null;
|
|
399
|
-
topics: [] | [`0x${string}`, ...`0x${string}`[]];
|
|
400
|
-
removed: boolean;
|
|
401
|
-
}[]>;
|
|
402
|
-
(args: {
|
|
403
|
-
method: "eth_getFilterLogs";
|
|
404
|
-
params: [filterId: `0x${string}`];
|
|
405
|
-
}): Promise<{
|
|
406
|
-
address: `0x${string}`;
|
|
407
|
-
blockHash: `0x${string}` | null;
|
|
408
|
-
blockNumber: `0x${string}` | null;
|
|
409
|
-
data: `0x${string}`;
|
|
410
|
-
logIndex: `0x${string}` | null;
|
|
411
|
-
transactionHash: `0x${string}` | null;
|
|
412
|
-
transactionIndex: `0x${string}` | null;
|
|
413
|
-
topics: [] | [`0x${string}`, ...`0x${string}`[]];
|
|
414
|
-
removed: boolean;
|
|
415
|
-
}[]>;
|
|
416
|
-
(args: {
|
|
417
|
-
method: "eth_getLogs";
|
|
418
|
-
params: [parameters: {
|
|
419
|
-
address?: `0x${string}` | `0x${string}`[] | undefined;
|
|
420
|
-
topics?: viem_dist_types_types.LogTopic[] | undefined;
|
|
421
|
-
} & ({
|
|
422
|
-
fromBlock?: `0x${string}` | viem.BlockTag | undefined;
|
|
423
|
-
toBlock?: `0x${string}` | viem.BlockTag | undefined;
|
|
424
|
-
blockHash?: undefined;
|
|
425
|
-
} | {
|
|
426
|
-
fromBlock?: undefined;
|
|
427
|
-
toBlock?: undefined;
|
|
428
|
-
blockHash?: `0x${string}` | undefined;
|
|
429
|
-
})];
|
|
430
|
-
}): Promise<{
|
|
431
|
-
address: `0x${string}`;
|
|
432
|
-
blockHash: `0x${string}` | null;
|
|
433
|
-
blockNumber: `0x${string}` | null;
|
|
434
|
-
data: `0x${string}`;
|
|
435
|
-
logIndex: `0x${string}` | null;
|
|
436
|
-
transactionHash: `0x${string}` | null;
|
|
437
|
-
transactionIndex: `0x${string}` | null;
|
|
438
|
-
topics: [] | [`0x${string}`, ...`0x${string}`[]];
|
|
439
|
-
removed: boolean;
|
|
440
|
-
}[]>;
|
|
441
|
-
(args: {
|
|
442
|
-
method: "eth_getStorageAt";
|
|
443
|
-
params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
444
|
-
}): Promise<`0x${string}`>;
|
|
445
|
-
(args: {
|
|
446
|
-
method: "eth_getTransactionByBlockHashAndIndex";
|
|
447
|
-
params: [hash: `0x${string}`, index: `0x${string}`];
|
|
448
|
-
}): Promise<viem.RpcTransaction | null>;
|
|
449
|
-
(args: {
|
|
450
|
-
method: "eth_getTransactionByBlockNumberAndIndex";
|
|
451
|
-
params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
|
|
452
|
-
}): Promise<viem.RpcTransaction | null>;
|
|
453
|
-
(args: {
|
|
454
|
-
method: "eth_getTransactionByHash";
|
|
455
|
-
params: [hash: `0x${string}`];
|
|
456
|
-
}): Promise<viem.RpcTransaction | null>;
|
|
457
|
-
(args: {
|
|
458
|
-
method: "eth_getTransactionCount";
|
|
459
|
-
params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
460
|
-
}): Promise<`0x${string}`>;
|
|
461
|
-
(args: {
|
|
462
|
-
method: "eth_getTransactionReceipt";
|
|
463
|
-
params: [hash: `0x${string}`];
|
|
464
|
-
}): Promise<viem.RpcTransactionReceipt | null>;
|
|
465
|
-
(args: {
|
|
466
|
-
method: "eth_getUncleByBlockHashAndIndex";
|
|
467
|
-
params: [hash: `0x${string}`, index: `0x${string}`];
|
|
468
|
-
}): Promise<viem.RpcUncle | null>;
|
|
469
|
-
(args: {
|
|
470
|
-
method: "eth_getUncleByBlockNumberAndIndex";
|
|
471
|
-
params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
|
|
472
|
-
}): Promise<viem.RpcUncle | null>;
|
|
473
|
-
(args: {
|
|
474
|
-
method: "eth_getUncleCountByBlockHash";
|
|
475
|
-
params: [hash: `0x${string}`];
|
|
476
|
-
}): Promise<`0x${string}`>;
|
|
477
|
-
(args: {
|
|
478
|
-
method: "eth_getUncleCountByBlockNumber";
|
|
479
|
-
params: [block: `0x${string}` | viem.BlockTag];
|
|
480
|
-
}): Promise<`0x${string}`>;
|
|
481
|
-
(args: {
|
|
482
|
-
method: "eth_newBlockFilter";
|
|
483
|
-
params?: undefined;
|
|
484
|
-
}): Promise<`0x${string}`>;
|
|
485
|
-
(args: {
|
|
486
|
-
method: "eth_newFilter";
|
|
487
|
-
params: [filter: {
|
|
488
|
-
fromBlock?: `0x${string}` | viem.BlockTag | undefined;
|
|
489
|
-
toBlock?: `0x${string}` | viem.BlockTag | undefined;
|
|
490
|
-
address?: `0x${string}` | `0x${string}`[] | undefined;
|
|
491
|
-
topics?: viem_dist_types_types.LogTopic[] | undefined;
|
|
492
|
-
}];
|
|
493
|
-
}): Promise<`0x${string}`>;
|
|
494
|
-
(args: {
|
|
495
|
-
method: "eth_newPendingTransactionFilter";
|
|
496
|
-
params?: undefined;
|
|
497
|
-
}): Promise<`0x${string}`>;
|
|
498
|
-
(args: {
|
|
499
|
-
method: "eth_protocolVersion";
|
|
500
|
-
params?: undefined;
|
|
501
|
-
}): Promise<string>;
|
|
502
|
-
(args: {
|
|
503
|
-
method: "eth_sendRawTransaction";
|
|
504
|
-
params: [signedTransaction: `0x${string}`];
|
|
505
|
-
}): Promise<`0x${string}`>;
|
|
506
|
-
(args: {
|
|
507
|
-
method: "eth_uninstallFilter";
|
|
508
|
-
params: [filterId: `0x${string}`];
|
|
509
|
-
}): Promise<boolean>;
|
|
510
|
-
} & {
|
|
511
|
-
(args: {
|
|
512
|
-
method: "eth_sendTransaction";
|
|
513
|
-
params: [request: viem.RpcTransactionRequest];
|
|
514
|
-
}): Promise<`0x${string}`>;
|
|
515
|
-
(args: {
|
|
516
|
-
method: "eth_sign";
|
|
517
|
-
params: [address: `0x${string}`, data: `0x${string}`];
|
|
518
|
-
}): Promise<`0x${string}`>;
|
|
519
|
-
(args: {
|
|
520
|
-
method: "eth_signTransaction";
|
|
521
|
-
params: [request: viem.RpcTransactionRequest];
|
|
522
|
-
}): Promise<`0x${string}`>;
|
|
523
|
-
(args: {
|
|
524
|
-
method: "eth_signTypedData_v4";
|
|
525
|
-
params: [address: `0x${string}`, message: string];
|
|
526
|
-
}): Promise<`0x${string}`>;
|
|
527
|
-
(args: {
|
|
528
|
-
method: "eth_syncing";
|
|
529
|
-
params?: undefined;
|
|
530
|
-
}): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
|
|
531
|
-
(args: {
|
|
532
|
-
method: "personal_sign";
|
|
533
|
-
params: [data: `0x${string}`, address: `0x${string}`];
|
|
534
|
-
}): Promise<`0x${string}`>;
|
|
535
|
-
} & {
|
|
536
|
-
(args: {
|
|
537
|
-
method: "eth_accounts";
|
|
538
|
-
params?: undefined;
|
|
539
|
-
}): Promise<`0x${string}`[]>;
|
|
540
|
-
(args: {
|
|
541
|
-
method: "eth_chainId";
|
|
542
|
-
params?: undefined;
|
|
543
|
-
}): Promise<`0x${string}`>;
|
|
544
|
-
(args: {
|
|
545
|
-
method: "eth_requestAccounts";
|
|
546
|
-
params?: undefined;
|
|
547
|
-
}): Promise<`0x${string}`[]>;
|
|
548
|
-
(args: {
|
|
549
|
-
method: "wallet_requestPermissions";
|
|
550
|
-
params: [permissions: {
|
|
551
|
-
eth_accounts: Record<string, any>;
|
|
552
|
-
}];
|
|
553
|
-
}): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
|
|
554
|
-
(args: {
|
|
555
|
-
method: "wallet_getPermissions";
|
|
556
|
-
params?: undefined;
|
|
557
|
-
}): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
|
|
558
|
-
(args: {
|
|
559
|
-
method: "wallet_addEthereumChain";
|
|
560
|
-
params: [chain: viem_dist_types_types_eip1193.Chain];
|
|
561
|
-
}): Promise<null>;
|
|
562
|
-
(args: {
|
|
563
|
-
method: "wallet_switchEthereumChain";
|
|
564
|
-
params: [chain: {
|
|
565
|
-
chainId: string;
|
|
566
|
-
}];
|
|
567
|
-
}): Promise<null>;
|
|
568
|
-
(args: {
|
|
569
|
-
method: "wallet_watchAsset";
|
|
570
|
-
params: viem_dist_types_types_eip1193.WatchAssetParams;
|
|
571
|
-
}): Promise<boolean>;
|
|
572
|
-
}> & ((...args: any) => Promise<any>);
|
|
573
|
-
type: string;
|
|
574
|
-
uid: string;
|
|
575
|
-
addChain: (args: viem.AddChainParameters) => Promise<void>;
|
|
576
|
-
deployContract: <TAbi extends readonly unknown[] | abitype_dist_abi_7aa1f183.l, TChainOverride extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
|
|
577
|
-
address: `0x${string}`;
|
|
578
|
-
type: "json-rpc";
|
|
579
|
-
}, TChainOverride>) => Promise<`0x${string}`>;
|
|
580
|
-
getAddresses: () => Promise<viem.GetAddressesReturnType>;
|
|
581
|
-
getChainId: () => Promise<number>;
|
|
582
|
-
getPermissions: () => Promise<viem.GetPermissionsReturnType>;
|
|
583
|
-
requestAddresses: () => Promise<viem.RequestAddressesReturnType>;
|
|
584
|
-
requestPermissions: (args: {
|
|
585
|
-
[x: string]: Record<string, any>;
|
|
586
|
-
eth_accounts: Record<string, any>;
|
|
587
|
-
}) => Promise<viem.RequestPermissionsReturnType>;
|
|
588
|
-
sendTransaction: <TChainOverride_1 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.SendTransactionParameters<Chain, {
|
|
589
|
-
address: `0x${string}`;
|
|
590
|
-
type: "json-rpc";
|
|
591
|
-
}, TChainOverride_1>) => Promise<`0x${string}`>;
|
|
592
|
-
signMessage: (args: viem.SignMessageParameters<{
|
|
593
|
-
address: `0x${string}`;
|
|
594
|
-
type: "json-rpc";
|
|
595
|
-
}>) => Promise<`0x${string}`>;
|
|
596
|
-
signTypedData: <TTypedData extends {
|
|
597
|
-
[x: string]: readonly abitype_dist_abi_7aa1f183.o[];
|
|
598
|
-
[x: `string[${string}]`]: undefined;
|
|
599
|
-
[x: `function[${string}]`]: undefined;
|
|
600
|
-
[x: `address[${string}]`]: undefined;
|
|
601
|
-
[x: `bool[${string}]`]: undefined;
|
|
602
|
-
[x: `bytes[${string}]`]: undefined;
|
|
603
|
-
[x: `bytes2[${string}]`]: undefined;
|
|
604
|
-
[x: `bytes16[${string}]`]: undefined;
|
|
605
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
606
|
-
[x: `bytes1[${string}]`]: undefined;
|
|
607
|
-
[x: `bytes3[${string}]`]: undefined;
|
|
608
|
-
[x: `bytes4[${string}]`]: undefined;
|
|
609
|
-
[x: `bytes5[${string}]`]: undefined;
|
|
610
|
-
[x: `bytes6[${string}]`]: undefined;
|
|
611
|
-
[x: `bytes7[${string}]`]: undefined;
|
|
612
|
-
[x: `bytes8[${string}]`]: undefined;
|
|
613
|
-
[x: `bytes9[${string}]`]: undefined;
|
|
614
|
-
[x: `bytes11[${string}]`]: undefined;
|
|
615
|
-
[x: `bytes12[${string}]`]: undefined;
|
|
616
|
-
[x: `bytes13[${string}]`]: undefined;
|
|
617
|
-
[x: `bytes14[${string}]`]: undefined;
|
|
618
|
-
[x: `bytes15[${string}]`]: undefined;
|
|
619
|
-
[x: `bytes17[${string}]`]: undefined;
|
|
620
|
-
[x: `bytes18[${string}]`]: undefined;
|
|
621
|
-
[x: `bytes19[${string}]`]: undefined;
|
|
622
|
-
[x: `bytes20[${string}]`]: undefined;
|
|
623
|
-
[x: `bytes21[${string}]`]: undefined;
|
|
624
|
-
[x: `bytes22[${string}]`]: undefined;
|
|
625
|
-
[x: `bytes23[${string}]`]: undefined;
|
|
626
|
-
[x: `bytes24[${string}]`]: undefined;
|
|
627
|
-
[x: `bytes25[${string}]`]: undefined;
|
|
628
|
-
[x: `bytes26[${string}]`]: undefined;
|
|
629
|
-
[x: `bytes27[${string}]`]: undefined;
|
|
630
|
-
[x: `bytes28[${string}]`]: undefined;
|
|
631
|
-
[x: `bytes29[${string}]`]: undefined;
|
|
632
|
-
[x: `bytes30[${string}]`]: undefined;
|
|
633
|
-
[x: `bytes31[${string}]`]: undefined;
|
|
634
|
-
[x: `bytes32[${string}]`]: undefined;
|
|
635
|
-
[x: `int[${string}]`]: undefined;
|
|
636
|
-
[x: `int16[${string}]`]: undefined;
|
|
637
|
-
[x: `int8[${string}]`]: undefined;
|
|
638
|
-
[x: `int24[${string}]`]: undefined;
|
|
639
|
-
[x: `int32[${string}]`]: undefined;
|
|
640
|
-
[x: `int40[${string}]`]: undefined;
|
|
641
|
-
[x: `int48[${string}]`]: undefined;
|
|
642
|
-
[x: `int56[${string}]`]: undefined;
|
|
643
|
-
[x: `int64[${string}]`]: undefined;
|
|
644
|
-
[x: `int72[${string}]`]: undefined;
|
|
645
|
-
[x: `int80[${string}]`]: undefined;
|
|
646
|
-
[x: `int88[${string}]`]: undefined;
|
|
647
|
-
[x: `int96[${string}]`]: undefined;
|
|
648
|
-
[x: `int104[${string}]`]: undefined;
|
|
649
|
-
[x: `int112[${string}]`]: undefined;
|
|
650
|
-
[x: `int120[${string}]`]: undefined;
|
|
651
|
-
[x: `int128[${string}]`]: undefined;
|
|
652
|
-
[x: `int136[${string}]`]: undefined;
|
|
653
|
-
[x: `int144[${string}]`]: undefined;
|
|
654
|
-
[x: `int152[${string}]`]: undefined;
|
|
655
|
-
[x: `int160[${string}]`]: undefined;
|
|
656
|
-
[x: `int168[${string}]`]: undefined;
|
|
657
|
-
[x: `int176[${string}]`]: undefined;
|
|
658
|
-
[x: `int184[${string}]`]: undefined;
|
|
659
|
-
[x: `int192[${string}]`]: undefined;
|
|
660
|
-
[x: `int200[${string}]`]: undefined;
|
|
661
|
-
[x: `int208[${string}]`]: undefined;
|
|
662
|
-
[x: `int216[${string}]`]: undefined;
|
|
663
|
-
[x: `int224[${string}]`]: undefined;
|
|
664
|
-
[x: `int232[${string}]`]: undefined;
|
|
665
|
-
[x: `int240[${string}]`]: undefined;
|
|
666
|
-
[x: `int248[${string}]`]: undefined;
|
|
667
|
-
[x: `int256[${string}]`]: undefined;
|
|
668
|
-
[x: `uint[${string}]`]: undefined;
|
|
669
|
-
[x: `uint16[${string}]`]: undefined;
|
|
670
|
-
[x: `uint8[${string}]`]: undefined;
|
|
671
|
-
[x: `uint24[${string}]`]: undefined;
|
|
672
|
-
[x: `uint32[${string}]`]: undefined;
|
|
673
|
-
[x: `uint40[${string}]`]: undefined;
|
|
674
|
-
[x: `uint48[${string}]`]: undefined;
|
|
675
|
-
[x: `uint56[${string}]`]: undefined;
|
|
676
|
-
[x: `uint64[${string}]`]: undefined;
|
|
677
|
-
[x: `uint72[${string}]`]: undefined;
|
|
678
|
-
[x: `uint80[${string}]`]: undefined;
|
|
679
|
-
[x: `uint88[${string}]`]: undefined;
|
|
680
|
-
[x: `uint96[${string}]`]: undefined;
|
|
681
|
-
[x: `uint104[${string}]`]: undefined;
|
|
682
|
-
[x: `uint112[${string}]`]: undefined;
|
|
683
|
-
[x: `uint120[${string}]`]: undefined;
|
|
684
|
-
[x: `uint128[${string}]`]: undefined;
|
|
685
|
-
[x: `uint136[${string}]`]: undefined;
|
|
686
|
-
[x: `uint144[${string}]`]: undefined;
|
|
687
|
-
[x: `uint152[${string}]`]: undefined;
|
|
688
|
-
[x: `uint160[${string}]`]: undefined;
|
|
689
|
-
[x: `uint168[${string}]`]: undefined;
|
|
690
|
-
[x: `uint176[${string}]`]: undefined;
|
|
691
|
-
[x: `uint184[${string}]`]: undefined;
|
|
692
|
-
[x: `uint192[${string}]`]: undefined;
|
|
693
|
-
[x: `uint200[${string}]`]: undefined;
|
|
694
|
-
[x: `uint208[${string}]`]: undefined;
|
|
695
|
-
[x: `uint216[${string}]`]: undefined;
|
|
696
|
-
[x: `uint224[${string}]`]: undefined;
|
|
697
|
-
[x: `uint232[${string}]`]: undefined;
|
|
698
|
-
[x: `uint240[${string}]`]: undefined;
|
|
699
|
-
[x: `uint248[${string}]`]: undefined;
|
|
700
|
-
[x: `uint256[${string}]`]: undefined;
|
|
701
|
-
string?: undefined;
|
|
702
|
-
address?: undefined;
|
|
703
|
-
bool?: undefined;
|
|
704
|
-
bytes?: undefined;
|
|
705
|
-
bytes2?: undefined;
|
|
706
|
-
bytes16?: undefined;
|
|
707
|
-
bytes10?: undefined;
|
|
708
|
-
bytes1?: undefined;
|
|
709
|
-
bytes3?: undefined;
|
|
710
|
-
bytes4?: undefined;
|
|
711
|
-
bytes5?: undefined;
|
|
712
|
-
bytes6?: undefined;
|
|
713
|
-
bytes7?: undefined;
|
|
714
|
-
bytes8?: undefined;
|
|
715
|
-
bytes9?: undefined;
|
|
716
|
-
bytes11?: undefined;
|
|
717
|
-
bytes12?: undefined;
|
|
718
|
-
bytes13?: undefined;
|
|
719
|
-
bytes14?: undefined;
|
|
720
|
-
bytes15?: undefined;
|
|
721
|
-
bytes17?: undefined;
|
|
722
|
-
bytes18?: undefined;
|
|
723
|
-
bytes19?: undefined;
|
|
724
|
-
bytes20?: undefined;
|
|
725
|
-
bytes21?: undefined;
|
|
726
|
-
bytes22?: undefined;
|
|
727
|
-
bytes23?: undefined;
|
|
728
|
-
bytes24?: undefined;
|
|
729
|
-
bytes25?: undefined;
|
|
730
|
-
bytes26?: undefined;
|
|
731
|
-
bytes27?: undefined;
|
|
732
|
-
bytes28?: undefined;
|
|
733
|
-
bytes29?: undefined;
|
|
734
|
-
bytes30?: undefined;
|
|
735
|
-
bytes31?: undefined;
|
|
736
|
-
bytes32?: undefined;
|
|
737
|
-
int16?: undefined;
|
|
738
|
-
int8?: undefined;
|
|
739
|
-
int24?: undefined;
|
|
740
|
-
int32?: undefined;
|
|
741
|
-
int40?: undefined;
|
|
742
|
-
int48?: undefined;
|
|
743
|
-
int56?: undefined;
|
|
744
|
-
int64?: undefined;
|
|
745
|
-
int72?: undefined;
|
|
746
|
-
int80?: undefined;
|
|
747
|
-
int88?: undefined;
|
|
748
|
-
int96?: undefined;
|
|
749
|
-
int104?: undefined;
|
|
750
|
-
int112?: undefined;
|
|
751
|
-
int120?: undefined;
|
|
752
|
-
int128?: undefined;
|
|
753
|
-
int136?: undefined;
|
|
754
|
-
int144?: undefined;
|
|
755
|
-
int152?: undefined;
|
|
756
|
-
int160?: undefined;
|
|
757
|
-
int168?: undefined;
|
|
758
|
-
int176?: undefined;
|
|
759
|
-
int184?: undefined;
|
|
760
|
-
int192?: undefined;
|
|
761
|
-
int200?: undefined;
|
|
762
|
-
int208?: undefined;
|
|
763
|
-
int216?: undefined;
|
|
764
|
-
int224?: undefined;
|
|
765
|
-
int232?: undefined;
|
|
766
|
-
int240?: undefined;
|
|
767
|
-
int248?: undefined;
|
|
768
|
-
int256?: undefined;
|
|
769
|
-
uint16?: undefined;
|
|
770
|
-
uint8?: undefined;
|
|
771
|
-
uint24?: undefined;
|
|
772
|
-
uint32?: undefined;
|
|
773
|
-
uint40?: undefined;
|
|
774
|
-
uint48?: undefined;
|
|
775
|
-
uint56?: undefined;
|
|
776
|
-
uint64?: undefined;
|
|
777
|
-
uint72?: undefined;
|
|
778
|
-
uint80?: undefined;
|
|
779
|
-
uint88?: undefined;
|
|
780
|
-
uint96?: undefined;
|
|
781
|
-
uint104?: undefined;
|
|
782
|
-
uint112?: undefined;
|
|
783
|
-
uint120?: undefined;
|
|
784
|
-
uint128?: undefined;
|
|
785
|
-
uint136?: undefined;
|
|
786
|
-
uint144?: undefined;
|
|
787
|
-
uint152?: undefined;
|
|
788
|
-
uint160?: undefined;
|
|
789
|
-
uint168?: undefined;
|
|
790
|
-
uint176?: undefined;
|
|
791
|
-
uint184?: undefined;
|
|
792
|
-
uint192?: undefined;
|
|
793
|
-
uint200?: undefined;
|
|
794
|
-
uint208?: undefined;
|
|
795
|
-
uint216?: undefined;
|
|
796
|
-
uint224?: undefined;
|
|
797
|
-
uint232?: undefined;
|
|
798
|
-
uint240?: undefined;
|
|
799
|
-
uint248?: undefined;
|
|
800
|
-
uint256?: undefined;
|
|
801
|
-
} | {
|
|
802
|
-
[key: string]: unknown;
|
|
803
|
-
}, TPrimaryType extends string>(args: viem.SignTypedDataParameters<TTypedData, TPrimaryType, {
|
|
804
|
-
address: `0x${string}`;
|
|
805
|
-
type: "json-rpc";
|
|
806
|
-
}>) => Promise<`0x${string}`>;
|
|
807
|
-
switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
|
|
808
|
-
watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
|
|
809
|
-
writeContract: <TAbi_1 extends readonly unknown[] | abitype_dist_abi_7aa1f183.l, TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
|
|
810
|
-
address: `0x${string}`;
|
|
811
|
-
type: "json-rpc";
|
|
812
|
-
}, TChainOverride_2>) => Promise<`0x${string}`>;
|
|
813
|
-
account: {
|
|
814
|
-
address: `0x${string}`;
|
|
815
|
-
type: "json-rpc";
|
|
816
|
-
};
|
|
817
|
-
}>;
|
|
818
|
-
isAuthorized(): Promise<boolean>;
|
|
819
|
-
switchChain(chainId: number): Promise<Chain>;
|
|
820
|
-
watchAsset({ address, decimals, image, symbol, }: {
|
|
821
|
-
address: string;
|
|
822
|
-
decimals?: number;
|
|
823
|
-
image?: string;
|
|
824
|
-
symbol: string;
|
|
825
|
-
}): Promise<boolean>;
|
|
826
|
-
protected onAccountsChanged: (accounts: string[]) => void;
|
|
827
|
-
protected onChainChanged: (chainId: number | string) => void;
|
|
828
|
-
protected onDisconnect: () => void;
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
export { CoinbaseWalletConnector };
|
|
1
|
+
export * from '../src/coinbaseWallet'
|