@pioneer-platform/pioneer 8.2.9 → 8.2.10
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.js +9 -9
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -124,11 +124,11 @@ var onStart = function () {
|
|
|
124
124
|
_a.label = 1;
|
|
125
125
|
case 1:
|
|
126
126
|
_a.trys.push([1, 5, , 6]);
|
|
127
|
-
log.
|
|
127
|
+
log.debug(tag, "starting...");
|
|
128
128
|
return [4 /*yield*/, nodesDB.find({ type: 'blockbook' })];
|
|
129
129
|
case 2:
|
|
130
130
|
servers = _a.sent();
|
|
131
|
-
log.
|
|
131
|
+
log.debug(tag, "servers: ", servers.length);
|
|
132
132
|
return [4 /*yield*/, blockbook.init(servers)
|
|
133
133
|
// networks.ANY.init('full')
|
|
134
134
|
];
|
|
@@ -264,7 +264,7 @@ var get_pubkey_balances = function (pubkey) {
|
|
|
264
264
|
balances_1 = [];
|
|
265
265
|
nfts = [];
|
|
266
266
|
positions = [];
|
|
267
|
-
log.
|
|
267
|
+
log.debug(tag, " scanning pubkey: ", pubkey.pubkey);
|
|
268
268
|
if (!(pubkey.type === "xpub" || pubkey.type === "zpub")) return [3 /*break*/, 7];
|
|
269
269
|
cacheKey = "balances:blockbook:getBalanceByXpub:".concat(pubkey.symbol, ":").concat(pubkey.pubkey);
|
|
270
270
|
return [4 /*yield*/, getFromCache(cacheKey)];
|
|
@@ -570,7 +570,7 @@ var get_pubkey_balances = function (pubkey) {
|
|
|
570
570
|
return [4 /*yield*/, pubkeysDB.bulkWrite(saveActions, { ordered: false })];
|
|
571
571
|
case 39:
|
|
572
572
|
updateSuccess = _d.sent();
|
|
573
|
-
log.
|
|
573
|
+
log.debug(tag, "updateSuccess: ", updateSuccess);
|
|
574
574
|
output.dbUpdate = updateSuccess;
|
|
575
575
|
_d.label = 40;
|
|
576
576
|
case 40:
|
|
@@ -702,11 +702,11 @@ var get_and_verify_pubkeys = function (username, context) {
|
|
|
702
702
|
synced.push(pubkeyInfo.blockchain);
|
|
703
703
|
// log.debug(tag,"balances: ",balances)
|
|
704
704
|
log.debug(tag, pubkeyInfo.symbol + " balances: ", balances);
|
|
705
|
-
log.
|
|
705
|
+
log.debug(tag, context + ": " + pubkeyInfo.symbol + " balances: ", balances.balances.length);
|
|
706
706
|
if (balances && balances.balances) {
|
|
707
707
|
pubkeyInfo.balances = balances.balances;
|
|
708
708
|
allBalances = allBalances.concat(balances.balances);
|
|
709
|
-
log.
|
|
709
|
+
log.debug(tag, context + ": " + pubkeyInfo.symbol + " allBalances: ", allBalances.length);
|
|
710
710
|
}
|
|
711
711
|
if (balances && balances.nfts)
|
|
712
712
|
pubkeys.nfts = balances.nfts;
|
|
@@ -727,7 +727,7 @@ var get_and_verify_pubkeys = function (username, context) {
|
|
|
727
727
|
for (i = 0; i < blockchains.length; i++) {
|
|
728
728
|
blockchain = blockchains[i];
|
|
729
729
|
if (synced.indexOf(blockchain) === -1) {
|
|
730
|
-
log.
|
|
730
|
+
log.debug(tag, context + " blockchain not synced: ", blockchain);
|
|
731
731
|
isSynced = false;
|
|
732
732
|
break;
|
|
733
733
|
}
|
|
@@ -897,7 +897,7 @@ var register_address = function (username, pubkey, context) {
|
|
|
897
897
|
return [4 /*yield*/, get_pubkey_balances(work)];
|
|
898
898
|
case 2:
|
|
899
899
|
result = _a.sent();
|
|
900
|
-
log.
|
|
900
|
+
log.debug(tag, "result: ", result);
|
|
901
901
|
return [2 /*return*/, queueId];
|
|
902
902
|
case 3:
|
|
903
903
|
e_7 = _a.sent();
|
|
@@ -1105,7 +1105,7 @@ var register_pubkeys = function (username, pubkeys, context) {
|
|
|
1105
1105
|
case 2:
|
|
1106
1106
|
if (!(i < pubkeys.length)) return [3 /*break*/, 16];
|
|
1107
1107
|
pubkeyInfo = pubkeys[i];
|
|
1108
|
-
log.
|
|
1108
|
+
log.debug(tag, "pubkeyInfo: ", pubkeyInfo);
|
|
1109
1109
|
nativeAsset = getNativeAssetForBlockchain(pubkeyInfo.blockchain);
|
|
1110
1110
|
if (!nativeAsset)
|
|
1111
1111
|
throw Error("104: invalid pubkey! unsupported by coins module!");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pioneer-platform/pioneer",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.10",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"clean": "rm -rf coverage src/**/*.js src/**/*.map lib node_modules"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@pioneer-platform/blockbook": "^8.1.
|
|
23
|
+
"@pioneer-platform/blockbook": "^8.1.61",
|
|
24
24
|
"@pioneer-platform/blocknative-client": "^8.1.27",
|
|
25
25
|
"@pioneer-platform/loggerdog": "^8.1.31",
|
|
26
26
|
"@pioneer-platform/pioneer-caip": "^8.1.79",
|
|
27
27
|
"@pioneer-platform/redis-queue": "^8.1.24",
|
|
28
|
-
"@pioneer-platform/unchained": "^8.1.
|
|
28
|
+
"@pioneer-platform/unchained": "^8.1.63",
|
|
29
29
|
"@pioneer-platform/zapper-client": "^8.1.26",
|
|
30
30
|
"dotenv": "^8.2.0"
|
|
31
31
|
},
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"ts-jest": "^29.0.5",
|
|
41
41
|
"typescript": "^5.0.2"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "b3f4397d3cd70785456466ce8ffdc2c5976b8b43"
|
|
44
44
|
}
|