@dashevo/dapi-grpc 0.25.10 → 0.25.12
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/clients/platform/v0/nodejs/PlatformPromiseClient.js +36 -26
- package/clients/platform/v0/nodejs/platform_pbjs.js +668 -668
- package/clients/platform/v0/nodejs/platform_protoc.js +456 -456
- package/clients/platform/v0/web/PlatformPromiseClient.js +10 -10
- package/clients/platform/v0/web/platform_pb.d.ts +88 -88
- package/clients/platform/v0/web/platform_pb.js +456 -456
- package/clients/platform/v0/web/platform_pb_service.d.ts +20 -20
- package/clients/platform/v0/web/platform_pb_service.js +12 -12
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +14 -14
- package/src/platform/proto/org.dash.platform.dapi.v0.rs +63 -46
- package/test/unit/clients/platform/v0/nodejs/PlatformPromiseClient.spec.js +9 -8
|
@@ -139,22 +139,22 @@ type PlatformgetConsensusParams = {
|
|
|
139
139
|
readonly responseType: typeof platform_pb.GetConsensusParamsResponse;
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
-
type
|
|
142
|
+
type PlatformgetProtocolVersionUpgradeState = {
|
|
143
143
|
readonly methodName: string;
|
|
144
144
|
readonly service: typeof Platform;
|
|
145
145
|
readonly requestStream: false;
|
|
146
146
|
readonly responseStream: false;
|
|
147
|
-
readonly requestType: typeof platform_pb.
|
|
148
|
-
readonly responseType: typeof platform_pb.
|
|
147
|
+
readonly requestType: typeof platform_pb.GetProtocolVersionUpgradeStateRequest;
|
|
148
|
+
readonly responseType: typeof platform_pb.GetProtocolVersionUpgradeStateResponse;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
-
type
|
|
151
|
+
type PlatformgetProtocolVersionUpgradeVoteStatus = {
|
|
152
152
|
readonly methodName: string;
|
|
153
153
|
readonly service: typeof Platform;
|
|
154
154
|
readonly requestStream: false;
|
|
155
155
|
readonly responseStream: false;
|
|
156
|
-
readonly requestType: typeof platform_pb.
|
|
157
|
-
readonly responseType: typeof platform_pb.
|
|
156
|
+
readonly requestType: typeof platform_pb.GetProtocolVersionUpgradeVoteStatusRequest;
|
|
157
|
+
readonly responseType: typeof platform_pb.GetProtocolVersionUpgradeVoteStatusResponse;
|
|
158
158
|
};
|
|
159
159
|
|
|
160
160
|
type PlatformgetEpochsInfo = {
|
|
@@ -183,8 +183,8 @@ export class Platform {
|
|
|
183
183
|
static readonly getIdentityByPublicKeyHash: PlatformgetIdentityByPublicKeyHash;
|
|
184
184
|
static readonly waitForStateTransitionResult: PlatformwaitForStateTransitionResult;
|
|
185
185
|
static readonly getConsensusParams: PlatformgetConsensusParams;
|
|
186
|
-
static readonly
|
|
187
|
-
static readonly
|
|
186
|
+
static readonly getProtocolVersionUpgradeState: PlatformgetProtocolVersionUpgradeState;
|
|
187
|
+
static readonly getProtocolVersionUpgradeVoteStatus: PlatformgetProtocolVersionUpgradeVoteStatus;
|
|
188
188
|
static readonly getEpochsInfo: PlatformgetEpochsInfo;
|
|
189
189
|
}
|
|
190
190
|
|
|
@@ -355,23 +355,23 @@ export class PlatformClient {
|
|
|
355
355
|
requestMessage: platform_pb.GetConsensusParamsRequest,
|
|
356
356
|
callback: (error: ServiceError|null, responseMessage: platform_pb.GetConsensusParamsResponse|null) => void
|
|
357
357
|
): UnaryResponse;
|
|
358
|
-
|
|
359
|
-
requestMessage: platform_pb.
|
|
358
|
+
getProtocolVersionUpgradeState(
|
|
359
|
+
requestMessage: platform_pb.GetProtocolVersionUpgradeStateRequest,
|
|
360
360
|
metadata: grpc.Metadata,
|
|
361
|
-
callback: (error: ServiceError|null, responseMessage: platform_pb.
|
|
361
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetProtocolVersionUpgradeStateResponse|null) => void
|
|
362
362
|
): UnaryResponse;
|
|
363
|
-
|
|
364
|
-
requestMessage: platform_pb.
|
|
365
|
-
callback: (error: ServiceError|null, responseMessage: platform_pb.
|
|
363
|
+
getProtocolVersionUpgradeState(
|
|
364
|
+
requestMessage: platform_pb.GetProtocolVersionUpgradeStateRequest,
|
|
365
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetProtocolVersionUpgradeStateResponse|null) => void
|
|
366
366
|
): UnaryResponse;
|
|
367
|
-
|
|
368
|
-
requestMessage: platform_pb.
|
|
367
|
+
getProtocolVersionUpgradeVoteStatus(
|
|
368
|
+
requestMessage: platform_pb.GetProtocolVersionUpgradeVoteStatusRequest,
|
|
369
369
|
metadata: grpc.Metadata,
|
|
370
|
-
callback: (error: ServiceError|null, responseMessage: platform_pb.
|
|
370
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetProtocolVersionUpgradeVoteStatusResponse|null) => void
|
|
371
371
|
): UnaryResponse;
|
|
372
|
-
|
|
373
|
-
requestMessage: platform_pb.
|
|
374
|
-
callback: (error: ServiceError|null, responseMessage: platform_pb.
|
|
372
|
+
getProtocolVersionUpgradeVoteStatus(
|
|
373
|
+
requestMessage: platform_pb.GetProtocolVersionUpgradeVoteStatusRequest,
|
|
374
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetProtocolVersionUpgradeVoteStatusResponse|null) => void
|
|
375
375
|
): UnaryResponse;
|
|
376
376
|
getEpochsInfo(
|
|
377
377
|
requestMessage: platform_pb.GetEpochsInfoRequest,
|
|
@@ -145,22 +145,22 @@ Platform.getConsensusParams = {
|
|
|
145
145
|
responseType: platform_pb.GetConsensusParamsResponse
|
|
146
146
|
};
|
|
147
147
|
|
|
148
|
-
Platform.
|
|
149
|
-
methodName: "
|
|
148
|
+
Platform.getProtocolVersionUpgradeState = {
|
|
149
|
+
methodName: "getProtocolVersionUpgradeState",
|
|
150
150
|
service: Platform,
|
|
151
151
|
requestStream: false,
|
|
152
152
|
responseStream: false,
|
|
153
|
-
requestType: platform_pb.
|
|
154
|
-
responseType: platform_pb.
|
|
153
|
+
requestType: platform_pb.GetProtocolVersionUpgradeStateRequest,
|
|
154
|
+
responseType: platform_pb.GetProtocolVersionUpgradeStateResponse
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
Platform.
|
|
158
|
-
methodName: "
|
|
157
|
+
Platform.getProtocolVersionUpgradeVoteStatus = {
|
|
158
|
+
methodName: "getProtocolVersionUpgradeVoteStatus",
|
|
159
159
|
service: Platform,
|
|
160
160
|
requestStream: false,
|
|
161
161
|
responseStream: false,
|
|
162
|
-
requestType: platform_pb.
|
|
163
|
-
responseType: platform_pb.
|
|
162
|
+
requestType: platform_pb.GetProtocolVersionUpgradeVoteStatusRequest,
|
|
163
|
+
responseType: platform_pb.GetProtocolVersionUpgradeVoteStatusResponse
|
|
164
164
|
};
|
|
165
165
|
|
|
166
166
|
Platform.getEpochsInfo = {
|
|
@@ -644,11 +644,11 @@ PlatformClient.prototype.getConsensusParams = function getConsensusParams(reques
|
|
|
644
644
|
};
|
|
645
645
|
};
|
|
646
646
|
|
|
647
|
-
PlatformClient.prototype.
|
|
647
|
+
PlatformClient.prototype.getProtocolVersionUpgradeState = function getProtocolVersionUpgradeState(requestMessage, metadata, callback) {
|
|
648
648
|
if (arguments.length === 2) {
|
|
649
649
|
callback = arguments[1];
|
|
650
650
|
}
|
|
651
|
-
var client = grpc.unary(Platform.
|
|
651
|
+
var client = grpc.unary(Platform.getProtocolVersionUpgradeState, {
|
|
652
652
|
request: requestMessage,
|
|
653
653
|
host: this.serviceHost,
|
|
654
654
|
metadata: metadata,
|
|
@@ -675,11 +675,11 @@ PlatformClient.prototype.getVersionUpgradeState = function getVersionUpgradeStat
|
|
|
675
675
|
};
|
|
676
676
|
};
|
|
677
677
|
|
|
678
|
-
PlatformClient.prototype.
|
|
678
|
+
PlatformClient.prototype.getProtocolVersionUpgradeVoteStatus = function getProtocolVersionUpgradeVoteStatus(requestMessage, metadata, callback) {
|
|
679
679
|
if (arguments.length === 2) {
|
|
680
680
|
callback = arguments[1];
|
|
681
681
|
}
|
|
682
|
-
var client = grpc.unary(Platform.
|
|
682
|
+
var client = grpc.unary(Platform.getProtocolVersionUpgradeVoteStatus, {
|
|
683
683
|
request: requestMessage,
|
|
684
684
|
host: this.serviceHost,
|
|
685
685
|
metadata: metadata,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashevo/dapi-grpc",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.12",
|
|
4
4
|
"description": "DAPI GRPC definition file and generated clients",
|
|
5
5
|
"browser": "browser.js",
|
|
6
6
|
"main": "node.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/dashevo/dapi-grpc#readme",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@dashevo/grpc-common": "0.25.
|
|
48
|
+
"@dashevo/grpc-common": "0.25.12",
|
|
49
49
|
"@dashevo/protobufjs": "6.10.5",
|
|
50
50
|
"@grpc/grpc-js": "^1.3.7",
|
|
51
51
|
"@improbable-eng/grpc-web": "^0.15.0",
|
|
@@ -23,8 +23,8 @@ service Platform {
|
|
|
23
23
|
rpc getIdentityByPublicKeyHash (GetIdentityByPublicKeyHashRequest) returns (GetIdentityByPublicKeyHashResponse);
|
|
24
24
|
rpc waitForStateTransitionResult (WaitForStateTransitionResultRequest) returns (WaitForStateTransitionResultResponse);
|
|
25
25
|
rpc getConsensusParams (GetConsensusParamsRequest) returns (GetConsensusParamsResponse);
|
|
26
|
-
rpc
|
|
27
|
-
rpc
|
|
26
|
+
rpc getProtocolVersionUpgradeState(GetProtocolVersionUpgradeStateRequest) returns (GetProtocolVersionUpgradeStateResponse);
|
|
27
|
+
rpc getProtocolVersionUpgradeVoteStatus(GetProtocolVersionUpgradeVoteStatusRequest) returns (GetProtocolVersionUpgradeVoteStatusResponse);
|
|
28
28
|
rpc getEpochsInfo(GetEpochsInfoRequest) returns (GetEpochsInfoResponse);
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -530,18 +530,18 @@ message GetConsensusParamsResponse {
|
|
|
530
530
|
}
|
|
531
531
|
|
|
532
532
|
|
|
533
|
-
message
|
|
534
|
-
message
|
|
533
|
+
message GetProtocolVersionUpgradeStateRequest {
|
|
534
|
+
message GetProtocolVersionUpgradeStateRequestV0 {
|
|
535
535
|
bool prove = 1;
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
oneof version {
|
|
539
|
-
|
|
539
|
+
GetProtocolVersionUpgradeStateRequestV0 v0 = 1;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
|
|
543
|
-
message
|
|
544
|
-
message
|
|
543
|
+
message GetProtocolVersionUpgradeStateResponse {
|
|
544
|
+
message GetProtocolVersionUpgradeStateResponseV0 {
|
|
545
545
|
message Versions {
|
|
546
546
|
repeated VersionEntry versions = 1;
|
|
547
547
|
}
|
|
@@ -559,24 +559,24 @@ message GetVersionUpgradeStateResponse {
|
|
|
559
559
|
}
|
|
560
560
|
|
|
561
561
|
oneof version {
|
|
562
|
-
|
|
562
|
+
GetProtocolVersionUpgradeStateResponseV0 v0 = 1;
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
|
|
566
|
-
message
|
|
567
|
-
message
|
|
566
|
+
message GetProtocolVersionUpgradeVoteStatusRequest {
|
|
567
|
+
message GetProtocolVersionUpgradeVoteStatusRequestV0 {
|
|
568
568
|
bytes start_pro_tx_hash = 1;
|
|
569
569
|
uint32 count = 2;
|
|
570
570
|
bool prove = 3;
|
|
571
571
|
}
|
|
572
572
|
|
|
573
573
|
oneof version {
|
|
574
|
-
|
|
574
|
+
GetProtocolVersionUpgradeVoteStatusRequestV0 v0 = 1;
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
-
message
|
|
579
|
-
message
|
|
578
|
+
message GetProtocolVersionUpgradeVoteStatusResponse {
|
|
579
|
+
message GetProtocolVersionUpgradeVoteStatusResponseV0 {
|
|
580
580
|
message VersionSignals {
|
|
581
581
|
repeated VersionSignal version_signals = 1;
|
|
582
582
|
}
|
|
@@ -594,7 +594,7 @@ message GetVersionUpgradeVoteStatusResponse {
|
|
|
594
594
|
}
|
|
595
595
|
|
|
596
596
|
oneof version {
|
|
597
|
-
|
|
597
|
+
GetProtocolVersionUpgradeVoteStatusResponseV0 v0 = 1;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
|
|
@@ -1159,15 +1159,17 @@ pub mod get_consensus_params_response {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1161
1161
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1162
|
-
pub struct
|
|
1163
|
-
#[prost(oneof = "
|
|
1164
|
-
pub version: ::core::option::Option<
|
|
1162
|
+
pub struct GetProtocolVersionUpgradeStateRequest {
|
|
1163
|
+
#[prost(oneof = "get_protocol_version_upgrade_state_request::Version", tags = "1")]
|
|
1164
|
+
pub version: ::core::option::Option<
|
|
1165
|
+
get_protocol_version_upgrade_state_request::Version,
|
|
1166
|
+
>,
|
|
1165
1167
|
}
|
|
1166
|
-
/// Nested message and enum types in `
|
|
1167
|
-
pub mod
|
|
1168
|
+
/// Nested message and enum types in `GetProtocolVersionUpgradeStateRequest`.
|
|
1169
|
+
pub mod get_protocol_version_upgrade_state_request {
|
|
1168
1170
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1169
1171
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1170
|
-
pub struct
|
|
1172
|
+
pub struct GetProtocolVersionUpgradeStateRequestV0 {
|
|
1171
1173
|
#[prost(bool, tag = "1")]
|
|
1172
1174
|
pub prove: bool,
|
|
1173
1175
|
}
|
|
@@ -1175,29 +1177,34 @@ pub mod get_version_upgrade_state_request {
|
|
|
1175
1177
|
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1176
1178
|
pub enum Version {
|
|
1177
1179
|
#[prost(message, tag = "1")]
|
|
1178
|
-
V0(
|
|
1180
|
+
V0(GetProtocolVersionUpgradeStateRequestV0),
|
|
1179
1181
|
}
|
|
1180
1182
|
}
|
|
1181
1183
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1182
1184
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1183
|
-
pub struct
|
|
1184
|
-
#[prost(oneof = "
|
|
1185
|
-
pub version: ::core::option::Option<
|
|
1185
|
+
pub struct GetProtocolVersionUpgradeStateResponse {
|
|
1186
|
+
#[prost(oneof = "get_protocol_version_upgrade_state_response::Version", tags = "1")]
|
|
1187
|
+
pub version: ::core::option::Option<
|
|
1188
|
+
get_protocol_version_upgrade_state_response::Version,
|
|
1189
|
+
>,
|
|
1186
1190
|
}
|
|
1187
|
-
/// Nested message and enum types in `
|
|
1188
|
-
pub mod
|
|
1191
|
+
/// Nested message and enum types in `GetProtocolVersionUpgradeStateResponse`.
|
|
1192
|
+
pub mod get_protocol_version_upgrade_state_response {
|
|
1189
1193
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1190
1194
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1191
|
-
pub struct
|
|
1195
|
+
pub struct GetProtocolVersionUpgradeStateResponseV0 {
|
|
1192
1196
|
#[prost(message, optional, tag = "3")]
|
|
1193
1197
|
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
1194
|
-
#[prost(
|
|
1198
|
+
#[prost(
|
|
1199
|
+
oneof = "get_protocol_version_upgrade_state_response_v0::Result",
|
|
1200
|
+
tags = "1, 2"
|
|
1201
|
+
)]
|
|
1195
1202
|
pub result: ::core::option::Option<
|
|
1196
|
-
|
|
1203
|
+
get_protocol_version_upgrade_state_response_v0::Result,
|
|
1197
1204
|
>,
|
|
1198
1205
|
}
|
|
1199
|
-
/// Nested message and enum types in `
|
|
1200
|
-
pub mod
|
|
1206
|
+
/// Nested message and enum types in `GetProtocolVersionUpgradeStateResponseV0`.
|
|
1207
|
+
pub mod get_protocol_version_upgrade_state_response_v0 {
|
|
1201
1208
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1202
1209
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1203
1210
|
pub struct Versions {
|
|
@@ -1225,22 +1232,25 @@ pub mod get_version_upgrade_state_response {
|
|
|
1225
1232
|
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1226
1233
|
pub enum Version {
|
|
1227
1234
|
#[prost(message, tag = "1")]
|
|
1228
|
-
V0(
|
|
1235
|
+
V0(GetProtocolVersionUpgradeStateResponseV0),
|
|
1229
1236
|
}
|
|
1230
1237
|
}
|
|
1231
1238
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1232
1239
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1233
|
-
pub struct
|
|
1234
|
-
#[prost(
|
|
1240
|
+
pub struct GetProtocolVersionUpgradeVoteStatusRequest {
|
|
1241
|
+
#[prost(
|
|
1242
|
+
oneof = "get_protocol_version_upgrade_vote_status_request::Version",
|
|
1243
|
+
tags = "1"
|
|
1244
|
+
)]
|
|
1235
1245
|
pub version: ::core::option::Option<
|
|
1236
|
-
|
|
1246
|
+
get_protocol_version_upgrade_vote_status_request::Version,
|
|
1237
1247
|
>,
|
|
1238
1248
|
}
|
|
1239
|
-
/// Nested message and enum types in `
|
|
1240
|
-
pub mod
|
|
1249
|
+
/// Nested message and enum types in `GetProtocolVersionUpgradeVoteStatusRequest`.
|
|
1250
|
+
pub mod get_protocol_version_upgrade_vote_status_request {
|
|
1241
1251
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1242
1252
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1243
|
-
pub struct
|
|
1253
|
+
pub struct GetProtocolVersionUpgradeVoteStatusRequestV0 {
|
|
1244
1254
|
#[prost(bytes = "vec", tag = "1")]
|
|
1245
1255
|
pub start_pro_tx_hash: ::prost::alloc::vec::Vec<u8>,
|
|
1246
1256
|
#[prost(uint32, tag = "2")]
|
|
@@ -1252,34 +1262,37 @@ pub mod get_version_upgrade_vote_status_request {
|
|
|
1252
1262
|
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1253
1263
|
pub enum Version {
|
|
1254
1264
|
#[prost(message, tag = "1")]
|
|
1255
|
-
V0(
|
|
1265
|
+
V0(GetProtocolVersionUpgradeVoteStatusRequestV0),
|
|
1256
1266
|
}
|
|
1257
1267
|
}
|
|
1258
1268
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1259
1269
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1260
|
-
pub struct
|
|
1261
|
-
#[prost(
|
|
1270
|
+
pub struct GetProtocolVersionUpgradeVoteStatusResponse {
|
|
1271
|
+
#[prost(
|
|
1272
|
+
oneof = "get_protocol_version_upgrade_vote_status_response::Version",
|
|
1273
|
+
tags = "1"
|
|
1274
|
+
)]
|
|
1262
1275
|
pub version: ::core::option::Option<
|
|
1263
|
-
|
|
1276
|
+
get_protocol_version_upgrade_vote_status_response::Version,
|
|
1264
1277
|
>,
|
|
1265
1278
|
}
|
|
1266
|
-
/// Nested message and enum types in `
|
|
1267
|
-
pub mod
|
|
1279
|
+
/// Nested message and enum types in `GetProtocolVersionUpgradeVoteStatusResponse`.
|
|
1280
|
+
pub mod get_protocol_version_upgrade_vote_status_response {
|
|
1268
1281
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1269
1282
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1270
|
-
pub struct
|
|
1283
|
+
pub struct GetProtocolVersionUpgradeVoteStatusResponseV0 {
|
|
1271
1284
|
#[prost(message, optional, tag = "3")]
|
|
1272
1285
|
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
1273
1286
|
#[prost(
|
|
1274
|
-
oneof = "
|
|
1287
|
+
oneof = "get_protocol_version_upgrade_vote_status_response_v0::Result",
|
|
1275
1288
|
tags = "1, 2"
|
|
1276
1289
|
)]
|
|
1277
1290
|
pub result: ::core::option::Option<
|
|
1278
|
-
|
|
1291
|
+
get_protocol_version_upgrade_vote_status_response_v0::Result,
|
|
1279
1292
|
>,
|
|
1280
1293
|
}
|
|
1281
|
-
/// Nested message and enum types in `
|
|
1282
|
-
pub mod
|
|
1294
|
+
/// Nested message and enum types in `GetProtocolVersionUpgradeVoteStatusResponseV0`.
|
|
1295
|
+
pub mod get_protocol_version_upgrade_vote_status_response_v0 {
|
|
1283
1296
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1284
1297
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1285
1298
|
pub struct VersionSignals {
|
|
@@ -1307,7 +1320,7 @@ pub mod get_version_upgrade_vote_status_response {
|
|
|
1307
1320
|
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
1308
1321
|
pub enum Version {
|
|
1309
1322
|
#[prost(message, tag = "1")]
|
|
1310
|
-
V0(
|
|
1323
|
+
V0(GetProtocolVersionUpgradeVoteStatusResponseV0),
|
|
1311
1324
|
}
|
|
1312
1325
|
}
|
|
1313
1326
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
@@ -1919,11 +1932,13 @@ pub mod platform_client {
|
|
|
1919
1932
|
);
|
|
1920
1933
|
self.inner.unary(req, path, codec).await
|
|
1921
1934
|
}
|
|
1922
|
-
pub async fn
|
|
1935
|
+
pub async fn get_protocol_version_upgrade_state(
|
|
1923
1936
|
&mut self,
|
|
1924
|
-
request: impl tonic::IntoRequest<
|
|
1937
|
+
request: impl tonic::IntoRequest<
|
|
1938
|
+
super::GetProtocolVersionUpgradeStateRequest,
|
|
1939
|
+
>,
|
|
1925
1940
|
) -> std::result::Result<
|
|
1926
|
-
tonic::Response<super::
|
|
1941
|
+
tonic::Response<super::GetProtocolVersionUpgradeStateResponse>,
|
|
1927
1942
|
tonic::Status,
|
|
1928
1943
|
> {
|
|
1929
1944
|
self.inner
|
|
@@ -1937,23 +1952,25 @@ pub mod platform_client {
|
|
|
1937
1952
|
})?;
|
|
1938
1953
|
let codec = tonic::codec::ProstCodec::default();
|
|
1939
1954
|
let path = http::uri::PathAndQuery::from_static(
|
|
1940
|
-
"/org.dash.platform.dapi.v0.Platform/
|
|
1955
|
+
"/org.dash.platform.dapi.v0.Platform/getProtocolVersionUpgradeState",
|
|
1941
1956
|
);
|
|
1942
1957
|
let mut req = request.into_request();
|
|
1943
1958
|
req.extensions_mut()
|
|
1944
1959
|
.insert(
|
|
1945
1960
|
GrpcMethod::new(
|
|
1946
1961
|
"org.dash.platform.dapi.v0.Platform",
|
|
1947
|
-
"
|
|
1962
|
+
"getProtocolVersionUpgradeState",
|
|
1948
1963
|
),
|
|
1949
1964
|
);
|
|
1950
1965
|
self.inner.unary(req, path, codec).await
|
|
1951
1966
|
}
|
|
1952
|
-
pub async fn
|
|
1967
|
+
pub async fn get_protocol_version_upgrade_vote_status(
|
|
1953
1968
|
&mut self,
|
|
1954
|
-
request: impl tonic::IntoRequest<
|
|
1969
|
+
request: impl tonic::IntoRequest<
|
|
1970
|
+
super::GetProtocolVersionUpgradeVoteStatusRequest,
|
|
1971
|
+
>,
|
|
1955
1972
|
) -> std::result::Result<
|
|
1956
|
-
tonic::Response<super::
|
|
1973
|
+
tonic::Response<super::GetProtocolVersionUpgradeVoteStatusResponse>,
|
|
1957
1974
|
tonic::Status,
|
|
1958
1975
|
> {
|
|
1959
1976
|
self.inner
|
|
@@ -1967,14 +1984,14 @@ pub mod platform_client {
|
|
|
1967
1984
|
})?;
|
|
1968
1985
|
let codec = tonic::codec::ProstCodec::default();
|
|
1969
1986
|
let path = http::uri::PathAndQuery::from_static(
|
|
1970
|
-
"/org.dash.platform.dapi.v0.Platform/
|
|
1987
|
+
"/org.dash.platform.dapi.v0.Platform/getProtocolVersionUpgradeVoteStatus",
|
|
1971
1988
|
);
|
|
1972
1989
|
let mut req = request.into_request();
|
|
1973
1990
|
req.extensions_mut()
|
|
1974
1991
|
.insert(
|
|
1975
1992
|
GrpcMethod::new(
|
|
1976
1993
|
"org.dash.platform.dapi.v0.Platform",
|
|
1977
|
-
"
|
|
1994
|
+
"getProtocolVersionUpgradeVoteStatus",
|
|
1978
1995
|
),
|
|
1979
1996
|
);
|
|
1980
1997
|
self.inner.unary(req, path, codec).await
|
|
@@ -16,8 +16,8 @@ describe('PlatformPromiseClient', () => {
|
|
|
16
16
|
getDataContract: this.sinon.stub().resolves(response),
|
|
17
17
|
getDocuments: this.sinon.stub().resolves(response),
|
|
18
18
|
getEpochsInfo: this.sinon.stub().resolves(response),
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
getProtocolVersionUpgradeVoteStatus: this.sinon.stub().resolves(response),
|
|
20
|
+
getProtocolVersionUpgradeState: this.sinon.stub().resolves(response),
|
|
21
21
|
};
|
|
22
22
|
});
|
|
23
23
|
|
|
@@ -97,22 +97,23 @@ describe('PlatformPromiseClient', () => {
|
|
|
97
97
|
});
|
|
98
98
|
});
|
|
99
99
|
|
|
100
|
-
describe('#
|
|
100
|
+
describe('#getProtocolVersionUpgradeVoteStatus', () => {
|
|
101
101
|
it('should get version upgrade vote status', async () => {
|
|
102
|
-
const result = await platformPromiseClient.
|
|
102
|
+
const result = await platformPromiseClient.getProtocolVersionUpgradeVoteStatus(request);
|
|
103
103
|
|
|
104
104
|
expect(result).to.equal(response);
|
|
105
|
-
expect(platformPromiseClient.client.
|
|
105
|
+
expect(platformPromiseClient.client.getProtocolVersionUpgradeVoteStatus)
|
|
106
106
|
.to.be.calledOnceWith(request);
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
109
|
|
|
110
|
-
describe('#
|
|
110
|
+
describe('#getProtocolVersionUpgradeState', () => {
|
|
111
111
|
it('should get version upgrade state', async () => {
|
|
112
|
-
const result = await platformPromiseClient.
|
|
112
|
+
const result = await platformPromiseClient.getProtocolVersionUpgradeState(request);
|
|
113
113
|
|
|
114
114
|
expect(result).to.equal(response);
|
|
115
|
-
expect(platformPromiseClient.client.
|
|
115
|
+
expect(platformPromiseClient.client.getProtocolVersionUpgradeState)
|
|
116
|
+
.to.be.calledOnceWith(request);
|
|
116
117
|
});
|
|
117
118
|
});
|
|
118
119
|
});
|