@dashevo/dapi-client 1.4.1 → 1.5.0-rc.1
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/lib/networkConfigs.js
CHANGED
|
@@ -6,6 +6,7 @@ module.exports = {
|
|
|
6
6
|
'seed-3.testnet.networks.dash.org:1443',
|
|
7
7
|
'seed-4.testnet.networks.dash.org:1443',
|
|
8
8
|
'seed-5.testnet.networks.dash.org:1443',
|
|
9
|
+
'seed-1.pshenmic.dev:1443',
|
|
9
10
|
],
|
|
10
11
|
network: 'testnet',
|
|
11
12
|
// Since we don't have PoSe atm, 3rd party masternodes sometimes provide wrong data
|
|
@@ -57,6 +58,7 @@ module.exports = {
|
|
|
57
58
|
'seed-2.mainnet.networks.dash.org',
|
|
58
59
|
'seed-3.mainnet.networks.dash.org',
|
|
59
60
|
'seed-4.mainnet.networks.dash.org',
|
|
61
|
+
'seed-1.pshenmic.dev',
|
|
60
62
|
],
|
|
61
63
|
network: 'mainnet',
|
|
62
64
|
},
|
|
@@ -119,7 +119,13 @@ async function createGrpcTransportError(grpcError, dapiAddress) {
|
|
|
119
119
|
|
|
120
120
|
// DPP consensus errors
|
|
121
121
|
if (code >= 10000 && code < 50000) {
|
|
122
|
-
const
|
|
122
|
+
const consensusErrorString = metadata['dash-serialized-consensus-error-bin'];
|
|
123
|
+
if (!consensusErrorString) {
|
|
124
|
+
throw new Error(`Can't deserialize consensus error ${code}: serialized data is missing`);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const consensusErrorBytes = Buffer.from(consensusErrorString, 'base64');
|
|
128
|
+
const consensusError = deserializeConsensusError(consensusErrorBytes);
|
|
123
129
|
|
|
124
130
|
delete data.serializedError;
|
|
125
131
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashevo/dapi-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0-rc.1",
|
|
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": "1.
|
|
30
|
-
"@dashevo/dash-spv": "2.
|
|
29
|
+
"@dashevo/dapi-grpc": "1.5.0-rc.1",
|
|
30
|
+
"@dashevo/dash-spv": "2.5.0-rc.1",
|
|
31
31
|
"@dashevo/dashcore-lib": "~0.22.0",
|
|
32
|
-
"@dashevo/grpc-common": "1.
|
|
33
|
-
"@dashevo/wasm-dpp": "1.
|
|
32
|
+
"@dashevo/grpc-common": "1.5.0-rc.1",
|
|
33
|
+
"@dashevo/wasm-dpp": "1.5.0-rc.1",
|
|
34
34
|
"bs58": "^4.0.1",
|
|
35
35
|
"cbor": "^8.0.0",
|
|
36
36
|
"google-protobuf": "^3.12.2",
|