@pioneer-platform/blockbook 8.27.5 → 8.30.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @pioneer-platform/blockbook
2
2
 
3
+ ## 8.30.0
4
+
5
+ ### Minor Changes
6
+
7
+ - chore: feat(pioneer-sdk): Add ERC-20/BEP-20 token table to portfolio dashboard
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @pioneer-platform/nodes@8.28.0
13
+
14
+ ## 8.29.0
15
+
16
+ ### Minor Changes
17
+
18
+ - chore: feat(pioneer-sdk): Add transaction history integration
19
+
20
+ ## 8.28.0
21
+
22
+ ### Minor Changes
23
+
24
+ - feat(pioneer-sdk): Add transaction history integration
25
+
3
26
  ## 8.27.5
4
27
 
5
28
  ### Patch Changes
package/lib/index.js CHANGED
@@ -387,7 +387,7 @@ var update_legacy_urls = function (symbol) {
387
387
  };
388
388
  var init_network = function (servers) {
389
389
  return __awaiter(this, void 0, void 0, function () {
390
- var tag, SEED_NODES, blockbooks, i, blockbook, symbol, serviceUrl, priority, symbol, nodes_1, e_1;
390
+ var tag, SEED_NODES, blockbooks, i, blockbook, symbol, serviceUrl, NOW_NODES_API_CURRENT, priority, symbol, nodes_1, e_1;
391
391
  return __generator(this, function (_a) {
392
392
  switch (_a.label) {
393
393
  case 0:
@@ -423,9 +423,11 @@ var init_network = function (servers) {
423
423
  symbol = blockbook.symbol.toUpperCase();
424
424
  serviceUrl = blockbook.service;
425
425
  // CRITICAL FIX: Replace {API_KEY} placeholder with actual API key for NowNodes
426
+ // Re-read env variable dynamically (may be loaded after module initialization via dotenv)
426
427
  if (serviceUrl.includes('nownodes.io') && serviceUrl.includes('{API_KEY}')) {
427
- if (NOW_NODES_API) {
428
- serviceUrl = serviceUrl.replace('{API_KEY}', NOW_NODES_API);
428
+ NOW_NODES_API_CURRENT = process.env['NOW_NODES_API'] || process.env['NOWNODES_API_KEY'];
429
+ if (NOW_NODES_API_CURRENT) {
430
+ serviceUrl = serviceUrl.replace('{API_KEY}', NOW_NODES_API_CURRENT);
429
431
  console.log('[DEBUG] Replaced {API_KEY} in service URL for', blockbook.symbol);
430
432
  log.info(tag, "Configured NowNodes HTTP service for ".concat(blockbook.symbol, " with API key"));
431
433
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/blockbook",
3
- "version": "8.27.5",
3
+ "version": "8.30.0",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "scripts": {
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@pioneer-platform/loggerdog": "^8.11.0",
15
- "@pioneer-platform/nodes": "^8.26.2",
15
+ "@pioneer-platform/nodes": "^8.28.0",
16
16
  "@pioneer-platform/pioneer-caip": "^9.19.0",
17
17
  "@pioneer-platform/utxo-crypto": "^8.11.0",
18
18
  "@types/request-promise-native": "^1.0.17",