@ring-protocol/universal-router-sdk 0.1.35 → 0.1.37
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 +14 -5
- 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 +14 -5
- package/dist/universal-router-sdk.esm.js.map +1 -1
- package/package.json +8 -8
|
@@ -457,7 +457,7 @@ function getPathCurrency(currency, pool) {
|
|
|
457
457
|
RouterActionType["UnwrapWETH"] = "UnwrapWETH";
|
|
458
458
|
})(exports.RouterActionType || (exports.RouterActionType = {}));
|
|
459
459
|
|
|
460
|
-
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;
|
|
460
|
+
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, _routerConfigs29, _CHAIN_CONFIGS;
|
|
461
461
|
(function (UniversalRouterVersion) {
|
|
462
462
|
UniversalRouterVersion["V1_2"] = "1.2";
|
|
463
463
|
UniversalRouterVersion["V2_0"] = "2.0";
|
|
@@ -722,18 +722,27 @@ var CHAIN_CONFIGS = (_CHAIN_CONFIGS = {}, _CHAIN_CONFIGS[1] = {
|
|
|
722
722
|
address: '0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD',
|
|
723
723
|
creationBlock: 196
|
|
724
724
|
}, _routerConfigs27[exports.UniversalRouterVersion.V2_0] = {
|
|
725
|
-
address: '
|
|
725
|
+
address: '0xe5da3186011c61e0d6bd6a4a4ca51ee7c1d3f7b2',
|
|
726
726
|
creationBlock: 196
|
|
727
727
|
}, _routerConfigs27)
|
|
728
|
+
}, _CHAIN_CONFIGS[4326] = {
|
|
729
|
+
weth: '0x4200000000000000000000000000000000000006',
|
|
730
|
+
routerConfigs: (_routerConfigs28 = {}, _routerConfigs28[exports.UniversalRouterVersion.V1_2] = {
|
|
731
|
+
address: '0x48fD03529D2a91bE835f07f6b72f53b4Aad6093D',
|
|
732
|
+
creationBlock: 7574715
|
|
733
|
+
}, _routerConfigs28[exports.UniversalRouterVersion.V2_0] = {
|
|
734
|
+
address: '0x48fD03529D2a91bE835f07f6b72f53b4Aad6093D',
|
|
735
|
+
creationBlock: 7574715
|
|
736
|
+
}, _routerConfigs28)
|
|
728
737
|
}, _CHAIN_CONFIGS[999] = {
|
|
729
738
|
weth: '0x5555555555555555555555555555555555555555',
|
|
730
|
-
routerConfigs: (
|
|
739
|
+
routerConfigs: (_routerConfigs29 = {}, _routerConfigs29[exports.UniversalRouterVersion.V1_2] = {
|
|
731
740
|
address: '0x7d3D28dee339C17452A4d6b53C71b2557278B530',
|
|
732
741
|
creationBlock: 9273064
|
|
733
|
-
},
|
|
742
|
+
}, _routerConfigs29[exports.UniversalRouterVersion.V2_0] = {
|
|
734
743
|
address: '0xE65081EFa5ad4A196B1Df768716c337e6AB140E9',
|
|
735
744
|
creationBlock: 9273064
|
|
736
|
-
},
|
|
745
|
+
}, _routerConfigs29)
|
|
737
746
|
}, _CHAIN_CONFIGS);
|
|
738
747
|
var UNIVERSAL_ROUTER_ADDRESS = function UNIVERSAL_ROUTER_ADDRESS(version, chainId) {
|
|
739
748
|
if (!(chainId in CHAIN_CONFIGS)) throw new Error("Universal Router not deployed on chain " + chainId);
|