@pioneer-platform/changelly-client 8.3.2 → 8.3.3
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 +15 -15
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare const TAG = " | blocknative | ";
|
|
|
3
3
|
declare const CHANGELLY_API_KEY: string | undefined;
|
|
4
4
|
declare const CHANGELLY_API_SECRET: string | undefined;
|
|
5
5
|
declare let changelly: any;
|
|
6
|
-
declare let
|
|
6
|
+
declare let ChainToNetworkId: any;
|
|
7
7
|
declare let networkSupport: any[];
|
|
8
8
|
declare function get_currencies(): Promise<any>;
|
|
9
9
|
declare function create_transaction(from: string, to: string, address: string, amount: number, extraId?: string): Promise<any>;
|
package/lib/index.js
CHANGED
|
@@ -44,25 +44,25 @@ if (!CHANGELLY_API_KEY)
|
|
|
44
44
|
if (!CHANGELLY_API_SECRET)
|
|
45
45
|
throw new Error('CHANGELLY_API_SECRET not set');
|
|
46
46
|
var changelly;
|
|
47
|
-
var
|
|
47
|
+
var ChainToNetworkId = require("@pioneer-platform/pioneer-caip").ChainToNetworkId;
|
|
48
48
|
var networkSupport = [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
ChainToNetworkId["XRP"],
|
|
50
|
+
ChainToNetworkId["DASH"],
|
|
51
|
+
ChainToNetworkId["ZEC"],
|
|
52
52
|
// shortListSymbolToCaip["BSV"], //TODO
|
|
53
53
|
// shortListSymbolToCaip["ADA"], //TODO
|
|
54
54
|
// shortListSymbolToCaip["EOS"], //TODO
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
55
|
+
ChainToNetworkId["GAIA"],
|
|
56
|
+
ChainToNetworkId["BNB"],
|
|
57
|
+
ChainToNetworkId["DOGE"],
|
|
58
|
+
ChainToNetworkId["BTC"],
|
|
59
|
+
ChainToNetworkId["ETH"],
|
|
60
|
+
ChainToNetworkId["LTC"],
|
|
61
|
+
ChainToNetworkId["THOR"],
|
|
62
|
+
ChainToNetworkId["BCH"],
|
|
63
|
+
ChainToNetworkId["GNO"],
|
|
64
|
+
ChainToNetworkId["MATIC"],
|
|
65
|
+
ChainToNetworkId["AVAX"],
|
|
66
66
|
];
|
|
67
67
|
module.exports = {
|
|
68
68
|
init: function (settings) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pioneer-platform/changelly-client",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.3",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"ts-jest": "^29.0.5",
|
|
30
30
|
"typescript": "^5.0.2"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "03098812c1c11abb9d60a080b54fa065fc6408db"
|
|
33
33
|
}
|