@pioneer-platform/pioneer-router 8.4.9 → 8.4.12
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/index.d.ts +1 -1
- package/lib/index.js +3 -3
- package/package.json +6 -6
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const TAG = " | Pioneer-router | ";
|
|
2
2
|
declare const log: any;
|
|
3
3
|
declare let thorswap: any;
|
|
4
|
-
declare const caipToRango: any;
|
|
4
|
+
declare const caipToRango: any, caipToNetworkId: any;
|
|
5
5
|
declare let rango: any;
|
|
6
6
|
declare let changelly: any;
|
|
7
7
|
declare let osmosis: any;
|
package/lib/index.js
CHANGED
|
@@ -78,7 +78,7 @@ var TAG = " | Pioneer-router | ";
|
|
|
78
78
|
var log = require('@pioneer-platform/loggerdog')();
|
|
79
79
|
//thorswap
|
|
80
80
|
var thorswap = require("@pioneer-platform/thorswap-client");
|
|
81
|
-
var
|
|
81
|
+
var _a = require("@pioneer-platform/pioneer-caip"), caipToRango = _a.caipToRango, caipToNetworkId = _a.caipToNetworkId;
|
|
82
82
|
//rango
|
|
83
83
|
var rango = require("@pioneer-platform/rango-client");
|
|
84
84
|
//changelly
|
|
@@ -228,8 +228,8 @@ function get_quote(quote) {
|
|
|
228
228
|
switch (_a.label) {
|
|
229
229
|
case 0:
|
|
230
230
|
_a.trys.push([0, 5, , 6]);
|
|
231
|
-
sellChain = quote.sellAsset.caip;
|
|
232
|
-
buyChain = quote.buyAsset.caip;
|
|
231
|
+
sellChain = caipToNetworkId(quote.sellAsset.caip);
|
|
232
|
+
buyChain = caipToNetworkId(quote.buyAsset.caip);
|
|
233
233
|
integrations = Object.keys(NetworksByIntegration);
|
|
234
234
|
quotes = [];
|
|
235
235
|
log.info("sellChain: ", sellChain);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pioneer-platform/pioneer-router",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.12",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"clean": "rm -rf coverage src/**/*.js src/**/*.map lib node_modules"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@pioneer-platform/changelly-client": "^8.3.
|
|
24
|
-
"@pioneer-platform/osmosis-client": "0.0.
|
|
25
|
-
"@pioneer-platform/pioneer-caip": "^9.2.
|
|
26
|
-
"@pioneer-platform/rango-client": "8.3.
|
|
27
|
-
"@pioneer-platform/thorswap-client": "^8.3.
|
|
23
|
+
"@pioneer-platform/changelly-client": "^8.3.3",
|
|
24
|
+
"@pioneer-platform/osmosis-client": "0.0.7",
|
|
25
|
+
"@pioneer-platform/pioneer-caip": "^9.2.13",
|
|
26
|
+
"@pioneer-platform/rango-client": "^8.3.9",
|
|
27
|
+
"@pioneer-platform/thorswap-client": "^8.3.4",
|
|
28
28
|
"dotenv": "^8.2.0",
|
|
29
29
|
"short-uuid": "^4.2.2"
|
|
30
30
|
},
|