@dashevo/dapi-client 5.0.1 → 5.0.2
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.
|
@@ -61,9 +61,8 @@ function createDAPIAddressProviderFromOptions(options) {
|
|
|
61
61
|
if (options.seeds) {
|
|
62
62
|
let dapiAddressesWhiteList = options.dapiAddressesWhiteList || [];
|
|
63
63
|
|
|
64
|
-
//
|
|
65
|
-
//
|
|
66
|
-
// reliable DCG testnet masternodes to connect. Should be removed when PoSe is introduced.
|
|
64
|
+
// On testnet, connect only to the evonodes in networkConfigs.testnet.dapiAddressesWhiteList
|
|
65
|
+
// unless a whitelist is passed.
|
|
67
66
|
const network = networks.get(options.network);
|
|
68
67
|
let isRegtest = false;
|
|
69
68
|
if (network) {
|
package/lib/networkConfigs.js
CHANGED
|
@@ -9,34 +9,53 @@ module.exports = {
|
|
|
9
9
|
'seed-1.pshenmic.dev:1443',
|
|
10
10
|
],
|
|
11
11
|
network: 'testnet',
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
12
|
+
// Snapshot of testnet evonodes that were enabled and passed the version check.
|
|
13
|
+
// Regenerate it when it goes stale: if none of these is in the masternode list,
|
|
14
|
+
// default discovery fails with NoAvailableAddressesError.
|
|
15
15
|
// Generate list with:
|
|
16
16
|
// curl https://quorums.testnet.networks.dash.org/masternodes | jq 'select(.success) | .data | map(select(.status=="ENABLED" and .versionCheck=="success") | .address | sub(":[0-9]+$"; ":1443")) | sort_by( split(":")[0] | split(".") | map(tonumber) )' // eslint-disable-line max-len
|
|
17
17
|
dapiAddressesWhiteList: [
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
18
|
+
'68.67.122.1:1443',
|
|
19
|
+
'68.67.122.2:1443',
|
|
20
|
+
'68.67.122.3:1443',
|
|
21
|
+
'68.67.122.4:1443',
|
|
22
|
+
'68.67.122.5:1443',
|
|
23
|
+
'68.67.122.6:1443',
|
|
24
|
+
'68.67.122.7:1443',
|
|
25
|
+
'68.67.122.8:1443',
|
|
26
|
+
'68.67.122.9:1443',
|
|
27
|
+
'68.67.122.10:1443',
|
|
28
|
+
'68.67.122.11:1443',
|
|
29
|
+
'68.67.122.12:1443',
|
|
30
|
+
'68.67.122.13:1443',
|
|
31
|
+
'68.67.122.14:1443',
|
|
32
|
+
'68.67.122.15:1443',
|
|
33
|
+
'68.67.122.16:1443',
|
|
34
|
+
'68.67.122.17:1443',
|
|
35
|
+
'68.67.122.18:1443',
|
|
36
|
+
'68.67.122.19:1443',
|
|
37
|
+
'68.67.122.20:1443',
|
|
38
|
+
'68.67.122.21:1443',
|
|
39
|
+
'68.67.122.22:1443',
|
|
40
|
+
'68.67.122.23:1443',
|
|
41
|
+
'68.67.122.24:1443',
|
|
42
|
+
'68.67.122.25:1443',
|
|
43
|
+
'68.67.122.26:1443',
|
|
44
|
+
'68.67.122.27:1443',
|
|
45
|
+
'68.67.122.28:1443',
|
|
46
|
+
'68.67.122.29:1443',
|
|
47
|
+
'85.209.243.1:1443',
|
|
48
|
+
'85.209.243.2:1443',
|
|
49
|
+
'85.209.243.3:1443',
|
|
50
|
+
'85.209.243.4:1443',
|
|
51
|
+
'85.209.243.5:1443',
|
|
52
|
+
'85.209.243.6:1443',
|
|
53
|
+
'85.209.243.7:1443',
|
|
54
|
+
'85.209.243.8:1443',
|
|
55
|
+
'85.209.243.9:1443',
|
|
56
|
+
'85.209.243.10:1443',
|
|
57
|
+
'87.229.22.126:1443',
|
|
58
|
+
'206.245.167.63:1443',
|
|
40
59
|
],
|
|
41
60
|
},
|
|
42
61
|
local: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashevo/dapi-client",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Client library used to access Dash DAPI endpoints",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"contributors": [
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
}
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@dashevo/dapi-grpc": "5.0.
|
|
30
|
-
"@dashevo/dash-spv": "6.0.
|
|
31
|
-
"@dashevo/dashcore-lib": "~0.
|
|
32
|
-
"@dashevo/grpc-common": "5.0.
|
|
33
|
-
"@dashevo/wasm-dpp": "5.0.
|
|
29
|
+
"@dashevo/dapi-grpc": "5.0.2",
|
|
30
|
+
"@dashevo/dash-spv": "6.0.2",
|
|
31
|
+
"@dashevo/dashcore-lib": "~0.26.1",
|
|
32
|
+
"@dashevo/grpc-common": "5.0.2",
|
|
33
|
+
"@dashevo/wasm-dpp": "5.0.2",
|
|
34
34
|
"cbor": "^8.0.0",
|
|
35
35
|
"google-protobuf": "^3.12.2",
|
|
36
36
|
"undici": "^6.28.1",
|