@usdu-finance/usdu-core 0.0.1 → 0.0.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/dist/index.d.mts CHANGED
@@ -1,6 +1,9 @@
1
1
  import { ethers } from 'ethers';
2
+ import * as abitype from 'abitype';
3
+ import * as viem_chains from 'viem/chains';
2
4
  import { mainnet, polygon, arbitrum, optimism, base, avalanche, gnosis, sonic } from 'viem/chains';
3
- import { Address } from 'viem';
5
+ import * as viem from 'viem';
6
+ import { Chain, Address } from 'viem';
4
7
 
5
8
  declare function getChildFromSeed(seed: string, index: number): ethers.HDNodeWallet;
6
9
  declare function getAddressFromChildIndex(seed: string, index: number): string;
@@ -8,6 +11,1675 @@ declare function getPublicKeyFromChildIndex(seed: string, index: number): string
8
11
  declare function getPrivateKeyFromChildIndex(seed: string, index: number): string;
9
12
  declare function getWalletInto(seed?: string | undefined, index?: string | undefined, amount?: number): void;
10
13
 
14
+ declare const ChainMain: {
15
+ readonly mainnet: {
16
+ blockExplorers: {
17
+ readonly default: {
18
+ readonly name: "Etherscan";
19
+ readonly url: "https://etherscan.io";
20
+ readonly apiUrl: "https://api.etherscan.io/api";
21
+ };
22
+ };
23
+ blockTime?: number | undefined | undefined;
24
+ contracts: {
25
+ readonly ensRegistry: {
26
+ readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
27
+ };
28
+ readonly ensUniversalResolver: {
29
+ readonly address: "0xce01f8eee7E479C928F8919abD53E553a36CeF67";
30
+ readonly blockCreated: 19258213;
31
+ };
32
+ readonly multicall3: {
33
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
34
+ readonly blockCreated: 14353601;
35
+ };
36
+ };
37
+ ensTlds?: readonly string[] | undefined;
38
+ id: 1;
39
+ name: "Ethereum";
40
+ nativeCurrency: {
41
+ readonly name: "Ether";
42
+ readonly symbol: "ETH";
43
+ readonly decimals: 18;
44
+ };
45
+ rpcUrls: {
46
+ readonly default: {
47
+ readonly http: readonly ["https://eth.merkle.io"];
48
+ };
49
+ };
50
+ sourceId?: number | undefined | undefined;
51
+ testnet?: boolean | undefined | undefined;
52
+ custom?: Record<string, unknown> | undefined;
53
+ fees?: viem.ChainFees<undefined> | undefined;
54
+ formatters?: undefined;
55
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
56
+ };
57
+ };
58
+ declare const ChainSide: {
59
+ readonly polygon: {
60
+ blockExplorers: {
61
+ readonly default: {
62
+ readonly name: "PolygonScan";
63
+ readonly url: "https://polygonscan.com";
64
+ readonly apiUrl: "https://api.polygonscan.com/api";
65
+ };
66
+ };
67
+ blockTime?: number | undefined | undefined;
68
+ contracts: {
69
+ readonly multicall3: {
70
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
71
+ readonly blockCreated: 25770160;
72
+ };
73
+ };
74
+ ensTlds?: readonly string[] | undefined;
75
+ id: 137;
76
+ name: "Polygon";
77
+ nativeCurrency: {
78
+ readonly name: "POL";
79
+ readonly symbol: "POL";
80
+ readonly decimals: 18;
81
+ };
82
+ rpcUrls: {
83
+ readonly default: {
84
+ readonly http: readonly ["https://polygon-rpc.com"];
85
+ };
86
+ };
87
+ sourceId?: number | undefined | undefined;
88
+ testnet?: boolean | undefined | undefined;
89
+ custom?: Record<string, unknown> | undefined;
90
+ fees?: viem.ChainFees<undefined> | undefined;
91
+ formatters?: undefined;
92
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
93
+ };
94
+ readonly arbitrum: {
95
+ blockExplorers: {
96
+ readonly default: {
97
+ readonly name: "Arbiscan";
98
+ readonly url: "https://arbiscan.io";
99
+ readonly apiUrl: "https://api.arbiscan.io/api";
100
+ };
101
+ };
102
+ blockTime?: number | undefined | undefined;
103
+ contracts: {
104
+ readonly multicall3: {
105
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
106
+ readonly blockCreated: 7654707;
107
+ };
108
+ };
109
+ ensTlds?: readonly string[] | undefined;
110
+ id: 42161;
111
+ name: "Arbitrum One";
112
+ nativeCurrency: {
113
+ readonly name: "Ether";
114
+ readonly symbol: "ETH";
115
+ readonly decimals: 18;
116
+ };
117
+ rpcUrls: {
118
+ readonly default: {
119
+ readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
120
+ };
121
+ };
122
+ sourceId?: number | undefined | undefined;
123
+ testnet?: boolean | undefined | undefined;
124
+ custom?: Record<string, unknown> | undefined;
125
+ fees?: viem.ChainFees<undefined> | undefined;
126
+ formatters?: undefined;
127
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
128
+ };
129
+ readonly optimism: {
130
+ blockExplorers: {
131
+ readonly default: {
132
+ readonly name: "Optimism Explorer";
133
+ readonly url: "https://optimistic.etherscan.io";
134
+ readonly apiUrl: "https://api-optimistic.etherscan.io/api";
135
+ };
136
+ };
137
+ blockTime: 2000;
138
+ contracts: {
139
+ readonly disputeGameFactory: {
140
+ readonly 1: {
141
+ readonly address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9";
142
+ };
143
+ };
144
+ readonly l2OutputOracle: {
145
+ readonly 1: {
146
+ readonly address: "0xdfe97868233d1aa22e815a266982f2cf17685a27";
147
+ };
148
+ };
149
+ readonly multicall3: {
150
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
151
+ readonly blockCreated: 4286263;
152
+ };
153
+ readonly portal: {
154
+ readonly 1: {
155
+ readonly address: "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed";
156
+ };
157
+ };
158
+ readonly l1StandardBridge: {
159
+ readonly 1: {
160
+ readonly address: "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1";
161
+ };
162
+ };
163
+ readonly gasPriceOracle: {
164
+ readonly address: "0x420000000000000000000000000000000000000F";
165
+ };
166
+ readonly l1Block: {
167
+ readonly address: "0x4200000000000000000000000000000000000015";
168
+ };
169
+ readonly l2CrossDomainMessenger: {
170
+ readonly address: "0x4200000000000000000000000000000000000007";
171
+ };
172
+ readonly l2Erc721Bridge: {
173
+ readonly address: "0x4200000000000000000000000000000000000014";
174
+ };
175
+ readonly l2StandardBridge: {
176
+ readonly address: "0x4200000000000000000000000000000000000010";
177
+ };
178
+ readonly l2ToL1MessagePasser: {
179
+ readonly address: "0x4200000000000000000000000000000000000016";
180
+ };
181
+ };
182
+ ensTlds?: readonly string[] | undefined;
183
+ id: 10;
184
+ name: "OP Mainnet";
185
+ nativeCurrency: {
186
+ readonly name: "Ether";
187
+ readonly symbol: "ETH";
188
+ readonly decimals: 18;
189
+ };
190
+ rpcUrls: {
191
+ readonly default: {
192
+ readonly http: readonly ["https://mainnet.optimism.io"];
193
+ };
194
+ };
195
+ sourceId: 1;
196
+ testnet?: boolean | undefined | undefined;
197
+ custom?: Record<string, unknown> | undefined;
198
+ fees?: viem.ChainFees<undefined> | undefined;
199
+ formatters: {
200
+ readonly block: {
201
+ exclude: [] | undefined;
202
+ format: (args: viem_chains.OpStackRpcBlock) => {
203
+ baseFeePerGas: bigint | null;
204
+ blobGasUsed: bigint;
205
+ difficulty: bigint;
206
+ excessBlobGas: bigint;
207
+ extraData: viem.Hex;
208
+ gasLimit: bigint;
209
+ gasUsed: bigint;
210
+ hash: `0x${string}` | null;
211
+ logsBloom: `0x${string}` | null;
212
+ miner: abitype.Address;
213
+ mixHash: viem.Hash;
214
+ nonce: `0x${string}` | null;
215
+ number: bigint | null;
216
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
217
+ parentHash: viem.Hash;
218
+ receiptsRoot: viem.Hex;
219
+ sealFields: viem.Hex[];
220
+ sha3Uncles: viem.Hash;
221
+ size: bigint;
222
+ stateRoot: viem.Hash;
223
+ timestamp: bigint;
224
+ totalDifficulty: bigint | null;
225
+ transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
226
+ transactionsRoot: viem.Hash;
227
+ uncles: viem.Hash[];
228
+ withdrawals?: viem.Withdrawal[] | undefined | undefined;
229
+ withdrawalsRoot?: `0x${string}` | undefined;
230
+ } & {};
231
+ type: "block";
232
+ };
233
+ readonly transaction: {
234
+ exclude: [] | undefined;
235
+ format: (args: viem_chains.OpStackRpcTransaction) => ({
236
+ blockHash: `0x${string}` | null;
237
+ blockNumber: bigint | null;
238
+ from: abitype.Address;
239
+ gas: bigint;
240
+ hash: viem.Hash;
241
+ input: viem.Hex;
242
+ nonce: number;
243
+ r: viem.Hex;
244
+ s: viem.Hex;
245
+ to: abitype.Address | null;
246
+ transactionIndex: number | null;
247
+ typeHex: viem.Hex | null;
248
+ v: bigint;
249
+ value: bigint;
250
+ yParity: number;
251
+ gasPrice?: undefined | undefined;
252
+ maxFeePerBlobGas?: undefined | undefined;
253
+ maxFeePerGas: bigint;
254
+ maxPriorityFeePerGas: bigint;
255
+ isSystemTx?: boolean;
256
+ mint?: bigint | undefined | undefined;
257
+ sourceHash: viem.Hex;
258
+ type: "deposit";
259
+ } | {
260
+ r: viem.Hex;
261
+ s: viem.Hex;
262
+ v: bigint;
263
+ to: abitype.Address | null;
264
+ from: abitype.Address;
265
+ gas: bigint;
266
+ nonce: number;
267
+ value: bigint;
268
+ blockHash: `0x${string}` | null;
269
+ blockNumber: bigint | null;
270
+ hash: viem.Hash;
271
+ input: viem.Hex;
272
+ transactionIndex: number | null;
273
+ typeHex: viem.Hex | null;
274
+ accessList?: undefined | undefined;
275
+ authorizationList?: undefined | undefined;
276
+ blobVersionedHashes?: undefined | undefined;
277
+ chainId?: number | undefined;
278
+ yParity?: undefined | undefined;
279
+ type: "legacy";
280
+ gasPrice: bigint;
281
+ maxFeePerBlobGas?: undefined | undefined;
282
+ maxFeePerGas?: undefined | undefined;
283
+ maxPriorityFeePerGas?: undefined | undefined;
284
+ isSystemTx?: undefined | undefined;
285
+ mint?: undefined | undefined;
286
+ sourceHash?: undefined | undefined;
287
+ } | {
288
+ blockHash: `0x${string}` | null;
289
+ blockNumber: bigint | null;
290
+ from: abitype.Address;
291
+ gas: bigint;
292
+ hash: viem.Hash;
293
+ input: viem.Hex;
294
+ nonce: number;
295
+ r: viem.Hex;
296
+ s: viem.Hex;
297
+ to: abitype.Address | null;
298
+ transactionIndex: number | null;
299
+ typeHex: viem.Hex | null;
300
+ v: bigint;
301
+ value: bigint;
302
+ yParity: number;
303
+ accessList: viem.AccessList;
304
+ authorizationList?: undefined | undefined;
305
+ blobVersionedHashes?: undefined | undefined;
306
+ chainId: number;
307
+ type: "eip2930";
308
+ gasPrice: bigint;
309
+ maxFeePerBlobGas?: undefined | undefined;
310
+ maxFeePerGas?: undefined | undefined;
311
+ maxPriorityFeePerGas?: undefined | undefined;
312
+ isSystemTx?: undefined | undefined;
313
+ mint?: undefined | undefined;
314
+ sourceHash?: undefined | undefined;
315
+ } | {
316
+ blockHash: `0x${string}` | null;
317
+ blockNumber: bigint | null;
318
+ from: abitype.Address;
319
+ gas: bigint;
320
+ hash: viem.Hash;
321
+ input: viem.Hex;
322
+ nonce: number;
323
+ r: viem.Hex;
324
+ s: viem.Hex;
325
+ to: abitype.Address | null;
326
+ transactionIndex: number | null;
327
+ typeHex: viem.Hex | null;
328
+ v: bigint;
329
+ value: bigint;
330
+ yParity: number;
331
+ accessList: viem.AccessList;
332
+ authorizationList?: undefined | undefined;
333
+ blobVersionedHashes?: undefined | undefined;
334
+ chainId: number;
335
+ type: "eip1559";
336
+ gasPrice?: undefined | undefined;
337
+ maxFeePerBlobGas?: undefined | undefined;
338
+ maxFeePerGas: bigint;
339
+ maxPriorityFeePerGas: bigint;
340
+ isSystemTx?: undefined | undefined;
341
+ mint?: undefined | undefined;
342
+ sourceHash?: undefined | undefined;
343
+ } | {
344
+ blockHash: `0x${string}` | null;
345
+ blockNumber: bigint | null;
346
+ from: abitype.Address;
347
+ gas: bigint;
348
+ hash: viem.Hash;
349
+ input: viem.Hex;
350
+ nonce: number;
351
+ r: viem.Hex;
352
+ s: viem.Hex;
353
+ to: abitype.Address | null;
354
+ transactionIndex: number | null;
355
+ typeHex: viem.Hex | null;
356
+ v: bigint;
357
+ value: bigint;
358
+ yParity: number;
359
+ accessList: viem.AccessList;
360
+ authorizationList?: undefined | undefined;
361
+ blobVersionedHashes: readonly viem.Hex[];
362
+ chainId: number;
363
+ type: "eip4844";
364
+ gasPrice?: undefined | undefined;
365
+ maxFeePerBlobGas: bigint;
366
+ maxFeePerGas: bigint;
367
+ maxPriorityFeePerGas: bigint;
368
+ isSystemTx?: undefined | undefined;
369
+ mint?: undefined | undefined;
370
+ sourceHash?: undefined | undefined;
371
+ } | {
372
+ blockHash: `0x${string}` | null;
373
+ blockNumber: bigint | null;
374
+ from: abitype.Address;
375
+ gas: bigint;
376
+ hash: viem.Hash;
377
+ input: viem.Hex;
378
+ nonce: number;
379
+ r: viem.Hex;
380
+ s: viem.Hex;
381
+ to: abitype.Address | null;
382
+ transactionIndex: number | null;
383
+ typeHex: viem.Hex | null;
384
+ v: bigint;
385
+ value: bigint;
386
+ yParity: number;
387
+ accessList: viem.AccessList;
388
+ authorizationList: viem.SignedAuthorizationList;
389
+ blobVersionedHashes?: undefined | undefined;
390
+ chainId: number;
391
+ type: "eip7702";
392
+ gasPrice?: undefined | undefined;
393
+ maxFeePerBlobGas?: undefined | undefined;
394
+ maxFeePerGas: bigint;
395
+ maxPriorityFeePerGas: bigint;
396
+ isSystemTx?: undefined | undefined;
397
+ mint?: undefined | undefined;
398
+ sourceHash?: undefined | undefined;
399
+ }) & {};
400
+ type: "transaction";
401
+ };
402
+ readonly transactionReceipt: {
403
+ exclude: [] | undefined;
404
+ format: (args: viem_chains.OpStackRpcTransactionReceipt) => {
405
+ blobGasPrice?: bigint | undefined;
406
+ blobGasUsed?: bigint | undefined;
407
+ blockHash: viem.Hash;
408
+ blockNumber: bigint;
409
+ contractAddress: abitype.Address | null | undefined;
410
+ cumulativeGasUsed: bigint;
411
+ effectiveGasPrice: bigint;
412
+ from: abitype.Address;
413
+ gasUsed: bigint;
414
+ logs: viem.Log<bigint, number, false>[];
415
+ logsBloom: viem.Hex;
416
+ root?: `0x${string}` | undefined;
417
+ status: "success" | "reverted";
418
+ to: abitype.Address | null;
419
+ transactionHash: viem.Hash;
420
+ transactionIndex: number;
421
+ type: viem.TransactionType;
422
+ l1GasPrice: bigint | null;
423
+ l1GasUsed: bigint | null;
424
+ l1Fee: bigint | null;
425
+ l1FeeScalar: number | null;
426
+ } & {};
427
+ type: "transactionReceipt";
428
+ };
429
+ };
430
+ serializers: {
431
+ readonly transaction: typeof viem_chains.serializeTransactionOpStack;
432
+ };
433
+ };
434
+ readonly base: {
435
+ blockExplorers: {
436
+ readonly default: {
437
+ readonly name: "Basescan";
438
+ readonly url: "https://basescan.org";
439
+ readonly apiUrl: "https://api.basescan.org/api";
440
+ };
441
+ };
442
+ blockTime: 2000;
443
+ contracts: {
444
+ readonly disputeGameFactory: {
445
+ readonly 1: {
446
+ readonly address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e";
447
+ };
448
+ };
449
+ readonly l2OutputOracle: {
450
+ readonly 1: {
451
+ readonly address: "0x56315b90c40730925ec5485cf004d835058518A0";
452
+ };
453
+ };
454
+ readonly multicall3: {
455
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
456
+ readonly blockCreated: 5022;
457
+ };
458
+ readonly portal: {
459
+ readonly 1: {
460
+ readonly address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e";
461
+ readonly blockCreated: 17482143;
462
+ };
463
+ };
464
+ readonly l1StandardBridge: {
465
+ readonly 1: {
466
+ readonly address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35";
467
+ readonly blockCreated: 17482143;
468
+ };
469
+ };
470
+ readonly gasPriceOracle: {
471
+ readonly address: "0x420000000000000000000000000000000000000F";
472
+ };
473
+ readonly l1Block: {
474
+ readonly address: "0x4200000000000000000000000000000000000015";
475
+ };
476
+ readonly l2CrossDomainMessenger: {
477
+ readonly address: "0x4200000000000000000000000000000000000007";
478
+ };
479
+ readonly l2Erc721Bridge: {
480
+ readonly address: "0x4200000000000000000000000000000000000014";
481
+ };
482
+ readonly l2StandardBridge: {
483
+ readonly address: "0x4200000000000000000000000000000000000010";
484
+ };
485
+ readonly l2ToL1MessagePasser: {
486
+ readonly address: "0x4200000000000000000000000000000000000016";
487
+ };
488
+ };
489
+ ensTlds?: readonly string[] | undefined;
490
+ id: 8453;
491
+ name: "Base";
492
+ nativeCurrency: {
493
+ readonly name: "Ether";
494
+ readonly symbol: "ETH";
495
+ readonly decimals: 18;
496
+ };
497
+ rpcUrls: {
498
+ readonly default: {
499
+ readonly http: readonly ["https://mainnet.base.org"];
500
+ };
501
+ };
502
+ sourceId: 1;
503
+ testnet?: boolean | undefined | undefined;
504
+ custom?: Record<string, unknown> | undefined;
505
+ fees?: viem.ChainFees<undefined> | undefined;
506
+ formatters: {
507
+ readonly block: {
508
+ exclude: [] | undefined;
509
+ format: (args: viem_chains.OpStackRpcBlock) => {
510
+ baseFeePerGas: bigint | null;
511
+ blobGasUsed: bigint;
512
+ difficulty: bigint;
513
+ excessBlobGas: bigint;
514
+ extraData: viem.Hex;
515
+ gasLimit: bigint;
516
+ gasUsed: bigint;
517
+ hash: `0x${string}` | null;
518
+ logsBloom: `0x${string}` | null;
519
+ miner: abitype.Address;
520
+ mixHash: viem.Hash;
521
+ nonce: `0x${string}` | null;
522
+ number: bigint | null;
523
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
524
+ parentHash: viem.Hash;
525
+ receiptsRoot: viem.Hex;
526
+ sealFields: viem.Hex[];
527
+ sha3Uncles: viem.Hash;
528
+ size: bigint;
529
+ stateRoot: viem.Hash;
530
+ timestamp: bigint;
531
+ totalDifficulty: bigint | null;
532
+ transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
533
+ transactionsRoot: viem.Hash;
534
+ uncles: viem.Hash[];
535
+ withdrawals?: viem.Withdrawal[] | undefined | undefined;
536
+ withdrawalsRoot?: `0x${string}` | undefined;
537
+ } & {};
538
+ type: "block";
539
+ };
540
+ readonly transaction: {
541
+ exclude: [] | undefined;
542
+ format: (args: viem_chains.OpStackRpcTransaction) => ({
543
+ blockHash: `0x${string}` | null;
544
+ blockNumber: bigint | null;
545
+ from: abitype.Address;
546
+ gas: bigint;
547
+ hash: viem.Hash;
548
+ input: viem.Hex;
549
+ nonce: number;
550
+ r: viem.Hex;
551
+ s: viem.Hex;
552
+ to: abitype.Address | null;
553
+ transactionIndex: number | null;
554
+ typeHex: viem.Hex | null;
555
+ v: bigint;
556
+ value: bigint;
557
+ yParity: number;
558
+ gasPrice?: undefined | undefined;
559
+ maxFeePerBlobGas?: undefined | undefined;
560
+ maxFeePerGas: bigint;
561
+ maxPriorityFeePerGas: bigint;
562
+ isSystemTx?: boolean;
563
+ mint?: bigint | undefined | undefined;
564
+ sourceHash: viem.Hex;
565
+ type: "deposit";
566
+ } | {
567
+ r: viem.Hex;
568
+ s: viem.Hex;
569
+ v: bigint;
570
+ to: abitype.Address | null;
571
+ from: abitype.Address;
572
+ gas: bigint;
573
+ nonce: number;
574
+ value: bigint;
575
+ blockHash: `0x${string}` | null;
576
+ blockNumber: bigint | null;
577
+ hash: viem.Hash;
578
+ input: viem.Hex;
579
+ transactionIndex: number | null;
580
+ typeHex: viem.Hex | null;
581
+ accessList?: undefined | undefined;
582
+ authorizationList?: undefined | undefined;
583
+ blobVersionedHashes?: undefined | undefined;
584
+ chainId?: number | undefined;
585
+ yParity?: undefined | undefined;
586
+ type: "legacy";
587
+ gasPrice: bigint;
588
+ maxFeePerBlobGas?: undefined | undefined;
589
+ maxFeePerGas?: undefined | undefined;
590
+ maxPriorityFeePerGas?: undefined | undefined;
591
+ isSystemTx?: undefined | undefined;
592
+ mint?: undefined | undefined;
593
+ sourceHash?: undefined | undefined;
594
+ } | {
595
+ blockHash: `0x${string}` | null;
596
+ blockNumber: bigint | null;
597
+ from: abitype.Address;
598
+ gas: bigint;
599
+ hash: viem.Hash;
600
+ input: viem.Hex;
601
+ nonce: number;
602
+ r: viem.Hex;
603
+ s: viem.Hex;
604
+ to: abitype.Address | null;
605
+ transactionIndex: number | null;
606
+ typeHex: viem.Hex | null;
607
+ v: bigint;
608
+ value: bigint;
609
+ yParity: number;
610
+ accessList: viem.AccessList;
611
+ authorizationList?: undefined | undefined;
612
+ blobVersionedHashes?: undefined | undefined;
613
+ chainId: number;
614
+ type: "eip2930";
615
+ gasPrice: bigint;
616
+ maxFeePerBlobGas?: undefined | undefined;
617
+ maxFeePerGas?: undefined | undefined;
618
+ maxPriorityFeePerGas?: undefined | undefined;
619
+ isSystemTx?: undefined | undefined;
620
+ mint?: undefined | undefined;
621
+ sourceHash?: undefined | undefined;
622
+ } | {
623
+ blockHash: `0x${string}` | null;
624
+ blockNumber: bigint | null;
625
+ from: abitype.Address;
626
+ gas: bigint;
627
+ hash: viem.Hash;
628
+ input: viem.Hex;
629
+ nonce: number;
630
+ r: viem.Hex;
631
+ s: viem.Hex;
632
+ to: abitype.Address | null;
633
+ transactionIndex: number | null;
634
+ typeHex: viem.Hex | null;
635
+ v: bigint;
636
+ value: bigint;
637
+ yParity: number;
638
+ accessList: viem.AccessList;
639
+ authorizationList?: undefined | undefined;
640
+ blobVersionedHashes?: undefined | undefined;
641
+ chainId: number;
642
+ type: "eip1559";
643
+ gasPrice?: undefined | undefined;
644
+ maxFeePerBlobGas?: undefined | undefined;
645
+ maxFeePerGas: bigint;
646
+ maxPriorityFeePerGas: bigint;
647
+ isSystemTx?: undefined | undefined;
648
+ mint?: undefined | undefined;
649
+ sourceHash?: undefined | undefined;
650
+ } | {
651
+ blockHash: `0x${string}` | null;
652
+ blockNumber: bigint | null;
653
+ from: abitype.Address;
654
+ gas: bigint;
655
+ hash: viem.Hash;
656
+ input: viem.Hex;
657
+ nonce: number;
658
+ r: viem.Hex;
659
+ s: viem.Hex;
660
+ to: abitype.Address | null;
661
+ transactionIndex: number | null;
662
+ typeHex: viem.Hex | null;
663
+ v: bigint;
664
+ value: bigint;
665
+ yParity: number;
666
+ accessList: viem.AccessList;
667
+ authorizationList?: undefined | undefined;
668
+ blobVersionedHashes: readonly viem.Hex[];
669
+ chainId: number;
670
+ type: "eip4844";
671
+ gasPrice?: undefined | undefined;
672
+ maxFeePerBlobGas: bigint;
673
+ maxFeePerGas: bigint;
674
+ maxPriorityFeePerGas: bigint;
675
+ isSystemTx?: undefined | undefined;
676
+ mint?: undefined | undefined;
677
+ sourceHash?: undefined | undefined;
678
+ } | {
679
+ blockHash: `0x${string}` | null;
680
+ blockNumber: bigint | null;
681
+ from: abitype.Address;
682
+ gas: bigint;
683
+ hash: viem.Hash;
684
+ input: viem.Hex;
685
+ nonce: number;
686
+ r: viem.Hex;
687
+ s: viem.Hex;
688
+ to: abitype.Address | null;
689
+ transactionIndex: number | null;
690
+ typeHex: viem.Hex | null;
691
+ v: bigint;
692
+ value: bigint;
693
+ yParity: number;
694
+ accessList: viem.AccessList;
695
+ authorizationList: viem.SignedAuthorizationList;
696
+ blobVersionedHashes?: undefined | undefined;
697
+ chainId: number;
698
+ type: "eip7702";
699
+ gasPrice?: undefined | undefined;
700
+ maxFeePerBlobGas?: undefined | undefined;
701
+ maxFeePerGas: bigint;
702
+ maxPriorityFeePerGas: bigint;
703
+ isSystemTx?: undefined | undefined;
704
+ mint?: undefined | undefined;
705
+ sourceHash?: undefined | undefined;
706
+ }) & {};
707
+ type: "transaction";
708
+ };
709
+ readonly transactionReceipt: {
710
+ exclude: [] | undefined;
711
+ format: (args: viem_chains.OpStackRpcTransactionReceipt) => {
712
+ blobGasPrice?: bigint | undefined;
713
+ blobGasUsed?: bigint | undefined;
714
+ blockHash: viem.Hash;
715
+ blockNumber: bigint;
716
+ contractAddress: abitype.Address | null | undefined;
717
+ cumulativeGasUsed: bigint;
718
+ effectiveGasPrice: bigint;
719
+ from: abitype.Address;
720
+ gasUsed: bigint;
721
+ logs: viem.Log<bigint, number, false>[];
722
+ logsBloom: viem.Hex;
723
+ root?: `0x${string}` | undefined;
724
+ status: "success" | "reverted";
725
+ to: abitype.Address | null;
726
+ transactionHash: viem.Hash;
727
+ transactionIndex: number;
728
+ type: viem.TransactionType;
729
+ l1GasPrice: bigint | null;
730
+ l1GasUsed: bigint | null;
731
+ l1Fee: bigint | null;
732
+ l1FeeScalar: number | null;
733
+ } & {};
734
+ type: "transactionReceipt";
735
+ };
736
+ };
737
+ serializers: {
738
+ readonly transaction: typeof viem_chains.serializeTransactionOpStack;
739
+ };
740
+ };
741
+ readonly avalanche: {
742
+ blockExplorers: {
743
+ readonly default: {
744
+ readonly name: "SnowTrace";
745
+ readonly url: "https://snowtrace.io";
746
+ readonly apiUrl: "https://api.snowtrace.io";
747
+ };
748
+ };
749
+ blockTime?: number | undefined | undefined;
750
+ contracts: {
751
+ readonly multicall3: {
752
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
753
+ readonly blockCreated: 11907934;
754
+ };
755
+ };
756
+ ensTlds?: readonly string[] | undefined;
757
+ id: 43114;
758
+ name: "Avalanche";
759
+ nativeCurrency: {
760
+ readonly decimals: 18;
761
+ readonly name: "Avalanche";
762
+ readonly symbol: "AVAX";
763
+ };
764
+ rpcUrls: {
765
+ readonly default: {
766
+ readonly http: readonly ["https://api.avax.network/ext/bc/C/rpc"];
767
+ };
768
+ };
769
+ sourceId?: number | undefined | undefined;
770
+ testnet?: boolean | undefined | undefined;
771
+ custom?: Record<string, unknown> | undefined;
772
+ fees?: viem.ChainFees<undefined> | undefined;
773
+ formatters?: undefined;
774
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
775
+ };
776
+ readonly gnosis: {
777
+ blockExplorers: {
778
+ readonly default: {
779
+ readonly name: "Gnosisscan";
780
+ readonly url: "https://gnosisscan.io";
781
+ readonly apiUrl: "https://api.gnosisscan.io/api";
782
+ };
783
+ };
784
+ blockTime?: number | undefined | undefined;
785
+ contracts: {
786
+ readonly multicall3: {
787
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
788
+ readonly blockCreated: 21022491;
789
+ };
790
+ };
791
+ ensTlds?: readonly string[] | undefined;
792
+ id: 100;
793
+ name: "Gnosis";
794
+ nativeCurrency: {
795
+ readonly decimals: 18;
796
+ readonly name: "xDAI";
797
+ readonly symbol: "XDAI";
798
+ };
799
+ rpcUrls: {
800
+ readonly default: {
801
+ readonly http: readonly ["https://rpc.gnosischain.com"];
802
+ readonly webSocket: readonly ["wss://rpc.gnosischain.com/wss"];
803
+ };
804
+ };
805
+ sourceId?: number | undefined | undefined;
806
+ testnet?: boolean | undefined | undefined;
807
+ custom?: Record<string, unknown> | undefined;
808
+ fees?: viem.ChainFees<undefined> | undefined;
809
+ formatters?: undefined;
810
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
811
+ };
812
+ readonly sonic: {
813
+ blockExplorers: {
814
+ readonly default: {
815
+ readonly name: "Sonic Explorer";
816
+ readonly url: "https://sonicscan.org";
817
+ };
818
+ };
819
+ blockTime?: number | undefined | undefined;
820
+ contracts: {
821
+ readonly multicall3: {
822
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
823
+ readonly blockCreated: 60;
824
+ };
825
+ };
826
+ ensTlds?: readonly string[] | undefined;
827
+ id: 146;
828
+ name: "Sonic";
829
+ nativeCurrency: {
830
+ readonly decimals: 18;
831
+ readonly name: "Sonic";
832
+ readonly symbol: "S";
833
+ };
834
+ rpcUrls: {
835
+ readonly default: {
836
+ readonly http: readonly ["https://rpc.soniclabs.com"];
837
+ };
838
+ };
839
+ sourceId?: number | undefined | undefined;
840
+ testnet: false;
841
+ custom?: Record<string, unknown> | undefined;
842
+ fees?: viem.ChainFees<undefined> | undefined;
843
+ formatters?: undefined;
844
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
845
+ };
846
+ };
847
+ declare const SupportedChains: {
848
+ readonly polygon: {
849
+ blockExplorers: {
850
+ readonly default: {
851
+ readonly name: "PolygonScan";
852
+ readonly url: "https://polygonscan.com";
853
+ readonly apiUrl: "https://api.polygonscan.com/api";
854
+ };
855
+ };
856
+ blockTime?: number | undefined | undefined;
857
+ contracts: {
858
+ readonly multicall3: {
859
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
860
+ readonly blockCreated: 25770160;
861
+ };
862
+ };
863
+ ensTlds?: readonly string[] | undefined;
864
+ id: 137;
865
+ name: "Polygon";
866
+ nativeCurrency: {
867
+ readonly name: "POL";
868
+ readonly symbol: "POL";
869
+ readonly decimals: 18;
870
+ };
871
+ rpcUrls: {
872
+ readonly default: {
873
+ readonly http: readonly ["https://polygon-rpc.com"];
874
+ };
875
+ };
876
+ sourceId?: number | undefined | undefined;
877
+ testnet?: boolean | undefined | undefined;
878
+ custom?: Record<string, unknown> | undefined;
879
+ fees?: viem.ChainFees<undefined> | undefined;
880
+ formatters?: undefined;
881
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
882
+ };
883
+ readonly arbitrum: {
884
+ blockExplorers: {
885
+ readonly default: {
886
+ readonly name: "Arbiscan";
887
+ readonly url: "https://arbiscan.io";
888
+ readonly apiUrl: "https://api.arbiscan.io/api";
889
+ };
890
+ };
891
+ blockTime?: number | undefined | undefined;
892
+ contracts: {
893
+ readonly multicall3: {
894
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
895
+ readonly blockCreated: 7654707;
896
+ };
897
+ };
898
+ ensTlds?: readonly string[] | undefined;
899
+ id: 42161;
900
+ name: "Arbitrum One";
901
+ nativeCurrency: {
902
+ readonly name: "Ether";
903
+ readonly symbol: "ETH";
904
+ readonly decimals: 18;
905
+ };
906
+ rpcUrls: {
907
+ readonly default: {
908
+ readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
909
+ };
910
+ };
911
+ sourceId?: number | undefined | undefined;
912
+ testnet?: boolean | undefined | undefined;
913
+ custom?: Record<string, unknown> | undefined;
914
+ fees?: viem.ChainFees<undefined> | undefined;
915
+ formatters?: undefined;
916
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
917
+ };
918
+ readonly optimism: {
919
+ blockExplorers: {
920
+ readonly default: {
921
+ readonly name: "Optimism Explorer";
922
+ readonly url: "https://optimistic.etherscan.io";
923
+ readonly apiUrl: "https://api-optimistic.etherscan.io/api";
924
+ };
925
+ };
926
+ blockTime: 2000;
927
+ contracts: {
928
+ readonly disputeGameFactory: {
929
+ readonly 1: {
930
+ readonly address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9";
931
+ };
932
+ };
933
+ readonly l2OutputOracle: {
934
+ readonly 1: {
935
+ readonly address: "0xdfe97868233d1aa22e815a266982f2cf17685a27";
936
+ };
937
+ };
938
+ readonly multicall3: {
939
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
940
+ readonly blockCreated: 4286263;
941
+ };
942
+ readonly portal: {
943
+ readonly 1: {
944
+ readonly address: "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed";
945
+ };
946
+ };
947
+ readonly l1StandardBridge: {
948
+ readonly 1: {
949
+ readonly address: "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1";
950
+ };
951
+ };
952
+ readonly gasPriceOracle: {
953
+ readonly address: "0x420000000000000000000000000000000000000F";
954
+ };
955
+ readonly l1Block: {
956
+ readonly address: "0x4200000000000000000000000000000000000015";
957
+ };
958
+ readonly l2CrossDomainMessenger: {
959
+ readonly address: "0x4200000000000000000000000000000000000007";
960
+ };
961
+ readonly l2Erc721Bridge: {
962
+ readonly address: "0x4200000000000000000000000000000000000014";
963
+ };
964
+ readonly l2StandardBridge: {
965
+ readonly address: "0x4200000000000000000000000000000000000010";
966
+ };
967
+ readonly l2ToL1MessagePasser: {
968
+ readonly address: "0x4200000000000000000000000000000000000016";
969
+ };
970
+ };
971
+ ensTlds?: readonly string[] | undefined;
972
+ id: 10;
973
+ name: "OP Mainnet";
974
+ nativeCurrency: {
975
+ readonly name: "Ether";
976
+ readonly symbol: "ETH";
977
+ readonly decimals: 18;
978
+ };
979
+ rpcUrls: {
980
+ readonly default: {
981
+ readonly http: readonly ["https://mainnet.optimism.io"];
982
+ };
983
+ };
984
+ sourceId: 1;
985
+ testnet?: boolean | undefined | undefined;
986
+ custom?: Record<string, unknown> | undefined;
987
+ fees?: viem.ChainFees<undefined> | undefined;
988
+ formatters: {
989
+ readonly block: {
990
+ exclude: [] | undefined;
991
+ format: (args: viem_chains.OpStackRpcBlock) => {
992
+ baseFeePerGas: bigint | null;
993
+ blobGasUsed: bigint;
994
+ difficulty: bigint;
995
+ excessBlobGas: bigint;
996
+ extraData: viem.Hex;
997
+ gasLimit: bigint;
998
+ gasUsed: bigint;
999
+ hash: `0x${string}` | null;
1000
+ logsBloom: `0x${string}` | null;
1001
+ miner: abitype.Address;
1002
+ mixHash: viem.Hash;
1003
+ nonce: `0x${string}` | null;
1004
+ number: bigint | null;
1005
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
1006
+ parentHash: viem.Hash;
1007
+ receiptsRoot: viem.Hex;
1008
+ sealFields: viem.Hex[];
1009
+ sha3Uncles: viem.Hash;
1010
+ size: bigint;
1011
+ stateRoot: viem.Hash;
1012
+ timestamp: bigint;
1013
+ totalDifficulty: bigint | null;
1014
+ transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
1015
+ transactionsRoot: viem.Hash;
1016
+ uncles: viem.Hash[];
1017
+ withdrawals?: viem.Withdrawal[] | undefined | undefined;
1018
+ withdrawalsRoot?: `0x${string}` | undefined;
1019
+ } & {};
1020
+ type: "block";
1021
+ };
1022
+ readonly transaction: {
1023
+ exclude: [] | undefined;
1024
+ format: (args: viem_chains.OpStackRpcTransaction) => ({
1025
+ blockHash: `0x${string}` | null;
1026
+ blockNumber: bigint | null;
1027
+ from: abitype.Address;
1028
+ gas: bigint;
1029
+ hash: viem.Hash;
1030
+ input: viem.Hex;
1031
+ nonce: number;
1032
+ r: viem.Hex;
1033
+ s: viem.Hex;
1034
+ to: abitype.Address | null;
1035
+ transactionIndex: number | null;
1036
+ typeHex: viem.Hex | null;
1037
+ v: bigint;
1038
+ value: bigint;
1039
+ yParity: number;
1040
+ gasPrice?: undefined | undefined;
1041
+ maxFeePerBlobGas?: undefined | undefined;
1042
+ maxFeePerGas: bigint;
1043
+ maxPriorityFeePerGas: bigint;
1044
+ isSystemTx?: boolean;
1045
+ mint?: bigint | undefined | undefined;
1046
+ sourceHash: viem.Hex;
1047
+ type: "deposit";
1048
+ } | {
1049
+ r: viem.Hex;
1050
+ s: viem.Hex;
1051
+ v: bigint;
1052
+ to: abitype.Address | null;
1053
+ from: abitype.Address;
1054
+ gas: bigint;
1055
+ nonce: number;
1056
+ value: bigint;
1057
+ blockHash: `0x${string}` | null;
1058
+ blockNumber: bigint | null;
1059
+ hash: viem.Hash;
1060
+ input: viem.Hex;
1061
+ transactionIndex: number | null;
1062
+ typeHex: viem.Hex | null;
1063
+ accessList?: undefined | undefined;
1064
+ authorizationList?: undefined | undefined;
1065
+ blobVersionedHashes?: undefined | undefined;
1066
+ chainId?: number | undefined;
1067
+ yParity?: undefined | undefined;
1068
+ type: "legacy";
1069
+ gasPrice: bigint;
1070
+ maxFeePerBlobGas?: undefined | undefined;
1071
+ maxFeePerGas?: undefined | undefined;
1072
+ maxPriorityFeePerGas?: undefined | undefined;
1073
+ isSystemTx?: undefined | undefined;
1074
+ mint?: undefined | undefined;
1075
+ sourceHash?: undefined | undefined;
1076
+ } | {
1077
+ blockHash: `0x${string}` | null;
1078
+ blockNumber: bigint | null;
1079
+ from: abitype.Address;
1080
+ gas: bigint;
1081
+ hash: viem.Hash;
1082
+ input: viem.Hex;
1083
+ nonce: number;
1084
+ r: viem.Hex;
1085
+ s: viem.Hex;
1086
+ to: abitype.Address | null;
1087
+ transactionIndex: number | null;
1088
+ typeHex: viem.Hex | null;
1089
+ v: bigint;
1090
+ value: bigint;
1091
+ yParity: number;
1092
+ accessList: viem.AccessList;
1093
+ authorizationList?: undefined | undefined;
1094
+ blobVersionedHashes?: undefined | undefined;
1095
+ chainId: number;
1096
+ type: "eip2930";
1097
+ gasPrice: bigint;
1098
+ maxFeePerBlobGas?: undefined | undefined;
1099
+ maxFeePerGas?: undefined | undefined;
1100
+ maxPriorityFeePerGas?: undefined | undefined;
1101
+ isSystemTx?: undefined | undefined;
1102
+ mint?: undefined | undefined;
1103
+ sourceHash?: undefined | undefined;
1104
+ } | {
1105
+ blockHash: `0x${string}` | null;
1106
+ blockNumber: bigint | null;
1107
+ from: abitype.Address;
1108
+ gas: bigint;
1109
+ hash: viem.Hash;
1110
+ input: viem.Hex;
1111
+ nonce: number;
1112
+ r: viem.Hex;
1113
+ s: viem.Hex;
1114
+ to: abitype.Address | null;
1115
+ transactionIndex: number | null;
1116
+ typeHex: viem.Hex | null;
1117
+ v: bigint;
1118
+ value: bigint;
1119
+ yParity: number;
1120
+ accessList: viem.AccessList;
1121
+ authorizationList?: undefined | undefined;
1122
+ blobVersionedHashes?: undefined | undefined;
1123
+ chainId: number;
1124
+ type: "eip1559";
1125
+ gasPrice?: undefined | undefined;
1126
+ maxFeePerBlobGas?: undefined | undefined;
1127
+ maxFeePerGas: bigint;
1128
+ maxPriorityFeePerGas: bigint;
1129
+ isSystemTx?: undefined | undefined;
1130
+ mint?: undefined | undefined;
1131
+ sourceHash?: undefined | undefined;
1132
+ } | {
1133
+ blockHash: `0x${string}` | null;
1134
+ blockNumber: bigint | null;
1135
+ from: abitype.Address;
1136
+ gas: bigint;
1137
+ hash: viem.Hash;
1138
+ input: viem.Hex;
1139
+ nonce: number;
1140
+ r: viem.Hex;
1141
+ s: viem.Hex;
1142
+ to: abitype.Address | null;
1143
+ transactionIndex: number | null;
1144
+ typeHex: viem.Hex | null;
1145
+ v: bigint;
1146
+ value: bigint;
1147
+ yParity: number;
1148
+ accessList: viem.AccessList;
1149
+ authorizationList?: undefined | undefined;
1150
+ blobVersionedHashes: readonly viem.Hex[];
1151
+ chainId: number;
1152
+ type: "eip4844";
1153
+ gasPrice?: undefined | undefined;
1154
+ maxFeePerBlobGas: bigint;
1155
+ maxFeePerGas: bigint;
1156
+ maxPriorityFeePerGas: bigint;
1157
+ isSystemTx?: undefined | undefined;
1158
+ mint?: undefined | undefined;
1159
+ sourceHash?: undefined | undefined;
1160
+ } | {
1161
+ blockHash: `0x${string}` | null;
1162
+ blockNumber: bigint | null;
1163
+ from: abitype.Address;
1164
+ gas: bigint;
1165
+ hash: viem.Hash;
1166
+ input: viem.Hex;
1167
+ nonce: number;
1168
+ r: viem.Hex;
1169
+ s: viem.Hex;
1170
+ to: abitype.Address | null;
1171
+ transactionIndex: number | null;
1172
+ typeHex: viem.Hex | null;
1173
+ v: bigint;
1174
+ value: bigint;
1175
+ yParity: number;
1176
+ accessList: viem.AccessList;
1177
+ authorizationList: viem.SignedAuthorizationList;
1178
+ blobVersionedHashes?: undefined | undefined;
1179
+ chainId: number;
1180
+ type: "eip7702";
1181
+ gasPrice?: undefined | undefined;
1182
+ maxFeePerBlobGas?: undefined | undefined;
1183
+ maxFeePerGas: bigint;
1184
+ maxPriorityFeePerGas: bigint;
1185
+ isSystemTx?: undefined | undefined;
1186
+ mint?: undefined | undefined;
1187
+ sourceHash?: undefined | undefined;
1188
+ }) & {};
1189
+ type: "transaction";
1190
+ };
1191
+ readonly transactionReceipt: {
1192
+ exclude: [] | undefined;
1193
+ format: (args: viem_chains.OpStackRpcTransactionReceipt) => {
1194
+ blobGasPrice?: bigint | undefined;
1195
+ blobGasUsed?: bigint | undefined;
1196
+ blockHash: viem.Hash;
1197
+ blockNumber: bigint;
1198
+ contractAddress: abitype.Address | null | undefined;
1199
+ cumulativeGasUsed: bigint;
1200
+ effectiveGasPrice: bigint;
1201
+ from: abitype.Address;
1202
+ gasUsed: bigint;
1203
+ logs: viem.Log<bigint, number, false>[];
1204
+ logsBloom: viem.Hex;
1205
+ root?: `0x${string}` | undefined;
1206
+ status: "success" | "reverted";
1207
+ to: abitype.Address | null;
1208
+ transactionHash: viem.Hash;
1209
+ transactionIndex: number;
1210
+ type: viem.TransactionType;
1211
+ l1GasPrice: bigint | null;
1212
+ l1GasUsed: bigint | null;
1213
+ l1Fee: bigint | null;
1214
+ l1FeeScalar: number | null;
1215
+ } & {};
1216
+ type: "transactionReceipt";
1217
+ };
1218
+ };
1219
+ serializers: {
1220
+ readonly transaction: typeof viem_chains.serializeTransactionOpStack;
1221
+ };
1222
+ };
1223
+ readonly base: {
1224
+ blockExplorers: {
1225
+ readonly default: {
1226
+ readonly name: "Basescan";
1227
+ readonly url: "https://basescan.org";
1228
+ readonly apiUrl: "https://api.basescan.org/api";
1229
+ };
1230
+ };
1231
+ blockTime: 2000;
1232
+ contracts: {
1233
+ readonly disputeGameFactory: {
1234
+ readonly 1: {
1235
+ readonly address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e";
1236
+ };
1237
+ };
1238
+ readonly l2OutputOracle: {
1239
+ readonly 1: {
1240
+ readonly address: "0x56315b90c40730925ec5485cf004d835058518A0";
1241
+ };
1242
+ };
1243
+ readonly multicall3: {
1244
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
1245
+ readonly blockCreated: 5022;
1246
+ };
1247
+ readonly portal: {
1248
+ readonly 1: {
1249
+ readonly address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e";
1250
+ readonly blockCreated: 17482143;
1251
+ };
1252
+ };
1253
+ readonly l1StandardBridge: {
1254
+ readonly 1: {
1255
+ readonly address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35";
1256
+ readonly blockCreated: 17482143;
1257
+ };
1258
+ };
1259
+ readonly gasPriceOracle: {
1260
+ readonly address: "0x420000000000000000000000000000000000000F";
1261
+ };
1262
+ readonly l1Block: {
1263
+ readonly address: "0x4200000000000000000000000000000000000015";
1264
+ };
1265
+ readonly l2CrossDomainMessenger: {
1266
+ readonly address: "0x4200000000000000000000000000000000000007";
1267
+ };
1268
+ readonly l2Erc721Bridge: {
1269
+ readonly address: "0x4200000000000000000000000000000000000014";
1270
+ };
1271
+ readonly l2StandardBridge: {
1272
+ readonly address: "0x4200000000000000000000000000000000000010";
1273
+ };
1274
+ readonly l2ToL1MessagePasser: {
1275
+ readonly address: "0x4200000000000000000000000000000000000016";
1276
+ };
1277
+ };
1278
+ ensTlds?: readonly string[] | undefined;
1279
+ id: 8453;
1280
+ name: "Base";
1281
+ nativeCurrency: {
1282
+ readonly name: "Ether";
1283
+ readonly symbol: "ETH";
1284
+ readonly decimals: 18;
1285
+ };
1286
+ rpcUrls: {
1287
+ readonly default: {
1288
+ readonly http: readonly ["https://mainnet.base.org"];
1289
+ };
1290
+ };
1291
+ sourceId: 1;
1292
+ testnet?: boolean | undefined | undefined;
1293
+ custom?: Record<string, unknown> | undefined;
1294
+ fees?: viem.ChainFees<undefined> | undefined;
1295
+ formatters: {
1296
+ readonly block: {
1297
+ exclude: [] | undefined;
1298
+ format: (args: viem_chains.OpStackRpcBlock) => {
1299
+ baseFeePerGas: bigint | null;
1300
+ blobGasUsed: bigint;
1301
+ difficulty: bigint;
1302
+ excessBlobGas: bigint;
1303
+ extraData: viem.Hex;
1304
+ gasLimit: bigint;
1305
+ gasUsed: bigint;
1306
+ hash: `0x${string}` | null;
1307
+ logsBloom: `0x${string}` | null;
1308
+ miner: abitype.Address;
1309
+ mixHash: viem.Hash;
1310
+ nonce: `0x${string}` | null;
1311
+ number: bigint | null;
1312
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
1313
+ parentHash: viem.Hash;
1314
+ receiptsRoot: viem.Hex;
1315
+ sealFields: viem.Hex[];
1316
+ sha3Uncles: viem.Hash;
1317
+ size: bigint;
1318
+ stateRoot: viem.Hash;
1319
+ timestamp: bigint;
1320
+ totalDifficulty: bigint | null;
1321
+ transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
1322
+ transactionsRoot: viem.Hash;
1323
+ uncles: viem.Hash[];
1324
+ withdrawals?: viem.Withdrawal[] | undefined | undefined;
1325
+ withdrawalsRoot?: `0x${string}` | undefined;
1326
+ } & {};
1327
+ type: "block";
1328
+ };
1329
+ readonly transaction: {
1330
+ exclude: [] | undefined;
1331
+ format: (args: viem_chains.OpStackRpcTransaction) => ({
1332
+ blockHash: `0x${string}` | null;
1333
+ blockNumber: bigint | null;
1334
+ from: abitype.Address;
1335
+ gas: bigint;
1336
+ hash: viem.Hash;
1337
+ input: viem.Hex;
1338
+ nonce: number;
1339
+ r: viem.Hex;
1340
+ s: viem.Hex;
1341
+ to: abitype.Address | null;
1342
+ transactionIndex: number | null;
1343
+ typeHex: viem.Hex | null;
1344
+ v: bigint;
1345
+ value: bigint;
1346
+ yParity: number;
1347
+ gasPrice?: undefined | undefined;
1348
+ maxFeePerBlobGas?: undefined | undefined;
1349
+ maxFeePerGas: bigint;
1350
+ maxPriorityFeePerGas: bigint;
1351
+ isSystemTx?: boolean;
1352
+ mint?: bigint | undefined | undefined;
1353
+ sourceHash: viem.Hex;
1354
+ type: "deposit";
1355
+ } | {
1356
+ r: viem.Hex;
1357
+ s: viem.Hex;
1358
+ v: bigint;
1359
+ to: abitype.Address | null;
1360
+ from: abitype.Address;
1361
+ gas: bigint;
1362
+ nonce: number;
1363
+ value: bigint;
1364
+ blockHash: `0x${string}` | null;
1365
+ blockNumber: bigint | null;
1366
+ hash: viem.Hash;
1367
+ input: viem.Hex;
1368
+ transactionIndex: number | null;
1369
+ typeHex: viem.Hex | null;
1370
+ accessList?: undefined | undefined;
1371
+ authorizationList?: undefined | undefined;
1372
+ blobVersionedHashes?: undefined | undefined;
1373
+ chainId?: number | undefined;
1374
+ yParity?: undefined | undefined;
1375
+ type: "legacy";
1376
+ gasPrice: bigint;
1377
+ maxFeePerBlobGas?: undefined | undefined;
1378
+ maxFeePerGas?: undefined | undefined;
1379
+ maxPriorityFeePerGas?: undefined | undefined;
1380
+ isSystemTx?: undefined | undefined;
1381
+ mint?: undefined | undefined;
1382
+ sourceHash?: undefined | undefined;
1383
+ } | {
1384
+ blockHash: `0x${string}` | null;
1385
+ blockNumber: bigint | null;
1386
+ from: abitype.Address;
1387
+ gas: bigint;
1388
+ hash: viem.Hash;
1389
+ input: viem.Hex;
1390
+ nonce: number;
1391
+ r: viem.Hex;
1392
+ s: viem.Hex;
1393
+ to: abitype.Address | null;
1394
+ transactionIndex: number | null;
1395
+ typeHex: viem.Hex | null;
1396
+ v: bigint;
1397
+ value: bigint;
1398
+ yParity: number;
1399
+ accessList: viem.AccessList;
1400
+ authorizationList?: undefined | undefined;
1401
+ blobVersionedHashes?: undefined | undefined;
1402
+ chainId: number;
1403
+ type: "eip2930";
1404
+ gasPrice: bigint;
1405
+ maxFeePerBlobGas?: undefined | undefined;
1406
+ maxFeePerGas?: undefined | undefined;
1407
+ maxPriorityFeePerGas?: undefined | undefined;
1408
+ isSystemTx?: undefined | undefined;
1409
+ mint?: undefined | undefined;
1410
+ sourceHash?: undefined | undefined;
1411
+ } | {
1412
+ blockHash: `0x${string}` | null;
1413
+ blockNumber: bigint | null;
1414
+ from: abitype.Address;
1415
+ gas: bigint;
1416
+ hash: viem.Hash;
1417
+ input: viem.Hex;
1418
+ nonce: number;
1419
+ r: viem.Hex;
1420
+ s: viem.Hex;
1421
+ to: abitype.Address | null;
1422
+ transactionIndex: number | null;
1423
+ typeHex: viem.Hex | null;
1424
+ v: bigint;
1425
+ value: bigint;
1426
+ yParity: number;
1427
+ accessList: viem.AccessList;
1428
+ authorizationList?: undefined | undefined;
1429
+ blobVersionedHashes?: undefined | undefined;
1430
+ chainId: number;
1431
+ type: "eip1559";
1432
+ gasPrice?: undefined | undefined;
1433
+ maxFeePerBlobGas?: undefined | undefined;
1434
+ maxFeePerGas: bigint;
1435
+ maxPriorityFeePerGas: bigint;
1436
+ isSystemTx?: undefined | undefined;
1437
+ mint?: undefined | undefined;
1438
+ sourceHash?: undefined | undefined;
1439
+ } | {
1440
+ blockHash: `0x${string}` | null;
1441
+ blockNumber: bigint | null;
1442
+ from: abitype.Address;
1443
+ gas: bigint;
1444
+ hash: viem.Hash;
1445
+ input: viem.Hex;
1446
+ nonce: number;
1447
+ r: viem.Hex;
1448
+ s: viem.Hex;
1449
+ to: abitype.Address | null;
1450
+ transactionIndex: number | null;
1451
+ typeHex: viem.Hex | null;
1452
+ v: bigint;
1453
+ value: bigint;
1454
+ yParity: number;
1455
+ accessList: viem.AccessList;
1456
+ authorizationList?: undefined | undefined;
1457
+ blobVersionedHashes: readonly viem.Hex[];
1458
+ chainId: number;
1459
+ type: "eip4844";
1460
+ gasPrice?: undefined | undefined;
1461
+ maxFeePerBlobGas: bigint;
1462
+ maxFeePerGas: bigint;
1463
+ maxPriorityFeePerGas: bigint;
1464
+ isSystemTx?: undefined | undefined;
1465
+ mint?: undefined | undefined;
1466
+ sourceHash?: undefined | undefined;
1467
+ } | {
1468
+ blockHash: `0x${string}` | null;
1469
+ blockNumber: bigint | null;
1470
+ from: abitype.Address;
1471
+ gas: bigint;
1472
+ hash: viem.Hash;
1473
+ input: viem.Hex;
1474
+ nonce: number;
1475
+ r: viem.Hex;
1476
+ s: viem.Hex;
1477
+ to: abitype.Address | null;
1478
+ transactionIndex: number | null;
1479
+ typeHex: viem.Hex | null;
1480
+ v: bigint;
1481
+ value: bigint;
1482
+ yParity: number;
1483
+ accessList: viem.AccessList;
1484
+ authorizationList: viem.SignedAuthorizationList;
1485
+ blobVersionedHashes?: undefined | undefined;
1486
+ chainId: number;
1487
+ type: "eip7702";
1488
+ gasPrice?: undefined | undefined;
1489
+ maxFeePerBlobGas?: undefined | undefined;
1490
+ maxFeePerGas: bigint;
1491
+ maxPriorityFeePerGas: bigint;
1492
+ isSystemTx?: undefined | undefined;
1493
+ mint?: undefined | undefined;
1494
+ sourceHash?: undefined | undefined;
1495
+ }) & {};
1496
+ type: "transaction";
1497
+ };
1498
+ readonly transactionReceipt: {
1499
+ exclude: [] | undefined;
1500
+ format: (args: viem_chains.OpStackRpcTransactionReceipt) => {
1501
+ blobGasPrice?: bigint | undefined;
1502
+ blobGasUsed?: bigint | undefined;
1503
+ blockHash: viem.Hash;
1504
+ blockNumber: bigint;
1505
+ contractAddress: abitype.Address | null | undefined;
1506
+ cumulativeGasUsed: bigint;
1507
+ effectiveGasPrice: bigint;
1508
+ from: abitype.Address;
1509
+ gasUsed: bigint;
1510
+ logs: viem.Log<bigint, number, false>[];
1511
+ logsBloom: viem.Hex;
1512
+ root?: `0x${string}` | undefined;
1513
+ status: "success" | "reverted";
1514
+ to: abitype.Address | null;
1515
+ transactionHash: viem.Hash;
1516
+ transactionIndex: number;
1517
+ type: viem.TransactionType;
1518
+ l1GasPrice: bigint | null;
1519
+ l1GasUsed: bigint | null;
1520
+ l1Fee: bigint | null;
1521
+ l1FeeScalar: number | null;
1522
+ } & {};
1523
+ type: "transactionReceipt";
1524
+ };
1525
+ };
1526
+ serializers: {
1527
+ readonly transaction: typeof viem_chains.serializeTransactionOpStack;
1528
+ };
1529
+ };
1530
+ readonly avalanche: {
1531
+ blockExplorers: {
1532
+ readonly default: {
1533
+ readonly name: "SnowTrace";
1534
+ readonly url: "https://snowtrace.io";
1535
+ readonly apiUrl: "https://api.snowtrace.io";
1536
+ };
1537
+ };
1538
+ blockTime?: number | undefined | undefined;
1539
+ contracts: {
1540
+ readonly multicall3: {
1541
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
1542
+ readonly blockCreated: 11907934;
1543
+ };
1544
+ };
1545
+ ensTlds?: readonly string[] | undefined;
1546
+ id: 43114;
1547
+ name: "Avalanche";
1548
+ nativeCurrency: {
1549
+ readonly decimals: 18;
1550
+ readonly name: "Avalanche";
1551
+ readonly symbol: "AVAX";
1552
+ };
1553
+ rpcUrls: {
1554
+ readonly default: {
1555
+ readonly http: readonly ["https://api.avax.network/ext/bc/C/rpc"];
1556
+ };
1557
+ };
1558
+ sourceId?: number | undefined | undefined;
1559
+ testnet?: boolean | undefined | undefined;
1560
+ custom?: Record<string, unknown> | undefined;
1561
+ fees?: viem.ChainFees<undefined> | undefined;
1562
+ formatters?: undefined;
1563
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
1564
+ };
1565
+ readonly gnosis: {
1566
+ blockExplorers: {
1567
+ readonly default: {
1568
+ readonly name: "Gnosisscan";
1569
+ readonly url: "https://gnosisscan.io";
1570
+ readonly apiUrl: "https://api.gnosisscan.io/api";
1571
+ };
1572
+ };
1573
+ blockTime?: number | undefined | undefined;
1574
+ contracts: {
1575
+ readonly multicall3: {
1576
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
1577
+ readonly blockCreated: 21022491;
1578
+ };
1579
+ };
1580
+ ensTlds?: readonly string[] | undefined;
1581
+ id: 100;
1582
+ name: "Gnosis";
1583
+ nativeCurrency: {
1584
+ readonly decimals: 18;
1585
+ readonly name: "xDAI";
1586
+ readonly symbol: "XDAI";
1587
+ };
1588
+ rpcUrls: {
1589
+ readonly default: {
1590
+ readonly http: readonly ["https://rpc.gnosischain.com"];
1591
+ readonly webSocket: readonly ["wss://rpc.gnosischain.com/wss"];
1592
+ };
1593
+ };
1594
+ sourceId?: number | undefined | undefined;
1595
+ testnet?: boolean | undefined | undefined;
1596
+ custom?: Record<string, unknown> | undefined;
1597
+ fees?: viem.ChainFees<undefined> | undefined;
1598
+ formatters?: undefined;
1599
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
1600
+ };
1601
+ readonly sonic: {
1602
+ blockExplorers: {
1603
+ readonly default: {
1604
+ readonly name: "Sonic Explorer";
1605
+ readonly url: "https://sonicscan.org";
1606
+ };
1607
+ };
1608
+ blockTime?: number | undefined | undefined;
1609
+ contracts: {
1610
+ readonly multicall3: {
1611
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
1612
+ readonly blockCreated: 60;
1613
+ };
1614
+ };
1615
+ ensTlds?: readonly string[] | undefined;
1616
+ id: 146;
1617
+ name: "Sonic";
1618
+ nativeCurrency: {
1619
+ readonly decimals: 18;
1620
+ readonly name: "Sonic";
1621
+ readonly symbol: "S";
1622
+ };
1623
+ rpcUrls: {
1624
+ readonly default: {
1625
+ readonly http: readonly ["https://rpc.soniclabs.com"];
1626
+ };
1627
+ };
1628
+ sourceId?: number | undefined | undefined;
1629
+ testnet: false;
1630
+ custom?: Record<string, unknown> | undefined;
1631
+ fees?: viem.ChainFees<undefined> | undefined;
1632
+ formatters?: undefined;
1633
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
1634
+ };
1635
+ readonly mainnet: {
1636
+ blockExplorers: {
1637
+ readonly default: {
1638
+ readonly name: "Etherscan";
1639
+ readonly url: "https://etherscan.io";
1640
+ readonly apiUrl: "https://api.etherscan.io/api";
1641
+ };
1642
+ };
1643
+ blockTime?: number | undefined | undefined;
1644
+ contracts: {
1645
+ readonly ensRegistry: {
1646
+ readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
1647
+ };
1648
+ readonly ensUniversalResolver: {
1649
+ readonly address: "0xce01f8eee7E479C928F8919abD53E553a36CeF67";
1650
+ readonly blockCreated: 19258213;
1651
+ };
1652
+ readonly multicall3: {
1653
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
1654
+ readonly blockCreated: 14353601;
1655
+ };
1656
+ };
1657
+ ensTlds?: readonly string[] | undefined;
1658
+ id: 1;
1659
+ name: "Ethereum";
1660
+ nativeCurrency: {
1661
+ readonly name: "Ether";
1662
+ readonly symbol: "ETH";
1663
+ readonly decimals: 18;
1664
+ };
1665
+ rpcUrls: {
1666
+ readonly default: {
1667
+ readonly http: readonly ["https://eth.merkle.io"];
1668
+ };
1669
+ };
1670
+ sourceId?: number | undefined | undefined;
1671
+ testnet?: boolean | undefined | undefined;
1672
+ custom?: Record<string, unknown> | undefined;
1673
+ fees?: viem.ChainFees<undefined> | undefined;
1674
+ formatters?: undefined;
1675
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
1676
+ };
1677
+ };
1678
+ type SupportedChain = (typeof SupportedChains)[keyof typeof SupportedChains];
1679
+ declare const SupportedChainsMap: {
1680
+ [K in ChainId]: SupportedChain | Chain;
1681
+ };
1682
+ declare const SupportedChainIds: (1 | 137 | 42161 | 10 | 8453 | 43114 | 100 | 146)[];
11
1683
  type ChainIdMain = typeof mainnet.id;
