@orbs-network/twap 1.18.1 → 1.18.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/src/configs.d.ts +3 -1
- package/dist/src/configs.js +2 -0
- package/dist/src/openocean.js +1 -0
- package/package.json +1 -1
package/dist/src/configs.d.ts
CHANGED
|
@@ -23,7 +23,8 @@ export declare enum OdosOnlyDex {
|
|
|
23
23
|
Arbidex = "Arbidex Classic,Arbidex Quantum"
|
|
24
24
|
}
|
|
25
25
|
export declare enum OpenOceanOnlyDex {
|
|
26
|
-
Thena = "43,47"
|
|
26
|
+
Thena = "43,47",
|
|
27
|
+
Lynex = "Lynex"
|
|
27
28
|
}
|
|
28
29
|
export interface Config {
|
|
29
30
|
chainId: number;
|
|
@@ -2081,6 +2082,7 @@ export declare const Configs: {
|
|
|
2081
2082
|
Arbidex: Config;
|
|
2082
2083
|
Thena: Config;
|
|
2083
2084
|
PancakeSwap: Config;
|
|
2085
|
+
Lynex: Config;
|
|
2084
2086
|
};
|
|
2085
2087
|
export declare const chainConfig: (chainId: number) => {
|
|
2086
2088
|
twapAbi: ({
|
package/dist/src/configs.js
CHANGED
|
@@ -58,6 +58,7 @@ var OdosOnlyDex;
|
|
|
58
58
|
var OpenOceanOnlyDex;
|
|
59
59
|
(function (OpenOceanOnlyDex) {
|
|
60
60
|
OpenOceanOnlyDex["Thena"] = "43,47";
|
|
61
|
+
OpenOceanOnlyDex["Lynex"] = "Lynex";
|
|
61
62
|
})(OpenOceanOnlyDex = exports.OpenOceanOnlyDex || (exports.OpenOceanOnlyDex = {}));
|
|
62
63
|
const defaultAbis = {
|
|
63
64
|
twapAbi: TWAP_json_1.default.abi,
|
|
@@ -85,6 +86,7 @@ exports.Configs = {
|
|
|
85
86
|
Arbidex: Object.assign(Object.assign({}, exports.ChainConfigs.arb), { name: "Arbidex", partner: "Orbs:TWAP:Arbidex", exchangeAddress: "0x8ffde23Fba2d7Aea9C3CBf2d5B7B533BB46754a8", exchangeType: "OdosExchange", pathfinderKey: OdosOnlyDex.Arbidex }),
|
|
86
87
|
Thena: Object.assign(Object.assign({}, exports.ChainConfigs.bsc), { name: "Thena", partner: "Orbs:TWAP:Thena", exchangeAddress: "0xc2aBC02acd77Bb2407efA22348dA9afC8B375290", exchangeType: "OpenOceanExchange", pathfinderKey: OpenOceanOnlyDex.Thena }),
|
|
87
88
|
PancakeSwap: Object.assign(Object.assign({}, exports.ChainConfigs.bsc), { name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0x3dD428151c697Aa1a3E5d0ee6A52768E70D85daE", exchangeType: "ParaswapExchange", pathfinderKey: ParaswapOnlyDex.PancakeSwap }),
|
|
89
|
+
Lynex: Object.assign(Object.assign({}, exports.ChainConfigs.linea), { name: "Lynex", partner: "Orbs:TWAP:Lynex", exchangeAddress: "0x72e3e1fD5D2Ee2F1C2Eb695206D490a1D45C3835", exchangeType: "OpenOceanExchange", pathfinderKey: OpenOceanOnlyDex.Lynex }),
|
|
88
90
|
};
|
|
89
91
|
const chainConfig = (chainId) => lodash_1.default.find(exports.ChainConfigs, (c) => c.chainId === chainId);
|
|
90
92
|
exports.chainConfig = chainConfig;
|
package/dist/src/openocean.js
CHANGED
|
@@ -26,6 +26,7 @@ var OpenOcean;
|
|
|
26
26
|
[web3_candies_1.networks.poly.id]: "polygon",
|
|
27
27
|
[web3_candies_1.networks.ftm.id]: "fantom",
|
|
28
28
|
[web3_candies_1.networks.avax.id]: "avax",
|
|
29
|
+
[web3_candies_1.networks.linea.id]: "linea",
|
|
29
30
|
};
|
|
30
31
|
function findRoute(chainId, src, dst, amountIn, exchangeAdapter = web3_candies_1.zeroAddress, onlyDex, partner) {
|
|
31
32
|
return __awaiter(this, void 0, void 0, function* () {
|