@pioneer-platform/nodes 8.3.17 → 8.4.1

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 ADDED
@@ -0,0 +1,21 @@
1
+ # @pioneer-platform/nodes
2
+
3
+ ## 8.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Automated patch version bump for all packages
8
+ - Updated dependencies
9
+ - @pioneer-platform/loggerdog@8.4.1
10
+ - @pioneer-platform/pioneer-caip@9.3.1
11
+
12
+ ## 8.4.0
13
+
14
+ ### Minor Changes
15
+
16
+ - Release: minor version bump for all packages
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+ - @pioneer-platform/loggerdog@8.4.0
package/lib/index.d.ts CHANGED
@@ -1 +1,51 @@
1
- export {};
1
+ export declare const init: (type: string, config: any, isTestnet: boolean) => Promise<boolean>;
2
+ export declare const getWeb3Nodes: () => {
3
+ networkId: string;
4
+ service: string;
5
+ }[];
6
+ export declare const getNodes: () => {
7
+ networkId: string;
8
+ service: string;
9
+ }[];
10
+ export declare const getNode: (network: string, serviceId: string) => any;
11
+ export declare const getBlockbooks: () => ({
12
+ symbol: string;
13
+ blockchain: string;
14
+ caip: string;
15
+ networkId: string;
16
+ type: string;
17
+ service: string;
18
+ websocket: string;
19
+ } | {
20
+ symbol: string;
21
+ blockchain: string;
22
+ caip: string;
23
+ type: string;
24
+ service: string;
25
+ websocket: string;
26
+ networkId?: undefined;
27
+ } | {
28
+ symbol: string;
29
+ blockchain: string;
30
+ caip: string;
31
+ type: string;
32
+ service: string;
33
+ networkId?: undefined;
34
+ websocket?: undefined;
35
+ } | {
36
+ symbol: string;
37
+ blockchain: string;
38
+ caip: string;
39
+ networkId: string;
40
+ type: string;
41
+ service: string;
42
+ websocket?: undefined;
43
+ })[];
44
+ export declare const getUnchaineds: () => {
45
+ caip: any;
46
+ swagger: any;
47
+ service: any;
48
+ wss: any;
49
+ type: string;
50
+ blockchain: any;
51
+ }[];
package/lib/index.js CHANGED
@@ -51,32 +51,37 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
51
51
  }
52
52
  };
53
53
  Object.defineProperty(exports, "__esModule", { value: true });
54
+ exports.getUnchaineds = exports.getBlockbooks = exports.getNode = exports.getNodes = exports.getWeb3Nodes = exports.init = void 0;
54
55
  var TAG = " | Pioneer Nodes | ";
55
56
  var log = require('@pioneer-platform/loggerdog')();
56
57
  var _a = require("@pioneer-platform/pioneer-caip"), shortListNameToCaip = _a.shortListNameToCaip, shortListSymbolToCaip = _a.shortListSymbolToCaip, evmCaips = _a.evmCaips;
57
58
  var seeds_1 = require("./seeds");
58
59
  var web3_1 = require("./web3");
59
60
  var NODES = web3_1.web3Seeds;
