@pioneer-platform/pioneer-coins 9.2.14 → 9.2.16
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/paths.d.ts +1 -0
- package/lib/paths.js +41 -1
- package/lib/thorchain.js +1 -1
- package/package.json +3 -2
package/lib/paths.d.ts
CHANGED
package/lib/paths.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getPaths = exports.blockchains = void 0;
|
|
3
|
+
exports.getPaths = exports.createPath = exports.blockchains = void 0;
|
|
4
4
|
var log = require('@pioneer-platform/loggerdog')();
|
|
5
5
|
exports.blockchains = [
|
|
6
6
|
// 'eip155:42161',
|
|
@@ -27,6 +27,28 @@ exports.blockchains = [
|
|
|
27
27
|
'cosmos:thorchain-mainnet-v1',
|
|
28
28
|
'bip122:0000000000196a45'
|
|
29
29
|
];
|
|
30
|
+
/*
|
|
31
|
+
Create paths from user input
|
|
32
|
+
|
|
33
|
+
blockchainchain
|
|
34
|
+
|
|
35
|
+
script type
|
|
36
|
+
|
|
37
|
+
account number
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
//custom paths
|
|
41
|
+
|
|
42
|
+
if evm
|
|
43
|
+
|
|
44
|
+
*/
|
|
45
|
+
function createPath(entry) {
|
|
46
|
+
try {
|
|
47
|
+
}
|
|
48
|
+
catch (e) {
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.createPath = createPath;
|
|
30
52
|
function getPaths(blockchains, isTestnet) {
|
|
31
53
|
var output = [];
|
|
32
54
|
if (!blockchains)
|
|
@@ -349,6 +371,24 @@ function getPaths(blockchains, isTestnet) {
|
|
|
349
371
|
};
|
|
350
372
|
output.push(entry);
|
|
351
373
|
}
|
|
374
|
+
if (blockchains.indexOf('bip122:0000000000196a45') >= 0) {
|
|
375
|
+
var entry = {
|
|
376
|
+
note: "Default zcash path",
|
|
377
|
+
type: "address",
|
|
378
|
+
coin: 'Zcash',
|
|
379
|
+
symbol: 'ZEC',
|
|
380
|
+
symbolSwapKit: 'ZEC',
|
|
381
|
+
network: 'bip122:0000000000196a45',
|
|
382
|
+
blockchain: 'zcash',
|
|
383
|
+
script_type: "p2pkh",
|
|
384
|
+
available_scripts_types: ['p2pkh'],
|
|
385
|
+
addressNList: [0x80000000 + 44, 0x80000000 + 133, 0x80000000 + 0],
|
|
386
|
+
addressNListMaster: [0x80000000 + 44, 0x80000000 + 133, 0x80000000 + 0, 0, 0],
|
|
387
|
+
curve: 'secp256k1',
|
|
388
|
+
showDisplay: false, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
|
|
389
|
+
};
|
|
390
|
+
output.push(entry);
|
|
391
|
+
}
|
|
352
392
|
return output;
|
|
353
393
|
}
|
|
354
394
|
exports.getPaths = getPaths;
|
package/lib/thorchain.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pioneer-platform/pioneer-coins",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.16",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"_moduleAliases": {
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@pioneer-platform/loggerdog": "^8.3.1",
|
|
19
|
-
"bignumber.js": "^9.0.1"
|
|
19
|
+
"bignumber.js": "^9.0.1",
|
|
20
|
+
"bs58check": "^3.0.1"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
22
23
|
"@types/express": "^4.17.6",
|