@pioneer-platform/nodes 8.11.9 → 8.11.11

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.
@@ -1 +1,2 @@
1
- $ tsc -p .
1
+
2
+ $ tsc -p .
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @pioneer-platform/nodes
2
2
 
3
+ ## 8.11.11
4
+
5
+ ### Patch Changes
6
+
7
+ - chore: fix: 📦 Add tsoa.json to Docker build
8
+ - Updated dependencies
9
+ - @pioneer-platform/pioneer-caip@9.10.1
10
+
11
+ ## 8.11.10
12
+
13
+ ### Patch Changes
14
+
15
+ - testing
16
+
3
17
  ## 8.11.9
4
18
 
5
19
  ### Patch Changes
package/lib/index.d.ts CHANGED
@@ -2,10 +2,12 @@ export declare const init: (type: string, config: any, isTestnet: boolean) => Pr
2
2
  export declare const getWeb3Nodes: () => {
3
3
  networkId: string;
4
4
  service: string;
5
+ tier: string;
5
6
  }[];
6
7
  export declare const getNodes: () => {
7
8
  networkId: string;
8
9
  service: string;
10
+ tier: string;
9
11
  }[];
10
12
  export declare const getNode: (network: string, serviceId: string) => any;
11
13
  export declare const getBlockbooks: () => ({
@@ -42,10 +44,10 @@ export declare const getBlockbooks: () => ({
42
44
  websocket?: undefined;
43
45
  })[];
44
46
  export declare const getUnchaineds: () => {
45
- caip: any;
47
+ networkId: any;
48
+ caip: string;
46
49
  swagger: any;
47
50
  service: any;
48
51
  wss: any;
49
52
  type: string;
50
- blockchain: any;
51
53
  }[];
package/lib/index.js CHANGED
@@ -88,36 +88,40 @@ var get_unchaineds = function () {
88
88
  // unchaineds filter
89
89
  var unchaineds = seeds_1.shapeshift.filter(function (node) { return node.type === "unchained"; });
90
90
  //console.log(tag, "unchaineds: ", unchaineds);
91
- //all networks
92
- var allNetworks = [];
93
- var swaggersByNetwork = {};
94
- var servicesByNetwork = {};
95
- var wssByNetwork = {};
91
+ //all networks by networkId (eip155:1, etc) NOT slugs
92
+ var allNetworkIds = [];
93
+ var swaggersByNetworkId = {};
94
+ var servicesByNetworkId = {};
95
+ var wssByNetworkId = {};
96
96
  for (var i = 0; i < unchaineds.length; i++) {
97
97
  var unchaind = unchaineds[i];
98
- log.debug(tag, "unchaind: ", unchaind.network);
99
- if (!allNetworks.includes(unchaind.network))
100
- allNetworks.push(unchaind.network);
98
+ // Use networkId if available, otherwise fall back to old slug mapping
99
+ var networkId = unchaind.networkId || shortListNameToCaip[unchaind.network];
100
+ if (!networkId) {
101
+ log.warn(tag, "No networkId found for ".concat(unchaind.network, ", skipping"));
102
+ continue;
103
+ }
104
+ log.debug(tag, "networkId: ", networkId);
105
+ if (!allNetworkIds.includes(networkId))
106
+ allNetworkIds.push(networkId);
101
107
  if (unchaind.swagger)
102
- swaggersByNetwork[unchaind.network] = unchaind.swagger;
108
+ swaggersByNetworkId[networkId] = unchaind.swagger;
103
109
  if (unchaind.value && unchaind.protocol == 'http')
104
- servicesByNetwork[unchaind.network] = unchaind.value;
110
+ servicesByNetworkId[networkId] = unchaind.value;
105
111
  if (unchaind.protocol == 'websocket')
106
- wssByNetwork[unchaind.network] = unchaind.value;
112
+ wssByNetworkId[networkId] = unchaind.value;
107
113
  }
108
114
  var output = [];
109
- for (var i = 0; i < allNetworks.length; i++) {
110
- var network = allNetworks[i];
111
- var caip = shortListNameToCaip[network];
112
- log.debug(tag, "caip: ", caip);
113
- //build unchaineds
115
+ for (var i = 0; i < allNetworkIds.length; i++) {
116
+ var networkId = allNetworkIds[i];
117
+ //build unchaineds - use networkId + CAIP for asset
114
118
  var unchainedEntry = {
115
- caip: caip,
116
- swagger: swaggersByNetwork[network],
117
- service: servicesByNetwork[network],
118
- wss: wssByNetwork[network],
119
+ networkId: networkId, // eip155:1, eip155:8453, etc (network identifier)
120
+ caip: networkId + '/slip44:60', // eip155:1/slip44:60 (ETH asset on that network)
121
+ swagger: swaggersByNetworkId[networkId],
122
+ service: servicesByNetworkId[networkId],
123
+ wss: wssByNetworkId[networkId],
119
124
  type: 'unchained',
120
- blockchain: network,
121
125
  };
122
126
  output.push(unchainedEntry);
123
127
  }
package/lib/seeds.d.ts CHANGED
@@ -72,6 +72,7 @@ interface NodeEntry {
72
72
  value: string;
73
73
  swagger?: string;
74
74
  network: string;
75
+ networkId?: string;
75
76
  protocol?: string;
76
77
  type: string;
77
78
  nodeType?: string;
package/lib/seeds.js CHANGED
@@ -109,8 +109,9 @@ exports.blockbooks = [
109
109
  },
110
110
  {
111
111
  symbol: "DGB",
112
- blockchain: "digibytes",
112
+ blockchain: "digibyte",
113
113
  caip: "bip122:4da631f2ac1bed857bd968c67c913978/slip44:20",
114
+ networkId: "bip122:4da631f2ac1bed857bd968c67c913978",
114
115
  type: "blockbook",
115
116
  service: "https://dgbbook.nownodes.io/cf522543-87e2-4dd6-b645-2fbfd0bc61f6",
116
117
  websocket: "wss://dgb.nownodes.io/wss"
@@ -330,98 +331,127 @@ exports.shapeshift = [
330
331
  protocol: "websocket",
331
332
  type: "unchained"
332
333
  },
333
- // DISABLED: ShapeShift Unchained APIs are offline/deprecated (causing timeouts)
334
- // The system will fall back to alternative providers (NowNodes Blockbook, BitGo, etc.)
335
- // {
336
- // key: "REACT_APP_UNCHAINED_ETHEREUM_HTTP_URL",
337
- // value: "https://api.ethereum.shapeshift.com",
338
- // swagger: "https://api.ethereum.shapeshift.com/swagger.json",
339
- // network: "ethereum",
340
- // protocol: "http",
341
- // type: "unchained"
342
- // },
343
- // {
344
- // key: "REACT_APP_UNCHAINED_ETHEREUM_WS_URL",
345
- // value: "wss://api.ethereum.shapeshift.com",
346
- // network: "ethereum",
347
- // protocol: "websocket",
348
- // type: "unchained"
349
- // },
350
- // {
351
- // key: "REACT_APP_UNCHAINED_AVALANCHE_HTTP_URL",
352
- // value: "https://api.avalanche.shapeshift.com",
353
- // swagger: "https://api.avalanche.shapeshift.com/swagger.json",
354
- // network: "avalanche",
355
- // protocol: "http",
356
- // type: "unchained"
357
- // },
358
- // {
359
- // key: "REACT_APP_UNCHAINED_AVALANCHE_WS_URL",
360
- // value: "wss://api.avalanche.shapeshift.com",
361
- // network: "avalanche",
362
- // protocol: "websocket",
363
- // type: "unchained"
364
- // },
365
- // {
366
- // key: "REACT_APP_UNCHAINED_OPTIMISM_HTTP_URL",
367
- // value: "https://api.optimism.shapeshift.com",
368
- // swagger: "https://api.optimism.shapeshift.com/swagger.json",
369
- // network: "optimism",
370
- // protocol: "http",
371
- // type: "unchained"
372
- // },
373
- // {
374
- // key: "REACT_APP_UNCHAINED_OPTIMISM_WS_URL",
375
- // value: "wss://api.optimism.shapeshift.com",
376
- // network: "optimism",
377
- // protocol: "websocket",
378
- // type: "unchained"
379
- // },
380
- // {
381
- // key: "REACT_APP_UNCHAINED_BNBSMARTCHAIN_HTTP_URL",
382
- // value: "https://api.bnbsmartchain.shapeshift.com",
383
- // swagger: "https://api.bnbsmartchain.shapeshift.com/swagger.json",
384
- // network: "bnbsmartchain",
385
- // protocol: "http",
386
- // type: "unchained"
387
- // },
388
- // {
389
- // key: "REACT_APP_UNCHAINED_BNBSMARTCHAIN_WS_URL",
390
- // value: "wss://api.bnbsmartchain.shapeshift.com",
391
- // network: "bnbsmartchain",
392
- // protocol: "websocket",
393
- // type: "unchained"
394
- // },
395
- // {
396
- // key: "REACT_APP_UNCHAINED_POLYGON_HTTP_URL",
397
- // value: "https://dev-api.polygon.shapeshift.com",
398
- // swagger: "https://dev-api.polygon.shapeshift.com/swagger.json",
399
- // network: "polygon",
400
- // protocol: "http",
401
- // type: "unchained"
402
- // },
403
- // {
404
- // key: "REACT_APP_UNCHAINED_POLYGON_WS_URL",
405
- // value: "wss://dev-api.polygon.shapeshift.com",
406
- // network: "polygon",
407
- // protocol: "websocket",
408
- // type: "unchained"
409
- // },
410
- // {
411
- // key: "REACT_APP_UNCHAINED_GNOSIS_HTTP_URL",
412
- // value: "https://api.gnosis.shapeshift.com",
413
- // swagger: "https://api.gnosis.shapeshift.com/swagger.json",
414
- // network: "gnosis",
415
- // protocol: "http",
416
- // type: "unchained"
417
- // },
418
- // {
419
- // key: "REACT_APP_UNCHAINED_GNOSIS_WS_URL",
420
- // value: "wss://api.gnosis.shapeshift.com",
421
- // network: "gnosis",
422
- // protocol: "websocket",
423
- // type: "unchained"
424
- // },
334
+ // ShapeShift Unchained APIs - VERIFIED ONLINE 2025-01-20
335
+ // All 6 EVM networks tested and confirmed working + Base (offline)
336
+ {
337
+ key: "REACT_APP_UNCHAINED_ETHEREUM_HTTP_URL",
338
+ value: "https://api.ethereum.shapeshift.com",
339
+ swagger: "https://api.ethereum.shapeshift.com/swagger.json",
340
+ network: "ethereum",
341
+ networkId: "eip155:1",
342
+ protocol: "http",
343
+ type: "unchained"
344
+ },
345
+ {
346
+ key: "REACT_APP_UNCHAINED_ETHEREUM_WS_URL",
347
+ value: "wss://api.ethereum.shapeshift.com",
348
+ network: "ethereum",
349
+ networkId: "eip155:1",
350
+ protocol: "websocket",
351
+ type: "unchained"
352
+ },
353
+ {
354
+ key: "REACT_APP_UNCHAINED_AVALANCHE_HTTP_URL",
355
+ value: "https://api.avalanche.shapeshift.com",
356
+ swagger: "https://api.avalanche.shapeshift.com/swagger.json",
357
+ network: "avalanche",
358
+ networkId: "eip155:43114",
359
+ protocol: "http",
360
+ type: "unchained"
361
+ },
362
+ {
363
+ key: "REACT_APP_UNCHAINED_AVALANCHE_WS_URL",
364
+ value: "wss://api.avalanche.shapeshift.com",
365
+ network: "avalanche",
366
+ networkId: "eip155:43114",
367
+ protocol: "websocket",
368
+ type: "unchained"
369
+ },
370
+ {
371
+ key: "REACT_APP_UNCHAINED_OPTIMISM_HTTP_URL",
372
+ value: "https://api.optimism.shapeshift.com",
373
+ swagger: "https://api.optimism.shapeshift.com/swagger.json",
374
+ network: "optimism",
375
+ networkId: "eip155:10",
376
+ protocol: "http",
377
+ type: "unchained"
378
+ },
379
+ {
380
+ key: "REACT_APP_UNCHAINED_OPTIMISM_WS_URL",
381
+ value: "wss://api.optimism.shapeshift.com",
382
+ network: "optimism",
383
+ networkId: "eip155:10",
384
+ protocol: "websocket",
385
+ type: "unchained"
386
+ },
387
+ {
388
+ key: "REACT_APP_UNCHAINED_BNBSMARTCHAIN_HTTP_URL",
389
+ value: "https://api.bnbsmartchain.shapeshift.com",
390
+ swagger: "https://api.bnbsmartchain.shapeshift.com/swagger.json",
391
+ network: "bnbsmartchain",
392
+ networkId: "eip155:56",
393
+ protocol: "http",
394
+ type: "unchained"
395
+ },
396
+ {
397
+ key: "REACT_APP_UNCHAINED_BNBSMARTCHAIN_WS_URL",
398
+ value: "wss://api.bnbsmartchain.shapeshift.com",
399
+ network: "bnbsmartchain",
400
+ networkId: "eip155:56",
401
+ protocol: "websocket",
402
+ type: "unchained"
403
+ },
404
+ {
405
+ key: "REACT_APP_UNCHAINED_POLYGON_HTTP_URL",
406
+ value: "https://dev-api.polygon.shapeshift.com",
407
+ swagger: "https://dev-api.polygon.shapeshift.com/swagger.json",
408
+ network: "polygon",
409
+ networkId: "eip155:137",
410
+ protocol: "http",
411
+ type: "unchained"
412
+ },
413
+ {
414
+ key: "REACT_APP_UNCHAINED_POLYGON_WS_URL",
415
+ value: "wss://dev-api.polygon.shapeshift.com",
416
+ network: "polygon",
417
+ networkId: "eip155:137",
418
+ protocol: "websocket",
419
+ type: "unchained"
420
+ },
421
+ {
422
+ key: "REACT_APP_UNCHAINED_GNOSIS_HTTP_URL",
423
+ value: "https://api.gnosis.shapeshift.com",
424
+ swagger: "https://api.gnosis.shapeshift.com/swagger.json",
425
+ network: "gnosis",
426
+ networkId: "eip155:100",
427
+ protocol: "http",
428
+ type: "unchained"
429
+ },
430
+ {
431
+ key: "REACT_APP_UNCHAINED_GNOSIS_WS_URL",
432
+ value: "wss://api.gnosis.shapeshift.com",
433
+ network: "gnosis",
434
+ networkId: "eip155:100",
435
+ protocol: "websocket",
436
+ type: "unchained"
437
+ },
438
+ {
439
+ key: "REACT_APP_UNCHAINED_BASE_HTTP_URL",
440
+ value: "https://api.base.shapeshift.com",
441
+ swagger: "https://api.base.shapeshift.com/swagger.json",
442
+ network: "base",
443
+ networkId: "eip155:8453",
444
+ protocol: "http",
445
+ type: "unchained"
446
+ },
447
+ {
448
+ key: "REACT_APP_UNCHAINED_BASE_WS_URL",
449
+ value: "wss://api.base.shapeshift.com",
450
+ network: "base",
451
+ networkId: "eip155:8453",
452
+ protocol: "websocket",
453
+ type: "unchained"
454
+ },
425
455
  // {
426
456
  // key: "REACT_APP_UNCHAINED_BITCOIN_HTTP_URL",
427
457
  // value: "https://api.bitcoin.shapeshift.com",
package/lib/web3.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export declare const web3Seeds: {
2
2
  networkId: string;
3
3
  service: string;
4
+ tier: string;
4
5
  }[];