@ring-protocol/universal-router-sdk 0.1.30 → 0.1.31
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/universal-router-sdk.cjs.development.js +72 -36
- package/dist/universal-router-sdk.cjs.development.js.map +1 -1
- package/dist/universal-router-sdk.cjs.production.min.js +1 -1
- package/dist/universal-router-sdk.cjs.production.min.js.map +1 -1
- package/dist/universal-router-sdk.esm.js +72 -36
- package/dist/universal-router-sdk.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -460,7 +460,7 @@ var RouterActionType;
|
|
|
460
460
|
RouterActionType["UnwrapWETH"] = "UnwrapWETH";
|
|
461
461
|
})(RouterActionType || (RouterActionType = {}));
|
|
462
462
|
|
|
463
|
-
var _routerConfigs, _routerConfigs2, _routerConfigs3, _routerConfigs4, _routerConfigs5, _routerConfigs6, _routerConfigs7, _routerConfigs8, _routerConfigs9, _routerConfigs0, _routerConfigs1, _routerConfigs10, _routerConfigs11, _routerConfigs12, _routerConfigs13, _routerConfigs14, _routerConfigs15, _routerConfigs16, _routerConfigs17, _routerConfigs18, _routerConfigs19, _routerConfigs20, _routerConfigs21, _routerConfigs22, _routerConfigs23, _routerConfigs24, _CHAIN_CONFIGS;
|
|
463
|
+
var _routerConfigs, _routerConfigs2, _routerConfigs3, _routerConfigs4, _routerConfigs5, _routerConfigs6, _routerConfigs7, _routerConfigs8, _routerConfigs9, _routerConfigs0, _routerConfigs1, _routerConfigs10, _routerConfigs11, _routerConfigs12, _routerConfigs13, _routerConfigs14, _routerConfigs15, _routerConfigs16, _routerConfigs17, _routerConfigs18, _routerConfigs19, _routerConfigs20, _routerConfigs21, _routerConfigs22, _routerConfigs23, _routerConfigs24, _routerConfigs25, _routerConfigs26, _routerConfigs27, _routerConfigs28, _CHAIN_CONFIGS;
|
|
464
464
|
var UniversalRouterVersion;
|
|
465
465
|
(function (UniversalRouterVersion) {
|
|
466
466
|
UniversalRouterVersion["V1_2"] = "1.2";
|
|
@@ -474,8 +474,8 @@ var CHAIN_CONFIGS = (_CHAIN_CONFIGS = {}, _CHAIN_CONFIGS[1] = {
|
|
|
474
474
|
address: '0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD',
|
|
475
475
|
creationBlock: 17143817
|
|
476
476
|
}, _routerConfigs[UniversalRouterVersion.V2_0] = {
|
|
477
|
-
address: '
|
|
478
|
-
creationBlock:
|
|
477
|
+
address: '0x24e743CcE93235641f2be8Ce7ffC6330903ab96f',
|
|
478
|
+
creationBlock: 17143817
|
|
479
479
|
}, _routerConfigs)
|
|
480
480
|
}, _CHAIN_CONFIGS[5] = {
|
|
481
481
|
weth: '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6',
|
|
@@ -483,7 +483,7 @@ var CHAIN_CONFIGS = (_CHAIN_CONFIGS = {}, _CHAIN_CONFIGS[1] = {
|
|
|
483
483
|
address: '0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD',
|
|
484
484
|
creationBlock: 8940568
|
|
485
485
|
}, _routerConfigs2[UniversalRouterVersion.V2_0] = {
|
|
486
|
-
address: '
|
|
486
|
+
address: '0xEc6b9a7FE7C7c751E6490648e05C5010DDfe0469',
|
|
487
487
|
creationBlock: 8940568
|
|
488
488
|
}, _routerConfigs2)
|
|
489
489
|
}, _CHAIN_CONFIGS[11155111] = {
|
|
@@ -492,8 +492,8 @@ var CHAIN_CONFIGS = (_CHAIN_CONFIGS = {}, _CHAIN_CONFIGS[1] = {
|
|
|
492
492
|
address: '0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD',
|
|
493
493
|
creationBlock: 3543575
|
|
494
494
|
}, _routerConfigs3[UniversalRouterVersion.V2_0] = {
|
|
495
|
-
address: '
|
|
496
|
-
creationBlock:
|
|
495
|
+
address: '0x97974e98fa4734CD2fBA2aFB4063012679a2f56A',
|
|
496
|
+
creationBlock: 9024677
|
|
497
497
|
}, _routerConfigs3)
|
|
498
498
|
}, _CHAIN_CONFIGS[137] = {
|
|
499
499
|
weth: '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270',
|
|
@@ -501,8 +501,8 @@ var CHAIN_CONFIGS = (_CHAIN_CONFIGS = {}, _CHAIN_CONFIGS[1] = {
|
|
|
501
501
|
address: '0xec7BE89e9d109e7e3Fec59c222CF297125FEFda2',
|
|
502
502
|
creationBlock: 52210153
|
|
503
503
|
}, _routerConfigs4[UniversalRouterVersion.V2_0] = {
|
|
504
|
-
address: '
|
|
505
|
-
creationBlock:
|
|
504
|
+
address: '0x643770E279d5D0733F21d6DC03A8efbABf3255B4',
|
|
505
|
+
creationBlock: 46866777
|
|
506
506
|
}, _routerConfigs4)
|
|
507
507
|
}, _CHAIN_CONFIGS[80001] = {
|
|
508
508
|
weth: '0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889',
|
|
@@ -519,8 +519,8 @@ var CHAIN_CONFIGS = (_CHAIN_CONFIGS = {}, _CHAIN_CONFIGS[1] = {
|
|
|
519
519
|
address: '0xCb1355ff08Ab38bBCE60111F1bb2B784bE25D7e8',
|
|
520
520
|
creationBlock: 114702266
|
|
521
521
|
}, _routerConfigs6[UniversalRouterVersion.V2_0] = {
|
|
522
|
-
address: '
|
|
523
|
-
creationBlock:
|
|
522
|
+
address: '0xeC8B0F7Ffe3ae75d7FfAb09429e3675bb63503e4',
|
|
523
|
+
creationBlock: 108825869
|
|
524
524
|
}, _routerConfigs6)
|
|
525
525
|
}, _CHAIN_CONFIGS[420] = {
|
|
526
526
|
weth: '0x4200000000000000000000000000000000000006',
|
|
@@ -537,8 +537,8 @@ var CHAIN_CONFIGS = (_CHAIN_CONFIGS = {}, _CHAIN_CONFIGS[1] = {
|
|
|
537
537
|
address: '0x5E325eDA8064b456f4781070C0738d849c824258',
|
|
538
538
|
creationBlock: 169472836
|
|
539
539
|
}, _routerConfigs8[UniversalRouterVersion.V2_0] = {
|
|
540
|
-
address: '
|
|
541
|
-
creationBlock:
|
|
540
|
+
address: '0x4e30E64faeF7c9Aee835904a48DC27eDA40e2CA7',
|
|
541
|
+
creationBlock: 285583808
|
|
542
542
|
}, _routerConfigs8)
|
|
543
543
|
}, _CHAIN_CONFIGS[421613] = {
|
|
544
544
|
weth: '0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3',
|
|
@@ -555,8 +555,8 @@ var CHAIN_CONFIGS = (_CHAIN_CONFIGS = {}, _CHAIN_CONFIGS[1] = {
|
|
|
555
555
|
address: '0x643770e279d5d0733f21d6dc03a8efbabf3255b4',
|
|
556
556
|
creationBlock: 21407637
|
|
557
557
|
}, _routerConfigs0[UniversalRouterVersion.V2_0] = {
|
|
558
|
-
address: '
|
|
559
|
-
creationBlock:
|
|
558
|
+
address: '0x88a3ED7F21A3fCF6adb86b6F878C5B7a02D20e9b',
|
|
559
|
+
creationBlock: 21116361
|
|
560
560
|
}, _routerConfigs0)
|
|
561
561
|
}, _CHAIN_CONFIGS[44787] = {
|
|
562
562
|
weth: WETH_NOT_SUPPORTED_ON_CHAIN,
|
|
@@ -573,8 +573,8 @@ var CHAIN_CONFIGS = (_CHAIN_CONFIGS = {}, _CHAIN_CONFIGS[1] = {
|
|
|
573
573
|
address: '0x4Dae2f939ACf50408e13d58534Ff8c2776d45265',
|
|
574
574
|
creationBlock: 35160263
|
|
575
575
|
}, _routerConfigs10[UniversalRouterVersion.V2_0] = {
|
|
576
|
-
address: '
|
|
577
|
-
creationBlock:
|
|
576
|
+
address: '0x1Fb6ef969D925f0B81245cE28F2cAD95b638CfCC',
|
|
577
|
+
creationBlock: 56739372
|
|
578
578
|
}, _routerConfigs10)
|
|
579
579
|
}, _CHAIN_CONFIGS[43114] = {
|
|
580
580
|
weth: '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7',
|
|
@@ -582,8 +582,8 @@ var CHAIN_CONFIGS = (_CHAIN_CONFIGS = {}, _CHAIN_CONFIGS[1] = {
|
|
|
582
582
|
address: '0x4Dae2f939ACf50408e13d58534Ff8c2776d45265',
|
|
583
583
|
creationBlock: 40237257
|
|
584
584
|
}, _routerConfigs11[UniversalRouterVersion.V2_0] = {
|
|
585
|
-
address: '
|
|
586
|
-
creationBlock:
|
|
585
|
+
address: '0x82635AF6146972cD6601161c4472ffe97237D292',
|
|
586
|
+
creationBlock: 34491144
|
|
587
587
|
}, _routerConfigs11)
|
|
588
588
|
}, _CHAIN_CONFIGS[84531] = {
|
|
589
589
|
weth: '0x4200000000000000000000000000000000000006',
|
|
@@ -600,8 +600,8 @@ var CHAIN_CONFIGS = (_CHAIN_CONFIGS = {}, _CHAIN_CONFIGS[1] = {
|
|
|
600
600
|
address: '0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD',
|
|
601
601
|
creationBlock: 9107268
|
|
602
602
|
}, _routerConfigs13[UniversalRouterVersion.V2_0] = {
|
|
603
|
-
address: '
|
|
604
|
-
creationBlock:
|
|
603
|
+
address: '0xcc1d0c42CC672Fcb610Db8934635Acd0F605Fd86',
|
|
604
|
+
creationBlock: 23766578
|
|
605
605
|
}, _routerConfigs13)
|
|
606
606
|
}, _CHAIN_CONFIGS[81457] = {
|
|
607
607
|
weth: '0x4300000000000000000000000000000000000004',
|
|
@@ -609,8 +609,8 @@ var CHAIN_CONFIGS = (_CHAIN_CONFIGS = {}, _CHAIN_CONFIGS[1] = {
|
|
|
609
609
|
address: '0x643770E279d5D0733F21d6DC03A8efbABf3255B4',
|
|
610
610
|
creationBlock: 1116444
|
|
611
611
|
}, _routerConfigs14[UniversalRouterVersion.V2_0] = {
|
|
612
|
-
address: '
|
|
613
|
-
creationBlock:
|
|
612
|
+
address: '0x404Fd85edAe4501eCeB32Ca6ac603D9529df7AfB',
|
|
613
|
+
creationBlock: 165686
|
|
614
614
|
}, _routerConfigs14)
|
|
615
615
|
}, _CHAIN_CONFIGS[7777777] = {
|
|
616
616
|
weth: '0x4200000000000000000000000000000000000006',
|
|
@@ -645,8 +645,8 @@ var CHAIN_CONFIGS = (_CHAIN_CONFIGS = {}, _CHAIN_CONFIGS[1] = {
|
|
|
645
645
|
address: '0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6',
|
|
646
646
|
creationBlock: 1241811
|
|
647
647
|
}, _routerConfigs18[UniversalRouterVersion.V2_0] = {
|
|
648
|
-
address: '
|
|
649
|
-
creationBlock:
|
|
648
|
+
address: '0xC9DD682A06dbf10D91e2adbdAC70f3Adb8a3f201',
|
|
649
|
+
creationBlock: 165686
|
|
650
650
|
}, _routerConfigs18)
|
|
651
651
|
}, _CHAIN_CONFIGS[130] = {
|
|
652
652
|
weth: '0x4200000000000000000000000000000000000006',
|
|
@@ -654,8 +654,8 @@ var CHAIN_CONFIGS = (_CHAIN_CONFIGS = {}, _CHAIN_CONFIGS[1] = {
|
|
|
654
654
|
address: '0x4D73A4411CA1c660035e4AECC8270E5DdDEC8C17',
|
|
655
655
|
creationBlock: 23678
|
|
656
656
|
}, _routerConfigs19[UniversalRouterVersion.V2_0] = {
|
|
657
|
-
address: '
|
|
658
|
-
creationBlock:
|
|
657
|
+
address: '0xa7f0381288753e01171752483413E53f8D7faf4D',
|
|
658
|
+
creationBlock: 8799030
|
|
659
659
|
}, _routerConfigs19)
|
|
660
660
|
}, _CHAIN_CONFIGS[10143] = {
|
|
661
661
|
weth: '0x760AfE86e5de5fa0Ee542fc7B7B713e1c5425701',
|
|
@@ -684,24 +684,60 @@ var CHAIN_CONFIGS = (_CHAIN_CONFIGS = {}, _CHAIN_CONFIGS[1] = {
|
|
|
684
684
|
address: '0x0e2850543f69f678257266e0907ff9a58b3f13de',
|
|
685
685
|
creationBlock: 3254782
|
|
686
686
|
}, _routerConfigs22)
|
|
687
|
-
}, _CHAIN_CONFIGS[
|
|
688
|
-
weth: '
|
|
687
|
+
}, _CHAIN_CONFIGS[168587773] = {
|
|
688
|
+
weth: '0x4200000000000000000000000000000000000023',
|
|
689
689
|
routerConfigs: (_routerConfigs23 = {}, _routerConfigs23[UniversalRouterVersion.V1_2] = {
|
|
690
|
-
address: '
|
|
691
|
-
creationBlock:
|
|
690
|
+
address: '0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD',
|
|
691
|
+
creationBlock: 3273124
|
|
692
692
|
}, _routerConfigs23[UniversalRouterVersion.V2_0] = {
|
|
693
|
-
address: '
|
|
694
|
-
creationBlock:
|
|
693
|
+
address: '0x899FAeDA183A26Ae7085C82e5E057E90bdb75283',
|
|
694
|
+
creationBlock: 3273124
|
|
695
695
|
}, _routerConfigs23)
|
|
696
|
+
}, _CHAIN_CONFIGS[421614] = {
|
|
697
|
+
weth: '0x980B62Da83eFf3D4576C647993b0c1D7faf17c73',
|
|
698
|
+
routerConfigs: (_routerConfigs24 = {}, _routerConfigs24[UniversalRouterVersion.V1_2] = {
|
|
699
|
+
address: '0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD',
|
|
700
|
+
creationBlock: 104439157
|
|
701
|
+
}, _routerConfigs24[UniversalRouterVersion.V2_0] = {
|
|
702
|
+
address: '0x6Db48677E616921d70fe4c88aAB62665Efffe4A8',
|
|
703
|
+
creationBlock: 104439157
|
|
704
|
+
}, _routerConfigs24)
|
|
705
|
+
}, _CHAIN_CONFIGS[1516] = {
|
|
706
|
+
weth: '0xe8CabF9d1FFB6CE23cF0a86641849543ec7BD7d5',
|
|
707
|
+
routerConfigs: (_routerConfigs25 = {}, _routerConfigs25[UniversalRouterVersion.V1_2] = {
|
|
708
|
+
address: '0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD',
|
|
709
|
+
creationBlock: 2240752
|
|
710
|
+
}, _routerConfigs25[UniversalRouterVersion.V2_0] = {
|
|
711
|
+
address: '0x20504f37A95eF80e3FC7476c4801fb39AaE6bAd0',
|
|
712
|
+
creationBlock: 2240752
|
|
713
|
+
}, _routerConfigs25)
|
|
714
|
+
}, _CHAIN_CONFIGS[1514] = {
|
|
715
|
+
weth: '0x1514000000000000000000000000000000000000',
|
|
716
|
+
routerConfigs: (_routerConfigs26 = {}, _routerConfigs26[UniversalRouterVersion.V1_2] = {
|
|
717
|
+
address: '0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD',
|
|
718
|
+
creationBlock: 2305094
|
|
719
|
+
}, _routerConfigs26[UniversalRouterVersion.V2_0] = {
|
|
720
|
+
address: '0x5dF345fB4e5F4791869bFD9cbCa941D931e6E781',
|
|
721
|
+
creationBlock: 2305094
|
|
722
|
+
}, _routerConfigs26)
|
|
723
|
+
}, _CHAIN_CONFIGS[196] = {
|
|
724
|
+
weth: '0xe538905cf8410324e03A5A23C1c177a474D59b2b',
|
|
725
|
+
routerConfigs: (_routerConfigs27 = {}, _routerConfigs27[UniversalRouterVersion.V1_2] = {
|
|
726
|
+
address: '0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD',
|
|
727
|
+
creationBlock: 196
|
|
728
|
+
}, _routerConfigs27[UniversalRouterVersion.V2_0] = {
|
|
729
|
+
address: '0x6ae74ec9d067c734060fc5edb66fc6d48682970e',
|
|
730
|
+
creationBlock: 196
|
|
731
|
+
}, _routerConfigs27)
|
|
696
732
|
}, _CHAIN_CONFIGS[999] = {
|
|
697
733
|
weth: '0x5555555555555555555555555555555555555555',
|
|
698
|
-
routerConfigs: (
|
|
734
|
+
routerConfigs: (_routerConfigs28 = {}, _routerConfigs28[UniversalRouterVersion.V1_2] = {
|
|
699
735
|
address: '0x7d3D28dee339C17452A4d6b53C71b2557278B530',
|
|
700
736
|
creationBlock: 9273064
|
|
701
|
-
},
|
|
702
|
-
address: '
|
|
737
|
+
}, _routerConfigs28[UniversalRouterVersion.V2_0] = {
|
|
738
|
+
address: '0xE65081EFa5ad4A196B1Df768716c337e6AB140E9',
|
|
703
739
|
creationBlock: 9273064
|
|
704
|
-
},
|
|
740
|
+
}, _routerConfigs28)
|
|
705
741
|
}, _CHAIN_CONFIGS);
|
|
706
742
|
var UNIVERSAL_ROUTER_ADDRESS = function UNIVERSAL_ROUTER_ADDRESS(version, chainId) {
|
|
707
743
|
if (!(chainId in CHAIN_CONFIGS)) throw new Error("Universal Router not deployed on chain " + chainId);
|