@dashevo/dapi-grpc 0.25.11 → 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
|
@@ -42,10 +42,12 @@ const {
|
|
|
42
42
|
GetConsensusParamsResponse: PBJSGetConsensusParamsResponse,
|
|
43
43
|
GetEpochsInfoRequest: PBJSGetEpochsInfoRequest,
|
|
44
44
|
GetEpochsInfoResponse: PBJSGetEpochsInfoResponse,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
GetProtocolVersionUpgradeVoteStatusRequest:
|
|
46
|
+
PBJSGetProtocolVersionUpgradeVoteStatusRequest,
|
|
47
|
+
GetProtocolVersionUpgradeVoteStatusResponse:
|
|
48
|
+
PBJSGetProtocolVersionUpgradeVoteStatusResponse,
|
|
49
|
+
GetProtocolVersionUpgradeStateRequest: PBJSGetProtocolVersionUpgradeStateRequest,
|
|
50
|
+
GetProtocolVersionUpgradeStateResponse: PBJSGetProtocolVersionUpgradeStateResponse,
|
|
49
51
|
},
|
|
50
52
|
},
|
|
51
53
|
},
|
|
@@ -63,8 +65,8 @@ const {
|
|
|
63
65
|
WaitForStateTransitionResultResponse: ProtocWaitForStateTransitionResultResponse,
|
|
64
66
|
GetConsensusParamsResponse: ProtocGetConsensusParamsResponse,
|
|
65
67
|
GetEpochsInfoResponse: ProtocGetEpochsInfoResponse,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
GetProtocolVersionUpgradeVoteStatusResponse: ProtocGetProtocolVersionUpgradeVoteStatusResponse,
|
|
69
|
+
GetProtocolVersionUpgradeStateResponse: ProtocGetProtocolVersionUpgradeStateResponse,
|
|
68
70
|
} = require('./platform_protoc');
|
|
69
71
|
|
|
70
72
|
const getPlatformDefinition = require('../../../../lib/getPlatformDefinition');
|
|
@@ -127,12 +129,12 @@ class PlatformPromiseClient {
|
|
|
127
129
|
this.client.getEpochsInfo.bind(this.client),
|
|
128
130
|
);
|
|
129
131
|
|
|
130
|
-
this.client.
|
|
131
|
-
this.client.
|
|
132
|
+
this.client.getProtocolVersionUpgradeVoteStatus = promisify(
|
|
133
|
+
this.client.getProtocolVersionUpgradeVoteStatus.bind(this.client),
|
|
132
134
|
);
|
|
133
135
|
|
|
134
|
-
this.client.
|
|
135
|
-
this.client.
|
|
136
|
+
this.client.getProtocolVersionUpgradeState = promisify(
|
|
137
|
+
this.client.getProtocolVersionUpgradeState.bind(this.client),
|
|
136
138
|
);
|
|
137
139
|
|
|
138
140
|
this.protocolVersion = undefined;
|
|
@@ -427,28 +429,32 @@ class PlatformPromiseClient {
|
|
|
427
429
|
}
|
|
428
430
|
|
|
429
431
|
/**
|
|
430
|
-
* @param {!
|
|
432
|
+
* @param {!GetProtocolVersionUpgradeVoteStatusRequest} getProtocolVersionUpgradeVoteStatusRequest
|
|
431
433
|
* @param {?Object<string, string>} metadata
|
|
432
434
|
* @param {CallOptions} [options={}]
|
|
433
|
-
* @return {Promise<!
|
|
435
|
+
* @return {Promise<!GetProtocolVersionUpgradeVoteStatusResponse>}
|
|
434
436
|
*/
|
|
435
|
-
|
|
437
|
+
getProtocolVersionUpgradeVoteStatus(
|
|
438
|
+
getProtocolVersionUpgradeVoteStatusRequest,
|
|
439
|
+
metadata = {},
|
|
440
|
+
options = {},
|
|
441
|
+
) {
|
|
436
442
|
if (!isObject(metadata)) {
|
|
437
443
|
throw new Error('metadata must be an object');
|
|
438
444
|
}
|
|
439
445
|
|
|
440
|
-
return this.client.
|
|
441
|
-
|
|
446
|
+
return this.client.getProtocolVersionUpgradeVoteStatus(
|
|
447
|
+
getProtocolVersionUpgradeVoteStatusRequest,
|
|
442
448
|
convertObjectToMetadata(metadata),
|
|
443
449
|
{
|
|
444
450
|
interceptors: [
|
|
445
451
|
jsonToProtobufInterceptorFactory(
|
|
446
452
|
jsonToProtobufFactory(
|
|
447
|
-
|
|
448
|
-
|
|
453
|
+
ProtocGetProtocolVersionUpgradeVoteStatusResponse,
|
|
454
|
+
PBJSGetProtocolVersionUpgradeVoteStatusResponse,
|
|
449
455
|
),
|
|
450
456
|
protobufToJsonFactory(
|
|
451
|
-
|
|
457
|
+
PBJSGetProtocolVersionUpgradeVoteStatusRequest,
|
|
452
458
|
),
|
|
453
459
|
),
|
|
454
460
|
],
|
|
@@ -458,28 +464,32 @@ class PlatformPromiseClient {
|
|
|
458
464
|
}
|
|
459
465
|
|
|
460
466
|
/**
|
|
461
|
-
* @param {!
|
|
467
|
+
* @param {!GetProtocolVersionUpgradeStateRequest} getProtocolVersionUpgradeStateRequest
|
|
462
468
|
* @param {?Object<string, string>} metadata
|
|
463
469
|
* @param {CallOptions} [options={}]
|
|
464
|
-
* @return {Promise<!
|
|
470
|
+
* @return {Promise<!GetProtocolVersionUpgradeStateResponse>}
|
|
465
471
|
*/
|
|
466
|
-
|
|
472
|
+
getProtocolVersionUpgradeState(
|
|
473
|
+
getProtocolVersionUpgradeStateRequest,
|
|
474
|
+
metadata = {},
|
|
475
|
+
options = {},
|
|
476
|
+
) {
|
|
467
477
|
if (!isObject(metadata)) {
|
|
468
478
|
throw new Error('metadata must be an object');
|
|
469
479
|
}
|
|
470
480
|
|
|
471
|
-
return this.client.
|
|
472
|
-
|
|
481
|
+
return this.client.getProtocolVersionUpgradeState(
|
|
482
|
+
getProtocolVersionUpgradeStateRequest,
|
|
473
483
|
convertObjectToMetadata(metadata),
|
|
474
484
|
{
|
|
475
485
|
interceptors: [
|
|
476
486
|
jsonToProtobufInterceptorFactory(
|
|
477
487
|
jsonToProtobufFactory(
|
|
478
|
-
|
|
479
|
-
|
|
488
|
+
ProtocGetProtocolVersionUpgradeStateResponse,
|
|
489
|
+
PBJSGetProtocolVersionUpgradeStateResponse,
|
|
480
490
|
),
|
|
481
491
|
protobufToJsonFactory(
|
|
482
|
-
|
|
492
|
+
PBJSGetProtocolVersionUpgradeStateRequest,
|
|
483
493
|
),
|
|
484
494
|
),
|
|
485
495
|
],
|