@morpho-org/blue-sdk 4.8.1 → 4.9.0
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/lib/addresses.d.ts +639 -5
- package/lib/addresses.js +322 -9
- package/lib/chain.d.ts +233 -1
- package/package.json +1 -1
package/lib/addresses.d.ts
CHANGED
|
@@ -13,10 +13,25 @@ export interface ChainAddresses {
|
|
|
13
13
|
* @deprecated All bundles should use Bundler3 instead.
|
|
14
14
|
*/
|
|
15
15
|
bundler?: Address;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
18
|
+
*/
|
|
16
19
|
aaveV3OptimizerBundler?: Address;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
22
|
+
*/
|
|
17
23
|
aaveV2Bundler?: Address;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
26
|
+
*/
|
|
18
27
|
aaveV3Bundler?: Address;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
30
|
+
*/
|
|
19
31
|
compoundV3Bundler?: Address;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
34
|
+
*/
|
|
20
35
|
compoundV2Bundler?: Address;
|
|
21
36
|
bundler3: {
|
|
22
37
|
bundler3: Address;
|
|
@@ -70,10 +85,25 @@ declare const _addressesRegistry: {
|
|
|
70
85
|
readonly aaveV3EtherFiMigrationAdapter: "0x4011dc6581fA05F9B0c7A12AdCd676e2b1a59ca3";
|
|
71
86
|
readonly aaveV3OptimizerMigrationAdapter: "0x9e2ea2d5785598a163D569D795f286F5C55ad972";
|
|
72
87
|
};
|
|
88
|
+
/**
|
|
89
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
90
|
+
*/
|
|
73
91
|
readonly aaveV3OptimizerBundler: "0x16F38d2E764E7BeBF625a8E995b34968226D2F9c";
|
|
92
|
+
/**
|
|
93
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
94
|
+
*/
|
|
74
95
|
readonly aaveV2Bundler: "0xb3dCc75DB379925edFd3007511A8CE0cB4aa8e76";
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
98
|
+
*/
|
|
75
99
|
readonly aaveV3Bundler: "0x98ccB155E86bb478d514a827d16f58c6912f9BDC";
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
102
|
+
*/
|
|
76
103
|
readonly compoundV3Bundler: "0x3a0e2E9FB9c95fBc843daF166276C90B6C479558";
|
|
104
|
+
/**
|
|
105
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
106
|
+
*/
|
|
77
107
|
readonly compoundV2Bundler: "0x26bF52a84360Ad3d01d7CDc28FC2dDC04d8c8647";
|
|
78
108
|
readonly adaptiveCurveIrm: "0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC";
|
|
79
109
|
readonly publicAllocator: "0xfd32fA2ca22c76dD6E550706Ad913FC6CE91c75D";
|
|
@@ -123,8 +153,17 @@ declare const _addressesRegistry: {
|
|
|
123
153
|
readonly compoundV3MigrationAdapter: "0x85D4812Ef92c040d4270eD8547b6835e41FbbB70";
|
|
124
154
|
readonly aaveV3CoreMigrationAdapter: "0xb27Aa2a964eAd5ed661D86974b37e4fB995b36f5";
|
|
125
155
|
};
|
|
156
|
+
/**
|
|
157
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
158
|
+
*/
|
|
126
159
|
readonly compoundV2Bundler: "0x123f3167a416cA19365dE03a65e0AF3532af7223";
|
|
160
|
+
/**
|
|
161
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
162
|
+
*/
|
|
127
163
|
readonly aaveV3Bundler: "0xcAe2929baBc60Be34818EaA5F40bF69265677108";
|
|
164
|
+
/**
|
|
165
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
166
|
+
*/
|
|
128
167
|
readonly compoundV3Bundler: "0x1f8076e2EB6f10b12e6886f30D4909A91969F7dA";
|
|
129
168
|
readonly adaptiveCurveIrm: "0x46415998764C29aB2a25CbeA6254146D50D22687";
|
|
130
169
|
readonly publicAllocator: "0xA090dD1a701408Df1d4d0B85b716c87565f90467";
|
|
@@ -212,7 +251,7 @@ declare const _addressesRegistry: {
|
|
|
212
251
|
readonly publicAllocator: "0x37a888192165fC39884f87c64E2476BfD2C09675";
|
|
213
252
|
readonly metaMorphoFactory: "0x27D4Af0AC9E7FDfA6D0853236f249CC27AE79488";
|
|
214
253
|
readonly chainlinkOracleFactory: "0x39d8622C607A691D7705E8842fbB12E3c38dCD41";
|
|
215
|
-
readonly preLiquidationFactory: "
|
|
254
|
+
readonly preLiquidationFactory: "0x373ccddcd3F09D2e1430B3F2b290B9bF56Ae7336";
|
|
216
255
|
readonly wNative: "0xFC00000000000000000000000000000000000006";
|
|
217
256
|
};
|
|
218
257
|
readonly 534352: {
|
|
@@ -406,6 +445,291 @@ declare const _addressesRegistry: {
|
|
|
406
445
|
readonly wNative: "0x5555555555555555555555555555555555555555";
|
|
407
446
|
};
|
|
408
447
|
};
|
|
448
|
+
export type ChainDeployments<Addresses = ChainAddresses> = {
|
|
449
|
+
[key in keyof Addresses]: Address extends Addresses[key] ? bigint : ChainDeployments<Addresses[key]>;
|
|
450
|
+
};
|
|
451
|
+
declare const _deployments: {
|
|
452
|
+
readonly 1: {
|
|
453
|
+
readonly morpho: 18883124n;
|
|
454
|
+
readonly permit2: 15986406n;
|
|
455
|
+
readonly bundler3: {
|
|
456
|
+
readonly bundler3: 21643807n;
|
|
457
|
+
readonly generalAdapter1: 21872136n;
|
|
458
|
+
readonly paraswapAdapter: 21643807n;
|
|
459
|
+
readonly erc20WrapperAdapter: 21872136n;
|
|
460
|
+
readonly compoundV2MigrationAdapter: 21643807n;
|
|
461
|
+
readonly compoundV3MigrationAdapter: 21643807n;
|
|
462
|
+
readonly aaveV2MigrationAdapter: 21643807n;
|
|
463
|
+
readonly aaveV3CoreMigrationAdapter: 21643807n;
|
|
464
|
+
readonly aaveV3PrimeMigrationAdapter: 21643807n;
|
|
465
|
+
readonly aaveV3EtherFiMigrationAdapter: 21643807n;
|
|
466
|
+
readonly aaveV3OptimizerMigrationAdapter: 21643807n;
|
|
467
|
+
};
|
|
468
|
+
readonly adaptiveCurveIrm: 18883124n;
|
|
469
|
+
readonly publicAllocator: 19375099n;
|
|
470
|
+
readonly metaMorphoFactory: 21439510n;
|
|
471
|
+
readonly chainlinkOracleFactory: 19375066n;
|
|
472
|
+
readonly preLiquidationFactory: 21414664n;
|
|
473
|
+
};
|
|
474
|
+
readonly 8453: {
|
|
475
|
+
readonly morpho: 13977148n;
|
|
476
|
+
readonly permit2: 1425180n;
|
|
477
|
+
readonly bundler3: {
|
|
478
|
+
readonly bundler3: 25161671n;
|
|
479
|
+
readonly generalAdapter1: 26539234n;
|
|
480
|
+
readonly paraswapAdapter: 25161671n;
|
|
481
|
+
readonly erc20WrapperAdapter: 26539234n;
|
|
482
|
+
readonly compoundV3MigrationAdapter: 25161671n;
|
|
483
|
+
readonly aaveV3CoreMigrationAdapter: 25161671n;
|
|
484
|
+
};
|
|
485
|
+
readonly adaptiveCurveIrm: 13977152n;
|
|
486
|
+
readonly publicAllocator: 13979545n;
|
|
487
|
+
readonly metaMorphoFactory: 23928808n;
|
|
488
|
+
readonly chainlinkOracleFactory: 13978286n;
|
|
489
|
+
readonly preLiquidationFactory: 23779056n;
|
|
490
|
+
};
|
|
491
|
+
readonly 137: {
|
|
492
|
+
readonly morpho: 66931042n;
|
|
493
|
+
readonly bundler3: {
|
|
494
|
+
readonly bundler3: 68074185n;
|
|
495
|
+
readonly generalAdapter1: 68074185n;
|
|
496
|
+
readonly paraswapAdapter: 68074185n;
|
|
497
|
+
readonly compoundV3MigrationAdapter: 68690465n;
|
|
498
|
+
readonly aaveV2MigrationAdapter: 68690465n;
|
|
499
|
+
readonly aaveV3CoreMigrationAdapter: 68690465n;
|
|
500
|
+
};
|
|
501
|
+
readonly permit2: 35701901n;
|
|
502
|
+
readonly adaptiveCurveIrm: 66931042n;
|
|
503
|
+
readonly publicAllocator: 66931042n;
|
|
504
|
+
readonly metaMorphoFactory: 66931042n;
|
|
505
|
+
readonly chainlinkOracleFactory: 66931042n;
|
|
506
|
+
readonly preLiquidationFactory: 68074185n;
|
|
507
|
+
};
|
|
508
|
+
readonly 42161: {
|
|
509
|
+
readonly morpho: 296446593n;
|
|
510
|
+
readonly bundler3: {
|
|
511
|
+
readonly bundler3: 307326238n;
|
|
512
|
+
readonly generalAdapter1: 307326238n;
|
|
513
|
+
readonly paraswapAdapter: 307326988n;
|
|
514
|
+
readonly aaveV3CoreMigrationAdapter: 358694526n;
|
|
515
|
+
readonly compoundV3MigrationAdapter: 358693964n;
|
|
516
|
+
};
|
|
517
|
+
readonly permit2: 38692735n;
|
|
518
|
+
readonly adaptiveCurveIrm: 296446593n;
|
|
519
|
+
readonly publicAllocator: 296446593n;
|
|
520
|
+
readonly metaMorphoFactory: 296447195n;
|
|
521
|
+
readonly chainlinkOracleFactory: 296447195n;
|
|
522
|
+
readonly preLiquidationFactory: 307326238n;
|
|
523
|
+
};
|
|
524
|
+
readonly 10: {
|
|
525
|
+
readonly morpho: 130770075n;
|
|
526
|
+
readonly bundler3: {
|
|
527
|
+
readonly bundler3: 132139369n;
|
|
528
|
+
readonly generalAdapter1: 132139369n;
|
|
529
|
+
readonly paraswapAdapter: 132139438n;
|
|
530
|
+
};
|
|
531
|
+
readonly permit2: 38854427n;
|
|
532
|
+
readonly adaptiveCurveIrm: 130770075n;
|
|
533
|
+
readonly publicAllocator: 130770075n;
|
|
534
|
+
readonly metaMorphoFactory: 130770189n;
|
|
535
|
+
readonly chainlinkOracleFactory: 130770189n;
|
|
536
|
+
readonly preLiquidationFactory: 132139369n;
|
|
537
|
+
};
|
|
538
|
+
readonly 480: {
|
|
539
|
+
readonly morpho: 9025669n;
|
|
540
|
+
readonly bundler3: {
|
|
541
|
+
readonly bundler3: 10273494n;
|
|
542
|
+
readonly generalAdapter1: 10273494n;
|
|
543
|
+
};
|
|
544
|
+
readonly adaptiveCurveIrm: 9025669n;
|
|
545
|
+
readonly publicAllocator: 9025669n;
|
|
546
|
+
readonly metaMorphoFactory: 9025733n;
|
|
547
|
+
readonly chainlinkOracleFactory: 9025733n;
|
|
548
|
+
readonly preLiquidationFactory: 10273494n;
|
|
549
|
+
};
|
|
550
|
+
readonly 252: {
|
|
551
|
+
readonly morpho: 15317931n;
|
|
552
|
+
readonly bundler3: {
|
|
553
|
+
readonly bundler3: 16536231n;
|
|
554
|
+
readonly generalAdapter1: 16536231n;
|
|
555
|
+
};
|
|
556
|
+
readonly adaptiveCurveIrm: 15317931n;
|
|
557
|
+
readonly publicAllocator: 15317931n;
|
|
558
|
+
readonly metaMorphoFactory: 15318007n;
|
|
559
|
+
readonly chainlinkOracleFactory: 15318007n;
|
|
560
|
+
readonly preLiquidationFactory: 16536231n;
|
|
561
|
+
};
|
|
562
|
+
readonly 534352: {
|
|
563
|
+
readonly morpho: 12842868n;
|
|
564
|
+
readonly bundler3: {
|
|
565
|
+
readonly bundler3: 13504587n;
|
|
566
|
+
readonly generalAdapter1: 13504587n;
|
|
567
|
+
};
|
|
568
|
+
readonly adaptiveCurveIrm: 12842868n;
|
|
569
|
+
readonly publicAllocator: 12842868n;
|
|
570
|
+
readonly metaMorphoFactory: 12842903n;
|
|
571
|
+
readonly chainlinkOracleFactory: 12842903n;
|
|
572
|
+
readonly preLiquidationFactory: 13504587n;
|
|
573
|
+
};
|
|
574
|
+
readonly 57073: {
|
|
575
|
+
readonly morpho: 4078776n;
|
|
576
|
+
readonly bundler3: {
|
|
577
|
+
readonly bundler3: 6385077n;
|
|
578
|
+
readonly generalAdapter1: 6385077n;
|
|
579
|
+
};
|
|
580
|
+
readonly adaptiveCurveIrm: 4078776n;
|
|
581
|
+
readonly publicAllocator: 4078776n;
|
|
582
|
+
readonly metaMorphoFactory: 4078830n;
|
|
583
|
+
readonly chainlinkOracleFactory: 4078830n;
|
|
584
|
+
readonly preLiquidationFactory: 6385077n;
|
|
585
|
+
};
|
|
586
|
+
readonly 130: {
|
|
587
|
+
readonly morpho: 9139027n;
|
|
588
|
+
readonly bundler3: {
|
|
589
|
+
readonly bundler3: 9381237n;
|
|
590
|
+
readonly generalAdapter1: 9381237n;
|
|
591
|
+
readonly paraswapAdapter: 20872902n;
|
|
592
|
+
readonly compoundV3MigrationAdapter: 22019479n;
|
|
593
|
+
};
|
|
594
|
+
readonly adaptiveCurveIrm: 9139027n;
|
|
595
|
+
readonly publicAllocator: 9139027n;
|
|
596
|
+
readonly metaMorphoFactory: 9316789n;
|
|
597
|
+
readonly chainlinkOracleFactory: 9316789n;
|
|
598
|
+
readonly preLiquidationFactory: 9381237n;
|
|
599
|
+
};
|
|
600
|
+
readonly 146: {
|
|
601
|
+
readonly morpho: 9100931n;
|
|
602
|
+
readonly bundler3: {
|
|
603
|
+
readonly bundler3: 9102286n;
|
|
604
|
+
readonly generalAdapter1: 9102286n;
|
|
605
|
+
};
|
|
606
|
+
readonly adaptiveCurveIrm: 9100931n;
|
|
607
|
+
readonly publicAllocator: 9100931n;
|
|
608
|
+
readonly metaMorphoFactory: 9101319n;
|
|
609
|
+
readonly chainlinkOracleFactory: 9101319n;
|
|
610
|
+
readonly preLiquidationFactory: 9102286n;
|
|
611
|
+
};
|
|
612
|
+
readonly 43111: {
|
|
613
|
+
readonly morpho: 1188872n;
|
|
614
|
+
readonly bundler3: {
|
|
615
|
+
readonly bundler3: 1188907n;
|
|
616
|
+
readonly generalAdapter1: 1188907n;
|
|
617
|
+
};
|
|
618
|
+
readonly adaptiveCurveIrm: 1188872n;
|
|
619
|
+
readonly publicAllocator: 1188872n;
|
|
620
|
+
readonly metaMorphoFactory: 1188885n;
|
|
621
|
+
readonly chainlinkOracleFactory: 1188885n;
|
|
622
|
+
readonly preLiquidationFactory: 1188907n;
|
|
623
|
+
};
|
|
624
|
+
readonly 34443: {
|
|
625
|
+
readonly morpho: 19983370n;
|
|
626
|
+
readonly bundler3: {
|
|
627
|
+
readonly bundler3: 19983599n;
|
|
628
|
+
readonly generalAdapter1: 19983599n;
|
|
629
|
+
};
|
|
630
|
+
readonly adaptiveCurveIrm: 19983370n;
|
|
631
|
+
readonly publicAllocator: 19983370n;
|
|
632
|
+
readonly metaMorphoFactory: 19983443n;
|
|
633
|
+
readonly chainlinkOracleFactory: 19983443n;
|
|
634
|
+
readonly preLiquidationFactory: 19983599n;
|
|
635
|
+
};
|
|
636
|
+
readonly 21000000: {
|
|
637
|
+
readonly morpho: 251401n;
|
|
638
|
+
readonly bundler3: {
|
|
639
|
+
readonly bundler3: 253107n;
|
|
640
|
+
readonly generalAdapter1: 253107n;
|
|
641
|
+
};
|
|
642
|
+
readonly adaptiveCurveIrm: 251401n;
|
|
643
|
+
readonly publicAllocator: 251401n;
|
|
644
|
+
readonly metaMorphoFactory: 253027n;
|
|
645
|
+
readonly chainlinkOracleFactory: 253027n;
|
|
646
|
+
readonly preLiquidationFactory: 253107n;
|
|
647
|
+
};
|
|
648
|
+
readonly 98866: {
|
|
649
|
+
readonly morpho: 765994n;
|
|
650
|
+
readonly bundler3: {
|
|
651
|
+
readonly bundler3: 789925n;
|
|
652
|
+
readonly generalAdapter1: 789925n;
|
|
653
|
+
};
|
|
654
|
+
readonly adaptiveCurveIrm: 765994n;
|
|
655
|
+
readonly publicAllocator: 765994n;
|
|
656
|
+
readonly metaMorphoFactory: 766078n;
|
|
657
|
+
readonly chainlinkOracleFactory: 766078n;
|
|
658
|
+
readonly preLiquidationFactory: 789925n;
|
|
659
|
+
};
|
|
660
|
+
readonly 123420001114: {
|
|
661
|
+
readonly morpho: 4804080n;
|
|
662
|
+
readonly bundler3: {
|
|
663
|
+
readonly bundler3: 4804690n;
|
|
664
|
+
readonly generalAdapter1: 4804690n;
|
|
665
|
+
};
|
|
666
|
+
readonly adaptiveCurveIrm: 4804080n;
|
|
667
|
+
readonly publicAllocator: 4804080n;
|
|
668
|
+
readonly metaMorphoFactory: 4804270n;
|
|
669
|
+
readonly chainlinkOracleFactory: 4804270n;
|
|
670
|
+
readonly preLiquidationFactory: 4804690n;
|
|
671
|
+
};
|
|
672
|
+
readonly 747474: {
|
|
673
|
+
readonly morpho: 2741069n;
|
|
674
|
+
readonly bundler3: {
|
|
675
|
+
readonly bundler3: 2741993n;
|
|
676
|
+
readonly generalAdapter1: 2741993n;
|
|
677
|
+
};
|
|
678
|
+
readonly adaptiveCurveIrm: 2741069n;
|
|
679
|
+
readonly publicAllocator: 2741069n;
|
|
680
|
+
readonly metaMorphoFactory: 2741420n;
|
|
681
|
+
readonly chainlinkOracleFactory: 2741420n;
|
|
682
|
+
readonly preLiquidationFactory: 2741993n;
|
|
683
|
+
};
|
|
684
|
+
readonly 42793: {
|
|
685
|
+
readonly morpho: 21047448n;
|
|
686
|
+
readonly bundler3: {
|
|
687
|
+
readonly bundler3: 21050766n;
|
|
688
|
+
readonly generalAdapter1: 21050766n;
|
|
689
|
+
};
|
|
690
|
+
readonly adaptiveCurveIrm: 21047448n;
|
|
691
|
+
readonly publicAllocator: 21047448n;
|
|
692
|
+
readonly metaMorphoFactory: 21050315n;
|
|
693
|
+
readonly chainlinkOracleFactory: 21050315n;
|
|
694
|
+
readonly preLiquidationFactory: 21050766n;
|
|
695
|
+
};
|
|
696
|
+
readonly 239: {
|
|
697
|
+
readonly morpho: 853025n;
|
|
698
|
+
readonly bundler3: {
|
|
699
|
+
readonly bundler3: 978967n;
|
|
700
|
+
readonly generalAdapter1: 978967n;
|
|
701
|
+
};
|
|
702
|
+
readonly adaptiveCurveIrm: 853025n;
|
|
703
|
+
readonly publicAllocator: 853025n;
|
|
704
|
+
readonly metaMorphoFactory: 978654n;
|
|
705
|
+
readonly chainlinkOracleFactory: 978654n;
|
|
706
|
+
readonly preLiquidationFactory: 978967n;
|
|
707
|
+
};
|
|
708
|
+
readonly 1135: {
|
|
709
|
+
readonly morpho: 15731231n;
|
|
710
|
+
readonly bundler3: {
|
|
711
|
+
readonly bundler3: 15731595n;
|
|
712
|
+
readonly generalAdapter1: 15731595n;
|
|
713
|
+
};
|
|
714
|
+
readonly adaptiveCurveIrm: 15731231n;
|
|
715
|
+
readonly publicAllocator: 15731231n;
|
|
716
|
+
readonly metaMorphoFactory: 15731333n;
|
|
717
|
+
readonly chainlinkOracleFactory: 15731333n;
|
|
718
|
+
readonly preLiquidationFactory: 15731595n;
|
|
719
|
+
};
|
|
720
|
+
readonly 999: {
|
|
721
|
+
readonly morpho: 1988429n;
|
|
722
|
+
readonly bundler3: {
|
|
723
|
+
readonly bundler3: 1988956n;
|
|
724
|
+
readonly generalAdapter1: 1988956n;
|
|
725
|
+
};
|
|
726
|
+
readonly adaptiveCurveIrm: 1988429n;
|
|
727
|
+
readonly publicAllocator: 1988429n;
|
|
728
|
+
readonly metaMorphoFactory: 1988677n;
|
|
729
|
+
readonly chainlinkOracleFactory: 1988677n;
|
|
730
|
+
readonly preLiquidationFactory: 1988956n;
|
|
731
|
+
};
|
|
732
|
+
};
|
|
409
733
|
export type AddressLabel = DottedKeys<(typeof _addressesRegistry)[ChainId]>;
|
|
410
734
|
export declare const getChainAddresses: (chainId: number) => ChainAddresses;
|
|
411
735
|
export declare function getUnwrappedToken(wrappedToken: Address, chainId: number): `0x${string}` | undefined;
|
|
@@ -454,10 +778,25 @@ export declare let addressesRegistry: {
|
|
|
454
778
|
readonly aaveV3EtherFiMigrationAdapter: "0x4011dc6581fA05F9B0c7A12AdCd676e2b1a59ca3";
|
|
455
779
|
readonly aaveV3OptimizerMigrationAdapter: "0x9e2ea2d5785598a163D569D795f286F5C55ad972";
|
|
456
780
|
};
|
|
781
|
+
/**
|
|
782
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
783
|
+
*/
|
|
457
784
|
readonly aaveV3OptimizerBundler: "0x16F38d2E764E7BeBF625a8E995b34968226D2F9c";
|
|
785
|
+
/**
|
|
786
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
787
|
+
*/
|
|
458
788
|
readonly aaveV2Bundler: "0xb3dCc75DB379925edFd3007511A8CE0cB4aa8e76";
|
|
789
|
+
/**
|
|
790
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
791
|
+
*/
|
|
459
792
|
readonly aaveV3Bundler: "0x98ccB155E86bb478d514a827d16f58c6912f9BDC";
|
|
793
|
+
/**
|
|
794
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
795
|
+
*/
|
|
460
796
|
readonly compoundV3Bundler: "0x3a0e2E9FB9c95fBc843daF166276C90B6C479558";
|
|
797
|
+
/**
|
|
798
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
799
|
+
*/
|
|
461
800
|
readonly compoundV2Bundler: "0x26bF52a84360Ad3d01d7CDc28FC2dDC04d8c8647";
|
|
462
801
|
readonly adaptiveCurveIrm: "0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC";
|
|
463
802
|
readonly publicAllocator: "0xfd32fA2ca22c76dD6E550706Ad913FC6CE91c75D";
|
|
@@ -507,8 +846,17 @@ export declare let addressesRegistry: {
|
|
|
507
846
|
readonly compoundV3MigrationAdapter: "0x85D4812Ef92c040d4270eD8547b6835e41FbbB70";
|
|
508
847
|
readonly aaveV3CoreMigrationAdapter: "0xb27Aa2a964eAd5ed661D86974b37e4fB995b36f5";
|
|
509
848
|
};
|
|
849
|
+
/**
|
|
850
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
851
|
+
*/
|
|
510
852
|
readonly compoundV2Bundler: "0x123f3167a416cA19365dE03a65e0AF3532af7223";
|
|
853
|
+
/**
|
|
854
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
855
|
+
*/
|
|
511
856
|
readonly aaveV3Bundler: "0xcAe2929baBc60Be34818EaA5F40bF69265677108";
|
|
857
|
+
/**
|
|
858
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
859
|
+
*/
|
|
512
860
|
readonly compoundV3Bundler: "0x1f8076e2EB6f10b12e6886f30D4909A91969F7dA";
|
|
513
861
|
readonly adaptiveCurveIrm: "0x46415998764C29aB2a25CbeA6254146D50D22687";
|
|
514
862
|
readonly publicAllocator: "0xA090dD1a701408Df1d4d0B85b716c87565f90467";
|
|
@@ -596,7 +944,7 @@ export declare let addressesRegistry: {
|
|
|
596
944
|
readonly publicAllocator: "0x37a888192165fC39884f87c64E2476BfD2C09675";
|
|
597
945
|
readonly metaMorphoFactory: "0x27D4Af0AC9E7FDfA6D0853236f249CC27AE79488";
|
|
598
946
|
readonly chainlinkOracleFactory: "0x39d8622C607A691D7705E8842fbB12E3c38dCD41";
|
|
599
|
-
readonly preLiquidationFactory: "
|
|
947
|
+
readonly preLiquidationFactory: "0x373ccddcd3F09D2e1430B3F2b290B9bF56Ae7336";
|
|
600
948
|
readonly wNative: "0xFC00000000000000000000000000000000000006";
|
|
601
949
|
};
|
|
602
950
|
readonly 534352: {
|
|
@@ -791,6 +1139,288 @@ export declare let addressesRegistry: {
|
|
|
791
1139
|
};
|
|
792
1140
|
};
|
|
793
1141
|
export declare let addresses: Record<number, ChainAddresses>;
|
|
1142
|
+
export declare let deployments: {
|
|
1143
|
+
readonly 1: {
|
|
1144
|
+
readonly morpho: 18883124n;
|
|
1145
|
+
readonly permit2: 15986406n;
|
|
1146
|
+
readonly bundler3: {
|
|
1147
|
+
readonly bundler3: 21643807n;
|
|
1148
|
+
readonly generalAdapter1: 21872136n;
|
|
1149
|
+
readonly paraswapAdapter: 21643807n;
|
|
1150
|
+
readonly erc20WrapperAdapter: 21872136n;
|
|
1151
|
+
readonly compoundV2MigrationAdapter: 21643807n;
|
|
1152
|
+
readonly compoundV3MigrationAdapter: 21643807n;
|
|
1153
|
+
readonly aaveV2MigrationAdapter: 21643807n;
|
|
1154
|
+
readonly aaveV3CoreMigrationAdapter: 21643807n;
|
|
1155
|
+
readonly aaveV3PrimeMigrationAdapter: 21643807n;
|
|
1156
|
+
readonly aaveV3EtherFiMigrationAdapter: 21643807n;
|
|
1157
|
+
readonly aaveV3OptimizerMigrationAdapter: 21643807n;
|
|
1158
|
+
};
|
|
1159
|
+
readonly adaptiveCurveIrm: 18883124n;
|
|
1160
|
+
readonly publicAllocator: 19375099n;
|
|
1161
|
+
readonly metaMorphoFactory: 21439510n;
|
|
1162
|
+
readonly chainlinkOracleFactory: 19375066n;
|
|
1163
|
+
readonly preLiquidationFactory: 21414664n;
|
|
1164
|
+
};
|
|
1165
|
+
readonly 8453: {
|
|
1166
|
+
readonly morpho: 13977148n;
|
|
1167
|
+
readonly permit2: 1425180n;
|
|
1168
|
+
readonly bundler3: {
|
|
1169
|
+
readonly bundler3: 25161671n;
|
|
1170
|
+
readonly generalAdapter1: 26539234n;
|
|
1171
|
+
readonly paraswapAdapter: 25161671n;
|
|
1172
|
+
readonly erc20WrapperAdapter: 26539234n;
|
|
1173
|
+
readonly compoundV3MigrationAdapter: 25161671n;
|
|
1174
|
+
readonly aaveV3CoreMigrationAdapter: 25161671n;
|
|
1175
|
+
};
|
|
1176
|
+
readonly adaptiveCurveIrm: 13977152n;
|
|
1177
|
+
readonly publicAllocator: 13979545n;
|
|
1178
|
+
readonly metaMorphoFactory: 23928808n;
|
|
1179
|
+
readonly chainlinkOracleFactory: 13978286n;
|
|
1180
|
+
readonly preLiquidationFactory: 23779056n;
|
|
1181
|
+
};
|
|
1182
|
+
readonly 137: {
|
|
1183
|
+
readonly morpho: 66931042n;
|
|
1184
|
+
readonly bundler3: {
|
|
1185
|
+
readonly bundler3: 68074185n;
|
|
1186
|
+
readonly generalAdapter1: 68074185n;
|
|
1187
|
+
readonly paraswapAdapter: 68074185n;
|
|
1188
|
+
readonly compoundV3MigrationAdapter: 68690465n;
|
|
1189
|
+
readonly aaveV2MigrationAdapter: 68690465n;
|
|
1190
|
+
readonly aaveV3CoreMigrationAdapter: 68690465n;
|
|
1191
|
+
};
|
|
1192
|
+
readonly permit2: 35701901n;
|
|
1193
|
+
readonly adaptiveCurveIrm: 66931042n;
|
|
1194
|
+
readonly publicAllocator: 66931042n;
|
|
1195
|
+
readonly metaMorphoFactory: 66931042n;
|
|
1196
|
+
readonly chainlinkOracleFactory: 66931042n;
|
|
1197
|
+
readonly preLiquidationFactory: 68074185n;
|
|
1198
|
+
};
|
|
1199
|
+
readonly 42161: {
|
|
1200
|
+
readonly morpho: 296446593n;
|
|
1201
|
+
readonly bundler3: {
|
|
1202
|
+
readonly bundler3: 307326238n;
|
|
1203
|
+
readonly generalAdapter1: 307326238n;
|
|
1204
|
+
readonly paraswapAdapter: 307326988n;
|
|
1205
|
+
readonly aaveV3CoreMigrationAdapter: 358694526n;
|
|
1206
|
+
readonly compoundV3MigrationAdapter: 358693964n;
|
|
1207
|
+
};
|
|
1208
|
+
readonly permit2: 38692735n;
|
|
1209
|
+
readonly adaptiveCurveIrm: 296446593n;
|
|
1210
|
+
readonly publicAllocator: 296446593n;
|
|
1211
|
+
readonly metaMorphoFactory: 296447195n;
|
|
1212
|
+
readonly chainlinkOracleFactory: 296447195n;
|
|
1213
|
+
readonly preLiquidationFactory: 307326238n;
|
|
1214
|
+
};
|
|
1215
|
+
readonly 10: {
|
|
1216
|
+
readonly morpho: 130770075n;
|
|
1217
|
+
readonly bundler3: {
|
|
1218
|
+
readonly bundler3: 132139369n;
|
|
1219
|
+
readonly generalAdapter1: 132139369n;
|
|
1220
|
+
readonly paraswapAdapter: 132139438n;
|
|
1221
|
+
};
|
|
1222
|
+
readonly permit2: 38854427n;
|
|
1223
|
+
readonly adaptiveCurveIrm: 130770075n;
|
|
1224
|
+
readonly publicAllocator: 130770075n;
|
|
1225
|
+
readonly metaMorphoFactory: 130770189n;
|
|
1226
|
+
readonly chainlinkOracleFactory: 130770189n;
|
|
1227
|
+
readonly preLiquidationFactory: 132139369n;
|
|
1228
|
+
};
|
|
1229
|
+
readonly 480: {
|
|
1230
|
+
readonly morpho: 9025669n;
|
|
1231
|
+
readonly bundler3: {
|
|
1232
|
+
readonly bundler3: 10273494n;
|
|
1233
|
+
readonly generalAdapter1: 10273494n;
|
|
1234
|
+
};
|
|
1235
|
+
readonly adaptiveCurveIrm: 9025669n;
|
|
1236
|
+
readonly publicAllocator: 9025669n;
|
|
1237
|
+
readonly metaMorphoFactory: 9025733n;
|
|
1238
|
+
readonly chainlinkOracleFactory: 9025733n;
|
|
1239
|
+
readonly preLiquidationFactory: 10273494n;
|
|
1240
|
+
};
|
|
1241
|
+
readonly 252: {
|
|
1242
|
+
readonly morpho: 15317931n;
|
|
1243
|
+
readonly bundler3: {
|
|
1244
|
+
readonly bundler3: 16536231n;
|
|
1245
|
+
readonly generalAdapter1: 16536231n;
|
|
1246
|
+
};
|
|
1247
|
+
readonly adaptiveCurveIrm: 15317931n;
|
|
1248
|
+
readonly publicAllocator: 15317931n;
|
|
1249
|
+
readonly metaMorphoFactory: 15318007n;
|
|
1250
|
+
readonly chainlinkOracleFactory: 15318007n;
|
|
1251
|
+
readonly preLiquidationFactory: 16536231n;
|
|
1252
|
+
};
|
|
1253
|
+
readonly 534352: {
|
|
1254
|
+
readonly morpho: 12842868n;
|
|
1255
|
+
readonly bundler3: {
|
|
1256
|
+
readonly bundler3: 13504587n;
|
|
1257
|
+
readonly generalAdapter1: 13504587n;
|
|
1258
|
+
};
|
|
1259
|
+
readonly adaptiveCurveIrm: 12842868n;
|
|
1260
|
+
readonly publicAllocator: 12842868n;
|
|
1261
|
+
readonly metaMorphoFactory: 12842903n;
|
|
1262
|
+
readonly chainlinkOracleFactory: 12842903n;
|
|
1263
|
+
readonly preLiquidationFactory: 13504587n;
|
|
1264
|
+
};
|
|
1265
|
+
readonly 57073: {
|
|
1266
|
+
readonly morpho: 4078776n;
|
|
1267
|
+
readonly bundler3: {
|
|
1268
|
+
readonly bundler3: 6385077n;
|
|
1269
|
+
readonly generalAdapter1: 6385077n;
|
|
1270
|
+
};
|
|
1271
|
+
readonly adaptiveCurveIrm: 4078776n;
|
|
1272
|
+
readonly publicAllocator: 4078776n;
|
|
1273
|
+
readonly metaMorphoFactory: 4078830n;
|
|
1274
|
+
readonly chainlinkOracleFactory: 4078830n;
|
|
1275
|
+
readonly preLiquidationFactory: 6385077n;
|
|
1276
|
+
};
|
|
1277
|
+
readonly 130: {
|
|
1278
|
+
readonly morpho: 9139027n;
|
|
1279
|
+
readonly bundler3: {
|
|
1280
|
+
readonly bundler3: 9381237n;
|
|
1281
|
+
readonly generalAdapter1: 9381237n;
|
|
1282
|
+
readonly paraswapAdapter: 20872902n;
|
|
1283
|
+
readonly compoundV3MigrationAdapter: 22019479n;
|
|
1284
|
+
};
|
|
1285
|
+
readonly adaptiveCurveIrm: 9139027n;
|
|
1286
|
+
readonly publicAllocator: 9139027n;
|
|
1287
|
+
readonly metaMorphoFactory: 9316789n;
|
|
1288
|
+
readonly chainlinkOracleFactory: 9316789n;
|
|
1289
|
+
readonly preLiquidationFactory: 9381237n;
|
|
1290
|
+
};
|
|
1291
|
+
readonly 146: {
|
|
1292
|
+
readonly morpho: 9100931n;
|
|
1293
|
+
readonly bundler3: {
|
|
1294
|
+
readonly bundler3: 9102286n;
|
|
1295
|
+
readonly generalAdapter1: 9102286n;
|
|
1296
|
+
};
|
|
1297
|
+
readonly adaptiveCurveIrm: 9100931n;
|
|
1298
|
+
readonly publicAllocator: 9100931n;
|
|
1299
|
+
readonly metaMorphoFactory: 9101319n;
|
|
1300
|
+
readonly chainlinkOracleFactory: 9101319n;
|
|
1301
|
+
readonly preLiquidationFactory: 9102286n;
|
|
1302
|
+
};
|
|
1303
|
+
readonly 43111: {
|
|
1304
|
+
readonly morpho: 1188872n;
|
|
1305
|
+
readonly bundler3: {
|
|
1306
|
+
readonly bundler3: 1188907n;
|
|
1307
|
+
readonly generalAdapter1: 1188907n;
|
|
1308
|
+
};
|
|
1309
|
+
readonly adaptiveCurveIrm: 1188872n;
|
|
1310
|
+
readonly publicAllocator: 1188872n;
|
|
1311
|
+
readonly metaMorphoFactory: 1188885n;
|
|
1312
|
+
readonly chainlinkOracleFactory: 1188885n;
|
|
1313
|
+
readonly preLiquidationFactory: 1188907n;
|
|
1314
|
+
};
|
|
1315
|
+
readonly 34443: {
|
|
1316
|
+
readonly morpho: 19983370n;
|
|
1317
|
+
readonly bundler3: {
|
|
1318
|
+
readonly bundler3: 19983599n;
|
|
1319
|
+
readonly generalAdapter1: 19983599n;
|
|
1320
|
+
};
|
|
1321
|
+
readonly adaptiveCurveIrm: 19983370n;
|
|
1322
|
+
readonly publicAllocator: 19983370n;
|
|
1323
|
+
readonly metaMorphoFactory: 19983443n;
|
|
1324
|
+
readonly chainlinkOracleFactory: 19983443n;
|
|
1325
|
+
readonly preLiquidationFactory: 19983599n;
|
|
1326
|
+
};
|
|
1327
|
+
readonly 21000000: {
|
|
1328
|
+
readonly morpho: 251401n;
|
|
1329
|
+
readonly bundler3: {
|
|
1330
|
+
readonly bundler3: 253107n;
|
|
1331
|
+
readonly generalAdapter1: 253107n;
|
|
1332
|
+
};
|
|
1333
|
+
readonly adaptiveCurveIrm: 251401n;
|
|
1334
|
+
readonly publicAllocator: 251401n;
|
|
1335
|
+
readonly metaMorphoFactory: 253027n;
|
|
1336
|
+
readonly chainlinkOracleFactory: 253027n;
|
|
1337
|
+
readonly preLiquidationFactory: 253107n;
|
|
1338
|
+
};
|
|
1339
|
+
readonly 98866: {
|
|
1340
|
+
readonly morpho: 765994n;
|
|
1341
|
+
readonly bundler3: {
|
|
1342
|
+
readonly bundler3: 789925n;
|
|
1343
|
+
readonly generalAdapter1: 789925n;
|
|
1344
|
+
};
|
|
1345
|
+
readonly adaptiveCurveIrm: 765994n;
|
|
1346
|
+
readonly publicAllocator: 765994n;
|
|
1347
|
+
readonly metaMorphoFactory: 766078n;
|
|
1348
|
+
readonly chainlinkOracleFactory: 766078n;
|
|
1349
|
+
readonly preLiquidationFactory: 789925n;
|
|
1350
|
+
};
|
|
1351
|
+
readonly 123420001114: {
|
|
1352
|
+
readonly morpho: 4804080n;
|
|
1353
|
+
readonly bundler3: {
|
|
1354
|
+
readonly bundler3: 4804690n;
|
|
1355
|
+
readonly generalAdapter1: 4804690n;
|
|
1356
|
+
};
|
|
1357
|
+
readonly adaptiveCurveIrm: 4804080n;
|
|
1358
|
+
readonly publicAllocator: 4804080n;
|
|
1359
|
+
readonly metaMorphoFactory: 4804270n;
|
|
1360
|
+
readonly chainlinkOracleFactory: 4804270n;
|
|
1361
|
+
readonly preLiquidationFactory: 4804690n;
|
|
1362
|
+
};
|
|
1363
|
+
readonly 747474: {
|
|
1364
|
+
readonly morpho: 2741069n;
|
|
1365
|
+
readonly bundler3: {
|
|
1366
|
+
readonly bundler3: 2741993n;
|
|
1367
|
+
readonly generalAdapter1: 2741993n;
|
|
1368
|
+
};
|
|
1369
|
+
readonly adaptiveCurveIrm: 2741069n;
|
|
1370
|
+
readonly publicAllocator: 2741069n;
|
|
1371
|
+
readonly metaMorphoFactory: 2741420n;
|
|
1372
|
+
readonly chainlinkOracleFactory: 2741420n;
|
|
1373
|
+
readonly preLiquidationFactory: 2741993n;
|
|
1374
|
+
};
|
|
1375
|
+
readonly 42793: {
|
|
1376
|
+
readonly morpho: 21047448n;
|
|
1377
|
+
readonly bundler3: {
|
|
1378
|
+
readonly bundler3: 21050766n;
|
|
1379
|
+
readonly generalAdapter1: 21050766n;
|
|
1380
|
+
};
|
|
1381
|
+
readonly adaptiveCurveIrm: 21047448n;
|
|
1382
|
+
readonly publicAllocator: 21047448n;
|
|
1383
|
+
readonly metaMorphoFactory: 21050315n;
|
|
1384
|
+
readonly chainlinkOracleFactory: 21050315n;
|
|
1385
|
+
readonly preLiquidationFactory: 21050766n;
|
|
1386
|
+
};
|
|
1387
|
+
readonly 239: {
|
|
1388
|
+
readonly morpho: 853025n;
|
|
1389
|
+
readonly bundler3: {
|
|
1390
|
+
readonly bundler3: 978967n;
|
|
1391
|
+
readonly generalAdapter1: 978967n;
|
|
1392
|
+
};
|
|
1393
|
+
readonly adaptiveCurveIrm: 853025n;
|
|
1394
|
+
readonly publicAllocator: 853025n;
|
|
1395
|
+
readonly metaMorphoFactory: 978654n;
|
|
1396
|
+
readonly chainlinkOracleFactory: 978654n;
|
|
1397
|
+
readonly preLiquidationFactory: 978967n;
|
|
1398
|
+
};
|
|
1399
|
+
readonly 1135: {
|
|
1400
|
+
readonly morpho: 15731231n;
|
|
1401
|
+
readonly bundler3: {
|
|
1402
|
+
readonly bundler3: 15731595n;
|
|
1403
|
+
readonly generalAdapter1: 15731595n;
|
|
1404
|
+
};
|
|
1405
|
+
readonly adaptiveCurveIrm: 15731231n;
|
|
1406
|
+
readonly publicAllocator: 15731231n;
|
|
1407
|
+
readonly metaMorphoFactory: 15731333n;
|
|
1408
|
+
readonly chainlinkOracleFactory: 15731333n;
|
|
1409
|
+
readonly preLiquidationFactory: 15731595n;
|
|
1410
|
+
};
|
|
1411
|
+
readonly 999: {
|
|
1412
|
+
readonly morpho: 1988429n;
|
|
1413
|
+
readonly bundler3: {
|
|
1414
|
+
readonly bundler3: 1988956n;
|
|
1415
|
+
readonly generalAdapter1: 1988956n;
|
|
1416
|
+
};
|
|
1417
|
+
readonly adaptiveCurveIrm: 1988429n;
|
|
1418
|
+
readonly publicAllocator: 1988429n;
|
|
1419
|
+
readonly metaMorphoFactory: 1988677n;
|
|
1420
|
+
readonly chainlinkOracleFactory: 1988677n;
|
|
1421
|
+
readonly preLiquidationFactory: 1988956n;
|
|
1422
|
+
};
|
|
1423
|
+
};
|
|
794
1424
|
export declare let unwrappedTokensMapping: Record<number, Record<`0x${string}`, `0x${string}`>>;
|
|
795
1425
|
/**
|
|
796
1426
|
* Registers custom addresses and unwrapped token mappings to extend
|
|
@@ -800,8 +1430,11 @@ export declare let unwrappedTokensMapping: Record<number, Record<`0x${string}`,
|
|
|
800
1430
|
* @param options.unwrappedTokens - A mapping of chain IDs to token address maps,
|
|
801
1431
|
* where each entry maps wrapped tokens to their unwrapped equivalents.
|
|
802
1432
|
* @param options.addresses - Custom address entries to merge into the default registry.
|
|
803
|
-
*
|
|
804
|
-
*
|
|
1433
|
+
* Can be a subset of `ChainAddresses` if chain is already known.
|
|
1434
|
+
* Must provide all required addresses if chain is unknown.
|
|
1435
|
+
* @param options.deployments - Custom deployment entries to merge into the default registry.
|
|
1436
|
+
* Can be a subset of `ChainDeployments` if chain is already known.
|
|
1437
|
+
* Must provide all required deployments if chain is unknown.
|
|
805
1438
|
*
|
|
806
1439
|
* @throws {Error} If attempting to override an existing address.
|
|
807
1440
|
*
|
|
@@ -817,8 +1450,9 @@ export declare let unwrappedTokensMapping: Record<number, Record<`0x${string}`,
|
|
|
817
1450
|
* });
|
|
818
1451
|
* ```
|
|
819
1452
|
*/
|
|
820
|
-
export declare function registerCustomAddresses({ unwrappedTokens, addresses: customAddresses, }?: {
|
|
1453
|
+
export declare function registerCustomAddresses({ unwrappedTokens, addresses: customAddresses, deployments: customDeployments, }?: {
|
|
821
1454
|
unwrappedTokens?: Record<number, Record<Address, Address>>;
|
|
822
1455
|
addresses?: DeepPartial<Record<keyof typeof _addressesRegistry, ChainAddresses>> | Record<number, ChainAddresses>;
|
|
1456
|
+
deployments?: DeepPartial<Record<keyof typeof _deployments, ChainDeployments>> | Record<number, ChainDeployments>;
|
|
823
1457
|
}): void;
|
|
824
1458
|
export {};
|
package/lib/addresses.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.unwrappedTokensMapping = exports.addresses = exports.addressesRegistry = exports.convexWrapperTokens = exports.getPermissionedCoinbaseTokens = exports.permissionedCoinbaseTokens = exports.permissionedBackedTokens = exports.permissionedWrapperTokens = exports.erc20WrapperTokens = exports.getChainAddresses = exports.NATIVE_ADDRESS = void 0;
|
|
6
|
+
exports.unwrappedTokensMapping = exports.deployments = exports.addresses = exports.addressesRegistry = exports.convexWrapperTokens = exports.getPermissionedCoinbaseTokens = exports.permissionedCoinbaseTokens = exports.permissionedBackedTokens = exports.permissionedWrapperTokens = exports.erc20WrapperTokens = exports.getChainAddresses = exports.NATIVE_ADDRESS = void 0;
|
|
7
7
|
exports.getUnwrappedToken = getUnwrappedToken;
|
|
8
8
|
exports.registerCustomAddresses = registerCustomAddresses;
|
|
9
9
|
const morpho_ts_1 = require("@morpho-org/morpho-ts");
|
|
@@ -37,10 +37,25 @@ const _addressesRegistry = {
|
|
|
37
37
|
aaveV3EtherFiMigrationAdapter: "0x4011dc6581fA05F9B0c7A12AdCd676e2b1a59ca3",
|
|
38
38
|
aaveV3OptimizerMigrationAdapter: "0x9e2ea2d5785598a163D569D795f286F5C55ad972",
|
|
39
39
|
},
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
42
|
+
*/
|
|
40
43
|
aaveV3OptimizerBundler: "0x16F38d2E764E7BeBF625a8E995b34968226D2F9c",
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
46
|
+
*/
|
|
41
47
|
aaveV2Bundler: "0xb3dCc75DB379925edFd3007511A8CE0cB4aa8e76",
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
50
|
+
*/
|
|
42
51
|
aaveV3Bundler: "0x98ccB155E86bb478d514a827d16f58c6912f9BDC",
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
54
|
+
*/
|
|
43
55
|
compoundV3Bundler: "0x3a0e2E9FB9c95fBc843daF166276C90B6C479558",
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
58
|
+
*/
|
|
44
59
|
compoundV2Bundler: "0x26bF52a84360Ad3d01d7CDc28FC2dDC04d8c8647",
|
|
45
60
|
adaptiveCurveIrm: "0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC",
|
|
46
61
|
publicAllocator: "0xfd32fA2ca22c76dD6E550706Ad913FC6CE91c75D",
|
|
@@ -96,8 +111,17 @@ const _addressesRegistry = {
|
|
|
96
111
|
compoundV3MigrationAdapter: "0x85D4812Ef92c040d4270eD8547b6835e41FbbB70",
|
|
97
112
|
aaveV3CoreMigrationAdapter: "0xb27Aa2a964eAd5ed661D86974b37e4fB995b36f5",
|
|
98
113
|
},
|
|
114
|
+
/**
|
|
115
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
116
|
+
*/
|
|
99
117
|
compoundV2Bundler: "0x123f3167a416cA19365dE03a65e0AF3532af7223",
|
|
118
|
+
/**
|
|
119
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
120
|
+
*/
|
|
100
121
|
aaveV3Bundler: "0xcAe2929baBc60Be34818EaA5F40bF69265677108",
|
|
122
|
+
/**
|
|
123
|
+
* @deprecated All bundles should use Bundler3 instead.
|
|
124
|
+
*/
|
|
101
125
|
compoundV3Bundler: "0x1f8076e2EB6f10b12e6886f30D4909A91969F7dA",
|
|
102
126
|
adaptiveCurveIrm: "0x46415998764C29aB2a25CbeA6254146D50D22687",
|
|
103
127
|
publicAllocator: "0xA090dD1a701408Df1d4d0B85b716c87565f90467",
|
|
@@ -189,7 +213,7 @@ const _addressesRegistry = {
|
|
|
189
213
|
publicAllocator: "0x37a888192165fC39884f87c64E2476BfD2C09675",
|
|
190
214
|
metaMorphoFactory: "0x27D4Af0AC9E7FDfA6D0853236f249CC27AE79488",
|
|
191
215
|
chainlinkOracleFactory: "0x39d8622C607A691D7705E8842fbB12E3c38dCD41",
|
|
192
|
-
preLiquidationFactory: "
|
|
216
|
+
preLiquidationFactory: "0x373ccddcd3F09D2e1430B3F2b290B9bF56Ae7336",
|
|
193
217
|
wNative: "0xFC00000000000000000000000000000000000006",
|
|
194
218
|
},
|
|
195
219
|
[chain_js_1.ChainId.ScrollMainnet]: {
|
|
@@ -389,6 +413,288 @@ const _addressesRegistry = {
|
|
|
389
413
|
wNative: "0x5555555555555555555555555555555555555555",
|
|
390
414
|
},
|
|
391
415
|
};
|
|
416
|
+
const _deployments = {
|
|
417
|
+
[chain_js_1.ChainId.EthMainnet]: {
|
|
418
|
+
morpho: 18883124n,
|
|
419
|
+
permit2: 15986406n,
|
|
420
|
+
bundler3: {
|
|
421
|
+
bundler3: 21643807n,
|
|
422
|
+
generalAdapter1: 21872136n,
|
|
423
|
+
paraswapAdapter: 21643807n,
|
|
424
|
+
erc20WrapperAdapter: 21872136n,
|
|
425
|
+
compoundV2MigrationAdapter: 21643807n,
|
|
426
|
+
compoundV3MigrationAdapter: 21643807n,
|
|
427
|
+
aaveV2MigrationAdapter: 21643807n,
|
|
428
|
+
aaveV3CoreMigrationAdapter: 21643807n,
|
|
429
|
+
aaveV3PrimeMigrationAdapter: 21643807n,
|
|
430
|
+
aaveV3EtherFiMigrationAdapter: 21643807n,
|
|
431
|
+
aaveV3OptimizerMigrationAdapter: 21643807n,
|
|
432
|
+
},
|
|
433
|
+
adaptiveCurveIrm: 18883124n,
|
|
434
|
+
publicAllocator: 19375099n,
|
|
435
|
+
metaMorphoFactory: 21439510n,
|
|
436
|
+
chainlinkOracleFactory: 19375066n,
|
|
437
|
+
preLiquidationFactory: 21414664n,
|
|
438
|
+
},
|
|
439
|
+
[chain_js_1.ChainId.BaseMainnet]: {
|
|
440
|
+
morpho: 13977148n,
|
|
441
|
+
permit2: 1425180n,
|
|
442
|
+
bundler3: {
|
|
443
|
+
bundler3: 25161671n,
|
|
444
|
+
generalAdapter1: 26539234n,
|
|
445
|
+
paraswapAdapter: 25161671n,
|
|
446
|
+
erc20WrapperAdapter: 26539234n,
|
|
447
|
+
compoundV3MigrationAdapter: 25161671n,
|
|
448
|
+
aaveV3CoreMigrationAdapter: 25161671n,
|
|
449
|
+
},
|
|
450
|
+
adaptiveCurveIrm: 13977152n,
|
|
451
|
+
publicAllocator: 13979545n,
|
|
452
|
+
metaMorphoFactory: 23928808n,
|
|
453
|
+
chainlinkOracleFactory: 13978286n,
|
|
454
|
+
preLiquidationFactory: 23779056n,
|
|
455
|
+
},
|
|
456
|
+
[chain_js_1.ChainId.PolygonMainnet]: {
|
|
457
|
+
morpho: 66931042n,
|
|
458
|
+
bundler3: {
|
|
459
|
+
bundler3: 68074185n,
|
|
460
|
+
generalAdapter1: 68074185n,
|
|
461
|
+
paraswapAdapter: 68074185n,
|
|
462
|
+
compoundV3MigrationAdapter: 68690465n,
|
|
463
|
+
aaveV2MigrationAdapter: 68690465n,
|
|
464
|
+
aaveV3CoreMigrationAdapter: 68690465n,
|
|
465
|
+
},
|
|
466
|
+
permit2: 35701901n,
|
|
467
|
+
adaptiveCurveIrm: 66931042n,
|
|
468
|
+
publicAllocator: 66931042n,
|
|
469
|
+
metaMorphoFactory: 66931042n,
|
|
470
|
+
chainlinkOracleFactory: 66931042n,
|
|
471
|
+
preLiquidationFactory: 68074185n,
|
|
472
|
+
},
|
|
473
|
+
[chain_js_1.ChainId.ArbitrumMainnet]: {
|
|
474
|
+
morpho: 296446593n,
|
|
475
|
+
bundler3: {
|
|
476
|
+
bundler3: 307326238n,
|
|
477
|
+
generalAdapter1: 307326238n,
|
|
478
|
+
paraswapAdapter: 307326988n,
|
|
479
|
+
aaveV3CoreMigrationAdapter: 358694526n,
|
|
480
|
+
compoundV3MigrationAdapter: 358693964n,
|
|
481
|
+
},
|
|
482
|
+
permit2: 38692735n,
|
|
483
|
+
adaptiveCurveIrm: 296446593n,
|
|
484
|
+
publicAllocator: 296446593n,
|
|
485
|
+
metaMorphoFactory: 296447195n,
|
|
486
|
+
chainlinkOracleFactory: 296447195n,
|
|
487
|
+
preLiquidationFactory: 307326238n,
|
|
488
|
+
},
|
|
489
|
+
[chain_js_1.ChainId.OptimismMainnet]: {
|
|
490
|
+
morpho: 130770075n,
|
|
491
|
+
bundler3: {
|
|
492
|
+
bundler3: 132139369n,
|
|
493
|
+
generalAdapter1: 132139369n,
|
|
494
|
+
paraswapAdapter: 132139438n,
|
|
495
|
+
},
|
|
496
|
+
permit2: 38854427n,
|
|
497
|
+
adaptiveCurveIrm: 130770075n,
|
|
498
|
+
publicAllocator: 130770075n,
|
|
499
|
+
metaMorphoFactory: 130770189n,
|
|
500
|
+
chainlinkOracleFactory: 130770189n,
|
|
501
|
+
preLiquidationFactory: 132139369n,
|
|
502
|
+
},
|
|
503
|
+
[chain_js_1.ChainId.WorldChainMainnet]: {
|
|
504
|
+
morpho: 9025669n,
|
|
505
|
+
bundler3: {
|
|
506
|
+
bundler3: 10273494n,
|
|
507
|
+
generalAdapter1: 10273494n,
|
|
508
|
+
},
|
|
509
|
+
adaptiveCurveIrm: 9025669n,
|
|
510
|
+
publicAllocator: 9025669n,
|
|
511
|
+
metaMorphoFactory: 9025733n,
|
|
512
|
+
chainlinkOracleFactory: 9025733n,
|
|
513
|
+
preLiquidationFactory: 10273494n,
|
|
514
|
+
},
|
|
515
|
+
[chain_js_1.ChainId.FraxtalMainnet]: {
|
|
516
|
+
morpho: 15317931n,
|
|
517
|
+
bundler3: {
|
|
518
|
+
bundler3: 16536231n,
|
|
519
|
+
generalAdapter1: 16536231n,
|
|
520
|
+
},
|
|
521
|
+
adaptiveCurveIrm: 15317931n,
|
|
522
|
+
publicAllocator: 15317931n,
|
|
523
|
+
metaMorphoFactory: 15318007n,
|
|
524
|
+
chainlinkOracleFactory: 15318007n,
|
|
525
|
+
preLiquidationFactory: 16536231n,
|
|
526
|
+
},
|
|
527
|
+
[chain_js_1.ChainId.ScrollMainnet]: {
|
|
528
|
+
morpho: 12842868n,
|
|
529
|
+
bundler3: {
|
|
530
|
+
bundler3: 13504587n,
|
|
531
|
+
generalAdapter1: 13504587n,
|
|
532
|
+
},
|
|
533
|
+
adaptiveCurveIrm: 12842868n,
|
|
534
|
+
publicAllocator: 12842868n,
|
|
535
|
+
metaMorphoFactory: 12842903n,
|
|
536
|
+
chainlinkOracleFactory: 12842903n,
|
|
537
|
+
preLiquidationFactory: 13504587n,
|
|
538
|
+
},
|
|
539
|
+
[chain_js_1.ChainId.InkMainnet]: {
|
|
540
|
+
morpho: 4078776n,
|
|
541
|
+
bundler3: {
|
|
542
|
+
bundler3: 6385077n,
|
|
543
|
+
generalAdapter1: 6385077n,
|
|
544
|
+
},
|
|
545
|
+
adaptiveCurveIrm: 4078776n,
|
|
546
|
+
publicAllocator: 4078776n,
|
|
547
|
+
metaMorphoFactory: 4078830n,
|
|
548
|
+
chainlinkOracleFactory: 4078830n,
|
|
549
|
+
preLiquidationFactory: 6385077n,
|
|
550
|
+
},
|
|
551
|
+
[chain_js_1.ChainId.Unichain]: {
|
|
552
|
+
morpho: 9139027n,
|
|
553
|
+
bundler3: {
|
|
554
|
+
bundler3: 9381237n,
|
|
555
|
+
generalAdapter1: 9381237n,
|
|
556
|
+
paraswapAdapter: 20872902n,
|
|
557
|
+
compoundV3MigrationAdapter: 22019479n,
|
|
558
|
+
},
|
|
559
|
+
adaptiveCurveIrm: 9139027n,
|
|
560
|
+
publicAllocator: 9139027n,
|
|
561
|
+
metaMorphoFactory: 9316789n,
|
|
562
|
+
chainlinkOracleFactory: 9316789n,
|
|
563
|
+
preLiquidationFactory: 9381237n,
|
|
564
|
+
},
|
|
565
|
+
[chain_js_1.ChainId.SonicMainnet]: {
|
|
566
|
+
morpho: 9100931n,
|
|
567
|
+
bundler3: {
|
|
568
|
+
bundler3: 9102286n,
|
|
569
|
+
generalAdapter1: 9102286n,
|
|
570
|
+
},
|
|
571
|
+
adaptiveCurveIrm: 9100931n,
|
|
572
|
+
publicAllocator: 9100931n,
|
|
573
|
+
metaMorphoFactory: 9101319n,
|
|
574
|
+
chainlinkOracleFactory: 9101319n,
|
|
575
|
+
preLiquidationFactory: 9102286n,
|
|
576
|
+
},
|
|
577
|
+
[chain_js_1.ChainId.HemiMainnet]: {
|
|
578
|
+
morpho: 1188872n,
|
|
579
|
+
bundler3: {
|
|
580
|
+
bundler3: 1188907n,
|
|
581
|
+
generalAdapter1: 1188907n,
|
|
582
|
+
},
|
|
583
|
+
adaptiveCurveIrm: 1188872n,
|
|
584
|
+
publicAllocator: 1188872n,
|
|
585
|
+
metaMorphoFactory: 1188885n,
|
|
586
|
+
chainlinkOracleFactory: 1188885n,
|
|
587
|
+
preLiquidationFactory: 1188907n,
|
|
588
|
+
},
|
|
589
|
+
[chain_js_1.ChainId.ModeMainnet]: {
|
|
590
|
+
morpho: 19983370n,
|
|
591
|
+
bundler3: {
|
|
592
|
+
bundler3: 19983599n,
|
|
593
|
+
generalAdapter1: 19983599n,
|
|
594
|
+
},
|
|
595
|
+
adaptiveCurveIrm: 19983370n,
|
|
596
|
+
publicAllocator: 19983370n,
|
|
597
|
+
metaMorphoFactory: 19983443n,
|
|
598
|
+
chainlinkOracleFactory: 19983443n,
|
|
599
|
+
preLiquidationFactory: 19983599n,
|
|
600
|
+
},
|
|
601
|
+
[chain_js_1.ChainId.CornMainnet]: {
|
|
602
|
+
morpho: 251401n,
|
|
603
|
+
bundler3: {
|
|
604
|
+
bundler3: 253107n,
|
|
605
|
+
generalAdapter1: 253107n,
|
|
606
|
+
},
|
|
607
|
+
adaptiveCurveIrm: 251401n,
|
|
608
|
+
publicAllocator: 251401n,
|
|
609
|
+
metaMorphoFactory: 253027n,
|
|
610
|
+
chainlinkOracleFactory: 253027n,
|
|
611
|
+
preLiquidationFactory: 253107n,
|
|
612
|
+
},
|
|
613
|
+
[chain_js_1.ChainId.PlumeMainnet]: {
|
|
614
|
+
morpho: 765994n,
|
|
615
|
+
bundler3: {
|
|
616
|
+
bundler3: 789925n,
|
|
617
|
+
generalAdapter1: 789925n,
|
|
618
|
+
},
|
|
619
|
+
adaptiveCurveIrm: 765994n,
|
|
620
|
+
publicAllocator: 765994n,
|
|
621
|
+
metaMorphoFactory: 766078n,
|
|
622
|
+
chainlinkOracleFactory: 766078n,
|
|
623
|
+
preLiquidationFactory: 789925n,
|
|
624
|
+
},
|
|
625
|
+
[chain_js_1.ChainId.CampMainnet]: {
|
|
626
|
+
morpho: 4804080n,
|
|
627
|
+
bundler3: {
|
|
628
|
+
bundler3: 4804690n,
|
|
629
|
+
generalAdapter1: 4804690n,
|
|
630
|
+
},
|
|
631
|
+
adaptiveCurveIrm: 4804080n,
|
|
632
|
+
publicAllocator: 4804080n,
|
|
633
|
+
metaMorphoFactory: 4804270n,
|
|
634
|
+
chainlinkOracleFactory: 4804270n,
|
|
635
|
+
preLiquidationFactory: 4804690n,
|
|
636
|
+
},
|
|
637
|
+
[chain_js_1.ChainId.KatanaMainnet]: {
|
|
638
|
+
morpho: 2741069n,
|
|
639
|
+
bundler3: {
|
|
640
|
+
bundler3: 2741993n,
|
|
641
|
+
generalAdapter1: 2741993n,
|
|
642
|
+
},
|
|
643
|
+
adaptiveCurveIrm: 2741069n,
|
|
644
|
+
publicAllocator: 2741069n,
|
|
645
|
+
metaMorphoFactory: 2741420n,
|
|
646
|
+
chainlinkOracleFactory: 2741420n,
|
|
647
|
+
preLiquidationFactory: 2741993n,
|
|
648
|
+
},
|
|
649
|
+
[chain_js_1.ChainId.EtherlinkMainnet]: {
|
|
650
|
+
morpho: 21047448n,
|
|
651
|
+
bundler3: {
|
|
652
|
+
bundler3: 21050766n,
|
|
653
|
+
generalAdapter1: 21050766n,
|
|
654
|
+
},
|
|
655
|
+
adaptiveCurveIrm: 21047448n,
|
|
656
|
+
publicAllocator: 21047448n,
|
|
657
|
+
metaMorphoFactory: 21050315n,
|
|
658
|
+
chainlinkOracleFactory: 21050315n,
|
|
659
|
+
preLiquidationFactory: 21050766n,
|
|
660
|
+
},
|
|
661
|
+
[chain_js_1.ChainId.TacMainnet]: {
|
|
662
|
+
morpho: 853025n,
|
|
663
|
+
bundler3: {
|
|
664
|
+
bundler3: 978967n,
|
|
665
|
+
generalAdapter1: 978967n,
|
|
666
|
+
},
|
|
667
|
+
adaptiveCurveIrm: 853025n,
|
|
668
|
+
publicAllocator: 853025n,
|
|
669
|
+
metaMorphoFactory: 978654n,
|
|
670
|
+
chainlinkOracleFactory: 978654n,
|
|
671
|
+
preLiquidationFactory: 978967n,
|
|
672
|
+
},
|
|
673
|
+
[chain_js_1.ChainId.LiskMainnet]: {
|
|
674
|
+
morpho: 15731231n,
|
|
675
|
+
bundler3: {
|
|
676
|
+
bundler3: 15731595n,
|
|
677
|
+
generalAdapter1: 15731595n,
|
|
678
|
+
},
|
|
679
|
+
adaptiveCurveIrm: 15731231n,
|
|
680
|
+
publicAllocator: 15731231n,
|
|
681
|
+
metaMorphoFactory: 15731333n,
|
|
682
|
+
chainlinkOracleFactory: 15731333n,
|
|
683
|
+
preLiquidationFactory: 15731595n,
|
|
684
|
+
},
|
|
685
|
+
[chain_js_1.ChainId.HyperliquidMainnet]: {
|
|
686
|
+
morpho: 1988429n,
|
|
687
|
+
bundler3: {
|
|
688
|
+
bundler3: 1988956n,
|
|
689
|
+
generalAdapter1: 1988956n,
|
|
690
|
+
},
|
|
691
|
+
adaptiveCurveIrm: 1988429n,
|
|
692
|
+
publicAllocator: 1988429n,
|
|
693
|
+
metaMorphoFactory: 1988677n,
|
|
694
|
+
chainlinkOracleFactory: 1988677n,
|
|
695
|
+
preLiquidationFactory: 1988956n,
|
|
696
|
+
},
|
|
697
|
+
};
|
|
392
698
|
const getChainAddresses = (chainId) => {
|
|
393
699
|
const chainAddresses = exports.addresses[chainId];
|
|
394
700
|
if (chainAddresses == null)
|
|
@@ -535,6 +841,7 @@ exports.convexWrapperTokens = {
|
|
|
535
841
|
};
|
|
536
842
|
exports.addressesRegistry = (0, morpho_ts_1.deepFreeze)(_addressesRegistry);
|
|
537
843
|
exports.addresses = exports.addressesRegistry;
|
|
844
|
+
exports.deployments = (0, morpho_ts_1.deepFreeze)(_deployments);
|
|
538
845
|
exports.unwrappedTokensMapping = (0, morpho_ts_1.deepFreeze)(_unwrappedTokensMapping);
|
|
539
846
|
/**
|
|
540
847
|
* Registers custom addresses and unwrapped token mappings to extend
|
|
@@ -544,8 +851,11 @@ exports.unwrappedTokensMapping = (0, morpho_ts_1.deepFreeze)(_unwrappedTokensMap
|
|
|
544
851
|
* @param options.unwrappedTokens - A mapping of chain IDs to token address maps,
|
|
545
852
|
* where each entry maps wrapped tokens to their unwrapped equivalents.
|
|
546
853
|
* @param options.addresses - Custom address entries to merge into the default registry.
|
|
547
|
-
*
|
|
548
|
-
*
|
|
854
|
+
* Can be a subset of `ChainAddresses` if chain is already known.
|
|
855
|
+
* Must provide all required addresses if chain is unknown.
|
|
856
|
+
* @param options.deployments - Custom deployment entries to merge into the default registry.
|
|
857
|
+
* Can be a subset of `ChainDeployments` if chain is already known.
|
|
858
|
+
* Must provide all required deployments if chain is unknown.
|
|
549
859
|
*
|
|
550
860
|
* @throws {Error} If attempting to override an existing address.
|
|
551
861
|
*
|
|
@@ -561,16 +871,19 @@ exports.unwrappedTokensMapping = (0, morpho_ts_1.deepFreeze)(_unwrappedTokensMap
|
|
|
561
871
|
* });
|
|
562
872
|
* ```
|
|
563
873
|
*/
|
|
564
|
-
function registerCustomAddresses({ unwrappedTokens, addresses: customAddresses, } = {}) {
|
|
874
|
+
function registerCustomAddresses({ unwrappedTokens, addresses: customAddresses, deployments: customDeployments, } = {}) {
|
|
875
|
+
const customizer = (type) =>
|
|
565
876
|
// biome-ignore lint/suspicious/noExplicitAny: type is not trivial and not important here
|
|
566
|
-
|
|
877
|
+
(objValue, srcValue, key) => {
|
|
567
878
|
if (objValue !== undefined &&
|
|
568
879
|
!(0, lodash_isplainobject_1.default)(objValue) &&
|
|
569
880
|
objValue !== srcValue)
|
|
570
|
-
throw new Error(`Cannot override existing
|
|
881
|
+
throw new Error(`Cannot override existing ${type}: ${key}`);
|
|
571
882
|
};
|
|
572
883
|
if (customAddresses)
|
|
573
|
-
exports.addresses = exports.addressesRegistry = (0, morpho_ts_1.deepFreeze)((0, lodash_mergewith_1.default)({}, exports.addressesRegistry, customAddresses, customizer));
|
|
884
|
+
exports.addresses = exports.addressesRegistry = (0, morpho_ts_1.deepFreeze)((0, lodash_mergewith_1.default)({}, exports.addressesRegistry, customAddresses, customizer("address")));
|
|
885
|
+
if (customDeployments)
|
|
886
|
+
exports.deployments = (0, morpho_ts_1.deepFreeze)((0, lodash_mergewith_1.default)({}, exports.deployments, customDeployments, customizer("deployment")));
|
|
574
887
|
if (unwrappedTokens)
|
|
575
|
-
exports.unwrappedTokensMapping = (0, morpho_ts_1.deepFreeze)((0, lodash_mergewith_1.default)({}, exports.unwrappedTokensMapping, unwrappedTokens, customizer));
|
|
888
|
+
exports.unwrappedTokensMapping = (0, morpho_ts_1.deepFreeze)((0, lodash_mergewith_1.default)({}, exports.unwrappedTokensMapping, unwrappedTokens, customizer("unwrapped token")));
|
|
576
889
|
}
|
package/lib/chain.d.ts
CHANGED
|
@@ -37,5 +37,237 @@ export declare namespace ChainUtils {
|
|
|
37
37
|
const getExplorerUrl: (chainId: ChainId) => string;
|
|
38
38
|
const getExplorerAddressUrl: (chainId: ChainId, address: string) => string;
|
|
39
39
|
const getExplorerTransactionUrl: (chainId: ChainId, tx: string) => string;
|
|
40
|
-
const CHAIN_METADATA:
|
|
40
|
+
const CHAIN_METADATA: {
|
|
41
|
+
1: {
|
|
42
|
+
name: string;
|
|
43
|
+
id: ChainId.EthMainnet;
|
|
44
|
+
nativeCurrency: {
|
|
45
|
+
name: string;
|
|
46
|
+
symbol: string;
|
|
47
|
+
decimals: number;
|
|
48
|
+
};
|
|
49
|
+
explorerUrl: string;
|
|
50
|
+
identifier: string;
|
|
51
|
+
};
|
|
52
|
+
8453: {
|
|
53
|
+
name: string;
|
|
54
|
+
id: ChainId.BaseMainnet;
|
|
55
|
+
nativeCurrency: {
|
|
56
|
+
name: string;
|
|
57
|
+
symbol: string;
|
|
58
|
+
decimals: number;
|
|
59
|
+
};
|
|
60
|
+
explorerUrl: string;
|
|
61
|
+
identifier: string;
|
|
62
|
+
};
|
|
63
|
+
137: {
|
|
64
|
+
name: string;
|
|
65
|
+
id: ChainId.PolygonMainnet;
|
|
66
|
+
nativeCurrency: {
|
|
67
|
+
name: string;
|
|
68
|
+
symbol: string;
|
|
69
|
+
decimals: number;
|
|
70
|
+
};
|
|
71
|
+
explorerUrl: string;
|
|
72
|
+
identifier: string;
|
|
73
|
+
};
|
|
74
|
+
42161: {
|
|
75
|
+
name: string;
|
|
76
|
+
id: ChainId.ArbitrumMainnet;
|
|
77
|
+
nativeCurrency: {
|
|
78
|
+
name: string;
|
|
79
|
+
symbol: string;
|
|
80
|
+
decimals: number;
|
|
81
|
+
};
|
|
82
|
+
explorerUrl: string;
|
|
83
|
+
identifier: string;
|
|
84
|
+
};
|
|
85
|
+
10: {
|
|
86
|
+
name: string;
|
|
87
|
+
id: ChainId.OptimismMainnet;
|
|
88
|
+
nativeCurrency: {
|
|
89
|
+
name: string;
|
|
90
|
+
symbol: string;
|
|
91
|
+
decimals: number;
|
|
92
|
+
};
|
|
93
|
+
explorerUrl: string;
|
|
94
|
+
identifier: string;
|
|
95
|
+
};
|
|
96
|
+
480: {
|
|
97
|
+
name: string;
|
|
98
|
+
id: ChainId.WorldChainMainnet;
|
|
99
|
+
nativeCurrency: {
|
|
100
|
+
name: string;
|
|
101
|
+
symbol: string;
|
|
102
|
+
decimals: number;
|
|
103
|
+
};
|
|
104
|
+
explorerUrl: string;
|
|
105
|
+
identifier: string;
|
|
106
|
+
};
|
|
107
|
+
252: {
|
|
108
|
+
name: string;
|
|
109
|
+
id: ChainId.FraxtalMainnet;
|
|
110
|
+
nativeCurrency: {
|
|
111
|
+
name: string;
|
|
112
|
+
symbol: string;
|
|
113
|
+
decimals: number;
|
|
114
|
+
};
|
|
115
|
+
explorerUrl: string;
|
|
116
|
+
identifier: string;
|
|
117
|
+
};
|
|
118
|
+
534352: {
|
|
119
|
+
name: string;
|
|
120
|
+
id: ChainId.ScrollMainnet;
|
|
121
|
+
nativeCurrency: {
|
|
122
|
+
name: string;
|
|
123
|
+
symbol: string;
|
|
124
|
+
decimals: number;
|
|
125
|
+
};
|
|
126
|
+
explorerUrl: string;
|
|
127
|
+
identifier: string;
|
|
128
|
+
};
|
|
129
|
+
57073: {
|
|
130
|
+
name: string;
|
|
131
|
+
id: ChainId.InkMainnet;
|
|
132
|
+
nativeCurrency: {
|
|
133
|
+
name: string;
|
|
134
|
+
symbol: string;
|
|
135
|
+
decimals: number;
|
|
136
|
+
};
|
|
137
|
+
explorerUrl: string;
|
|
138
|
+
identifier: string;
|
|
139
|
+
};
|
|
140
|
+
130: {
|
|
141
|
+
name: string;
|
|
142
|
+
id: ChainId.Unichain;
|
|
143
|
+
nativeCurrency: {
|
|
144
|
+
name: string;
|
|
145
|
+
symbol: string;
|
|
146
|
+
decimals: number;
|
|
147
|
+
};
|
|
148
|
+
explorerUrl: string;
|
|
149
|
+
identifier: string;
|
|
150
|
+
};
|
|
151
|
+
146: {
|
|
152
|
+
name: string;
|
|
153
|
+
id: ChainId.SonicMainnet;
|
|
154
|
+
nativeCurrency: {
|
|
155
|
+
name: string;
|
|
156
|
+
symbol: string;
|
|
157
|
+
decimals: number;
|
|
158
|
+
};
|
|
159
|
+
explorerUrl: string;
|
|
160
|
+
identifier: string;
|
|
161
|
+
};
|
|
162
|
+
43111: {
|
|
163
|
+
name: string;
|
|
164
|
+
id: ChainId.HemiMainnet;
|
|
165
|
+
nativeCurrency: {
|
|
166
|
+
name: string;
|
|
167
|
+
symbol: string;
|
|
168
|
+
decimals: number;
|
|
169
|
+
};
|
|
170
|
+
explorerUrl: string;
|
|
171
|
+
identifier: string;
|
|
172
|
+
};
|
|
173
|
+
34443: {
|
|
174
|
+
name: string;
|
|
175
|
+
id: ChainId.ModeMainnet;
|
|
176
|
+
nativeCurrency: {
|
|
177
|
+
name: string;
|
|
178
|
+
symbol: string;
|
|
179
|
+
decimals: number;
|
|
180
|
+
};
|
|
181
|
+
explorerUrl: string;
|
|
182
|
+
identifier: string;
|
|
183
|
+
};
|
|
184
|
+
21000000: {
|
|
185
|
+
name: string;
|
|
186
|
+
id: ChainId.CornMainnet;
|
|
187
|
+
nativeCurrency: {
|
|
188
|
+
name: string;
|
|
189
|
+
symbol: string;
|
|
190
|
+
decimals: number;
|
|
191
|
+
};
|
|
192
|
+
explorerUrl: string;
|
|
193
|
+
identifier: string;
|
|
194
|
+
};
|
|
195
|
+
98866: {
|
|
196
|
+
name: string;
|
|
197
|
+
id: ChainId.PlumeMainnet;
|
|
198
|
+
nativeCurrency: {
|
|
199
|
+
name: string;
|
|
200
|
+
symbol: string;
|
|
201
|
+
decimals: number;
|
|
202
|
+
};
|
|
203
|
+
explorerUrl: string;
|
|
204
|
+
identifier: string;
|
|
205
|
+
};
|
|
206
|
+
123420001114: {
|
|
207
|
+
name: string;
|
|
208
|
+
id: ChainId.CampMainnet;
|
|
209
|
+
nativeCurrency: {
|
|
210
|
+
name: string;
|
|
211
|
+
symbol: string;
|
|
212
|
+
decimals: number;
|
|
213
|
+
};
|
|
214
|
+
explorerUrl: string;
|
|
215
|
+
identifier: string;
|
|
216
|
+
};
|
|
217
|
+
747474: {
|
|
218
|
+
name: string;
|
|
219
|
+
id: ChainId.KatanaMainnet;
|
|
220
|
+
nativeCurrency: {
|
|
221
|
+
name: string;
|
|
222
|
+
symbol: string;
|
|
223
|
+
decimals: number;
|
|
224
|
+
};
|
|
225
|
+
explorerUrl: string;
|
|
226
|
+
identifier: string;
|
|
227
|
+
};
|
|
228
|
+
42793: {
|
|
229
|
+
name: string;
|
|
230
|
+
id: ChainId.EtherlinkMainnet;
|
|
231
|
+
nativeCurrency: {
|
|
232
|
+
name: string;
|
|
233
|
+
symbol: string;
|
|
234
|
+
decimals: number;
|
|
235
|
+
};
|
|
236
|
+
explorerUrl: string;
|
|
237
|
+
identifier: string;
|
|
238
|
+
};
|
|
239
|
+
239: {
|
|
240
|
+
name: string;
|
|
241
|
+
id: ChainId.TacMainnet;
|
|
242
|
+
nativeCurrency: {
|
|
243
|
+
name: string;
|
|
244
|
+
symbol: string;
|
|
245
|
+
decimals: number;
|
|
246
|
+
};
|
|
247
|
+
explorerUrl: string;
|
|
248
|
+
identifier: string;
|
|
249
|
+
};
|
|
250
|
+
1135: {
|
|
251
|
+
name: string;
|
|
252
|
+
id: ChainId.LiskMainnet;
|
|
253
|
+
nativeCurrency: {
|
|
254
|
+
name: string;
|
|
255
|
+
symbol: string;
|
|
256
|
+
decimals: number;
|
|
257
|
+
};
|
|
258
|
+
explorerUrl: string;
|
|
259
|
+
identifier: string;
|
|
260
|
+
};
|
|
261
|
+
999: {
|
|
262
|
+
name: string;
|
|
263
|
+
id: ChainId.HyperliquidMainnet;
|
|
264
|
+
nativeCurrency: {
|
|
265
|
+
name: string;
|
|
266
|
+
symbol: string;
|
|
267
|
+
decimals: number;
|
|
268
|
+
};
|
|
269
|
+
explorerUrl: string;
|
|
270
|
+
identifier: string;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
41
273
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morpho-org/blue-sdk",
|
|
3
3
|
"description": "Framework-agnostic package that defines Morpho-related entity classes (such as `Market`, `Token`, `Vault`).",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.9.0",
|
|
5
5
|
"author": "Morpho Association <contact@morpho.org>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Rubilmax <rmilon@gmail.com>"
|