12
1684
  type ChainIdSide = typeof polygon.id | typeof arbitrum.id | typeof optimism.id | typeof base.id | typeof avalanche.id | typeof gnosis.id | typeof sonic.id;
13
1685
  type ChainId = ChainIdMain | ChainIdSide;
@@ -16151,4 +17823,4 @@ declare const VaultAdapterV1_ABI: readonly [{
16151
17823
  readonly type: "function";
16152
17824
  }];
16153
17825
 
16154
- export { ADDRESS, AggregatorV3Interface_ABI, type ChainAddressArbitrum, type ChainAddressAvalanche, type ChainAddressBase, type ChainAddressGnosis, type ChainAddressMainnet, type ChainAddressMap, type ChainAddressOptimism, type ChainAddressPolygon, type ChainAddressSonic, type ChainId, type ChainIdMain, type ChainIdSide, CurveAdapterV1_1_ABI, CurveAdapterV1_2_ABI, CurveAdapterV1_ABI, ERC20Permit_ABI, ERC20_ABI, ErrorsLib_ABI, EventsLib_ABI, ICurveStableSwapNG_ABI, IERC20Metadata_ABI, IERC20Permit_ABI, IERC20_ABI, IERC4626ABI, IMetaMorphoV1_1Base_ABI, IMetaMorphoV1_1StaticTyping_ABI, IMetaMorphoV1_1_ABI, IMorphoBase_ABI, IMorphoChainlinkOracleV2Factory_ABI, IMorphoChainlinkOracleV2_ABI, IMorphoFlashLoanCallback_ABI, IMorphoLiquidateCallback_ABI, IMorphoRepayCallback_ABI, IMorphoStaticTyping_ABI, IMorphoSupplyCallback_ABI, IMorphoSupplyCollateralCallback_ABI, IMorpho_ABI, IMulticall_ABI, IOracle_ABI, IOwnable_ABI, IStablecoinMetadata_ABI, IStablecoinModifier_ABI, IStablecoin_ABI, ITermMaxVault_ABI, MorphoAdapterV1_1_ABI, MorphoAdapterV1_2_ABI, MorphoAdapterV1_ABI, MorphoChainlinkOracleV2_ABI, RewardDistributionV1_ABI, Stablecoin_ABI, VaultAdapterRecoverV1_ABI, VaultAdapterV1_ABI, getAddressFromChildIndex, getChildFromSeed, getPrivateKeyFromChildIndex, getPublicKeyFromChildIndex, getWalletInto };
17826
+ export { ADDRESS, AggregatorV3Interface_ABI, type ChainAddressArbitrum, type ChainAddressAvalanche, type ChainAddressBase, type ChainAddressGnosis, type ChainAddressMainnet, type ChainAddressMap, type ChainAddressOptimism, type ChainAddressPolygon, type ChainAddressSonic, type ChainId, type ChainIdMain, type ChainIdSide, ChainMain, ChainSide, CurveAdapterV1_1_ABI, CurveAdapterV1_2_ABI, CurveAdapterV1_ABI, ERC20Permit_ABI, ERC20_ABI, ErrorsLib_ABI, EventsLib_ABI, ICurveStableSwapNG_ABI, IERC20Metadata_ABI, IERC20Permit_ABI, IERC20_ABI, IERC4626ABI, IMetaMorphoV1_1Base_ABI, IMetaMorphoV1_1StaticTyping_ABI, IMetaMorphoV1_1_ABI, IMorphoBase_ABI, IMorphoChainlinkOracleV2Factory_ABI, IMorphoChainlinkOracleV2_ABI, IMorphoFlashLoanCallback_ABI, IMorphoLiquidateCallback_ABI, IMorphoRepayCallback_ABI, IMorphoStaticTyping_ABI, IMorphoSupplyCallback_ABI, IMorphoSupplyCollateralCallback_ABI, IMorpho_ABI, IMulticall_ABI, IOracle_ABI, IOwnable_ABI, IStablecoinMetadata_ABI, IStablecoinModifier_ABI, IStablecoin_ABI, ITermMaxVault_ABI, MorphoAdapterV1_1_ABI, MorphoAdapterV1_2_ABI, MorphoAdapterV1_ABI, MorphoChainlinkOracleV2_ABI, RewardDistributionV1_ABI, Stablecoin_ABI, type SupportedChain, SupportedChainIds, SupportedChains, SupportedChainsMap, VaultAdapterRecoverV1_ABI, VaultAdapterV1_ABI, getAddressFromChildIndex, getChildFromSeed, getPrivateKeyFromChildIndex, getPublicKeyFromChildIndex, getWalletInto };