@dashevo/dapi-grpc 1.3.0 → 1.4.0-dev.1
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 +1 -1
- package/clients/platform/v0/nodejs/platform_pbjs.js +1524 -225
- package/clients/platform/v0/nodejs/platform_protoc.js +1564 -210
- package/clients/platform/v0/web/platform_pb.d.ts +199 -29
- package/clients/platform/v0/web/platform_pb.js +1564 -210
- package/clients/platform/v0/web/platform_pb_service.d.ts +19 -0
- package/clients/platform/v0/web/platform_pb_service.js +40 -0
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +31 -0
|
@@ -1109,6 +1109,39 @@ $root.org = (function() {
|
|
|
1109
1109
|
* @variation 2
|
|
1110
1110
|
*/
|
|
1111
1111
|
|
|
1112
|
+
/**
|
|
1113
|
+
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getCurrentQuorumsInfo}.
|
|
1114
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
1115
|
+
* @typedef getCurrentQuorumsInfoCallback
|
|
1116
|
+
* @type {function}
|
|
1117
|
+
* @param {Error|null} error Error, if any
|
|
1118
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse} [response] GetCurrentQuorumsInfoResponse
|
|
1119
|
+
*/
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* Calls getCurrentQuorumsInfo.
|
|
1123
|
+
* @function getCurrentQuorumsInfo
|
|
1124
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
1125
|
+
* @instance
|
|
1126
|
+
* @param {org.dash.platform.dapi.v0.IGetCurrentQuorumsInfoRequest} request GetCurrentQuorumsInfoRequest message or plain object
|
|
1127
|
+
* @param {org.dash.platform.dapi.v0.Platform.getCurrentQuorumsInfoCallback} callback Node-style callback called with the error, if any, and GetCurrentQuorumsInfoResponse
|
|
1128
|
+
* @returns {undefined}
|
|
1129
|
+
* @variation 1
|
|
1130
|
+
*/
|
|
1131
|
+
Object.defineProperty(Platform.prototype.getCurrentQuorumsInfo = function getCurrentQuorumsInfo(request, callback) {
|
|
1132
|
+
return this.rpcCall(getCurrentQuorumsInfo, $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest, $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse, request, callback);
|
|
1133
|
+
}, "name", { value: "getCurrentQuorumsInfo" });
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* Calls getCurrentQuorumsInfo.
|
|
1137
|
+
* @function getCurrentQuorumsInfo
|
|
1138
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
1139
|
+
* @instance
|
|
1140
|
+
* @param {org.dash.platform.dapi.v0.IGetCurrentQuorumsInfoRequest} request GetCurrentQuorumsInfoRequest message or plain object
|
|
1141
|
+
* @returns {Promise<org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse>} Promise
|
|
1142
|
+
* @variation 2
|
|
1143
|
+
*/
|
|
1144
|
+
|
|
1112
1145
|
return Platform;
|
|
1113
1146
|
})();
|
|
1114
1147
|
|
|
@@ -13454,7 +13487,7 @@ $root.org = (function() {
|
|
|
13454
13487
|
* Properties of a GetIdentitiesBalancesRequestV0.
|
|
13455
13488
|
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest
|
|
13456
13489
|
* @interface IGetIdentitiesBalancesRequestV0
|
|
13457
|
-
* @property {
|
|
13490
|
+
* @property {Array.<Uint8Array>|null} [ids] GetIdentitiesBalancesRequestV0 ids
|
|
13458
13491
|
* @property {boolean|null} [prove] GetIdentitiesBalancesRequestV0 prove
|
|
13459
13492
|
*/
|
|
13460
13493
|
|
|
@@ -13467,6 +13500,7 @@ $root.org = (function() {
|
|
|
13467
13500
|
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.IGetIdentitiesBalancesRequestV0=} [properties] Properties to set
|
|
13468
13501
|
*/
|
|
13469
13502
|
function GetIdentitiesBalancesRequestV0(properties) {
|
|
13503
|
+
this.ids = [];
|
|
13470
13504
|
if (properties)
|
|
13471
13505
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13472
13506
|
if (properties[keys[i]] != null)
|
|
@@ -13474,12 +13508,12 @@ $root.org = (function() {
|
|
|
13474
13508
|
}
|
|
13475
13509
|
|
|
13476
13510
|
/**
|
|
13477
|
-
* GetIdentitiesBalancesRequestV0
|
|
13478
|
-
* @member {
|
|
13511
|
+
* GetIdentitiesBalancesRequestV0 ids.
|
|
13512
|
+
* @member {Array.<Uint8Array>} ids
|
|
13479
13513
|
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0
|
|
13480
13514
|
* @instance
|
|
13481
13515
|
*/
|
|
13482
|
-
GetIdentitiesBalancesRequestV0.prototype.
|
|
13516
|
+
GetIdentitiesBalancesRequestV0.prototype.ids = $util.emptyArray;
|
|
13483
13517
|
|
|
13484
13518
|
/**
|
|
13485
13519
|
* GetIdentitiesBalancesRequestV0 prove.
|
|
@@ -13513,8 +13547,9 @@ $root.org = (function() {
|
|
|
13513
13547
|
GetIdentitiesBalancesRequestV0.encode = function encode(message, writer) {
|
|
13514
13548
|
if (!writer)
|
|
13515
13549
|
writer = $Writer.create();
|
|
13516
|
-
if (message.
|
|
13517
|
-
|
|
13550
|
+
if (message.ids != null && message.ids.length)
|
|
13551
|
+
for (var i = 0; i < message.ids.length; ++i)
|
|
13552
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.ids[i]);
|
|
13518
13553
|
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
13519
13554
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
|
|
13520
13555
|
return writer;
|
|
@@ -13552,7 +13587,9 @@ $root.org = (function() {
|
|
|
13552
13587
|
var tag = reader.uint32();
|
|
13553
13588
|
switch (tag >>> 3) {
|
|
13554
13589
|
case 1:
|
|
13555
|
-
message.
|
|
13590
|
+
if (!(message.ids && message.ids.length))
|
|
13591
|
+
message.ids = [];
|
|
13592
|
+
message.ids.push(reader.bytes());
|
|
13556
13593
|
break;
|
|
13557
13594
|
case 2:
|
|
13558
13595
|
message.prove = reader.bool();
|
|
@@ -13592,10 +13629,12 @@ $root.org = (function() {
|
|
|
13592
13629
|
GetIdentitiesBalancesRequestV0.verify = function verify(message) {
|
|
13593
13630
|
if (typeof message !== "object" || message === null)
|
|
13594
13631
|
return "object expected";
|
|
13595
|
-
if (message.
|
|
13596
|
-
|
|
13597
|
-
|
|
13598
|
-
|
|
13632
|
+
if (message.ids != null && message.hasOwnProperty("ids")) {
|
|
13633
|
+
if (!Array.isArray(message.ids))
|
|
13634
|
+
return "ids: array expected";
|
|
13635
|
+
for (var i = 0; i < message.ids.length; ++i)
|
|
13636
|
+
if (!(message.ids[i] && typeof message.ids[i].length === "number" || $util.isString(message.ids[i])))
|
|
13637
|
+
return "ids: buffer[] expected";
|
|
13599
13638
|
}
|
|
13600
13639
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
13601
13640
|
if (typeof message.prove !== "boolean")
|
|
@@ -13615,10 +13654,15 @@ $root.org = (function() {
|
|
|
13615
13654
|
if (object instanceof $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0)
|
|
13616
13655
|
return object;
|
|
13617
13656
|
var message = new $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0();
|
|
13618
|
-
if (object.
|
|
13619
|
-
if (
|
|
13620
|
-
throw TypeError(".org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.
|
|
13621
|
-
message.
|
|
13657
|
+
if (object.ids) {
|
|
13658
|
+
if (!Array.isArray(object.ids))
|
|
13659
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.ids: array expected");
|
|
13660
|
+
message.ids = [];
|
|
13661
|
+
for (var i = 0; i < object.ids.length; ++i)
|
|
13662
|
+
if (typeof object.ids[i] === "string")
|
|
13663
|
+
$util.base64.decode(object.ids[i], message.ids[i] = $util.newBuffer($util.base64.length(object.ids[i])), 0);
|
|
13664
|
+
else if (object.ids[i].length >= 0)
|
|
13665
|
+
message.ids[i] = object.ids[i];
|
|
13622
13666
|
}
|
|
13623
13667
|
if (object.prove != null)
|
|
13624
13668
|
message.prove = Boolean(object.prove);
|
|
@@ -13638,12 +13682,15 @@ $root.org = (function() {
|
|
|
13638
13682
|
if (!options)
|
|
13639
13683
|
options = {};
|
|
13640
13684
|
var object = {};
|
|
13641
|
-
if (options.defaults)
|
|
13642
|
-
object.
|
|
13685
|
+
if (options.arrays || options.defaults)
|
|
13686
|
+
object.ids = [];
|
|
13687
|
+
if (options.defaults)
|
|
13643
13688
|
object.prove = false;
|
|
13689
|
+
if (message.ids && message.ids.length) {
|
|
13690
|
+
object.ids = [];
|
|
13691
|
+
for (var j = 0; j < message.ids.length; ++j)
|
|
13692
|
+
object.ids[j] = options.bytes === String ? $util.base64.encode(message.ids[j], 0, message.ids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.ids[j]) : message.ids[j];
|
|
13644
13693
|
}
|
|
13645
|
-
if (message.identitiesIds != null && message.hasOwnProperty("identitiesIds"))
|
|
13646
|
-
object.identitiesIds = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds.toObject(message.identitiesIds, options);
|
|
13647
13694
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
13648
13695
|
object.prove = message.prove;
|
|
13649
13696
|
return object;
|
|
@@ -13660,212 +13707,6 @@ $root.org = (function() {
|
|
|
13660
13707
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13661
13708
|
};
|
|
13662
13709
|
|
|
13663
|
-
GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds = (function() {
|
|
13664
|
-
|
|
13665
|
-
/**
|
|
13666
|
-
* Properties of a GetIdentitiesBalancesByKnownIdentityIds.
|
|
13667
|
-
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0
|
|
13668
|
-
* @interface IGetIdentitiesBalancesByKnownIdentityIds
|
|
13669
|
-
* @property {Array.<Uint8Array>|null} [identitiesIds] GetIdentitiesBalancesByKnownIdentityIds identitiesIds
|
|
13670
|
-
*/
|
|
13671
|
-
|
|
13672
|
-
/**
|
|
13673
|
-
* Constructs a new GetIdentitiesBalancesByKnownIdentityIds.
|
|
13674
|
-
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0
|
|
13675
|
-
* @classdesc Represents a GetIdentitiesBalancesByKnownIdentityIds.
|
|
13676
|
-
* @implements IGetIdentitiesBalancesByKnownIdentityIds
|
|
13677
|
-
* @constructor
|
|
13678
|
-
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.IGetIdentitiesBalancesByKnownIdentityIds=} [properties] Properties to set
|
|
13679
|
-
*/
|
|
13680
|
-
function GetIdentitiesBalancesByKnownIdentityIds(properties) {
|
|
13681
|
-
this.identitiesIds = [];
|
|
13682
|
-
if (properties)
|
|
13683
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13684
|
-
if (properties[keys[i]] != null)
|
|
13685
|
-
this[keys[i]] = properties[keys[i]];
|
|
13686
|
-
}
|
|
13687
|
-
|
|
13688
|
-
/**
|
|
13689
|
-
* GetIdentitiesBalancesByKnownIdentityIds identitiesIds.
|
|
13690
|
-
* @member {Array.<Uint8Array>} identitiesIds
|
|
13691
|
-
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds
|
|
13692
|
-
* @instance
|
|
13693
|
-
*/
|
|
13694
|
-
GetIdentitiesBalancesByKnownIdentityIds.prototype.identitiesIds = $util.emptyArray;
|
|
13695
|
-
|
|
13696
|
-
/**
|
|
13697
|
-
* Creates a new GetIdentitiesBalancesByKnownIdentityIds instance using the specified properties.
|
|
13698
|
-
* @function create
|
|
13699
|
-
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds
|
|
13700
|
-
* @static
|
|
13701
|
-
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.IGetIdentitiesBalancesByKnownIdentityIds=} [properties] Properties to set
|
|
13702
|
-
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds} GetIdentitiesBalancesByKnownIdentityIds instance
|
|
13703
|
-
*/
|
|
13704
|
-
GetIdentitiesBalancesByKnownIdentityIds.create = function create(properties) {
|
|
13705
|
-
return new GetIdentitiesBalancesByKnownIdentityIds(properties);
|
|
13706
|
-
};
|
|
13707
|
-
|
|
13708
|
-
/**
|
|
13709
|
-
* Encodes the specified GetIdentitiesBalancesByKnownIdentityIds message. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds.verify|verify} messages.
|
|
13710
|
-
* @function encode
|
|
13711
|
-
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds
|
|
13712
|
-
* @static
|
|
13713
|
-
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.IGetIdentitiesBalancesByKnownIdentityIds} message GetIdentitiesBalancesByKnownIdentityIds message or plain object to encode
|
|
13714
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13715
|
-
* @returns {$protobuf.Writer} Writer
|
|
13716
|
-
*/
|
|
13717
|
-
GetIdentitiesBalancesByKnownIdentityIds.encode = function encode(message, writer) {
|
|
13718
|
-
if (!writer)
|
|
13719
|
-
writer = $Writer.create();
|
|
13720
|
-
if (message.identitiesIds != null && message.identitiesIds.length)
|
|
13721
|
-
for (var i = 0; i < message.identitiesIds.length; ++i)
|
|
13722
|
-
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.identitiesIds[i]);
|
|
13723
|
-
return writer;
|
|
13724
|
-
};
|
|
13725
|
-
|
|
13726
|
-
/**
|
|
13727
|
-
* Encodes the specified GetIdentitiesBalancesByKnownIdentityIds message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds.verify|verify} messages.
|
|
13728
|
-
* @function encodeDelimited
|
|
13729
|
-
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds
|
|
13730
|
-
* @static
|
|
13731
|
-
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.IGetIdentitiesBalancesByKnownIdentityIds} message GetIdentitiesBalancesByKnownIdentityIds message or plain object to encode
|
|
13732
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13733
|
-
* @returns {$protobuf.Writer} Writer
|
|
13734
|
-
*/
|
|
13735
|
-
GetIdentitiesBalancesByKnownIdentityIds.encodeDelimited = function encodeDelimited(message, writer) {
|
|
13736
|
-
return this.encode(message, writer).ldelim();
|
|
13737
|
-
};
|
|
13738
|
-
|
|
13739
|
-
/**
|
|
13740
|
-
* Decodes a GetIdentitiesBalancesByKnownIdentityIds message from the specified reader or buffer.
|
|
13741
|
-
* @function decode
|
|
13742
|
-
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds
|
|
13743
|
-
* @static
|
|
13744
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13745
|
-
* @param {number} [length] Message length if known beforehand
|
|
13746
|
-
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds} GetIdentitiesBalancesByKnownIdentityIds
|
|
13747
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13748
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13749
|
-
*/
|
|
13750
|
-
GetIdentitiesBalancesByKnownIdentityIds.decode = function decode(reader, length) {
|
|
13751
|
-
if (!(reader instanceof $Reader))
|
|
13752
|
-
reader = $Reader.create(reader);
|
|
13753
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds();
|
|
13754
|
-
while (reader.pos < end) {
|
|
13755
|
-
var tag = reader.uint32();
|
|
13756
|
-
switch (tag >>> 3) {
|
|
13757
|
-
case 1:
|
|
13758
|
-
if (!(message.identitiesIds && message.identitiesIds.length))
|
|
13759
|
-
message.identitiesIds = [];
|
|
13760
|
-
message.identitiesIds.push(reader.bytes());
|
|
13761
|
-
break;
|
|
13762
|
-
default:
|
|
13763
|
-
reader.skipType(tag & 7);
|
|
13764
|
-
break;
|
|
13765
|
-
}
|
|
13766
|
-
}
|
|
13767
|
-
return message;
|
|
13768
|
-
};
|
|
13769
|
-
|
|
13770
|
-
/**
|
|
13771
|
-
* Decodes a GetIdentitiesBalancesByKnownIdentityIds message from the specified reader or buffer, length delimited.
|
|
13772
|
-
* @function decodeDelimited
|
|
13773
|
-
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds
|
|
13774
|
-
* @static
|
|
13775
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13776
|
-
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds} GetIdentitiesBalancesByKnownIdentityIds
|
|
13777
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13778
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13779
|
-
*/
|
|
13780
|
-
GetIdentitiesBalancesByKnownIdentityIds.decodeDelimited = function decodeDelimited(reader) {
|
|
13781
|
-
if (!(reader instanceof $Reader))
|
|
13782
|
-
reader = new $Reader(reader);
|
|
13783
|
-
return this.decode(reader, reader.uint32());
|
|
13784
|
-
};
|
|
13785
|
-
|
|
13786
|
-
/**
|
|
13787
|
-
* Verifies a GetIdentitiesBalancesByKnownIdentityIds message.
|
|
13788
|
-
* @function verify
|
|
13789
|
-
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds
|
|
13790
|
-
* @static
|
|
13791
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
13792
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
13793
|
-
*/
|
|
13794
|
-
GetIdentitiesBalancesByKnownIdentityIds.verify = function verify(message) {
|
|
13795
|
-
if (typeof message !== "object" || message === null)
|
|
13796
|
-
return "object expected";
|
|
13797
|
-
if (message.identitiesIds != null && message.hasOwnProperty("identitiesIds")) {
|
|
13798
|
-
if (!Array.isArray(message.identitiesIds))
|
|
13799
|
-
return "identitiesIds: array expected";
|
|
13800
|
-
for (var i = 0; i < message.identitiesIds.length; ++i)
|
|
13801
|
-
if (!(message.identitiesIds[i] && typeof message.identitiesIds[i].length === "number" || $util.isString(message.identitiesIds[i])))
|
|
13802
|
-
return "identitiesIds: buffer[] expected";
|
|
13803
|
-
}
|
|
13804
|
-
return null;
|
|
13805
|
-
};
|
|
13806
|
-
|
|
13807
|
-
/**
|
|
13808
|
-
* Creates a GetIdentitiesBalancesByKnownIdentityIds message from a plain object. Also converts values to their respective internal types.
|
|
13809
|
-
* @function fromObject
|
|
13810
|
-
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds
|
|
13811
|
-
* @static
|
|
13812
|
-
* @param {Object.<string,*>} object Plain object
|
|
13813
|
-
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds} GetIdentitiesBalancesByKnownIdentityIds
|
|
13814
|
-
*/
|
|
13815
|
-
GetIdentitiesBalancesByKnownIdentityIds.fromObject = function fromObject(object) {
|
|
13816
|
-
if (object instanceof $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds)
|
|
13817
|
-
return object;
|
|
13818
|
-
var message = new $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds();
|
|
13819
|
-
if (object.identitiesIds) {
|
|
13820
|
-
if (!Array.isArray(object.identitiesIds))
|
|
13821
|
-
throw TypeError(".org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds.identitiesIds: array expected");
|
|
13822
|
-
message.identitiesIds = [];
|
|
13823
|
-
for (var i = 0; i < object.identitiesIds.length; ++i)
|
|
13824
|
-
if (typeof object.identitiesIds[i] === "string")
|
|
13825
|
-
$util.base64.decode(object.identitiesIds[i], message.identitiesIds[i] = $util.newBuffer($util.base64.length(object.identitiesIds[i])), 0);
|
|
13826
|
-
else if (object.identitiesIds[i].length >= 0)
|
|
13827
|
-
message.identitiesIds[i] = object.identitiesIds[i];
|
|
13828
|
-
}
|
|
13829
|
-
return message;
|
|
13830
|
-
};
|
|
13831
|
-
|
|
13832
|
-
/**
|
|
13833
|
-
* Creates a plain object from a GetIdentitiesBalancesByKnownIdentityIds message. Also converts values to other types if specified.
|
|
13834
|
-
* @function toObject
|
|
13835
|
-
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds
|
|
13836
|
-
* @static
|
|
13837
|
-
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds} message GetIdentitiesBalancesByKnownIdentityIds
|
|
13838
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
13839
|
-
* @returns {Object.<string,*>} Plain object
|
|
13840
|
-
*/
|
|
13841
|
-
GetIdentitiesBalancesByKnownIdentityIds.toObject = function toObject(message, options) {
|
|
13842
|
-
if (!options)
|
|
13843
|
-
options = {};
|
|
13844
|
-
var object = {};
|
|
13845
|
-
if (options.arrays || options.defaults)
|
|
13846
|
-
object.identitiesIds = [];
|
|
13847
|
-
if (message.identitiesIds && message.identitiesIds.length) {
|
|
13848
|
-
object.identitiesIds = [];
|
|
13849
|
-
for (var j = 0; j < message.identitiesIds.length; ++j)
|
|
13850
|
-
object.identitiesIds[j] = options.bytes === String ? $util.base64.encode(message.identitiesIds[j], 0, message.identitiesIds[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.identitiesIds[j]) : message.identitiesIds[j];
|
|
13851
|
-
}
|
|
13852
|
-
return object;
|
|
13853
|
-
};
|
|
13854
|
-
|
|
13855
|
-
/**
|
|
13856
|
-
* Converts this GetIdentitiesBalancesByKnownIdentityIds to JSON.
|
|
13857
|
-
* @function toJSON
|
|
13858
|
-
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds
|
|
13859
|
-
* @instance
|
|
13860
|
-
* @returns {Object.<string,*>} JSON object
|
|
13861
|
-
*/
|
|
13862
|
-
GetIdentitiesBalancesByKnownIdentityIds.prototype.toJSON = function toJSON() {
|
|
13863
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13864
|
-
};
|
|
13865
|
-
|
|
13866
|
-
return GetIdentitiesBalancesByKnownIdentityIds;
|
|
13867
|
-
})();
|
|
13868
|
-
|
|
13869
13710
|
return GetIdentitiesBalancesRequestV0;
|
|
13870
13711
|
})();
|
|
13871
13712
|
|
|
@@ -45293,6 +45134,1464 @@ $root.org = (function() {
|
|
|
45293
45134
|
return GetStatusResponse;
|
|
45294
45135
|
})();
|
|
45295
45136
|
|
|
45137
|
+
v0.GetCurrentQuorumsInfoRequest = (function() {
|
|
45138
|
+
|
|
45139
|
+
/**
|
|
45140
|
+
* Properties of a GetCurrentQuorumsInfoRequest.
|
|
45141
|
+
* @memberof org.dash.platform.dapi.v0
|
|
45142
|
+
* @interface IGetCurrentQuorumsInfoRequest
|
|
45143
|
+
* @property {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.IGetCurrentQuorumsInfoRequestV0|null} [v0] GetCurrentQuorumsInfoRequest v0
|
|
45144
|
+
*/
|
|
45145
|
+
|
|
45146
|
+
/**
|
|
45147
|
+
* Constructs a new GetCurrentQuorumsInfoRequest.
|
|
45148
|
+
* @memberof org.dash.platform.dapi.v0
|
|
45149
|
+
* @classdesc Represents a GetCurrentQuorumsInfoRequest.
|
|
45150
|
+
* @implements IGetCurrentQuorumsInfoRequest
|
|
45151
|
+
* @constructor
|
|
45152
|
+
* @param {org.dash.platform.dapi.v0.IGetCurrentQuorumsInfoRequest=} [properties] Properties to set
|
|
45153
|
+
*/
|
|
45154
|
+
function GetCurrentQuorumsInfoRequest(properties) {
|
|
45155
|
+
if (properties)
|
|
45156
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
45157
|
+
if (properties[keys[i]] != null)
|
|
45158
|
+
this[keys[i]] = properties[keys[i]];
|
|
45159
|
+
}
|
|
45160
|
+
|
|
45161
|
+
/**
|
|
45162
|
+
* GetCurrentQuorumsInfoRequest v0.
|
|
45163
|
+
* @member {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.IGetCurrentQuorumsInfoRequestV0|null|undefined} v0
|
|
45164
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest
|
|
45165
|
+
* @instance
|
|
45166
|
+
*/
|
|
45167
|
+
GetCurrentQuorumsInfoRequest.prototype.v0 = null;
|
|
45168
|
+
|
|
45169
|
+
// OneOf field names bound to virtual getters and setters
|
|
45170
|
+
var $oneOfFields;
|
|
45171
|
+
|
|
45172
|
+
/**
|
|
45173
|
+
* GetCurrentQuorumsInfoRequest version.
|
|
45174
|
+
* @member {"v0"|undefined} version
|
|
45175
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest
|
|
45176
|
+
* @instance
|
|
45177
|
+
*/
|
|
45178
|
+
Object.defineProperty(GetCurrentQuorumsInfoRequest.prototype, "version", {
|
|
45179
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
45180
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
45181
|
+
});
|
|
45182
|
+
|
|
45183
|
+
/**
|
|
45184
|
+
* Creates a new GetCurrentQuorumsInfoRequest instance using the specified properties.
|
|
45185
|
+
* @function create
|
|
45186
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest
|
|
45187
|
+
* @static
|
|
45188
|
+
* @param {org.dash.platform.dapi.v0.IGetCurrentQuorumsInfoRequest=} [properties] Properties to set
|
|
45189
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest} GetCurrentQuorumsInfoRequest instance
|
|
45190
|
+
*/
|
|
45191
|
+
GetCurrentQuorumsInfoRequest.create = function create(properties) {
|
|
45192
|
+
return new GetCurrentQuorumsInfoRequest(properties);
|
|
45193
|
+
};
|
|
45194
|
+
|
|
45195
|
+
/**
|
|
45196
|
+
* Encodes the specified GetCurrentQuorumsInfoRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.verify|verify} messages.
|
|
45197
|
+
* @function encode
|
|
45198
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest
|
|
45199
|
+
* @static
|
|
45200
|
+
* @param {org.dash.platform.dapi.v0.IGetCurrentQuorumsInfoRequest} message GetCurrentQuorumsInfoRequest message or plain object to encode
|
|
45201
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
45202
|
+
* @returns {$protobuf.Writer} Writer
|
|
45203
|
+
*/
|
|
45204
|
+
GetCurrentQuorumsInfoRequest.encode = function encode(message, writer) {
|
|
45205
|
+
if (!writer)
|
|
45206
|
+
writer = $Writer.create();
|
|
45207
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
45208
|
+
$root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
45209
|
+
return writer;
|
|
45210
|
+
};
|
|
45211
|
+
|
|
45212
|
+
/**
|
|
45213
|
+
* Encodes the specified GetCurrentQuorumsInfoRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.verify|verify} messages.
|
|
45214
|
+
* @function encodeDelimited
|
|
45215
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest
|
|
45216
|
+
* @static
|
|
45217
|
+
* @param {org.dash.platform.dapi.v0.IGetCurrentQuorumsInfoRequest} message GetCurrentQuorumsInfoRequest message or plain object to encode
|
|
45218
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
45219
|
+
* @returns {$protobuf.Writer} Writer
|
|
45220
|
+
*/
|
|
45221
|
+
GetCurrentQuorumsInfoRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
45222
|
+
return this.encode(message, writer).ldelim();
|
|
45223
|
+
};
|
|
45224
|
+
|
|
45225
|
+
/**
|
|
45226
|
+
* Decodes a GetCurrentQuorumsInfoRequest message from the specified reader or buffer.
|
|
45227
|
+
* @function decode
|
|
45228
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest
|
|
45229
|
+
* @static
|
|
45230
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45231
|
+
* @param {number} [length] Message length if known beforehand
|
|
45232
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest} GetCurrentQuorumsInfoRequest
|
|
45233
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45234
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45235
|
+
*/
|
|
45236
|
+
GetCurrentQuorumsInfoRequest.decode = function decode(reader, length) {
|
|
45237
|
+
if (!(reader instanceof $Reader))
|
|
45238
|
+
reader = $Reader.create(reader);
|
|
45239
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest();
|
|
45240
|
+
while (reader.pos < end) {
|
|
45241
|
+
var tag = reader.uint32();
|
|
45242
|
+
switch (tag >>> 3) {
|
|
45243
|
+
case 1:
|
|
45244
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0.decode(reader, reader.uint32());
|
|
45245
|
+
break;
|
|
45246
|
+
default:
|
|
45247
|
+
reader.skipType(tag & 7);
|
|
45248
|
+
break;
|
|
45249
|
+
}
|
|
45250
|
+
}
|
|
45251
|
+
return message;
|
|
45252
|
+
};
|
|
45253
|
+
|
|
45254
|
+
/**
|
|
45255
|
+
* Decodes a GetCurrentQuorumsInfoRequest message from the specified reader or buffer, length delimited.
|
|
45256
|
+
* @function decodeDelimited
|
|
45257
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest
|
|
45258
|
+
* @static
|
|
45259
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45260
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest} GetCurrentQuorumsInfoRequest
|
|
45261
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45262
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45263
|
+
*/
|
|
45264
|
+
GetCurrentQuorumsInfoRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
45265
|
+
if (!(reader instanceof $Reader))
|
|
45266
|
+
reader = new $Reader(reader);
|
|
45267
|
+
return this.decode(reader, reader.uint32());
|
|
45268
|
+
};
|
|
45269
|
+
|
|
45270
|
+
/**
|
|
45271
|
+
* Verifies a GetCurrentQuorumsInfoRequest message.
|
|
45272
|
+
* @function verify
|
|
45273
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest
|
|
45274
|
+
* @static
|
|
45275
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
45276
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
45277
|
+
*/
|
|
45278
|
+
GetCurrentQuorumsInfoRequest.verify = function verify(message) {
|
|
45279
|
+
if (typeof message !== "object" || message === null)
|
|
45280
|
+
return "object expected";
|
|
45281
|
+
var properties = {};
|
|
45282
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
45283
|
+
properties.version = 1;
|
|
45284
|
+
{
|
|
45285
|
+
var error = $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0.verify(message.v0);
|
|
45286
|
+
if (error)
|
|
45287
|
+
return "v0." + error;
|
|
45288
|
+
}
|
|
45289
|
+
}
|
|
45290
|
+
return null;
|
|
45291
|
+
};
|
|
45292
|
+
|
|
45293
|
+
/**
|
|
45294
|
+
* Creates a GetCurrentQuorumsInfoRequest message from a plain object. Also converts values to their respective internal types.
|
|
45295
|
+
* @function fromObject
|
|
45296
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest
|
|
45297
|
+
* @static
|
|
45298
|
+
* @param {Object.<string,*>} object Plain object
|
|
45299
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest} GetCurrentQuorumsInfoRequest
|
|
45300
|
+
*/
|
|
45301
|
+
GetCurrentQuorumsInfoRequest.fromObject = function fromObject(object) {
|
|
45302
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest)
|
|
45303
|
+
return object;
|
|
45304
|
+
var message = new $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest();
|
|
45305
|
+
if (object.v0 != null) {
|
|
45306
|
+
if (typeof object.v0 !== "object")
|
|
45307
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.v0: object expected");
|
|
45308
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0.fromObject(object.v0);
|
|
45309
|
+
}
|
|
45310
|
+
return message;
|
|
45311
|
+
};
|
|
45312
|
+
|
|
45313
|
+
/**
|
|
45314
|
+
* Creates a plain object from a GetCurrentQuorumsInfoRequest message. Also converts values to other types if specified.
|
|
45315
|
+
* @function toObject
|
|
45316
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest
|
|
45317
|
+
* @static
|
|
45318
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest} message GetCurrentQuorumsInfoRequest
|
|
45319
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
45320
|
+
* @returns {Object.<string,*>} Plain object
|
|
45321
|
+
*/
|
|
45322
|
+
GetCurrentQuorumsInfoRequest.toObject = function toObject(message, options) {
|
|
45323
|
+
if (!options)
|
|
45324
|
+
options = {};
|
|
45325
|
+
var object = {};
|
|
45326
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
45327
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0.toObject(message.v0, options);
|
|
45328
|
+
if (options.oneofs)
|
|
45329
|
+
object.version = "v0";
|
|
45330
|
+
}
|
|
45331
|
+
return object;
|
|
45332
|
+
};
|
|
45333
|
+
|
|
45334
|
+
/**
|
|
45335
|
+
* Converts this GetCurrentQuorumsInfoRequest to JSON.
|
|
45336
|
+
* @function toJSON
|
|
45337
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest
|
|
45338
|
+
* @instance
|
|
45339
|
+
* @returns {Object.<string,*>} JSON object
|
|
45340
|
+
*/
|
|
45341
|
+
GetCurrentQuorumsInfoRequest.prototype.toJSON = function toJSON() {
|
|
45342
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
45343
|
+
};
|
|
45344
|
+
|
|
45345
|
+
GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0 = (function() {
|
|
45346
|
+
|
|
45347
|
+
/**
|
|
45348
|
+
* Properties of a GetCurrentQuorumsInfoRequestV0.
|
|
45349
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest
|
|
45350
|
+
* @interface IGetCurrentQuorumsInfoRequestV0
|
|
45351
|
+
*/
|
|
45352
|
+
|
|
45353
|
+
/**
|
|
45354
|
+
* Constructs a new GetCurrentQuorumsInfoRequestV0.
|
|
45355
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest
|
|
45356
|
+
* @classdesc Represents a GetCurrentQuorumsInfoRequestV0.
|
|
45357
|
+
* @implements IGetCurrentQuorumsInfoRequestV0
|
|
45358
|
+
* @constructor
|
|
45359
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.IGetCurrentQuorumsInfoRequestV0=} [properties] Properties to set
|
|
45360
|
+
*/
|
|
45361
|
+
function GetCurrentQuorumsInfoRequestV0(properties) {
|
|
45362
|
+
if (properties)
|
|
45363
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
45364
|
+
if (properties[keys[i]] != null)
|
|
45365
|
+
this[keys[i]] = properties[keys[i]];
|
|
45366
|
+
}
|
|
45367
|
+
|
|
45368
|
+
/**
|
|
45369
|
+
* Creates a new GetCurrentQuorumsInfoRequestV0 instance using the specified properties.
|
|
45370
|
+
* @function create
|
|
45371
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0
|
|
45372
|
+
* @static
|
|
45373
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.IGetCurrentQuorumsInfoRequestV0=} [properties] Properties to set
|
|
45374
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0} GetCurrentQuorumsInfoRequestV0 instance
|
|
45375
|
+
*/
|
|
45376
|
+
GetCurrentQuorumsInfoRequestV0.create = function create(properties) {
|
|
45377
|
+
return new GetCurrentQuorumsInfoRequestV0(properties);
|
|
45378
|
+
};
|
|
45379
|
+
|
|
45380
|
+
/**
|
|
45381
|
+
* Encodes the specified GetCurrentQuorumsInfoRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0.verify|verify} messages.
|
|
45382
|
+
* @function encode
|
|
45383
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0
|
|
45384
|
+
* @static
|
|
45385
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.IGetCurrentQuorumsInfoRequestV0} message GetCurrentQuorumsInfoRequestV0 message or plain object to encode
|
|
45386
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
45387
|
+
* @returns {$protobuf.Writer} Writer
|
|
45388
|
+
*/
|
|
45389
|
+
GetCurrentQuorumsInfoRequestV0.encode = function encode(message, writer) {
|
|
45390
|
+
if (!writer)
|
|
45391
|
+
writer = $Writer.create();
|
|
45392
|
+
return writer;
|
|
45393
|
+
};
|
|
45394
|
+
|
|
45395
|
+
/**
|
|
45396
|
+
* Encodes the specified GetCurrentQuorumsInfoRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0.verify|verify} messages.
|
|
45397
|
+
* @function encodeDelimited
|
|
45398
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0
|
|
45399
|
+
* @static
|
|
45400
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.IGetCurrentQuorumsInfoRequestV0} message GetCurrentQuorumsInfoRequestV0 message or plain object to encode
|
|
45401
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
45402
|
+
* @returns {$protobuf.Writer} Writer
|
|
45403
|
+
*/
|
|
45404
|
+
GetCurrentQuorumsInfoRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
45405
|
+
return this.encode(message, writer).ldelim();
|
|
45406
|
+
};
|
|
45407
|
+
|
|
45408
|
+
/**
|
|
45409
|
+
* Decodes a GetCurrentQuorumsInfoRequestV0 message from the specified reader or buffer.
|
|
45410
|
+
* @function decode
|
|
45411
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0
|
|
45412
|
+
* @static
|
|
45413
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45414
|
+
* @param {number} [length] Message length if known beforehand
|
|
45415
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0} GetCurrentQuorumsInfoRequestV0
|
|
45416
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45417
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45418
|
+
*/
|
|
45419
|
+
GetCurrentQuorumsInfoRequestV0.decode = function decode(reader, length) {
|
|
45420
|
+
if (!(reader instanceof $Reader))
|
|
45421
|
+
reader = $Reader.create(reader);
|
|
45422
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0();
|
|
45423
|
+
while (reader.pos < end) {
|
|
45424
|
+
var tag = reader.uint32();
|
|
45425
|
+
switch (tag >>> 3) {
|
|
45426
|
+
default:
|
|
45427
|
+
reader.skipType(tag & 7);
|
|
45428
|
+
break;
|
|
45429
|
+
}
|
|
45430
|
+
}
|
|
45431
|
+
return message;
|
|
45432
|
+
};
|
|
45433
|
+
|
|
45434
|
+
/**
|
|
45435
|
+
* Decodes a GetCurrentQuorumsInfoRequestV0 message from the specified reader or buffer, length delimited.
|
|
45436
|
+
* @function decodeDelimited
|
|
45437
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0
|
|
45438
|
+
* @static
|
|
45439
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45440
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0} GetCurrentQuorumsInfoRequestV0
|
|
45441
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45442
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45443
|
+
*/
|
|
45444
|
+
GetCurrentQuorumsInfoRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
45445
|
+
if (!(reader instanceof $Reader))
|
|
45446
|
+
reader = new $Reader(reader);
|
|
45447
|
+
return this.decode(reader, reader.uint32());
|
|
45448
|
+
};
|
|
45449
|
+
|
|
45450
|
+
/**
|
|
45451
|
+
* Verifies a GetCurrentQuorumsInfoRequestV0 message.
|
|
45452
|
+
* @function verify
|
|
45453
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0
|
|
45454
|
+
* @static
|
|
45455
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
45456
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
45457
|
+
*/
|
|
45458
|
+
GetCurrentQuorumsInfoRequestV0.verify = function verify(message) {
|
|
45459
|
+
if (typeof message !== "object" || message === null)
|
|
45460
|
+
return "object expected";
|
|
45461
|
+
return null;
|
|
45462
|
+
};
|
|
45463
|
+
|
|
45464
|
+
/**
|
|
45465
|
+
* Creates a GetCurrentQuorumsInfoRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
45466
|
+
* @function fromObject
|
|
45467
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0
|
|
45468
|
+
* @static
|
|
45469
|
+
* @param {Object.<string,*>} object Plain object
|
|
45470
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0} GetCurrentQuorumsInfoRequestV0
|
|
45471
|
+
*/
|
|
45472
|
+
GetCurrentQuorumsInfoRequestV0.fromObject = function fromObject(object) {
|
|
45473
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0)
|
|
45474
|
+
return object;
|
|
45475
|
+
return new $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0();
|
|
45476
|
+
};
|
|
45477
|
+
|
|
45478
|
+
/**
|
|
45479
|
+
* Creates a plain object from a GetCurrentQuorumsInfoRequestV0 message. Also converts values to other types if specified.
|
|
45480
|
+
* @function toObject
|
|
45481
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0
|
|
45482
|
+
* @static
|
|
45483
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0} message GetCurrentQuorumsInfoRequestV0
|
|
45484
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
45485
|
+
* @returns {Object.<string,*>} Plain object
|
|
45486
|
+
*/
|
|
45487
|
+
GetCurrentQuorumsInfoRequestV0.toObject = function toObject() {
|
|
45488
|
+
return {};
|
|
45489
|
+
};
|
|
45490
|
+
|
|
45491
|
+
/**
|
|
45492
|
+
* Converts this GetCurrentQuorumsInfoRequestV0 to JSON.
|
|
45493
|
+
* @function toJSON
|
|
45494
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0
|
|
45495
|
+
* @instance
|
|
45496
|
+
* @returns {Object.<string,*>} JSON object
|
|
45497
|
+
*/
|
|
45498
|
+
GetCurrentQuorumsInfoRequestV0.prototype.toJSON = function toJSON() {
|
|
45499
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
45500
|
+
};
|
|
45501
|
+
|
|
45502
|
+
return GetCurrentQuorumsInfoRequestV0;
|
|
45503
|
+
})();
|
|
45504
|
+
|
|
45505
|
+
return GetCurrentQuorumsInfoRequest;
|
|
45506
|
+
})();
|
|
45507
|
+
|
|
45508
|
+
v0.GetCurrentQuorumsInfoResponse = (function() {
|
|
45509
|
+
|
|
45510
|
+
/**
|
|
45511
|
+
* Properties of a GetCurrentQuorumsInfoResponse.
|
|
45512
|
+
* @memberof org.dash.platform.dapi.v0
|
|
45513
|
+
* @interface IGetCurrentQuorumsInfoResponse
|
|
45514
|
+
* @property {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IGetCurrentQuorumsInfoResponseV0|null} [v0] GetCurrentQuorumsInfoResponse v0
|
|
45515
|
+
*/
|
|
45516
|
+
|
|
45517
|
+
/**
|
|
45518
|
+
* Constructs a new GetCurrentQuorumsInfoResponse.
|
|
45519
|
+
* @memberof org.dash.platform.dapi.v0
|
|
45520
|
+
* @classdesc Represents a GetCurrentQuorumsInfoResponse.
|
|
45521
|
+
* @implements IGetCurrentQuorumsInfoResponse
|
|
45522
|
+
* @constructor
|
|
45523
|
+
* @param {org.dash.platform.dapi.v0.IGetCurrentQuorumsInfoResponse=} [properties] Properties to set
|
|
45524
|
+
*/
|
|
45525
|
+
function GetCurrentQuorumsInfoResponse(properties) {
|
|
45526
|
+
if (properties)
|
|
45527
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
45528
|
+
if (properties[keys[i]] != null)
|
|
45529
|
+
this[keys[i]] = properties[keys[i]];
|
|
45530
|
+
}
|
|
45531
|
+
|
|
45532
|
+
/**
|
|
45533
|
+
* GetCurrentQuorumsInfoResponse v0.
|
|
45534
|
+
* @member {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IGetCurrentQuorumsInfoResponseV0|null|undefined} v0
|
|
45535
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
45536
|
+
* @instance
|
|
45537
|
+
*/
|
|
45538
|
+
GetCurrentQuorumsInfoResponse.prototype.v0 = null;
|
|
45539
|
+
|
|
45540
|
+
// OneOf field names bound to virtual getters and setters
|
|
45541
|
+
var $oneOfFields;
|
|
45542
|
+
|
|
45543
|
+
/**
|
|
45544
|
+
* GetCurrentQuorumsInfoResponse version.
|
|
45545
|
+
* @member {"v0"|undefined} version
|
|
45546
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
45547
|
+
* @instance
|
|
45548
|
+
*/
|
|
45549
|
+
Object.defineProperty(GetCurrentQuorumsInfoResponse.prototype, "version", {
|
|
45550
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
45551
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
45552
|
+
});
|
|
45553
|
+
|
|
45554
|
+
/**
|
|
45555
|
+
* Creates a new GetCurrentQuorumsInfoResponse instance using the specified properties.
|
|
45556
|
+
* @function create
|
|
45557
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
45558
|
+
* @static
|
|
45559
|
+
* @param {org.dash.platform.dapi.v0.IGetCurrentQuorumsInfoResponse=} [properties] Properties to set
|
|
45560
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse} GetCurrentQuorumsInfoResponse instance
|
|
45561
|
+
*/
|
|
45562
|
+
GetCurrentQuorumsInfoResponse.create = function create(properties) {
|
|
45563
|
+
return new GetCurrentQuorumsInfoResponse(properties);
|
|
45564
|
+
};
|
|
45565
|
+
|
|
45566
|
+
/**
|
|
45567
|
+
* Encodes the specified GetCurrentQuorumsInfoResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.verify|verify} messages.
|
|
45568
|
+
* @function encode
|
|
45569
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
45570
|
+
* @static
|
|
45571
|
+
* @param {org.dash.platform.dapi.v0.IGetCurrentQuorumsInfoResponse} message GetCurrentQuorumsInfoResponse message or plain object to encode
|
|
45572
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
45573
|
+
* @returns {$protobuf.Writer} Writer
|
|
45574
|
+
*/
|
|
45575
|
+
GetCurrentQuorumsInfoResponse.encode = function encode(message, writer) {
|
|
45576
|
+
if (!writer)
|
|
45577
|
+
writer = $Writer.create();
|
|
45578
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
45579
|
+
$root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
45580
|
+
return writer;
|
|
45581
|
+
};
|
|
45582
|
+
|
|
45583
|
+
/**
|
|
45584
|
+
* Encodes the specified GetCurrentQuorumsInfoResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.verify|verify} messages.
|
|
45585
|
+
* @function encodeDelimited
|
|
45586
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
45587
|
+
* @static
|
|
45588
|
+
* @param {org.dash.platform.dapi.v0.IGetCurrentQuorumsInfoResponse} message GetCurrentQuorumsInfoResponse message or plain object to encode
|
|
45589
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
45590
|
+
* @returns {$protobuf.Writer} Writer
|
|
45591
|
+
*/
|
|
45592
|
+
GetCurrentQuorumsInfoResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
45593
|
+
return this.encode(message, writer).ldelim();
|
|
45594
|
+
};
|
|
45595
|
+
|
|
45596
|
+
/**
|
|
45597
|
+
* Decodes a GetCurrentQuorumsInfoResponse message from the specified reader or buffer.
|
|
45598
|
+
* @function decode
|
|
45599
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
45600
|
+
* @static
|
|
45601
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45602
|
+
* @param {number} [length] Message length if known beforehand
|
|
45603
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse} GetCurrentQuorumsInfoResponse
|
|
45604
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45605
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45606
|
+
*/
|
|
45607
|
+
GetCurrentQuorumsInfoResponse.decode = function decode(reader, length) {
|
|
45608
|
+
if (!(reader instanceof $Reader))
|
|
45609
|
+
reader = $Reader.create(reader);
|
|
45610
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse();
|
|
45611
|
+
while (reader.pos < end) {
|
|
45612
|
+
var tag = reader.uint32();
|
|
45613
|
+
switch (tag >>> 3) {
|
|
45614
|
+
case 1:
|
|
45615
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0.decode(reader, reader.uint32());
|
|
45616
|
+
break;
|
|
45617
|
+
default:
|
|
45618
|
+
reader.skipType(tag & 7);
|
|
45619
|
+
break;
|
|
45620
|
+
}
|
|
45621
|
+
}
|
|
45622
|
+
return message;
|
|
45623
|
+
};
|
|
45624
|
+
|
|
45625
|
+
/**
|
|
45626
|
+
* Decodes a GetCurrentQuorumsInfoResponse message from the specified reader or buffer, length delimited.
|
|
45627
|
+
* @function decodeDelimited
|
|
45628
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
45629
|
+
* @static
|
|
45630
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45631
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse} GetCurrentQuorumsInfoResponse
|
|
45632
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45633
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45634
|
+
*/
|
|
45635
|
+
GetCurrentQuorumsInfoResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
45636
|
+
if (!(reader instanceof $Reader))
|
|
45637
|
+
reader = new $Reader(reader);
|
|
45638
|
+
return this.decode(reader, reader.uint32());
|
|
45639
|
+
};
|
|
45640
|
+
|
|
45641
|
+
/**
|
|
45642
|
+
* Verifies a GetCurrentQuorumsInfoResponse message.
|
|
45643
|
+
* @function verify
|
|
45644
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
45645
|
+
* @static
|
|
45646
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
45647
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
45648
|
+
*/
|
|
45649
|
+
GetCurrentQuorumsInfoResponse.verify = function verify(message) {
|
|
45650
|
+
if (typeof message !== "object" || message === null)
|
|
45651
|
+
return "object expected";
|
|
45652
|
+
var properties = {};
|
|
45653
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
45654
|
+
properties.version = 1;
|
|
45655
|
+
{
|
|
45656
|
+
var error = $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0.verify(message.v0);
|
|
45657
|
+
if (error)
|
|
45658
|
+
return "v0." + error;
|
|
45659
|
+
}
|
|
45660
|
+
}
|
|
45661
|
+
return null;
|
|
45662
|
+
};
|
|
45663
|
+
|
|
45664
|
+
/**
|
|
45665
|
+
* Creates a GetCurrentQuorumsInfoResponse message from a plain object. Also converts values to their respective internal types.
|
|
45666
|
+
* @function fromObject
|
|
45667
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
45668
|
+
* @static
|
|
45669
|
+
* @param {Object.<string,*>} object Plain object
|
|
45670
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse} GetCurrentQuorumsInfoResponse
|
|
45671
|
+
*/
|
|
45672
|
+
GetCurrentQuorumsInfoResponse.fromObject = function fromObject(object) {
|
|
45673
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse)
|
|
45674
|
+
return object;
|
|
45675
|
+
var message = new $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse();
|
|
45676
|
+
if (object.v0 != null) {
|
|
45677
|
+
if (typeof object.v0 !== "object")
|
|
45678
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.v0: object expected");
|
|
45679
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0.fromObject(object.v0);
|
|
45680
|
+
}
|
|
45681
|
+
return message;
|
|
45682
|
+
};
|
|
45683
|
+
|
|
45684
|
+
/**
|
|
45685
|
+
* Creates a plain object from a GetCurrentQuorumsInfoResponse message. Also converts values to other types if specified.
|
|
45686
|
+
* @function toObject
|
|
45687
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
45688
|
+
* @static
|
|
45689
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse} message GetCurrentQuorumsInfoResponse
|
|
45690
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
45691
|
+
* @returns {Object.<string,*>} Plain object
|
|
45692
|
+
*/
|
|
45693
|
+
GetCurrentQuorumsInfoResponse.toObject = function toObject(message, options) {
|
|
45694
|
+
if (!options)
|
|
45695
|
+
options = {};
|
|
45696
|
+
var object = {};
|
|
45697
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
45698
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0.toObject(message.v0, options);
|
|
45699
|
+
if (options.oneofs)
|
|
45700
|
+
object.version = "v0";
|
|
45701
|
+
}
|
|
45702
|
+
return object;
|
|
45703
|
+
};
|
|
45704
|
+
|
|
45705
|
+
/**
|
|
45706
|
+
* Converts this GetCurrentQuorumsInfoResponse to JSON.
|
|
45707
|
+
* @function toJSON
|
|
45708
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
45709
|
+
* @instance
|
|
45710
|
+
* @returns {Object.<string,*>} JSON object
|
|
45711
|
+
*/
|
|
45712
|
+
GetCurrentQuorumsInfoResponse.prototype.toJSON = function toJSON() {
|
|
45713
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
45714
|
+
};
|
|
45715
|
+
|
|
45716
|
+
GetCurrentQuorumsInfoResponse.ValidatorV0 = (function() {
|
|
45717
|
+
|
|
45718
|
+
/**
|
|
45719
|
+
* Properties of a ValidatorV0.
|
|
45720
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
45721
|
+
* @interface IValidatorV0
|
|
45722
|
+
* @property {Uint8Array|null} [proTxHash] ValidatorV0 proTxHash
|
|
45723
|
+
* @property {string|null} [nodeIp] ValidatorV0 nodeIp
|
|
45724
|
+
* @property {boolean|null} [isBanned] ValidatorV0 isBanned
|
|
45725
|
+
*/
|
|
45726
|
+
|
|
45727
|
+
/**
|
|
45728
|
+
* Constructs a new ValidatorV0.
|
|
45729
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
45730
|
+
* @classdesc Represents a ValidatorV0.
|
|
45731
|
+
* @implements IValidatorV0
|
|
45732
|
+
* @constructor
|
|
45733
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IValidatorV0=} [properties] Properties to set
|
|
45734
|
+
*/
|
|
45735
|
+
function ValidatorV0(properties) {
|
|
45736
|
+
if (properties)
|
|
45737
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
45738
|
+
if (properties[keys[i]] != null)
|
|
45739
|
+
this[keys[i]] = properties[keys[i]];
|
|
45740
|
+
}
|
|
45741
|
+
|
|
45742
|
+
/**
|
|
45743
|
+
* ValidatorV0 proTxHash.
|
|
45744
|
+
* @member {Uint8Array} proTxHash
|
|
45745
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0
|
|
45746
|
+
* @instance
|
|
45747
|
+
*/
|
|
45748
|
+
ValidatorV0.prototype.proTxHash = $util.newBuffer([]);
|
|
45749
|
+
|
|
45750
|
+
/**
|
|
45751
|
+
* ValidatorV0 nodeIp.
|
|
45752
|
+
* @member {string} nodeIp
|
|
45753
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0
|
|
45754
|
+
* @instance
|
|
45755
|
+
*/
|
|
45756
|
+
ValidatorV0.prototype.nodeIp = "";
|
|
45757
|
+
|
|
45758
|
+
/**
|
|
45759
|
+
* ValidatorV0 isBanned.
|
|
45760
|
+
* @member {boolean} isBanned
|
|
45761
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0
|
|
45762
|
+
* @instance
|
|
45763
|
+
*/
|
|
45764
|
+
ValidatorV0.prototype.isBanned = false;
|
|
45765
|
+
|
|
45766
|
+
/**
|
|
45767
|
+
* Creates a new ValidatorV0 instance using the specified properties.
|
|
45768
|
+
* @function create
|
|
45769
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0
|
|
45770
|
+
* @static
|
|
45771
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IValidatorV0=} [properties] Properties to set
|
|
45772
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0} ValidatorV0 instance
|
|
45773
|
+
*/
|
|
45774
|
+
ValidatorV0.create = function create(properties) {
|
|
45775
|
+
return new ValidatorV0(properties);
|
|
45776
|
+
};
|
|
45777
|
+
|
|
45778
|
+
/**
|
|
45779
|
+
* Encodes the specified ValidatorV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0.verify|verify} messages.
|
|
45780
|
+
* @function encode
|
|
45781
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0
|
|
45782
|
+
* @static
|
|
45783
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IValidatorV0} message ValidatorV0 message or plain object to encode
|
|
45784
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
45785
|
+
* @returns {$protobuf.Writer} Writer
|
|
45786
|
+
*/
|
|
45787
|
+
ValidatorV0.encode = function encode(message, writer) {
|
|
45788
|
+
if (!writer)
|
|
45789
|
+
writer = $Writer.create();
|
|
45790
|
+
if (message.proTxHash != null && Object.hasOwnProperty.call(message, "proTxHash"))
|
|
45791
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.proTxHash);
|
|
45792
|
+
if (message.nodeIp != null && Object.hasOwnProperty.call(message, "nodeIp"))
|
|
45793
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nodeIp);
|
|
45794
|
+
if (message.isBanned != null && Object.hasOwnProperty.call(message, "isBanned"))
|
|
45795
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isBanned);
|
|
45796
|
+
return writer;
|
|
45797
|
+
};
|
|
45798
|
+
|
|
45799
|
+
/**
|
|
45800
|
+
* Encodes the specified ValidatorV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0.verify|verify} messages.
|
|
45801
|
+
* @function encodeDelimited
|
|
45802
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0
|
|
45803
|
+
* @static
|
|
45804
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IValidatorV0} message ValidatorV0 message or plain object to encode
|
|
45805
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
45806
|
+
* @returns {$protobuf.Writer} Writer
|
|
45807
|
+
*/
|
|
45808
|
+
ValidatorV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
45809
|
+
return this.encode(message, writer).ldelim();
|
|
45810
|
+
};
|
|
45811
|
+
|
|
45812
|
+
/**
|
|
45813
|
+
* Decodes a ValidatorV0 message from the specified reader or buffer.
|
|
45814
|
+
* @function decode
|
|
45815
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0
|
|
45816
|
+
* @static
|
|
45817
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45818
|
+
* @param {number} [length] Message length if known beforehand
|
|
45819
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0} ValidatorV0
|
|
45820
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45821
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45822
|
+
*/
|
|
45823
|
+
ValidatorV0.decode = function decode(reader, length) {
|
|
45824
|
+
if (!(reader instanceof $Reader))
|
|
45825
|
+
reader = $Reader.create(reader);
|
|
45826
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0();
|
|
45827
|
+
while (reader.pos < end) {
|
|
45828
|
+
var tag = reader.uint32();
|
|
45829
|
+
switch (tag >>> 3) {
|
|
45830
|
+
case 1:
|
|
45831
|
+
message.proTxHash = reader.bytes();
|
|
45832
|
+
break;
|
|
45833
|
+
case 2:
|
|
45834
|
+
message.nodeIp = reader.string();
|
|
45835
|
+
break;
|
|
45836
|
+
case 3:
|
|
45837
|
+
message.isBanned = reader.bool();
|
|
45838
|
+
break;
|
|
45839
|
+
default:
|
|
45840
|
+
reader.skipType(tag & 7);
|
|
45841
|
+
break;
|
|
45842
|
+
}
|
|
45843
|
+
}
|
|
45844
|
+
return message;
|
|
45845
|
+
};
|
|
45846
|
+
|
|
45847
|
+
/**
|
|
45848
|
+
* Decodes a ValidatorV0 message from the specified reader or buffer, length delimited.
|
|
45849
|
+
* @function decodeDelimited
|
|
45850
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0
|
|
45851
|
+
* @static
|
|
45852
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45853
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0} ValidatorV0
|
|
45854
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45855
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45856
|
+
*/
|
|
45857
|
+
ValidatorV0.decodeDelimited = function decodeDelimited(reader) {
|
|
45858
|
+
if (!(reader instanceof $Reader))
|
|
45859
|
+
reader = new $Reader(reader);
|
|
45860
|
+
return this.decode(reader, reader.uint32());
|
|
45861
|
+
};
|
|
45862
|
+
|
|
45863
|
+
/**
|
|
45864
|
+
* Verifies a ValidatorV0 message.
|
|
45865
|
+
* @function verify
|
|
45866
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0
|
|
45867
|
+
* @static
|
|
45868
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
45869
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
45870
|
+
*/
|
|
45871
|
+
ValidatorV0.verify = function verify(message) {
|
|
45872
|
+
if (typeof message !== "object" || message === null)
|
|
45873
|
+
return "object expected";
|
|
45874
|
+
if (message.proTxHash != null && message.hasOwnProperty("proTxHash"))
|
|
45875
|
+
if (!(message.proTxHash && typeof message.proTxHash.length === "number" || $util.isString(message.proTxHash)))
|
|
45876
|
+
return "proTxHash: buffer expected";
|
|
45877
|
+
if (message.nodeIp != null && message.hasOwnProperty("nodeIp"))
|
|
45878
|
+
if (!$util.isString(message.nodeIp))
|
|
45879
|
+
return "nodeIp: string expected";
|
|
45880
|
+
if (message.isBanned != null && message.hasOwnProperty("isBanned"))
|
|
45881
|
+
if (typeof message.isBanned !== "boolean")
|
|
45882
|
+
return "isBanned: boolean expected";
|
|
45883
|
+
return null;
|
|
45884
|
+
};
|
|
45885
|
+
|
|
45886
|
+
/**
|
|
45887
|
+
* Creates a ValidatorV0 message from a plain object. Also converts values to their respective internal types.
|
|
45888
|
+
* @function fromObject
|
|
45889
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0
|
|
45890
|
+
* @static
|
|
45891
|
+
* @param {Object.<string,*>} object Plain object
|
|
45892
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0} ValidatorV0
|
|
45893
|
+
*/
|
|
45894
|
+
ValidatorV0.fromObject = function fromObject(object) {
|
|
45895
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0)
|
|
45896
|
+
return object;
|
|
45897
|
+
var message = new $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0();
|
|
45898
|
+
if (object.proTxHash != null)
|
|
45899
|
+
if (typeof object.proTxHash === "string")
|
|
45900
|
+
$util.base64.decode(object.proTxHash, message.proTxHash = $util.newBuffer($util.base64.length(object.proTxHash)), 0);
|
|
45901
|
+
else if (object.proTxHash.length >= 0)
|
|
45902
|
+
message.proTxHash = object.proTxHash;
|
|
45903
|
+
if (object.nodeIp != null)
|
|
45904
|
+
message.nodeIp = String(object.nodeIp);
|
|
45905
|
+
if (object.isBanned != null)
|
|
45906
|
+
message.isBanned = Boolean(object.isBanned);
|
|
45907
|
+
return message;
|
|
45908
|
+
};
|
|
45909
|
+
|
|
45910
|
+
/**
|
|
45911
|
+
* Creates a plain object from a ValidatorV0 message. Also converts values to other types if specified.
|
|
45912
|
+
* @function toObject
|
|
45913
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0
|
|
45914
|
+
* @static
|
|
45915
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0} message ValidatorV0
|
|
45916
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
45917
|
+
* @returns {Object.<string,*>} Plain object
|
|
45918
|
+
*/
|
|
45919
|
+
ValidatorV0.toObject = function toObject(message, options) {
|
|
45920
|
+
if (!options)
|
|
45921
|
+
options = {};
|
|
45922
|
+
var object = {};
|
|
45923
|
+
if (options.defaults) {
|
|
45924
|
+
if (options.bytes === String)
|
|
45925
|
+
object.proTxHash = "";
|
|
45926
|
+
else {
|
|
45927
|
+
object.proTxHash = [];
|
|
45928
|
+
if (options.bytes !== Array)
|
|
45929
|
+
object.proTxHash = $util.newBuffer(object.proTxHash);
|
|
45930
|
+
}
|
|
45931
|
+
object.nodeIp = "";
|
|
45932
|
+
object.isBanned = false;
|
|
45933
|
+
}
|
|
45934
|
+
if (message.proTxHash != null && message.hasOwnProperty("proTxHash"))
|
|
45935
|
+
object.proTxHash = options.bytes === String ? $util.base64.encode(message.proTxHash, 0, message.proTxHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.proTxHash) : message.proTxHash;
|
|
45936
|
+
if (message.nodeIp != null && message.hasOwnProperty("nodeIp"))
|
|
45937
|
+
object.nodeIp = message.nodeIp;
|
|
45938
|
+
if (message.isBanned != null && message.hasOwnProperty("isBanned"))
|
|
45939
|
+
object.isBanned = message.isBanned;
|
|
45940
|
+
return object;
|
|
45941
|
+
};
|
|
45942
|
+
|
|
45943
|
+
/**
|
|
45944
|
+
* Converts this ValidatorV0 to JSON.
|
|
45945
|
+
* @function toJSON
|
|
45946
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0
|
|
45947
|
+
* @instance
|
|
45948
|
+
* @returns {Object.<string,*>} JSON object
|
|
45949
|
+
*/
|
|
45950
|
+
ValidatorV0.prototype.toJSON = function toJSON() {
|
|
45951
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
45952
|
+
};
|
|
45953
|
+
|
|
45954
|
+
return ValidatorV0;
|
|
45955
|
+
})();
|
|
45956
|
+
|
|
45957
|
+
GetCurrentQuorumsInfoResponse.ValidatorSetV0 = (function() {
|
|
45958
|
+
|
|
45959
|
+
/**
|
|
45960
|
+
* Properties of a ValidatorSetV0.
|
|
45961
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
45962
|
+
* @interface IValidatorSetV0
|
|
45963
|
+
* @property {Uint8Array|null} [quorumHash] ValidatorSetV0 quorumHash
|
|
45964
|
+
* @property {number|null} [coreHeight] ValidatorSetV0 coreHeight
|
|
45965
|
+
* @property {Array.<org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IValidatorV0>|null} [members] ValidatorSetV0 members
|
|
45966
|
+
* @property {Uint8Array|null} [thresholdPublicKey] ValidatorSetV0 thresholdPublicKey
|
|
45967
|
+
*/
|
|
45968
|
+
|
|
45969
|
+
/**
|
|
45970
|
+
* Constructs a new ValidatorSetV0.
|
|
45971
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
45972
|
+
* @classdesc Represents a ValidatorSetV0.
|
|
45973
|
+
* @implements IValidatorSetV0
|
|
45974
|
+
* @constructor
|
|
45975
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IValidatorSetV0=} [properties] Properties to set
|
|
45976
|
+
*/
|
|
45977
|
+
function ValidatorSetV0(properties) {
|
|
45978
|
+
this.members = [];
|
|
45979
|
+
if (properties)
|
|
45980
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
45981
|
+
if (properties[keys[i]] != null)
|
|
45982
|
+
this[keys[i]] = properties[keys[i]];
|
|
45983
|
+
}
|
|
45984
|
+
|
|
45985
|
+
/**
|
|
45986
|
+
* ValidatorSetV0 quorumHash.
|
|
45987
|
+
* @member {Uint8Array} quorumHash
|
|
45988
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0
|
|
45989
|
+
* @instance
|
|
45990
|
+
*/
|
|
45991
|
+
ValidatorSetV0.prototype.quorumHash = $util.newBuffer([]);
|
|
45992
|
+
|
|
45993
|
+
/**
|
|
45994
|
+
* ValidatorSetV0 coreHeight.
|
|
45995
|
+
* @member {number} coreHeight
|
|
45996
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0
|
|
45997
|
+
* @instance
|
|
45998
|
+
*/
|
|
45999
|
+
ValidatorSetV0.prototype.coreHeight = 0;
|
|
46000
|
+
|
|
46001
|
+
/**
|
|
46002
|
+
* ValidatorSetV0 members.
|
|
46003
|
+
* @member {Array.<org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IValidatorV0>} members
|
|
46004
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0
|
|
46005
|
+
* @instance
|
|
46006
|
+
*/
|
|
46007
|
+
ValidatorSetV0.prototype.members = $util.emptyArray;
|
|
46008
|
+
|
|
46009
|
+
/**
|
|
46010
|
+
* ValidatorSetV0 thresholdPublicKey.
|
|
46011
|
+
* @member {Uint8Array} thresholdPublicKey
|
|
46012
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0
|
|
46013
|
+
* @instance
|
|
46014
|
+
*/
|
|
46015
|
+
ValidatorSetV0.prototype.thresholdPublicKey = $util.newBuffer([]);
|
|
46016
|
+
|
|
46017
|
+
/**
|
|
46018
|
+
* Creates a new ValidatorSetV0 instance using the specified properties.
|
|
46019
|
+
* @function create
|
|
46020
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0
|
|
46021
|
+
* @static
|
|
46022
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IValidatorSetV0=} [properties] Properties to set
|
|
46023
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0} ValidatorSetV0 instance
|
|
46024
|
+
*/
|
|
46025
|
+
ValidatorSetV0.create = function create(properties) {
|
|
46026
|
+
return new ValidatorSetV0(properties);
|
|
46027
|
+
};
|
|
46028
|
+
|
|
46029
|
+
/**
|
|
46030
|
+
* Encodes the specified ValidatorSetV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0.verify|verify} messages.
|
|
46031
|
+
* @function encode
|
|
46032
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0
|
|
46033
|
+
* @static
|
|
46034
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IValidatorSetV0} message ValidatorSetV0 message or plain object to encode
|
|
46035
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
46036
|
+
* @returns {$protobuf.Writer} Writer
|
|
46037
|
+
*/
|
|
46038
|
+
ValidatorSetV0.encode = function encode(message, writer) {
|
|
46039
|
+
if (!writer)
|
|
46040
|
+
writer = $Writer.create();
|
|
46041
|
+
if (message.quorumHash != null && Object.hasOwnProperty.call(message, "quorumHash"))
|
|
46042
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.quorumHash);
|
|
46043
|
+
if (message.coreHeight != null && Object.hasOwnProperty.call(message, "coreHeight"))
|
|
46044
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.coreHeight);
|
|
46045
|
+
if (message.members != null && message.members.length)
|
|
46046
|
+
for (var i = 0; i < message.members.length; ++i)
|
|
46047
|
+
$root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0.encode(message.members[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
46048
|
+
if (message.thresholdPublicKey != null && Object.hasOwnProperty.call(message, "thresholdPublicKey"))
|
|
46049
|
+
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.thresholdPublicKey);
|
|
46050
|
+
return writer;
|
|
46051
|
+
};
|
|
46052
|
+
|
|
46053
|
+
/**
|
|
46054
|
+
* Encodes the specified ValidatorSetV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0.verify|verify} messages.
|
|
46055
|
+
* @function encodeDelimited
|
|
46056
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0
|
|
46057
|
+
* @static
|
|
46058
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IValidatorSetV0} message ValidatorSetV0 message or plain object to encode
|
|
46059
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
46060
|
+
* @returns {$protobuf.Writer} Writer
|
|
46061
|
+
*/
|
|
46062
|
+
ValidatorSetV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
46063
|
+
return this.encode(message, writer).ldelim();
|
|
46064
|
+
};
|
|
46065
|
+
|
|
46066
|
+
/**
|
|
46067
|
+
* Decodes a ValidatorSetV0 message from the specified reader or buffer.
|
|
46068
|
+
* @function decode
|
|
46069
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0
|
|
46070
|
+
* @static
|
|
46071
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
46072
|
+
* @param {number} [length] Message length if known beforehand
|
|
46073
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0} ValidatorSetV0
|
|
46074
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
46075
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
46076
|
+
*/
|
|
46077
|
+
ValidatorSetV0.decode = function decode(reader, length) {
|
|
46078
|
+
if (!(reader instanceof $Reader))
|
|
46079
|
+
reader = $Reader.create(reader);
|
|
46080
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0();
|
|
46081
|
+
while (reader.pos < end) {
|
|
46082
|
+
var tag = reader.uint32();
|
|
46083
|
+
switch (tag >>> 3) {
|
|
46084
|
+
case 1:
|
|
46085
|
+
message.quorumHash = reader.bytes();
|
|
46086
|
+
break;
|
|
46087
|
+
case 2:
|
|
46088
|
+
message.coreHeight = reader.uint32();
|
|
46089
|
+
break;
|
|
46090
|
+
case 3:
|
|
46091
|
+
if (!(message.members && message.members.length))
|
|
46092
|
+
message.members = [];
|
|
46093
|
+
message.members.push($root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0.decode(reader, reader.uint32()));
|
|
46094
|
+
break;
|
|
46095
|
+
case 4:
|
|
46096
|
+
message.thresholdPublicKey = reader.bytes();
|
|
46097
|
+
break;
|
|
46098
|
+
default:
|
|
46099
|
+
reader.skipType(tag & 7);
|
|
46100
|
+
break;
|
|
46101
|
+
}
|
|
46102
|
+
}
|
|
46103
|
+
return message;
|
|
46104
|
+
};
|
|
46105
|
+
|
|
46106
|
+
/**
|
|
46107
|
+
* Decodes a ValidatorSetV0 message from the specified reader or buffer, length delimited.
|
|
46108
|
+
* @function decodeDelimited
|
|
46109
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0
|
|
46110
|
+
* @static
|
|
46111
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
46112
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0} ValidatorSetV0
|
|
46113
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
46114
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
46115
|
+
*/
|
|
46116
|
+
ValidatorSetV0.decodeDelimited = function decodeDelimited(reader) {
|
|
46117
|
+
if (!(reader instanceof $Reader))
|
|
46118
|
+
reader = new $Reader(reader);
|
|
46119
|
+
return this.decode(reader, reader.uint32());
|
|
46120
|
+
};
|
|
46121
|
+
|
|
46122
|
+
/**
|
|
46123
|
+
* Verifies a ValidatorSetV0 message.
|
|
46124
|
+
* @function verify
|
|
46125
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0
|
|
46126
|
+
* @static
|
|
46127
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
46128
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
46129
|
+
*/
|
|
46130
|
+
ValidatorSetV0.verify = function verify(message) {
|
|
46131
|
+
if (typeof message !== "object" || message === null)
|
|
46132
|
+
return "object expected";
|
|
46133
|
+
if (message.quorumHash != null && message.hasOwnProperty("quorumHash"))
|
|
46134
|
+
if (!(message.quorumHash && typeof message.quorumHash.length === "number" || $util.isString(message.quorumHash)))
|
|
46135
|
+
return "quorumHash: buffer expected";
|
|
46136
|
+
if (message.coreHeight != null && message.hasOwnProperty("coreHeight"))
|
|
46137
|
+
if (!$util.isInteger(message.coreHeight))
|
|
46138
|
+
return "coreHeight: integer expected";
|
|
46139
|
+
if (message.members != null && message.hasOwnProperty("members")) {
|
|
46140
|
+
if (!Array.isArray(message.members))
|
|
46141
|
+
return "members: array expected";
|
|
46142
|
+
for (var i = 0; i < message.members.length; ++i) {
|
|
46143
|
+
var error = $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0.verify(message.members[i]);
|
|
46144
|
+
if (error)
|
|
46145
|
+
return "members." + error;
|
|
46146
|
+
}
|
|
46147
|
+
}
|
|
46148
|
+
if (message.thresholdPublicKey != null && message.hasOwnProperty("thresholdPublicKey"))
|
|
46149
|
+
if (!(message.thresholdPublicKey && typeof message.thresholdPublicKey.length === "number" || $util.isString(message.thresholdPublicKey)))
|
|
46150
|
+
return "thresholdPublicKey: buffer expected";
|
|
46151
|
+
return null;
|
|
46152
|
+
};
|
|
46153
|
+
|
|
46154
|
+
/**
|
|
46155
|
+
* Creates a ValidatorSetV0 message from a plain object. Also converts values to their respective internal types.
|
|
46156
|
+
* @function fromObject
|
|
46157
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0
|
|
46158
|
+
* @static
|
|
46159
|
+
* @param {Object.<string,*>} object Plain object
|
|
46160
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0} ValidatorSetV0
|
|
46161
|
+
*/
|
|
46162
|
+
ValidatorSetV0.fromObject = function fromObject(object) {
|
|
46163
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0)
|
|
46164
|
+
return object;
|
|
46165
|
+
var message = new $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0();
|
|
46166
|
+
if (object.quorumHash != null)
|
|
46167
|
+
if (typeof object.quorumHash === "string")
|
|
46168
|
+
$util.base64.decode(object.quorumHash, message.quorumHash = $util.newBuffer($util.base64.length(object.quorumHash)), 0);
|
|
46169
|
+
else if (object.quorumHash.length >= 0)
|
|
46170
|
+
message.quorumHash = object.quorumHash;
|
|
46171
|
+
if (object.coreHeight != null)
|
|
46172
|
+
message.coreHeight = object.coreHeight >>> 0;
|
|
46173
|
+
if (object.members) {
|
|
46174
|
+
if (!Array.isArray(object.members))
|
|
46175
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0.members: array expected");
|
|
46176
|
+
message.members = [];
|
|
46177
|
+
for (var i = 0; i < object.members.length; ++i) {
|
|
46178
|
+
if (typeof object.members[i] !== "object")
|
|
46179
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0.members: object expected");
|
|
46180
|
+
message.members[i] = $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0.fromObject(object.members[i]);
|
|
46181
|
+
}
|
|
46182
|
+
}
|
|
46183
|
+
if (object.thresholdPublicKey != null)
|
|
46184
|
+
if (typeof object.thresholdPublicKey === "string")
|
|
46185
|
+
$util.base64.decode(object.thresholdPublicKey, message.thresholdPublicKey = $util.newBuffer($util.base64.length(object.thresholdPublicKey)), 0);
|
|
46186
|
+
else if (object.thresholdPublicKey.length >= 0)
|
|
46187
|
+
message.thresholdPublicKey = object.thresholdPublicKey;
|
|
46188
|
+
return message;
|
|
46189
|
+
};
|
|
46190
|
+
|
|
46191
|
+
/**
|
|
46192
|
+
* Creates a plain object from a ValidatorSetV0 message. Also converts values to other types if specified.
|
|
46193
|
+
* @function toObject
|
|
46194
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0
|
|
46195
|
+
* @static
|
|
46196
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0} message ValidatorSetV0
|
|
46197
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
46198
|
+
* @returns {Object.<string,*>} Plain object
|
|
46199
|
+
*/
|
|
46200
|
+
ValidatorSetV0.toObject = function toObject(message, options) {
|
|
46201
|
+
if (!options)
|
|
46202
|
+
options = {};
|
|
46203
|
+
var object = {};
|
|
46204
|
+
if (options.arrays || options.defaults)
|
|
46205
|
+
object.members = [];
|
|
46206
|
+
if (options.defaults) {
|
|
46207
|
+
if (options.bytes === String)
|
|
46208
|
+
object.quorumHash = "";
|
|
46209
|
+
else {
|
|
46210
|
+
object.quorumHash = [];
|
|
46211
|
+
if (options.bytes !== Array)
|
|
46212
|
+
object.quorumHash = $util.newBuffer(object.quorumHash);
|
|
46213
|
+
}
|
|
46214
|
+
object.coreHeight = 0;
|
|
46215
|
+
if (options.bytes === String)
|
|
46216
|
+
object.thresholdPublicKey = "";
|
|
46217
|
+
else {
|
|
46218
|
+
object.thresholdPublicKey = [];
|
|
46219
|
+
if (options.bytes !== Array)
|
|
46220
|
+
object.thresholdPublicKey = $util.newBuffer(object.thresholdPublicKey);
|
|
46221
|
+
}
|
|
46222
|
+
}
|
|
46223
|
+
if (message.quorumHash != null && message.hasOwnProperty("quorumHash"))
|
|
46224
|
+
object.quorumHash = options.bytes === String ? $util.base64.encode(message.quorumHash, 0, message.quorumHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.quorumHash) : message.quorumHash;
|
|
46225
|
+
if (message.coreHeight != null && message.hasOwnProperty("coreHeight"))
|
|
46226
|
+
object.coreHeight = message.coreHeight;
|
|
46227
|
+
if (message.members && message.members.length) {
|
|
46228
|
+
object.members = [];
|
|
46229
|
+
for (var j = 0; j < message.members.length; ++j)
|
|
46230
|
+
object.members[j] = $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0.toObject(message.members[j], options);
|
|
46231
|
+
}
|
|
46232
|
+
if (message.thresholdPublicKey != null && message.hasOwnProperty("thresholdPublicKey"))
|
|
46233
|
+
object.thresholdPublicKey = options.bytes === String ? $util.base64.encode(message.thresholdPublicKey, 0, message.thresholdPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.thresholdPublicKey) : message.thresholdPublicKey;
|
|
46234
|
+
return object;
|
|
46235
|
+
};
|
|
46236
|
+
|
|
46237
|
+
/**
|
|
46238
|
+
* Converts this ValidatorSetV0 to JSON.
|
|
46239
|
+
* @function toJSON
|
|
46240
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0
|
|
46241
|
+
* @instance
|
|
46242
|
+
* @returns {Object.<string,*>} JSON object
|
|
46243
|
+
*/
|
|
46244
|
+
ValidatorSetV0.prototype.toJSON = function toJSON() {
|
|
46245
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
46246
|
+
};
|
|
46247
|
+
|
|
46248
|
+
return ValidatorSetV0;
|
|
46249
|
+
})();
|
|
46250
|
+
|
|
46251
|
+
GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0 = (function() {
|
|
46252
|
+
|
|
46253
|
+
/**
|
|
46254
|
+
* Properties of a GetCurrentQuorumsInfoResponseV0.
|
|
46255
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
46256
|
+
* @interface IGetCurrentQuorumsInfoResponseV0
|
|
46257
|
+
* @property {Array.<Uint8Array>|null} [quorumHashes] GetCurrentQuorumsInfoResponseV0 quorumHashes
|
|
46258
|
+
* @property {Uint8Array|null} [currentQuorumHash] GetCurrentQuorumsInfoResponseV0 currentQuorumHash
|
|
46259
|
+
* @property {Array.<org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IValidatorSetV0>|null} [validatorSets] GetCurrentQuorumsInfoResponseV0 validatorSets
|
|
46260
|
+
* @property {Uint8Array|null} [lastBlockProposer] GetCurrentQuorumsInfoResponseV0 lastBlockProposer
|
|
46261
|
+
* @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetCurrentQuorumsInfoResponseV0 metadata
|
|
46262
|
+
*/
|
|
46263
|
+
|
|
46264
|
+
/**
|
|
46265
|
+
* Constructs a new GetCurrentQuorumsInfoResponseV0.
|
|
46266
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse
|
|
46267
|
+
* @classdesc Represents a GetCurrentQuorumsInfoResponseV0.
|
|
46268
|
+
* @implements IGetCurrentQuorumsInfoResponseV0
|
|
46269
|
+
* @constructor
|
|
46270
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IGetCurrentQuorumsInfoResponseV0=} [properties] Properties to set
|
|
46271
|
+
*/
|
|
46272
|
+
function GetCurrentQuorumsInfoResponseV0(properties) {
|
|
46273
|
+
this.quorumHashes = [];
|
|
46274
|
+
this.validatorSets = [];
|
|
46275
|
+
if (properties)
|
|
46276
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
46277
|
+
if (properties[keys[i]] != null)
|
|
46278
|
+
this[keys[i]] = properties[keys[i]];
|
|
46279
|
+
}
|
|
46280
|
+
|
|
46281
|
+
/**
|
|
46282
|
+
* GetCurrentQuorumsInfoResponseV0 quorumHashes.
|
|
46283
|
+
* @member {Array.<Uint8Array>} quorumHashes
|
|
46284
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0
|
|
46285
|
+
* @instance
|
|
46286
|
+
*/
|
|
46287
|
+
GetCurrentQuorumsInfoResponseV0.prototype.quorumHashes = $util.emptyArray;
|
|
46288
|
+
|
|
46289
|
+
/**
|
|
46290
|
+
* GetCurrentQuorumsInfoResponseV0 currentQuorumHash.
|
|
46291
|
+
* @member {Uint8Array} currentQuorumHash
|
|
46292
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0
|
|
46293
|
+
* @instance
|
|
46294
|
+
*/
|
|
46295
|
+
GetCurrentQuorumsInfoResponseV0.prototype.currentQuorumHash = $util.newBuffer([]);
|
|
46296
|
+
|
|
46297
|
+
/**
|
|
46298
|
+
* GetCurrentQuorumsInfoResponseV0 validatorSets.
|
|
46299
|
+
* @member {Array.<org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IValidatorSetV0>} validatorSets
|
|
46300
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0
|
|
46301
|
+
* @instance
|
|
46302
|
+
*/
|
|
46303
|
+
GetCurrentQuorumsInfoResponseV0.prototype.validatorSets = $util.emptyArray;
|
|
46304
|
+
|
|
46305
|
+
/**
|
|
46306
|
+
* GetCurrentQuorumsInfoResponseV0 lastBlockProposer.
|
|
46307
|
+
* @member {Uint8Array} lastBlockProposer
|
|
46308
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0
|
|
46309
|
+
* @instance
|
|
46310
|
+
*/
|
|
46311
|
+
GetCurrentQuorumsInfoResponseV0.prototype.lastBlockProposer = $util.newBuffer([]);
|
|
46312
|
+
|
|
46313
|
+
/**
|
|
46314
|
+
* GetCurrentQuorumsInfoResponseV0 metadata.
|
|
46315
|
+
* @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
|
|
46316
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0
|
|
46317
|
+
* @instance
|
|
46318
|
+
*/
|
|
46319
|
+
GetCurrentQuorumsInfoResponseV0.prototype.metadata = null;
|
|
46320
|
+
|
|
46321
|
+
/**
|
|
46322
|
+
* Creates a new GetCurrentQuorumsInfoResponseV0 instance using the specified properties.
|
|
46323
|
+
* @function create
|
|
46324
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0
|
|
46325
|
+
* @static
|
|
46326
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IGetCurrentQuorumsInfoResponseV0=} [properties] Properties to set
|
|
46327
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0} GetCurrentQuorumsInfoResponseV0 instance
|
|
46328
|
+
*/
|
|
46329
|
+
GetCurrentQuorumsInfoResponseV0.create = function create(properties) {
|
|
46330
|
+
return new GetCurrentQuorumsInfoResponseV0(properties);
|
|
46331
|
+
};
|
|
46332
|
+
|
|
46333
|
+
/**
|
|
46334
|
+
* Encodes the specified GetCurrentQuorumsInfoResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0.verify|verify} messages.
|
|
46335
|
+
* @function encode
|
|
46336
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0
|
|
46337
|
+
* @static
|
|
46338
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IGetCurrentQuorumsInfoResponseV0} message GetCurrentQuorumsInfoResponseV0 message or plain object to encode
|
|
46339
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
46340
|
+
* @returns {$protobuf.Writer} Writer
|
|
46341
|
+
*/
|
|
46342
|
+
GetCurrentQuorumsInfoResponseV0.encode = function encode(message, writer) {
|
|
46343
|
+
if (!writer)
|
|
46344
|
+
writer = $Writer.create();
|
|
46345
|
+
if (message.quorumHashes != null && message.quorumHashes.length)
|
|
46346
|
+
for (var i = 0; i < message.quorumHashes.length; ++i)
|
|
46347
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.quorumHashes[i]);
|
|
46348
|
+
if (message.currentQuorumHash != null && Object.hasOwnProperty.call(message, "currentQuorumHash"))
|
|
46349
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.currentQuorumHash);
|
|
46350
|
+
if (message.validatorSets != null && message.validatorSets.length)
|
|
46351
|
+
for (var i = 0; i < message.validatorSets.length; ++i)
|
|
46352
|
+
$root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0.encode(message.validatorSets[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
46353
|
+
if (message.lastBlockProposer != null && Object.hasOwnProperty.call(message, "lastBlockProposer"))
|
|
46354
|
+
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.lastBlockProposer);
|
|
46355
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
46356
|
+
$root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
46357
|
+
return writer;
|
|
46358
|
+
};
|
|
46359
|
+
|
|
46360
|
+
/**
|
|
46361
|
+
* Encodes the specified GetCurrentQuorumsInfoResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0.verify|verify} messages.
|
|
46362
|
+
* @function encodeDelimited
|
|
46363
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0
|
|
46364
|
+
* @static
|
|
46365
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.IGetCurrentQuorumsInfoResponseV0} message GetCurrentQuorumsInfoResponseV0 message or plain object to encode
|
|
46366
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
46367
|
+
* @returns {$protobuf.Writer} Writer
|
|
46368
|
+
*/
|
|
46369
|
+
GetCurrentQuorumsInfoResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
46370
|
+
return this.encode(message, writer).ldelim();
|
|
46371
|
+
};
|
|
46372
|
+
|
|
46373
|
+
/**
|
|
46374
|
+
* Decodes a GetCurrentQuorumsInfoResponseV0 message from the specified reader or buffer.
|
|
46375
|
+
* @function decode
|
|
46376
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0
|
|
46377
|
+
* @static
|
|
46378
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
46379
|
+
* @param {number} [length] Message length if known beforehand
|
|
46380
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0} GetCurrentQuorumsInfoResponseV0
|
|
46381
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
46382
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
46383
|
+
*/
|
|
46384
|
+
GetCurrentQuorumsInfoResponseV0.decode = function decode(reader, length) {
|
|
46385
|
+
if (!(reader instanceof $Reader))
|
|
46386
|
+
reader = $Reader.create(reader);
|
|
46387
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0();
|
|
46388
|
+
while (reader.pos < end) {
|
|
46389
|
+
var tag = reader.uint32();
|
|
46390
|
+
switch (tag >>> 3) {
|
|
46391
|
+
case 1:
|
|
46392
|
+
if (!(message.quorumHashes && message.quorumHashes.length))
|
|
46393
|
+
message.quorumHashes = [];
|
|
46394
|
+
message.quorumHashes.push(reader.bytes());
|
|
46395
|
+
break;
|
|
46396
|
+
case 2:
|
|
46397
|
+
message.currentQuorumHash = reader.bytes();
|
|
46398
|
+
break;
|
|
46399
|
+
case 3:
|
|
46400
|
+
if (!(message.validatorSets && message.validatorSets.length))
|
|
46401
|
+
message.validatorSets = [];
|
|
46402
|
+
message.validatorSets.push($root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0.decode(reader, reader.uint32()));
|
|
46403
|
+
break;
|
|
46404
|
+
case 4:
|
|
46405
|
+
message.lastBlockProposer = reader.bytes();
|
|
46406
|
+
break;
|
|
46407
|
+
case 5:
|
|
46408
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
|
|
46409
|
+
break;
|
|
46410
|
+
default:
|
|
46411
|
+
reader.skipType(tag & 7);
|
|
46412
|
+
break;
|
|
46413
|
+
}
|
|
46414
|
+
}
|
|
46415
|
+
return message;
|
|
46416
|
+
};
|
|
46417
|
+
|
|
46418
|
+
/**
|
|
46419
|
+
* Decodes a GetCurrentQuorumsInfoResponseV0 message from the specified reader or buffer, length delimited.
|
|
46420
|
+
* @function decodeDelimited
|
|
46421
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0
|
|
46422
|
+
* @static
|
|
46423
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
46424
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0} GetCurrentQuorumsInfoResponseV0
|
|
46425
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
46426
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
46427
|
+
*/
|
|
46428
|
+
GetCurrentQuorumsInfoResponseV0.decodeDelimited = function decodeDelimited(reader) {
|
|
46429
|
+
if (!(reader instanceof $Reader))
|
|
46430
|
+
reader = new $Reader(reader);
|
|
46431
|
+
return this.decode(reader, reader.uint32());
|
|
46432
|
+
};
|
|
46433
|
+
|
|
46434
|
+
/**
|
|
46435
|
+
* Verifies a GetCurrentQuorumsInfoResponseV0 message.
|
|
46436
|
+
* @function verify
|
|
46437
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0
|
|
46438
|
+
* @static
|
|
46439
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
46440
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
46441
|
+
*/
|
|
46442
|
+
GetCurrentQuorumsInfoResponseV0.verify = function verify(message) {
|
|
46443
|
+
if (typeof message !== "object" || message === null)
|
|
46444
|
+
return "object expected";
|
|
46445
|
+
if (message.quorumHashes != null && message.hasOwnProperty("quorumHashes")) {
|
|
46446
|
+
if (!Array.isArray(message.quorumHashes))
|
|
46447
|
+
return "quorumHashes: array expected";
|
|
46448
|
+
for (var i = 0; i < message.quorumHashes.length; ++i)
|
|
46449
|
+
if (!(message.quorumHashes[i] && typeof message.quorumHashes[i].length === "number" || $util.isString(message.quorumHashes[i])))
|
|
46450
|
+
return "quorumHashes: buffer[] expected";
|
|
46451
|
+
}
|
|
46452
|
+
if (message.currentQuorumHash != null && message.hasOwnProperty("currentQuorumHash"))
|
|
46453
|
+
if (!(message.currentQuorumHash && typeof message.currentQuorumHash.length === "number" || $util.isString(message.currentQuorumHash)))
|
|
46454
|
+
return "currentQuorumHash: buffer expected";
|
|
46455
|
+
if (message.validatorSets != null && message.hasOwnProperty("validatorSets")) {
|
|
46456
|
+
if (!Array.isArray(message.validatorSets))
|
|
46457
|
+
return "validatorSets: array expected";
|
|
46458
|
+
for (var i = 0; i < message.validatorSets.length; ++i) {
|
|
46459
|
+
var error = $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0.verify(message.validatorSets[i]);
|
|
46460
|
+
if (error)
|
|
46461
|
+
return "validatorSets." + error;
|
|
46462
|
+
}
|
|
46463
|
+
}
|
|
46464
|
+
if (message.lastBlockProposer != null && message.hasOwnProperty("lastBlockProposer"))
|
|
46465
|
+
if (!(message.lastBlockProposer && typeof message.lastBlockProposer.length === "number" || $util.isString(message.lastBlockProposer)))
|
|
46466
|
+
return "lastBlockProposer: buffer expected";
|
|
46467
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
46468
|
+
var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
|
|
46469
|
+
if (error)
|
|
46470
|
+
return "metadata." + error;
|
|
46471
|
+
}
|
|
46472
|
+
return null;
|
|
46473
|
+
};
|
|
46474
|
+
|
|
46475
|
+
/**
|
|
46476
|
+
* Creates a GetCurrentQuorumsInfoResponseV0 message from a plain object. Also converts values to their respective internal types.
|
|
46477
|
+
* @function fromObject
|
|
46478
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0
|
|
46479
|
+
* @static
|
|
46480
|
+
* @param {Object.<string,*>} object Plain object
|
|
46481
|
+
* @returns {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0} GetCurrentQuorumsInfoResponseV0
|
|
46482
|
+
*/
|
|
46483
|
+
GetCurrentQuorumsInfoResponseV0.fromObject = function fromObject(object) {
|
|
46484
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0)
|
|
46485
|
+
return object;
|
|
46486
|
+
var message = new $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0();
|
|
46487
|
+
if (object.quorumHashes) {
|
|
46488
|
+
if (!Array.isArray(object.quorumHashes))
|
|
46489
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0.quorumHashes: array expected");
|
|
46490
|
+
message.quorumHashes = [];
|
|
46491
|
+
for (var i = 0; i < object.quorumHashes.length; ++i)
|
|
46492
|
+
if (typeof object.quorumHashes[i] === "string")
|
|
46493
|
+
$util.base64.decode(object.quorumHashes[i], message.quorumHashes[i] = $util.newBuffer($util.base64.length(object.quorumHashes[i])), 0);
|
|
46494
|
+
else if (object.quorumHashes[i].length >= 0)
|
|
46495
|
+
message.quorumHashes[i] = object.quorumHashes[i];
|
|
46496
|
+
}
|
|
46497
|
+
if (object.currentQuorumHash != null)
|
|
46498
|
+
if (typeof object.currentQuorumHash === "string")
|
|
46499
|
+
$util.base64.decode(object.currentQuorumHash, message.currentQuorumHash = $util.newBuffer($util.base64.length(object.currentQuorumHash)), 0);
|
|
46500
|
+
else if (object.currentQuorumHash.length >= 0)
|
|
46501
|
+
message.currentQuorumHash = object.currentQuorumHash;
|
|
46502
|
+
if (object.validatorSets) {
|
|
46503
|
+
if (!Array.isArray(object.validatorSets))
|
|
46504
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0.validatorSets: array expected");
|
|
46505
|
+
message.validatorSets = [];
|
|
46506
|
+
for (var i = 0; i < object.validatorSets.length; ++i) {
|
|
46507
|
+
if (typeof object.validatorSets[i] !== "object")
|
|
46508
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0.validatorSets: object expected");
|
|
46509
|
+
message.validatorSets[i] = $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0.fromObject(object.validatorSets[i]);
|
|
46510
|
+
}
|
|
46511
|
+
}
|
|
46512
|
+
if (object.lastBlockProposer != null)
|
|
46513
|
+
if (typeof object.lastBlockProposer === "string")
|
|
46514
|
+
$util.base64.decode(object.lastBlockProposer, message.lastBlockProposer = $util.newBuffer($util.base64.length(object.lastBlockProposer)), 0);
|
|
46515
|
+
else if (object.lastBlockProposer.length >= 0)
|
|
46516
|
+
message.lastBlockProposer = object.lastBlockProposer;
|
|
46517
|
+
if (object.metadata != null) {
|
|
46518
|
+
if (typeof object.metadata !== "object")
|
|
46519
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0.metadata: object expected");
|
|
46520
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
|
|
46521
|
+
}
|
|
46522
|
+
return message;
|
|
46523
|
+
};
|
|
46524
|
+
|
|
46525
|
+
/**
|
|
46526
|
+
* Creates a plain object from a GetCurrentQuorumsInfoResponseV0 message. Also converts values to other types if specified.
|
|
46527
|
+
* @function toObject
|
|
46528
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0
|
|
46529
|
+
* @static
|
|
46530
|
+
* @param {org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0} message GetCurrentQuorumsInfoResponseV0
|
|
46531
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
46532
|
+
* @returns {Object.<string,*>} Plain object
|
|
46533
|
+
*/
|
|
46534
|
+
GetCurrentQuorumsInfoResponseV0.toObject = function toObject(message, options) {
|
|
46535
|
+
if (!options)
|
|
46536
|
+
options = {};
|
|
46537
|
+
var object = {};
|
|
46538
|
+
if (options.arrays || options.defaults) {
|
|
46539
|
+
object.quorumHashes = [];
|
|
46540
|
+
object.validatorSets = [];
|
|
46541
|
+
}
|
|
46542
|
+
if (options.defaults) {
|
|
46543
|
+
if (options.bytes === String)
|
|
46544
|
+
object.currentQuorumHash = "";
|
|
46545
|
+
else {
|
|
46546
|
+
object.currentQuorumHash = [];
|
|
46547
|
+
if (options.bytes !== Array)
|
|
46548
|
+
object.currentQuorumHash = $util.newBuffer(object.currentQuorumHash);
|
|
46549
|
+
}
|
|
46550
|
+
if (options.bytes === String)
|
|
46551
|
+
object.lastBlockProposer = "";
|
|
46552
|
+
else {
|
|
46553
|
+
object.lastBlockProposer = [];
|
|
46554
|
+
if (options.bytes !== Array)
|
|
46555
|
+
object.lastBlockProposer = $util.newBuffer(object.lastBlockProposer);
|
|
46556
|
+
}
|
|
46557
|
+
object.metadata = null;
|
|
46558
|
+
}
|
|
46559
|
+
if (message.quorumHashes && message.quorumHashes.length) {
|
|
46560
|
+
object.quorumHashes = [];
|
|
46561
|
+
for (var j = 0; j < message.quorumHashes.length; ++j)
|
|
46562
|
+
object.quorumHashes[j] = options.bytes === String ? $util.base64.encode(message.quorumHashes[j], 0, message.quorumHashes[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.quorumHashes[j]) : message.quorumHashes[j];
|
|
46563
|
+
}
|
|
46564
|
+
if (message.currentQuorumHash != null && message.hasOwnProperty("currentQuorumHash"))
|
|
46565
|
+
object.currentQuorumHash = options.bytes === String ? $util.base64.encode(message.currentQuorumHash, 0, message.currentQuorumHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.currentQuorumHash) : message.currentQuorumHash;
|
|
46566
|
+
if (message.validatorSets && message.validatorSets.length) {
|
|
46567
|
+
object.validatorSets = [];
|
|
46568
|
+
for (var j = 0; j < message.validatorSets.length; ++j)
|
|
46569
|
+
object.validatorSets[j] = $root.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0.toObject(message.validatorSets[j], options);
|
|
46570
|
+
}
|
|
46571
|
+
if (message.lastBlockProposer != null && message.hasOwnProperty("lastBlockProposer"))
|
|
46572
|
+
object.lastBlockProposer = options.bytes === String ? $util.base64.encode(message.lastBlockProposer, 0, message.lastBlockProposer.length) : options.bytes === Array ? Array.prototype.slice.call(message.lastBlockProposer) : message.lastBlockProposer;
|
|
46573
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
46574
|
+
object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
|
|
46575
|
+
return object;
|
|
46576
|
+
};
|
|
46577
|
+
|
|
46578
|
+
/**
|
|
46579
|
+
* Converts this GetCurrentQuorumsInfoResponseV0 to JSON.
|
|
46580
|
+
* @function toJSON
|
|
46581
|
+
* @memberof org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0
|
|
46582
|
+
* @instance
|
|
46583
|
+
* @returns {Object.<string,*>} JSON object
|
|
46584
|
+
*/
|
|
46585
|
+
GetCurrentQuorumsInfoResponseV0.prototype.toJSON = function toJSON() {
|
|
46586
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
46587
|
+
};
|
|
46588
|
+
|
|
46589
|
+
return GetCurrentQuorumsInfoResponseV0;
|
|
46590
|
+
})();
|
|
46591
|
+
|
|
46592
|
+
return GetCurrentQuorumsInfoResponse;
|
|
46593
|
+
})();
|
|
46594
|
+
|
|
45296
46595
|
return v0;
|
|
45297
46596
|
})();
|
|
45298
46597
|
|