@pioneer-platform/nodes 8.11.2 → 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 +12 -0
- package/fix-broken-nodes.js +13 -0
- package/lib/index.d.ts +4 -10
- package/lib/web3.d.ts +2 -5
- package/lib/web3.js +32 -166
- package/package.json +1 -1
- package/verify-nodes.js +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
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
|
+
|
|
9
|
+
## 8.11.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- fix(pioneer-nodes): remove broken node entry without service field
|
|
14
|
+
|
|
3
15
|
## 8.11.2
|
|
4
16
|
|
|
5
17
|
### 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: () =>
|
|
3
|
-
networkId: string;
|
|
4
|
-
service?: undefined;
|
|
5
|
-
} | {
|
|
2
|
+
export declare const getWeb3Nodes: () => {
|
|
6
3
|
networkId: string;
|
|
7
4
|
service: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const getNodes: () =>
|
|
10
|
-
networkId: string;
|
|
11
|
-
service?: undefined;
|
|
12
|
-
} | {
|
|
5
|
+
}[];
|
|
6
|
+
export declare const getNodes: () => {
|
|
13
7
|
networkId: string;
|
|
14
8
|
service: string;
|
|
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
package/lib/web3.js
CHANGED
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.web3Seeds = void 0;
|
|
4
4
|
exports.web3Seeds = [
|
|
5
|
-
{
|
|
6
|
-
"networkId": "eip155:1",
|
|
7
|
-
},
|
|
8
5
|
{
|
|
9
6
|
"networkId": "eip155:1",
|
|
10
7
|
"service": "https://go.getblock.io/aefd01aa907c4805ba3c00a9e5b48c6b"
|
|
@@ -224,25 +221,13 @@ exports.web3Seeds = [
|
|
|
224
221
|
{
|
|
225
222
|
"networkId": "eip155:2",
|
|
226
223
|
"service": "https://node.expanse.tech"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"networkId": "eip155:3",
|
|
230
|
-
},
|
|
231
|
-
{
|
|
224
|
+
}, {
|
|
232
225
|
"networkId": "eip155:3",
|
|
233
226
|
"service": "https://ropsten.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"networkId": "eip155:4",
|
|
237
|
-
},
|
|
238
|
-
{
|
|
227
|
+
}, {
|
|
239
228
|
"networkId": "eip155:4",
|
|
240
229
|
"service": "https://rinkeby.infura.io/3/9aa3d95b3bc440fa88ea12eaa4456161"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"networkId": "eip155:5",
|
|
244
|
-
},
|
|
245
|
-
{
|
|
230
|
+
}, {
|
|
246
231
|
"networkId": "eip155:5",
|
|
247
232
|
"service": "https://endpoints.omniatech.io/v1/eth/goerli/public"
|
|
248
233
|
},
|
|
@@ -301,11 +286,7 @@ exports.web3Seeds = [
|
|
|
301
286
|
{
|
|
302
287
|
"networkId": "eip155:10",
|
|
303
288
|
"service": "https://mainnet.optimism.io/"
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"networkId": "eip155:10",
|
|
307
|
-
},
|
|
308
|
-
{
|
|
289
|
+
}, {
|
|
309
290
|
"networkId": "eip155:10",
|
|
310
291
|
"service": "https://optimism-mainnet.public.blastapi.io"
|
|
311
292
|
},
|
|
@@ -612,11 +593,7 @@ exports.web3Seeds = [
|
|
|
612
593
|
{
|
|
613
594
|
"networkId": "eip155:50",
|
|
614
595
|
"service": "https://erpc.xinfin.network/"
|
|
615
|
-
},
|
|
616
|
-
{
|
|
617
|
-
"networkId": "eip155:50",
|
|
618
|
-
},
|
|
619
|
-
{
|
|
596
|
+
}, {
|
|
620
597
|
"networkId": "eip155:50",
|
|
621
598
|
"service": "https://xdc-mainnet.gateway.tatum.io"
|
|
622
599
|
},
|
|
@@ -671,11 +648,7 @@ exports.web3Seeds = [
|
|
|
671
648
|
{
|
|
672
649
|
"networkId": "eip155:55",
|
|
673
650
|
"service": "https://rpc-5.zyx.network/"
|
|
674
|
-
},
|
|
675
|
-
{
|
|
676
|
-
"networkId": "eip155:56",
|
|
677
|
-
},
|
|
678
|
-
{
|
|
651
|
+
}, {
|
|
679
652
|
"networkId": "eip155:56",
|
|
680
653
|
"service": "https://bsc-dataseed.bnbchain.org/"
|
|
681
654
|
},
|
|
@@ -846,11 +819,7 @@ exports.web3Seeds = [
|
|
|
846
819
|
{
|
|
847
820
|
"networkId": "eip155:57",
|
|
848
821
|
"service": "https://rpc.syscoin.org"
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
"networkId": "eip155:57",
|
|
852
|
-
},
|
|
853
|
-
{
|
|
822
|
+
}, {
|
|
854
823
|
"networkId": "eip155:57",
|
|
855
824
|
"service": "https://syscoin-evm.publicnode.com"
|
|
856
825
|
},
|
|
@@ -1085,11 +1054,7 @@ exports.web3Seeds = [
|
|
|
1085
1054
|
{
|
|
1086
1055
|
"networkId": "eip155:100",
|
|
1087
1056
|
"service": "https://gnosis-mainnet.public.blastapi.io"
|
|
1088
|
-
},
|
|
1089
|
-
{
|
|
1090
|
-
"networkId": "eip155:100",
|
|
1091
|
-
},
|
|
1092
|
-
{
|
|
1057
|
+
}, {
|
|
1093
1058
|
"networkId": "eip155:100",
|
|
1094
1059
|
"service": "https://rpc.ap-southeast-1.gateway.fm/v4/gnosis/non-archival/mainnet"
|
|
1095
1060
|
},
|
|
@@ -1212,11 +1177,7 @@ exports.web3Seeds = [
|
|
|
1212
1177
|
{
|
|
1213
1178
|
"networkId": "eip155:133",
|
|
1214
1179
|
"service": "https://hashkeychain-testnet.alt.technology"
|
|
1215
|
-
},
|
|
1216
|
-
{
|
|
1217
|
-
"networkId": "eip155:137",
|
|
1218
|
-
},
|
|
1219
|
-
{
|
|
1180
|
+
}, {
|
|
1220
1181
|
"networkId": "eip155:137",
|
|
1221
1182
|
"service": "https://polygon-rpc.com"
|
|
1222
1183
|
},
|
|
@@ -1483,11 +1444,7 @@ exports.web3Seeds = [
|
|
|
1483
1444
|
{
|
|
1484
1445
|
"networkId": "eip155:250",
|
|
1485
1446
|
"service": "https://rpc.ftm.tools/"
|
|
1486
|
-
},
|
|
1487
|
-
{
|
|
1488
|
-
"networkId": "eip155:250",
|
|
1489
|
-
},
|
|
1490
|
-
{
|
|
1447
|
+
}, {
|
|
1491
1448
|
"networkId": "eip155:250",
|
|
1492
1449
|
"service": "https://rpc.fantom.network"
|
|
1493
1450
|
},
|
|
@@ -1586,11 +1543,7 @@ exports.web3Seeds = [
|
|
|
1586
1543
|
{
|
|
1587
1544
|
"networkId": "eip155:262",
|
|
1588
1545
|
"service": "https://sur.nilin.org"
|
|
1589
|
-
},
|
|
1590
|
-
{
|
|
1591
|
-
"networkId": "eip155:267",
|
|
1592
|
-
},
|
|
1593
|
-
{
|
|
1546
|
+
}, {
|
|
1594
1547
|
"networkId": "eip155:288",
|
|
1595
1548
|
"service": "https://mainnet.boba.network/"
|
|
1596
1549
|
},
|
|
@@ -1633,11 +1586,7 @@ exports.web3Seeds = [
|
|
|
1633
1586
|
{
|
|
1634
1587
|
"networkId": "eip155:314",
|
|
1635
1588
|
"service": "https://node.filutils.com/rpc/v1"
|
|
1636
|
-
},
|
|
1637
|
-
{
|
|
1638
|
-
"networkId": "eip155:314",
|
|
1639
|
-
},
|
|
1640
|
-
{
|
|
1589
|
+
}, {
|
|
1641
1590
|
"networkId": "eip155:314",
|
|
1642
1591
|
"service": "https://filecoin.chainup.net/rpc/v1"
|
|
1643
1592
|
},
|
|
@@ -1972,11 +1921,7 @@ exports.web3Seeds = [
|
|
|
1972
1921
|
{
|
|
1973
1922
|
"networkId": "eip155:1001",
|
|
1974
1923
|
"service": "https://kaia-kairos.blockpi.network/v1/rpc/public"
|
|
1975
|
-
},
|
|
1976
|
-
{
|
|
1977
|
-
"networkId": "eip155:1001",
|
|
1978
|
-
},
|
|
1979
|
-
{
|
|
1924
|
+
}, {
|
|
1980
1925
|
"networkId": "eip155:1001",
|
|
1981
1926
|
"service": "https://klaytn.api.onfinality.io/public"
|
|
1982
1927
|
},
|
|
@@ -2059,11 +2004,7 @@ exports.web3Seeds = [
|
|
|
2059
2004
|
{
|
|
2060
2005
|
"networkId": "eip155:1100",
|
|
2061
2006
|
"service": "https://dymension.drpc.org"
|
|
2062
|
-
},
|
|
2063
|
-
{
|
|
2064
|
-
"networkId": "eip155:1101",
|
|
2065
|
-
},
|
|
2066
|
-
{
|
|
2007
|
+
}, {
|
|
2067
2008
|
"networkId": "eip155:1101",
|
|
2068
2009
|
"service": "https://rpc.polygon-zkevm.gateway.fm"
|
|
2069
2010
|
},
|
|
@@ -2110,11 +2051,7 @@ exports.web3Seeds = [
|
|
|
2110
2051
|
{
|
|
2111
2052
|
"networkId": "eip155:1116",
|
|
2112
2053
|
"service": "https://1rpc.io/core"
|
|
2113
|
-
},
|
|
2114
|
-
{
|
|
2115
|
-
"networkId": "eip155:1116",
|
|
2116
|
-
},
|
|
2117
|
-
{
|
|
2054
|
+
}, {
|
|
2118
2055
|
"networkId": "eip155:1116",
|
|
2119
2056
|
"service": "https://core.drpc.org"
|
|
2120
2057
|
},
|
|
@@ -2189,11 +2126,7 @@ exports.web3Seeds = [
|
|
|
2189
2126
|
{
|
|
2190
2127
|
"networkId": "eip155:1284",
|
|
2191
2128
|
"service": "https://moonbeam.public.blastapi.io"
|
|
2192
|
-
},
|
|
2193
|
-
{
|
|
2194
|
-
"networkId": "eip155:1284",
|
|
2195
|
-
},
|
|
2196
|
-
{
|
|
2129
|
+
}, {
|
|
2197
2130
|
"networkId": "eip155:1284",
|
|
2198
2131
|
"service": "https://1rpc.io/glmr"
|
|
2199
2132
|
},
|
|
@@ -2584,11 +2517,7 @@ exports.web3Seeds = [
|
|
|
2584
2517
|
{
|
|
2585
2518
|
"networkId": "eip155:2222",
|
|
2586
2519
|
"service": "https://evm.kava.chainstacklabs.com"
|
|
2587
|
-
},
|
|
2588
|
-
{
|
|
2589
|
-
"networkId": "eip155:2222",
|
|
2590
|
-
},
|
|
2591
|
-
{
|
|
2520
|
+
}, {
|
|
2592
2521
|
"networkId": "eip155:2222",
|
|
2593
2522
|
"service": "https://evm.kava-rpc.com"
|
|
2594
2523
|
},
|
|
@@ -2679,11 +2608,7 @@ exports.web3Seeds = [
|
|
|
2679
2608
|
{
|
|
2680
2609
|
"networkId": "eip155:4002",
|
|
2681
2610
|
"service": "https://endpoints.omniatech.io/v1/fantom/testnet/public"
|
|
2682
|
-
},
|
|
2683
|
-
{
|
|
2684
|
-
"networkId": "eip155:4002",
|
|
2685
|
-
},
|
|
2686
|
-
{
|
|
2611
|
+
}, {
|
|
2687
2612
|
"networkId": "eip155:4002",
|
|
2688
2613
|
"service": "https://fantom-testnet.public.blastapi.io"
|
|
2689
2614
|
},
|
|
@@ -2738,11 +2663,7 @@ exports.web3Seeds = [
|
|
|
2738
2663
|
{
|
|
2739
2664
|
"networkId": "eip155:4444",
|
|
2740
2665
|
"service": "https://janus.htmlcoin.dev/janus/"
|
|
2741
|
-
},
|
|
2742
|
-
{
|
|
2743
|
-
"networkId": "eip155:4689",
|
|
2744
|
-
},
|
|
2745
|
-
{
|
|
2666
|
+
}, {
|
|
2746
2667
|
"networkId": "eip155:4689",
|
|
2747
2668
|
"service": "https://babel-api.mainnet.iotex.io"
|
|
2748
2669
|
},
|
|
@@ -2781,11 +2702,7 @@ exports.web3Seeds = [
|
|
|
2781
2702
|
{
|
|
2782
2703
|
"networkId": "eip155:5000",
|
|
2783
2704
|
"service": "https://mantle.drpc.org"
|
|
2784
|
-
},
|
|
2785
|
-
{
|
|
2786
|
-
"networkId": "eip155:5000",
|
|
2787
|
-
},
|
|
2788
|
-
{
|
|
2705
|
+
}, {
|
|
2789
2706
|
"networkId": "eip155:5000",
|
|
2790
2707
|
"service": "https://1rpc.io/mantle"
|
|
2791
2708
|
},
|
|
@@ -3044,11 +2961,7 @@ exports.web3Seeds = [
|
|
|
3044
2961
|
{
|
|
3045
2962
|
"networkId": "eip155:8217",
|
|
3046
2963
|
"service": "https://klaytn.drpc.org"
|
|
3047
|
-
},
|
|
3048
|
-
{
|
|
3049
|
-
"networkId": "eip155:8217",
|
|
3050
|
-
},
|
|
3051
|
-
{
|
|
2964
|
+
}, {
|
|
3052
2965
|
"networkId": "eip155:8428",
|
|
3053
2966
|
"service": "https://api.thatchain.io"
|
|
3054
2967
|
},
|
|
@@ -3699,11 +3612,7 @@ exports.web3Seeds = [
|
|
|
3699
3612
|
{
|
|
3700
3613
|
"networkId": "eip155:42161",
|
|
3701
3614
|
"service": "https://arb1.arbitrum.io/rpc"
|
|
3702
|
-
},
|
|
3703
|
-
{
|
|
3704
|
-
"networkId": "eip155:42161",
|
|
3705
|
-
},
|
|
3706
|
-
{
|
|
3615
|
+
}, {
|
|
3707
3616
|
"networkId": "eip155:42161",
|
|
3708
3617
|
"service": "https://1rpc.io/arb"
|
|
3709
3618
|
},
|
|
@@ -3798,11 +3707,7 @@ exports.web3Seeds = [
|
|
|
3798
3707
|
{
|
|
3799
3708
|
"networkId": "eip155:42220",
|
|
3800
3709
|
"service": "https://forno.celo.org"
|
|
3801
|
-
},
|
|
3802
|
-
{
|
|
3803
|
-
"networkId": "eip155:42220",
|
|
3804
|
-
},
|
|
3805
|
-
{
|
|
3710
|
+
}, {
|
|
3806
3711
|
"networkId": "eip155:42220",
|
|
3807
3712
|
"service": "https://1rpc.io/celo"
|
|
3808
3713
|
},
|
|
@@ -3849,14 +3754,7 @@ exports.web3Seeds = [
|
|
|
3849
3754
|
{
|
|
3850
3755
|
"networkId": "eip155:43113",
|
|
3851
3756
|
"service": "https://endpoints.omniatech.io/v1/avax/fuji/public"
|
|
3852
|
-
},
|
|
3853
|
-
{
|
|
3854
|
-
"networkId": "eip155:43113",
|
|
3855
|
-
},
|
|
3856
|
-
{
|
|
3857
|
-
"networkId": "eip155:43113",
|
|
3858
|
-
},
|
|
3859
|
-
{
|
|
3757
|
+
}, {
|
|
3860
3758
|
"networkId": "eip155:43113",
|
|
3861
3759
|
"service": "https://avalanchetestapi.terminet.io/ext/bc/C/rpc"
|
|
3862
3760
|
},
|
|
@@ -3887,11 +3785,7 @@ exports.web3Seeds = [
|
|
|
3887
3785
|
{
|
|
3888
3786
|
"networkId": "eip155:43114",
|
|
3889
3787
|
"service": "https://avalanche.public-rpc.com"
|
|
3890
|
-
},
|
|
3891
|
-
{
|
|
3892
|
-
"networkId": "eip155:43114",
|
|
3893
|
-
},
|
|
3894
|
-
{
|
|
3788
|
+
}, {
|
|
3895
3789
|
"networkId": "eip155:43114",
|
|
3896
3790
|
"service": "https://ava-mainnet.public.blastapi.io/ext/bc/C/rpc"
|
|
3897
3791
|
},
|
|
@@ -4102,11 +3996,7 @@ exports.web3Seeds = [
|
|
|
4102
3996
|
{
|
|
4103
3997
|
"networkId": "eip155:80001",
|
|
4104
3998
|
"service": "https://endpoints.omniatech.io/v1/matic/mumbai/public"
|
|
4105
|
-
},
|
|
4106
|
-
{
|
|
4107
|
-
"networkId": "eip155:80001",
|
|
4108
|
-
},
|
|
4109
|
-
{
|
|
3999
|
+
}, {
|
|
4110
4000
|
"networkId": "eip155:80001",
|
|
4111
4001
|
"service": "https://polygontestapi.terminet.io/rpc"
|
|
4112
4002
|
},
|
|
@@ -4153,11 +4043,7 @@ exports.web3Seeds = [
|
|
|
4153
4043
|
{
|
|
4154
4044
|
"networkId": "eip155:80002",
|
|
4155
4045
|
"service": "https://polygon-amoy.blockpi.network/v1/rpc/public"
|
|
4156
|
-
},
|
|
4157
|
-
{
|
|
4158
|
-
"networkId": "eip155:80002",
|
|
4159
|
-
},
|
|
4160
|
-
{
|
|
4046
|
+
}, {
|
|
4161
4047
|
"networkId": "eip155:80002",
|
|
4162
4048
|
"service": "https://polygon-amoy.drpc.org"
|
|
4163
4049
|
},
|
|
@@ -4200,11 +4086,7 @@ exports.web3Seeds = [
|
|
|
4200
4086
|
{
|
|
4201
4087
|
"networkId": "eip155:81457",
|
|
4202
4088
|
"service": "https://blast.blockpi.network/v1/rpc/public"
|
|
4203
|
-
},
|
|
4204
|
-
{
|
|
4205
|
-
"networkId": "eip155:81457",
|
|
4206
|
-
},
|
|
4207
|
-
{
|
|
4089
|
+
}, {
|
|
4208
4090
|
"networkId": "eip155:81457",
|
|
4209
4091
|
"service": "https://blast.gasswap.org"
|
|
4210
4092
|
},
|
|
@@ -4311,11 +4193,7 @@ exports.web3Seeds = [
|
|
|
4311
4193
|
{
|
|
4312
4194
|
"networkId": "eip155:167000",
|
|
4313
4195
|
"service": "https://rpc.taiko.xyz"
|
|
4314
|
-
},
|
|
4315
|
-
{
|
|
4316
|
-
"networkId": "eip155:167000",
|
|
4317
|
-
},
|
|
4318
|
-
{
|
|
4196
|
+
}, {
|
|
4319
4197
|
"networkId": "eip155:167000",
|
|
4320
4198
|
"service": "https://taiko.blockpi.network/v1/rpc/public"
|
|
4321
4199
|
},
|
|
@@ -4346,11 +4224,7 @@ exports.web3Seeds = [
|
|
|
4346
4224
|
{
|
|
4347
4225
|
"networkId": "eip155:167009",
|
|
4348
4226
|
"service": "https://rpc.hekla.taiko.xyz"
|
|
4349
|
-
},
|
|
4350
|
-
{
|
|
4351
|
-
"networkId": "eip155:167009",
|
|
4352
|
-
},
|
|
4353
|
-
{
|
|
4227
|
+
}, {
|
|
4354
4228
|
"networkId": "eip155:167009",
|
|
4355
4229
|
"service": "https://taiko-hekla.blockpi.network/v1/rpc/public"
|
|
4356
4230
|
},
|
|
@@ -4493,11 +4367,7 @@ exports.web3Seeds = [
|
|
|
4493
4367
|
{
|
|
4494
4368
|
"networkId": "eip155:534351",
|
|
4495
4369
|
"service": "https://scroll-testnet-public.unifra.io"
|
|
4496
|
-
},
|
|
4497
|
-
{
|
|
4498
|
-
"networkId": "eip155:534351",
|
|
4499
|
-
},
|
|
4500
|
-
{
|
|
4370
|
+
}, {
|
|
4501
4371
|
"networkId": "eip155:534351",
|
|
4502
4372
|
"service": "https://scroll-public.scroll-testnet.quiknode.pro/"
|
|
4503
4373
|
},
|
|
@@ -4860,11 +4730,7 @@ exports.web3Seeds = [
|
|
|
4860
4730
|
{
|
|
4861
4731
|
"networkId": "eip155:1666600000",
|
|
4862
4732
|
"service": "https://api.s0.t.hmny.io"
|
|
4863
|
-
},
|
|
4864
|
-
{
|
|
4865
|
-
"networkId": "eip155:1666600000",
|
|
4866
|
-
},
|
|
4867
|
-
{
|
|
4733
|
+
}, {
|
|
4868
4734
|
"networkId": "eip155:1666600000",
|
|
4869
4735
|
"service": "https://1rpc.io/one"
|
|
4870
4736
|
},
|
package/package.json
CHANGED
package/verify-nodes.js
ADDED
|
@@ -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
|
+
}
|