60
- module.exports = {
61
- init: function (type, config, isTestnet) {
62
- return init_nodes(type, config, isTestnet);
63
- },
64
- getWeb3Nodes: function () {
65
- return web3_1.web3Seeds;
66
- },
67
- getNodes: function () {
68
- return NODES;
69
- },
70
- getNode: function (network, serviceId) {
71
- return get_node(network, serviceId);
72
- },
73
- getBlockbooks: function () {
74
- return seeds_1.blockbooks;
75
- },
76
- getUnchaineds: function () {
77
- return get_unchaineds();
78
- }
61
+ var init = function (type, config, isTestnet) {
62
+ return init_nodes(type, config, isTestnet);
63
+ };
64
+ exports.init = init;
65
+ var getWeb3Nodes = function () {
66
+ return web3_1.web3Seeds;
67
+ };
68
+ exports.getWeb3Nodes = getWeb3Nodes;
69
+ var getNodes = function () {
70
+ return NODES;
71
+ };
72
+ exports.getNodes = getNodes;
73
+ var getNode = function (network, serviceId) {
74
+ return get_node(network, serviceId);
75
+ };
76
+ exports.getNode = getNode;
77
+ var getBlockbooks = function () {
78
+ return seeds_1.blockbooks;
79
+ };
80
+ exports.getBlockbooks = getBlockbooks;
81
+ var getUnchaineds = function () {
82
+ return get_unchaineds();
79
83
  };
84
+ exports.getUnchaineds = getUnchaineds;
80
85
  var get_unchaineds = function () {
81
86
  var tag = TAG + " | get_unchaineds | ";
82
87
  try {
package/lib/seeds.d.ts CHANGED
@@ -8,6 +8,34 @@ export declare let CURRENT_CONTEXT_NODE_MAP: {
8
8
  GAIAD: string;
9
9
  };
10
10
  };
11
+ /**
12
+ * Blockbook Node Configuration
13
+ *
14
+ * MULTI-NODE COVERAGE (Consensus-ready chains with 2+ nodes):
15
+ * ✅ BTC: NowNodes + Zelcore (2 nodes)
16
+ * ✅ LTC: NowNodes + Zelcore (2 nodes)
17
+ * ✅ DOGE: NowNodes + Zelcore (2 nodes) - SUPPORTS UNCONFIRMED UTXOS!
18
+ * ✅ BCH: NowNodes + Zelcore (2 nodes)
19
+ * ✅ DASH: NowNodes + Zelcore (2 nodes)
20
+ * ✅ ZEC: NowNodes + Zelcore (2 nodes)
21
+ * ✅ RVN: Zelcore only (1 node - Zelcore exclusive)
22
+ * ✅ ETH: ShapeShift (1 node)
23
+ * ✅ xDAI: ShapeShift (1 node)
24
+ *
25
+ * SINGLE NODE ONLY (Need backup nodes):
26
+ * ⚠️ DGB: NowNodes only
27
+ * ⚠️ GRS: NowNodes only
28
+ * ⚠️ DCR: NowNodes only
29
+ * ⚠️ BTG: NowNodes only
30
+ * ⚠️ KMD: NowNodes only
31
+ *
32
+ * DISABLED:
33
+ * 💀 BSV: NowNodes (HTTP 400 - not working)
34
+ * 💀 ARB: NowNodes (Invalid URL)
35
+ * 💀 ShapeShift UTXO chains (BTC, LTC, DOGE, BCH) - All return HTTP 530
36
+ *
37
+ * Last tested: 2025-10-03
38
+ */
11
39
  export declare const blockbooks: ({
12
40
  symbol: string;
13
41
  blockchain: string;
@@ -32,6 +60,14 @@ export declare const blockbooks: ({
32
60
  service: string;
33
61
  networkId?: undefined;
34
62
  websocket?: undefined;
63
+ } | {
64
+ symbol: string;
65
+ blockchain: string;
66
+ caip: string;
67
+ networkId: string;
68
+ type: string;
69
+ service: string;
70
+ websocket?: undefined;
35
71
  })[];
36
72
  interface NodeEntry {
37
73
  key: string;
package/lib/seeds.js CHANGED
@@ -59,8 +59,38 @@ exports.TIER_ONE_SEED = {
59
59
  };
60
60
  //TODO dynamic context setting based on health
61
61
  exports.CURRENT_CONTEXT_NODE_MAP = exports.TIER_ONE_SEED;
62
+ /**
63
+ * Blockbook Node Configuration
64
+ *
65
+ * MULTI-NODE COVERAGE (Consensus-ready chains with 2+ nodes):
66
+ * ✅ BTC: NowNodes + Zelcore (2 nodes)
67
+ * ✅ LTC: NowNodes + Zelcore (2 nodes)
68
+ * ✅ DOGE: NowNodes + Zelcore (2 nodes) - SUPPORTS UNCONFIRMED UTXOS!
69
+ * ✅ BCH: NowNodes + Zelcore (2 nodes)
70
+ * ✅ DASH: NowNodes + Zelcore (2 nodes)
71
+ * ✅ ZEC: NowNodes + Zelcore (2 nodes)
72
+ * ✅ RVN: Zelcore only (1 node - Zelcore exclusive)
73
+ * ✅ ETH: ShapeShift (1 node)
74
+ * ✅ xDAI: ShapeShift (1 node)
75
+ *
76
+ * SINGLE NODE ONLY (Need backup nodes):
77
+ * ⚠️ DGB: NowNodes only
78
+ * ⚠️ GRS: NowNodes only
79
+ * ⚠️ DCR: NowNodes only
80
+ * ⚠️ BTG: NowNodes only
81
+ * ⚠️ KMD: NowNodes only
82
+ *
83
+ * DISABLED:
84
+ * 💀 BSV: NowNodes (HTTP 400 - not working)
85
+ * 💀 ARB: NowNodes (Invalid URL)
86
+ * 💀 ShapeShift UTXO chains (BTC, LTC, DOGE, BCH) - All return HTTP 530
87
+ *
88
+ * Last tested: 2025-10-03
89
+ */
62
90
  exports.blockbooks = [
63
- //NOWNODES
91
+ // ============================================================================
92
+ // NOWNODES - Primary provider
93
+ // ============================================================================
64
94
  {
65
95
  symbol: "BTC",
66
96
  blockchain: "bitcoin",
@@ -111,13 +141,14 @@ exports.blockbooks = [
111
141
  service: "https://bchbook.nownodes.io/cf522543-87e2-4dd6-b645-2fbfd0bc61f6",
112
142
  websocket: "wss://bch.nownodes.io/wss"
113
143
  },
114
- {
115
- symbol: "BSV",
116
- blockchain: "bitcoin sv",
117
- caip: "bip122:0000000000000000018b0da51421703b/slip44:1",
118
- type: "blockbook",
119
- service: "https://bsvbook.nownodes.io/cf522543-87e2-4dd6-b645-2fbfd0bc61f6"
120
- },
144
+ // DISABLED - Returns HTTP 400
145
+ // {
146
+ // symbol:"BSV",
147
+ // blockchain:"bitcoin sv",
148
+ // caip:"bip122:0000000000000000018b0da51421703b/slip44:1",
149
+ // type:"blockbook",
150
+ // service:"https://bsvbook.nownodes.io/cf522543-87e2-4dd6-b645-2fbfd0bc61f6"
151
+ // },
121
152
  {
122
153
  symbol: "GRS",
123
154
  blockchain: "Groestlcoin",
@@ -129,13 +160,7 @@ exports.blockbooks = [
129
160
  symbol: "DCR",
130
161
  blockchain: "decred",
131
162
  caip: "bip122:00000ac5927c594d49cc0bdb81759d0d/slip44:42",
132
- type: "blockbook",
133
- service: "https://dcr-blockbook.nownodes.io/cf522543-87e2-4dd6-b645-2fbfd0bc61f6"
134
- },
135
- {
136
- symbol: "DCR",
137
- blockchain: "decred",
138
- caip: "bip122:00000ac5927c594d49cc0bdb81759d0d/slip44:42",
163
+ networkId: "bip122:00000ac5927c594d49cc0bdb81759d0d",
139
164
  type: "blockbook",
140
165
  service: "https://dcr-blockbook.nownodes.io/cf522543-87e2-4dd6-b645-2fbfd0bc61f6"
141
166
  },
@@ -160,14 +185,90 @@ exports.blockbooks = [
160
185
  type: "blockbook",
161
186
  service: "https://zecbook.nownodes.io/cf522543-87e2-4dd6-b645-2fbfd0bc61f6"
162
187
  },
188
+ // ============================================================================
189
+ // ZELCORE - Secondary provider (consensus nodes)
190
+ // ============================================================================
191
+ {
192
+ symbol: "BTC",
193
+ blockchain: "bitcoin",
194
+ caip: "bip122:000000000019d6689c085ae165831e93/slip44:0",
195
+ networkId: "bip122:000000000019d6689c085ae165831e93",
196
+ type: "blockbook",
197
+ service: "https://blockbook.btc-1.zelcore.io"
198
+ },
199
+ {
200
+ symbol: "LTC",
201
+ blockchain: "litecoin",
202
+ caip: "bip122:12a765e31ffd4059bada1e25190f6e98/slip44:2",
203
+ networkId: "bip122:12a765e31ffd4059bada1e25190f6e98",
204
+ type: "blockbook",
205
+ service: "https://blockbook.ltc-1.zelcore.io"
206
+ },
207
+ {
208
+ symbol: "DOGE",
209
+ blockchain: "dogecoin",
210
+ caip: "bip122:00000000001a91e3dace36e2be3bf030/slip44:3",
211
+ networkId: "bip122:00000000001a91e3dace36e2be3bf030",
212
+ type: "blockbook",
213
+ service: "https://blockbook.doge-1.zelcore.io"
214
+ },
215
+ {
216
+ symbol: "BCH",
217
+ blockchain: "bitcoincash",
218
+ caip: "bip122:000000000000000000651ef99cb9fcbe/slip44:145",
219
+ networkId: "bip122:000000000000000000651ef99cb9fcbe",
220
+ type: "blockbook",
221
+ service: "https://blockbook.bch-1.zelcore.io"
222
+ },
223
+ {
224
+ symbol: "DASH",
225
+ blockchain: "dash",
226
+ caip: "bip122:000007d91d1254d60e2dd1ae58038307/slip44:5",
227
+ networkId: "bip122:000007d91d1254d60e2dd1ae58038307",
228
+ type: "blockbook",
229
+ service: "https://blockbook.dash-1.zelcore.io"
230
+ },
231
+ {
232
+ symbol: "ZEC",
233
+ blockchain: "zcash",
234
+ caip: "bip122:00040fe8ec8471911baa1db1266ea15d/slip44:133",
235
+ networkId: "bip122:00040fe8ec8471911baa1db1266ea15d",
236
+ type: "blockbook",
237
+ service: "https://blockbook.zec-1.zelcore.io"
238
+ },
239
+ {
240
+ symbol: "RVN",
241
+ blockchain: "ravencoin",
242
+ caip: "bip122:000000000019d6689c085ae165831e93/slip44:175",
243
+ networkId: "bip122:000000000019d6689c085ae165831e93",
244
+ type: "blockbook",
245
+ service: "https://blockbook.rvn-1.zelcore.io"
246
+ },
247
+ // ============================================================================
248
+ // SHAPESHIFT - Tertiary provider (EVM chains only, UTXO chains are down)
249
+ // ============================================================================
250
+ {
251
+ symbol: "ETH",
252
+ blockchain: "ethereum",
253
+ caip: "eip155:1/slip44:60",
254
+ networkId: "eip155:1",
255
+ type: "blockbook",
256
+ service: "https://indexer.ethereum.shapeshift.com",
257
+ websocket: "wss://indexer.ethereum.shapeshift.com/websocket"
258
+ },
163
259
  {
164
- symbol: "ARB",
165
- blockchain: "Arbitrum",
166
- caip: "eip155:42161/slip44:60",
260
+ symbol: "xDAI",
261
+ blockchain: "gnosis",
262
+ caip: "eip155:100/slip44:60",
263
+ networkId: "eip155:100",
167
264
  type: "blockbook",
168
- service: "arb-blockbook.nownodes.io/cf522543-87e2-4dd6-b645-2fbfd0bc61f6"
265
+ service: "https://indexer.gnosis.shapeshift.com",
266
+ websocket: "wss://indexer.gnosis.shapeshift.com/websocket"
169
267
  },
170
- //SHAPESHIFT
268
+ // ============================================================================
269
+ // DEAD/DISABLED NODES - ShapeShift UTXO chains are down (HTTP 530)
270
+ // ============================================================================
271
+ //SHAPESHIFT UTXO CHAINS - ALL DOWN
171
272
  // {
172
273
  // symbol:"BASE",
173
274
  // blockchain:"Base",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/nodes",
3
- "version": "8.3.17",
3
+ "version": "8.4.1",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "scripts": {
@@ -20,7 +20,8 @@
20
20
  "clean": "rm -rf coverage src/**/*.js src/**/*.map lib node_modules"
21
21
  },
22
22
  "dependencies": {
23
- "@pioneer-platform/loggerdog": "^8.3.1",
23
+ "@pioneer-platform/loggerdog": "^8.4.1",
24
+ "@pioneer-platform/pioneer-caip": "^9.3.1",
24
25
  "dotenv": "^8.2.0"
25
26
  },
26
27
  "devDependencies": {