@dashevo/dapi-grpc 1.2.0 → 1.3.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/build.rs +8 -2
- package/clients/platform/v0/nodejs/platform_pbjs.js +3562 -0
- package/clients/platform/v0/nodejs/platform_protoc.js +7630 -4133
- package/clients/platform/v0/web/platform_pb.d.ts +459 -0
- package/clients/platform/v0/web/platform_pb.js +7630 -4133
- package/clients/platform/v0/web/platform_pb_service.d.ts +57 -0
- package/clients/platform/v0/web/platform_pb_service.js +120 -0
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +88 -0
|
@@ -317,6 +317,39 @@ $root.org = (function() {
|
|
|
317
317
|
* @variation 2
|
|
318
318
|
*/
|
|
319
319
|
|
|
320
|
+
/**
|
|
321
|
+
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getIdentitiesBalances}.
|
|
322
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
323
|
+
* @typedef getIdentitiesBalancesCallback
|
|
324
|
+
* @type {function}
|
|
325
|
+
* @param {Error|null} error Error, if any
|
|
326
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse} [response] GetIdentitiesBalancesResponse
|
|
327
|
+
*/
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Calls getIdentitiesBalances.
|
|
331
|
+
* @function getIdentitiesBalances
|
|
332
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
333
|
+
* @instance
|
|
334
|
+
* @param {org.dash.platform.dapi.v0.IGetIdentitiesBalancesRequest} request GetIdentitiesBalancesRequest message or plain object
|
|
335
|
+
* @param {org.dash.platform.dapi.v0.Platform.getIdentitiesBalancesCallback} callback Node-style callback called with the error, if any, and GetIdentitiesBalancesResponse
|
|
336
|
+
* @returns {undefined}
|
|
337
|
+
* @variation 1
|
|
338
|
+
*/
|
|
339
|
+
Object.defineProperty(Platform.prototype.getIdentitiesBalances = function getIdentitiesBalances(request, callback) {
|
|
340
|
+
return this.rpcCall(getIdentitiesBalances, $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest, $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse, request, callback);
|
|
341
|
+
}, "name", { value: "getIdentitiesBalances" });
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Calls getIdentitiesBalances.
|
|
345
|
+
* @function getIdentitiesBalances
|
|
346
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
347
|
+
* @instance
|
|
348
|
+
* @param {org.dash.platform.dapi.v0.IGetIdentitiesBalancesRequest} request GetIdentitiesBalancesRequest message or plain object
|
|
349
|
+
* @returns {Promise<org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse>} Promise
|
|
350
|
+
* @variation 2
|
|
351
|
+
*/
|
|
352
|
+
|
|
320
353
|
/**
|
|
321
354
|
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getIdentityBalanceAndRevision}.
|
|
322
355
|
* @memberof org.dash.platform.dapi.v0.Platform
|
|
@@ -350,6 +383,72 @@ $root.org = (function() {
|
|
|
350
383
|
* @variation 2
|
|
351
384
|
*/
|
|
352
385
|
|
|
386
|
+
/**
|
|
387
|
+
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getEvonodesProposedEpochBlocksByIds}.
|
|
388
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
389
|
+
* @typedef getEvonodesProposedEpochBlocksByIdsCallback
|
|
390
|
+
* @type {function}
|
|
391
|
+
* @param {Error|null} error Error, if any
|
|
392
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse} [response] GetEvonodesProposedEpochBlocksResponse
|
|
393
|
+
*/
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Calls getEvonodesProposedEpochBlocksByIds.
|
|
397
|
+
* @function getEvonodesProposedEpochBlocksByIds
|
|
398
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
399
|
+
* @instance
|
|
400
|
+
* @param {org.dash.platform.dapi.v0.IGetEvonodesProposedEpochBlocksByIdsRequest} request GetEvonodesProposedEpochBlocksByIdsRequest message or plain object
|
|
401
|
+
* @param {org.dash.platform.dapi.v0.Platform.getEvonodesProposedEpochBlocksByIdsCallback} callback Node-style callback called with the error, if any, and GetEvonodesProposedEpochBlocksResponse
|
|
402
|
+
* @returns {undefined}
|
|
403
|
+
* @variation 1
|
|
404
|
+
*/
|
|
405
|
+
Object.defineProperty(Platform.prototype.getEvonodesProposedEpochBlocksByIds = function getEvonodesProposedEpochBlocksByIds(request, callback) {
|
|
406
|
+
return this.rpcCall(getEvonodesProposedEpochBlocksByIds, $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest, $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse, request, callback);
|
|
407
|
+
}, "name", { value: "getEvonodesProposedEpochBlocksByIds" });
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Calls getEvonodesProposedEpochBlocksByIds.
|
|
411
|
+
* @function getEvonodesProposedEpochBlocksByIds
|
|
412
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
413
|
+
* @instance
|
|
414
|
+
* @param {org.dash.platform.dapi.v0.IGetEvonodesProposedEpochBlocksByIdsRequest} request GetEvonodesProposedEpochBlocksByIdsRequest message or plain object
|
|
415
|
+
* @returns {Promise<org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse>} Promise
|
|
416
|
+
* @variation 2
|
|
417
|
+
*/
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getEvonodesProposedEpochBlocksByRange}.
|
|
421
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
422
|
+
* @typedef getEvonodesProposedEpochBlocksByRangeCallback
|
|
423
|
+
* @type {function}
|
|
424
|
+
* @param {Error|null} error Error, if any
|
|
425
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse} [response] GetEvonodesProposedEpochBlocksResponse
|
|
426
|
+
*/
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Calls getEvonodesProposedEpochBlocksByRange.
|
|
430
|
+
* @function getEvonodesProposedEpochBlocksByRange
|
|
431
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
432
|
+
* @instance
|
|
433
|
+
* @param {org.dash.platform.dapi.v0.IGetEvonodesProposedEpochBlocksByRangeRequest} request GetEvonodesProposedEpochBlocksByRangeRequest message or plain object
|
|
434
|
+
* @param {org.dash.platform.dapi.v0.Platform.getEvonodesProposedEpochBlocksByRangeCallback} callback Node-style callback called with the error, if any, and GetEvonodesProposedEpochBlocksResponse
|
|
435
|
+
* @returns {undefined}
|
|
436
|
+
* @variation 1
|
|
437
|
+
*/
|
|
438
|
+
Object.defineProperty(Platform.prototype.getEvonodesProposedEpochBlocksByRange = function getEvonodesProposedEpochBlocksByRange(request, callback) {
|
|
439
|
+
return this.rpcCall(getEvonodesProposedEpochBlocksByRange, $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest, $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse, request, callback);
|
|
440
|
+
}, "name", { value: "getEvonodesProposedEpochBlocksByRange" });
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Calls getEvonodesProposedEpochBlocksByRange.
|
|
444
|
+
* @function getEvonodesProposedEpochBlocksByRange
|
|
445
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
446
|
+
* @instance
|
|
447
|
+
* @param {org.dash.platform.dapi.v0.IGetEvonodesProposedEpochBlocksByRangeRequest} request GetEvonodesProposedEpochBlocksByRangeRequest message or plain object
|
|
448
|
+
* @returns {Promise<org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse>} Promise
|
|
449
|
+
* @variation 2
|
|
450
|
+
*/
|
|
451
|
+
|
|
353
452
|
/**
|
|
354
453
|
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getProofs}.
|
|
355
454
|
* @memberof org.dash.platform.dapi.v0.Platform
|
|
@@ -11235,6 +11334,3469 @@ $root.org = (function() {
|
|
|
11235
11334
|
return GetIdentitiesContractKeysResponse;
|
|
11236
11335
|
})();
|
|
11237
11336
|
|
|
11337
|
+
v0.GetEvonodesProposedEpochBlocksByIdsRequest = (function() {
|
|
11338
|
+
|
|
11339
|
+
/**
|
|
11340
|
+
* Properties of a GetEvonodesProposedEpochBlocksByIdsRequest.
|
|
11341
|
+
* @memberof org.dash.platform.dapi.v0
|
|
11342
|
+
* @interface IGetEvonodesProposedEpochBlocksByIdsRequest
|
|
11343
|
+
* @property {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.IGetEvonodesProposedEpochBlocksByIdsRequestV0|null} [v0] GetEvonodesProposedEpochBlocksByIdsRequest v0
|
|
11344
|
+
*/
|
|
11345
|
+
|
|
11346
|
+
/**
|
|
11347
|
+
* Constructs a new GetEvonodesProposedEpochBlocksByIdsRequest.
|
|
11348
|
+
* @memberof org.dash.platform.dapi.v0
|
|
11349
|
+
* @classdesc Represents a GetEvonodesProposedEpochBlocksByIdsRequest.
|
|
11350
|
+
* @implements IGetEvonodesProposedEpochBlocksByIdsRequest
|
|
11351
|
+
* @constructor
|
|
11352
|
+
* @param {org.dash.platform.dapi.v0.IGetEvonodesProposedEpochBlocksByIdsRequest=} [properties] Properties to set
|
|
11353
|
+
*/
|
|
11354
|
+
function GetEvonodesProposedEpochBlocksByIdsRequest(properties) {
|
|
11355
|
+
if (properties)
|
|
11356
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11357
|
+
if (properties[keys[i]] != null)
|
|
11358
|
+
this[keys[i]] = properties[keys[i]];
|
|
11359
|
+
}
|
|
11360
|
+
|
|
11361
|
+
/**
|
|
11362
|
+
* GetEvonodesProposedEpochBlocksByIdsRequest v0.
|
|
11363
|
+
* @member {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.IGetEvonodesProposedEpochBlocksByIdsRequestV0|null|undefined} v0
|
|
11364
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11365
|
+
* @instance
|
|
11366
|
+
*/
|
|
11367
|
+
GetEvonodesProposedEpochBlocksByIdsRequest.prototype.v0 = null;
|
|
11368
|
+
|
|
11369
|
+
// OneOf field names bound to virtual getters and setters
|
|
11370
|
+
var $oneOfFields;
|
|
11371
|
+
|
|
11372
|
+
/**
|
|
11373
|
+
* GetEvonodesProposedEpochBlocksByIdsRequest version.
|
|
11374
|
+
* @member {"v0"|undefined} version
|
|
11375
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11376
|
+
* @instance
|
|
11377
|
+
*/
|
|
11378
|
+
Object.defineProperty(GetEvonodesProposedEpochBlocksByIdsRequest.prototype, "version", {
|
|
11379
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
11380
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
11381
|
+
});
|
|
11382
|
+
|
|
11383
|
+
/**
|
|
11384
|
+
* Creates a new GetEvonodesProposedEpochBlocksByIdsRequest instance using the specified properties.
|
|
11385
|
+
* @function create
|
|
11386
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11387
|
+
* @static
|
|
11388
|
+
* @param {org.dash.platform.dapi.v0.IGetEvonodesProposedEpochBlocksByIdsRequest=} [properties] Properties to set
|
|
11389
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest} GetEvonodesProposedEpochBlocksByIdsRequest instance
|
|
11390
|
+
*/
|
|
11391
|
+
GetEvonodesProposedEpochBlocksByIdsRequest.create = function create(properties) {
|
|
11392
|
+
return new GetEvonodesProposedEpochBlocksByIdsRequest(properties);
|
|
11393
|
+
};
|
|
11394
|
+
|
|
11395
|
+
/**
|
|
11396
|
+
* Encodes the specified GetEvonodesProposedEpochBlocksByIdsRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.verify|verify} messages.
|
|
11397
|
+
* @function encode
|
|
11398
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11399
|
+
* @static
|
|
11400
|
+
* @param {org.dash.platform.dapi.v0.IGetEvonodesProposedEpochBlocksByIdsRequest} message GetEvonodesProposedEpochBlocksByIdsRequest message or plain object to encode
|
|
11401
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11402
|
+
* @returns {$protobuf.Writer} Writer
|
|
11403
|
+
*/
|
|
11404
|
+
GetEvonodesProposedEpochBlocksByIdsRequest.encode = function encode(message, writer) {
|
|
11405
|
+
if (!writer)
|
|
11406
|
+
writer = $Writer.create();
|
|
11407
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
11408
|
+
$root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
11409
|
+
return writer;
|
|
11410
|
+
};
|
|
11411
|
+
|
|
11412
|
+
/**
|
|
11413
|
+
* Encodes the specified GetEvonodesProposedEpochBlocksByIdsRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.verify|verify} messages.
|
|
11414
|
+
* @function encodeDelimited
|
|
11415
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11416
|
+
* @static
|
|
11417
|
+
* @param {org.dash.platform.dapi.v0.IGetEvonodesProposedEpochBlocksByIdsRequest} message GetEvonodesProposedEpochBlocksByIdsRequest message or plain object to encode
|
|
11418
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11419
|
+
* @returns {$protobuf.Writer} Writer
|
|
11420
|
+
*/
|
|
11421
|
+
GetEvonodesProposedEpochBlocksByIdsRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11422
|
+
return this.encode(message, writer).ldelim();
|
|
11423
|
+
};
|
|
11424
|
+
|
|
11425
|
+
/**
|
|
11426
|
+
* Decodes a GetEvonodesProposedEpochBlocksByIdsRequest message from the specified reader or buffer.
|
|
11427
|
+
* @function decode
|
|
11428
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11429
|
+
* @static
|
|
11430
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11431
|
+
* @param {number} [length] Message length if known beforehand
|
|
11432
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest} GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11433
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11434
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11435
|
+
*/
|
|
11436
|
+
GetEvonodesProposedEpochBlocksByIdsRequest.decode = function decode(reader, length) {
|
|
11437
|
+
if (!(reader instanceof $Reader))
|
|
11438
|
+
reader = $Reader.create(reader);
|
|
11439
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest();
|
|
11440
|
+
while (reader.pos < end) {
|
|
11441
|
+
var tag = reader.uint32();
|
|
11442
|
+
switch (tag >>> 3) {
|
|
11443
|
+
case 1:
|
|
11444
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0.decode(reader, reader.uint32());
|
|
11445
|
+
break;
|
|
11446
|
+
default:
|
|
11447
|
+
reader.skipType(tag & 7);
|
|
11448
|
+
break;
|
|
11449
|
+
}
|
|
11450
|
+
}
|
|
11451
|
+
return message;
|
|
11452
|
+
};
|
|
11453
|
+
|
|
11454
|
+
/**
|
|
11455
|
+
* Decodes a GetEvonodesProposedEpochBlocksByIdsRequest message from the specified reader or buffer, length delimited.
|
|
11456
|
+
* @function decodeDelimited
|
|
11457
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11458
|
+
* @static
|
|
11459
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11460
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest} GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11461
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11462
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11463
|
+
*/
|
|
11464
|
+
GetEvonodesProposedEpochBlocksByIdsRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
11465
|
+
if (!(reader instanceof $Reader))
|
|
11466
|
+
reader = new $Reader(reader);
|
|
11467
|
+
return this.decode(reader, reader.uint32());
|
|
11468
|
+
};
|
|
11469
|
+
|
|
11470
|
+
/**
|
|
11471
|
+
* Verifies a GetEvonodesProposedEpochBlocksByIdsRequest message.
|
|
11472
|
+
* @function verify
|
|
11473
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11474
|
+
* @static
|
|
11475
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11476
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11477
|
+
*/
|
|
11478
|
+
GetEvonodesProposedEpochBlocksByIdsRequest.verify = function verify(message) {
|
|
11479
|
+
if (typeof message !== "object" || message === null)
|
|
11480
|
+
return "object expected";
|
|
11481
|
+
var properties = {};
|
|
11482
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
11483
|
+
properties.version = 1;
|
|
11484
|
+
{
|
|
11485
|
+
var error = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0.verify(message.v0);
|
|
11486
|
+
if (error)
|
|
11487
|
+
return "v0." + error;
|
|
11488
|
+
}
|
|
11489
|
+
}
|
|
11490
|
+
return null;
|
|
11491
|
+
};
|
|
11492
|
+
|
|
11493
|
+
/**
|
|
11494
|
+
* Creates a GetEvonodesProposedEpochBlocksByIdsRequest message from a plain object. Also converts values to their respective internal types.
|
|
11495
|
+
* @function fromObject
|
|
11496
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11497
|
+
* @static
|
|
11498
|
+
* @param {Object.<string,*>} object Plain object
|
|
11499
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest} GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11500
|
+
*/
|
|
11501
|
+
GetEvonodesProposedEpochBlocksByIdsRequest.fromObject = function fromObject(object) {
|
|
11502
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest)
|
|
11503
|
+
return object;
|
|
11504
|
+
var message = new $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest();
|
|
11505
|
+
if (object.v0 != null) {
|
|
11506
|
+
if (typeof object.v0 !== "object")
|
|
11507
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.v0: object expected");
|
|
11508
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0.fromObject(object.v0);
|
|
11509
|
+
}
|
|
11510
|
+
return message;
|
|
11511
|
+
};
|
|
11512
|
+
|
|
11513
|
+
/**
|
|
11514
|
+
* Creates a plain object from a GetEvonodesProposedEpochBlocksByIdsRequest message. Also converts values to other types if specified.
|
|
11515
|
+
* @function toObject
|
|
11516
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11517
|
+
* @static
|
|
11518
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest} message GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11519
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11520
|
+
* @returns {Object.<string,*>} Plain object
|
|
11521
|
+
*/
|
|
11522
|
+
GetEvonodesProposedEpochBlocksByIdsRequest.toObject = function toObject(message, options) {
|
|
11523
|
+
if (!options)
|
|
11524
|
+
options = {};
|
|
11525
|
+
var object = {};
|
|
11526
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
11527
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0.toObject(message.v0, options);
|
|
11528
|
+
if (options.oneofs)
|
|
11529
|
+
object.version = "v0";
|
|
11530
|
+
}
|
|
11531
|
+
return object;
|
|
11532
|
+
};
|
|
11533
|
+
|
|
11534
|
+
/**
|
|
11535
|
+
* Converts this GetEvonodesProposedEpochBlocksByIdsRequest to JSON.
|
|
11536
|
+
* @function toJSON
|
|
11537
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11538
|
+
* @instance
|
|
11539
|
+
* @returns {Object.<string,*>} JSON object
|
|
11540
|
+
*/
|
|
11541
|
+
GetEvonodesProposedEpochBlocksByIdsRequest.prototype.toJSON = function toJSON() {
|
|
11542
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11543
|
+
};
|
|
11544
|
+
|
|
11545
|
+
GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0 = (function() {
|
|
11546
|
+
|
|
11547
|
+
/**
|
|
11548
|
+
* Properties of a GetEvonodesProposedEpochBlocksByIdsRequestV0.
|
|
11549
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11550
|
+
* @interface IGetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11551
|
+
* @property {number|null} [epoch] GetEvonodesProposedEpochBlocksByIdsRequestV0 epoch
|
|
11552
|
+
* @property {Array.<Uint8Array>|null} [ids] GetEvonodesProposedEpochBlocksByIdsRequestV0 ids
|
|
11553
|
+
* @property {boolean|null} [prove] GetEvonodesProposedEpochBlocksByIdsRequestV0 prove
|
|
11554
|
+
*/
|
|
11555
|
+
|
|
11556
|
+
/**
|
|
11557
|
+
* Constructs a new GetEvonodesProposedEpochBlocksByIdsRequestV0.
|
|
11558
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest
|
|
11559
|
+
* @classdesc Represents a GetEvonodesProposedEpochBlocksByIdsRequestV0.
|
|
11560
|
+
* @implements IGetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11561
|
+
* @constructor
|
|
11562
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.IGetEvonodesProposedEpochBlocksByIdsRequestV0=} [properties] Properties to set
|
|
11563
|
+
*/
|
|
11564
|
+
function GetEvonodesProposedEpochBlocksByIdsRequestV0(properties) {
|
|
11565
|
+
this.ids = [];
|
|
11566
|
+
if (properties)
|
|
11567
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11568
|
+
if (properties[keys[i]] != null)
|
|
11569
|
+
this[keys[i]] = properties[keys[i]];
|
|
11570
|
+
}
|
|
11571
|
+
|
|
11572
|
+
/**
|
|
11573
|
+
* GetEvonodesProposedEpochBlocksByIdsRequestV0 epoch.
|
|
11574
|
+
* @member {number} epoch
|
|
11575
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11576
|
+
* @instance
|
|
11577
|
+
*/
|
|
11578
|
+
GetEvonodesProposedEpochBlocksByIdsRequestV0.prototype.epoch = 0;
|
|
11579
|
+
|
|
11580
|
+
/**
|
|
11581
|
+
* GetEvonodesProposedEpochBlocksByIdsRequestV0 ids.
|
|
11582
|
+
* @member {Array.<Uint8Array>} ids
|
|
11583
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11584
|
+
* @instance
|
|
11585
|
+
*/
|
|
11586
|
+
GetEvonodesProposedEpochBlocksByIdsRequestV0.prototype.ids = $util.emptyArray;
|
|
11587
|
+
|
|
11588
|
+
/**
|
|
11589
|
+
* GetEvonodesProposedEpochBlocksByIdsRequestV0 prove.
|
|
11590
|
+
* @member {boolean} prove
|
|
11591
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11592
|
+
* @instance
|
|
11593
|
+
*/
|
|
11594
|
+
GetEvonodesProposedEpochBlocksByIdsRequestV0.prototype.prove = false;
|
|
11595
|
+
|
|
11596
|
+
/**
|
|
11597
|
+
* Creates a new GetEvonodesProposedEpochBlocksByIdsRequestV0 instance using the specified properties.
|
|
11598
|
+
* @function create
|
|
11599
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11600
|
+
* @static
|
|
11601
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.IGetEvonodesProposedEpochBlocksByIdsRequestV0=} [properties] Properties to set
|
|
11602
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0} GetEvonodesProposedEpochBlocksByIdsRequestV0 instance
|
|
11603
|
+
*/
|
|
11604
|
+
GetEvonodesProposedEpochBlocksByIdsRequestV0.create = function create(properties) {
|
|
11605
|
+
return new GetEvonodesProposedEpochBlocksByIdsRequestV0(properties);
|
|
11606
|
+
};
|
|
11607
|
+
|
|
11608
|
+
/**
|
|
11609
|
+
* Encodes the specified GetEvonodesProposedEpochBlocksByIdsRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0.verify|verify} messages.
|
|
11610
|
+
* @function encode
|
|
11611
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11612
|
+
* @static
|
|
11613
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.IGetEvonodesProposedEpochBlocksByIdsRequestV0} message GetEvonodesProposedEpochBlocksByIdsRequestV0 message or plain object to encode
|
|
11614
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11615
|
+
* @returns {$protobuf.Writer} Writer
|
|
11616
|
+
*/
|
|
11617
|
+
GetEvonodesProposedEpochBlocksByIdsRequestV0.encode = function encode(message, writer) {
|
|
11618
|
+
if (!writer)
|
|
11619
|
+
writer = $Writer.create();
|
|
11620
|
+
if (message.epoch != null && Object.hasOwnProperty.call(message, "epoch"))
|
|
11621
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.epoch);
|
|
11622
|
+
if (message.ids != null && message.ids.length)
|
|
11623
|
+
for (var i = 0; i < message.ids.length; ++i)
|
|
11624
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.ids[i]);
|
|
11625
|
+
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
11626
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.prove);
|
|
11627
|
+
return writer;
|
|
11628
|
+
};
|
|
11629
|
+
|
|
11630
|
+
/**
|
|
11631
|
+
* Encodes the specified GetEvonodesProposedEpochBlocksByIdsRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0.verify|verify} messages.
|
|
11632
|
+
* @function encodeDelimited
|
|
11633
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11634
|
+
* @static
|
|
11635
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.IGetEvonodesProposedEpochBlocksByIdsRequestV0} message GetEvonodesProposedEpochBlocksByIdsRequestV0 message or plain object to encode
|
|
11636
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11637
|
+
* @returns {$protobuf.Writer} Writer
|
|
11638
|
+
*/
|
|
11639
|
+
GetEvonodesProposedEpochBlocksByIdsRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11640
|
+
return this.encode(message, writer).ldelim();
|
|
11641
|
+
};
|
|
11642
|
+
|
|
11643
|
+
/**
|
|
11644
|
+
* Decodes a GetEvonodesProposedEpochBlocksByIdsRequestV0 message from the specified reader or buffer.
|
|
11645
|
+
* @function decode
|
|
11646
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11647
|
+
* @static
|
|
11648
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11649
|
+
* @param {number} [length] Message length if known beforehand
|
|
11650
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0} GetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11651
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11652
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11653
|
+
*/
|
|
11654
|
+
GetEvonodesProposedEpochBlocksByIdsRequestV0.decode = function decode(reader, length) {
|
|
11655
|
+
if (!(reader instanceof $Reader))
|
|
11656
|
+
reader = $Reader.create(reader);
|
|
11657
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0();
|
|
11658
|
+
while (reader.pos < end) {
|
|
11659
|
+
var tag = reader.uint32();
|
|
11660
|
+
switch (tag >>> 3) {
|
|
11661
|
+
case 1:
|
|
11662
|
+
message.epoch = reader.uint32();
|
|
11663
|
+
break;
|
|
11664
|
+
case 2:
|
|
11665
|
+
if (!(message.ids && message.ids.length))
|
|
11666
|
+
message.ids = [];
|
|
11667
|
+
message.ids.push(reader.bytes());
|
|
11668
|
+
break;
|
|
11669
|
+
case 3:
|
|
11670
|
+
message.prove = reader.bool();
|
|
11671
|
+
break;
|
|
11672
|
+
default:
|
|
11673
|
+
reader.skipType(tag & 7);
|
|
11674
|
+
break;
|
|
11675
|
+
}
|
|
11676
|
+
}
|
|
11677
|
+
return message;
|
|
11678
|
+
};
|
|
11679
|
+
|
|
11680
|
+
/**
|
|
11681
|
+
* Decodes a GetEvonodesProposedEpochBlocksByIdsRequestV0 message from the specified reader or buffer, length delimited.
|
|
11682
|
+
* @function decodeDelimited
|
|
11683
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11684
|
+
* @static
|
|
11685
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11686
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0} GetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11687
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11688
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11689
|
+
*/
|
|
11690
|
+
GetEvonodesProposedEpochBlocksByIdsRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
11691
|
+
if (!(reader instanceof $Reader))
|
|
11692
|
+
reader = new $Reader(reader);
|
|
11693
|
+
return this.decode(reader, reader.uint32());
|
|
11694
|
+
};
|
|
11695
|
+
|
|
11696
|
+
/**
|
|
11697
|
+
* Verifies a GetEvonodesProposedEpochBlocksByIdsRequestV0 message.
|
|
11698
|
+
* @function verify
|
|
11699
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11700
|
+
* @static
|
|
11701
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11702
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11703
|
+
*/
|
|
11704
|
+
GetEvonodesProposedEpochBlocksByIdsRequestV0.verify = function verify(message) {
|
|
11705
|
+
if (typeof message !== "object" || message === null)
|
|
11706
|
+
return "object expected";
|
|
11707
|
+
if (message.epoch != null && message.hasOwnProperty("epoch"))
|
|
11708
|
+
if (!$util.isInteger(message.epoch))
|
|
11709
|
+
return "epoch: integer expected";
|
|
11710
|
+
if (message.ids != null && message.hasOwnProperty("ids")) {
|
|
11711
|
+
if (!Array.isArray(message.ids))
|
|
11712
|
+
return "ids: array expected";
|
|
11713
|
+
for (var i = 0; i < message.ids.length; ++i)
|
|
11714
|
+
if (!(message.ids[i] && typeof message.ids[i].length === "number" || $util.isString(message.ids[i])))
|
|
11715
|
+
return "ids: buffer[] expected";
|
|
11716
|
+
}
|
|
11717
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
11718
|
+
if (typeof message.prove !== "boolean")
|
|
11719
|
+
return "prove: boolean expected";
|
|
11720
|
+
return null;
|
|
11721
|
+
};
|
|
11722
|
+
|
|
11723
|
+
/**
|
|
11724
|
+
* Creates a GetEvonodesProposedEpochBlocksByIdsRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
11725
|
+
* @function fromObject
|
|
11726
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11727
|
+
* @static
|
|
11728
|
+
* @param {Object.<string,*>} object Plain object
|
|
11729
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0} GetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11730
|
+
*/
|
|
11731
|
+
GetEvonodesProposedEpochBlocksByIdsRequestV0.fromObject = function fromObject(object) {
|
|
11732
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0)
|
|
11733
|
+
return object;
|
|
11734
|
+
var message = new $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0();
|
|
11735
|
+
if (object.epoch != null)
|
|
11736
|
+
message.epoch = object.epoch >>> 0;
|
|
11737
|
+
if (object.ids) {
|
|
11738
|
+
if (!Array.isArray(object.ids))
|
|
11739
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0.ids: array expected");
|
|
11740
|
+
message.ids = [];
|
|
11741
|
+
for (var i = 0; i < object.ids.length; ++i)
|
|
11742
|
+
if (typeof object.ids[i] === "string")
|
|
11743
|
+
$util.base64.decode(object.ids[i], message.ids[i] = $util.newBuffer($util.base64.length(object.ids[i])), 0);
|
|
11744
|
+
else if (object.ids[i].length >= 0)
|
|
11745
|
+
message.ids[i] = object.ids[i];
|
|
11746
|
+
}
|
|
11747
|
+
if (object.prove != null)
|
|
11748
|
+
message.prove = Boolean(object.prove);
|
|
11749
|
+
return message;
|
|
11750
|
+
};
|
|
11751
|
+
|
|
11752
|
+
/**
|
|
11753
|
+
* Creates a plain object from a GetEvonodesProposedEpochBlocksByIdsRequestV0 message. Also converts values to other types if specified.
|
|
11754
|
+
* @function toObject
|
|
11755
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11756
|
+
* @static
|
|
11757
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0} message GetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11758
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11759
|
+
* @returns {Object.<string,*>} Plain object
|
|
11760
|
+
*/
|
|
11761
|
+
GetEvonodesProposedEpochBlocksByIdsRequestV0.toObject = function toObject(message, options) {
|
|
11762
|
+
if (!options)
|
|
11763
|
+
options = {};
|
|
11764
|
+
var object = {};
|
|
11765
|
+
if (options.arrays || options.defaults)
|
|
11766
|
+
object.ids = [];
|
|
11767
|
+
if (options.defaults) {
|
|
11768
|
+
object.epoch = 0;
|
|
11769
|
+
object.prove = false;
|
|
11770
|
+
}
|
|
11771
|
+
if (message.epoch != null && message.hasOwnProperty("epoch"))
|
|
11772
|
+
object.epoch = message.epoch;
|
|
11773
|
+
if (message.ids && message.ids.length) {
|
|
11774
|
+
object.ids = [];
|
|
11775
|
+
for (var j = 0; j < message.ids.length; ++j)
|
|
11776
|
+
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];
|
|
11777
|
+
}
|
|
11778
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
11779
|
+
object.prove = message.prove;
|
|
11780
|
+
return object;
|
|
11781
|
+
};
|
|
11782
|
+
|
|
11783
|
+
/**
|
|
11784
|
+
* Converts this GetEvonodesProposedEpochBlocksByIdsRequestV0 to JSON.
|
|
11785
|
+
* @function toJSON
|
|
11786
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0
|
|
11787
|
+
* @instance
|
|
11788
|
+
* @returns {Object.<string,*>} JSON object
|
|
11789
|
+
*/
|
|
11790
|
+
GetEvonodesProposedEpochBlocksByIdsRequestV0.prototype.toJSON = function toJSON() {
|
|
11791
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11792
|
+
};
|
|
11793
|
+
|
|
11794
|
+
return GetEvonodesProposedEpochBlocksByIdsRequestV0;
|
|
11795
|
+
})();
|
|
11796
|
+
|
|
11797
|
+
return GetEvonodesProposedEpochBlocksByIdsRequest;
|
|
11798
|
+
})();
|
|
11799
|
+
|
|
11800
|
+
v0.GetEvonodesProposedEpochBlocksResponse = (function() {
|
|
11801
|
+
|
|
11802
|
+
/**
|
|
11803
|
+
* Properties of a GetEvonodesProposedEpochBlocksResponse.
|
|
11804
|
+
* @memberof org.dash.platform.dapi.v0
|
|
11805
|
+
* @interface IGetEvonodesProposedEpochBlocksResponse
|
|
11806
|
+
* @property {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.IGetEvonodesProposedEpochBlocksResponseV0|null} [v0] GetEvonodesProposedEpochBlocksResponse v0
|
|
11807
|
+
*/
|
|
11808
|
+
|
|
11809
|
+
/**
|
|
11810
|
+
* Constructs a new GetEvonodesProposedEpochBlocksResponse.
|
|
11811
|
+
* @memberof org.dash.platform.dapi.v0
|
|
11812
|
+
* @classdesc Represents a GetEvonodesProposedEpochBlocksResponse.
|
|
11813
|
+
* @implements IGetEvonodesProposedEpochBlocksResponse
|
|
11814
|
+
* @constructor
|
|
11815
|
+
* @param {org.dash.platform.dapi.v0.IGetEvonodesProposedEpochBlocksResponse=} [properties] Properties to set
|
|
11816
|
+
*/
|
|
11817
|
+
function GetEvonodesProposedEpochBlocksResponse(properties) {
|
|
11818
|
+
if (properties)
|
|
11819
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11820
|
+
if (properties[keys[i]] != null)
|
|
11821
|
+
this[keys[i]] = properties[keys[i]];
|
|
11822
|
+
}
|
|
11823
|
+
|
|
11824
|
+
/**
|
|
11825
|
+
* GetEvonodesProposedEpochBlocksResponse v0.
|
|
11826
|
+
* @member {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.IGetEvonodesProposedEpochBlocksResponseV0|null|undefined} v0
|
|
11827
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse
|
|
11828
|
+
* @instance
|
|
11829
|
+
*/
|
|
11830
|
+
GetEvonodesProposedEpochBlocksResponse.prototype.v0 = null;
|
|
11831
|
+
|
|
11832
|
+
// OneOf field names bound to virtual getters and setters
|
|
11833
|
+
var $oneOfFields;
|
|
11834
|
+
|
|
11835
|
+
/**
|
|
11836
|
+
* GetEvonodesProposedEpochBlocksResponse version.
|
|
11837
|
+
* @member {"v0"|undefined} version
|
|
11838
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse
|
|
11839
|
+
* @instance
|
|
11840
|
+
*/
|
|
11841
|
+
Object.defineProperty(GetEvonodesProposedEpochBlocksResponse.prototype, "version", {
|
|
11842
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
11843
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
11844
|
+
});
|
|
11845
|
+
|
|
11846
|
+
/**
|
|
11847
|
+
* Creates a new GetEvonodesProposedEpochBlocksResponse instance using the specified properties.
|
|
11848
|
+
* @function create
|
|
11849
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse
|
|
11850
|
+
* @static
|
|
11851
|
+
* @param {org.dash.platform.dapi.v0.IGetEvonodesProposedEpochBlocksResponse=} [properties] Properties to set
|
|
11852
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse} GetEvonodesProposedEpochBlocksResponse instance
|
|
11853
|
+
*/
|
|
11854
|
+
GetEvonodesProposedEpochBlocksResponse.create = function create(properties) {
|
|
11855
|
+
return new GetEvonodesProposedEpochBlocksResponse(properties);
|
|
11856
|
+
};
|
|
11857
|
+
|
|
11858
|
+
/**
|
|
11859
|
+
* Encodes the specified GetEvonodesProposedEpochBlocksResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.verify|verify} messages.
|
|
11860
|
+
* @function encode
|
|
11861
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse
|
|
11862
|
+
* @static
|
|
11863
|
+
* @param {org.dash.platform.dapi.v0.IGetEvonodesProposedEpochBlocksResponse} message GetEvonodesProposedEpochBlocksResponse message or plain object to encode
|
|
11864
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11865
|
+
* @returns {$protobuf.Writer} Writer
|
|
11866
|
+
*/
|
|
11867
|
+
GetEvonodesProposedEpochBlocksResponse.encode = function encode(message, writer) {
|
|
11868
|
+
if (!writer)
|
|
11869
|
+
writer = $Writer.create();
|
|
11870
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
11871
|
+
$root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
11872
|
+
return writer;
|
|
11873
|
+
};
|
|
11874
|
+
|
|
11875
|
+
/**
|
|
11876
|
+
* Encodes the specified GetEvonodesProposedEpochBlocksResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.verify|verify} messages.
|
|
11877
|
+
* @function encodeDelimited
|
|
11878
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse
|
|
11879
|
+
* @static
|
|
11880
|
+
* @param {org.dash.platform.dapi.v0.IGetEvonodesProposedEpochBlocksResponse} message GetEvonodesProposedEpochBlocksResponse message or plain object to encode
|
|
11881
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11882
|
+
* @returns {$protobuf.Writer} Writer
|
|
11883
|
+
*/
|
|
11884
|
+
GetEvonodesProposedEpochBlocksResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11885
|
+
return this.encode(message, writer).ldelim();
|
|
11886
|
+
};
|
|
11887
|
+
|
|
11888
|
+
/**
|
|
11889
|
+
* Decodes a GetEvonodesProposedEpochBlocksResponse message from the specified reader or buffer.
|
|
11890
|
+
* @function decode
|
|
11891
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse
|
|
11892
|
+
* @static
|
|
11893
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11894
|
+
* @param {number} [length] Message length if known beforehand
|
|
11895
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse} GetEvonodesProposedEpochBlocksResponse
|
|
11896
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11897
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11898
|
+
*/
|
|
11899
|
+
GetEvonodesProposedEpochBlocksResponse.decode = function decode(reader, length) {
|
|
11900
|
+
if (!(reader instanceof $Reader))
|
|
11901
|
+
reader = $Reader.create(reader);
|
|
11902
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse();
|
|
11903
|
+
while (reader.pos < end) {
|
|
11904
|
+
var tag = reader.uint32();
|
|
11905
|
+
switch (tag >>> 3) {
|
|
11906
|
+
case 1:
|
|
11907
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.decode(reader, reader.uint32());
|
|
11908
|
+
break;
|
|
11909
|
+
default:
|
|
11910
|
+
reader.skipType(tag & 7);
|
|
11911
|
+
break;
|
|
11912
|
+
}
|
|
11913
|
+
}
|
|
11914
|
+
return message;
|
|
11915
|
+
};
|
|
11916
|
+
|
|
11917
|
+
/**
|
|
11918
|
+
* Decodes a GetEvonodesProposedEpochBlocksResponse message from the specified reader or buffer, length delimited.
|
|
11919
|
+
* @function decodeDelimited
|
|
11920
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse
|
|
11921
|
+
* @static
|
|
11922
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11923
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse} GetEvonodesProposedEpochBlocksResponse
|
|
11924
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11925
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11926
|
+
*/
|
|
11927
|
+
GetEvonodesProposedEpochBlocksResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
11928
|
+
if (!(reader instanceof $Reader))
|
|
11929
|
+
reader = new $Reader(reader);
|
|
11930
|
+
return this.decode(reader, reader.uint32());
|
|
11931
|
+
};
|
|
11932
|
+
|
|
11933
|
+
/**
|
|
11934
|
+
* Verifies a GetEvonodesProposedEpochBlocksResponse message.
|
|
11935
|
+
* @function verify
|
|
11936
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse
|
|
11937
|
+
* @static
|
|
11938
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11939
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11940
|
+
*/
|
|
11941
|
+
GetEvonodesProposedEpochBlocksResponse.verify = function verify(message) {
|
|
11942
|
+
if (typeof message !== "object" || message === null)
|
|
11943
|
+
return "object expected";
|
|
11944
|
+
var properties = {};
|
|
11945
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
11946
|
+
properties.version = 1;
|
|
11947
|
+
{
|
|
11948
|
+
var error = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.verify(message.v0);
|
|
11949
|
+
if (error)
|
|
11950
|
+
return "v0." + error;
|
|
11951
|
+
}
|
|
11952
|
+
}
|
|
11953
|
+
return null;
|
|
11954
|
+
};
|
|
11955
|
+
|
|
11956
|
+
/**
|
|
11957
|
+
* Creates a GetEvonodesProposedEpochBlocksResponse message from a plain object. Also converts values to their respective internal types.
|
|
11958
|
+
* @function fromObject
|
|
11959
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse
|
|
11960
|
+
* @static
|
|
11961
|
+
* @param {Object.<string,*>} object Plain object
|
|
11962
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse} GetEvonodesProposedEpochBlocksResponse
|
|
11963
|
+
*/
|
|
11964
|
+
GetEvonodesProposedEpochBlocksResponse.fromObject = function fromObject(object) {
|
|
11965
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse)
|
|
11966
|
+
return object;
|
|
11967
|
+
var message = new $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse();
|
|
11968
|
+
if (object.v0 != null) {
|
|
11969
|
+
if (typeof object.v0 !== "object")
|
|
11970
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.v0: object expected");
|
|
11971
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.fromObject(object.v0);
|
|
11972
|
+
}
|
|
11973
|
+
return message;
|
|
11974
|
+
};
|
|
11975
|
+
|
|
11976
|
+
/**
|
|
11977
|
+
* Creates a plain object from a GetEvonodesProposedEpochBlocksResponse message. Also converts values to other types if specified.
|
|
11978
|
+
* @function toObject
|
|
11979
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse
|
|
11980
|
+
* @static
|
|
11981
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse} message GetEvonodesProposedEpochBlocksResponse
|
|
11982
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11983
|
+
* @returns {Object.<string,*>} Plain object
|
|
11984
|
+
*/
|
|
11985
|
+
GetEvonodesProposedEpochBlocksResponse.toObject = function toObject(message, options) {
|
|
11986
|
+
if (!options)
|
|
11987
|
+
options = {};
|
|
11988
|
+
var object = {};
|
|
11989
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
11990
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.toObject(message.v0, options);
|
|
11991
|
+
if (options.oneofs)
|
|
11992
|
+
object.version = "v0";
|
|
11993
|
+
}
|
|
11994
|
+
return object;
|
|
11995
|
+
};
|
|
11996
|
+
|
|
11997
|
+
/**
|
|
11998
|
+
* Converts this GetEvonodesProposedEpochBlocksResponse to JSON.
|
|
11999
|
+
* @function toJSON
|
|
12000
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse
|
|
12001
|
+
* @instance
|
|
12002
|
+
* @returns {Object.<string,*>} JSON object
|
|
12003
|
+
*/
|
|
12004
|
+
GetEvonodesProposedEpochBlocksResponse.prototype.toJSON = function toJSON() {
|
|
12005
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12006
|
+
};
|
|
12007
|
+
|
|
12008
|
+
GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0 = (function() {
|
|
12009
|
+
|
|
12010
|
+
/**
|
|
12011
|
+
* Properties of a GetEvonodesProposedEpochBlocksResponseV0.
|
|
12012
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse
|
|
12013
|
+
* @interface IGetEvonodesProposedEpochBlocksResponseV0
|
|
12014
|
+
* @property {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.IEvonodesProposedBlocks|null} [evonodesProposedBlockCountsInfo] GetEvonodesProposedEpochBlocksResponseV0 evonodesProposedBlockCountsInfo
|
|
12015
|
+
* @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetEvonodesProposedEpochBlocksResponseV0 proof
|
|
12016
|
+
* @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetEvonodesProposedEpochBlocksResponseV0 metadata
|
|
12017
|
+
*/
|
|
12018
|
+
|
|
12019
|
+
/**
|
|
12020
|
+
* Constructs a new GetEvonodesProposedEpochBlocksResponseV0.
|
|
12021
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse
|
|
12022
|
+
* @classdesc Represents a GetEvonodesProposedEpochBlocksResponseV0.
|
|
12023
|
+
* @implements IGetEvonodesProposedEpochBlocksResponseV0
|
|
12024
|
+
* @constructor
|
|
12025
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.IGetEvonodesProposedEpochBlocksResponseV0=} [properties] Properties to set
|
|
12026
|
+
*/
|
|
12027
|
+
function GetEvonodesProposedEpochBlocksResponseV0(properties) {
|
|
12028
|
+
if (properties)
|
|
12029
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12030
|
+
if (properties[keys[i]] != null)
|
|
12031
|
+
this[keys[i]] = properties[keys[i]];
|
|
12032
|
+
}
|
|
12033
|
+
|
|
12034
|
+
/**
|
|
12035
|
+
* GetEvonodesProposedEpochBlocksResponseV0 evonodesProposedBlockCountsInfo.
|
|
12036
|
+
* @member {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.IEvonodesProposedBlocks|null|undefined} evonodesProposedBlockCountsInfo
|
|
12037
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12038
|
+
* @instance
|
|
12039
|
+
*/
|
|
12040
|
+
GetEvonodesProposedEpochBlocksResponseV0.prototype.evonodesProposedBlockCountsInfo = null;
|
|
12041
|
+
|
|
12042
|
+
/**
|
|
12043
|
+
* GetEvonodesProposedEpochBlocksResponseV0 proof.
|
|
12044
|
+
* @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
|
|
12045
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12046
|
+
* @instance
|
|
12047
|
+
*/
|
|
12048
|
+
GetEvonodesProposedEpochBlocksResponseV0.prototype.proof = null;
|
|
12049
|
+
|
|
12050
|
+
/**
|
|
12051
|
+
* GetEvonodesProposedEpochBlocksResponseV0 metadata.
|
|
12052
|
+
* @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
|
|
12053
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12054
|
+
* @instance
|
|
12055
|
+
*/
|
|
12056
|
+
GetEvonodesProposedEpochBlocksResponseV0.prototype.metadata = null;
|
|
12057
|
+
|
|
12058
|
+
// OneOf field names bound to virtual getters and setters
|
|
12059
|
+
var $oneOfFields;
|
|
12060
|
+
|
|
12061
|
+
/**
|
|
12062
|
+
* GetEvonodesProposedEpochBlocksResponseV0 result.
|
|
12063
|
+
* @member {"evonodesProposedBlockCountsInfo"|"proof"|undefined} result
|
|
12064
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12065
|
+
* @instance
|
|
12066
|
+
*/
|
|
12067
|
+
Object.defineProperty(GetEvonodesProposedEpochBlocksResponseV0.prototype, "result", {
|
|
12068
|
+
get: $util.oneOfGetter($oneOfFields = ["evonodesProposedBlockCountsInfo", "proof"]),
|
|
12069
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
12070
|
+
});
|
|
12071
|
+
|
|
12072
|
+
/**
|
|
12073
|
+
* Creates a new GetEvonodesProposedEpochBlocksResponseV0 instance using the specified properties.
|
|
12074
|
+
* @function create
|
|
12075
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12076
|
+
* @static
|
|
12077
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.IGetEvonodesProposedEpochBlocksResponseV0=} [properties] Properties to set
|
|
12078
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0} GetEvonodesProposedEpochBlocksResponseV0 instance
|
|
12079
|
+
*/
|
|
12080
|
+
GetEvonodesProposedEpochBlocksResponseV0.create = function create(properties) {
|
|
12081
|
+
return new GetEvonodesProposedEpochBlocksResponseV0(properties);
|
|
12082
|
+
};
|
|
12083
|
+
|
|
12084
|
+
/**
|
|
12085
|
+
* Encodes the specified GetEvonodesProposedEpochBlocksResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.verify|verify} messages.
|
|
12086
|
+
* @function encode
|
|
12087
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12088
|
+
* @static
|
|
12089
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.IGetEvonodesProposedEpochBlocksResponseV0} message GetEvonodesProposedEpochBlocksResponseV0 message or plain object to encode
|
|
12090
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12091
|
+
* @returns {$protobuf.Writer} Writer
|
|
12092
|
+
*/
|
|
12093
|
+
GetEvonodesProposedEpochBlocksResponseV0.encode = function encode(message, writer) {
|
|
12094
|
+
if (!writer)
|
|
12095
|
+
writer = $Writer.create();
|
|
12096
|
+
if (message.evonodesProposedBlockCountsInfo != null && Object.hasOwnProperty.call(message, "evonodesProposedBlockCountsInfo"))
|
|
12097
|
+
$root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks.encode(message.evonodesProposedBlockCountsInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
12098
|
+
if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
|
|
12099
|
+
$root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
12100
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
12101
|
+
$root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
12102
|
+
return writer;
|
|
12103
|
+
};
|
|
12104
|
+
|
|
12105
|
+
/**
|
|
12106
|
+
* Encodes the specified GetEvonodesProposedEpochBlocksResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.verify|verify} messages.
|
|
12107
|
+
* @function encodeDelimited
|
|
12108
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12109
|
+
* @static
|
|
12110
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.IGetEvonodesProposedEpochBlocksResponseV0} message GetEvonodesProposedEpochBlocksResponseV0 message or plain object to encode
|
|
12111
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12112
|
+
* @returns {$protobuf.Writer} Writer
|
|
12113
|
+
*/
|
|
12114
|
+
GetEvonodesProposedEpochBlocksResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12115
|
+
return this.encode(message, writer).ldelim();
|
|
12116
|
+
};
|
|
12117
|
+
|
|
12118
|
+
/**
|
|
12119
|
+
* Decodes a GetEvonodesProposedEpochBlocksResponseV0 message from the specified reader or buffer.
|
|
12120
|
+
* @function decode
|
|
12121
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12122
|
+
* @static
|
|
12123
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12124
|
+
* @param {number} [length] Message length if known beforehand
|
|
12125
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0} GetEvonodesProposedEpochBlocksResponseV0
|
|
12126
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12127
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12128
|
+
*/
|
|
12129
|
+
GetEvonodesProposedEpochBlocksResponseV0.decode = function decode(reader, length) {
|
|
12130
|
+
if (!(reader instanceof $Reader))
|
|
12131
|
+
reader = $Reader.create(reader);
|
|
12132
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0();
|
|
12133
|
+
while (reader.pos < end) {
|
|
12134
|
+
var tag = reader.uint32();
|
|
12135
|
+
switch (tag >>> 3) {
|
|
12136
|
+
case 1:
|
|
12137
|
+
message.evonodesProposedBlockCountsInfo = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks.decode(reader, reader.uint32());
|
|
12138
|
+
break;
|
|
12139
|
+
case 2:
|
|
12140
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
|
|
12141
|
+
break;
|
|
12142
|
+
case 3:
|
|
12143
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
|
|
12144
|
+
break;
|
|
12145
|
+
default:
|
|
12146
|
+
reader.skipType(tag & 7);
|
|
12147
|
+
break;
|
|
12148
|
+
}
|
|
12149
|
+
}
|
|
12150
|
+
return message;
|
|
12151
|
+
};
|
|
12152
|
+
|
|
12153
|
+
/**
|
|
12154
|
+
* Decodes a GetEvonodesProposedEpochBlocksResponseV0 message from the specified reader or buffer, length delimited.
|
|
12155
|
+
* @function decodeDelimited
|
|
12156
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12157
|
+
* @static
|
|
12158
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12159
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0} GetEvonodesProposedEpochBlocksResponseV0
|
|
12160
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12161
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12162
|
+
*/
|
|
12163
|
+
GetEvonodesProposedEpochBlocksResponseV0.decodeDelimited = function decodeDelimited(reader) {
|
|
12164
|
+
if (!(reader instanceof $Reader))
|
|
12165
|
+
reader = new $Reader(reader);
|
|
12166
|
+
return this.decode(reader, reader.uint32());
|
|
12167
|
+
};
|
|
12168
|
+
|
|
12169
|
+
/**
|
|
12170
|
+
* Verifies a GetEvonodesProposedEpochBlocksResponseV0 message.
|
|
12171
|
+
* @function verify
|
|
12172
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12173
|
+
* @static
|
|
12174
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12175
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12176
|
+
*/
|
|
12177
|
+
GetEvonodesProposedEpochBlocksResponseV0.verify = function verify(message) {
|
|
12178
|
+
if (typeof message !== "object" || message === null)
|
|
12179
|
+
return "object expected";
|
|
12180
|
+
var properties = {};
|
|
12181
|
+
if (message.evonodesProposedBlockCountsInfo != null && message.hasOwnProperty("evonodesProposedBlockCountsInfo")) {
|
|
12182
|
+
properties.result = 1;
|
|
12183
|
+
{
|
|
12184
|
+
var error = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks.verify(message.evonodesProposedBlockCountsInfo);
|
|
12185
|
+
if (error)
|
|
12186
|
+
return "evonodesProposedBlockCountsInfo." + error;
|
|
12187
|
+
}
|
|
12188
|
+
}
|
|
12189
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
12190
|
+
if (properties.result === 1)
|
|
12191
|
+
return "result: multiple values";
|
|
12192
|
+
properties.result = 1;
|
|
12193
|
+
{
|
|
12194
|
+
var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
|
|
12195
|
+
if (error)
|
|
12196
|
+
return "proof." + error;
|
|
12197
|
+
}
|
|
12198
|
+
}
|
|
12199
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
12200
|
+
var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
|
|
12201
|
+
if (error)
|
|
12202
|
+
return "metadata." + error;
|
|
12203
|
+
}
|
|
12204
|
+
return null;
|
|
12205
|
+
};
|
|
12206
|
+
|
|
12207
|
+
/**
|
|
12208
|
+
* Creates a GetEvonodesProposedEpochBlocksResponseV0 message from a plain object. Also converts values to their respective internal types.
|
|
12209
|
+
* @function fromObject
|
|
12210
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12211
|
+
* @static
|
|
12212
|
+
* @param {Object.<string,*>} object Plain object
|
|
12213
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0} GetEvonodesProposedEpochBlocksResponseV0
|
|
12214
|
+
*/
|
|
12215
|
+
GetEvonodesProposedEpochBlocksResponseV0.fromObject = function fromObject(object) {
|
|
12216
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0)
|
|
12217
|
+
return object;
|
|
12218
|
+
var message = new $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0();
|
|
12219
|
+
if (object.evonodesProposedBlockCountsInfo != null) {
|
|
12220
|
+
if (typeof object.evonodesProposedBlockCountsInfo !== "object")
|
|
12221
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.evonodesProposedBlockCountsInfo: object expected");
|
|
12222
|
+
message.evonodesProposedBlockCountsInfo = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks.fromObject(object.evonodesProposedBlockCountsInfo);
|
|
12223
|
+
}
|
|
12224
|
+
if (object.proof != null) {
|
|
12225
|
+
if (typeof object.proof !== "object")
|
|
12226
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.proof: object expected");
|
|
12227
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
|
|
12228
|
+
}
|
|
12229
|
+
if (object.metadata != null) {
|
|
12230
|
+
if (typeof object.metadata !== "object")
|
|
12231
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.metadata: object expected");
|
|
12232
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
|
|
12233
|
+
}
|
|
12234
|
+
return message;
|
|
12235
|
+
};
|
|
12236
|
+
|
|
12237
|
+
/**
|
|
12238
|
+
* Creates a plain object from a GetEvonodesProposedEpochBlocksResponseV0 message. Also converts values to other types if specified.
|
|
12239
|
+
* @function toObject
|
|
12240
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12241
|
+
* @static
|
|
12242
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0} message GetEvonodesProposedEpochBlocksResponseV0
|
|
12243
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12244
|
+
* @returns {Object.<string,*>} Plain object
|
|
12245
|
+
*/
|
|
12246
|
+
GetEvonodesProposedEpochBlocksResponseV0.toObject = function toObject(message, options) {
|
|
12247
|
+
if (!options)
|
|
12248
|
+
options = {};
|
|
12249
|
+
var object = {};
|
|
12250
|
+
if (options.defaults)
|
|
12251
|
+
object.metadata = null;
|
|
12252
|
+
if (message.evonodesProposedBlockCountsInfo != null && message.hasOwnProperty("evonodesProposedBlockCountsInfo")) {
|
|
12253
|
+
object.evonodesProposedBlockCountsInfo = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks.toObject(message.evonodesProposedBlockCountsInfo, options);
|
|
12254
|
+
if (options.oneofs)
|
|
12255
|
+
object.result = "evonodesProposedBlockCountsInfo";
|
|
12256
|
+
}
|
|
12257
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
12258
|
+
object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
|
|
12259
|
+
if (options.oneofs)
|
|
12260
|
+
object.result = "proof";
|
|
12261
|
+
}
|
|
12262
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
12263
|
+
object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
|
|
12264
|
+
return object;
|
|
12265
|
+
};
|
|
12266
|
+
|
|
12267
|
+
/**
|
|
12268
|
+
* Converts this GetEvonodesProposedEpochBlocksResponseV0 to JSON.
|
|
12269
|
+
* @function toJSON
|
|
12270
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12271
|
+
* @instance
|
|
12272
|
+
* @returns {Object.<string,*>} JSON object
|
|
12273
|
+
*/
|
|
12274
|
+
GetEvonodesProposedEpochBlocksResponseV0.prototype.toJSON = function toJSON() {
|
|
12275
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12276
|
+
};
|
|
12277
|
+
|
|
12278
|
+
GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks = (function() {
|
|
12279
|
+
|
|
12280
|
+
/**
|
|
12281
|
+
* Properties of an EvonodeProposedBlocks.
|
|
12282
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12283
|
+
* @interface IEvonodeProposedBlocks
|
|
12284
|
+
* @property {Uint8Array|null} [proTxHash] EvonodeProposedBlocks proTxHash
|
|
12285
|
+
* @property {number|Long|null} [count] EvonodeProposedBlocks count
|
|
12286
|
+
*/
|
|
12287
|
+
|
|
12288
|
+
/**
|
|
12289
|
+
* Constructs a new EvonodeProposedBlocks.
|
|
12290
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12291
|
+
* @classdesc Represents an EvonodeProposedBlocks.
|
|
12292
|
+
* @implements IEvonodeProposedBlocks
|
|
12293
|
+
* @constructor
|
|
12294
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.IEvonodeProposedBlocks=} [properties] Properties to set
|
|
12295
|
+
*/
|
|
12296
|
+
function EvonodeProposedBlocks(properties) {
|
|
12297
|
+
if (properties)
|
|
12298
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12299
|
+
if (properties[keys[i]] != null)
|
|
12300
|
+
this[keys[i]] = properties[keys[i]];
|
|
12301
|
+
}
|
|
12302
|
+
|
|
12303
|
+
/**
|
|
12304
|
+
* EvonodeProposedBlocks proTxHash.
|
|
12305
|
+
* @member {Uint8Array} proTxHash
|
|
12306
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks
|
|
12307
|
+
* @instance
|
|
12308
|
+
*/
|
|
12309
|
+
EvonodeProposedBlocks.prototype.proTxHash = $util.newBuffer([]);
|
|
12310
|
+
|
|
12311
|
+
/**
|
|
12312
|
+
* EvonodeProposedBlocks count.
|
|
12313
|
+
* @member {number|Long} count
|
|
12314
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks
|
|
12315
|
+
* @instance
|
|
12316
|
+
*/
|
|
12317
|
+
EvonodeProposedBlocks.prototype.count = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
12318
|
+
|
|
12319
|
+
/**
|
|
12320
|
+
* Creates a new EvonodeProposedBlocks instance using the specified properties.
|
|
12321
|
+
* @function create
|
|
12322
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks
|
|
12323
|
+
* @static
|
|
12324
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.IEvonodeProposedBlocks=} [properties] Properties to set
|
|
12325
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks} EvonodeProposedBlocks instance
|
|
12326
|
+
*/
|
|
12327
|
+
EvonodeProposedBlocks.create = function create(properties) {
|
|
12328
|
+
return new EvonodeProposedBlocks(properties);
|
|
12329
|
+
};
|
|
12330
|
+
|
|
12331
|
+
/**
|
|
12332
|
+
* Encodes the specified EvonodeProposedBlocks message. Does not implicitly {@link org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks.verify|verify} messages.
|
|
12333
|
+
* @function encode
|
|
12334
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks
|
|
12335
|
+
* @static
|
|
12336
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.IEvonodeProposedBlocks} message EvonodeProposedBlocks message or plain object to encode
|
|
12337
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12338
|
+
* @returns {$protobuf.Writer} Writer
|
|
12339
|
+
*/
|
|
12340
|
+
EvonodeProposedBlocks.encode = function encode(message, writer) {
|
|
12341
|
+
if (!writer)
|
|
12342
|
+
writer = $Writer.create();
|
|
12343
|
+
if (message.proTxHash != null && Object.hasOwnProperty.call(message, "proTxHash"))
|
|
12344
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.proTxHash);
|
|
12345
|
+
if (message.count != null && Object.hasOwnProperty.call(message, "count"))
|
|
12346
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.count);
|
|
12347
|
+
return writer;
|
|
12348
|
+
};
|
|
12349
|
+
|
|
12350
|
+
/**
|
|
12351
|
+
* Encodes the specified EvonodeProposedBlocks message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks.verify|verify} messages.
|
|
12352
|
+
* @function encodeDelimited
|
|
12353
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks
|
|
12354
|
+
* @static
|
|
12355
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.IEvonodeProposedBlocks} message EvonodeProposedBlocks message or plain object to encode
|
|
12356
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12357
|
+
* @returns {$protobuf.Writer} Writer
|
|
12358
|
+
*/
|
|
12359
|
+
EvonodeProposedBlocks.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12360
|
+
return this.encode(message, writer).ldelim();
|
|
12361
|
+
};
|
|
12362
|
+
|
|
12363
|
+
/**
|
|
12364
|
+
* Decodes an EvonodeProposedBlocks message from the specified reader or buffer.
|
|
12365
|
+
* @function decode
|
|
12366
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks
|
|
12367
|
+
* @static
|
|
12368
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12369
|
+
* @param {number} [length] Message length if known beforehand
|
|
12370
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks} EvonodeProposedBlocks
|
|
12371
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12372
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12373
|
+
*/
|
|
12374
|
+
EvonodeProposedBlocks.decode = function decode(reader, length) {
|
|
12375
|
+
if (!(reader instanceof $Reader))
|
|
12376
|
+
reader = $Reader.create(reader);
|
|
12377
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks();
|
|
12378
|
+
while (reader.pos < end) {
|
|
12379
|
+
var tag = reader.uint32();
|
|
12380
|
+
switch (tag >>> 3) {
|
|
12381
|
+
case 1:
|
|
12382
|
+
message.proTxHash = reader.bytes();
|
|
12383
|
+
break;
|
|
12384
|
+
case 2:
|
|
12385
|
+
message.count = reader.uint64();
|
|
12386
|
+
break;
|
|
12387
|
+
default:
|
|
12388
|
+
reader.skipType(tag & 7);
|
|
12389
|
+
break;
|
|
12390
|
+
}
|
|
12391
|
+
}
|
|
12392
|
+
return message;
|
|
12393
|
+
};
|
|
12394
|
+
|
|
12395
|
+
/**
|
|
12396
|
+
* Decodes an EvonodeProposedBlocks message from the specified reader or buffer, length delimited.
|
|
12397
|
+
* @function decodeDelimited
|
|
12398
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks
|
|
12399
|
+
* @static
|
|
12400
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12401
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks} EvonodeProposedBlocks
|
|
12402
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12403
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12404
|
+
*/
|
|
12405
|
+
EvonodeProposedBlocks.decodeDelimited = function decodeDelimited(reader) {
|
|
12406
|
+
if (!(reader instanceof $Reader))
|
|
12407
|
+
reader = new $Reader(reader);
|
|
12408
|
+
return this.decode(reader, reader.uint32());
|
|
12409
|
+
};
|
|
12410
|
+
|
|
12411
|
+
/**
|
|
12412
|
+
* Verifies an EvonodeProposedBlocks message.
|
|
12413
|
+
* @function verify
|
|
12414
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks
|
|
12415
|
+
* @static
|
|
12416
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12417
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12418
|
+
*/
|
|
12419
|
+
EvonodeProposedBlocks.verify = function verify(message) {
|
|
12420
|
+
if (typeof message !== "object" || message === null)
|
|
12421
|
+
return "object expected";
|
|
12422
|
+
if (message.proTxHash != null && message.hasOwnProperty("proTxHash"))
|
|
12423
|
+
if (!(message.proTxHash && typeof message.proTxHash.length === "number" || $util.isString(message.proTxHash)))
|
|
12424
|
+
return "proTxHash: buffer expected";
|
|
12425
|
+
if (message.count != null && message.hasOwnProperty("count"))
|
|
12426
|
+
if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high)))
|
|
12427
|
+
return "count: integer|Long expected";
|
|
12428
|
+
return null;
|
|
12429
|
+
};
|
|
12430
|
+
|
|
12431
|
+
/**
|
|
12432
|
+
* Creates an EvonodeProposedBlocks message from a plain object. Also converts values to their respective internal types.
|
|
12433
|
+
* @function fromObject
|
|
12434
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks
|
|
12435
|
+
* @static
|
|
12436
|
+
* @param {Object.<string,*>} object Plain object
|
|
12437
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks} EvonodeProposedBlocks
|
|
12438
|
+
*/
|
|
12439
|
+
EvonodeProposedBlocks.fromObject = function fromObject(object) {
|
|
12440
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks)
|
|
12441
|
+
return object;
|
|
12442
|
+
var message = new $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks();
|
|
12443
|
+
if (object.proTxHash != null)
|
|
12444
|
+
if (typeof object.proTxHash === "string")
|
|
12445
|
+
$util.base64.decode(object.proTxHash, message.proTxHash = $util.newBuffer($util.base64.length(object.proTxHash)), 0);
|
|
12446
|
+
else if (object.proTxHash.length >= 0)
|
|
12447
|
+
message.proTxHash = object.proTxHash;
|
|
12448
|
+
if (object.count != null)
|
|
12449
|
+
if ($util.Long)
|
|
12450
|
+
(message.count = $util.Long.fromValue(object.count)).unsigned = true;
|
|
12451
|
+
else if (typeof object.count === "string")
|
|
12452
|
+
message.count = parseInt(object.count, 10);
|
|
12453
|
+
else if (typeof object.count === "number")
|
|
12454
|
+
message.count = object.count;
|
|
12455
|
+
else if (typeof object.count === "object")
|
|
12456
|
+
message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(true);
|
|
12457
|
+
return message;
|
|
12458
|
+
};
|
|
12459
|
+
|
|
12460
|
+
/**
|
|
12461
|
+
* Creates a plain object from an EvonodeProposedBlocks message. Also converts values to other types if specified.
|
|
12462
|
+
* @function toObject
|
|
12463
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks
|
|
12464
|
+
* @static
|
|
12465
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks} message EvonodeProposedBlocks
|
|
12466
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12467
|
+
* @returns {Object.<string,*>} Plain object
|
|
12468
|
+
*/
|
|
12469
|
+
EvonodeProposedBlocks.toObject = function toObject(message, options) {
|
|
12470
|
+
if (!options)
|
|
12471
|
+
options = {};
|
|
12472
|
+
var object = {};
|
|
12473
|
+
if (options.defaults) {
|
|
12474
|
+
if (options.bytes === String)
|
|
12475
|
+
object.proTxHash = "";
|
|
12476
|
+
else {
|
|
12477
|
+
object.proTxHash = [];
|
|
12478
|
+
if (options.bytes !== Array)
|
|
12479
|
+
object.proTxHash = $util.newBuffer(object.proTxHash);
|
|
12480
|
+
}
|
|
12481
|
+
if ($util.Long) {
|
|
12482
|
+
var long = new $util.Long(0, 0, true);
|
|
12483
|
+
object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
12484
|
+
} else
|
|
12485
|
+
object.count = options.longs === String ? "0" : 0;
|
|
12486
|
+
}
|
|
12487
|
+
if (message.proTxHash != null && message.hasOwnProperty("proTxHash"))
|
|
12488
|
+
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;
|
|
12489
|
+
if (message.count != null && message.hasOwnProperty("count"))
|
|
12490
|
+
if (typeof message.count === "number")
|
|
12491
|
+
object.count = options.longs === String ? String(message.count) : message.count;
|
|
12492
|
+
else
|
|
12493
|
+
object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber(true) : message.count;
|
|
12494
|
+
return object;
|
|
12495
|
+
};
|
|
12496
|
+
|
|
12497
|
+
/**
|
|
12498
|
+
* Converts this EvonodeProposedBlocks to JSON.
|
|
12499
|
+
* @function toJSON
|
|
12500
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks
|
|
12501
|
+
* @instance
|
|
12502
|
+
* @returns {Object.<string,*>} JSON object
|
|
12503
|
+
*/
|
|
12504
|
+
EvonodeProposedBlocks.prototype.toJSON = function toJSON() {
|
|
12505
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12506
|
+
};
|
|
12507
|
+
|
|
12508
|
+
return EvonodeProposedBlocks;
|
|
12509
|
+
})();
|
|
12510
|
+
|
|
12511
|
+
GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks = (function() {
|
|
12512
|
+
|
|
12513
|
+
/**
|
|
12514
|
+
* Properties of an EvonodesProposedBlocks.
|
|
12515
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12516
|
+
* @interface IEvonodesProposedBlocks
|
|
12517
|
+
* @property {Array.<org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.IEvonodeProposedBlocks>|null} [evonodesProposedBlockCounts] EvonodesProposedBlocks evonodesProposedBlockCounts
|
|
12518
|
+
*/
|
|
12519
|
+
|
|
12520
|
+
/**
|
|
12521
|
+
* Constructs a new EvonodesProposedBlocks.
|
|
12522
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0
|
|
12523
|
+
* @classdesc Represents an EvonodesProposedBlocks.
|
|
12524
|
+
* @implements IEvonodesProposedBlocks
|
|
12525
|
+
* @constructor
|
|
12526
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.IEvonodesProposedBlocks=} [properties] Properties to set
|
|
12527
|
+
*/
|
|
12528
|
+
function EvonodesProposedBlocks(properties) {
|
|
12529
|
+
this.evonodesProposedBlockCounts = [];
|
|
12530
|
+
if (properties)
|
|
12531
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12532
|
+
if (properties[keys[i]] != null)
|
|
12533
|
+
this[keys[i]] = properties[keys[i]];
|
|
12534
|
+
}
|
|
12535
|
+
|
|
12536
|
+
/**
|
|
12537
|
+
* EvonodesProposedBlocks evonodesProposedBlockCounts.
|
|
12538
|
+
* @member {Array.<org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.IEvonodeProposedBlocks>} evonodesProposedBlockCounts
|
|
12539
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks
|
|
12540
|
+
* @instance
|
|
12541
|
+
*/
|
|
12542
|
+
EvonodesProposedBlocks.prototype.evonodesProposedBlockCounts = $util.emptyArray;
|
|
12543
|
+
|
|
12544
|
+
/**
|
|
12545
|
+
* Creates a new EvonodesProposedBlocks instance using the specified properties.
|
|
12546
|
+
* @function create
|
|
12547
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks
|
|
12548
|
+
* @static
|
|
12549
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.IEvonodesProposedBlocks=} [properties] Properties to set
|
|
12550
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks} EvonodesProposedBlocks instance
|
|
12551
|
+
*/
|
|
12552
|
+
EvonodesProposedBlocks.create = function create(properties) {
|
|
12553
|
+
return new EvonodesProposedBlocks(properties);
|
|
12554
|
+
};
|
|
12555
|
+
|
|
12556
|
+
/**
|
|
12557
|
+
* Encodes the specified EvonodesProposedBlocks message. Does not implicitly {@link org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks.verify|verify} messages.
|
|
12558
|
+
* @function encode
|
|
12559
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks
|
|
12560
|
+
* @static
|
|
12561
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.IEvonodesProposedBlocks} message EvonodesProposedBlocks message or plain object to encode
|
|
12562
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12563
|
+
* @returns {$protobuf.Writer} Writer
|
|
12564
|
+
*/
|
|
12565
|
+
EvonodesProposedBlocks.encode = function encode(message, writer) {
|
|
12566
|
+
if (!writer)
|
|
12567
|
+
writer = $Writer.create();
|
|
12568
|
+
if (message.evonodesProposedBlockCounts != null && message.evonodesProposedBlockCounts.length)
|
|
12569
|
+
for (var i = 0; i < message.evonodesProposedBlockCounts.length; ++i)
|
|
12570
|
+
$root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks.encode(message.evonodesProposedBlockCounts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
12571
|
+
return writer;
|
|
12572
|
+
};
|
|
12573
|
+
|
|
12574
|
+
/**
|
|
12575
|
+
* Encodes the specified EvonodesProposedBlocks message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks.verify|verify} messages.
|
|
12576
|
+
* @function encodeDelimited
|
|
12577
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks
|
|
12578
|
+
* @static
|
|
12579
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.IEvonodesProposedBlocks} message EvonodesProposedBlocks message or plain object to encode
|
|
12580
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12581
|
+
* @returns {$protobuf.Writer} Writer
|
|
12582
|
+
*/
|
|
12583
|
+
EvonodesProposedBlocks.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12584
|
+
return this.encode(message, writer).ldelim();
|
|
12585
|
+
};
|
|
12586
|
+
|
|
12587
|
+
/**
|
|
12588
|
+
* Decodes an EvonodesProposedBlocks message from the specified reader or buffer.
|
|
12589
|
+
* @function decode
|
|
12590
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks
|
|
12591
|
+
* @static
|
|
12592
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12593
|
+
* @param {number} [length] Message length if known beforehand
|
|
12594
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks} EvonodesProposedBlocks
|
|
12595
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12596
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12597
|
+
*/
|
|
12598
|
+
EvonodesProposedBlocks.decode = function decode(reader, length) {
|
|
12599
|
+
if (!(reader instanceof $Reader))
|
|
12600
|
+
reader = $Reader.create(reader);
|
|
12601
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks();
|
|
12602
|
+
while (reader.pos < end) {
|
|
12603
|
+
var tag = reader.uint32();
|
|
12604
|
+
switch (tag >>> 3) {
|
|
12605
|
+
case 1:
|
|
12606
|
+
if (!(message.evonodesProposedBlockCounts && message.evonodesProposedBlockCounts.length))
|
|
12607
|
+
message.evonodesProposedBlockCounts = [];
|
|
12608
|
+
message.evonodesProposedBlockCounts.push($root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks.decode(reader, reader.uint32()));
|
|
12609
|
+
break;
|
|
12610
|
+
default:
|
|
12611
|
+
reader.skipType(tag & 7);
|
|
12612
|
+
break;
|
|
12613
|
+
}
|
|
12614
|
+
}
|
|
12615
|
+
return message;
|
|
12616
|
+
};
|
|
12617
|
+
|
|
12618
|
+
/**
|
|
12619
|
+
* Decodes an EvonodesProposedBlocks message from the specified reader or buffer, length delimited.
|
|
12620
|
+
* @function decodeDelimited
|
|
12621
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks
|
|
12622
|
+
* @static
|
|
12623
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12624
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks} EvonodesProposedBlocks
|
|
12625
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12626
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12627
|
+
*/
|
|
12628
|
+
EvonodesProposedBlocks.decodeDelimited = function decodeDelimited(reader) {
|
|
12629
|
+
if (!(reader instanceof $Reader))
|
|
12630
|
+
reader = new $Reader(reader);
|
|
12631
|
+
return this.decode(reader, reader.uint32());
|
|
12632
|
+
};
|
|
12633
|
+
|
|
12634
|
+
/**
|
|
12635
|
+
* Verifies an EvonodesProposedBlocks message.
|
|
12636
|
+
* @function verify
|
|
12637
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks
|
|
12638
|
+
* @static
|
|
12639
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12640
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12641
|
+
*/
|
|
12642
|
+
EvonodesProposedBlocks.verify = function verify(message) {
|
|
12643
|
+
if (typeof message !== "object" || message === null)
|
|
12644
|
+
return "object expected";
|
|
12645
|
+
if (message.evonodesProposedBlockCounts != null && message.hasOwnProperty("evonodesProposedBlockCounts")) {
|
|
12646
|
+
if (!Array.isArray(message.evonodesProposedBlockCounts))
|
|
12647
|
+
return "evonodesProposedBlockCounts: array expected";
|
|
12648
|
+
for (var i = 0; i < message.evonodesProposedBlockCounts.length; ++i) {
|
|
12649
|
+
var error = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks.verify(message.evonodesProposedBlockCounts[i]);
|
|
12650
|
+
if (error)
|
|
12651
|
+
return "evonodesProposedBlockCounts." + error;
|
|
12652
|
+
}
|
|
12653
|
+
}
|
|
12654
|
+
return null;
|
|
12655
|
+
};
|
|
12656
|
+
|
|
12657
|
+
/**
|
|
12658
|
+
* Creates an EvonodesProposedBlocks message from a plain object. Also converts values to their respective internal types.
|
|
12659
|
+
* @function fromObject
|
|
12660
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks
|
|
12661
|
+
* @static
|
|
12662
|
+
* @param {Object.<string,*>} object Plain object
|
|
12663
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks} EvonodesProposedBlocks
|
|
12664
|
+
*/
|
|
12665
|
+
EvonodesProposedBlocks.fromObject = function fromObject(object) {
|
|
12666
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks)
|
|
12667
|
+
return object;
|
|
12668
|
+
var message = new $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks();
|
|
12669
|
+
if (object.evonodesProposedBlockCounts) {
|
|
12670
|
+
if (!Array.isArray(object.evonodesProposedBlockCounts))
|
|
12671
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks.evonodesProposedBlockCounts: array expected");
|
|
12672
|
+
message.evonodesProposedBlockCounts = [];
|
|
12673
|
+
for (var i = 0; i < object.evonodesProposedBlockCounts.length; ++i) {
|
|
12674
|
+
if (typeof object.evonodesProposedBlockCounts[i] !== "object")
|
|
12675
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks.evonodesProposedBlockCounts: object expected");
|
|
12676
|
+
message.evonodesProposedBlockCounts[i] = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks.fromObject(object.evonodesProposedBlockCounts[i]);
|
|
12677
|
+
}
|
|
12678
|
+
}
|
|
12679
|
+
return message;
|
|
12680
|
+
};
|
|
12681
|
+
|
|
12682
|
+
/**
|
|
12683
|
+
* Creates a plain object from an EvonodesProposedBlocks message. Also converts values to other types if specified.
|
|
12684
|
+
* @function toObject
|
|
12685
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks
|
|
12686
|
+
* @static
|
|
12687
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks} message EvonodesProposedBlocks
|
|
12688
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12689
|
+
* @returns {Object.<string,*>} Plain object
|
|
12690
|
+
*/
|
|
12691
|
+
EvonodesProposedBlocks.toObject = function toObject(message, options) {
|
|
12692
|
+
if (!options)
|
|
12693
|
+
options = {};
|
|
12694
|
+
var object = {};
|
|
12695
|
+
if (options.arrays || options.defaults)
|
|
12696
|
+
object.evonodesProposedBlockCounts = [];
|
|
12697
|
+
if (message.evonodesProposedBlockCounts && message.evonodesProposedBlockCounts.length) {
|
|
12698
|
+
object.evonodesProposedBlockCounts = [];
|
|
12699
|
+
for (var j = 0; j < message.evonodesProposedBlockCounts.length; ++j)
|
|
12700
|
+
object.evonodesProposedBlockCounts[j] = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocks.toObject(message.evonodesProposedBlockCounts[j], options);
|
|
12701
|
+
}
|
|
12702
|
+
return object;
|
|
12703
|
+
};
|
|
12704
|
+
|
|
12705
|
+
/**
|
|
12706
|
+
* Converts this EvonodesProposedBlocks to JSON.
|
|
12707
|
+
* @function toJSON
|
|
12708
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocks
|
|
12709
|
+
* @instance
|
|
12710
|
+
* @returns {Object.<string,*>} JSON object
|
|
12711
|
+
*/
|
|
12712
|
+
EvonodesProposedBlocks.prototype.toJSON = function toJSON() {
|
|
12713
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12714
|
+
};
|
|
12715
|
+
|
|
12716
|
+
return EvonodesProposedBlocks;
|
|
12717
|
+
})();
|
|
12718
|
+
|
|
12719
|
+
return GetEvonodesProposedEpochBlocksResponseV0;
|
|
12720
|
+
})();
|
|
12721
|
+
|
|
12722
|
+
return GetEvonodesProposedEpochBlocksResponse;
|
|
12723
|
+
})();
|
|
12724
|
+
|
|
12725
|
+
v0.GetEvonodesProposedEpochBlocksByRangeRequest = (function() {
|
|
12726
|
+
|
|
12727
|
+
/**
|
|
12728
|
+
* Properties of a GetEvonodesProposedEpochBlocksByRangeRequest.
|
|
12729
|
+
* @memberof org.dash.platform.dapi.v0
|
|
12730
|
+
* @interface IGetEvonodesProposedEpochBlocksByRangeRequest
|
|
12731
|
+
* @property {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.IGetEvonodesProposedEpochBlocksByRangeRequestV0|null} [v0] GetEvonodesProposedEpochBlocksByRangeRequest v0
|
|
12732
|
+
*/
|
|
12733
|
+
|
|
12734
|
+
/**
|
|
12735
|
+
* Constructs a new GetEvonodesProposedEpochBlocksByRangeRequest.
|
|
12736
|
+
* @memberof org.dash.platform.dapi.v0
|
|
12737
|
+
* @classdesc Represents a GetEvonodesProposedEpochBlocksByRangeRequest.
|
|
12738
|
+
* @implements IGetEvonodesProposedEpochBlocksByRangeRequest
|
|
12739
|
+
* @constructor
|
|
12740
|
+
* @param {org.dash.platform.dapi.v0.IGetEvonodesProposedEpochBlocksByRangeRequest=} [properties] Properties to set
|
|
12741
|
+
*/
|
|
12742
|
+
function GetEvonodesProposedEpochBlocksByRangeRequest(properties) {
|
|
12743
|
+
if (properties)
|
|
12744
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12745
|
+
if (properties[keys[i]] != null)
|
|
12746
|
+
this[keys[i]] = properties[keys[i]];
|
|
12747
|
+
}
|
|
12748
|
+
|
|
12749
|
+
/**
|
|
12750
|
+
* GetEvonodesProposedEpochBlocksByRangeRequest v0.
|
|
12751
|
+
* @member {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.IGetEvonodesProposedEpochBlocksByRangeRequestV0|null|undefined} v0
|
|
12752
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12753
|
+
* @instance
|
|
12754
|
+
*/
|
|
12755
|
+
GetEvonodesProposedEpochBlocksByRangeRequest.prototype.v0 = null;
|
|
12756
|
+
|
|
12757
|
+
// OneOf field names bound to virtual getters and setters
|
|
12758
|
+
var $oneOfFields;
|
|
12759
|
+
|
|
12760
|
+
/**
|
|
12761
|
+
* GetEvonodesProposedEpochBlocksByRangeRequest version.
|
|
12762
|
+
* @member {"v0"|undefined} version
|
|
12763
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12764
|
+
* @instance
|
|
12765
|
+
*/
|
|
12766
|
+
Object.defineProperty(GetEvonodesProposedEpochBlocksByRangeRequest.prototype, "version", {
|
|
12767
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
12768
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
12769
|
+
});
|
|
12770
|
+
|
|
12771
|
+
/**
|
|
12772
|
+
* Creates a new GetEvonodesProposedEpochBlocksByRangeRequest instance using the specified properties.
|
|
12773
|
+
* @function create
|
|
12774
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12775
|
+
* @static
|
|
12776
|
+
* @param {org.dash.platform.dapi.v0.IGetEvonodesProposedEpochBlocksByRangeRequest=} [properties] Properties to set
|
|
12777
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest} GetEvonodesProposedEpochBlocksByRangeRequest instance
|
|
12778
|
+
*/
|
|
12779
|
+
GetEvonodesProposedEpochBlocksByRangeRequest.create = function create(properties) {
|
|
12780
|
+
return new GetEvonodesProposedEpochBlocksByRangeRequest(properties);
|
|
12781
|
+
};
|
|
12782
|
+
|
|
12783
|
+
/**
|
|
12784
|
+
* Encodes the specified GetEvonodesProposedEpochBlocksByRangeRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.verify|verify} messages.
|
|
12785
|
+
* @function encode
|
|
12786
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12787
|
+
* @static
|
|
12788
|
+
* @param {org.dash.platform.dapi.v0.IGetEvonodesProposedEpochBlocksByRangeRequest} message GetEvonodesProposedEpochBlocksByRangeRequest message or plain object to encode
|
|
12789
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12790
|
+
* @returns {$protobuf.Writer} Writer
|
|
12791
|
+
*/
|
|
12792
|
+
GetEvonodesProposedEpochBlocksByRangeRequest.encode = function encode(message, writer) {
|
|
12793
|
+
if (!writer)
|
|
12794
|
+
writer = $Writer.create();
|
|
12795
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
12796
|
+
$root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
12797
|
+
return writer;
|
|
12798
|
+
};
|
|
12799
|
+
|
|
12800
|
+
/**
|
|
12801
|
+
* Encodes the specified GetEvonodesProposedEpochBlocksByRangeRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.verify|verify} messages.
|
|
12802
|
+
* @function encodeDelimited
|
|
12803
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12804
|
+
* @static
|
|
12805
|
+
* @param {org.dash.platform.dapi.v0.IGetEvonodesProposedEpochBlocksByRangeRequest} message GetEvonodesProposedEpochBlocksByRangeRequest message or plain object to encode
|
|
12806
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12807
|
+
* @returns {$protobuf.Writer} Writer
|
|
12808
|
+
*/
|
|
12809
|
+
GetEvonodesProposedEpochBlocksByRangeRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12810
|
+
return this.encode(message, writer).ldelim();
|
|
12811
|
+
};
|
|
12812
|
+
|
|
12813
|
+
/**
|
|
12814
|
+
* Decodes a GetEvonodesProposedEpochBlocksByRangeRequest message from the specified reader or buffer.
|
|
12815
|
+
* @function decode
|
|
12816
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12817
|
+
* @static
|
|
12818
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12819
|
+
* @param {number} [length] Message length if known beforehand
|
|
12820
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest} GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12821
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12822
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12823
|
+
*/
|
|
12824
|
+
GetEvonodesProposedEpochBlocksByRangeRequest.decode = function decode(reader, length) {
|
|
12825
|
+
if (!(reader instanceof $Reader))
|
|
12826
|
+
reader = $Reader.create(reader);
|
|
12827
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest();
|
|
12828
|
+
while (reader.pos < end) {
|
|
12829
|
+
var tag = reader.uint32();
|
|
12830
|
+
switch (tag >>> 3) {
|
|
12831
|
+
case 1:
|
|
12832
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0.decode(reader, reader.uint32());
|
|
12833
|
+
break;
|
|
12834
|
+
default:
|
|
12835
|
+
reader.skipType(tag & 7);
|
|
12836
|
+
break;
|
|
12837
|
+
}
|
|
12838
|
+
}
|
|
12839
|
+
return message;
|
|
12840
|
+
};
|
|
12841
|
+
|
|
12842
|
+
/**
|
|
12843
|
+
* Decodes a GetEvonodesProposedEpochBlocksByRangeRequest message from the specified reader or buffer, length delimited.
|
|
12844
|
+
* @function decodeDelimited
|
|
12845
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12846
|
+
* @static
|
|
12847
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12848
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest} GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12849
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12850
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12851
|
+
*/
|
|
12852
|
+
GetEvonodesProposedEpochBlocksByRangeRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
12853
|
+
if (!(reader instanceof $Reader))
|
|
12854
|
+
reader = new $Reader(reader);
|
|
12855
|
+
return this.decode(reader, reader.uint32());
|
|
12856
|
+
};
|
|
12857
|
+
|
|
12858
|
+
/**
|
|
12859
|
+
* Verifies a GetEvonodesProposedEpochBlocksByRangeRequest message.
|
|
12860
|
+
* @function verify
|
|
12861
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12862
|
+
* @static
|
|
12863
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12864
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12865
|
+
*/
|
|
12866
|
+
GetEvonodesProposedEpochBlocksByRangeRequest.verify = function verify(message) {
|
|
12867
|
+
if (typeof message !== "object" || message === null)
|
|
12868
|
+
return "object expected";
|
|
12869
|
+
var properties = {};
|
|
12870
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
12871
|
+
properties.version = 1;
|
|
12872
|
+
{
|
|
12873
|
+
var error = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0.verify(message.v0);
|
|
12874
|
+
if (error)
|
|
12875
|
+
return "v0." + error;
|
|
12876
|
+
}
|
|
12877
|
+
}
|
|
12878
|
+
return null;
|
|
12879
|
+
};
|
|
12880
|
+
|
|
12881
|
+
/**
|
|
12882
|
+
* Creates a GetEvonodesProposedEpochBlocksByRangeRequest message from a plain object. Also converts values to their respective internal types.
|
|
12883
|
+
* @function fromObject
|
|
12884
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12885
|
+
* @static
|
|
12886
|
+
* @param {Object.<string,*>} object Plain object
|
|
12887
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest} GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12888
|
+
*/
|
|
12889
|
+
GetEvonodesProposedEpochBlocksByRangeRequest.fromObject = function fromObject(object) {
|
|
12890
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest)
|
|
12891
|
+
return object;
|
|
12892
|
+
var message = new $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest();
|
|
12893
|
+
if (object.v0 != null) {
|
|
12894
|
+
if (typeof object.v0 !== "object")
|
|
12895
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.v0: object expected");
|
|
12896
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0.fromObject(object.v0);
|
|
12897
|
+
}
|
|
12898
|
+
return message;
|
|
12899
|
+
};
|
|
12900
|
+
|
|
12901
|
+
/**
|
|
12902
|
+
* Creates a plain object from a GetEvonodesProposedEpochBlocksByRangeRequest message. Also converts values to other types if specified.
|
|
12903
|
+
* @function toObject
|
|
12904
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12905
|
+
* @static
|
|
12906
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest} message GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12907
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12908
|
+
* @returns {Object.<string,*>} Plain object
|
|
12909
|
+
*/
|
|
12910
|
+
GetEvonodesProposedEpochBlocksByRangeRequest.toObject = function toObject(message, options) {
|
|
12911
|
+
if (!options)
|
|
12912
|
+
options = {};
|
|
12913
|
+
var object = {};
|
|
12914
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
12915
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0.toObject(message.v0, options);
|
|
12916
|
+
if (options.oneofs)
|
|
12917
|
+
object.version = "v0";
|
|
12918
|
+
}
|
|
12919
|
+
return object;
|
|
12920
|
+
};
|
|
12921
|
+
|
|
12922
|
+
/**
|
|
12923
|
+
* Converts this GetEvonodesProposedEpochBlocksByRangeRequest to JSON.
|
|
12924
|
+
* @function toJSON
|
|
12925
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12926
|
+
* @instance
|
|
12927
|
+
* @returns {Object.<string,*>} JSON object
|
|
12928
|
+
*/
|
|
12929
|
+
GetEvonodesProposedEpochBlocksByRangeRequest.prototype.toJSON = function toJSON() {
|
|
12930
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12931
|
+
};
|
|
12932
|
+
|
|
12933
|
+
GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0 = (function() {
|
|
12934
|
+
|
|
12935
|
+
/**
|
|
12936
|
+
* Properties of a GetEvonodesProposedEpochBlocksByRangeRequestV0.
|
|
12937
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12938
|
+
* @interface IGetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
12939
|
+
* @property {number|null} [epoch] GetEvonodesProposedEpochBlocksByRangeRequestV0 epoch
|
|
12940
|
+
* @property {number|null} [limit] GetEvonodesProposedEpochBlocksByRangeRequestV0 limit
|
|
12941
|
+
* @property {Uint8Array|null} [startAfter] GetEvonodesProposedEpochBlocksByRangeRequestV0 startAfter
|
|
12942
|
+
* @property {Uint8Array|null} [startAt] GetEvonodesProposedEpochBlocksByRangeRequestV0 startAt
|
|
12943
|
+
* @property {boolean|null} [prove] GetEvonodesProposedEpochBlocksByRangeRequestV0 prove
|
|
12944
|
+
*/
|
|
12945
|
+
|
|
12946
|
+
/**
|
|
12947
|
+
* Constructs a new GetEvonodesProposedEpochBlocksByRangeRequestV0.
|
|
12948
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest
|
|
12949
|
+
* @classdesc Represents a GetEvonodesProposedEpochBlocksByRangeRequestV0.
|
|
12950
|
+
* @implements IGetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
12951
|
+
* @constructor
|
|
12952
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.IGetEvonodesProposedEpochBlocksByRangeRequestV0=} [properties] Properties to set
|
|
12953
|
+
*/
|
|
12954
|
+
function GetEvonodesProposedEpochBlocksByRangeRequestV0(properties) {
|
|
12955
|
+
if (properties)
|
|
12956
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12957
|
+
if (properties[keys[i]] != null)
|
|
12958
|
+
this[keys[i]] = properties[keys[i]];
|
|
12959
|
+
}
|
|
12960
|
+
|
|
12961
|
+
/**
|
|
12962
|
+
* GetEvonodesProposedEpochBlocksByRangeRequestV0 epoch.
|
|
12963
|
+
* @member {number} epoch
|
|
12964
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
12965
|
+
* @instance
|
|
12966
|
+
*/
|
|
12967
|
+
GetEvonodesProposedEpochBlocksByRangeRequestV0.prototype.epoch = 0;
|
|
12968
|
+
|
|
12969
|
+
/**
|
|
12970
|
+
* GetEvonodesProposedEpochBlocksByRangeRequestV0 limit.
|
|
12971
|
+
* @member {number} limit
|
|
12972
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
12973
|
+
* @instance
|
|
12974
|
+
*/
|
|
12975
|
+
GetEvonodesProposedEpochBlocksByRangeRequestV0.prototype.limit = 0;
|
|
12976
|
+
|
|
12977
|
+
/**
|
|
12978
|
+
* GetEvonodesProposedEpochBlocksByRangeRequestV0 startAfter.
|
|
12979
|
+
* @member {Uint8Array} startAfter
|
|
12980
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
12981
|
+
* @instance
|
|
12982
|
+
*/
|
|
12983
|
+
GetEvonodesProposedEpochBlocksByRangeRequestV0.prototype.startAfter = $util.newBuffer([]);
|
|
12984
|
+
|
|
12985
|
+
/**
|
|
12986
|
+
* GetEvonodesProposedEpochBlocksByRangeRequestV0 startAt.
|
|
12987
|
+
* @member {Uint8Array} startAt
|
|
12988
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
12989
|
+
* @instance
|
|
12990
|
+
*/
|
|
12991
|
+
GetEvonodesProposedEpochBlocksByRangeRequestV0.prototype.startAt = $util.newBuffer([]);
|
|
12992
|
+
|
|
12993
|
+
/**
|
|
12994
|
+
* GetEvonodesProposedEpochBlocksByRangeRequestV0 prove.
|
|
12995
|
+
* @member {boolean} prove
|
|
12996
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
12997
|
+
* @instance
|
|
12998
|
+
*/
|
|
12999
|
+
GetEvonodesProposedEpochBlocksByRangeRequestV0.prototype.prove = false;
|
|
13000
|
+
|
|
13001
|
+
// OneOf field names bound to virtual getters and setters
|
|
13002
|
+
var $oneOfFields;
|
|
13003
|
+
|
|
13004
|
+
/**
|
|
13005
|
+
* GetEvonodesProposedEpochBlocksByRangeRequestV0 start.
|
|
13006
|
+
* @member {"startAfter"|"startAt"|undefined} start
|
|
13007
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
13008
|
+
* @instance
|
|
13009
|
+
*/
|
|
13010
|
+
Object.defineProperty(GetEvonodesProposedEpochBlocksByRangeRequestV0.prototype, "start", {
|
|
13011
|
+
get: $util.oneOfGetter($oneOfFields = ["startAfter", "startAt"]),
|
|
13012
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
13013
|
+
});
|
|
13014
|
+
|
|
13015
|
+
/**
|
|
13016
|
+
* Creates a new GetEvonodesProposedEpochBlocksByRangeRequestV0 instance using the specified properties.
|
|
13017
|
+
* @function create
|
|
13018
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
13019
|
+
* @static
|
|
13020
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.IGetEvonodesProposedEpochBlocksByRangeRequestV0=} [properties] Properties to set
|
|
13021
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0} GetEvonodesProposedEpochBlocksByRangeRequestV0 instance
|
|
13022
|
+
*/
|
|
13023
|
+
GetEvonodesProposedEpochBlocksByRangeRequestV0.create = function create(properties) {
|
|
13024
|
+
return new GetEvonodesProposedEpochBlocksByRangeRequestV0(properties);
|
|
13025
|
+
};
|
|
13026
|
+
|
|
13027
|
+
/**
|
|
13028
|
+
* Encodes the specified GetEvonodesProposedEpochBlocksByRangeRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0.verify|verify} messages.
|
|
13029
|
+
* @function encode
|
|
13030
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
13031
|
+
* @static
|
|
13032
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.IGetEvonodesProposedEpochBlocksByRangeRequestV0} message GetEvonodesProposedEpochBlocksByRangeRequestV0 message or plain object to encode
|
|
13033
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13034
|
+
* @returns {$protobuf.Writer} Writer
|
|
13035
|
+
*/
|
|
13036
|
+
GetEvonodesProposedEpochBlocksByRangeRequestV0.encode = function encode(message, writer) {
|
|
13037
|
+
if (!writer)
|
|
13038
|
+
writer = $Writer.create();
|
|
13039
|
+
if (message.epoch != null && Object.hasOwnProperty.call(message, "epoch"))
|
|
13040
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.epoch);
|
|
13041
|
+
if (message.limit != null && Object.hasOwnProperty.call(message, "limit"))
|
|
13042
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit);
|
|
13043
|
+
if (message.startAfter != null && Object.hasOwnProperty.call(message, "startAfter"))
|
|
13044
|
+
writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.startAfter);
|
|
13045
|
+
if (message.startAt != null && Object.hasOwnProperty.call(message, "startAt"))
|
|
13046
|
+
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.startAt);
|
|
13047
|
+
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
13048
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.prove);
|
|
13049
|
+
return writer;
|
|
13050
|
+
};
|
|
13051
|
+
|
|
13052
|
+
/**
|
|
13053
|
+
* Encodes the specified GetEvonodesProposedEpochBlocksByRangeRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0.verify|verify} messages.
|
|
13054
|
+
* @function encodeDelimited
|
|
13055
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
13056
|
+
* @static
|
|
13057
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.IGetEvonodesProposedEpochBlocksByRangeRequestV0} message GetEvonodesProposedEpochBlocksByRangeRequestV0 message or plain object to encode
|
|
13058
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13059
|
+
* @returns {$protobuf.Writer} Writer
|
|
13060
|
+
*/
|
|
13061
|
+
GetEvonodesProposedEpochBlocksByRangeRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
13062
|
+
return this.encode(message, writer).ldelim();
|
|
13063
|
+
};
|
|
13064
|
+
|
|
13065
|
+
/**
|
|
13066
|
+
* Decodes a GetEvonodesProposedEpochBlocksByRangeRequestV0 message from the specified reader or buffer.
|
|
13067
|
+
* @function decode
|
|
13068
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
13069
|
+
* @static
|
|
13070
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13071
|
+
* @param {number} [length] Message length if known beforehand
|
|
13072
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0} GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
13073
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13074
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13075
|
+
*/
|
|
13076
|
+
GetEvonodesProposedEpochBlocksByRangeRequestV0.decode = function decode(reader, length) {
|
|
13077
|
+
if (!(reader instanceof $Reader))
|
|
13078
|
+
reader = $Reader.create(reader);
|
|
13079
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0();
|
|
13080
|
+
while (reader.pos < end) {
|
|
13081
|
+
var tag = reader.uint32();
|
|
13082
|
+
switch (tag >>> 3) {
|
|
13083
|
+
case 1:
|
|
13084
|
+
message.epoch = reader.uint32();
|
|
13085
|
+
break;
|
|
13086
|
+
case 2:
|
|
13087
|
+
message.limit = reader.uint32();
|
|
13088
|
+
break;
|
|
13089
|
+
case 3:
|
|
13090
|
+
message.startAfter = reader.bytes();
|
|
13091
|
+
break;
|
|
13092
|
+
case 4:
|
|
13093
|
+
message.startAt = reader.bytes();
|
|
13094
|
+
break;
|
|
13095
|
+
case 5:
|
|
13096
|
+
message.prove = reader.bool();
|
|
13097
|
+
break;
|
|
13098
|
+
default:
|
|
13099
|
+
reader.skipType(tag & 7);
|
|
13100
|
+
break;
|
|
13101
|
+
}
|
|
13102
|
+
}
|
|
13103
|
+
return message;
|
|
13104
|
+
};
|
|
13105
|
+
|
|
13106
|
+
/**
|
|
13107
|
+
* Decodes a GetEvonodesProposedEpochBlocksByRangeRequestV0 message from the specified reader or buffer, length delimited.
|
|
13108
|
+
* @function decodeDelimited
|
|
13109
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
13110
|
+
* @static
|
|
13111
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13112
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0} GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
13113
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13114
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13115
|
+
*/
|
|
13116
|
+
GetEvonodesProposedEpochBlocksByRangeRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
13117
|
+
if (!(reader instanceof $Reader))
|
|
13118
|
+
reader = new $Reader(reader);
|
|
13119
|
+
return this.decode(reader, reader.uint32());
|
|
13120
|
+
};
|
|
13121
|
+
|
|
13122
|
+
/**
|
|
13123
|
+
* Verifies a GetEvonodesProposedEpochBlocksByRangeRequestV0 message.
|
|
13124
|
+
* @function verify
|
|
13125
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
13126
|
+
* @static
|
|
13127
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
13128
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
13129
|
+
*/
|
|
13130
|
+
GetEvonodesProposedEpochBlocksByRangeRequestV0.verify = function verify(message) {
|
|
13131
|
+
if (typeof message !== "object" || message === null)
|
|
13132
|
+
return "object expected";
|
|
13133
|
+
var properties = {};
|
|
13134
|
+
if (message.epoch != null && message.hasOwnProperty("epoch"))
|
|
13135
|
+
if (!$util.isInteger(message.epoch))
|
|
13136
|
+
return "epoch: integer expected";
|
|
13137
|
+
if (message.limit != null && message.hasOwnProperty("limit"))
|
|
13138
|
+
if (!$util.isInteger(message.limit))
|
|
13139
|
+
return "limit: integer expected";
|
|
13140
|
+
if (message.startAfter != null && message.hasOwnProperty("startAfter")) {
|
|
13141
|
+
properties.start = 1;
|
|
13142
|
+
if (!(message.startAfter && typeof message.startAfter.length === "number" || $util.isString(message.startAfter)))
|
|
13143
|
+
return "startAfter: buffer expected";
|
|
13144
|
+
}
|
|
13145
|
+
if (message.startAt != null && message.hasOwnProperty("startAt")) {
|
|
13146
|
+
if (properties.start === 1)
|
|
13147
|
+
return "start: multiple values";
|
|
13148
|
+
properties.start = 1;
|
|
13149
|
+
if (!(message.startAt && typeof message.startAt.length === "number" || $util.isString(message.startAt)))
|
|
13150
|
+
return "startAt: buffer expected";
|
|
13151
|
+
}
|
|
13152
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
13153
|
+
if (typeof message.prove !== "boolean")
|
|
13154
|
+
return "prove: boolean expected";
|
|
13155
|
+
return null;
|
|
13156
|
+
};
|
|
13157
|
+
|
|
13158
|
+
/**
|
|
13159
|
+
* Creates a GetEvonodesProposedEpochBlocksByRangeRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
13160
|
+
* @function fromObject
|
|
13161
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
13162
|
+
* @static
|
|
13163
|
+
* @param {Object.<string,*>} object Plain object
|
|
13164
|
+
* @returns {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0} GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
13165
|
+
*/
|
|
13166
|
+
GetEvonodesProposedEpochBlocksByRangeRequestV0.fromObject = function fromObject(object) {
|
|
13167
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0)
|
|
13168
|
+
return object;
|
|
13169
|
+
var message = new $root.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0();
|
|
13170
|
+
if (object.epoch != null)
|
|
13171
|
+
message.epoch = object.epoch >>> 0;
|
|
13172
|
+
if (object.limit != null)
|
|
13173
|
+
message.limit = object.limit >>> 0;
|
|
13174
|
+
if (object.startAfter != null)
|
|
13175
|
+
if (typeof object.startAfter === "string")
|
|
13176
|
+
$util.base64.decode(object.startAfter, message.startAfter = $util.newBuffer($util.base64.length(object.startAfter)), 0);
|
|
13177
|
+
else if (object.startAfter.length >= 0)
|
|
13178
|
+
message.startAfter = object.startAfter;
|
|
13179
|
+
if (object.startAt != null)
|
|
13180
|
+
if (typeof object.startAt === "string")
|
|
13181
|
+
$util.base64.decode(object.startAt, message.startAt = $util.newBuffer($util.base64.length(object.startAt)), 0);
|
|
13182
|
+
else if (object.startAt.length >= 0)
|
|
13183
|
+
message.startAt = object.startAt;
|
|
13184
|
+
if (object.prove != null)
|
|
13185
|
+
message.prove = Boolean(object.prove);
|
|
13186
|
+
return message;
|
|
13187
|
+
};
|
|
13188
|
+
|
|
13189
|
+
/**
|
|
13190
|
+
* Creates a plain object from a GetEvonodesProposedEpochBlocksByRangeRequestV0 message. Also converts values to other types if specified.
|
|
13191
|
+
* @function toObject
|
|
13192
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
13193
|
+
* @static
|
|
13194
|
+
* @param {org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0} message GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
13195
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
13196
|
+
* @returns {Object.<string,*>} Plain object
|
|
13197
|
+
*/
|
|
13198
|
+
GetEvonodesProposedEpochBlocksByRangeRequestV0.toObject = function toObject(message, options) {
|
|
13199
|
+
if (!options)
|
|
13200
|
+
options = {};
|
|
13201
|
+
var object = {};
|
|
13202
|
+
if (options.defaults) {
|
|
13203
|
+
object.epoch = 0;
|
|
13204
|
+
object.limit = 0;
|
|
13205
|
+
object.prove = false;
|
|
13206
|
+
}
|
|
13207
|
+
if (message.epoch != null && message.hasOwnProperty("epoch"))
|
|
13208
|
+
object.epoch = message.epoch;
|
|
13209
|
+
if (message.limit != null && message.hasOwnProperty("limit"))
|
|
13210
|
+
object.limit = message.limit;
|
|
13211
|
+
if (message.startAfter != null && message.hasOwnProperty("startAfter")) {
|
|
13212
|
+
object.startAfter = options.bytes === String ? $util.base64.encode(message.startAfter, 0, message.startAfter.length) : options.bytes === Array ? Array.prototype.slice.call(message.startAfter) : message.startAfter;
|
|
13213
|
+
if (options.oneofs)
|
|
13214
|
+
object.start = "startAfter";
|
|
13215
|
+
}
|
|
13216
|
+
if (message.startAt != null && message.hasOwnProperty("startAt")) {
|
|
13217
|
+
object.startAt = options.bytes === String ? $util.base64.encode(message.startAt, 0, message.startAt.length) : options.bytes === Array ? Array.prototype.slice.call(message.startAt) : message.startAt;
|
|
13218
|
+
if (options.oneofs)
|
|
13219
|
+
object.start = "startAt";
|
|
13220
|
+
}
|
|
13221
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
13222
|
+
object.prove = message.prove;
|
|
13223
|
+
return object;
|
|
13224
|
+
};
|
|
13225
|
+
|
|
13226
|
+
/**
|
|
13227
|
+
* Converts this GetEvonodesProposedEpochBlocksByRangeRequestV0 to JSON.
|
|
13228
|
+
* @function toJSON
|
|
13229
|
+
* @memberof org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0
|
|
13230
|
+
* @instance
|
|
13231
|
+
* @returns {Object.<string,*>} JSON object
|
|
13232
|
+
*/
|
|
13233
|
+
GetEvonodesProposedEpochBlocksByRangeRequestV0.prototype.toJSON = function toJSON() {
|
|
13234
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13235
|
+
};
|
|
13236
|
+
|
|
13237
|
+
return GetEvonodesProposedEpochBlocksByRangeRequestV0;
|
|
13238
|
+
})();
|
|
13239
|
+
|
|
13240
|
+
return GetEvonodesProposedEpochBlocksByRangeRequest;
|
|
13241
|
+
})();
|
|
13242
|
+
|
|
13243
|
+
v0.GetIdentitiesBalancesRequest = (function() {
|
|
13244
|
+
|
|
13245
|
+
/**
|
|
13246
|
+
* Properties of a GetIdentitiesBalancesRequest.
|
|
13247
|
+
* @memberof org.dash.platform.dapi.v0
|
|
13248
|
+
* @interface IGetIdentitiesBalancesRequest
|
|
13249
|
+
* @property {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.IGetIdentitiesBalancesRequestV0|null} [v0] GetIdentitiesBalancesRequest v0
|
|
13250
|
+
*/
|
|
13251
|
+
|
|
13252
|
+
/**
|
|
13253
|
+
* Constructs a new GetIdentitiesBalancesRequest.
|
|
13254
|
+
* @memberof org.dash.platform.dapi.v0
|
|
13255
|
+
* @classdesc Represents a GetIdentitiesBalancesRequest.
|
|
13256
|
+
* @implements IGetIdentitiesBalancesRequest
|
|
13257
|
+
* @constructor
|
|
13258
|
+
* @param {org.dash.platform.dapi.v0.IGetIdentitiesBalancesRequest=} [properties] Properties to set
|
|
13259
|
+
*/
|
|
13260
|
+
function GetIdentitiesBalancesRequest(properties) {
|
|
13261
|
+
if (properties)
|
|
13262
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13263
|
+
if (properties[keys[i]] != null)
|
|
13264
|
+
this[keys[i]] = properties[keys[i]];
|
|
13265
|
+
}
|
|
13266
|
+
|
|
13267
|
+
/**
|
|
13268
|
+
* GetIdentitiesBalancesRequest v0.
|
|
13269
|
+
* @member {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.IGetIdentitiesBalancesRequestV0|null|undefined} v0
|
|
13270
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest
|
|
13271
|
+
* @instance
|
|
13272
|
+
*/
|
|
13273
|
+
GetIdentitiesBalancesRequest.prototype.v0 = null;
|
|
13274
|
+
|
|
13275
|
+
// OneOf field names bound to virtual getters and setters
|
|
13276
|
+
var $oneOfFields;
|
|
13277
|
+
|
|
13278
|
+
/**
|
|
13279
|
+
* GetIdentitiesBalancesRequest version.
|
|
13280
|
+
* @member {"v0"|undefined} version
|
|
13281
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest
|
|
13282
|
+
* @instance
|
|
13283
|
+
*/
|
|
13284
|
+
Object.defineProperty(GetIdentitiesBalancesRequest.prototype, "version", {
|
|
13285
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
13286
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
13287
|
+
});
|
|
13288
|
+
|
|
13289
|
+
/**
|
|
13290
|
+
* Creates a new GetIdentitiesBalancesRequest instance using the specified properties.
|
|
13291
|
+
* @function create
|
|
13292
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest
|
|
13293
|
+
* @static
|
|
13294
|
+
* @param {org.dash.platform.dapi.v0.IGetIdentitiesBalancesRequest=} [properties] Properties to set
|
|
13295
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest} GetIdentitiesBalancesRequest instance
|
|
13296
|
+
*/
|
|
13297
|
+
GetIdentitiesBalancesRequest.create = function create(properties) {
|
|
13298
|
+
return new GetIdentitiesBalancesRequest(properties);
|
|
13299
|
+
};
|
|
13300
|
+
|
|
13301
|
+
/**
|
|
13302
|
+
* Encodes the specified GetIdentitiesBalancesRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.verify|verify} messages.
|
|
13303
|
+
* @function encode
|
|
13304
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest
|
|
13305
|
+
* @static
|
|
13306
|
+
* @param {org.dash.platform.dapi.v0.IGetIdentitiesBalancesRequest} message GetIdentitiesBalancesRequest message or plain object to encode
|
|
13307
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13308
|
+
* @returns {$protobuf.Writer} Writer
|
|
13309
|
+
*/
|
|
13310
|
+
GetIdentitiesBalancesRequest.encode = function encode(message, writer) {
|
|
13311
|
+
if (!writer)
|
|
13312
|
+
writer = $Writer.create();
|
|
13313
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
13314
|
+
$root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
13315
|
+
return writer;
|
|
13316
|
+
};
|
|
13317
|
+
|
|
13318
|
+
/**
|
|
13319
|
+
* Encodes the specified GetIdentitiesBalancesRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.verify|verify} messages.
|
|
13320
|
+
* @function encodeDelimited
|
|
13321
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest
|
|
13322
|
+
* @static
|
|
13323
|
+
* @param {org.dash.platform.dapi.v0.IGetIdentitiesBalancesRequest} message GetIdentitiesBalancesRequest message or plain object to encode
|
|
13324
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13325
|
+
* @returns {$protobuf.Writer} Writer
|
|
13326
|
+
*/
|
|
13327
|
+
GetIdentitiesBalancesRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
13328
|
+
return this.encode(message, writer).ldelim();
|
|
13329
|
+
};
|
|
13330
|
+
|
|
13331
|
+
/**
|
|
13332
|
+
* Decodes a GetIdentitiesBalancesRequest message from the specified reader or buffer.
|
|
13333
|
+
* @function decode
|
|
13334
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest
|
|
13335
|
+
* @static
|
|
13336
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13337
|
+
* @param {number} [length] Message length if known beforehand
|
|
13338
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest} GetIdentitiesBalancesRequest
|
|
13339
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13340
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13341
|
+
*/
|
|
13342
|
+
GetIdentitiesBalancesRequest.decode = function decode(reader, length) {
|
|
13343
|
+
if (!(reader instanceof $Reader))
|
|
13344
|
+
reader = $Reader.create(reader);
|
|
13345
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest();
|
|
13346
|
+
while (reader.pos < end) {
|
|
13347
|
+
var tag = reader.uint32();
|
|
13348
|
+
switch (tag >>> 3) {
|
|
13349
|
+
case 1:
|
|
13350
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.decode(reader, reader.uint32());
|
|
13351
|
+
break;
|
|
13352
|
+
default:
|
|
13353
|
+
reader.skipType(tag & 7);
|
|
13354
|
+
break;
|
|
13355
|
+
}
|
|
13356
|
+
}
|
|
13357
|
+
return message;
|
|
13358
|
+
};
|
|
13359
|
+
|
|
13360
|
+
/**
|
|
13361
|
+
* Decodes a GetIdentitiesBalancesRequest message from the specified reader or buffer, length delimited.
|
|
13362
|
+
* @function decodeDelimited
|
|
13363
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest
|
|
13364
|
+
* @static
|
|
13365
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13366
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest} GetIdentitiesBalancesRequest
|
|
13367
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13368
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13369
|
+
*/
|
|
13370
|
+
GetIdentitiesBalancesRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
13371
|
+
if (!(reader instanceof $Reader))
|
|
13372
|
+
reader = new $Reader(reader);
|
|
13373
|
+
return this.decode(reader, reader.uint32());
|
|
13374
|
+
};
|
|
13375
|
+
|
|
13376
|
+
/**
|
|
13377
|
+
* Verifies a GetIdentitiesBalancesRequest message.
|
|
13378
|
+
* @function verify
|
|
13379
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest
|
|
13380
|
+
* @static
|
|
13381
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
13382
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
13383
|
+
*/
|
|
13384
|
+
GetIdentitiesBalancesRequest.verify = function verify(message) {
|
|
13385
|
+
if (typeof message !== "object" || message === null)
|
|
13386
|
+
return "object expected";
|
|
13387
|
+
var properties = {};
|
|
13388
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
13389
|
+
properties.version = 1;
|
|
13390
|
+
{
|
|
13391
|
+
var error = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.verify(message.v0);
|
|
13392
|
+
if (error)
|
|
13393
|
+
return "v0." + error;
|
|
13394
|
+
}
|
|
13395
|
+
}
|
|
13396
|
+
return null;
|
|
13397
|
+
};
|
|
13398
|
+
|
|
13399
|
+
/**
|
|
13400
|
+
* Creates a GetIdentitiesBalancesRequest message from a plain object. Also converts values to their respective internal types.
|
|
13401
|
+
* @function fromObject
|
|
13402
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest
|
|
13403
|
+
* @static
|
|
13404
|
+
* @param {Object.<string,*>} object Plain object
|
|
13405
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest} GetIdentitiesBalancesRequest
|
|
13406
|
+
*/
|
|
13407
|
+
GetIdentitiesBalancesRequest.fromObject = function fromObject(object) {
|
|
13408
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest)
|
|
13409
|
+
return object;
|
|
13410
|
+
var message = new $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest();
|
|
13411
|
+
if (object.v0 != null) {
|
|
13412
|
+
if (typeof object.v0 !== "object")
|
|
13413
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.v0: object expected");
|
|
13414
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.fromObject(object.v0);
|
|
13415
|
+
}
|
|
13416
|
+
return message;
|
|
13417
|
+
};
|
|
13418
|
+
|
|
13419
|
+
/**
|
|
13420
|
+
* Creates a plain object from a GetIdentitiesBalancesRequest message. Also converts values to other types if specified.
|
|
13421
|
+
* @function toObject
|
|
13422
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest
|
|
13423
|
+
* @static
|
|
13424
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest} message GetIdentitiesBalancesRequest
|
|
13425
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
13426
|
+
* @returns {Object.<string,*>} Plain object
|
|
13427
|
+
*/
|
|
13428
|
+
GetIdentitiesBalancesRequest.toObject = function toObject(message, options) {
|
|
13429
|
+
if (!options)
|
|
13430
|
+
options = {};
|
|
13431
|
+
var object = {};
|
|
13432
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
13433
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.toObject(message.v0, options);
|
|
13434
|
+
if (options.oneofs)
|
|
13435
|
+
object.version = "v0";
|
|
13436
|
+
}
|
|
13437
|
+
return object;
|
|
13438
|
+
};
|
|
13439
|
+
|
|
13440
|
+
/**
|
|
13441
|
+
* Converts this GetIdentitiesBalancesRequest to JSON.
|
|
13442
|
+
* @function toJSON
|
|
13443
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest
|
|
13444
|
+
* @instance
|
|
13445
|
+
* @returns {Object.<string,*>} JSON object
|
|
13446
|
+
*/
|
|
13447
|
+
GetIdentitiesBalancesRequest.prototype.toJSON = function toJSON() {
|
|
13448
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13449
|
+
};
|
|
13450
|
+
|
|
13451
|
+
GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0 = (function() {
|
|
13452
|
+
|
|
13453
|
+
/**
|
|
13454
|
+
* Properties of a GetIdentitiesBalancesRequestV0.
|
|
13455
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest
|
|
13456
|
+
* @interface IGetIdentitiesBalancesRequestV0
|
|
13457
|
+
* @property {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.IGetIdentitiesBalancesByKnownIdentityIds|null} [identitiesIds] GetIdentitiesBalancesRequestV0 identitiesIds
|
|
13458
|
+
* @property {boolean|null} [prove] GetIdentitiesBalancesRequestV0 prove
|
|
13459
|
+
*/
|
|
13460
|
+
|
|
13461
|
+
/**
|
|
13462
|
+
* Constructs a new GetIdentitiesBalancesRequestV0.
|
|
13463
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest
|
|
13464
|
+
* @classdesc Represents a GetIdentitiesBalancesRequestV0.
|
|
13465
|
+
* @implements IGetIdentitiesBalancesRequestV0
|
|
13466
|
+
* @constructor
|
|
13467
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.IGetIdentitiesBalancesRequestV0=} [properties] Properties to set
|
|
13468
|
+
*/
|
|
13469
|
+
function GetIdentitiesBalancesRequestV0(properties) {
|
|
13470
|
+
if (properties)
|
|
13471
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13472
|
+
if (properties[keys[i]] != null)
|
|
13473
|
+
this[keys[i]] = properties[keys[i]];
|
|
13474
|
+
}
|
|
13475
|
+
|
|
13476
|
+
/**
|
|
13477
|
+
* GetIdentitiesBalancesRequestV0 identitiesIds.
|
|
13478
|
+
* @member {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.IGetIdentitiesBalancesByKnownIdentityIds|null|undefined} identitiesIds
|
|
13479
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0
|
|
13480
|
+
* @instance
|
|
13481
|
+
*/
|
|
13482
|
+
GetIdentitiesBalancesRequestV0.prototype.identitiesIds = null;
|
|
13483
|
+
|
|
13484
|
+
/**
|
|
13485
|
+
* GetIdentitiesBalancesRequestV0 prove.
|
|
13486
|
+
* @member {boolean} prove
|
|
13487
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0
|
|
13488
|
+
* @instance
|
|
13489
|
+
*/
|
|
13490
|
+
GetIdentitiesBalancesRequestV0.prototype.prove = false;
|
|
13491
|
+
|
|
13492
|
+
/**
|
|
13493
|
+
* Creates a new GetIdentitiesBalancesRequestV0 instance using the specified properties.
|
|
13494
|
+
* @function create
|
|
13495
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0
|
|
13496
|
+
* @static
|
|
13497
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.IGetIdentitiesBalancesRequestV0=} [properties] Properties to set
|
|
13498
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0} GetIdentitiesBalancesRequestV0 instance
|
|
13499
|
+
*/
|
|
13500
|
+
GetIdentitiesBalancesRequestV0.create = function create(properties) {
|
|
13501
|
+
return new GetIdentitiesBalancesRequestV0(properties);
|
|
13502
|
+
};
|
|
13503
|
+
|
|
13504
|
+
/**
|
|
13505
|
+
* Encodes the specified GetIdentitiesBalancesRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.verify|verify} messages.
|
|
13506
|
+
* @function encode
|
|
13507
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0
|
|
13508
|
+
* @static
|
|
13509
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.IGetIdentitiesBalancesRequestV0} message GetIdentitiesBalancesRequestV0 message or plain object to encode
|
|
13510
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13511
|
+
* @returns {$protobuf.Writer} Writer
|
|
13512
|
+
*/
|
|
13513
|
+
GetIdentitiesBalancesRequestV0.encode = function encode(message, writer) {
|
|
13514
|
+
if (!writer)
|
|
13515
|
+
writer = $Writer.create();
|
|
13516
|
+
if (message.identitiesIds != null && Object.hasOwnProperty.call(message, "identitiesIds"))
|
|
13517
|
+
$root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds.encode(message.identitiesIds, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
13518
|
+
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
13519
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
|
|
13520
|
+
return writer;
|
|
13521
|
+
};
|
|
13522
|
+
|
|
13523
|
+
/**
|
|
13524
|
+
* Encodes the specified GetIdentitiesBalancesRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.verify|verify} messages.
|
|
13525
|
+
* @function encodeDelimited
|
|
13526
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0
|
|
13527
|
+
* @static
|
|
13528
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.IGetIdentitiesBalancesRequestV0} message GetIdentitiesBalancesRequestV0 message or plain object to encode
|
|
13529
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13530
|
+
* @returns {$protobuf.Writer} Writer
|
|
13531
|
+
*/
|
|
13532
|
+
GetIdentitiesBalancesRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
13533
|
+
return this.encode(message, writer).ldelim();
|
|
13534
|
+
};
|
|
13535
|
+
|
|
13536
|
+
/**
|
|
13537
|
+
* Decodes a GetIdentitiesBalancesRequestV0 message from the specified reader or buffer.
|
|
13538
|
+
* @function decode
|
|
13539
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0
|
|
13540
|
+
* @static
|
|
13541
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13542
|
+
* @param {number} [length] Message length if known beforehand
|
|
13543
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0} GetIdentitiesBalancesRequestV0
|
|
13544
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13545
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13546
|
+
*/
|
|
13547
|
+
GetIdentitiesBalancesRequestV0.decode = function decode(reader, length) {
|
|
13548
|
+
if (!(reader instanceof $Reader))
|
|
13549
|
+
reader = $Reader.create(reader);
|
|
13550
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0();
|
|
13551
|
+
while (reader.pos < end) {
|
|
13552
|
+
var tag = reader.uint32();
|
|
13553
|
+
switch (tag >>> 3) {
|
|
13554
|
+
case 1:
|
|
13555
|
+
message.identitiesIds = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds.decode(reader, reader.uint32());
|
|
13556
|
+
break;
|
|
13557
|
+
case 2:
|
|
13558
|
+
message.prove = reader.bool();
|
|
13559
|
+
break;
|
|
13560
|
+
default:
|
|
13561
|
+
reader.skipType(tag & 7);
|
|
13562
|
+
break;
|
|
13563
|
+
}
|
|
13564
|
+
}
|
|
13565
|
+
return message;
|
|
13566
|
+
};
|
|
13567
|
+
|
|
13568
|
+
/**
|
|
13569
|
+
* Decodes a GetIdentitiesBalancesRequestV0 message from the specified reader or buffer, length delimited.
|
|
13570
|
+
* @function decodeDelimited
|
|
13571
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0
|
|
13572
|
+
* @static
|
|
13573
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13574
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0} GetIdentitiesBalancesRequestV0
|
|
13575
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13576
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13577
|
+
*/
|
|
13578
|
+
GetIdentitiesBalancesRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
13579
|
+
if (!(reader instanceof $Reader))
|
|
13580
|
+
reader = new $Reader(reader);
|
|
13581
|
+
return this.decode(reader, reader.uint32());
|
|
13582
|
+
};
|
|
13583
|
+
|
|
13584
|
+
/**
|
|
13585
|
+
* Verifies a GetIdentitiesBalancesRequestV0 message.
|
|
13586
|
+
* @function verify
|
|
13587
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0
|
|
13588
|
+
* @static
|
|
13589
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
13590
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
13591
|
+
*/
|
|
13592
|
+
GetIdentitiesBalancesRequestV0.verify = function verify(message) {
|
|
13593
|
+
if (typeof message !== "object" || message === null)
|
|
13594
|
+
return "object expected";
|
|
13595
|
+
if (message.identitiesIds != null && message.hasOwnProperty("identitiesIds")) {
|
|
13596
|
+
var error = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds.verify(message.identitiesIds);
|
|
13597
|
+
if (error)
|
|
13598
|
+
return "identitiesIds." + error;
|
|
13599
|
+
}
|
|
13600
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
13601
|
+
if (typeof message.prove !== "boolean")
|
|
13602
|
+
return "prove: boolean expected";
|
|
13603
|
+
return null;
|
|
13604
|
+
};
|
|
13605
|
+
|
|
13606
|
+
/**
|
|
13607
|
+
* Creates a GetIdentitiesBalancesRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
13608
|
+
* @function fromObject
|
|
13609
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0
|
|
13610
|
+
* @static
|
|
13611
|
+
* @param {Object.<string,*>} object Plain object
|
|
13612
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0} GetIdentitiesBalancesRequestV0
|
|
13613
|
+
*/
|
|
13614
|
+
GetIdentitiesBalancesRequestV0.fromObject = function fromObject(object) {
|
|
13615
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0)
|
|
13616
|
+
return object;
|
|
13617
|
+
var message = new $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0();
|
|
13618
|
+
if (object.identitiesIds != null) {
|
|
13619
|
+
if (typeof object.identitiesIds !== "object")
|
|
13620
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.identitiesIds: object expected");
|
|
13621
|
+
message.identitiesIds = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0.GetIdentitiesBalancesByKnownIdentityIds.fromObject(object.identitiesIds);
|
|
13622
|
+
}
|
|
13623
|
+
if (object.prove != null)
|
|
13624
|
+
message.prove = Boolean(object.prove);
|
|
13625
|
+
return message;
|
|
13626
|
+
};
|
|
13627
|
+
|
|
13628
|
+
/**
|
|
13629
|
+
* Creates a plain object from a GetIdentitiesBalancesRequestV0 message. Also converts values to other types if specified.
|
|
13630
|
+
* @function toObject
|
|
13631
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0
|
|
13632
|
+
* @static
|
|
13633
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0} message GetIdentitiesBalancesRequestV0
|
|
13634
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
13635
|
+
* @returns {Object.<string,*>} Plain object
|
|
13636
|
+
*/
|
|
13637
|
+
GetIdentitiesBalancesRequestV0.toObject = function toObject(message, options) {
|
|
13638
|
+
if (!options)
|
|
13639
|
+
options = {};
|
|
13640
|
+
var object = {};
|
|
13641
|
+
if (options.defaults) {
|
|
13642
|
+
object.identitiesIds = null;
|
|
13643
|
+
object.prove = false;
|
|
13644
|
+
}
|
|
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
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
13648
|
+
object.prove = message.prove;
|
|
13649
|
+
return object;
|
|
13650
|
+
};
|
|
13651
|
+
|
|
13652
|
+
/**
|
|
13653
|
+
* Converts this GetIdentitiesBalancesRequestV0 to JSON.
|
|
13654
|
+
* @function toJSON
|
|
13655
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0
|
|
13656
|
+
* @instance
|
|
13657
|
+
* @returns {Object.<string,*>} JSON object
|
|
13658
|
+
*/
|
|
13659
|
+
GetIdentitiesBalancesRequestV0.prototype.toJSON = function toJSON() {
|
|
13660
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13661
|
+
};
|
|
13662
|
+
|
|
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
|
+
return GetIdentitiesBalancesRequestV0;
|
|
13870
|
+
})();
|
|
13871
|
+
|
|
13872
|
+
return GetIdentitiesBalancesRequest;
|
|
13873
|
+
})();
|
|
13874
|
+
|
|
13875
|
+
v0.GetIdentitiesBalancesResponse = (function() {
|
|
13876
|
+
|
|
13877
|
+
/**
|
|
13878
|
+
* Properties of a GetIdentitiesBalancesResponse.
|
|
13879
|
+
* @memberof org.dash.platform.dapi.v0
|
|
13880
|
+
* @interface IGetIdentitiesBalancesResponse
|
|
13881
|
+
* @property {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.IGetIdentitiesBalancesResponseV0|null} [v0] GetIdentitiesBalancesResponse v0
|
|
13882
|
+
*/
|
|
13883
|
+
|
|
13884
|
+
/**
|
|
13885
|
+
* Constructs a new GetIdentitiesBalancesResponse.
|
|
13886
|
+
* @memberof org.dash.platform.dapi.v0
|
|
13887
|
+
* @classdesc Represents a GetIdentitiesBalancesResponse.
|
|
13888
|
+
* @implements IGetIdentitiesBalancesResponse
|
|
13889
|
+
* @constructor
|
|
13890
|
+
* @param {org.dash.platform.dapi.v0.IGetIdentitiesBalancesResponse=} [properties] Properties to set
|
|
13891
|
+
*/
|
|
13892
|
+
function GetIdentitiesBalancesResponse(properties) {
|
|
13893
|
+
if (properties)
|
|
13894
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13895
|
+
if (properties[keys[i]] != null)
|
|
13896
|
+
this[keys[i]] = properties[keys[i]];
|
|
13897
|
+
}
|
|
13898
|
+
|
|
13899
|
+
/**
|
|
13900
|
+
* GetIdentitiesBalancesResponse v0.
|
|
13901
|
+
* @member {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.IGetIdentitiesBalancesResponseV0|null|undefined} v0
|
|
13902
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse
|
|
13903
|
+
* @instance
|
|
13904
|
+
*/
|
|
13905
|
+
GetIdentitiesBalancesResponse.prototype.v0 = null;
|
|
13906
|
+
|
|
13907
|
+
// OneOf field names bound to virtual getters and setters
|
|
13908
|
+
var $oneOfFields;
|
|
13909
|
+
|
|
13910
|
+
/**
|
|
13911
|
+
* GetIdentitiesBalancesResponse version.
|
|
13912
|
+
* @member {"v0"|undefined} version
|
|
13913
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse
|
|
13914
|
+
* @instance
|
|
13915
|
+
*/
|
|
13916
|
+
Object.defineProperty(GetIdentitiesBalancesResponse.prototype, "version", {
|
|
13917
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
13918
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
13919
|
+
});
|
|
13920
|
+
|
|
13921
|
+
/**
|
|
13922
|
+
* Creates a new GetIdentitiesBalancesResponse instance using the specified properties.
|
|
13923
|
+
* @function create
|
|
13924
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse
|
|
13925
|
+
* @static
|
|
13926
|
+
* @param {org.dash.platform.dapi.v0.IGetIdentitiesBalancesResponse=} [properties] Properties to set
|
|
13927
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse} GetIdentitiesBalancesResponse instance
|
|
13928
|
+
*/
|
|
13929
|
+
GetIdentitiesBalancesResponse.create = function create(properties) {
|
|
13930
|
+
return new GetIdentitiesBalancesResponse(properties);
|
|
13931
|
+
};
|
|
13932
|
+
|
|
13933
|
+
/**
|
|
13934
|
+
* Encodes the specified GetIdentitiesBalancesResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.verify|verify} messages.
|
|
13935
|
+
* @function encode
|
|
13936
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse
|
|
13937
|
+
* @static
|
|
13938
|
+
* @param {org.dash.platform.dapi.v0.IGetIdentitiesBalancesResponse} message GetIdentitiesBalancesResponse message or plain object to encode
|
|
13939
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13940
|
+
* @returns {$protobuf.Writer} Writer
|
|
13941
|
+
*/
|
|
13942
|
+
GetIdentitiesBalancesResponse.encode = function encode(message, writer) {
|
|
13943
|
+
if (!writer)
|
|
13944
|
+
writer = $Writer.create();
|
|
13945
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
13946
|
+
$root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
13947
|
+
return writer;
|
|
13948
|
+
};
|
|
13949
|
+
|
|
13950
|
+
/**
|
|
13951
|
+
* Encodes the specified GetIdentitiesBalancesResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.verify|verify} messages.
|
|
13952
|
+
* @function encodeDelimited
|
|
13953
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse
|
|
13954
|
+
* @static
|
|
13955
|
+
* @param {org.dash.platform.dapi.v0.IGetIdentitiesBalancesResponse} message GetIdentitiesBalancesResponse message or plain object to encode
|
|
13956
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13957
|
+
* @returns {$protobuf.Writer} Writer
|
|
13958
|
+
*/
|
|
13959
|
+
GetIdentitiesBalancesResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
13960
|
+
return this.encode(message, writer).ldelim();
|
|
13961
|
+
};
|
|
13962
|
+
|
|
13963
|
+
/**
|
|
13964
|
+
* Decodes a GetIdentitiesBalancesResponse message from the specified reader or buffer.
|
|
13965
|
+
* @function decode
|
|
13966
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse
|
|
13967
|
+
* @static
|
|
13968
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13969
|
+
* @param {number} [length] Message length if known beforehand
|
|
13970
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse} GetIdentitiesBalancesResponse
|
|
13971
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13972
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13973
|
+
*/
|
|
13974
|
+
GetIdentitiesBalancesResponse.decode = function decode(reader, length) {
|
|
13975
|
+
if (!(reader instanceof $Reader))
|
|
13976
|
+
reader = $Reader.create(reader);
|
|
13977
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse();
|
|
13978
|
+
while (reader.pos < end) {
|
|
13979
|
+
var tag = reader.uint32();
|
|
13980
|
+
switch (tag >>> 3) {
|
|
13981
|
+
case 1:
|
|
13982
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.decode(reader, reader.uint32());
|
|
13983
|
+
break;
|
|
13984
|
+
default:
|
|
13985
|
+
reader.skipType(tag & 7);
|
|
13986
|
+
break;
|
|
13987
|
+
}
|
|
13988
|
+
}
|
|
13989
|
+
return message;
|
|
13990
|
+
};
|
|
13991
|
+
|
|
13992
|
+
/**
|
|
13993
|
+
* Decodes a GetIdentitiesBalancesResponse message from the specified reader or buffer, length delimited.
|
|
13994
|
+
* @function decodeDelimited
|
|
13995
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse
|
|
13996
|
+
* @static
|
|
13997
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13998
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse} GetIdentitiesBalancesResponse
|
|
13999
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14000
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14001
|
+
*/
|
|
14002
|
+
GetIdentitiesBalancesResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
14003
|
+
if (!(reader instanceof $Reader))
|
|
14004
|
+
reader = new $Reader(reader);
|
|
14005
|
+
return this.decode(reader, reader.uint32());
|
|
14006
|
+
};
|
|
14007
|
+
|
|
14008
|
+
/**
|
|
14009
|
+
* Verifies a GetIdentitiesBalancesResponse message.
|
|
14010
|
+
* @function verify
|
|
14011
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse
|
|
14012
|
+
* @static
|
|
14013
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14014
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14015
|
+
*/
|
|
14016
|
+
GetIdentitiesBalancesResponse.verify = function verify(message) {
|
|
14017
|
+
if (typeof message !== "object" || message === null)
|
|
14018
|
+
return "object expected";
|
|
14019
|
+
var properties = {};
|
|
14020
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
14021
|
+
properties.version = 1;
|
|
14022
|
+
{
|
|
14023
|
+
var error = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.verify(message.v0);
|
|
14024
|
+
if (error)
|
|
14025
|
+
return "v0." + error;
|
|
14026
|
+
}
|
|
14027
|
+
}
|
|
14028
|
+
return null;
|
|
14029
|
+
};
|
|
14030
|
+
|
|
14031
|
+
/**
|
|
14032
|
+
* Creates a GetIdentitiesBalancesResponse message from a plain object. Also converts values to their respective internal types.
|
|
14033
|
+
* @function fromObject
|
|
14034
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse
|
|
14035
|
+
* @static
|
|
14036
|
+
* @param {Object.<string,*>} object Plain object
|
|
14037
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse} GetIdentitiesBalancesResponse
|
|
14038
|
+
*/
|
|
14039
|
+
GetIdentitiesBalancesResponse.fromObject = function fromObject(object) {
|
|
14040
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse)
|
|
14041
|
+
return object;
|
|
14042
|
+
var message = new $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse();
|
|
14043
|
+
if (object.v0 != null) {
|
|
14044
|
+
if (typeof object.v0 !== "object")
|
|
14045
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.v0: object expected");
|
|
14046
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.fromObject(object.v0);
|
|
14047
|
+
}
|
|
14048
|
+
return message;
|
|
14049
|
+
};
|
|
14050
|
+
|
|
14051
|
+
/**
|
|
14052
|
+
* Creates a plain object from a GetIdentitiesBalancesResponse message. Also converts values to other types if specified.
|
|
14053
|
+
* @function toObject
|
|
14054
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse
|
|
14055
|
+
* @static
|
|
14056
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse} message GetIdentitiesBalancesResponse
|
|
14057
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14058
|
+
* @returns {Object.<string,*>} Plain object
|
|
14059
|
+
*/
|
|
14060
|
+
GetIdentitiesBalancesResponse.toObject = function toObject(message, options) {
|
|
14061
|
+
if (!options)
|
|
14062
|
+
options = {};
|
|
14063
|
+
var object = {};
|
|
14064
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
14065
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.toObject(message.v0, options);
|
|
14066
|
+
if (options.oneofs)
|
|
14067
|
+
object.version = "v0";
|
|
14068
|
+
}
|
|
14069
|
+
return object;
|
|
14070
|
+
};
|
|
14071
|
+
|
|
14072
|
+
/**
|
|
14073
|
+
* Converts this GetIdentitiesBalancesResponse to JSON.
|
|
14074
|
+
* @function toJSON
|
|
14075
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse
|
|
14076
|
+
* @instance
|
|
14077
|
+
* @returns {Object.<string,*>} JSON object
|
|
14078
|
+
*/
|
|
14079
|
+
GetIdentitiesBalancesResponse.prototype.toJSON = function toJSON() {
|
|
14080
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14081
|
+
};
|
|
14082
|
+
|
|
14083
|
+
GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0 = (function() {
|
|
14084
|
+
|
|
14085
|
+
/**
|
|
14086
|
+
* Properties of a GetIdentitiesBalancesResponseV0.
|
|
14087
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse
|
|
14088
|
+
* @interface IGetIdentitiesBalancesResponseV0
|
|
14089
|
+
* @property {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IIdentitiesBalances|null} [identitiesBalances] GetIdentitiesBalancesResponseV0 identitiesBalances
|
|
14090
|
+
* @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetIdentitiesBalancesResponseV0 proof
|
|
14091
|
+
* @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetIdentitiesBalancesResponseV0 metadata
|
|
14092
|
+
*/
|
|
14093
|
+
|
|
14094
|
+
/**
|
|
14095
|
+
* Constructs a new GetIdentitiesBalancesResponseV0.
|
|
14096
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse
|
|
14097
|
+
* @classdesc Represents a GetIdentitiesBalancesResponseV0.
|
|
14098
|
+
* @implements IGetIdentitiesBalancesResponseV0
|
|
14099
|
+
* @constructor
|
|
14100
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.IGetIdentitiesBalancesResponseV0=} [properties] Properties to set
|
|
14101
|
+
*/
|
|
14102
|
+
function GetIdentitiesBalancesResponseV0(properties) {
|
|
14103
|
+
if (properties)
|
|
14104
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14105
|
+
if (properties[keys[i]] != null)
|
|
14106
|
+
this[keys[i]] = properties[keys[i]];
|
|
14107
|
+
}
|
|
14108
|
+
|
|
14109
|
+
/**
|
|
14110
|
+
* GetIdentitiesBalancesResponseV0 identitiesBalances.
|
|
14111
|
+
* @member {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IIdentitiesBalances|null|undefined} identitiesBalances
|
|
14112
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14113
|
+
* @instance
|
|
14114
|
+
*/
|
|
14115
|
+
GetIdentitiesBalancesResponseV0.prototype.identitiesBalances = null;
|
|
14116
|
+
|
|
14117
|
+
/**
|
|
14118
|
+
* GetIdentitiesBalancesResponseV0 proof.
|
|
14119
|
+
* @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
|
|
14120
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14121
|
+
* @instance
|
|
14122
|
+
*/
|
|
14123
|
+
GetIdentitiesBalancesResponseV0.prototype.proof = null;
|
|
14124
|
+
|
|
14125
|
+
/**
|
|
14126
|
+
* GetIdentitiesBalancesResponseV0 metadata.
|
|
14127
|
+
* @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
|
|
14128
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14129
|
+
* @instance
|
|
14130
|
+
*/
|
|
14131
|
+
GetIdentitiesBalancesResponseV0.prototype.metadata = null;
|
|
14132
|
+
|
|
14133
|
+
// OneOf field names bound to virtual getters and setters
|
|
14134
|
+
var $oneOfFields;
|
|
14135
|
+
|
|
14136
|
+
/**
|
|
14137
|
+
* GetIdentitiesBalancesResponseV0 result.
|
|
14138
|
+
* @member {"identitiesBalances"|"proof"|undefined} result
|
|
14139
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14140
|
+
* @instance
|
|
14141
|
+
*/
|
|
14142
|
+
Object.defineProperty(GetIdentitiesBalancesResponseV0.prototype, "result", {
|
|
14143
|
+
get: $util.oneOfGetter($oneOfFields = ["identitiesBalances", "proof"]),
|
|
14144
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
14145
|
+
});
|
|
14146
|
+
|
|
14147
|
+
/**
|
|
14148
|
+
* Creates a new GetIdentitiesBalancesResponseV0 instance using the specified properties.
|
|
14149
|
+
* @function create
|
|
14150
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14151
|
+
* @static
|
|
14152
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.IGetIdentitiesBalancesResponseV0=} [properties] Properties to set
|
|
14153
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0} GetIdentitiesBalancesResponseV0 instance
|
|
14154
|
+
*/
|
|
14155
|
+
GetIdentitiesBalancesResponseV0.create = function create(properties) {
|
|
14156
|
+
return new GetIdentitiesBalancesResponseV0(properties);
|
|
14157
|
+
};
|
|
14158
|
+
|
|
14159
|
+
/**
|
|
14160
|
+
* Encodes the specified GetIdentitiesBalancesResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.verify|verify} messages.
|
|
14161
|
+
* @function encode
|
|
14162
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14163
|
+
* @static
|
|
14164
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.IGetIdentitiesBalancesResponseV0} message GetIdentitiesBalancesResponseV0 message or plain object to encode
|
|
14165
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14166
|
+
* @returns {$protobuf.Writer} Writer
|
|
14167
|
+
*/
|
|
14168
|
+
GetIdentitiesBalancesResponseV0.encode = function encode(message, writer) {
|
|
14169
|
+
if (!writer)
|
|
14170
|
+
writer = $Writer.create();
|
|
14171
|
+
if (message.identitiesBalances != null && Object.hasOwnProperty.call(message, "identitiesBalances"))
|
|
14172
|
+
$root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances.encode(message.identitiesBalances, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
14173
|
+
if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
|
|
14174
|
+
$root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
14175
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
14176
|
+
$root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
14177
|
+
return writer;
|
|
14178
|
+
};
|
|
14179
|
+
|
|
14180
|
+
/**
|
|
14181
|
+
* Encodes the specified GetIdentitiesBalancesResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.verify|verify} messages.
|
|
14182
|
+
* @function encodeDelimited
|
|
14183
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14184
|
+
* @static
|
|
14185
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.IGetIdentitiesBalancesResponseV0} message GetIdentitiesBalancesResponseV0 message or plain object to encode
|
|
14186
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14187
|
+
* @returns {$protobuf.Writer} Writer
|
|
14188
|
+
*/
|
|
14189
|
+
GetIdentitiesBalancesResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14190
|
+
return this.encode(message, writer).ldelim();
|
|
14191
|
+
};
|
|
14192
|
+
|
|
14193
|
+
/**
|
|
14194
|
+
* Decodes a GetIdentitiesBalancesResponseV0 message from the specified reader or buffer.
|
|
14195
|
+
* @function decode
|
|
14196
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14197
|
+
* @static
|
|
14198
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14199
|
+
* @param {number} [length] Message length if known beforehand
|
|
14200
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0} GetIdentitiesBalancesResponseV0
|
|
14201
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14202
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14203
|
+
*/
|
|
14204
|
+
GetIdentitiesBalancesResponseV0.decode = function decode(reader, length) {
|
|
14205
|
+
if (!(reader instanceof $Reader))
|
|
14206
|
+
reader = $Reader.create(reader);
|
|
14207
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0();
|
|
14208
|
+
while (reader.pos < end) {
|
|
14209
|
+
var tag = reader.uint32();
|
|
14210
|
+
switch (tag >>> 3) {
|
|
14211
|
+
case 1:
|
|
14212
|
+
message.identitiesBalances = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances.decode(reader, reader.uint32());
|
|
14213
|
+
break;
|
|
14214
|
+
case 2:
|
|
14215
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
|
|
14216
|
+
break;
|
|
14217
|
+
case 3:
|
|
14218
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
|
|
14219
|
+
break;
|
|
14220
|
+
default:
|
|
14221
|
+
reader.skipType(tag & 7);
|
|
14222
|
+
break;
|
|
14223
|
+
}
|
|
14224
|
+
}
|
|
14225
|
+
return message;
|
|
14226
|
+
};
|
|
14227
|
+
|
|
14228
|
+
/**
|
|
14229
|
+
* Decodes a GetIdentitiesBalancesResponseV0 message from the specified reader or buffer, length delimited.
|
|
14230
|
+
* @function decodeDelimited
|
|
14231
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14232
|
+
* @static
|
|
14233
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14234
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0} GetIdentitiesBalancesResponseV0
|
|
14235
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14236
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14237
|
+
*/
|
|
14238
|
+
GetIdentitiesBalancesResponseV0.decodeDelimited = function decodeDelimited(reader) {
|
|
14239
|
+
if (!(reader instanceof $Reader))
|
|
14240
|
+
reader = new $Reader(reader);
|
|
14241
|
+
return this.decode(reader, reader.uint32());
|
|
14242
|
+
};
|
|
14243
|
+
|
|
14244
|
+
/**
|
|
14245
|
+
* Verifies a GetIdentitiesBalancesResponseV0 message.
|
|
14246
|
+
* @function verify
|
|
14247
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14248
|
+
* @static
|
|
14249
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14250
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14251
|
+
*/
|
|
14252
|
+
GetIdentitiesBalancesResponseV0.verify = function verify(message) {
|
|
14253
|
+
if (typeof message !== "object" || message === null)
|
|
14254
|
+
return "object expected";
|
|
14255
|
+
var properties = {};
|
|
14256
|
+
if (message.identitiesBalances != null && message.hasOwnProperty("identitiesBalances")) {
|
|
14257
|
+
properties.result = 1;
|
|
14258
|
+
{
|
|
14259
|
+
var error = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances.verify(message.identitiesBalances);
|
|
14260
|
+
if (error)
|
|
14261
|
+
return "identitiesBalances." + error;
|
|
14262
|
+
}
|
|
14263
|
+
}
|
|
14264
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
14265
|
+
if (properties.result === 1)
|
|
14266
|
+
return "result: multiple values";
|
|
14267
|
+
properties.result = 1;
|
|
14268
|
+
{
|
|
14269
|
+
var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
|
|
14270
|
+
if (error)
|
|
14271
|
+
return "proof." + error;
|
|
14272
|
+
}
|
|
14273
|
+
}
|
|
14274
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
14275
|
+
var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
|
|
14276
|
+
if (error)
|
|
14277
|
+
return "metadata." + error;
|
|
14278
|
+
}
|
|
14279
|
+
return null;
|
|
14280
|
+
};
|
|
14281
|
+
|
|
14282
|
+
/**
|
|
14283
|
+
* Creates a GetIdentitiesBalancesResponseV0 message from a plain object. Also converts values to their respective internal types.
|
|
14284
|
+
* @function fromObject
|
|
14285
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14286
|
+
* @static
|
|
14287
|
+
* @param {Object.<string,*>} object Plain object
|
|
14288
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0} GetIdentitiesBalancesResponseV0
|
|
14289
|
+
*/
|
|
14290
|
+
GetIdentitiesBalancesResponseV0.fromObject = function fromObject(object) {
|
|
14291
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0)
|
|
14292
|
+
return object;
|
|
14293
|
+
var message = new $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0();
|
|
14294
|
+
if (object.identitiesBalances != null) {
|
|
14295
|
+
if (typeof object.identitiesBalances !== "object")
|
|
14296
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.identitiesBalances: object expected");
|
|
14297
|
+
message.identitiesBalances = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances.fromObject(object.identitiesBalances);
|
|
14298
|
+
}
|
|
14299
|
+
if (object.proof != null) {
|
|
14300
|
+
if (typeof object.proof !== "object")
|
|
14301
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.proof: object expected");
|
|
14302
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
|
|
14303
|
+
}
|
|
14304
|
+
if (object.metadata != null) {
|
|
14305
|
+
if (typeof object.metadata !== "object")
|
|
14306
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.metadata: object expected");
|
|
14307
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
|
|
14308
|
+
}
|
|
14309
|
+
return message;
|
|
14310
|
+
};
|
|
14311
|
+
|
|
14312
|
+
/**
|
|
14313
|
+
* Creates a plain object from a GetIdentitiesBalancesResponseV0 message. Also converts values to other types if specified.
|
|
14314
|
+
* @function toObject
|
|
14315
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14316
|
+
* @static
|
|
14317
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0} message GetIdentitiesBalancesResponseV0
|
|
14318
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14319
|
+
* @returns {Object.<string,*>} Plain object
|
|
14320
|
+
*/
|
|
14321
|
+
GetIdentitiesBalancesResponseV0.toObject = function toObject(message, options) {
|
|
14322
|
+
if (!options)
|
|
14323
|
+
options = {};
|
|
14324
|
+
var object = {};
|
|
14325
|
+
if (options.defaults)
|
|
14326
|
+
object.metadata = null;
|
|
14327
|
+
if (message.identitiesBalances != null && message.hasOwnProperty("identitiesBalances")) {
|
|
14328
|
+
object.identitiesBalances = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances.toObject(message.identitiesBalances, options);
|
|
14329
|
+
if (options.oneofs)
|
|
14330
|
+
object.result = "identitiesBalances";
|
|
14331
|
+
}
|
|
14332
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
14333
|
+
object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
|
|
14334
|
+
if (options.oneofs)
|
|
14335
|
+
object.result = "proof";
|
|
14336
|
+
}
|
|
14337
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
14338
|
+
object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
|
|
14339
|
+
return object;
|
|
14340
|
+
};
|
|
14341
|
+
|
|
14342
|
+
/**
|
|
14343
|
+
* Converts this GetIdentitiesBalancesResponseV0 to JSON.
|
|
14344
|
+
* @function toJSON
|
|
14345
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14346
|
+
* @instance
|
|
14347
|
+
* @returns {Object.<string,*>} JSON object
|
|
14348
|
+
*/
|
|
14349
|
+
GetIdentitiesBalancesResponseV0.prototype.toJSON = function toJSON() {
|
|
14350
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14351
|
+
};
|
|
14352
|
+
|
|
14353
|
+
GetIdentitiesBalancesResponseV0.IdentityBalance = (function() {
|
|
14354
|
+
|
|
14355
|
+
/**
|
|
14356
|
+
* Properties of an IdentityBalance.
|
|
14357
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14358
|
+
* @interface IIdentityBalance
|
|
14359
|
+
* @property {Uint8Array|null} [identityId] IdentityBalance identityId
|
|
14360
|
+
* @property {number|Long|null} [balance] IdentityBalance balance
|
|
14361
|
+
*/
|
|
14362
|
+
|
|
14363
|
+
/**
|
|
14364
|
+
* Constructs a new IdentityBalance.
|
|
14365
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14366
|
+
* @classdesc Represents an IdentityBalance.
|
|
14367
|
+
* @implements IIdentityBalance
|
|
14368
|
+
* @constructor
|
|
14369
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IIdentityBalance=} [properties] Properties to set
|
|
14370
|
+
*/
|
|
14371
|
+
function IdentityBalance(properties) {
|
|
14372
|
+
if (properties)
|
|
14373
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14374
|
+
if (properties[keys[i]] != null)
|
|
14375
|
+
this[keys[i]] = properties[keys[i]];
|
|
14376
|
+
}
|
|
14377
|
+
|
|
14378
|
+
/**
|
|
14379
|
+
* IdentityBalance identityId.
|
|
14380
|
+
* @member {Uint8Array} identityId
|
|
14381
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance
|
|
14382
|
+
* @instance
|
|
14383
|
+
*/
|
|
14384
|
+
IdentityBalance.prototype.identityId = $util.newBuffer([]);
|
|
14385
|
+
|
|
14386
|
+
/**
|
|
14387
|
+
* IdentityBalance balance.
|
|
14388
|
+
* @member {number|Long} balance
|
|
14389
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance
|
|
14390
|
+
* @instance
|
|
14391
|
+
*/
|
|
14392
|
+
IdentityBalance.prototype.balance = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
14393
|
+
|
|
14394
|
+
/**
|
|
14395
|
+
* Creates a new IdentityBalance instance using the specified properties.
|
|
14396
|
+
* @function create
|
|
14397
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance
|
|
14398
|
+
* @static
|
|
14399
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IIdentityBalance=} [properties] Properties to set
|
|
14400
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance} IdentityBalance instance
|
|
14401
|
+
*/
|
|
14402
|
+
IdentityBalance.create = function create(properties) {
|
|
14403
|
+
return new IdentityBalance(properties);
|
|
14404
|
+
};
|
|
14405
|
+
|
|
14406
|
+
/**
|
|
14407
|
+
* Encodes the specified IdentityBalance message. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance.verify|verify} messages.
|
|
14408
|
+
* @function encode
|
|
14409
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance
|
|
14410
|
+
* @static
|
|
14411
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IIdentityBalance} message IdentityBalance message or plain object to encode
|
|
14412
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14413
|
+
* @returns {$protobuf.Writer} Writer
|
|
14414
|
+
*/
|
|
14415
|
+
IdentityBalance.encode = function encode(message, writer) {
|
|
14416
|
+
if (!writer)
|
|
14417
|
+
writer = $Writer.create();
|
|
14418
|
+
if (message.identityId != null && Object.hasOwnProperty.call(message, "identityId"))
|
|
14419
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.identityId);
|
|
14420
|
+
if (message.balance != null && Object.hasOwnProperty.call(message, "balance"))
|
|
14421
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.balance);
|
|
14422
|
+
return writer;
|
|
14423
|
+
};
|
|
14424
|
+
|
|
14425
|
+
/**
|
|
14426
|
+
* Encodes the specified IdentityBalance message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance.verify|verify} messages.
|
|
14427
|
+
* @function encodeDelimited
|
|
14428
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance
|
|
14429
|
+
* @static
|
|
14430
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IIdentityBalance} message IdentityBalance message or plain object to encode
|
|
14431
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14432
|
+
* @returns {$protobuf.Writer} Writer
|
|
14433
|
+
*/
|
|
14434
|
+
IdentityBalance.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14435
|
+
return this.encode(message, writer).ldelim();
|
|
14436
|
+
};
|
|
14437
|
+
|
|
14438
|
+
/**
|
|
14439
|
+
* Decodes an IdentityBalance message from the specified reader or buffer.
|
|
14440
|
+
* @function decode
|
|
14441
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance
|
|
14442
|
+
* @static
|
|
14443
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14444
|
+
* @param {number} [length] Message length if known beforehand
|
|
14445
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance} IdentityBalance
|
|
14446
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14447
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14448
|
+
*/
|
|
14449
|
+
IdentityBalance.decode = function decode(reader, length) {
|
|
14450
|
+
if (!(reader instanceof $Reader))
|
|
14451
|
+
reader = $Reader.create(reader);
|
|
14452
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance();
|
|
14453
|
+
while (reader.pos < end) {
|
|
14454
|
+
var tag = reader.uint32();
|
|
14455
|
+
switch (tag >>> 3) {
|
|
14456
|
+
case 1:
|
|
14457
|
+
message.identityId = reader.bytes();
|
|
14458
|
+
break;
|
|
14459
|
+
case 2:
|
|
14460
|
+
message.balance = reader.uint64();
|
|
14461
|
+
break;
|
|
14462
|
+
default:
|
|
14463
|
+
reader.skipType(tag & 7);
|
|
14464
|
+
break;
|
|
14465
|
+
}
|
|
14466
|
+
}
|
|
14467
|
+
return message;
|
|
14468
|
+
};
|
|
14469
|
+
|
|
14470
|
+
/**
|
|
14471
|
+
* Decodes an IdentityBalance message from the specified reader or buffer, length delimited.
|
|
14472
|
+
* @function decodeDelimited
|
|
14473
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance
|
|
14474
|
+
* @static
|
|
14475
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14476
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance} IdentityBalance
|
|
14477
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14478
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14479
|
+
*/
|
|
14480
|
+
IdentityBalance.decodeDelimited = function decodeDelimited(reader) {
|
|
14481
|
+
if (!(reader instanceof $Reader))
|
|
14482
|
+
reader = new $Reader(reader);
|
|
14483
|
+
return this.decode(reader, reader.uint32());
|
|
14484
|
+
};
|
|
14485
|
+
|
|
14486
|
+
/**
|
|
14487
|
+
* Verifies an IdentityBalance message.
|
|
14488
|
+
* @function verify
|
|
14489
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance
|
|
14490
|
+
* @static
|
|
14491
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14492
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14493
|
+
*/
|
|
14494
|
+
IdentityBalance.verify = function verify(message) {
|
|
14495
|
+
if (typeof message !== "object" || message === null)
|
|
14496
|
+
return "object expected";
|
|
14497
|
+
if (message.identityId != null && message.hasOwnProperty("identityId"))
|
|
14498
|
+
if (!(message.identityId && typeof message.identityId.length === "number" || $util.isString(message.identityId)))
|
|
14499
|
+
return "identityId: buffer expected";
|
|
14500
|
+
if (message.balance != null && message.hasOwnProperty("balance"))
|
|
14501
|
+
if (!$util.isInteger(message.balance) && !(message.balance && $util.isInteger(message.balance.low) && $util.isInteger(message.balance.high)))
|
|
14502
|
+
return "balance: integer|Long expected";
|
|
14503
|
+
return null;
|
|
14504
|
+
};
|
|
14505
|
+
|
|
14506
|
+
/**
|
|
14507
|
+
* Creates an IdentityBalance message from a plain object. Also converts values to their respective internal types.
|
|
14508
|
+
* @function fromObject
|
|
14509
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance
|
|
14510
|
+
* @static
|
|
14511
|
+
* @param {Object.<string,*>} object Plain object
|
|
14512
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance} IdentityBalance
|
|
14513
|
+
*/
|
|
14514
|
+
IdentityBalance.fromObject = function fromObject(object) {
|
|
14515
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance)
|
|
14516
|
+
return object;
|
|
14517
|
+
var message = new $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance();
|
|
14518
|
+
if (object.identityId != null)
|
|
14519
|
+
if (typeof object.identityId === "string")
|
|
14520
|
+
$util.base64.decode(object.identityId, message.identityId = $util.newBuffer($util.base64.length(object.identityId)), 0);
|
|
14521
|
+
else if (object.identityId.length >= 0)
|
|
14522
|
+
message.identityId = object.identityId;
|
|
14523
|
+
if (object.balance != null)
|
|
14524
|
+
if ($util.Long)
|
|
14525
|
+
(message.balance = $util.Long.fromValue(object.balance)).unsigned = true;
|
|
14526
|
+
else if (typeof object.balance === "string")
|
|
14527
|
+
message.balance = parseInt(object.balance, 10);
|
|
14528
|
+
else if (typeof object.balance === "number")
|
|
14529
|
+
message.balance = object.balance;
|
|
14530
|
+
else if (typeof object.balance === "object")
|
|
14531
|
+
message.balance = new $util.LongBits(object.balance.low >>> 0, object.balance.high >>> 0).toNumber(true);
|
|
14532
|
+
return message;
|
|
14533
|
+
};
|
|
14534
|
+
|
|
14535
|
+
/**
|
|
14536
|
+
* Creates a plain object from an IdentityBalance message. Also converts values to other types if specified.
|
|
14537
|
+
* @function toObject
|
|
14538
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance
|
|
14539
|
+
* @static
|
|
14540
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance} message IdentityBalance
|
|
14541
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14542
|
+
* @returns {Object.<string,*>} Plain object
|
|
14543
|
+
*/
|
|
14544
|
+
IdentityBalance.toObject = function toObject(message, options) {
|
|
14545
|
+
if (!options)
|
|
14546
|
+
options = {};
|
|
14547
|
+
var object = {};
|
|
14548
|
+
if (options.defaults) {
|
|
14549
|
+
if (options.bytes === String)
|
|
14550
|
+
object.identityId = "";
|
|
14551
|
+
else {
|
|
14552
|
+
object.identityId = [];
|
|
14553
|
+
if (options.bytes !== Array)
|
|
14554
|
+
object.identityId = $util.newBuffer(object.identityId);
|
|
14555
|
+
}
|
|
14556
|
+
if ($util.Long) {
|
|
14557
|
+
var long = new $util.Long(0, 0, true);
|
|
14558
|
+
object.balance = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
14559
|
+
} else
|
|
14560
|
+
object.balance = options.longs === String ? "0" : 0;
|
|
14561
|
+
}
|
|
14562
|
+
if (message.identityId != null && message.hasOwnProperty("identityId"))
|
|
14563
|
+
object.identityId = options.bytes === String ? $util.base64.encode(message.identityId, 0, message.identityId.length) : options.bytes === Array ? Array.prototype.slice.call(message.identityId) : message.identityId;
|
|
14564
|
+
if (message.balance != null && message.hasOwnProperty("balance"))
|
|
14565
|
+
if (typeof message.balance === "number")
|
|
14566
|
+
object.balance = options.longs === String ? String(message.balance) : message.balance;
|
|
14567
|
+
else
|
|
14568
|
+
object.balance = options.longs === String ? $util.Long.prototype.toString.call(message.balance) : options.longs === Number ? new $util.LongBits(message.balance.low >>> 0, message.balance.high >>> 0).toNumber(true) : message.balance;
|
|
14569
|
+
return object;
|
|
14570
|
+
};
|
|
14571
|
+
|
|
14572
|
+
/**
|
|
14573
|
+
* Converts this IdentityBalance to JSON.
|
|
14574
|
+
* @function toJSON
|
|
14575
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance
|
|
14576
|
+
* @instance
|
|
14577
|
+
* @returns {Object.<string,*>} JSON object
|
|
14578
|
+
*/
|
|
14579
|
+
IdentityBalance.prototype.toJSON = function toJSON() {
|
|
14580
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14581
|
+
};
|
|
14582
|
+
|
|
14583
|
+
return IdentityBalance;
|
|
14584
|
+
})();
|
|
14585
|
+
|
|
14586
|
+
GetIdentitiesBalancesResponseV0.IdentitiesBalances = (function() {
|
|
14587
|
+
|
|
14588
|
+
/**
|
|
14589
|
+
* Properties of an IdentitiesBalances.
|
|
14590
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14591
|
+
* @interface IIdentitiesBalances
|
|
14592
|
+
* @property {Array.<org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IIdentityBalance>|null} [entries] IdentitiesBalances entries
|
|
14593
|
+
*/
|
|
14594
|
+
|
|
14595
|
+
/**
|
|
14596
|
+
* Constructs a new IdentitiesBalances.
|
|
14597
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0
|
|
14598
|
+
* @classdesc Represents an IdentitiesBalances.
|
|
14599
|
+
* @implements IIdentitiesBalances
|
|
14600
|
+
* @constructor
|
|
14601
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IIdentitiesBalances=} [properties] Properties to set
|
|
14602
|
+
*/
|
|
14603
|
+
function IdentitiesBalances(properties) {
|
|
14604
|
+
this.entries = [];
|
|
14605
|
+
if (properties)
|
|
14606
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14607
|
+
if (properties[keys[i]] != null)
|
|
14608
|
+
this[keys[i]] = properties[keys[i]];
|
|
14609
|
+
}
|
|
14610
|
+
|
|
14611
|
+
/**
|
|
14612
|
+
* IdentitiesBalances entries.
|
|
14613
|
+
* @member {Array.<org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IIdentityBalance>} entries
|
|
14614
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances
|
|
14615
|
+
* @instance
|
|
14616
|
+
*/
|
|
14617
|
+
IdentitiesBalances.prototype.entries = $util.emptyArray;
|
|
14618
|
+
|
|
14619
|
+
/**
|
|
14620
|
+
* Creates a new IdentitiesBalances instance using the specified properties.
|
|
14621
|
+
* @function create
|
|
14622
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances
|
|
14623
|
+
* @static
|
|
14624
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IIdentitiesBalances=} [properties] Properties to set
|
|
14625
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances} IdentitiesBalances instance
|
|
14626
|
+
*/
|
|
14627
|
+
IdentitiesBalances.create = function create(properties) {
|
|
14628
|
+
return new IdentitiesBalances(properties);
|
|
14629
|
+
};
|
|
14630
|
+
|
|
14631
|
+
/**
|
|
14632
|
+
* Encodes the specified IdentitiesBalances message. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances.verify|verify} messages.
|
|
14633
|
+
* @function encode
|
|
14634
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances
|
|
14635
|
+
* @static
|
|
14636
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IIdentitiesBalances} message IdentitiesBalances message or plain object to encode
|
|
14637
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14638
|
+
* @returns {$protobuf.Writer} Writer
|
|
14639
|
+
*/
|
|
14640
|
+
IdentitiesBalances.encode = function encode(message, writer) {
|
|
14641
|
+
if (!writer)
|
|
14642
|
+
writer = $Writer.create();
|
|
14643
|
+
if (message.entries != null && message.entries.length)
|
|
14644
|
+
for (var i = 0; i < message.entries.length; ++i)
|
|
14645
|
+
$root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
14646
|
+
return writer;
|
|
14647
|
+
};
|
|
14648
|
+
|
|
14649
|
+
/**
|
|
14650
|
+
* Encodes the specified IdentitiesBalances message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances.verify|verify} messages.
|
|
14651
|
+
* @function encodeDelimited
|
|
14652
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances
|
|
14653
|
+
* @static
|
|
14654
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IIdentitiesBalances} message IdentitiesBalances message or plain object to encode
|
|
14655
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14656
|
+
* @returns {$protobuf.Writer} Writer
|
|
14657
|
+
*/
|
|
14658
|
+
IdentitiesBalances.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14659
|
+
return this.encode(message, writer).ldelim();
|
|
14660
|
+
};
|
|
14661
|
+
|
|
14662
|
+
/**
|
|
14663
|
+
* Decodes an IdentitiesBalances message from the specified reader or buffer.
|
|
14664
|
+
* @function decode
|
|
14665
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances
|
|
14666
|
+
* @static
|
|
14667
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14668
|
+
* @param {number} [length] Message length if known beforehand
|
|
14669
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances} IdentitiesBalances
|
|
14670
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14671
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14672
|
+
*/
|
|
14673
|
+
IdentitiesBalances.decode = function decode(reader, length) {
|
|
14674
|
+
if (!(reader instanceof $Reader))
|
|
14675
|
+
reader = $Reader.create(reader);
|
|
14676
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances();
|
|
14677
|
+
while (reader.pos < end) {
|
|
14678
|
+
var tag = reader.uint32();
|
|
14679
|
+
switch (tag >>> 3) {
|
|
14680
|
+
case 1:
|
|
14681
|
+
if (!(message.entries && message.entries.length))
|
|
14682
|
+
message.entries = [];
|
|
14683
|
+
message.entries.push($root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance.decode(reader, reader.uint32()));
|
|
14684
|
+
break;
|
|
14685
|
+
default:
|
|
14686
|
+
reader.skipType(tag & 7);
|
|
14687
|
+
break;
|
|
14688
|
+
}
|
|
14689
|
+
}
|
|
14690
|
+
return message;
|
|
14691
|
+
};
|
|
14692
|
+
|
|
14693
|
+
/**
|
|
14694
|
+
* Decodes an IdentitiesBalances message from the specified reader or buffer, length delimited.
|
|
14695
|
+
* @function decodeDelimited
|
|
14696
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances
|
|
14697
|
+
* @static
|
|
14698
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14699
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances} IdentitiesBalances
|
|
14700
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14701
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14702
|
+
*/
|
|
14703
|
+
IdentitiesBalances.decodeDelimited = function decodeDelimited(reader) {
|
|
14704
|
+
if (!(reader instanceof $Reader))
|
|
14705
|
+
reader = new $Reader(reader);
|
|
14706
|
+
return this.decode(reader, reader.uint32());
|
|
14707
|
+
};
|
|
14708
|
+
|
|
14709
|
+
/**
|
|
14710
|
+
* Verifies an IdentitiesBalances message.
|
|
14711
|
+
* @function verify
|
|
14712
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances
|
|
14713
|
+
* @static
|
|
14714
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14715
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14716
|
+
*/
|
|
14717
|
+
IdentitiesBalances.verify = function verify(message) {
|
|
14718
|
+
if (typeof message !== "object" || message === null)
|
|
14719
|
+
return "object expected";
|
|
14720
|
+
if (message.entries != null && message.hasOwnProperty("entries")) {
|
|
14721
|
+
if (!Array.isArray(message.entries))
|
|
14722
|
+
return "entries: array expected";
|
|
14723
|
+
for (var i = 0; i < message.entries.length; ++i) {
|
|
14724
|
+
var error = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance.verify(message.entries[i]);
|
|
14725
|
+
if (error)
|
|
14726
|
+
return "entries." + error;
|
|
14727
|
+
}
|
|
14728
|
+
}
|
|
14729
|
+
return null;
|
|
14730
|
+
};
|
|
14731
|
+
|
|
14732
|
+
/**
|
|
14733
|
+
* Creates an IdentitiesBalances message from a plain object. Also converts values to their respective internal types.
|
|
14734
|
+
* @function fromObject
|
|
14735
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances
|
|
14736
|
+
* @static
|
|
14737
|
+
* @param {Object.<string,*>} object Plain object
|
|
14738
|
+
* @returns {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances} IdentitiesBalances
|
|
14739
|
+
*/
|
|
14740
|
+
IdentitiesBalances.fromObject = function fromObject(object) {
|
|
14741
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances)
|
|
14742
|
+
return object;
|
|
14743
|
+
var message = new $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances();
|
|
14744
|
+
if (object.entries) {
|
|
14745
|
+
if (!Array.isArray(object.entries))
|
|
14746
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances.entries: array expected");
|
|
14747
|
+
message.entries = [];
|
|
14748
|
+
for (var i = 0; i < object.entries.length; ++i) {
|
|
14749
|
+
if (typeof object.entries[i] !== "object")
|
|
14750
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances.entries: object expected");
|
|
14751
|
+
message.entries[i] = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance.fromObject(object.entries[i]);
|
|
14752
|
+
}
|
|
14753
|
+
}
|
|
14754
|
+
return message;
|
|
14755
|
+
};
|
|
14756
|
+
|
|
14757
|
+
/**
|
|
14758
|
+
* Creates a plain object from an IdentitiesBalances message. Also converts values to other types if specified.
|
|
14759
|
+
* @function toObject
|
|
14760
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances
|
|
14761
|
+
* @static
|
|
14762
|
+
* @param {org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances} message IdentitiesBalances
|
|
14763
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14764
|
+
* @returns {Object.<string,*>} Plain object
|
|
14765
|
+
*/
|
|
14766
|
+
IdentitiesBalances.toObject = function toObject(message, options) {
|
|
14767
|
+
if (!options)
|
|
14768
|
+
options = {};
|
|
14769
|
+
var object = {};
|
|
14770
|
+
if (options.arrays || options.defaults)
|
|
14771
|
+
object.entries = [];
|
|
14772
|
+
if (message.entries && message.entries.length) {
|
|
14773
|
+
object.entries = [];
|
|
14774
|
+
for (var j = 0; j < message.entries.length; ++j)
|
|
14775
|
+
object.entries[j] = $root.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalance.toObject(message.entries[j], options);
|
|
14776
|
+
}
|
|
14777
|
+
return object;
|
|
14778
|
+
};
|
|
14779
|
+
|
|
14780
|
+
/**
|
|
14781
|
+
* Converts this IdentitiesBalances to JSON.
|
|
14782
|
+
* @function toJSON
|
|
14783
|
+
* @memberof org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalances
|
|
14784
|
+
* @instance
|
|
14785
|
+
* @returns {Object.<string,*>} JSON object
|
|
14786
|
+
*/
|
|
14787
|
+
IdentitiesBalances.prototype.toJSON = function toJSON() {
|
|
14788
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14789
|
+
};
|
|
14790
|
+
|
|
14791
|
+
return IdentitiesBalances;
|
|
14792
|
+
})();
|
|
14793
|
+
|
|
14794
|
+
return GetIdentitiesBalancesResponseV0;
|
|
14795
|
+
})();
|
|
14796
|
+
|
|
14797
|
+
return GetIdentitiesBalancesResponse;
|
|
14798
|
+
})();
|
|
14799
|
+
|
|
11238
14800
|
v0.GetProofsRequest = (function() {
|
|
11239
14801
|
|
|
11240
14802
|
/**
|