@pioneer-platform/nodes 8.11.9 → 8.11.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @pioneer-platform/nodes
2
2
 
3
+ ## 8.11.10
4
+
5
+ ### Patch Changes
6
+
7
+ - testing
8
+
3
9
  ## 8.11.9
4
10
 
5
11
  ### Patch Changes
package/lib/index.d.ts CHANGED
@@ -42,10 +42,10 @@ export declare const getBlockbooks: () => ({
42
42
  websocket?: undefined;
43
43
  })[];
44
44
  export declare const getUnchaineds: () => {
45
- caip: any;
45
+ networkId: any;
46
+ caip: string;
46
47
  swagger: any;
47
48
  service: any;
48
49
  wss: any;
49
50
  type: string;
50
- blockchain: any;
51
51
  }[];
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
@@ -330,98 +330,127 @@ exports.shapeshift = [
330
330
  protocol: "websocket",
331
331
  type: "unchained"
332
332
  },
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
- // },
333
+ // ShapeShift Unchained APIs - VERIFIED ONLINE 2025-01-20
334
+ // All 6 EVM networks tested and confirmed working + Base (offline)
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
+ networkId: "eip155:1",
341
+ protocol: "http",
342
+ type: "unchained"
343
+ },
344
+ {
345
+ key: "REACT_APP_UNCHAINED_ETHEREUM_WS_URL",
346
+ value: "wss://api.ethereum.shapeshift.com",
347
+ network: "ethereum",
348
+ networkId: "eip155:1",
349
+ protocol: "websocket",
350
+ type: "unchained"
351
+ },
352
+ {
353
+ key: "REACT_APP_UNCHAINED_AVALANCHE_HTTP_URL",
354
+ value: "https://api.avalanche.shapeshift.com",
355
+ swagger: "https://api.avalanche.shapeshift.com/swagger.json",
356
+ network: "avalanche",
357
+ networkId: "eip155:43114",
358
+ protocol: "http",
359
+ type: "unchained"
360
+ },
361
+ {
362
+ key: "REACT_APP_UNCHAINED_AVALANCHE_WS_URL",
363
+ value: "wss://api.avalanche.shapeshift.com",
364
+ network: "avalanche",
365
+ networkId: "eip155:43114",
366
+ protocol: "websocket",
367
+ type: "unchained"
368
+ },
369
+ {
370
+ key: "REACT_APP_UNCHAINED_OPTIMISM_HTTP_URL",
371
+ value: "https://api.optimism.shapeshift.com",
372
+ swagger: "https://api.optimism.shapeshift.com/swagger.json",
373
+ network: "optimism",
374
+ networkId: "eip155:10",
375
+ protocol: "http",
376
+ type: "unchained"
377
+ },
378
+ {
379
+ key: "REACT_APP_UNCHAINED_OPTIMISM_WS_URL",
380
+ value: "wss://api.optimism.shapeshift.com",
381
+ network: "optimism",
382
+ networkId: "eip155:10",
383
+ protocol: "websocket",
384
+ type: "unchained"
385
+ },
386
+ {
387
+ key: "REACT_APP_UNCHAINED_BNBSMARTCHAIN_HTTP_URL",
388
+ value: "https://api.bnbsmartchain.shapeshift.com",
389
+ swagger: "https://api.bnbsmartchain.shapeshift.com/swagger.json",
390
+ network: "bnbsmartchain",
391
+ networkId: "eip155:56",
392
+ protocol: "http",
393
+ type: "unchained"
394
+ },
395
+ {
396
+ key: "REACT_APP_UNCHAINED_BNBSMARTCHAIN_WS_URL",
397
+ value: "wss://api.bnbsmartchain.shapeshift.com",
398
+ network: "bnbsmartchain",
399
+ networkId: "eip155:56",
400
+ protocol: "websocket",
401
+ type: "unchained"
402
+ },
403
+ {
404
+ key: "REACT_APP_UNCHAINED_POLYGON_HTTP_URL",
405
+ value: "https://dev-api.polygon.shapeshift.com",
406
+ swagger: "https://dev-api.polygon.shapeshift.com/swagger.json",
407
+ network: "polygon",
408
+ networkId: "eip155:137",
409
+ protocol: "http",
410
+ type: "unchained"
411
+ },
412
+ {
413
+ key: "REACT_APP_UNCHAINED_POLYGON_WS_URL",
414
+ value: "wss://dev-api.polygon.shapeshift.com",
415
+ network: "polygon",
416
+ networkId: "eip155:137",
417
+ protocol: "websocket",
418
+ type: "unchained"
419
+ },
420
+ {
421
+ key: "REACT_APP_UNCHAINED_GNOSIS_HTTP_URL",
422
+ value: "https://api.gnosis.shapeshift.com",
423
+ swagger: "https://api.gnosis.shapeshift.com/swagger.json",
424
+ network: "gnosis",
425
+ networkId: "eip155:100",
426
+ protocol: "http",
427
+ type: "unchained"
428
+ },
429
+ {
430
+ key: "REACT_APP_UNCHAINED_GNOSIS_WS_URL",
431
+ value: "wss://api.gnosis.shapeshift.com",
432
+ network: "gnosis",
433
+ networkId: "eip155:100",
434
+ protocol: "websocket",
435
+ type: "unchained"
436
+ },
437
+ {
438
+ key: "REACT_APP_UNCHAINED_BASE_HTTP_URL",
439
+ value: "https://api.base.shapeshift.com",
440
+ swagger: "https://api.base.shapeshift.com/swagger.json",
441
+ network: "base",
442
+ networkId: "eip155:8453",
443
+ protocol: "http",
444
+ type: "unchained"
445
+ },
446
+ {
447
+ key: "REACT_APP_UNCHAINED_BASE_WS_URL",
448
+ value: "wss://api.base.shapeshift.com",
449
+ network: "base",
450
+ networkId: "eip155:8453",
451
+ protocol: "websocket",
452
+ type: "unchained"
453
+ },
425
454
  // {
426
455
  // key: "REACT_APP_UNCHAINED_BITCOIN_HTTP_URL",
427
456
  // value: "https://api.bitcoin.shapeshift.com",