viem 0.0.1-alpha.1 → 0.0.1-alpha.11
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/actions/package.json +1 -1
- package/chains/package.json +1 -1
- package/clients/package.json +1 -1
- package/dist/actions/index.d.ts +6 -6
- package/dist/actions/index.js +125 -123
- package/dist/actions/index.mjs +125 -0
- package/dist/chains.d.ts +651 -21
- package/dist/chains.js +76 -75
- package/dist/chains.mjs +134 -0
- package/dist/chunk-35OJIFIW.js +2619 -0
- package/dist/{chunk-Z6LRV6XI.js → chunk-DY4MSK2M.mjs} +1052 -411
- package/dist/chunk-GXCYE2PD.js +258 -0
- package/dist/{chunk-LLYFXUSV.js → chunk-JXGK2LUM.mjs} +184 -198
- package/dist/chunk-PEAG3TIC.js +1084 -0
- package/dist/{chunk-OQTFTQTO.js → chunk-TP542F7H.mjs} +44 -63
- package/dist/clients/index.d.ts +5 -6
- package/dist/clients/index.js +23 -25
- package/dist/clients/index.mjs +23 -0
- package/dist/{createWalletClient-915223f3.d.ts → createWalletClient-3f9fa8b6.d.ts} +1 -1
- package/dist/{eip1193-8f7c22ce.d.ts → eip1193-c001fcd5.d.ts} +3 -3
- package/dist/index.d.ts +341 -10
- package/dist/index.js +374 -290
- package/dist/index.mjs +374 -0
- package/dist/{parseGwei-bbc055e4.d.ts → parseGwei-7c87ff41.d.ts} +70 -118
- package/dist/{rpc-3c0e3985.d.ts → rpc-26932bae.d.ts} +1 -38
- package/dist/{rpc-655c0ba4.d.ts → rpc-b77c5aee.d.ts} +1 -1
- package/dist/transactionRequest-08d30731.d.ts +132 -0
- package/dist/utils/index.d.ts +41 -7
- package/dist/utils/index.js +148 -154
- package/dist/utils/index.mjs +148 -0
- package/dist/{watchAsset-04ab8db5.d.ts → watchAsset-43255bfd.d.ts} +17 -16
- package/dist/{webSocket-c6e0d26f.d.ts → webSocket-3385e295.d.ts} +4 -9
- package/dist/window.d.ts +2 -2
- package/dist/window.js +1 -0
- package/dist/window.mjs +0 -0
- package/package.json +9 -62
- package/utils/package.json +1 -1
- package/window/package.json +1 -1
- package/dist/BaseError-7688f84e.d.ts +0 -18
- package/dist/transactionRequest-ade896ac.d.ts +0 -44
package/dist/chains.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { R as RpcBlock,
|
1
|
+
import { R as RpcBlock, d as Block, q as RpcTransaction, D as Transaction, r as RpcTransactionReceipt, T as TransactionReceipt, v as TransactionRequest, s as RpcTransactionRequest, N as TransactionType, H as Hex } from './rpc-b77c5aee.js';
|
2
2
|
import { Chain as Chain$1 } from '@wagmi/chains';
|
3
3
|
|
4
4
|
type Formatter<TSource = any, TTarget = any> = (value: TSource & {
|
@@ -24,7 +24,7 @@ declare const defineBlock: <TFormat extends Formatter<Partial<RpcBlock>, Partial
|
|
24
24
|
}) => Block<bigint, Transaction<bigint, number>> & ReturnType<TFormat> & { [K in TExclude[number]]: never; };
|
25
25
|
declare const defineTransaction: <TFormat extends Formatter<Partial<RpcTransaction>, Partial<Transaction<bigint, number>> & {
|
26
26
|
[key: string]: unknown;
|
27
|
-
}>, TExclude extends ("type" | "
|
27
|
+
}>, TExclude extends ("type" | "gas" | "value" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "blockHash" | "blockNumber" | "hash" | "from" | "input" | "nonce" | "r" | "s" | "to" | "transactionIndex" | "v" | "accessList")[] = []>({ exclude, format: formatOverride, }: {
|
28
28
|
exclude?: TExclude | undefined;
|
29
29
|
format?: TFormat | undefined;
|
30
30
|
}) => (data: Partial<RpcTransaction> & {
|
@@ -32,7 +32,7 @@ declare const defineTransaction: <TFormat extends Formatter<Partial<RpcTransacti
|
|
32
32
|
}) => Transaction<bigint, number> & ReturnType<TFormat> & { [K in TExclude[number]]: never; };
|
33
33
|
declare const defineTransactionRequest: <TFormat extends Formatter<Partial<TransactionRequest<bigint, number>>, Partial<RpcTransactionRequest> & {
|
34
34
|
[key: string]: unknown;
|
35
|
-
}>, TExclude extends ("
|
35
|
+
}>, TExclude extends ("gas" | "value" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "data" | "from" | "nonce" | "to" | "accessList")[] = []>({ exclude, format: formatOverride, }: {
|
36
36
|
exclude?: TExclude | undefined;
|
37
37
|
format?: TFormat | undefined;
|
38
38
|
}) => (data: Partial<TransactionRequest<bigint, number>> & {
|
@@ -46,12 +46,229 @@ declare const defineTransactionReceipt: <TFormat extends Formatter<Partial<RpcTr
|
|
46
46
|
}) => (data: Partial<RpcTransactionReceipt> & {
|
47
47
|
[key: string]: unknown;
|
48
48
|
}) => TransactionReceipt<bigint, number, "success" | "reverted", TransactionType> & ReturnType<TFormat> & { [K in TExclude[number]]: never; };
|
49
|
-
declare const arbitrumGoerli:
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
49
|
+
declare const arbitrumGoerli: {
|
50
|
+
readonly id: 421613;
|
51
|
+
readonly name: "Arbitrum Goerli";
|
52
|
+
readonly network: "arbitrum-goerli";
|
53
|
+
readonly nativeCurrency: {
|
54
|
+
readonly name: "Arbitrum Goerli Ether";
|
55
|
+
readonly symbol: "ETH";
|
56
|
+
readonly decimals: 18;
|
57
|
+
};
|
58
|
+
readonly rpcUrls: {
|
59
|
+
readonly alchemy: {
|
60
|
+
readonly http: readonly ["https://arb-goerli.g.alchemy.com/v2"];
|
61
|
+
readonly webSocket: readonly ["wss://arb-goerli.g.alchemy.com/v2"];
|
62
|
+
};
|
63
|
+
readonly infura: {
|
64
|
+
readonly http: readonly ["https://arbitrum-goerli.infura.io/v3"];
|
65
|
+
readonly webSocket: readonly ["wss://arbitrum-goerli.infura.io/ws/v3"];
|
66
|
+
};
|
67
|
+
readonly default: {
|
68
|
+
readonly http: readonly ["https://goerli-rollup.arbitrum.io/rpc"];
|
69
|
+
};
|
70
|
+
readonly public: {
|
71
|
+
readonly http: readonly ["https://goerli-rollup.arbitrum.io/rpc"];
|
72
|
+
};
|
73
|
+
};
|
74
|
+
readonly blockExplorers: {
|
75
|
+
readonly etherscan: {
|
76
|
+
readonly name: "Arbiscan";
|
77
|
+
readonly url: "https://goerli.arbiscan.io/";
|
78
|
+
};
|
79
|
+
readonly default: {
|
80
|
+
readonly name: "Arbiscan";
|
81
|
+
readonly url: "https://goerli.arbiscan.io/";
|
82
|
+
};
|
83
|
+
};
|
84
|
+
readonly contracts: {
|
85
|
+
readonly multicall3: {
|
86
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
87
|
+
readonly blockCreated: 88114;
|
88
|
+
};
|
89
|
+
};
|
90
|
+
readonly testnet: true;
|
91
|
+
};
|
92
|
+
declare const arbitrum: {
|
93
|
+
readonly id: 42161;
|
94
|
+
readonly name: "Arbitrum One";
|
95
|
+
readonly network: "arbitrum";
|
96
|
+
readonly nativeCurrency: {
|
97
|
+
readonly name: "Ether";
|
98
|
+
readonly symbol: "ETH";
|
99
|
+
readonly decimals: 18;
|
100
|
+
};
|
101
|
+
readonly rpcUrls: {
|
102
|
+
readonly alchemy: {
|
103
|
+
readonly http: readonly ["https://arb-mainnet.g.alchemy.com/v2"];
|
104
|
+
readonly webSocket: readonly ["wss://arb-mainnet.g.alchemy.com/v2"];
|
105
|
+
};
|
106
|
+
readonly infura: {
|
107
|
+
readonly http: readonly ["https://arbitrum-mainnet.infura.io/v3"];
|
108
|
+
readonly webSocket: readonly ["wss://arbitrum-mainnet.infura.io/ws/v3"];
|
109
|
+
};
|
110
|
+
readonly default: {
|
111
|
+
readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
|
112
|
+
};
|
113
|
+
readonly public: {
|
114
|
+
readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
|
115
|
+
};
|
116
|
+
};
|
117
|
+
readonly blockExplorers: {
|
118
|
+
readonly etherscan: {
|
119
|
+
readonly name: "Arbiscan";
|
120
|
+
readonly url: "https://arbiscan.io";
|
121
|
+
};
|
122
|
+
readonly default: {
|
123
|
+
readonly name: "Arbiscan";
|
124
|
+
readonly url: "https://arbiscan.io";
|
125
|
+
};
|
126
|
+
};
|
127
|
+
readonly contracts: {
|
128
|
+
readonly multicall3: {
|
129
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
130
|
+
readonly blockCreated: 7654707;
|
131
|
+
};
|
132
|
+
};
|
133
|
+
};
|
134
|
+
declare const avalancheFuji: {
|
135
|
+
readonly id: 43113;
|
136
|
+
readonly name: "Avalanche Fuji";
|
137
|
+
readonly network: "avalanche-fuji";
|
138
|
+
readonly nativeCurrency: {
|
139
|
+
readonly decimals: 18;
|
140
|
+
readonly name: "Avalanche Fuji";
|
141
|
+
readonly symbol: "AVAX";
|
142
|
+
};
|
143
|
+
readonly rpcUrls: {
|
144
|
+
readonly default: {
|
145
|
+
readonly http: readonly ["https://api.avax-test.network/ext/bc/C/rpc"];
|
146
|
+
};
|
147
|
+
readonly public: {
|
148
|
+
readonly http: readonly ["https://api.avax-test.network/ext/bc/C/rpc"];
|
149
|
+
};
|
150
|
+
};
|
151
|
+
readonly blockExplorers: {
|
152
|
+
readonly etherscan: {
|
153
|
+
readonly name: "SnowTrace";
|
154
|
+
readonly url: "https://testnet.snowtrace.io";
|
155
|
+
};
|
156
|
+
readonly default: {
|
157
|
+
readonly name: "SnowTrace";
|
158
|
+
readonly url: "https://testnet.snowtrace.io";
|
159
|
+
};
|
160
|
+
};
|
161
|
+
readonly contracts: {
|
162
|
+
readonly multicall3: {
|
163
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
164
|
+
readonly blockCreated: 7096959;
|
165
|
+
};
|
166
|
+
};
|
167
|
+
readonly testnet: true;
|
168
|
+
};
|
169
|
+
declare const avalanche: {
|
170
|
+
readonly id: 43114;
|
171
|
+
readonly name: "Avalanche";
|
172
|
+
readonly network: "avalanche";
|
173
|
+
readonly nativeCurrency: {
|
174
|
+
readonly decimals: 18;
|
175
|
+
readonly name: "Avalanche";
|
176
|
+
readonly symbol: "AVAX";
|
177
|
+
};
|
178
|
+
readonly rpcUrls: {
|
179
|
+
readonly default: {
|
180
|
+
readonly http: readonly ["https://api.avax.network/ext/bc/C/rpc"];
|
181
|
+
};
|
182
|
+
readonly public: {
|
183
|
+
readonly http: readonly ["https://api.avax.network/ext/bc/C/rpc"];
|
184
|
+
};
|
185
|
+
};
|
186
|
+
readonly blockExplorers: {
|
187
|
+
readonly etherscan: {
|
188
|
+
readonly name: "SnowTrace";
|
189
|
+
readonly url: "https://snowtrace.io";
|
190
|
+
};
|
191
|
+
readonly default: {
|
192
|
+
readonly name: "SnowTrace";
|
193
|
+
readonly url: "https://snowtrace.io";
|
194
|
+
};
|
195
|
+
};
|
196
|
+
readonly contracts: {
|
197
|
+
readonly multicall3: {
|
198
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
199
|
+
readonly blockCreated: 11907934;
|
200
|
+
};
|
201
|
+
};
|
202
|
+
};
|
203
|
+
declare const bscTestnet: {
|
204
|
+
readonly id: 97;
|
205
|
+
readonly name: "Binance Smart Chain Testnet";
|
206
|
+
readonly network: "bsc-testnet";
|
207
|
+
readonly nativeCurrency: {
|
208
|
+
readonly decimals: 18;
|
209
|
+
readonly name: "BNB";
|
210
|
+
readonly symbol: "tBNB";
|
211
|
+
};
|
212
|
+
readonly rpcUrls: {
|
213
|
+
readonly default: {
|
214
|
+
readonly http: readonly ["https://bsc-testnet.public.blastapi.io"];
|
215
|
+
};
|
216
|
+
readonly public: {
|
217
|
+
readonly http: readonly ["https://bsc-testnet.public.blastapi.io"];
|
218
|
+
};
|
219
|
+
};
|
220
|
+
readonly blockExplorers: {
|
221
|
+
readonly etherscan: {
|
222
|
+
readonly name: "BscScan";
|
223
|
+
readonly url: "https://testnet.bscscan.com";
|
224
|
+
};
|
225
|
+
readonly default: {
|
226
|
+
readonly name: "BscScan";
|
227
|
+
readonly url: "https://testnet.bscscan.com";
|
228
|
+
};
|
229
|
+
};
|
230
|
+
readonly contracts: {
|
231
|
+
readonly multicall3: {
|
232
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
233
|
+
readonly blockCreated: 17422483;
|
234
|
+
};
|
235
|
+
};
|
236
|
+
readonly testnet: true;
|
237
|
+
};
|
238
|
+
declare const bsc: {
|
239
|
+
readonly id: 56;
|
240
|
+
readonly name: "BNB Smart Chain";
|
241
|
+
readonly network: "bsc";
|
242
|
+
readonly nativeCurrency: {
|
243
|
+
readonly decimals: 18;
|
244
|
+
readonly name: "BNB";
|
245
|
+
readonly symbol: "BNB";
|
246
|
+
};
|
247
|
+
readonly rpcUrls: {
|
248
|
+
readonly default: {
|
249
|
+
readonly http: readonly ["https://rpc.ankr.com/bsc"];
|
250
|
+
};
|
251
|
+
readonly public: {
|
252
|
+
readonly http: readonly ["https://rpc.ankr.com/bsc"];
|
253
|
+
};
|
254
|
+
};
|
255
|
+
readonly blockExplorers: {
|
256
|
+
readonly etherscan: {
|
257
|
+
readonly name: "BscScan";
|
258
|
+
readonly url: "https://bscscan.com";
|
259
|
+
};
|
260
|
+
readonly default: {
|
261
|
+
readonly name: "BscScan";
|
262
|
+
readonly url: "https://bscscan.com";
|
263
|
+
};
|
264
|
+
};
|
265
|
+
readonly contracts: {
|
266
|
+
readonly multicall3: {
|
267
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
268
|
+
readonly blockCreated: 15921452;
|
269
|
+
};
|
270
|
+
};
|
271
|
+
};
|
55
272
|
declare const celo: {
|
56
273
|
id: number;
|
57
274
|
name: string;
|
@@ -62,6 +279,9 @@ declare const celo: {
|
|
62
279
|
decimals: number;
|
63
280
|
};
|
64
281
|
rpcUrls: {
|
282
|
+
public: {
|
283
|
+
http: string[];
|
284
|
+
};
|
65
285
|
default: {
|
66
286
|
http: string[];
|
67
287
|
};
|
@@ -97,17 +317,427 @@ declare const celo: {
|
|
97
317
|
} & {};
|
98
318
|
};
|
99
319
|
};
|
100
|
-
declare const fantomTestnet:
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
320
|
+
declare const fantomTestnet: {
|
321
|
+
readonly id: 4002;
|
322
|
+
readonly name: "Fantom Testnet";
|
323
|
+
readonly network: "fantom-testnet";
|
324
|
+
readonly nativeCurrency: {
|
325
|
+
readonly decimals: 18;
|
326
|
+
readonly name: "Fantom";
|
327
|
+
readonly symbol: "FTM";
|
328
|
+
};
|
329
|
+
readonly rpcUrls: {
|
330
|
+
readonly default: {
|
331
|
+
readonly http: readonly ["https://rpc.testnet.fantom.network"];
|
332
|
+
};
|
333
|
+
readonly public: {
|
334
|
+
readonly http: readonly ["https://rpc.testnet.fantom.network"];
|
335
|
+
};
|
336
|
+
};
|
337
|
+
readonly blockExplorers: {
|
338
|
+
readonly etherscan: {
|
339
|
+
readonly name: "FTMScan";
|
340
|
+
readonly url: "https://testnet.ftmscan.com";
|
341
|
+
};
|
342
|
+
readonly default: {
|
343
|
+
readonly name: "FTMScan";
|
344
|
+
readonly url: "https://testnet.ftmscan.com";
|
345
|
+
};
|
346
|
+
};
|
347
|
+
readonly contracts: {
|
348
|
+
readonly multicall3: {
|
349
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
350
|
+
readonly blockCreated: 8328688;
|
351
|
+
};
|
352
|
+
};
|
353
|
+
};
|
354
|
+
declare const fantom: {
|
355
|
+
readonly id: 250;
|
356
|
+
readonly name: "Fantom";
|
357
|
+
readonly network: "fantom";
|
358
|
+
readonly nativeCurrency: {
|
359
|
+
readonly decimals: 18;
|
360
|
+
readonly name: "Fantom";
|
361
|
+
readonly symbol: "FTM";
|
362
|
+
};
|
363
|
+
readonly rpcUrls: {
|
364
|
+
readonly default: {
|
365
|
+
readonly http: readonly ["https://rpc.ankr.com/fantom"];
|
366
|
+
};
|
367
|
+
readonly public: {
|
368
|
+
readonly http: readonly ["https://rpc.ankr.com/fantom"];
|
369
|
+
};
|
370
|
+
};
|
371
|
+
readonly blockExplorers: {
|
372
|
+
readonly etherscan: {
|
373
|
+
readonly name: "FTMScan";
|
374
|
+
readonly url: "https://ftmscan.com";
|
375
|
+
};
|
376
|
+
readonly default: {
|
377
|
+
readonly name: "FTMScan";
|
378
|
+
readonly url: "https://ftmscan.com";
|
379
|
+
};
|
380
|
+
};
|
381
|
+
readonly contracts: {
|
382
|
+
readonly multicall3: {
|
383
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
384
|
+
readonly blockCreated: 33001987;
|
385
|
+
};
|
386
|
+
};
|
387
|
+
};
|
388
|
+
declare const foundry: {
|
389
|
+
readonly id: 31337;
|
390
|
+
readonly name: "Foundry";
|
391
|
+
readonly network: "foundry";
|
392
|
+
readonly nativeCurrency: {
|
393
|
+
readonly decimals: 18;
|
394
|
+
readonly name: "Ether";
|
395
|
+
readonly symbol: "ETH";
|
396
|
+
};
|
397
|
+
readonly rpcUrls: {
|
398
|
+
readonly default: {
|
399
|
+
readonly http: readonly ["http://127.0.0.1:8545"];
|
400
|
+
};
|
401
|
+
readonly public: {
|
402
|
+
readonly http: readonly ["http://127.0.0.1:8545"];
|
403
|
+
};
|
404
|
+
};
|
405
|
+
};
|
406
|
+
declare const goerli: {
|
407
|
+
readonly id: 5;
|
408
|
+
readonly network: "goerli";
|
409
|
+
readonly name: "Goerli";
|
410
|
+
readonly nativeCurrency: {
|
411
|
+
readonly name: "Goerli Ether";
|
412
|
+
readonly symbol: "ETH";
|
413
|
+
readonly decimals: 18;
|
414
|
+
};
|
415
|
+
readonly rpcUrls: {
|
416
|
+
readonly alchemy: {
|
417
|
+
readonly http: readonly ["https://eth-goerli.g.alchemy.com/v2"];
|
418
|
+
readonly webSocket: readonly ["wss://eth-goerli.g.alchemy.com/v2"];
|
419
|
+
};
|
420
|
+
readonly infura: {
|
421
|
+
readonly http: readonly ["https://goerli.infura.io/v3"];
|
422
|
+
readonly webSocket: readonly ["wss://goerli.infura.io/ws/v3"];
|
423
|
+
};
|
424
|
+
readonly default: {
|
425
|
+
readonly http: readonly ["https://rpc.ankr.com/eth_goerli"];
|
426
|
+
};
|
427
|
+
readonly public: {
|
428
|
+
readonly http: readonly ["https://rpc.ankr.com/eth_goerli"];
|
429
|
+
};
|
430
|
+
};
|
431
|
+
readonly blockExplorers: {
|
432
|
+
readonly etherscan: {
|
433
|
+
readonly name: "Etherscan";
|
434
|
+
readonly url: "https://goerli.etherscan.io";
|
435
|
+
};
|
436
|
+
readonly default: {
|
437
|
+
readonly name: "Etherscan";
|
438
|
+
readonly url: "https://goerli.etherscan.io";
|
439
|
+
};
|
440
|
+
};
|
441
|
+
readonly contracts: {
|
442
|
+
readonly ensRegistry: {
|
443
|
+
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
444
|
+
};
|
445
|
+
readonly multicall3: {
|
446
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
447
|
+
readonly blockCreated: 6507670;
|
448
|
+
};
|
449
|
+
};
|
450
|
+
readonly testnet: true;
|
451
|
+
};
|
452
|
+
declare const hardhat: {
|
453
|
+
readonly id: 31337;
|
454
|
+
readonly name: "Hardhat";
|
455
|
+
readonly network: "hardhat";
|
456
|
+
readonly nativeCurrency: {
|
457
|
+
readonly decimals: 18;
|
458
|
+
readonly name: "Ether";
|
459
|
+
readonly symbol: "ETH";
|
460
|
+
};
|
461
|
+
readonly rpcUrls: {
|
462
|
+
readonly default: {
|
463
|
+
readonly http: readonly ["http://127.0.0.1:8545"];
|
464
|
+
};
|
465
|
+
readonly public: {
|
466
|
+
readonly http: readonly ["http://127.0.0.1:8545"];
|
467
|
+
};
|
468
|
+
};
|
469
|
+
};
|
470
|
+
declare const localhost: {
|
471
|
+
readonly id: 1337;
|
472
|
+
readonly name: "Localhost";
|
473
|
+
readonly network: "localhost";
|
474
|
+
readonly nativeCurrency: {
|
475
|
+
readonly decimals: 18;
|
476
|
+
readonly name: "Ether";
|
477
|
+
readonly symbol: "ETH";
|
478
|
+
};
|
479
|
+
readonly rpcUrls: {
|
480
|
+
readonly default: {
|
481
|
+
readonly http: readonly ["http://127.0.0.1:8545"];
|
482
|
+
};
|
483
|
+
readonly public: {
|
484
|
+
readonly http: readonly ["http://127.0.0.1:8545"];
|
485
|
+
};
|
486
|
+
};
|
487
|
+
};
|
488
|
+
declare const mainnet: {
|
489
|
+
readonly id: 1;
|
490
|
+
readonly network: "homestead";
|
491
|
+
readonly name: "Ethereum";
|
492
|
+
readonly nativeCurrency: {
|
493
|
+
readonly name: "Ether";
|
494
|
+
readonly symbol: "ETH";
|
495
|
+
readonly decimals: 18;
|
496
|
+
};
|
497
|
+
readonly rpcUrls: {
|
498
|
+
readonly alchemy: {
|
499
|
+
readonly http: readonly ["https://eth-mainnet.g.alchemy.com/v2"];
|
500
|
+
readonly webSocket: readonly ["wss://eth-mainnet.g.alchemy.com/v2"];
|
501
|
+
};
|
502
|
+
readonly infura: {
|
503
|
+
readonly http: readonly ["https://mainnet.infura.io/v3"];
|
504
|
+
readonly webSocket: readonly ["wss://mainnet.infura.io/ws/v3"];
|
505
|
+
};
|
506
|
+
readonly default: {
|
507
|
+
readonly http: readonly ["https://cloudflare-eth.com"];
|
508
|
+
};
|
509
|
+
readonly public: {
|
510
|
+
readonly http: readonly ["https://cloudflare-eth.com"];
|
511
|
+
};
|
512
|
+
};
|
513
|
+
readonly blockExplorers: {
|
514
|
+
readonly etherscan: {
|
515
|
+
readonly name: "Etherscan";
|
516
|
+
readonly url: "https://etherscan.io";
|
517
|
+
};
|
518
|
+
readonly default: {
|
519
|
+
readonly name: "Etherscan";
|
520
|
+
readonly url: "https://etherscan.io";
|
521
|
+
};
|
522
|
+
};
|
523
|
+
readonly contracts: {
|
524
|
+
readonly ensRegistry: {
|
525
|
+
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
526
|
+
};
|
527
|
+
readonly multicall3: {
|
528
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
529
|
+
readonly blockCreated: 14353601;
|
530
|
+
};
|
531
|
+
};
|
532
|
+
};
|
533
|
+
declare const optimismGoerli: {
|
534
|
+
readonly id: 420;
|
535
|
+
readonly name: "Optimism Goerli";
|
536
|
+
readonly network: "optimism-goerli";
|
537
|
+
readonly nativeCurrency: {
|
538
|
+
readonly name: "Goerli Ether";
|
539
|
+
readonly symbol: "ETH";
|
540
|
+
readonly decimals: 18;
|
541
|
+
};
|
542
|
+
readonly rpcUrls: {
|
543
|
+
readonly alchemy: {
|
544
|
+
readonly http: readonly ["https://opt-goerli.g.alchemy.com/v2"];
|
545
|
+
readonly webSocket: readonly ["wss://opt-goerli.g.alchemy.com/v2"];
|
546
|
+
};
|
547
|
+
readonly infura: {
|
548
|
+
readonly http: readonly ["https://optimism-goerli.infura.io/v3"];
|
549
|
+
readonly webSocket: readonly ["wss://optimism-goerli.infura.io/ws/v3"];
|
550
|
+
};
|
551
|
+
readonly default: {
|
552
|
+
readonly http: readonly ["https://goerli.optimism.io"];
|
553
|
+
};
|
554
|
+
readonly public: {
|
555
|
+
readonly http: readonly ["https://goerli.optimism.io"];
|
556
|
+
};
|
557
|
+
};
|
558
|
+
readonly blockExplorers: {
|
559
|
+
readonly etherscan: {
|
560
|
+
readonly name: "Etherscan";
|
561
|
+
readonly url: "https://goerli-optimism.etherscan.io";
|
562
|
+
};
|
563
|
+
readonly default: {
|
564
|
+
readonly name: "Etherscan";
|
565
|
+
readonly url: "https://goerli-optimism.etherscan.io";
|
566
|
+
};
|
567
|
+
};
|
568
|
+
readonly contracts: {
|
569
|
+
readonly multicall3: {
|
570
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
571
|
+
readonly blockCreated: 49461;
|
572
|
+
};
|
573
|
+
};
|
574
|
+
readonly testnet: true;
|
575
|
+
};
|
576
|
+
declare const optimism: {
|
577
|
+
readonly id: 10;
|
578
|
+
readonly name: "Optimism";
|
579
|
+
readonly network: "optimism";
|
580
|
+
readonly nativeCurrency: {
|
581
|
+
readonly name: "Ether";
|
582
|
+
readonly symbol: "ETH";
|
583
|
+
readonly decimals: 18;
|
584
|
+
};
|
585
|
+
readonly rpcUrls: {
|
586
|
+
readonly alchemy: {
|
587
|
+
readonly http: readonly ["https://opt-mainnet.g.alchemy.com/v2"];
|
588
|
+
readonly webSocket: readonly ["wss://opt-mainnet.g.alchemy.com/v2"];
|
589
|
+
};
|
590
|
+
readonly infura: {
|
591
|
+
readonly http: readonly ["https://optimism-mainnet.infura.io/v3"];
|
592
|
+
readonly webSocket: readonly ["wss://optimism-mainnet.infura.io/ws/v3"];
|
593
|
+
};
|
594
|
+
readonly default: {
|
595
|
+
readonly http: readonly ["https://mainnet.optimism.io"];
|
596
|
+
};
|
597
|
+
readonly public: {
|
598
|
+
readonly http: readonly ["https://mainnet.optimism.io"];
|
599
|
+
};
|
600
|
+
};
|
601
|
+
readonly blockExplorers: {
|
602
|
+
readonly etherscan: {
|
603
|
+
readonly name: "Etherscan";
|
604
|
+
readonly url: "https://optimistic.etherscan.io";
|
605
|
+
};
|
606
|
+
readonly default: {
|
607
|
+
readonly name: "Optimism Explorer";
|
608
|
+
readonly url: "https://explorer.optimism.io";
|
609
|
+
};
|
610
|
+
};
|
611
|
+
readonly contracts: {
|
612
|
+
readonly multicall3: {
|
613
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
614
|
+
readonly blockCreated: 4286263;
|
615
|
+
};
|
616
|
+
};
|
617
|
+
};
|
618
|
+
declare const polygonMumbai: {
|
619
|
+
readonly id: 80001;
|
620
|
+
readonly name: "Polygon Mumbai";
|
621
|
+
readonly network: "maticmum";
|
622
|
+
readonly nativeCurrency: {
|
623
|
+
readonly name: "MATIC";
|
624
|
+
readonly symbol: "MATIC";
|
625
|
+
readonly decimals: 18;
|
626
|
+
};
|
627
|
+
readonly rpcUrls: {
|
628
|
+
readonly alchemy: {
|
629
|
+
readonly http: readonly ["https://polygon-mumbai.g.alchemy.com/v2"];
|
630
|
+
readonly webSocket: readonly ["wss://polygon-mumbai.g.alchemy.com/v2"];
|
631
|
+
};
|
632
|
+
readonly infura: {
|
633
|
+
readonly http: readonly ["https://polygon-mumbai.infura.io/v3"];
|
634
|
+
readonly webSocket: readonly ["wss://polygon-mumbai.infura.io/ws/v3"];
|
635
|
+
};
|
636
|
+
readonly default: {
|
637
|
+
readonly http: readonly ["https://matic-mumbai.chainstacklabs.com"];
|
638
|
+
};
|
639
|
+
readonly public: {
|
640
|
+
readonly http: readonly ["https://matic-mumbai.chainstacklabs.com"];
|
641
|
+
};
|
642
|
+
};
|
643
|
+
readonly blockExplorers: {
|
644
|
+
readonly etherscan: {
|
645
|
+
readonly name: "PolygonScan";
|
646
|
+
readonly url: "https://mumbai.polygonscan.com";
|
647
|
+
};
|
648
|
+
readonly default: {
|
649
|
+
readonly name: "PolygonScan";
|
650
|
+
readonly url: "https://mumbai.polygonscan.com";
|
651
|
+
};
|
652
|
+
};
|
653
|
+
readonly contracts: {
|
654
|
+
readonly multicall3: {
|
655
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
656
|
+
readonly blockCreated: 25770160;
|
657
|
+
};
|
658
|
+
};
|
659
|
+
readonly testnet: true;
|
660
|
+
};
|
661
|
+
declare const polygon: {
|
662
|
+
readonly id: 137;
|
663
|
+
readonly name: "Polygon";
|
664
|
+
readonly network: "matic";
|
665
|
+
readonly nativeCurrency: {
|
666
|
+
readonly name: "MATIC";
|
667
|
+
readonly symbol: "MATIC";
|
668
|
+
readonly decimals: 18;
|
669
|
+
};
|
670
|
+
readonly rpcUrls: {
|
671
|
+
readonly alchemy: {
|
672
|
+
readonly http: readonly ["https://polygon-mainnet.g.alchemy.com/v2"];
|
673
|
+
readonly webSocket: readonly ["wss://polygon-mainnet.g.alchemy.com/v2"];
|
674
|
+
};
|
675
|
+
readonly infura: {
|
676
|
+
readonly http: readonly ["https://polygon-mainnet.infura.io/v3"];
|
677
|
+
readonly webSocket: readonly ["wss://polygon-mainnet.infura.io/ws/v3"];
|
678
|
+
};
|
679
|
+
readonly default: {
|
680
|
+
readonly http: readonly ["https://polygon-rpc.com"];
|
681
|
+
};
|
682
|
+
readonly public: {
|
683
|
+
readonly http: readonly ["https://polygon-rpc.com"];
|
684
|
+
};
|
685
|
+
};
|
686
|
+
readonly blockExplorers: {
|
687
|
+
readonly etherscan: {
|
688
|
+
readonly name: "PolygonScan";
|
689
|
+
readonly url: "https://polygonscan.com";
|
690
|
+
};
|
691
|
+
readonly default: {
|
692
|
+
readonly name: "PolygonScan";
|
693
|
+
readonly url: "https://polygonscan.com";
|
694
|
+
};
|
695
|
+
};
|
696
|
+
readonly contracts: {
|
697
|
+
readonly multicall3: {
|
698
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
699
|
+
readonly blockCreated: 25770160;
|
700
|
+
};
|
701
|
+
};
|
702
|
+
};
|
703
|
+
declare const sepolia: {
|
704
|
+
readonly id: 11155111;
|
705
|
+
readonly network: "sepolia";
|
706
|
+
readonly name: "Sepolia";
|
707
|
+
readonly nativeCurrency: {
|
708
|
+
readonly name: "Sepolia Ether";
|
709
|
+
readonly symbol: "SEP";
|
710
|
+
readonly decimals: 18;
|
711
|
+
};
|
712
|
+
readonly rpcUrls: {
|
713
|
+
readonly infura: {
|
714
|
+
readonly http: readonly ["https://sepolia.infura.io/v3"];
|
715
|
+
readonly webSocket: readonly ["wss://sepolia.infura.io/ws/v3"];
|
716
|
+
};
|
717
|
+
readonly default: {
|
718
|
+
readonly http: readonly ["https://rpc.sepolia.org"];
|
719
|
+
};
|
720
|
+
readonly public: {
|
721
|
+
readonly http: readonly ["https://rpc.sepolia.org"];
|
722
|
+
};
|
723
|
+
};
|
724
|
+
readonly blockExplorers: {
|
725
|
+
readonly etherscan: {
|
726
|
+
readonly name: "Etherscan";
|
727
|
+
readonly url: "https://sepolia.etherscan.io";
|
728
|
+
};
|
729
|
+
readonly default: {
|
730
|
+
readonly name: "Etherscan";
|
731
|
+
readonly url: "https://sepolia.etherscan.io";
|
732
|
+
};
|
733
|
+
};
|
734
|
+
readonly contracts: {
|
735
|
+
readonly multicall3: {
|
736
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
737
|
+
readonly blockCreated: 6507670;
|
738
|
+
};
|
739
|
+
};
|
740
|
+
readonly testnet: true;
|
741
|
+
};
|
112
742
|
|
113
743
|
export { Chain, Formatter, Formatters, arbitrum, arbitrumGoerli, avalanche, avalancheFuji, bsc, bscTestnet, celo, defineBlock, defineChain, defineTransaction, defineTransactionReceipt, defineTransactionRequest, fantom, fantomTestnet, foundry, goerli, hardhat, localhost, mainnet, optimism, optimismGoerli, polygon, polygonMumbai, sepolia };
|