forked from wevm/viem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
343 lines (340 loc) · 16.3 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
export type { Chain } from '../types/chain.js'
export { acala } from './definitions/acala.js'
export { ancient8 } from './definitions/ancient8.js'
export { ancient8Sepolia } from './definitions/ancient8Sepolia.js'
export { anvil } from './definitions/anvil.js'
export { apexTestnet } from './definitions/apexTestnet.js'
export { arbitrum } from './definitions/arbitrum.js'
export { arbitrumGoerli } from './definitions/arbitrumGoerli.js'
export { arbitrumNova } from './definitions/arbitrumNova.js'
export { astar } from './definitions/astar.js'
export { astarZkEVM } from './definitions/astarZkEVM.js'
export { astarZkyoto } from './definitions/astarZkyoto.js'
export { arbitrumSepolia } from './definitions/arbitrumSepolia.js'
export { areonNetwork } from './definitions/areonNetwork.js'
export { areonNetworkTestnet } from './definitions/areonNetworkTestnet.js'
export { astarZkatana } from './definitions/astarZkatana.js'
export { aurora } from './definitions/aurora.js'
export { auroraTestnet } from './definitions/auroraTestnet.js'
export { auroria } from './definitions/auroria.js'
export { avalanche } from './definitions/avalanche.js'
export { avalancheFuji } from './definitions/avalancheFuji.js'
export { bahamut } from './definitions/bahamut.js'
export { base } from './definitions/base.js'
export { baseGoerli } from './definitions/baseGoerli.js'
export { baseSepolia } from './definitions/baseSepolia.js'
export { beam } from './definitions/beam.js'
export { beamTestnet } from './definitions/beamTestnet.js'
export { bearNetworkChainMainnet } from './definitions/bearNetworkChainMainnet.js'
export { bearNetworkChainTestnet } from './definitions/bearNetworkChainTestnet.js'
export { berachainTestnet } from './definitions/berachainTestnet.js'
export { bitTorrent } from './definitions/bitTorrent.js'
export { bitTorrentTestnet } from './definitions/bitTorrentTestnet.js'
export { blast } from './definitions/blast.js'
export { blastSepolia } from './definitions/blastSepolia.js'
export { boba } from './definitions/boba.js'
export { bronos } from './definitions/bronos.js'
export { bronosTestnet } from './definitions/bronosTestnet.js'
export { bsc } from './definitions/bsc.js'
export { bscTestnet } from './definitions/bscTestnet.js'
export { bscGreenfield } from './definitions/bscGreenfield.js'
export { bxn } from './definitions/bxn.js'
export { bxnTestnet } from './definitions/bxnTestnet.js'
export { canto } from './definitions/canto.js'
export { celo } from './definitions/celo.js'
export { celoAlfajores } from './definitions/celoAlfajores.js'
export { chiliz } from './definitions/chiliz.js'
export { classic } from './definitions/classic.js'
export { confluxESpace } from './definitions/confluxESpace.js'
export { confluxESpaceTestnet } from './definitions/confluxESpaceTestnet.js'
export { coreDao } from './definitions/coreDao.js'
export { cronos } from './definitions/cronos.js'
export { cronosTestnet } from './definitions/cronosTestnet.js'
export { crossbell } from './definitions/crossbell.js'
export { defichainEvm } from './definitions/defichainEvm.js'
export { defichainEvmTestnet } from './definitions/defichainEvmTestnet.js'
export { degen } from './definitions/degen.js'
export { dfk } from './definitions/dfk.js'
export { dogechain } from './definitions/dogechain.js'
export { edgeware } from './definitions/edgeware.js'
export { edgewareTestnet } from './definitions/edgewareTestnet.js'
export { eos } from './definitions/eos.js'
export { eosTestnet } from './definitions/eosTestnet.js'
export { etherlinkTestnet } from './definitions/etherlinkTestnet.js'
export { evmos } from './definitions/evmos.js'
export { evmosTestnet } from './definitions/evmosTestnet.js'
export { ekta } from './definitions/ekta.js'
export { ektaTestnet } from './definitions/ektaTestnet.js'
export { fantom } from './definitions/fantom.js'
export { fantomSonicTestnet } from './definitions/fantomSonicTestnet.js'
export { fantomTestnet } from './definitions/fantomTestnet.js'
export { fibo } from './definitions/fibo.js'
export { filecoin } from './definitions/filecoin.js'
export { filecoinCalibration } from './definitions/filecoinCalibration.js'
export { filecoinHyperspace } from './definitions/filecoinHyperspace.js'
export { flare } from './definitions/flare.js'
export { flareTestnet } from './definitions/flareTestnet.js'
export { flowPreviewnet } from './definitions/flowPreviewnet.js'
export { flowMainnet } from './definitions/flowMainnet.js'
/** @deprecated Use `anvil` instead. */
export { foundry } from './definitions/foundry.js'
export { fraxtal } from './definitions/fraxtal.js'
export { fraxtalTestnet } from './definitions/fraxtalTestnet.js'
export { fuse } from './definitions/fuse.js'
export { fuseSparknet } from './definitions/fuseSparknet.js'
export { iotex } from './definitions/iotex.js'
export { iotexTestnet } from './definitions/iotexTestnet.js'
export { jbc } from './definitions/jbc.js'
export { karura } from './definitions/karura.js'
export { gobi } from './definitions/gobi.js'
export { goerli } from './definitions/goerli.js'
export { gnosis } from './definitions/gnosis.js'
export { gnosisChiado } from './definitions/gnosisChiado.js'
export { hardhat } from './definitions/hardhat.js'
export { harmonyOne } from './definitions/harmonyOne.js'
export { haqqMainnet } from './definitions/haqqMainnet.js'
export { haqqTestedge2 } from './definitions/haqqTestedge2.js'
export { hedera } from './definitions/hedera.js'
export { hederaTestnet } from './definitions/hederaTestnet.js'
export { hederaPreviewnet } from './definitions/hederaPreviewnet.js'
export { holesky } from './definitions/holesky.js'
export { immutableZkEvm } from './definitions/immutableZkEvm.js'
export { immutableZkEvmTestnet } from './definitions/immutableZkEvmTestnet.js'
export { kakarotSepolia } from './definitions/kakarotSepolia.js'
export { kava } from './definitions/kava.js'
export { kavaTestnet } from './definitions/kavaTestnet.js'
export { kcc } from './definitions/kcc.js'
export { klaytn } from './definitions/klaytn.js'
export { klaytnBaobab } from './definitions/klaytnBaobab.js'
export { kroma } from './definitions/kroma.js'
export { kromaSepolia } from './definitions/kromaSepolia.js'
export { lightlinkPegasus } from './definitions/lightlinkPegasus.js'
export { lightlinkPhoenix } from './definitions/lightlinkPhoenix.js'
export { linea } from './definitions/linea.js'
export { lineaTestnet } from './definitions/lineaTestnet.js'
export { liskSepolia } from './definitions/liskSepolia.js'
export { localhost } from './definitions/localhost.js'
export { lukso } from './definitions/lukso.js'
export { luksoTestnet } from './definitions/luksoTestnet.js'
export { mainnet } from './definitions/mainnet.js'
export { mandala } from './definitions/mandala.js'
export { manta } from './definitions/manta.js'
export { mantaTestnet } from './definitions/mantaTestnet.js'
export { mantle } from './definitions/mantle.js'
export { mantleTestnet } from './definitions/mantleTestnet.js'
export { merlin } from './definitions/merlin.js'
export { metachain } from './definitions/metachain.js'
export { metachainIstanbul } from './definitions/metachainIstanbul.js'
export { meter } from './definitions/meter.js'
export { meterTestnet } from './definitions/meterTestnet.js'
export { metis } from './definitions/metis.js'
export { metisGoerli } from './definitions/metisGoerli.js'
export { mev } from './definitions/mev.js'
export { mevTestnet } from './definitions/mevTestnet.js'
export { mintSepoliaTestnet } from './definitions/mintSepoliaTestnet.js'
export { mode } from './definitions/mode.js'
export { modeTestnet } from './definitions/modeTestnet.js'
export { moonbaseAlpha } from './definitions/moonbaseAlpha.js'
export { moonbeam } from './definitions/moonbeam.js'
export { moonbeamDev } from './definitions/moonbeamDev.js'
export { moonriver } from './definitions/moonriver.js'
export { morphSepolia } from './definitions/morphSepolia.js'
export { neonDevnet } from './definitions/neonDevnet.js'
export { neonMainnet } from './definitions/neonMainnet.js'
export { nexi } from './definitions/nexi.js'
export { nexilix } from './definitions/nexilix.js'
export { oasys } from './definitions/oasys.js'
export { oasisTestnet } from './definitions/oasisTestnet.js'
export { okc } from './definitions/okc.js'
export { optimism } from './definitions/optimism.js'
export { optimismGoerli } from './definitions/optimismGoerli.js'
export { optimismSepolia } from './definitions/optimismSepolia.js'
export { opBNB } from './definitions/opBNB.js'
export { opBNBTestnet } from './definitions/opBNBTestnet.js'
export { oortMainnetDev } from './definitions/oortmainnetDev.js'
export { palm } from './definitions/palm.js'
export { palmTestnet } from './definitions/palmTestnet.js'
export { pgn } from './definitions/pgn.js'
export { pgnTestnet } from './definitions/pgnTestnet.js'
export { phoenix } from './definitions/phoenix.js'
export { plinga } from './definitions/plinga.js'
export { plumeTestnet } from './definitions/plumeTestnet.js'
export { polygon } from './definitions/polygon.js'
export { polygonAmoy } from './definitions/polygonAmoy.js'
export { polygonMumbai } from './definitions/polygonMumbai.js'
export { polygonZkEvmTestnet } from './definitions/polygonZkEvmTestnet.js'
export { polygonZkEvm } from './definitions/polygonZkEvm.js'
export { pulsechain } from './definitions/pulsechain.js'
export { pulsechainV4 } from './definitions/pulsechainV4.js'
export { qMainnet } from './definitions/qMainnet.js'
export { qTestnet } from './definitions/qTestnet.js'
export { reyaNetwork } from './definitions/reyaNetwork.js'
export { rollux } from './definitions/rollux.js'
export { rolluxTestnet } from './definitions/rolluxTestnet.js'
export { ronin } from './definitions/ronin.js'
export { rootstock } from './definitions/rootstock.js'
export { rss3 } from './definitions/rss3.js'
export { rss3Sepolia } from './definitions/rss3Sepolia.js'
export { saigon } from './definitions/saigon.js'
export { sapphire } from './definitions/sapphire.js'
export { sapphireTestnet } from './definitions/sapphireTestnet.js'
export { scroll } from './definitions/scroll.js'
export { scrollSepolia } from './definitions/scrollSepolia.js'
export { scrollTestnet } from './definitions/scrollTestnet.js'
export { seiDevnet } from './definitions/seiDevnet.js'
export { sepolia } from './definitions/sepolia.js'
export { shimmer } from './definitions/shimmer.js'
export { shimmerTestnet } from './definitions/shimmerTestnet.js'
export { skaleBlockBrawlers } from './definitions/skale/brawl.js'
export { skaleCalypso } from './definitions/skale/calypso.js'
export { skaleCalypsoTestnet } from './definitions/skale/calypsoTestnet.js'
export { skaleCryptoBlades } from './definitions/skale/cryptoBlades.js'
export { skaleCryptoColosseum } from './definitions/skale/cryptoColosseum.js'
export { skaleEuropa } from './definitions/skale/europa.js'
export { skaleEuropaTestnet } from './definitions/skale/europaTestnet.js'
export { skaleExorde } from './definitions/skale/exorde.js'
export { skaleHumanProtocol } from './definitions/skale/humanProtocol.js'
export { skaleNebula } from './definitions/skale/nebula.js'
export { skaleNebulaTestnet } from './definitions/skale/nebulaTestnet.js'
export { skaleRazor } from './definitions/skale/razor.js'
export { skaleTitan } from './definitions/skale/titan.js'
export { skaleTitanTestnet } from './definitions/skale/titanTestnet.js'
export { songbird } from './definitions/songbird.js'
export { songbirdTestnet } from './definitions/songbirdTestnet.js'
export { spicy } from './definitions/spicy.js'
export { shardeumSphinx } from './definitions/shardeumSphinx.js'
export { shibarium } from './definitions/shibarium.js'
export { stratis } from './definitions/stratis.js'
export { syscoin } from './definitions/syscoin.js'
export { syscoinTestnet } from './definitions/syscoinTestnet.js'
export { taraxa } from './definitions/taraxa.js'
export { taikoJolnir } from './definitions/taikoJolnir.js'
export { taikoKatla } from './definitions/taikoKatla.js'
export { taikoTestnetSepolia } from './definitions/taikoTestnetSepolia.js'
export { taraxaTestnet } from './definitions/taraxaTestnet.js'
export { telos } from './definitions/telos.js'
export { telosTestnet } from './definitions/telosTestnet.js'
export { tenet } from './definitions/tenet.js'
export { thunderTestnet } from './definitions/thunderTestnet.js'
export { vechain } from './definitions/vechain.js'
export { wanchain } from './definitions/wanchain.js'
export { wanchainTestnet } from './definitions/wanchainTestnet.js'
export { wemix } from './definitions/wemix.js'
export { wemixTestnet } from './definitions/wemixTestnet.js'
export { x1Testnet } from './definitions/x1Testnet.js'
export { xdc } from './definitions/xdc.js'
export { xdcTestnet } from './definitions/xdcTestnet.js'
export { zetachain } from './definitions/zetachain.js'
export { zetachainAthensTestnet } from './definitions/zetachainAthensTestnet.js'
export { zhejiang } from './definitions/zhejiang.js'
export { zilliqa } from './definitions/zilliqa.js'
export { zilliqaTestnet } from './definitions/zilliqaTestnet.js'
export { zkFair } from './definitions/zkFair.js'
export { zkFairTestnet } from './definitions/zkFairTestnet.js'
export { zkSync } from './definitions/zkSync.js'
export { zkSyncInMemoryNode } from './definitions/zkSyncInMemoryNode.js'
export { zkSyncLocalNode } from './definitions/zkSyncLocalNode.js'
export { zkSyncSepoliaTestnet } from './definitions/zkSyncSepoliaTestnet.js'
export { zkSyncTestnet } from './definitions/zkSyncTestnet.js'
export { zora } from './definitions/zora.js'
export { zoraSepolia } from './definitions/zoraSepolia.js'
export { zoraTestnet } from './definitions/zoraTestnet.js'
//////////////////////////////////////////////////////////////////////////////////////
// Required type exports to prevent TypeScript error "TS2742".
export type {
Assign,
Omit,
PartialBy,
Prettify,
UnionLooseOmit,
} from '../types/utils.js'
export type {
CeloBlock,
CeloBlockOverrides,
CeloRpcBlock,
CeloRpcBlockOverrides,
CeloRpcTransaction,
CeloRpcTransactionRequest,
CeloTransaction,
CeloTransactionRequest,
CeloTransactionType,
CeloTransactionSerializable,
CeloTransactionSerialized,
RpcTransactionCIP42,
RpcTransactionCIP64,
RpcTransactionRequestCIP42,
RpcTransactionRequestCIP64,
TransactionCIP42,
TransactionCIP64,
TransactionRequestCIP42,
TransactionRequestCIP64,
TransactionSerializableCIP42,
TransactionSerializableCIP64,
TransactionSerializedCIP42,
TransactionSerializedCIP64,
} from '../celo/types.js'
export type {
OpStackBlock,
OpStackBlockOverrides,
OpStackRpcBlock,
OpStackRpcBlockOverrides,
} from '../op-stack/types/block.js'
export type {
SerializeTransactionDepositReturnType,
SerializeTransactionErrorType,
SerializeTransactionReturnType,
serializeTransaction as serializeTransactionOpStack,
assertTransactionDeposit as assertTransactionDepositOpStack,
serializers as serializersOpStack,
} from '../op-stack/serializers.js'
export type {
OpStackDepositTransaction,
OpStackRpcDepositTransaction,
OpStackRpcTransaction,
OpStackRpcTransactionReceipt,
OpStackRpcTransactionReceiptOverrides,
OpStackTransaction,
OpStackTransactionReceipt,
OpStackTransactionReceiptOverrides,
OpStackTransactionSerializable,
OpStackTransactionSerialized,
OpStackTransactionType,
TransactionSerializableDeposit,
TransactionSerializedDeposit,
} from '../op-stack/types/transaction.js'
export type {
ZkSyncBlock,
ZkSyncBlockOverrides,
ZkSyncRpcBlock,
ZkSyncRpcBlockOverrides,
} from '../zksync/types/block.js'
export type { ChainEIP712 } from '../zksync/types/chain.js'
export type { ZkSyncEip712Meta } from '../zksync/types/eip712.js'
export type { ZkSyncFeeValues } from '../zksync/types/fee.js'
export type {
ZkSyncL2ToL1Log,
ZkSyncLog,
ZkSyncRpcL2ToL1Log,
ZkSyncRpcLog,
} from '../zksync/types/log.js'
export type {
TransactionRequestEIP712,
ZkSyncEIP712TransactionSignable,
ZkSyncRpcTransaction,
ZkSyncRpcTransactionEIP712,
ZkSyncRpcTransactionPriority,
ZkSyncRpcTransactionReceiptOverrides,
ZkSyncRpcTransactionRequest,
ZkSyncRpcTransactionRequestEIP712,
ZkSyncTransaction,
ZkSyncTransactionEIP712,
ZkSyncTransactionReceipt,
ZkSyncTransactionReceiptOverrides,
ZkSyncTransactionRequest,
ZkSyncTransactionRequestEIP712,
ZkSyncTransactionSerializable,
ZkSyncTransactionSerializableEIP712,
ZkSyncTransactionSerialized,
ZkSyncTransactionSerializedEIP712,
ZkSyncTransactionType,
} from '../zksync/types/transaction.js'