@pioneer-platform/nodes 8.11.3 → 8.11.4

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.4
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(pioneer-nodes): remove broken node entry without service field
8
+
3
9
  ## 8.11.3
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,13 @@
1
+ const fs = require('fs');
2
+
3
+ // Read the source file
4
+ const filePath = 'src/web3.ts';
5
+ const content = fs.readFileSync(filePath, 'utf8');
6
+
7
+ // Fix the pattern: remove entries that have networkId but no service
8
+ // Pattern: { followed by "networkId": "...", followed by }
9
+ const fixed = content.replace(/\s*{\s*\n\s*"networkId":\s*"[^"]+",?\s*\n\s*},?\s*\n/g, '');
10
+
11
+ // Write back
12
+ fs.writeFileSync(filePath, fixed, 'utf8');
13
+ console.log('Fixed broken node entries');
package/lib/index.d.ts CHANGED
@@ -1,18 +1,12 @@
1
1
  export declare const init: (type: string, config: any, isTestnet: boolean) => Promise<boolean>;
2
- export declare const getWeb3Nodes: () => ({
2
+ export declare const getWeb3Nodes: () => {
3
3
  networkId: string;
4
4
  service: string;
5
- } | {
6
- networkId: string;
7
- service?: undefined;
8
- })[];
9
- export declare const getNodes: () => ({
5
+ }[];
6
+ export declare const getNodes: () => {
10
7
  networkId: string;
11
8
  service: string;
12
- } | {
13
- networkId: string;
14
- service?: undefined;
15
- })[];
9
+ }[];
16
10
  export declare const getNode: (network: string, serviceId: string) => any;
17
11
  export declare const getBlockbooks: () => ({
18
12
  symbol: string;
package/lib/web3.d.ts CHANGED
@@ -1,7 +1,4 @@
1
- export declare const web3Seeds: ({
1
+ export declare const web3Seeds: {
2
2
  networkId: string;
3
3
  service: string;
4
- } | {
5
- networkId: string;
6
- service?: undefined;
7
- })[];
4
+ }[];
package/lib/web3.js CHANGED
@@ -221,25 +221,13 @@ exports.web3Seeds = [
221
221
  {
222
222
  "networkId": "eip155:2",
223
223
  "service": "https://node.expanse.tech"
224
- },
225
- {
226
- "networkId": "eip155:3",
227
- },
228
- {
224
+ }, {
229
225
  "networkId": "eip155:3",
230
226
  "service": "https://ropsten.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"
231
- },
232
- {
233
- "networkId": "eip155:4",
234
- },
235
- {
227
+ }, {
236
228
  "networkId": "eip155:4",
237
229
  "service": "https://rinkeby.infura.io/3/9aa3d95b3bc440fa88ea12eaa4456161"
238
- },
239
- {
240
- "networkId": "eip155:5",
241
- },
242
- {
230
+ }, {
243
231
  "networkId": "eip155:5",
244
232
  "service": "https://endpoints.omniatech.io/v1/eth/goerli/public"
245
233
  },
@@ -298,11 +286,7 @@ exports.web3Seeds = [
298
286
  {
299
287
  "networkId": "eip155:10",
300
288
  "service": "https://mainnet.optimism.io/"
301
- },
302
- {
303
- "networkId": "eip155:10",
304
- },
305
- {
289
+ }, {
306
290
  "networkId": "eip155:10",
307
291
  "service": "https://optimism-mainnet.public.blastapi.io"
308
292
  },
@@ -609,11 +593,7 @@ exports.web3Seeds = [
609
593
  {
610
594
  "networkId": "eip155:50",
611
595
  "service": "https://erpc.xinfin.network/"
612
- },
613
- {
614
- "networkId": "eip155:50",
615
- },
616
- {
596
+ }, {
617
597
  "networkId": "eip155:50",
618
598
  "service": "https://xdc-mainnet.gateway.tatum.io"
619
599
  },
@@ -668,11 +648,7 @@ exports.web3Seeds = [
668
648
  {
669
649
  "networkId": "eip155:55",
670
650
  "service": "https://rpc-5.zyx.network/"
671
- },
672
- {
673
- "networkId": "eip155:56",
674
- },
675
- {
651
+ }, {
676
652
  "networkId": "eip155:56",
677
653
  "service": "https://bsc-dataseed.bnbchain.org/"
678
654
  },
@@ -843,11 +819,7 @@ exports.web3Seeds = [
843
819
  {
844
820
  "networkId": "eip155:57",
845
821
  "service": "https://rpc.syscoin.org"
846
- },
847
- {
848
- "networkId": "eip155:57",
849
- },
850
- {
822
+ }, {
851
823
  "networkId": "eip155:57",
852
824
  "service": "https://syscoin-evm.publicnode.com"
853
825
  },
@@ -1082,11 +1054,7 @@ exports.web3Seeds = [
1082
1054
  {
1083
1055
  "networkId": "eip155:100",
1084
1056
  "service": "https://gnosis-mainnet.public.blastapi.io"
1085
- },
1086
- {
1087
- "networkId": "eip155:100",
1088
- },
1089
- {
1057
+ }, {
1090
1058
  "networkId": "eip155:100",
1091
1059
  "service": "https://rpc.ap-southeast-1.gateway.fm/v4/gnosis/non-archival/mainnet"
1092
1060
  },
@@ -1209,11 +1177,7 @@ exports.web3Seeds = [
1209
1177
  {
1210
1178
  "networkId": "eip155:133",
1211
1179
  "service": "https://hashkeychain-testnet.alt.technology"
1212
- },
1213
- {
1214
- "networkId": "eip155:137",
1215
- },
1216
- {
1180
+ }, {
1217
1181
  "networkId": "eip155:137",
1218
1182
  "service": "https://polygon-rpc.com"
1219
1183
  },
@@ -1480,11 +1444,7 @@ exports.web3Seeds = [
1480
1444
  {
1481
1445
  "networkId": "eip155:250",
1482
1446
  "service": "https://rpc.ftm.tools/"
1483
- },
1484
- {
1485
- "networkId": "eip155:250",
1486
- },
1487
- {
1447
+ }, {
1488
1448
  "networkId": "eip155:250",
1489
1449
  "service": "https://rpc.fantom.network"
1490
1450
  },
@@ -1583,11 +1543,7 @@ exports.web3Seeds = [
1583
1543
  {
1584
1544
  "networkId": "eip155:262",
1585
1545
  "service": "https://sur.nilin.org"
1586
- },
1587
- {
1588
- "networkId": "eip155:267",
1589
- },
1590
- {
1546
+ }, {
1591
1547
  "networkId": "eip155:288",
1592
1548
  "service": "https://mainnet.boba.network/"
1593
1549
  },
@@ -1630,11 +1586,7 @@ exports.web3Seeds = [
1630
1586
  {
1631
1587
  "networkId": "eip155:314",
1632
1588
  "service": "https://node.filutils.com/rpc/v1"
1633
- },
1634
- {
1635
- "networkId": "eip155:314",
1636
- },
1637
- {
1589
+ }, {
1638
1590
  "networkId": "eip155:314",
1639
1591
  "service": "https://filecoin.chainup.net/rpc/v1"
1640
1592
  },
@@ -1969,11 +1921,7 @@ exports.web3Seeds = [
1969
1921
  {
1970
1922
  "networkId": "eip155:1001",
1971
1923
  "service": "https://kaia-kairos.blockpi.network/v1/rpc/public"
1972
- },
1973
- {
1974
- "networkId": "eip155:1001",
1975
- },
1976
- {
1924
+ }, {
1977
1925
  "networkId": "eip155:1001",
1978
1926
  "service": "https://klaytn.api.onfinality.io/public"
1979
1927
  },
@@ -2056,11 +2004,7 @@ exports.web3Seeds = [
2056
2004
  {
2057
2005
  "networkId": "eip155:1100",
2058
2006
  "service": "https://dymension.drpc.org"
2059
- },
2060
- {
2061
- "networkId": "eip155:1101",
2062
- },
2063
- {
2007
+ }, {
2064
2008
  "networkId": "eip155:1101",
2065
2009
  "service": "https://rpc.polygon-zkevm.gateway.fm"
2066
2010
  },
@@ -2107,11 +2051,7 @@ exports.web3Seeds = [
2107
2051
  {
2108
2052
  "networkId": "eip155:1116",
2109
2053
  "service": "https://1rpc.io/core"
2110
- },
2111
- {
2112
- "networkId": "eip155:1116",
2113
- },
2114
- {
2054
+ }, {
2115
2055
  "networkId": "eip155:1116",
2116
2056
  "service": "https://core.drpc.org"
2117
2057
  },
@@ -2186,11 +2126,7 @@ exports.web3Seeds = [
2186
2126
  {
2187
2127
  "networkId": "eip155:1284",
2188
2128
  "service": "https://moonbeam.public.blastapi.io"
2189
- },
2190
- {
2191
- "networkId": "eip155:1284",
2192
- },
2193
- {
2129
+ }, {
2194
2130
  "networkId": "eip155:1284",
2195
2131
  "service": "https://1rpc.io/glmr"
2196
2132
  },
@@ -2581,11 +2517,7 @@ exports.web3Seeds = [
2581
2517
  {
2582
2518
  "networkId": "eip155:2222",
2583
2519
  "service": "https://evm.kava.chainstacklabs.com"
2584
- },
2585
- {
2586
- "networkId": "eip155:2222",
2587
- },
2588
- {
2520
+ }, {
2589
2521
  "networkId": "eip155:2222",
2590
2522
  "service": "https://evm.kava-rpc.com"
2591
2523
  },
@@ -2676,11 +2608,7 @@ exports.web3Seeds = [
2676
2608
  {
2677
2609
  "networkId": "eip155:4002",
2678
2610
  "service": "https://endpoints.omniatech.io/v1/fantom/testnet/public"
2679
- },
2680
- {
2681
- "networkId": "eip155:4002",
2682
- },
2683
- {
2611
+ }, {
2684
2612
  "networkId": "eip155:4002",
2685
2613
  "service": "https://fantom-testnet.public.blastapi.io"
2686
2614
  },
@@ -2735,11 +2663,7 @@ exports.web3Seeds = [
2735
2663
  {
2736
2664
  "networkId": "eip155:4444",
2737
2665
  "service": "https://janus.htmlcoin.dev/janus/"
2738
- },
2739
- {
2740
- "networkId": "eip155:4689",
2741
- },
2742
- {
2666
+ }, {
2743
2667
  "networkId": "eip155:4689",
2744
2668
  "service": "https://babel-api.mainnet.iotex.io"
2745
2669
  },
@@ -2778,11 +2702,7 @@ exports.web3Seeds = [
2778
2702
  {
2779
2703
  "networkId": "eip155:5000",
2780
2704
  "service": "https://mantle.drpc.org"
2781
- },
2782
- {
2783
- "networkId": "eip155:5000",
2784
- },
2785
- {
2705
+ }, {
2786
2706
  "networkId": "eip155:5000",
2787
2707
  "service": "https://1rpc.io/mantle"
2788
2708
  },
@@ -3041,11 +2961,7 @@ exports.web3Seeds = [
3041
2961
  {
3042
2962
  "networkId": "eip155:8217",
3043
2963
  "service": "https://klaytn.drpc.org"
3044
- },
3045
- {
3046
- "networkId": "eip155:8217",
3047
- },
3048
- {
2964
+ }, {
3049
2965
  "networkId": "eip155:8428",
3050
2966
  "service": "https://api.thatchain.io"
3051
2967
  },
@@ -3696,11 +3612,7 @@ exports.web3Seeds = [
3696
3612
  {
3697
3613
  "networkId": "eip155:42161",
3698
3614
  "service": "https://arb1.arbitrum.io/rpc"
3699
- },
3700
- {
3701
- "networkId": "eip155:42161",
3702
- },
3703
- {
3615
+ }, {
3704
3616
  "networkId": "eip155:42161",
3705
3617
  "service": "https://1rpc.io/arb"
3706
3618
  },
@@ -3795,11 +3707,7 @@ exports.web3Seeds = [
3795
3707
  {
3796
3708
  "networkId": "eip155:42220",
3797
3709
  "service": "https://forno.celo.org"
3798
- },
3799
- {
3800
- "networkId": "eip155:42220",
3801
- },
3802
- {
3710
+ }, {
3803
3711
  "networkId": "eip155:42220",
3804
3712
  "service": "https://1rpc.io/celo"
3805
3713
  },
@@ -3846,14 +3754,7 @@ exports.web3Seeds = [
3846
3754
  {
3847
3755
  "networkId": "eip155:43113",
3848
3756
  "service": "https://endpoints.omniatech.io/v1/avax/fuji/public"
3849
- },
3850
- {
3851
- "networkId": "eip155:43113",
3852
- },
3853
- {
3854
- "networkId": "eip155:43113",
3855
- },
3856
- {
3757
+ }, {
3857
3758
  "networkId": "eip155:43113",
3858
3759
  "service": "https://avalanchetestapi.terminet.io/ext/bc/C/rpc"
3859
3760
  },
@@ -3884,11 +3785,7 @@ exports.web3Seeds = [
3884
3785
  {
3885
3786
  "networkId": "eip155:43114",
3886
3787
  "service": "https://avalanche.public-rpc.com"
3887
- },
3888
- {
3889
- "networkId": "eip155:43114",
3890
- },
3891
- {
3788
+ }, {
3892
3789
  "networkId": "eip155:43114",
3893
3790
  "service": "https://ava-mainnet.public.blastapi.io/ext/bc/C/rpc"
3894
3791
  },
@@ -4099,11 +3996,7 @@ exports.web3Seeds = [
4099
3996
  {
4100
3997
  "networkId": "eip155:80001",
4101
3998
  "service": "https://endpoints.omniatech.io/v1/matic/mumbai/public"
4102
- },
4103
- {
4104
- "networkId": "eip155:80001",
4105
- },
4106
- {
3999
+ }, {
4107
4000
  "networkId": "eip155:80001",
4108
4001
  "service": "https://polygontestapi.terminet.io/rpc"
4109
4002
  },
@@ -4150,11 +4043,7 @@ exports.web3Seeds = [
4150
4043
  {
4151
4044
  "networkId": "eip155:80002",
4152
4045
  "service": "https://polygon-amoy.blockpi.network/v1/rpc/public"
4153
- },
4154
- {
4155
- "networkId": "eip155:80002",
4156
- },
4157
- {
4046
+ }, {
4158
4047
  "networkId": "eip155:80002",
4159
4048
  "service": "https://polygon-amoy.drpc.org"
4160
4049
  },
@@ -4197,11 +4086,7 @@ exports.web3Seeds = [
4197
4086
  {
4198
4087
  "networkId": "eip155:81457",
4199
4088
  "service": "https://blast.blockpi.network/v1/rpc/public"
4200
- },
4201
- {
4202
- "networkId": "eip155:81457",
4203
- },
4204
- {
4089
+ }, {
4205
4090
  "networkId": "eip155:81457",
4206
4091
  "service": "https://blast.gasswap.org"
4207
4092
  },
@@ -4308,11 +4193,7 @@ exports.web3Seeds = [
4308
4193
  {
4309
4194
  "networkId": "eip155:167000",
4310
4195
  "service": "https://rpc.taiko.xyz"
4311
- },
4312
- {
4313
- "networkId": "eip155:167000",
4314
- },
4315
- {
4196
+ }, {
4316
4197
  "networkId": "eip155:167000",
4317
4198
  "service": "https://taiko.blockpi.network/v1/rpc/public"
4318
4199
  },
@@ -4343,11 +4224,7 @@ exports.web3Seeds = [
4343
4224
  {
4344
4225
  "networkId": "eip155:167009",
4345
4226
  "service": "https://rpc.hekla.taiko.xyz"
4346
- },
4347
- {
4348
- "networkId": "eip155:167009",
4349
- },
4350
- {
4227
+ }, {
4351
4228
  "networkId": "eip155:167009",
4352
4229
  "service": "https://taiko-hekla.blockpi.network/v1/rpc/public"
4353
4230
  },
@@ -4490,11 +4367,7 @@ exports.web3Seeds = [
4490
4367
  {
4491
4368
  "networkId": "eip155:534351",
4492
4369
  "service": "https://scroll-testnet-public.unifra.io"
4493
- },
4494
- {
4495
- "networkId": "eip155:534351",
4496
- },
4497
- {
4370
+ }, {
4498
4371
  "networkId": "eip155:534351",
4499
4372
  "service": "https://scroll-public.scroll-testnet.quiknode.pro/"
4500
4373
  },
@@ -4857,11 +4730,7 @@ exports.web3Seeds = [
4857
4730
  {
4858
4731
  "networkId": "eip155:1666600000",
4859
4732
  "service": "https://api.s0.t.hmny.io"
4860
- },
4861
- {
4862
- "networkId": "eip155:1666600000",
4863
- },
4864
- {
4733
+ }, {
4865
4734
  "networkId": "eip155:1666600000",
4866
4735
  "service": "https://1rpc.io/one"
4867
4736
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/nodes",
3
- "version": "8.11.3",
3
+ "version": "8.11.4",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "scripts": {
@@ -0,0 +1,12 @@
1
+ const { getWeb3Nodes } = require('./lib/index.js');
2
+ const web3 = getWeb3Nodes();
3
+ console.log('Total web3 nodes:', web3.length);
4
+ const broken = web3.filter(n => !n.service);
5
+ console.log('Nodes missing service:', broken.length);
6
+ if(broken.length > 0) {
7
+ console.log('❌ FAILED - Still have broken nodes:', JSON.stringify(broken.slice(0, 5), null, 2));
8
+ process.exit(1);
9
+ } else {
10
+ console.log('✅ SUCCESS - All nodes have service field!');
11
+ process.exit(0);
12
+ }