@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.
@@ -42,10 +42,12 @@ const {
42
42
  GetConsensusParamsResponse: PBJSGetConsensusParamsResponse,
43
43
  GetEpochsInfoRequest: PBJSGetEpochsInfoRequest,
44
44
  GetEpochsInfoResponse: PBJSGetEpochsInfoResponse,
45
- GetVersionUpgradeVoteStatusRequest: PBJSGetVersionUpgradeVoteStatusRequest,
46
- GetVersionUpgradeVoteStatusResponse: PBJSGetVersionUpgradeVoteStatusResponse,
47
- GetVersionUpgradeStateRequest: PBJSGetVersionUpgradeStateRequest,
48
- GetVersionUpgradeStateResponse: PBJSGetVersionUpgradeStateResponse,
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
- GetVersionUpgradeVoteStatusResponse: ProtocGetVersionUpgradeVoteStatusResponse,
67
- GetVersionUpgradeStateResponse: ProtocGetVersionUpgradeStateResponse,
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.getVersionUpgradeVoteStatus = promisify(
131
- this.client.getVersionUpgradeVoteStatus.bind(this.client),
132
+ this.client.getProtocolVersionUpgradeVoteStatus = promisify(
133
+ this.client.getProtocolVersionUpgradeVoteStatus.bind(this.client),
132
134
  );
133
135
 
134
- this.client.getVersionUpgradeState = promisify(
135
- this.client.getVersionUpgradeState.bind(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 {!GetVersionUpgradeVoteStatusRequest} getVersionUpgradeVoteStatusRequest
432
+ * @param {!GetProtocolVersionUpgradeVoteStatusRequest} getProtocolVersionUpgradeVoteStatusRequest
431
433
  * @param {?Object<string, string>} metadata
432
434
  * @param {CallOptions} [options={}]
433
- * @return {Promise<!GetVersionUpgradeVoteStatusResponse>}
435
+ * @return {Promise<!GetProtocolVersionUpgradeVoteStatusResponse>}
434
436
  */
435
- getVersionUpgradeVoteStatus(getVersionUpgradeVoteStatusRequest, metadata = {}, options = {}) {
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.getVersionUpgradeVoteStatus(
441
- getVersionUpgradeVoteStatusRequest,
446
+ return this.client.getProtocolVersionUpgradeVoteStatus(
447
+ getProtocolVersionUpgradeVoteStatusRequest,
442
448
  convertObjectToMetadata(metadata),
443
449
  {
444
450
  interceptors: [
445
451
  jsonToProtobufInterceptorFactory(
446
452
  jsonToProtobufFactory(
447
- ProtocGetVersionUpgradeVoteStatusResponse,
448
- PBJSGetVersionUpgradeVoteStatusResponse,
453
+ ProtocGetProtocolVersionUpgradeVoteStatusResponse,
454
+ PBJSGetProtocolVersionUpgradeVoteStatusResponse,
449
455
  ),
450
456
  protobufToJsonFactory(
451
- PBJSGetVersionUpgradeVoteStatusRequest,
457
+ PBJSGetProtocolVersionUpgradeVoteStatusRequest,
452
458
  ),
453
459
  ),
454
460
  ],
@@ -458,28 +464,32 @@ class PlatformPromiseClient {
458
464
  }
459
465
 
460
466
  /**
461
- * @param {!GetVersionUpgradeStateRequest} getVersionUpgradeStateRequest
467
+ * @param {!GetProtocolVersionUpgradeStateRequest} getProtocolVersionUpgradeStateRequest
462
468
  * @param {?Object<string, string>} metadata
463
469
  * @param {CallOptions} [options={}]
464
- * @return {Promise<!GetVersionUpgradeStateResponse>}
470
+ * @return {Promise<!GetProtocolVersionUpgradeStateResponse>}
465
471
  */
466
- getVersionUpgradeState(getVersionUpgradeStateRequest, metadata = {}, options = {}) {
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.getVersionUpgradeState(
472
- getVersionUpgradeStateRequest,
481
+ return this.client.getProtocolVersionUpgradeState(
482
+ getProtocolVersionUpgradeStateRequest,
473
483
  convertObjectToMetadata(metadata),
474
484
  {
475
485
  interceptors: [
476
486
  jsonToProtobufInterceptorFactory(
477
487
  jsonToProtobufFactory(
478
- ProtocGetVersionUpgradeStateResponse,
479
- PBJSGetVersionUpgradeStateResponse,
488
+ ProtocGetProtocolVersionUpgradeStateResponse,
489
+ PBJSGetProtocolVersionUpgradeStateResponse,
480
490
  ),
481
491
  protobufToJsonFactory(
482
- PBJSGetVersionUpgradeStateRequest,
492
+ PBJSGetProtocolVersionUpgradeStateRequest,
483
493
  ),
484
494
  ),
485
495
  ],