@pioneer-platform/pioneer-coins 8.1.78 → 8.1.79
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/address.d.ts +1 -1
- package/lib/address.js +10 -6
- package/package.json +1 -1
package/lib/address.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const addressInfoForCoin: (symbol: string, isTestnet?: boolean, scriptType?: string) => any;
|
|
1
|
+
export declare const addressInfoForCoin: (symbol: string, isTestnet?: boolean, scriptType?: string, showDisplay?: boolean) => any;
|
package/lib/address.js
CHANGED
|
@@ -8,7 +8,11 @@ exports.addressInfoForCoin = void 0;
|
|
|
8
8
|
var log = require('@pioneer-platform/loggerdog')();
|
|
9
9
|
var paths_1 = require("./paths");
|
|
10
10
|
var coins_1 = require("./coins");
|
|
11
|
-
var addressInfoForCoin = function (symbol, isTestnet, scriptType) {
|
|
11
|
+
var addressInfoForCoin = function (symbol, isTestnet, scriptType, showDisplay) {
|
|
12
|
+
if (!isTestnet)
|
|
13
|
+
isTestnet = false;
|
|
14
|
+
if (!showDisplay)
|
|
15
|
+
showDisplay = false;
|
|
12
16
|
var paths = (0, paths_1.getPaths)(paths_1.blockchains);
|
|
13
17
|
log.info('paths', paths);
|
|
14
18
|
symbol = symbol.toUpperCase();
|
|
@@ -18,14 +22,14 @@ var addressInfoForCoin = function (symbol, isTestnet, scriptType) {
|
|
|
18
22
|
}
|
|
19
23
|
//validate script type options
|
|
20
24
|
var addressInfo = {
|
|
21
|
-
|
|
25
|
+
address_n: blockchainEntry.addressNListMaster,
|
|
22
26
|
coin: coins_1.COIN_MAP_KEEPKEY_LONG[symbol.toUpperCase()],
|
|
23
|
-
|
|
27
|
+
script_type: blockchainEntry.script_type,
|
|
24
28
|
showDisplay: blockchainEntry.showDisplay
|
|
25
29
|
};
|
|
26
|
-
if (isTestnet && blockchainEntry.testnet) {
|
|
27
|
-
|
|
28
|
-
}
|
|
30
|
+
// if (isTestnet && blockchainEntry.testnet) {
|
|
31
|
+
// addressInfo.addressNList[1] += 1; // Incrementing the account index for testnet
|
|
32
|
+
// }
|
|
29
33
|
return addressInfo;
|
|
30
34
|
};
|
|
31
35
|
exports.addressInfoForCoin = addressInfoForCoin;
|