pactus-grpc 1.12.0 → 1.13.0
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/blockchain_pb.js +121 -1
- package/package.json +1 -1
package/blockchain_pb.js
CHANGED
|
@@ -4545,7 +4545,11 @@ lastSortitionHeight: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
|
4545
4545
|
unbondingHeight: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
4546
4546
|
address: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
4547
4547
|
availabilityScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
|
|
4548
|
-
protocolVersion: jspb.Message.getFieldWithDefault(msg, 11, 0)
|
|
4548
|
+
protocolVersion: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
|
4549
|
+
isDelegated: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
|
|
4550
|
+
delegateOwner: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
4551
|
+
delegateShare: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
|
4552
|
+
delegateExpiry: jspb.Message.getFieldWithDefault(msg, 15, 0)
|
|
4549
4553
|
};
|
|
4550
4554
|
|
|
4551
4555
|
if (includeInstance) {
|
|
@@ -4626,6 +4630,22 @@ proto.pactus.ValidatorInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
4626
4630
|
var value = /** @type {number} */ (reader.readInt32());
|
|
4627
4631
|
msg.setProtocolVersion(value);
|
|
4628
4632
|
break;
|
|
4633
|
+
case 12:
|
|
4634
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
4635
|
+
msg.setIsDelegated(value);
|
|
4636
|
+
break;
|
|
4637
|
+
case 13:
|
|
4638
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
4639
|
+
msg.setDelegateOwner(value);
|
|
4640
|
+
break;
|
|
4641
|
+
case 14:
|
|
4642
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
4643
|
+
msg.setDelegateShare(value);
|
|
4644
|
+
break;
|
|
4645
|
+
case 15:
|
|
4646
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
4647
|
+
msg.setDelegateExpiry(value);
|
|
4648
|
+
break;
|
|
4629
4649
|
default:
|
|
4630
4650
|
reader.skipField();
|
|
4631
4651
|
break;
|
|
@@ -4732,6 +4752,34 @@ proto.pactus.ValidatorInfo.serializeBinaryToWriter = function(message, writer) {
|
|
|
4732
4752
|
f
|
|
4733
4753
|
);
|
|
4734
4754
|
}
|
|
4755
|
+
f = message.getIsDelegated();
|
|
4756
|
+
if (f) {
|
|
4757
|
+
writer.writeBool(
|
|
4758
|
+
12,
|
|
4759
|
+
f
|
|
4760
|
+
);
|
|
4761
|
+
}
|
|
4762
|
+
f = message.getDelegateOwner();
|
|
4763
|
+
if (f.length > 0) {
|
|
4764
|
+
writer.writeString(
|
|
4765
|
+
13,
|
|
4766
|
+
f
|
|
4767
|
+
);
|
|
4768
|
+
}
|
|
4769
|
+
f = message.getDelegateShare();
|
|
4770
|
+
if (f !== 0) {
|
|
4771
|
+
writer.writeInt64(
|
|
4772
|
+
14,
|
|
4773
|
+
f
|
|
4774
|
+
);
|
|
4775
|
+
}
|
|
4776
|
+
f = message.getDelegateExpiry();
|
|
4777
|
+
if (f !== 0) {
|
|
4778
|
+
writer.writeUint32(
|
|
4779
|
+
15,
|
|
4780
|
+
f
|
|
4781
|
+
);
|
|
4782
|
+
}
|
|
4735
4783
|
};
|
|
4736
4784
|
|
|
4737
4785
|
|
|
@@ -4933,6 +4981,78 @@ proto.pactus.ValidatorInfo.prototype.setProtocolVersion = function(value) {
|
|
|
4933
4981
|
};
|
|
4934
4982
|
|
|
4935
4983
|
|
|
4984
|
+
/**
|
|
4985
|
+
* optional bool is_delegated = 12;
|
|
4986
|
+
* @return {boolean}
|
|
4987
|
+
*/
|
|
4988
|
+
proto.pactus.ValidatorInfo.prototype.getIsDelegated = function() {
|
|
4989
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
|
|
4990
|
+
};
|
|
4991
|
+
|
|
4992
|
+
|
|
4993
|
+
/**
|
|
4994
|
+
* @param {boolean} value
|
|
4995
|
+
* @return {!proto.pactus.ValidatorInfo} returns this
|
|
4996
|
+
*/
|
|
4997
|
+
proto.pactus.ValidatorInfo.prototype.setIsDelegated = function(value) {
|
|
4998
|
+
return jspb.Message.setProto3BooleanField(this, 12, value);
|
|
4999
|
+
};
|
|
5000
|
+
|
|
5001
|
+
|
|
5002
|
+
/**
|
|
5003
|
+
* optional string delegate_owner = 13;
|
|
5004
|
+
* @return {string}
|
|
5005
|
+
*/
|
|
5006
|
+
proto.pactus.ValidatorInfo.prototype.getDelegateOwner = function() {
|
|
5007
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
5008
|
+
};
|
|
5009
|
+
|
|
5010
|
+
|
|
5011
|
+
/**
|
|
5012
|
+
* @param {string} value
|
|
5013
|
+
* @return {!proto.pactus.ValidatorInfo} returns this
|
|
5014
|
+
*/
|
|
5015
|
+
proto.pactus.ValidatorInfo.prototype.setDelegateOwner = function(value) {
|
|
5016
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
5017
|
+
};
|
|
5018
|
+
|
|
5019
|
+
|
|
5020
|
+
/**
|
|
5021
|
+
* optional int64 delegate_share = 14;
|
|
5022
|
+
* @return {number}
|
|
5023
|
+
*/
|
|
5024
|
+
proto.pactus.ValidatorInfo.prototype.getDelegateShare = function() {
|
|
5025
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
|
5026
|
+
};
|
|
5027
|
+
|
|
5028
|
+
|
|
5029
|
+
/**
|
|
5030
|
+
* @param {number} value
|
|
5031
|
+
* @return {!proto.pactus.ValidatorInfo} returns this
|
|
5032
|
+
*/
|
|
5033
|
+
proto.pactus.ValidatorInfo.prototype.setDelegateShare = function(value) {
|
|
5034
|
+
return jspb.Message.setProto3IntField(this, 14, value);
|
|
5035
|
+
};
|
|
5036
|
+
|
|
5037
|
+
|
|
5038
|
+
/**
|
|
5039
|
+
* optional uint32 delegate_expiry = 15;
|
|
5040
|
+
* @return {number}
|
|
5041
|
+
*/
|
|
5042
|
+
proto.pactus.ValidatorInfo.prototype.getDelegateExpiry = function() {
|
|
5043
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
|
|
5044
|
+
};
|
|
5045
|
+
|
|
5046
|
+
|
|
5047
|
+
/**
|
|
5048
|
+
* @param {number} value
|
|
5049
|
+
* @return {!proto.pactus.ValidatorInfo} returns this
|
|
5050
|
+
*/
|
|
5051
|
+
proto.pactus.ValidatorInfo.prototype.setDelegateExpiry = function(value) {
|
|
5052
|
+
return jspb.Message.setProto3IntField(this, 15, value);
|
|
5053
|
+
};
|
|
5054
|
+
|
|
5055
|
+
|
|
4936
5056
|
|
|
4937
5057
|
|
|
4938
5058
|
|