@dashevo/dapi-grpc 2.1.2 → 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.
package/Cargo.toml CHANGED
@@ -1,7 +1,7 @@
1
1
  [package]
2
2
  name = "dapi-grpc"
3
3
  description = "GRPC client for Dash Platform"
4
- version = "2.1.2"
4
+ version.workspace = true
5
5
  authors = [
6
6
  "Samuel Westrich <sam@dash.org>",
7
7
  "Igor Markin <igor.markin@dash.org>",
@@ -45312,6 +45312,7 @@ $root.org = (function() {
45312
45312
  * @interface IDrive
45313
45313
  * @property {number|null} [latest] Drive latest
45314
45314
  * @property {number|null} [current] Drive current
45315
+ * @property {number|null} [nextEpoch] Drive nextEpoch
45315
45316
  */
45316
45317
 
45317
45318
  /**
@@ -45345,6 +45346,14 @@ $root.org = (function() {
45345
45346
  */
45346
45347
  Drive.prototype.current = 0;
45347
45348
 
45349
+ /**
45350
+ * Drive nextEpoch.
45351
+ * @member {number} nextEpoch
45352
+ * @memberof org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive
45353
+ * @instance
45354
+ */
45355
+ Drive.prototype.nextEpoch = 0;
45356
+
45348
45357
  /**
45349
45358
  * Creates a new Drive instance using the specified properties.
45350
45359
  * @function create
@@ -45373,6 +45382,8 @@ $root.org = (function() {
45373
45382
  writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.latest);
45374
45383
  if (message.current != null && Object.hasOwnProperty.call(message, "current"))
45375
45384
  writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.current);
45385
+ if (message.nextEpoch != null && Object.hasOwnProperty.call(message, "nextEpoch"))
45386
+ writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.nextEpoch);
45376
45387
  return writer;
45377
45388
  };
45378
45389
 
@@ -45413,6 +45424,9 @@ $root.org = (function() {
45413
45424
  case 4:
45414
45425
  message.current = reader.uint32();
45415
45426
  break;
45427
+ case 5:
45428
+ message.nextEpoch = reader.uint32();
45429
+ break;
45416
45430
  default:
45417
45431
  reader.skipType(tag & 7);
45418
45432
  break;
@@ -45454,6 +45468,9 @@ $root.org = (function() {
45454
45468
  if (message.current != null && message.hasOwnProperty("current"))
45455
45469
  if (!$util.isInteger(message.current))
45456
45470
  return "current: integer expected";
45471
+ if (message.nextEpoch != null && message.hasOwnProperty("nextEpoch"))
45472
+ if (!$util.isInteger(message.nextEpoch))
45473
+ return "nextEpoch: integer expected";
45457
45474
  return null;
45458
45475
  };
45459
45476
 
@@ -45473,6 +45490,8 @@ $root.org = (function() {
45473
45490
  message.latest = object.latest >>> 0;
45474
45491
  if (object.current != null)
45475
45492
  message.current = object.current >>> 0;
45493
+ if (object.nextEpoch != null)
45494
+ message.nextEpoch = object.nextEpoch >>> 0;
45476
45495
  return message;
45477
45496
  };
45478
45497
 
@@ -45492,11 +45511,14 @@ $root.org = (function() {
45492
45511
  if (options.defaults) {
45493
45512
  object.latest = 0;
45494
45513
  object.current = 0;
45514
+ object.nextEpoch = 0;
45495
45515
  }
45496
45516
  if (message.latest != null && message.hasOwnProperty("latest"))
45497
45517
  object.latest = message.latest;
45498
45518
  if (message.current != null && message.hasOwnProperty("current"))
45499
45519
  object.current = message.current;
45520
+ if (message.nextEpoch != null && message.hasOwnProperty("nextEpoch"))
45521
+ object.nextEpoch = message.nextEpoch;
45500
45522
  return object;
45501
45523
  };
45502
45524
 
@@ -44804,6 +44804,7 @@ $root.org = (function() {
44804
44804
  * @interface IDrive
44805
44805
  * @property {number|null} [latest] Drive latest
44806
44806
  * @property {number|null} [current] Drive current
44807
+ * @property {number|null} [nextEpoch] Drive nextEpoch
44807
44808
  */
44808
44809
 
44809
44810
  /**
@@ -44837,6 +44838,14 @@ $root.org = (function() {
44837
44838
  */
44838
44839
  Drive.prototype.current = 0;
44839
44840
 
44841
+ /**
44842
+ * Drive nextEpoch.
44843
+ * @member {number} nextEpoch
44844
+ * @memberof org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive
44845
+ * @instance
44846
+ */
44847
+ Drive.prototype.nextEpoch = 0;
44848
+
44840
44849
  /**
44841
44850
  * Creates a new Drive instance using the specified properties.
44842
44851
  * @function create
@@ -44865,6 +44874,8 @@ $root.org = (function() {
44865
44874
  writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.latest);
44866
44875
  if (message.current != null && Object.hasOwnProperty.call(message, "current"))
44867
44876
  writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.current);
44877
+ if (message.nextEpoch != null && Object.hasOwnProperty.call(message, "nextEpoch"))
44878
+ writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.nextEpoch);
44868
44879
  return writer;
44869
44880
  };
44870
44881
 
@@ -44905,6 +44916,9 @@ $root.org = (function() {
44905
44916
  case 4:
44906
44917
  message.current = reader.uint32();
44907
44918
  break;
44919
+ case 5:
44920
+ message.nextEpoch = reader.uint32();
44921
+ break;
44908
44922
  default:
44909
44923
  reader.skipType(tag & 7);
44910
44924
  break;
@@ -44946,6 +44960,9 @@ $root.org = (function() {
44946
44960
  if (message.current != null && message.hasOwnProperty("current"))
44947
44961
  if (!$util.isInteger(message.current))
44948
44962
  return "current: integer expected";
44963
+ if (message.nextEpoch != null && message.hasOwnProperty("nextEpoch"))
44964
+ if (!$util.isInteger(message.nextEpoch))
44965
+ return "nextEpoch: integer expected";
44949
44966
  return null;
44950
44967
  };
44951
44968
 
@@ -44965,6 +44982,8 @@ $root.org = (function() {
44965
44982
  message.latest = object.latest >>> 0;
44966
44983
  if (object.current != null)
44967
44984
  message.current = object.current >>> 0;
44985
+ if (object.nextEpoch != null)
44986
+ message.nextEpoch = object.nextEpoch >>> 0;
44968
44987
  return message;
44969
44988
  };
44970
44989
 
@@ -44984,11 +45003,14 @@ $root.org = (function() {
44984
45003
  if (options.defaults) {
44985
45004
  object.latest = 0;
44986
45005
  object.current = 0;
45006
+ object.nextEpoch = 0;
44987
45007
  }
44988
45008
  if (message.latest != null && message.hasOwnProperty("latest"))
44989
45009
  object.latest = message.latest;
44990
45010
  if (message.current != null && message.hasOwnProperty("current"))
44991
45011
  object.current = message.current;
45012
+ if (message.nextEpoch != null && message.hasOwnProperty("nextEpoch"))
45013
+ object.nextEpoch = message.nextEpoch;
44992
45014
  return object;
44993
45015
  };
44994
45016
 
@@ -45627,7 +45627,8 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Pr
45627
45627
  proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.toObject = function(includeInstance, msg) {
45628
45628
  var f, obj = {
45629
45629
  latest: jspb.Message.getFieldWithDefault(msg, 3, 0),
45630
- current: jspb.Message.getFieldWithDefault(msg, 4, 0)
45630
+ current: jspb.Message.getFieldWithDefault(msg, 4, 0),
45631
+ nextEpoch: jspb.Message.getFieldWithDefault(msg, 5, 0)
45631
45632
  };
45632
45633
 
45633
45634
  if (includeInstance) {
@@ -45672,6 +45673,10 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Pr
45672
45673
  var value = /** @type {number} */ (reader.readUint32());
45673
45674
  msg.setCurrent(value);
45674
45675
  break;
45676
+ case 5:
45677
+ var value = /** @type {number} */ (reader.readUint32());
45678
+ msg.setNextEpoch(value);
45679
+ break;
45675
45680
  default:
45676
45681
  reader.skipField();
45677
45682
  break;
@@ -45715,6 +45720,13 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Pr
45715
45720
  f
45716
45721
  );
45717
45722
  }
45723
+ f = message.getNextEpoch();
45724
+ if (f !== 0) {
45725
+ writer.writeUint32(
45726
+ 5,
45727
+ f
45728
+ );
45729
+ }
45718
45730
  };
