@dashevo/dapi-client 2.1.3 → 2.2.0-dev.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.
|
@@ -79,6 +79,7 @@ class GetStatusResponse {
|
|
|
79
79
|
const tenderdashBlockProtocol = v0.getVersion().getProtocol().getTenderdash().getBlock();
|
|
80
80
|
const driveCurrentProtocol = v0.getVersion().getProtocol().getDrive().getCurrent();
|
|
81
81
|
const driveLatestProtocol = v0.getVersion().getProtocol().getDrive().getLatest();
|
|
82
|
+
const driveNextEpochProtocol = v0.getVersion().getProtocol().getDrive().getNextEpoch();
|
|
82
83
|
|
|
83
84
|
const version = new VersionStatus(
|
|
84
85
|
dapiVersion,
|
|
@@ -88,6 +89,7 @@ class GetStatusResponse {
|
|
|
88
89
|
tenderdashBlockProtocol,
|
|
89
90
|
driveCurrentProtocol,
|
|
90
91
|
driveLatestProtocol,
|
|
92
|
+
driveNextEpochProtocol,
|
|
91
93
|
);
|
|
92
94
|
|
|
93
95
|
const nodeId = Buffer.from(v0.getNode().getId()).toString('hex');
|
|
@@ -6,7 +6,8 @@ class VersionStatus {
|
|
|
6
6
|
* @param {number} tenderdashP2pProtocol - Tenderdash Protocol Version
|
|
7
7
|
* @param {number} tenderdashBlockProtocol - Tenderdash Block Version
|
|
8
8
|
* @param {number} driveCurrentProtocol - Current Dash Platform (Drive) protocol version
|
|
9
|
-
* @param {number} driveLatestProtocol -
|
|
9
|
+
* @param {number} driveLatestProtocol - Latest Dash Platform (Drive) protocol version
|
|
10
|
+
* @param {number} driveNextEpochProtocol - Next-epoch Dash Platform (Drive) protocol version
|
|
10
11
|
*/
|
|
11
12
|
constructor(
|
|
12
13
|
dapiVersion,
|
|
@@ -16,6 +17,7 @@ class VersionStatus {
|
|
|
16
17
|
tenderdashBlockProtocol,
|
|
17
18
|
driveCurrentProtocol,
|
|
18
19
|
driveLatestProtocol,
|
|
20
|
+
driveNextEpochProtocol,
|
|
19
21
|
) {
|
|
20
22
|
this.dapiVersion = dapiVersion;
|
|
21
23
|
this.driveVersion = driveVersion || null;
|
|
@@ -24,6 +26,7 @@ class VersionStatus {
|
|
|
24
26
|
this.tenderdashBlockProtocol = tenderdashBlockProtocol;
|
|
25
27
|
this.driveCurrentProtocol = driveCurrentProtocol;
|
|
26
28
|
this.driveLatestProtocol = driveLatestProtocol;
|
|
29
|
+
this.driveNextEpochProtocol = driveNextEpochProtocol;
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
/**
|
|
@@ -74,6 +77,13 @@ class VersionStatus {
|
|
|
74
77
|
getDriveLatestProtocol() {
|
|
75
78
|
return this.driveLatestProtocol;
|
|
76
79
|
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @returns {number} Drive Next Epoch Protocol
|
|
83
|
+
*/
|
|
84
|
+
getDriveNextEpochProtocol() {
|
|
85
|
+
return this.driveNextEpochProtocol;
|
|
86
|
+
}
|
|
77
87
|
}
|
|
78
88
|
|
|
79
89
|
module.exports = VersionStatus;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashevo/dapi-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0-dev.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": "2.
|
|
30
|
-
"@dashevo/dash-spv": "3.
|
|
29
|
+
"@dashevo/dapi-grpc": "2.2.0-dev.2",
|
|
30
|
+
"@dashevo/dash-spv": "3.2.0-dev.2",
|
|
31
31
|
"@dashevo/dashcore-lib": "~0.22.0",
|
|
32
|
-
"@dashevo/grpc-common": "2.
|
|
33
|
-
"@dashevo/wasm-dpp": "2.
|
|
32
|
+
"@dashevo/grpc-common": "2.2.0-dev.2",
|
|
33
|
+
"@dashevo/wasm-dpp": "2.2.0-dev.2",
|
|
34
34
|
"bs58": "^4.0.1",
|
|
35
35
|
"cbor": "^8.0.0",
|
|
36
36
|
"google-protobuf": "^3.12.2",
|