45719
45731
 
45720
45732
 
@@ -45754,6 +45766,24 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Pr
45754
45766
  };
45755
45767
 
45756
45768
 
45769
+ /**
45770
+ * optional uint32 next_epoch = 5;
45771
+ * @return {number}
45772
+ */
45773
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.prototype.getNextEpoch = function() {
45774
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
45775
+ };
45776
+
45777
+
45778
+ /**
45779
+ * @param {number} value
45780
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive} returns this
45781
+ */
45782
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.prototype.setNextEpoch = function(value) {
45783
+ return jspb.Message.setProto3IntField(this, 5, value);
45784
+ };
45785
+
45786
+
45757
45787
  /**
45758
45788
  * optional Tenderdash tenderdash = 1;
45759
45789
  * @return {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash}
@@ -5713,6 +5713,9 @@ export namespace GetStatusResponse {
5713
5713
  getCurrent(): number;
5714
5714
  setCurrent(value: number): void;
5715
5715
 
5716
+ getNextEpoch(): number;
5717
+ setNextEpoch(value: number): void;
5718
+
5716
5719
  serializeBinary(): Uint8Array;
5717
5720
  toObject(includeInstance?: boolean): Drive.AsObject;
5718
5721
  static toObject(includeInstance: boolean, msg: Drive): Drive.AsObject;
@@ -5727,6 +5730,7 @@ export namespace GetStatusResponse {
5727
5730
  export type AsObject = {
5728
5731
  latest: number,
5729
5732
  current: number,
5733
+ nextEpoch: number,
5730
5734
  }
5731
5735
  }
5732
5736
  }
@@ -45627,7 +45627,8 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Pr
45627
45627
  proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.toObject = function(includeInstance, msg) {
45628
45628
  var f, obj = {
45629
45629
  latest: jspb.Message.getFieldWithDefault(msg, 3, 0),
45630
- current: jspb.Message.getFieldWithDefault(msg, 4, 0)
45630
+ current: jspb.Message.getFieldWithDefault(msg, 4, 0),
45631
+ nextEpoch: jspb.Message.getFieldWithDefault(msg, 5, 0)
45631
45632
  };
45632
45633
 
45633
45634
  if (includeInstance) {
@@ -45672,6 +45673,10 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Pr
45672
45673
  var value = /** @type {number} */ (reader.readUint32());
45673
45674
  msg.setCurrent(value);
45674
45675
  break;
45676
+ case 5:
45677
+ var value = /** @type {number} */ (reader.readUint32());
45678
+ msg.setNextEpoch(value);
45679
+ break;
45675
45680
  default:
45676
45681
  reader.skipField();
45677
45682
  break;
@@ -45715,6 +45720,13 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Pr
45715
45720
  f
45716
45721
  );
45717
45722
  }
45723
+ f = message.getNextEpoch();
45724
+ if (f !== 0) {
45725
+ writer.writeUint32(
45726
+ 5,
45727
+ f
45728
+ );
45729
+ }
45718
45730
  };
45719
45731
 
45720
45732
 
@@ -45754,6 +45766,24 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Pr
45754
45766
  };
45755
45767
 
45756
45768
 
45769
+ /**
45770
+ * optional uint32 next_epoch = 5;
45771
+ * @return {number}
45772
+ */
45773
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.prototype.getNextEpoch = function() {
45774
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
45775
+ };
45776
+
45777
+
45778
+ /**
45779
+ * @param {number} value
45780
+ * @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive} returns this
45781
+ */
45782
+ proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive.prototype.setNextEpoch = function(value) {
45783
+ return jspb.Message.setProto3IntField(this, 5, value);
45784
+ };
45785
+
45786
+
45757
45787
  /**
45758
45788
  * optional Tenderdash tenderdash = 1;
45759
45789
  * @return {?proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashevo/dapi-grpc",
3
- "version": "2.1.2",
3
+ "version": "2.2.0-dev.2",
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": "2.1.2",
48
+ "@dashevo/grpc-common": "2.2.0-dev.2",
49
49
  "@dashevo/protobufjs": "6.10.5",
50
50
  "@grpc/grpc-js": "1.4.4",
51
51
  "@improbable-eng/grpc-web": "^0.15.0",
@@ -1196,8 +1196,12 @@ message GetStatusResponse {
1196
1196
  }
1197
1197
 
1198
1198
  message Drive {
1199
+ // Highest protocol version supported by this node
1199
1200
  uint32 latest = 3;
1201
+ // Protocol version used in current epoch
1200
1202
  uint32 current = 4;
1203
+ // Protocol version that will be used in the next epoch
1204
+ uint32 next_epoch = 5;
1201
1205
  }
1202
1206
 
1203
1207
  Tenderdash tenderdash = 1;
@@ -3397,10 +3397,15 @@ pub mod get_status_response {
3397
3397
  #[derive(::dapi_grpc_macros::Mockable)]
3398
3398
  #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
3399
3399
  pub struct Drive {
3400
+ /// Highest protocol version supported by this node
3400
3401
  #[prost(uint32, tag = "3")]
3401
3402
  pub latest: u32,
3403
+ /// Protocol version used in current epoch
3402
3404
  #[prost(uint32, tag = "4")]
3403
3405
  pub current: u32,
3406
+ /// Protocol version that will be used in the next epoch
3407
+ #[prost(uint32, tag = "5")]
3408
+ pub next_epoch: u32,
3404
3409
  }
3405
3410
  }
3406
3411
  }
@@ -3397,10 +3397,15 @@ pub mod get_status_response {
3397
3397
  #[derive(::dapi_grpc_macros::Mockable)]
3398
3398
  #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
3399
3399
  pub struct Drive {
3400
+ /// Highest protocol version supported by this node
3400
3401
  #[prost(uint32, tag = "3")]
3401
3402
  pub latest: u32,
3403
+ /// Protocol version used in current epoch
3402
3404
  #[prost(uint32, tag = "4")]
3403
3405
  pub current: u32,
3406
+ /// Protocol version that will be used in the next epoch
3407
+ #[prost(uint32, tag = "5")]
3408
+ pub next_epoch: u32,
3404
3409
  }
3405
3410
  }
3406
3411
  }
@@ -3636,10 +3636,15 @@ pub mod get_status_response {
3636
3636
  #[derive(::dapi_grpc_macros::Mockable)]
3637
3637
  #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
3638
3638
  pub struct Drive {
3639
+ /// Highest protocol version supported by this node
3639
3640
  #[prost(uint32, tag = "3")]
3640
3641
  pub latest: u32,
3642
+ /// Protocol version used in current epoch
3641
3643
  #[prost(uint32, tag = "4")]
3642
3644
  pub current: u32,
3645
+ /// Protocol version that will be used in the next epoch
3646
+ #[prost(uint32, tag = "5")]
3647
+ pub next_epoch: u32,
3643
3648
  }
3644
3649
  }
3645
3650
  }
@@ -3636,10 +3636,15 @@ pub mod get_status_response {
3636
3636
  #[derive(::dapi_grpc_macros::Mockable)]
3637
3637
  #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
3638
3638
  pub struct Drive {
3639
+ /// Highest protocol version supported by this node
3639
3640
  #[prost(uint32, tag = "3")]
3640
3641
  pub latest: u32,
3642
+ /// Protocol version used in current epoch
3641
3643
  #[prost(uint32, tag = "4")]
3642
3644
  pub current: u32,
3645
+ /// Protocol version that will be used in the next epoch
3646
+ #[prost(uint32, tag = "5")]
3647
+ pub next_epoch: u32,
3643
3648
  }
3644
3649
  }
3645
3650
  }