@dashevo/dapi-grpc 1.0.0-dev.11 → 1.0.0-dev.13

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.
@@ -87,35 +87,68 @@ $root.org = (function() {
87
87
  };
88
88
 
89
89
  /**
90
- * Callback as used by {@link org.dash.platform.dapi.v0.Core#getStatus}.
90
+ * Callback as used by {@link org.dash.platform.dapi.v0.Core#getBlockchainStatus}.
91
91
  * @memberof org.dash.platform.dapi.v0.Core
92
- * @typedef getStatusCallback
92
+ * @typedef getBlockchainStatusCallback
93
93
  * @type {function}
94
94
  * @param {Error|null} error Error, if any
95
- * @param {org.dash.platform.dapi.v0.GetStatusResponse} [response] GetStatusResponse
95
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse} [response] GetBlockchainStatusResponse
96
96
  */
97
97
 
98
98
  /**
99
- * Calls getStatus.
100
- * @function getStatus
99
+ * Calls getBlockchainStatus.
100
+ * @function getBlockchainStatus
101
101
  * @memberof org.dash.platform.dapi.v0.Core
102
102
  * @instance
103
- * @param {org.dash.platform.dapi.v0.IGetStatusRequest} request GetStatusRequest message or plain object
104
- * @param {org.dash.platform.dapi.v0.Core.getStatusCallback} callback Node-style callback called with the error, if any, and GetStatusResponse
103
+ * @param {org.dash.platform.dapi.v0.IGetBlockchainStatusRequest} request GetBlockchainStatusRequest message or plain object
104
+ * @param {org.dash.platform.dapi.v0.Core.getBlockchainStatusCallback} callback Node-style callback called with the error, if any, and GetBlockchainStatusResponse
105
105
  * @returns {undefined}
106
106
  * @variation 1
107
107
  */
108
- Object.defineProperty(Core.prototype.getStatus = function getStatus(request, callback) {
109
- return this.rpcCall(getStatus, $root.org.dash.platform.dapi.v0.GetStatusRequest, $root.org.dash.platform.dapi.v0.GetStatusResponse, request, callback);
110
- }, "name", { value: "getStatus" });
108
+ Object.defineProperty(Core.prototype.getBlockchainStatus = function getBlockchainStatus(request, callback) {
109
+ return this.rpcCall(getBlockchainStatus, $root.org.dash.platform.dapi.v0.GetBlockchainStatusRequest, $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse, request, callback);
110
+ }, "name", { value: "getBlockchainStatus" });
111
111
 
112
112
  /**
113
- * Calls getStatus.
114
- * @function getStatus
113
+ * Calls getBlockchainStatus.
114
+ * @function getBlockchainStatus
115
115
  * @memberof org.dash.platform.dapi.v0.Core
116
116
  * @instance
117
- * @param {org.dash.platform.dapi.v0.IGetStatusRequest} request GetStatusRequest message or plain object
118
- * @returns {Promise<org.dash.platform.dapi.v0.GetStatusResponse>} Promise
117
+ * @param {org.dash.platform.dapi.v0.IGetBlockchainStatusRequest} request GetBlockchainStatusRequest message or plain object
118
+ * @returns {Promise<org.dash.platform.dapi.v0.GetBlockchainStatusResponse>} Promise
119
+ * @variation 2
120
+ */
121
+
122
+ /**
123
+ * Callback as used by {@link org.dash.platform.dapi.v0.Core#getMasternodeStatus}.
124
+ * @memberof org.dash.platform.dapi.v0.Core
125
+ * @typedef getMasternodeStatusCallback
126
+ * @type {function}
127
+ * @param {Error|null} error Error, if any
128
+ * @param {org.dash.platform.dapi.v0.GetMasternodeStatusResponse} [response] GetMasternodeStatusResponse
129
+ */
130
+
131
+ /**
132
+ * Calls getMasternodeStatus.
133
+ * @function getMasternodeStatus
134
+ * @memberof org.dash.platform.dapi.v0.Core
135
+ * @instance
136
+ * @param {org.dash.platform.dapi.v0.IGetMasternodeStatusRequest} request GetMasternodeStatusRequest message or plain object
137
+ * @param {org.dash.platform.dapi.v0.Core.getMasternodeStatusCallback} callback Node-style callback called with the error, if any, and GetMasternodeStatusResponse
138
+ * @returns {undefined}
139
+ * @variation 1
140
+ */
141
+ Object.defineProperty(Core.prototype.getMasternodeStatus = function getMasternodeStatus(request, callback) {
142
+ return this.rpcCall(getMasternodeStatus, $root.org.dash.platform.dapi.v0.GetMasternodeStatusRequest, $root.org.dash.platform.dapi.v0.GetMasternodeStatusResponse, request, callback);
143
+ }, "name", { value: "getMasternodeStatus" });
144
+
145
+ /**
146
+ * Calls getMasternodeStatus.
147
+ * @function getMasternodeStatus
148
+ * @memberof org.dash.platform.dapi.v0.Core
149
+ * @instance
150
+ * @param {org.dash.platform.dapi.v0.IGetMasternodeStatusRequest} request GetMasternodeStatusRequest message or plain object
151
+ * @returns {Promise<org.dash.platform.dapi.v0.GetMasternodeStatusResponse>} Promise
119
152
  * @variation 2
120
153
  */
121
154
 
@@ -320,23 +353,23 @@ $root.org = (function() {
320
353
  return Core;
321
354
  })();
322
355
 
323
- v0.GetStatusRequest = (function() {
356
+ v0.GetBlockchainStatusRequest = (function() {
324
357
 
325
358
  /**
326
- * Properties of a GetStatusRequest.
359
+ * Properties of a GetBlockchainStatusRequest.
327
360
  * @memberof org.dash.platform.dapi.v0
328
- * @interface IGetStatusRequest
361
+ * @interface IGetBlockchainStatusRequest
329
362
  */
330
363
 
331
364
  /**
332
- * Constructs a new GetStatusRequest.
365
+ * Constructs a new GetBlockchainStatusRequest.
333
366
  * @memberof org.dash.platform.dapi.v0
334
- * @classdesc Represents a GetStatusRequest.
335
- * @implements IGetStatusRequest
367
+ * @classdesc Represents a GetBlockchainStatusRequest.
368
+ * @implements IGetBlockchainStatusRequest
336
369
  * @constructor
337
- * @param {org.dash.platform.dapi.v0.IGetStatusRequest=} [properties] Properties to set
370
+ * @param {org.dash.platform.dapi.v0.IGetBlockchainStatusRequest=} [properties] Properties to set
338
371
  */
339
- function GetStatusRequest(properties) {
372
+ function GetBlockchainStatusRequest(properties) {
340
373
  if (properties)
341
374
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
342
375
  if (properties[keys[i]] != null)
@@ -344,60 +377,60 @@ $root.org = (function() {
344
377
  }
345
378
 
346
379
  /**
347
- * Creates a new GetStatusRequest instance using the specified properties.
380
+ * Creates a new GetBlockchainStatusRequest instance using the specified properties.
348
381
  * @function create
349
- * @memberof org.dash.platform.dapi.v0.GetStatusRequest
382
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusRequest
350
383
  * @static
351
- * @param {org.dash.platform.dapi.v0.IGetStatusRequest=} [properties] Properties to set
352
- * @returns {org.dash.platform.dapi.v0.GetStatusRequest} GetStatusRequest instance
384
+ * @param {org.dash.platform.dapi.v0.IGetBlockchainStatusRequest=} [properties] Properties to set
385
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusRequest} GetBlockchainStatusRequest instance
353
386
  */
354
- GetStatusRequest.create = function create(properties) {
355
- return new GetStatusRequest(properties);
387
+ GetBlockchainStatusRequest.create = function create(properties) {
388
+ return new GetBlockchainStatusRequest(properties);
356
389
  };
357
390
 
358
391
  /**
359
- * Encodes the specified GetStatusRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetStatusRequest.verify|verify} messages.
392
+ * Encodes the specified GetBlockchainStatusRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetBlockchainStatusRequest.verify|verify} messages.
360
393
  * @function encode
361
- * @memberof org.dash.platform.dapi.v0.GetStatusRequest
394
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusRequest
362
395
  * @static
363
- * @param {org.dash.platform.dapi.v0.IGetStatusRequest} message GetStatusRequest message or plain object to encode
396
+ * @param {org.dash.platform.dapi.v0.IGetBlockchainStatusRequest} message GetBlockchainStatusRequest message or plain object to encode
364
397
  * @param {$protobuf.Writer} [writer] Writer to encode to
365
398
  * @returns {$protobuf.Writer} Writer
366
399
  */
367
- GetStatusRequest.encode = function encode(message, writer) {
400
+ GetBlockchainStatusRequest.encode = function encode(message, writer) {
368
401
  if (!writer)
369
402
  writer = $Writer.create();
370
403
  return writer;
371
404
  };
372
405
 
373
406
  /**
374
- * Encodes the specified GetStatusRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetStatusRequest.verify|verify} messages.
407
+ * Encodes the specified GetBlockchainStatusRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetBlockchainStatusRequest.verify|verify} messages.
375
408
  * @function encodeDelimited
376
- * @memberof org.dash.platform.dapi.v0.GetStatusRequest
409
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusRequest
377
410
  * @static
378
- * @param {org.dash.platform.dapi.v0.IGetStatusRequest} message GetStatusRequest message or plain object to encode
411
+ * @param {org.dash.platform.dapi.v0.IGetBlockchainStatusRequest} message GetBlockchainStatusRequest message or plain object to encode
379
412
  * @param {$protobuf.Writer} [writer] Writer to encode to
380
413
  * @returns {$protobuf.Writer} Writer
381
414
  */
382
- GetStatusRequest.encodeDelimited = function encodeDelimited(message, writer) {
415
+ GetBlockchainStatusRequest.encodeDelimited = function encodeDelimited(message, writer) {
383
416
  return this.encode(message, writer).ldelim();
384
417
  };
385
418
 
386
419
  /**
387
- * Decodes a GetStatusRequest message from the specified reader or buffer.
420
+ * Decodes a GetBlockchainStatusRequest message from the specified reader or buffer.
388
421
  * @function decode
389
- * @memberof org.dash.platform.dapi.v0.GetStatusRequest
422
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusRequest
390
423
  * @static
391
424
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
392
425
  * @param {number} [length] Message length if known beforehand
393
- * @returns {org.dash.platform.dapi.v0.GetStatusRequest} GetStatusRequest
426
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusRequest} GetBlockchainStatusRequest
394
427
  * @throws {Error} If the payload is not a reader or valid buffer
395
428
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
396
429
  */
397
- GetStatusRequest.decode = function decode(reader, length) {
430
+ GetBlockchainStatusRequest.decode = function decode(reader, length) {
398
431
  if (!(reader instanceof $Reader))
399
432
  reader = $Reader.create(reader);
400
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetStatusRequest();
433
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetBlockchainStatusRequest();
401
434
  while (reader.pos < end) {
402
435
  var tag = reader.uint32();
403
436
  switch (tag >>> 3) {
@@ -410,100 +443,99 @@ $root.org = (function() {
410
443
  };
411
444
 
412
445
  /**
413
- * Decodes a GetStatusRequest message from the specified reader or buffer, length delimited.
446
+ * Decodes a GetBlockchainStatusRequest message from the specified reader or buffer, length delimited.
414
447
  * @function decodeDelimited
415
- * @memberof org.dash.platform.dapi.v0.GetStatusRequest
448
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusRequest
416
449
  * @static
417
450
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
418
- * @returns {org.dash.platform.dapi.v0.GetStatusRequest} GetStatusRequest
451
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusRequest} GetBlockchainStatusRequest
419
452
  * @throws {Error} If the payload is not a reader or valid buffer
420
453
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
421
454
  */
422
- GetStatusRequest.decodeDelimited = function decodeDelimited(reader) {
455
+ GetBlockchainStatusRequest.decodeDelimited = function decodeDelimited(reader) {
423
456
  if (!(reader instanceof $Reader))
424
457
  reader = new $Reader(reader);
425
458
  return this.decode(reader, reader.uint32());
426
459
  };
427
460
 
428
461
  /**
429
- * Verifies a GetStatusRequest message.
462
+ * Verifies a GetBlockchainStatusRequest message.
430
463
  * @function verify
431
- * @memberof org.dash.platform.dapi.v0.GetStatusRequest
464
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusRequest
432
465
  * @static
433
466
  * @param {Object.<string,*>} message Plain object to verify
434
467
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
435
468
  */
436
- GetStatusRequest.verify = function verify(message) {
469
+ GetBlockchainStatusRequest.verify = function verify(message) {
437
470
  if (typeof message !== "object" || message === null)
438
471
  return "object expected";
439
472
  return null;
440
473
  };
441
474
 
442
475
  /**
443
- * Creates a GetStatusRequest message from a plain object. Also converts values to their respective internal types.
476
+ * Creates a GetBlockchainStatusRequest message from a plain object. Also converts values to their respective internal types.
444
477
  * @function fromObject
445
- * @memberof org.dash.platform.dapi.v0.GetStatusRequest
478
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusRequest
446
479
  * @static
447
480
  * @param {Object.<string,*>} object Plain object
448
- * @returns {org.dash.platform.dapi.v0.GetStatusRequest} GetStatusRequest
481
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusRequest} GetBlockchainStatusRequest
449
482
  */
450
- GetStatusRequest.fromObject = function fromObject(object) {
451
- if (object instanceof $root.org.dash.platform.dapi.v0.GetStatusRequest)
483
+ GetBlockchainStatusRequest.fromObject = function fromObject(object) {
484
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetBlockchainStatusRequest)
452
485
  return object;
453
- return new $root.org.dash.platform.dapi.v0.GetStatusRequest();
486
+ return new $root.org.dash.platform.dapi.v0.GetBlockchainStatusRequest();
454
487
  };
455
488
 
456
489
  /**
457
- * Creates a plain object from a GetStatusRequest message. Also converts values to other types if specified.
490
+ * Creates a plain object from a GetBlockchainStatusRequest message. Also converts values to other types if specified.
458
491
  * @function toObject
459
- * @memberof org.dash.platform.dapi.v0.GetStatusRequest
492
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusRequest
460
493
  * @static
461
- * @param {org.dash.platform.dapi.v0.GetStatusRequest} message GetStatusRequest
494
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusRequest} message GetBlockchainStatusRequest
462
495
  * @param {$protobuf.IConversionOptions} [options] Conversion options
463
496
  * @returns {Object.<string,*>} Plain object
464
497
  */
465
- GetStatusRequest.toObject = function toObject() {
498
+ GetBlockchainStatusRequest.toObject = function toObject() {
466
499
  return {};
467
500
  };
468
501
 
469
502
  /**
470
- * Converts this GetStatusRequest to JSON.
503
+ * Converts this GetBlockchainStatusRequest to JSON.
471
504
  * @function toJSON
472
- * @memberof org.dash.platform.dapi.v0.GetStatusRequest
505
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusRequest
473
506
  * @instance
474
507
  * @returns {Object.<string,*>} JSON object
475
508
  */
476
- GetStatusRequest.prototype.toJSON = function toJSON() {
509
+ GetBlockchainStatusRequest.prototype.toJSON = function toJSON() {
477
510
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
478
511
  };
479
512
 
480
- return GetStatusRequest;
513
+ return GetBlockchainStatusRequest;
481
514
  })();
482
515
 
483
- v0.GetStatusResponse = (function() {
516
+ v0.GetBlockchainStatusResponse = (function() {
484
517
 
485
518
  /**
486
- * Properties of a GetStatusResponse.
519
+ * Properties of a GetBlockchainStatusResponse.
487
520
  * @memberof org.dash.platform.dapi.v0
488
- * @interface IGetStatusResponse
489
- * @property {org.dash.platform.dapi.v0.GetStatusResponse.IVersion|null} [version] GetStatusResponse version
490
- * @property {org.dash.platform.dapi.v0.GetStatusResponse.ITime|null} [time] GetStatusResponse time
491
- * @property {org.dash.platform.dapi.v0.GetStatusResponse.Status|null} [status] GetStatusResponse status
492
- * @property {number|null} [syncProgress] GetStatusResponse syncProgress
493
- * @property {org.dash.platform.dapi.v0.GetStatusResponse.IChain|null} [chain] GetStatusResponse chain
494
- * @property {org.dash.platform.dapi.v0.GetStatusResponse.IMasternode|null} [masternode] GetStatusResponse masternode
495
- * @property {org.dash.platform.dapi.v0.GetStatusResponse.INetwork|null} [network] GetStatusResponse network
521
+ * @interface IGetBlockchainStatusResponse
522
+ * @property {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.IVersion|null} [version] GetBlockchainStatusResponse version
523
+ * @property {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.ITime|null} [time] GetBlockchainStatusResponse time
524
+ * @property {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status|null} [status] GetBlockchainStatusResponse status
525
+ * @property {number|null} [syncProgress] GetBlockchainStatusResponse syncProgress
526
+ * @property {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.IChain|null} [chain] GetBlockchainStatusResponse chain
527
+ * @property {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.INetwork|null} [network] GetBlockchainStatusResponse network
496
528
  */
497
529
 
498
530
  /**
499
- * Constructs a new GetStatusResponse.
531
+ * Constructs a new GetBlockchainStatusResponse.
500
532
  * @memberof org.dash.platform.dapi.v0
501
- * @classdesc Represents a GetStatusResponse.
502
- * @implements IGetStatusResponse
533
+ * @classdesc Represents a GetBlockchainStatusResponse.
534
+ * @implements IGetBlockchainStatusResponse
503
535
  * @constructor
504
- * @param {org.dash.platform.dapi.v0.IGetStatusResponse=} [properties] Properties to set
536
+ * @param {org.dash.platform.dapi.v0.IGetBlockchainStatusResponse=} [properties] Properties to set
505
537
  */
506
- function GetStatusResponse(properties) {
538
+ function GetBlockchainStatusResponse(properties) {
507
539
  if (properties)
508
540
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
509
541
  if (properties[keys[i]] != null)
@@ -511,138 +543,128 @@ $root.org = (function() {
511
543
  }
512
544
 
513
545
  /**
514
- * GetStatusResponse version.
515
- * @member {org.dash.platform.dapi.v0.GetStatusResponse.IVersion|null|undefined} version
516
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
546
+ * GetBlockchainStatusResponse version.
547
+ * @member {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.IVersion|null|undefined} version
548
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
517
549
  * @instance
518
550
  */
519
- GetStatusResponse.prototype.version = null;
551
+ GetBlockchainStatusResponse.prototype.version = null;
520
552
 
521
553
  /**
522
- * GetStatusResponse time.
523
- * @member {org.dash.platform.dapi.v0.GetStatusResponse.ITime|null|undefined} time
524
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
554
+ * GetBlockchainStatusResponse time.
555
+ * @member {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.ITime|null|undefined} time
556
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
525
557
  * @instance
526
558
  */
527
- GetStatusResponse.prototype.time = null;
559
+ GetBlockchainStatusResponse.prototype.time = null;
528
560
 
529
561
  /**
530
- * GetStatusResponse status.
531
- * @member {org.dash.platform.dapi.v0.GetStatusResponse.Status} status
532
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
562
+ * GetBlockchainStatusResponse status.
563
+ * @member {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status} status
564
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
533
565
  * @instance
534
566
  */
535
- GetStatusResponse.prototype.status = 0;
567
+ GetBlockchainStatusResponse.prototype.status = 0;
536
568
 
537
569
  /**
538
- * GetStatusResponse syncProgress.
570
+ * GetBlockchainStatusResponse syncProgress.
539
571
  * @member {number} syncProgress
540
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
541
- * @instance
542
- */
543
- GetStatusResponse.prototype.syncProgress = 0;
544
-
545
- /**
546
- * GetStatusResponse chain.
547
- * @member {org.dash.platform.dapi.v0.GetStatusResponse.IChain|null|undefined} chain
548
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
572
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
549
573
  * @instance
550
574
  */
551
- GetStatusResponse.prototype.chain = null;
575
+ GetBlockchainStatusResponse.prototype.syncProgress = 0;
552
576
 
553
577
  /**
554
- * GetStatusResponse masternode.
555
- * @member {org.dash.platform.dapi.v0.GetStatusResponse.IMasternode|null|undefined} masternode
556
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
578
+ * GetBlockchainStatusResponse chain.
579
+ * @member {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.IChain|null|undefined} chain
580
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
557
581
  * @instance
558
582
  */
559
- GetStatusResponse.prototype.masternode = null;
583
+ GetBlockchainStatusResponse.prototype.chain = null;
560
584
 
561
585
  /**
562
- * GetStatusResponse network.
563
- * @member {org.dash.platform.dapi.v0.GetStatusResponse.INetwork|null|undefined} network
564
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
586
+ * GetBlockchainStatusResponse network.
587
+ * @member {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.INetwork|null|undefined} network
588
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
565
589
  * @instance
566
590
  */
567
- GetStatusResponse.prototype.network = null;
591
+ GetBlockchainStatusResponse.prototype.network = null;
568
592
 
569
593
  /**
570
- * Creates a new GetStatusResponse instance using the specified properties.
594
+ * Creates a new GetBlockchainStatusResponse instance using the specified properties.
571
595
  * @function create
572
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
596
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
573
597
  * @static
574
- * @param {org.dash.platform.dapi.v0.IGetStatusResponse=} [properties] Properties to set
575
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse} GetStatusResponse instance
598
+ * @param {org.dash.platform.dapi.v0.IGetBlockchainStatusResponse=} [properties] Properties to set
599
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse} GetBlockchainStatusResponse instance
576
600
  */
577
- GetStatusResponse.create = function create(properties) {
578
- return new GetStatusResponse(properties);
601
+ GetBlockchainStatusResponse.create = function create(properties) {
602
+ return new GetBlockchainStatusResponse(properties);
579
603
  };
580
604
 
581
605
  /**
582
- * Encodes the specified GetStatusResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetStatusResponse.verify|verify} messages.
606
+ * Encodes the specified GetBlockchainStatusResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetBlockchainStatusResponse.verify|verify} messages.
583
607
  * @function encode
584
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
608
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
585
609
  * @static
586
- * @param {org.dash.platform.dapi.v0.IGetStatusResponse} message GetStatusResponse message or plain object to encode
610
+ * @param {org.dash.platform.dapi.v0.IGetBlockchainStatusResponse} message GetBlockchainStatusResponse message or plain object to encode
587
611
  * @param {$protobuf.Writer} [writer] Writer to encode to
588
612
  * @returns {$protobuf.Writer} Writer
589
613
  */
590
- GetStatusResponse.encode = function encode(message, writer) {
614
+ GetBlockchainStatusResponse.encode = function encode(message, writer) {
591
615
  if (!writer)
592
616
  writer = $Writer.create();
593
617
  if (message.version != null && Object.hasOwnProperty.call(message, "version"))
594
- $root.org.dash.platform.dapi.v0.GetStatusResponse.Version.encode(message.version, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
618
+ $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.encode(message.version, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
595
619
  if (message.time != null && Object.hasOwnProperty.call(message, "time"))
596
- $root.org.dash.platform.dapi.v0.GetStatusResponse.Time.encode(message.time, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
620
+ $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.encode(message.time, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
597
621
  if (message.status != null && Object.hasOwnProperty.call(message, "status"))
598
622
  writer.uint32(/* id 3, wireType 0 =*/24).int32(message.status);
599
623
  if (message.syncProgress != null && Object.hasOwnProperty.call(message, "syncProgress"))
600
624
  writer.uint32(/* id 4, wireType 1 =*/33).double(message.syncProgress);
601
625
  if (message.chain != null && Object.hasOwnProperty.call(message, "chain"))
602
- $root.org.dash.platform.dapi.v0.GetStatusResponse.Chain.encode(message.chain, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
603
- if (message.masternode != null && Object.hasOwnProperty.call(message, "masternode"))
604
- $root.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.encode(message.masternode, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
626
+ $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.encode(message.chain, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
605
627
  if (message.network != null && Object.hasOwnProperty.call(message, "network"))
606
- $root.org.dash.platform.dapi.v0.GetStatusResponse.Network.encode(message.network, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
628
+ $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.encode(message.network, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
607
629
  return writer;
608
630
  };
609
631
 
610
632
  /**
611
- * Encodes the specified GetStatusResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetStatusResponse.verify|verify} messages.
633
+ * Encodes the specified GetBlockchainStatusResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetBlockchainStatusResponse.verify|verify} messages.
612
634
  * @function encodeDelimited
613
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
635
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
614
636
  * @static
615
- * @param {org.dash.platform.dapi.v0.IGetStatusResponse} message GetStatusResponse message or plain object to encode
637
+ * @param {org.dash.platform.dapi.v0.IGetBlockchainStatusResponse} message GetBlockchainStatusResponse message or plain object to encode
616
638
  * @param {$protobuf.Writer} [writer] Writer to encode to
617
639
  * @returns {$protobuf.Writer} Writer
618
640
  */
619
- GetStatusResponse.encodeDelimited = function encodeDelimited(message, writer) {
641
+ GetBlockchainStatusResponse.encodeDelimited = function encodeDelimited(message, writer) {
620
642
  return this.encode(message, writer).ldelim();
621
643
  };
622
644
 
623
645
  /**
624
- * Decodes a GetStatusResponse message from the specified reader or buffer.
646
+ * Decodes a GetBlockchainStatusResponse message from the specified reader or buffer.
625
647
  * @function decode
626
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
648
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
627
649
  * @static
628
650
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
629
651
  * @param {number} [length] Message length if known beforehand
630
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse} GetStatusResponse
652
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse} GetBlockchainStatusResponse
631
653
  * @throws {Error} If the payload is not a reader or valid buffer
632
654
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
633
655
  */
634
- GetStatusResponse.decode = function decode(reader, length) {
656
+ GetBlockchainStatusResponse.decode = function decode(reader, length) {
635
657
  if (!(reader instanceof $Reader))
636
658
  reader = $Reader.create(reader);
637
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetStatusResponse();
659
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse();
638
660
  while (reader.pos < end) {
639
661
  var tag = reader.uint32();
640
662
  switch (tag >>> 3) {
641
663
  case 1:
642
- message.version = $root.org.dash.platform.dapi.v0.GetStatusResponse.Version.decode(reader, reader.uint32());
664
+ message.version = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.decode(reader, reader.uint32());
643
665
  break;
644
666
  case 2:
645
- message.time = $root.org.dash.platform.dapi.v0.GetStatusResponse.Time.decode(reader, reader.uint32());
667
+ message.time = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.decode(reader, reader.uint32());
646
668
  break;
647
669
  case 3:
648
670
  message.status = reader.int32();
@@ -651,13 +673,10 @@ $root.org = (function() {
651
673
  message.syncProgress = reader.double();
652
674
  break;
653
675
  case 5:
654
- message.chain = $root.org.dash.platform.dapi.v0.GetStatusResponse.Chain.decode(reader, reader.uint32());
655
- break;
656
- case 6:
657
- message.masternode = $root.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.decode(reader, reader.uint32());
676
+ message.chain = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.decode(reader, reader.uint32());
658
677
  break;
659
678
  case 7:
660
- message.network = $root.org.dash.platform.dapi.v0.GetStatusResponse.Network.decode(reader, reader.uint32());
679
+ message.network = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.decode(reader, reader.uint32());
661
680
  break;
662
681
  default:
663
682
  reader.skipType(tag & 7);
@@ -668,39 +687,39 @@ $root.org = (function() {
668
687
  };
669
688
 
670
689
  /**
671
- * Decodes a GetStatusResponse message from the specified reader or buffer, length delimited.
690
+ * Decodes a GetBlockchainStatusResponse message from the specified reader or buffer, length delimited.
672
691
  * @function decodeDelimited
673
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
692
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
674
693
  * @static
675
694
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
676
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse} GetStatusResponse
695
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse} GetBlockchainStatusResponse
677
696
  * @throws {Error} If the payload is not a reader or valid buffer
678
697
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
679
698
  */
680
- GetStatusResponse.decodeDelimited = function decodeDelimited(reader) {
699
+ GetBlockchainStatusResponse.decodeDelimited = function decodeDelimited(reader) {
681
700
  if (!(reader instanceof $Reader))
682
701
  reader = new $Reader(reader);
683
702
  return this.decode(reader, reader.uint32());
684
703
  };
685
704
 
686
705
  /**
687
- * Verifies a GetStatusResponse message.
706
+ * Verifies a GetBlockchainStatusResponse message.
688
707
  * @function verify
689
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
708
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
690
709
  * @static
691
710
  * @param {Object.<string,*>} message Plain object to verify
692
711
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
693
712
  */
694
- GetStatusResponse.verify = function verify(message) {
713
+ GetBlockchainStatusResponse.verify = function verify(message) {
695
714
  if (typeof message !== "object" || message === null)
696
715
  return "object expected";
697
716
  if (message.version != null && message.hasOwnProperty("version")) {
698
- var error = $root.org.dash.platform.dapi.v0.GetStatusResponse.Version.verify(message.version);
717
+ var error = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.verify(message.version);
699
718
  if (error)
700
719
  return "version." + error;
701
720
  }
702
721
  if (message.time != null && message.hasOwnProperty("time")) {
703
- var error = $root.org.dash.platform.dapi.v0.GetStatusResponse.Time.verify(message.time);
722
+ var error = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.verify(message.time);
704
723
  if (error)
705
724
  return "time." + error;
706
725
  }
@@ -718,17 +737,12 @@ $root.org = (function() {
718
737
  if (typeof message.syncProgress !== "number")
719
738
  return "syncProgress: number expected";
720
739
  if (message.chain != null && message.hasOwnProperty("chain")) {
721
- var error = $root.org.dash.platform.dapi.v0.GetStatusResponse.Chain.verify(message.chain);
740
+ var error = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.verify(message.chain);
722
741
  if (error)
723
742
  return "chain." + error;
724
743
  }
725
- if (message.masternode != null && message.hasOwnProperty("masternode")) {
726
- var error = $root.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.verify(message.masternode);
727
- if (error)
728
- return "masternode." + error;
729
- }
730
744
  if (message.network != null && message.hasOwnProperty("network")) {
731
- var error = $root.org.dash.platform.dapi.v0.GetStatusResponse.Network.verify(message.network);
745
+ var error = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.verify(message.network);
732
746
  if (error)
733
747
  return "network." + error;
734
748
  }
@@ -736,26 +750,26 @@ $root.org = (function() {
736
750
  };
737
751
 
738
752
  /**
739
- * Creates a GetStatusResponse message from a plain object. Also converts values to their respective internal types.
753
+ * Creates a GetBlockchainStatusResponse message from a plain object. Also converts values to their respective internal types.
740
754
  * @function fromObject
741
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
755
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
742
756
  * @static
743
757
  * @param {Object.<string,*>} object Plain object
744
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse} GetStatusResponse
758
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse} GetBlockchainStatusResponse
745
759
  */
746
- GetStatusResponse.fromObject = function fromObject(object) {
747
- if (object instanceof $root.org.dash.platform.dapi.v0.GetStatusResponse)
760
+ GetBlockchainStatusResponse.fromObject = function fromObject(object) {
761
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse)
748
762
  return object;
749
- var message = new $root.org.dash.platform.dapi.v0.GetStatusResponse();
763
+ var message = new $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse();
750
764
  if (object.version != null) {
751
765
  if (typeof object.version !== "object")
752
- throw TypeError(".org.dash.platform.dapi.v0.GetStatusResponse.version: object expected");
753
- message.version = $root.org.dash.platform.dapi.v0.GetStatusResponse.Version.fromObject(object.version);
766
+ throw TypeError(".org.dash.platform.dapi.v0.GetBlockchainStatusResponse.version: object expected");
767
+ message.version = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.fromObject(object.version);
754
768
  }
755
769
  if (object.time != null) {
756
770
  if (typeof object.time !== "object")
757
- throw TypeError(".org.dash.platform.dapi.v0.GetStatusResponse.time: object expected");
758
- message.time = $root.org.dash.platform.dapi.v0.GetStatusResponse.Time.fromObject(object.time);
771
+ throw TypeError(".org.dash.platform.dapi.v0.GetBlockchainStatusResponse.time: object expected");
772
+ message.time = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.fromObject(object.time);
759
773
  }
760
774
  switch (object.status) {
761
775
  case "NOT_STARTED":
@@ -779,32 +793,27 @@ $root.org = (function() {
779
793
  message.syncProgress = Number(object.syncProgress);
780
794
  if (object.chain != null) {
781
795
  if (typeof object.chain !== "object")
782
- throw TypeError(".org.dash.platform.dapi.v0.GetStatusResponse.chain: object expected");
783
- message.chain = $root.org.dash.platform.dapi.v0.GetStatusResponse.Chain.fromObject(object.chain);
784
- }
785
- if (object.masternode != null) {
786
- if (typeof object.masternode !== "object")
787
- throw TypeError(".org.dash.platform.dapi.v0.GetStatusResponse.masternode: object expected");
788
- message.masternode = $root.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.fromObject(object.masternode);
796
+ throw TypeError(".org.dash.platform.dapi.v0.GetBlockchainStatusResponse.chain: object expected");
797
+ message.chain = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.fromObject(object.chain);
789
798
  }
790
799
  if (object.network != null) {
791
800
  if (typeof object.network !== "object")
792
- throw TypeError(".org.dash.platform.dapi.v0.GetStatusResponse.network: object expected");
793
- message.network = $root.org.dash.platform.dapi.v0.GetStatusResponse.Network.fromObject(object.network);
801
+ throw TypeError(".org.dash.platform.dapi.v0.GetBlockchainStatusResponse.network: object expected");
802
+ message.network = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.fromObject(object.network);
794
803
  }
795
804
  return message;
796
805
  };
797
806
 
798
807
  /**
799
- * Creates a plain object from a GetStatusResponse message. Also converts values to other types if specified.
808
+ * Creates a plain object from a GetBlockchainStatusResponse message. Also converts values to other types if specified.
800
809
  * @function toObject
801
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
810
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
802
811
  * @static
803
- * @param {org.dash.platform.dapi.v0.GetStatusResponse} message GetStatusResponse
812
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse} message GetBlockchainStatusResponse
804
813
  * @param {$protobuf.IConversionOptions} [options] Conversion options
805
814
  * @returns {Object.<string,*>} Plain object
806
815
  */
807
- GetStatusResponse.toObject = function toObject(message, options) {
816
+ GetBlockchainStatusResponse.toObject = function toObject(message, options) {
808
817
  if (!options)
809
818
  options = {};
810
819
  var object = {};
@@ -814,42 +823,39 @@ $root.org = (function() {
814
823
  object.status = options.enums === String ? "NOT_STARTED" : 0;
815
824
  object.syncProgress = 0;
816
825
  object.chain = null;
817
- object.masternode = null;
818
826
  object.network = null;
819
827
  }
820
828
  if (message.version != null && message.hasOwnProperty("version"))
821
- object.version = $root.org.dash.platform.dapi.v0.GetStatusResponse.Version.toObject(message.version, options);
829
+ object.version = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.toObject(message.version, options);
822
830
  if (message.time != null && message.hasOwnProperty("time"))
823
- object.time = $root.org.dash.platform.dapi.v0.GetStatusResponse.Time.toObject(message.time, options);
831
+ object.time = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.toObject(message.time, options);
824
832
  if (message.status != null && message.hasOwnProperty("status"))
825
- object.status = options.enums === String ? $root.org.dash.platform.dapi.v0.GetStatusResponse.Status[message.status] : message.status;
833
+ object.status = options.enums === String ? $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status[message.status] : message.status;
826
834
  if (message.syncProgress != null && message.hasOwnProperty("syncProgress"))
827
835
  object.syncProgress = options.json && !isFinite(message.syncProgress) ? String(message.syncProgress) : message.syncProgress;
828
836
  if (message.chain != null && message.hasOwnProperty("chain"))
829
- object.chain = $root.org.dash.platform.dapi.v0.GetStatusResponse.Chain.toObject(message.chain, options);
830
- if (message.masternode != null && message.hasOwnProperty("masternode"))
831
- object.masternode = $root.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.toObject(message.masternode, options);
837
+ object.chain = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.toObject(message.chain, options);
832
838
  if (message.network != null && message.hasOwnProperty("network"))
833
- object.network = $root.org.dash.platform.dapi.v0.GetStatusResponse.Network.toObject(message.network, options);
839
+ object.network = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.toObject(message.network, options);
834
840
  return object;
835
841
  };
836
842
 
837
843
  /**
838
- * Converts this GetStatusResponse to JSON.
844
+ * Converts this GetBlockchainStatusResponse to JSON.
839
845
  * @function toJSON
840
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
846
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
841
847
  * @instance
842
848
  * @returns {Object.<string,*>} JSON object
843
849
  */
844
- GetStatusResponse.prototype.toJSON = function toJSON() {
850
+ GetBlockchainStatusResponse.prototype.toJSON = function toJSON() {
845
851
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
846
852
  };
847
853
 
848
- GetStatusResponse.Version = (function() {
854
+ GetBlockchainStatusResponse.Version = (function() {
849
855
 
850
856
  /**
851
857
  * Properties of a Version.
852
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
858
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
853
859
  * @interface IVersion
854
860
  * @property {number|null} [protocol] Version protocol
855
861
  * @property {number|null} [software] Version software
@@ -858,11 +864,11 @@ $root.org = (function() {
858
864
 
859
865
  /**
860
866
  * Constructs a new Version.
861
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
867
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
862
868
  * @classdesc Represents a Version.
863
869
  * @implements IVersion
864
870
  * @constructor
865
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.IVersion=} [properties] Properties to set
871
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.IVersion=} [properties] Properties to set
866
872
  */
867
873
  function Version(properties) {
868
874
  if (properties)
@@ -874,7 +880,7 @@ $root.org = (function() {
874
880
  /**
875
881
  * Version protocol.
876
882
  * @member {number} protocol
877
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Version
883
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version
878
884
  * @instance
879
885
  */
880
886
  Version.prototype.protocol = 0;
@@ -882,7 +888,7 @@ $root.org = (function() {
882
888
  /**
883
889
  * Version software.
884
890
  * @member {number} software
885
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Version
891
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version
886
892
  * @instance
887
893
  */
888
894
  Version.prototype.software = 0;
@@ -890,7 +896,7 @@ $root.org = (function() {
890
896
  /**
891
897
  * Version agent.
892
898
  * @member {string} agent
893
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Version
899
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version
894
900
  * @instance
895
901
  */
896
902
  Version.prototype.agent = "";
@@ -898,21 +904,21 @@ $root.org = (function() {
898
904
  /**
899
905
  * Creates a new Version instance using the specified properties.
900
906
  * @function create
901
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Version
907
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version
902
908
  * @static
903
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.IVersion=} [properties] Properties to set
904
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Version} Version instance
909
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.IVersion=} [properties] Properties to set
910
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} Version instance
905
911
  */
906
912
  Version.create = function create(properties) {
907
913
  return new Version(properties);
908
914
  };
909
915
 
910
916
  /**
911
- * Encodes the specified Version message. Does not implicitly {@link org.dash.platform.dapi.v0.GetStatusResponse.Version.verify|verify} messages.
917
+ * Encodes the specified Version message. Does not implicitly {@link org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.verify|verify} messages.
912
918
  * @function encode
913
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Version
919
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version
914
920
  * @static
915
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.IVersion} message Version message or plain object to encode
921
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.IVersion} message Version message or plain object to encode
916
922
  * @param {$protobuf.Writer} [writer] Writer to encode to
917
923
  * @returns {$protobuf.Writer} Writer
918
924
  */
@@ -929,11 +935,11 @@ $root.org = (function() {
929
935
  };
930
936
 
931
937
  /**
932
- * Encodes the specified Version message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetStatusResponse.Version.verify|verify} messages.
938
+ * Encodes the specified Version message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.verify|verify} messages.
933
939
  * @function encodeDelimited
934
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Version
940
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version
935
941
  * @static
936
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.IVersion} message Version message or plain object to encode
942
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.IVersion} message Version message or plain object to encode
937
943
  * @param {$protobuf.Writer} [writer] Writer to encode to
938
944
  * @returns {$protobuf.Writer} Writer
939
945
  */
@@ -944,18 +950,18 @@ $root.org = (function() {
944
950
  /**
945
951
  * Decodes a Version message from the specified reader or buffer.
946
952
  * @function decode
947
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Version
953
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version
948
954
  * @static
949
955
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
950
956
  * @param {number} [length] Message length if known beforehand
951
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Version} Version
957
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} Version
952
958
  * @throws {Error} If the payload is not a reader or valid buffer
953
959
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
954
960
  */
955
961
  Version.decode = function decode(reader, length) {
956
962
  if (!(reader instanceof $Reader))
957
963
  reader = $Reader.create(reader);
958
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetStatusResponse.Version();
964
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version();
959
965
  while (reader.pos < end) {
960
966
  var tag = reader.uint32();
961
967
  switch (tag >>> 3) {
@@ -979,10 +985,10 @@ $root.org = (function() {
979
985
  /**
980
986
  * Decodes a Version message from the specified reader or buffer, length delimited.
981
987
  * @function decodeDelimited
982
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Version
988
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version
983
989
  * @static
984
990
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
985
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Version} Version
991
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} Version
986
992
  * @throws {Error} If the payload is not a reader or valid buffer
987
993
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
988
994
  */
@@ -995,7 +1001,7 @@ $root.org = (function() {
995
1001
  /**
996
1002
  * Verifies a Version message.
997
1003
  * @function verify
998
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Version
1004
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version
999
1005
  * @static
1000
1006
  * @param {Object.<string,*>} message Plain object to verify
1001
1007
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
@@ -1018,15 +1024,15 @@ $root.org = (function() {
1018
1024
  /**
1019
1025
  * Creates a Version message from a plain object. Also converts values to their respective internal types.
1020
1026
  * @function fromObject
1021
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Version
1027
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version
1022
1028
  * @static
1023
1029
  * @param {Object.<string,*>} object Plain object
1024
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Version} Version
1030
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} Version
1025
1031
  */
1026
1032
  Version.fromObject = function fromObject(object) {
1027
- if (object instanceof $root.org.dash.platform.dapi.v0.GetStatusResponse.Version)
1033
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version)
1028
1034
  return object;
1029
- var message = new $root.org.dash.platform.dapi.v0.GetStatusResponse.Version();
1035
+ var message = new $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version();
1030
1036
  if (object.protocol != null)
1031
1037
  message.protocol = object.protocol >>> 0;
1032
1038
  if (object.software != null)
@@ -1039,9 +1045,9 @@ $root.org = (function() {
1039
1045
  /**
1040
1046
  * Creates a plain object from a Version message. Also converts values to other types if specified.
1041
1047
  * @function toObject
1042
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Version
1048
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version
1043
1049
  * @static
1044
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.Version} message Version
1050
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} message Version
1045
1051
  * @param {$protobuf.IConversionOptions} [options] Conversion options
1046
1052
  * @returns {Object.<string,*>} Plain object
1047
1053
  */
@@ -1066,7 +1072,7 @@ $root.org = (function() {
1066
1072
  /**
1067
1073
  * Converts this Version to JSON.
1068
1074
  * @function toJSON
1069
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Version
1075
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version
1070
1076
  * @instance
1071
1077
  * @returns {Object.<string,*>} JSON object
1072
1078
  */
@@ -1077,11 +1083,11 @@ $root.org = (function() {
1077
1083
  return Version;
1078
1084
  })();
1079
1085
 
1080
- GetStatusResponse.Time = (function() {
1086
+ GetBlockchainStatusResponse.Time = (function() {
1081
1087
 
1082
1088
  /**
1083
1089
  * Properties of a Time.
1084
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
1090
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
1085
1091
  * @interface ITime
1086
1092
  * @property {number|null} [now] Time now
1087
1093
  * @property {number|null} [offset] Time offset
@@ -1090,11 +1096,11 @@ $root.org = (function() {
1090
1096
 
1091
1097
  /**
1092
1098
  * Constructs a new Time.
1093
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
1099
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
1094
1100
  * @classdesc Represents a Time.
1095
1101
  * @implements ITime
1096
1102
  * @constructor
1097
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.ITime=} [properties] Properties to set
1103
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.ITime=} [properties] Properties to set
1098
1104
  */
1099
1105
  function Time(properties) {
1100
1106
  if (properties)
@@ -1106,7 +1112,7 @@ $root.org = (function() {
1106
1112
  /**
1107
1113
  * Time now.
1108
1114
  * @member {number} now
1109
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Time
1115
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time
1110
1116
  * @instance
1111
1117
  */
1112
1118
  Time.prototype.now = 0;
@@ -1114,7 +1120,7 @@ $root.org = (function() {
1114
1120
  /**
1115
1121
  * Time offset.
1116
1122
  * @member {number} offset
1117
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Time
1123
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time
1118
1124
  * @instance
1119
1125
  */
1120
1126
  Time.prototype.offset = 0;
@@ -1122,7 +1128,7 @@ $root.org = (function() {
1122
1128
  /**
1123
1129
  * Time median.
1124
1130
  * @member {number} median
1125
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Time
1131
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time
1126
1132
  * @instance
1127
1133
  */
1128
1134
  Time.prototype.median = 0;
@@ -1130,21 +1136,21 @@ $root.org = (function() {
1130
1136
  /**
1131
1137
  * Creates a new Time instance using the specified properties.
1132
1138
  * @function create
1133
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Time
1139
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time
1134
1140
  * @static
1135
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.ITime=} [properties] Properties to set
1136
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Time} Time instance
1141
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.ITime=} [properties] Properties to set
1142
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} Time instance
1137
1143
  */
1138
1144
  Time.create = function create(properties) {
1139
1145
  return new Time(properties);
1140
1146
  };
1141
1147
 
1142
1148
  /**
1143
- * Encodes the specified Time message. Does not implicitly {@link org.dash.platform.dapi.v0.GetStatusResponse.Time.verify|verify} messages.
1149
+ * Encodes the specified Time message. Does not implicitly {@link org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.verify|verify} messages.
1144
1150
  * @function encode
1145
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Time
1151
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time
1146
1152
  * @static
1147
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.ITime} message Time message or plain object to encode
1153
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.ITime} message Time message or plain object to encode
1148
1154
  * @param {$protobuf.Writer} [writer] Writer to encode to
1149
1155
  * @returns {$protobuf.Writer} Writer
1150
1156
  */
@@ -1161,11 +1167,11 @@ $root.org = (function() {
1161
1167
  };
1162
1168
 
1163
1169
  /**
1164
- * Encodes the specified Time message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetStatusResponse.Time.verify|verify} messages.
1170
+ * Encodes the specified Time message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.verify|verify} messages.
1165
1171
  * @function encodeDelimited
1166
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Time
1172
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time
1167
1173
  * @static
1168
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.ITime} message Time message or plain object to encode
1174
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.ITime} message Time message or plain object to encode
1169
1175
  * @param {$protobuf.Writer} [writer] Writer to encode to
1170
1176
  * @returns {$protobuf.Writer} Writer
1171
1177
  */
@@ -1176,18 +1182,18 @@ $root.org = (function() {
1176
1182
  /**
1177
1183
  * Decodes a Time message from the specified reader or buffer.
1178
1184
  * @function decode
1179
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Time
1185
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time
1180
1186
  * @static
1181
1187
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1182
1188
  * @param {number} [length] Message length if known beforehand
1183
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Time} Time
1189
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} Time
1184
1190
  * @throws {Error} If the payload is not a reader or valid buffer
1185
1191
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1186
1192
  */
1187
1193
  Time.decode = function decode(reader, length) {
1188
1194
  if (!(reader instanceof $Reader))
1189
1195
  reader = $Reader.create(reader);
1190
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetStatusResponse.Time();
1196
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time();
1191
1197
  while (reader.pos < end) {
1192
1198
  var tag = reader.uint32();
1193
1199
  switch (tag >>> 3) {
@@ -1211,10 +1217,10 @@ $root.org = (function() {
1211
1217
  /**
1212
1218
  * Decodes a Time message from the specified reader or buffer, length delimited.
1213
1219
  * @function decodeDelimited
1214
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Time
1220
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time
1215
1221
  * @static
1216
1222
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1217
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Time} Time
1223
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} Time
1218
1224
  * @throws {Error} If the payload is not a reader or valid buffer
1219
1225
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1220
1226
  */
@@ -1227,7 +1233,7 @@ $root.org = (function() {
1227
1233
  /**
1228
1234
  * Verifies a Time message.
1229
1235
  * @function verify
1230
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Time
1236
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time
1231
1237
  * @static
1232
1238
  * @param {Object.<string,*>} message Plain object to verify
1233
1239
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
@@ -1250,15 +1256,15 @@ $root.org = (function() {
1250
1256
  /**
1251
1257
  * Creates a Time message from a plain object. Also converts values to their respective internal types.
1252
1258
  * @function fromObject
1253
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Time
1259
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time
1254
1260
  * @static
1255
1261
  * @param {Object.<string,*>} object Plain object
1256
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Time} Time
1262
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} Time
1257
1263
  */
1258
1264
  Time.fromObject = function fromObject(object) {
1259
- if (object instanceof $root.org.dash.platform.dapi.v0.GetStatusResponse.Time)
1265
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time)
1260
1266
  return object;
1261
- var message = new $root.org.dash.platform.dapi.v0.GetStatusResponse.Time();
1267
+ var message = new $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time();
1262
1268
  if (object.now != null)
1263
1269
  message.now = object.now >>> 0;
1264
1270
  if (object.offset != null)
@@ -1271,9 +1277,9 @@ $root.org = (function() {
1271
1277
  /**
1272
1278
  * Creates a plain object from a Time message. Also converts values to other types if specified.
1273
1279
  * @function toObject
1274
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Time
1280
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time
1275
1281
  * @static
1276
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.Time} message Time
1282
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} message Time
1277
1283
  * @param {$protobuf.IConversionOptions} [options] Conversion options
1278
1284
  * @returns {Object.<string,*>} Plain object
1279
1285
  */
@@ -1298,7 +1304,7 @@ $root.org = (function() {
1298
1304
  /**
1299
1305
  * Converts this Time to JSON.
1300
1306
  * @function toJSON
1301
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Time
1307
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time
1302
1308
  * @instance
1303
1309
  * @returns {Object.<string,*>} JSON object
1304
1310
  */
@@ -1311,14 +1317,14 @@ $root.org = (function() {
1311
1317
 
1312
1318
  /**
1313
1319
  * Status enum.
1314
- * @name org.dash.platform.dapi.v0.GetStatusResponse.Status
1320
+ * @name org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status
1315
1321
  * @enum {number}
1316
1322
  * @property {number} NOT_STARTED=0 NOT_STARTED value
1317
1323
  * @property {number} SYNCING=1 SYNCING value
1318
1324
  * @property {number} READY=2 READY value
1319
1325
  * @property {number} ERROR=3 ERROR value
1320
1326
  */
1321
- GetStatusResponse.Status = (function() {
1327
+ GetBlockchainStatusResponse.Status = (function() {
1322
1328
  var valuesById = {}, values = Object.create(valuesById);
1323
1329
  values[valuesById[0] = "NOT_STARTED"] = 0;
1324
1330
  values[valuesById[1] = "SYNCING"] = 1;
@@ -1327,11 +1333,11 @@ $root.org = (function() {
1327
1333
  return values;
1328
1334
  })();
1329
1335
 
1330
- GetStatusResponse.Chain = (function() {
1336
+ GetBlockchainStatusResponse.Chain = (function() {
1331
1337
 
1332
1338
  /**
1333
1339
  * Properties of a Chain.
1334
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
1340
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
1335
1341
  * @interface IChain
1336
1342
  * @property {string|null} [name] Chain name
1337
1343
  * @property {number|null} [headersCount] Chain headersCount
@@ -1345,11 +1351,11 @@ $root.org = (function() {
1345
1351
 
1346
1352
  /**
1347
1353
  * Constructs a new Chain.
1348
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
1354
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
1349
1355
  * @classdesc Represents a Chain.
1350
1356
  * @implements IChain
1351
1357
  * @constructor
1352
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.IChain=} [properties] Properties to set
1358
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.IChain=} [properties] Properties to set
1353
1359
  */
1354
1360
  function Chain(properties) {
1355
1361
  if (properties)
@@ -1361,7 +1367,7 @@ $root.org = (function() {
1361
1367
  /**
1362
1368
  * Chain name.
1363
1369
  * @member {string} name
1364
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1370
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1365
1371
  * @instance
1366
1372
  */
1367
1373
  Chain.prototype.name = "";
@@ -1369,7 +1375,7 @@ $root.org = (function() {
1369
1375
  /**
1370
1376
  * Chain headersCount.
1371
1377
  * @member {number} headersCount
1372
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1378
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1373
1379
  * @instance
1374
1380
  */
1375
1381
  Chain.prototype.headersCount = 0;
@@ -1377,7 +1383,7 @@ $root.org = (function() {
1377
1383
  /**
1378
1384
  * Chain blocksCount.
1379
1385
  * @member {number} blocksCount
1380
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1386
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1381
1387
  * @instance
1382
1388
  */
1383
1389
  Chain.prototype.blocksCount = 0;
@@ -1385,7 +1391,7 @@ $root.org = (function() {
1385
1391
  /**
1386
1392
  * Chain bestBlockHash.
1387
1393
  * @member {Uint8Array} bestBlockHash
1388
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1394
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1389
1395
  * @instance
1390
1396
  */
1391
1397
  Chain.prototype.bestBlockHash = $util.newBuffer([]);
@@ -1393,7 +1399,7 @@ $root.org = (function() {
1393
1399
  /**
1394
1400
  * Chain difficulty.
1395
1401
  * @member {number} difficulty
1396
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1402
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1397
1403
  * @instance
1398
1404
  */
1399
1405
  Chain.prototype.difficulty = 0;
@@ -1401,7 +1407,7 @@ $root.org = (function() {
1401
1407
  /**
1402
1408
  * Chain chainWork.
1403
1409
  * @member {Uint8Array} chainWork
1404
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1410
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1405
1411
  * @instance
1406
1412
  */
1407
1413
  Chain.prototype.chainWork = $util.newBuffer([]);
@@ -1409,7 +1415,7 @@ $root.org = (function() {
1409
1415
  /**
1410
1416
  * Chain isSynced.
1411
1417
  * @member {boolean} isSynced
1412
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1418
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1413
1419
  * @instance
1414
1420
  */
1415
1421
  Chain.prototype.isSynced = false;
@@ -1417,7 +1423,7 @@ $root.org = (function() {
1417
1423
  /**
1418
1424
  * Chain syncProgress.
1419
1425
  * @member {number} syncProgress
1420
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1426
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1421
1427
  * @instance
1422
1428
  */
1423
1429
  Chain.prototype.syncProgress = 0;
@@ -1425,21 +1431,21 @@ $root.org = (function() {
1425
1431
  /**
1426
1432
  * Creates a new Chain instance using the specified properties.
1427
1433
  * @function create
1428
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1434
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1429
1435
  * @static
1430
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.IChain=} [properties] Properties to set
1431
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Chain} Chain instance
1436
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.IChain=} [properties] Properties to set
1437
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} Chain instance
1432
1438
  */
1433
1439
  Chain.create = function create(properties) {
1434
1440
  return new Chain(properties);
1435
1441
  };
1436
1442
 
1437
1443
  /**
1438
- * Encodes the specified Chain message. Does not implicitly {@link org.dash.platform.dapi.v0.GetStatusResponse.Chain.verify|verify} messages.
1444
+ * Encodes the specified Chain message. Does not implicitly {@link org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.verify|verify} messages.
1439
1445
  * @function encode
1440
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1446
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1441
1447
  * @static
1442
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.IChain} message Chain message or plain object to encode
1448
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.IChain} message Chain message or plain object to encode
1443
1449
  * @param {$protobuf.Writer} [writer] Writer to encode to
1444
1450
  * @returns {$protobuf.Writer} Writer
1445
1451
  */
@@ -1466,11 +1472,11 @@ $root.org = (function() {
1466
1472
  };
1467
1473
 
1468
1474
  /**
1469
- * Encodes the specified Chain message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetStatusResponse.Chain.verify|verify} messages.
1475
+ * Encodes the specified Chain message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.verify|verify} messages.
1470
1476
  * @function encodeDelimited
1471
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1477
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1472
1478
  * @static
1473
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.IChain} message Chain message or plain object to encode
1479
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.IChain} message Chain message or plain object to encode
1474
1480
  * @param {$protobuf.Writer} [writer] Writer to encode to
1475
1481
  * @returns {$protobuf.Writer} Writer
1476
1482
  */
@@ -1481,18 +1487,18 @@ $root.org = (function() {
1481
1487
  /**
1482
1488
  * Decodes a Chain message from the specified reader or buffer.
1483
1489
  * @function decode
1484
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1490
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1485
1491
  * @static
1486
1492
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1487
1493
  * @param {number} [length] Message length if known beforehand
1488
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Chain} Chain
1494
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} Chain
1489
1495
  * @throws {Error} If the payload is not a reader or valid buffer
1490
1496
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1491
1497
  */
1492
1498
  Chain.decode = function decode(reader, length) {
1493
1499
  if (!(reader instanceof $Reader))
1494
1500
  reader = $Reader.create(reader);
1495
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetStatusResponse.Chain();
1501
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain();
1496
1502
  while (reader.pos < end) {
1497
1503
  var tag = reader.uint32();
1498
1504
  switch (tag >>> 3) {
@@ -1531,10 +1537,10 @@ $root.org = (function() {
1531
1537
  /**
1532
1538
  * Decodes a Chain message from the specified reader or buffer, length delimited.
1533
1539
  * @function decodeDelimited
1534
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1540
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1535
1541
  * @static
1536
1542
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1537
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Chain} Chain
1543
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} Chain
1538
1544
  * @throws {Error} If the payload is not a reader or valid buffer
1539
1545
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1540
1546
  */
@@ -1547,7 +1553,7 @@ $root.org = (function() {
1547
1553
  /**
1548
1554
  * Verifies a Chain message.
1549
1555
  * @function verify
1550
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1556
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1551
1557
  * @static
1552
1558
  * @param {Object.<string,*>} message Plain object to verify
1553
1559
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
@@ -1585,15 +1591,15 @@ $root.org = (function() {
1585
1591
  /**
1586
1592
  * Creates a Chain message from a plain object. Also converts values to their respective internal types.
1587
1593
  * @function fromObject
1588
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1594
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1589
1595
  * @static
1590
1596
  * @param {Object.<string,*>} object Plain object
1591
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Chain} Chain
1597
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} Chain
1592
1598
  */
1593
1599
  Chain.fromObject = function fromObject(object) {
1594
- if (object instanceof $root.org.dash.platform.dapi.v0.GetStatusResponse.Chain)
1600
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain)
1595
1601
  return object;
1596
- var message = new $root.org.dash.platform.dapi.v0.GetStatusResponse.Chain();
1602
+ var message = new $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain();
1597
1603
  if (object.name != null)
1598
1604
  message.name = String(object.name);
1599
1605
  if (object.headersCount != null)
@@ -1622,9 +1628,9 @@ $root.org = (function() {
1622
1628
  /**
1623
1629
  * Creates a plain object from a Chain message. Also converts values to other types if specified.
1624
1630
  * @function toObject
1625
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1631
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1626
1632
  * @static
1627
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.Chain} message Chain
1633
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} message Chain
1628
1634
  * @param {$protobuf.IConversionOptions} [options] Conversion options
1629
1635
  * @returns {Object.<string,*>} Plain object
1630
1636
  */
@@ -1676,7 +1682,7 @@ $root.org = (function() {
1676
1682
  /**
1677
1683
  * Converts this Chain to JSON.
1678
1684
  * @function toJSON
1679
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Chain
1685
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain
1680
1686
  * @instance
1681
1687
  * @returns {Object.<string,*>} JSON object
1682
1688
  */
@@ -1687,365 +1693,11 @@ $root.org = (function() {
1687
1693
  return Chain;
1688
1694
  })();
1689
1695
 
1690
- GetStatusResponse.Masternode = (function() {
1691
-
1692
- /**
1693
- * Properties of a Masternode.
1694
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
1695
- * @interface IMasternode
1696
- * @property {org.dash.platform.dapi.v0.GetStatusResponse.Masternode.Status|null} [status] Masternode status
1697
- * @property {Uint8Array|null} [proTxHash] Masternode proTxHash
1698
- * @property {number|null} [posePenalty] Masternode posePenalty
1699
- * @property {boolean|null} [isSynced] Masternode isSynced
1700
- * @property {number|null} [syncProgress] Masternode syncProgress
1701
- */
1702
-
1703
- /**
1704
- * Constructs a new Masternode.
1705
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
1706
- * @classdesc Represents a Masternode.
1707
- * @implements IMasternode
1708
- * @constructor
1709
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.IMasternode=} [properties] Properties to set
1710
- */
1711
- function Masternode(properties) {
1712
- if (properties)
1713
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1714
- if (properties[keys[i]] != null)
1715
- this[keys[i]] = properties[keys[i]];
1716
- }
1717
-
1718
- /**
1719
- * Masternode status.
1720
- * @member {org.dash.platform.dapi.v0.GetStatusResponse.Masternode.Status} status
1721
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Masternode
1722
- * @instance
1723
- */
1724
- Masternode.prototype.status = 0;
1725
-
1726
- /**
1727
- * Masternode proTxHash.
1728
- * @member {Uint8Array} proTxHash
1729
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Masternode
1730
- * @instance
1731
- */
1732
- Masternode.prototype.proTxHash = $util.newBuffer([]);
1733
-
1734
- /**
1735
- * Masternode posePenalty.
1736
- * @member {number} posePenalty
1737
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Masternode
1738
- * @instance
1739
- */
1740
- Masternode.prototype.posePenalty = 0;
1741
-
1742
- /**
1743
- * Masternode isSynced.
1744
- * @member {boolean} isSynced
1745
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Masternode
1746
- * @instance
1747
- */
1748
- Masternode.prototype.isSynced = false;
1749
-
1750
- /**
1751
- * Masternode syncProgress.
1752
- * @member {number} syncProgress
1753
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Masternode
1754
- * @instance
1755
- */
1756
- Masternode.prototype.syncProgress = 0;
1757
-
1758
- /**
1759
- * Creates a new Masternode instance using the specified properties.
1760
- * @function create
1761
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Masternode
1762
- * @static
1763
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.IMasternode=} [properties] Properties to set
1764
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Masternode} Masternode instance
1765
- */
1766
- Masternode.create = function create(properties) {
1767
- return new Masternode(properties);
1768
- };
1769
-
1770
- /**
1771
- * Encodes the specified Masternode message. Does not implicitly {@link org.dash.platform.dapi.v0.GetStatusResponse.Masternode.verify|verify} messages.
1772
- * @function encode
1773
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Masternode
1774
- * @static
1775
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.IMasternode} message Masternode message or plain object to encode
1776
- * @param {$protobuf.Writer} [writer] Writer to encode to
1777
- * @returns {$protobuf.Writer} Writer
1778
- */
1779
- Masternode.encode = function encode(message, writer) {
1780
- if (!writer)
1781
- writer = $Writer.create();
1782
- if (message.status != null && Object.hasOwnProperty.call(message, "status"))
1783
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
1784
- if (message.proTxHash != null && Object.hasOwnProperty.call(message, "proTxHash"))
1785
- writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proTxHash);
1786
- if (message.posePenalty != null && Object.hasOwnProperty.call(message, "posePenalty"))
1787
- writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.posePenalty);
1788
- if (message.isSynced != null && Object.hasOwnProperty.call(message, "isSynced"))
1789
- writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isSynced);
1790
- if (message.syncProgress != null && Object.hasOwnProperty.call(message, "syncProgress"))
1791
- writer.uint32(/* id 5, wireType 1 =*/41).double(message.syncProgress);
1792
- return writer;
1793
- };
1794
-
1795
- /**
1796
- * Encodes the specified Masternode message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetStatusResponse.Masternode.verify|verify} messages.
1797
- * @function encodeDelimited
1798
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Masternode
1799
- * @static
1800
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.IMasternode} message Masternode message or plain object to encode
1801
- * @param {$protobuf.Writer} [writer] Writer to encode to
1802
- * @returns {$protobuf.Writer} Writer
1803
- */
1804
- Masternode.encodeDelimited = function encodeDelimited(message, writer) {
1805
- return this.encode(message, writer).ldelim();
1806
- };
1807
-
1808
- /**
1809
- * Decodes a Masternode message from the specified reader or buffer.
1810
- * @function decode
1811
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Masternode
1812
- * @static
1813
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1814
- * @param {number} [length] Message length if known beforehand
1815
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Masternode} Masternode
1816
- * @throws {Error} If the payload is not a reader or valid buffer
1817
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1818
- */
1819
- Masternode.decode = function decode(reader, length) {
1820
- if (!(reader instanceof $Reader))
1821
- reader = $Reader.create(reader);
1822
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetStatusResponse.Masternode();
1823
- while (reader.pos < end) {
1824
- var tag = reader.uint32();
1825
- switch (tag >>> 3) {
1826
- case 1:
1827
- message.status = reader.int32();
1828
- break;
1829
- case 2:
1830
- message.proTxHash = reader.bytes();
1831
- break;
1832
- case 3:
1833
- message.posePenalty = reader.uint32();
1834
- break;
1835
- case 4:
1836
- message.isSynced = reader.bool();
1837
- break;
1838
- case 5:
1839
- message.syncProgress = reader.double();
1840
- break;
1841
- default:
1842
- reader.skipType(tag & 7);
1843
- break;
1844
- }
1845
- }
1846
- return message;
1847
- };
1848
-
1849
- /**
1850
- * Decodes a Masternode message from the specified reader or buffer, length delimited.
1851
- * @function decodeDelimited
1852
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Masternode
1853
- * @static
1854
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1855
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Masternode} Masternode
1856
- * @throws {Error} If the payload is not a reader or valid buffer
1857
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1858
- */
1859
- Masternode.decodeDelimited = function decodeDelimited(reader) {
1860
- if (!(reader instanceof $Reader))
1861
- reader = new $Reader(reader);
1862
- return this.decode(reader, reader.uint32());
1863
- };
1864
-
1865
- /**
1866
- * Verifies a Masternode message.
1867
- * @function verify
1868
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Masternode
1869
- * @static
1870
- * @param {Object.<string,*>} message Plain object to verify
1871
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
1872
- */
1873
- Masternode.verify = function verify(message) {
1874
- if (typeof message !== "object" || message === null)
1875
- return "object expected";
1876
- if (message.status != null && message.hasOwnProperty("status"))
1877
- switch (message.status) {
1878
- default:
1879
- return "status: enum value expected";
1880
- case 0:
1881
- case 1:
1882
- case 2:
1883
- case 3:
1884
- case 4:
1885
- case 5:
1886
- case 6:
1887
- case 7:
1888
- break;
1889
- }
1890
- if (message.proTxHash != null && message.hasOwnProperty("proTxHash"))
1891
- if (!(message.proTxHash && typeof message.proTxHash.length === "number" || $util.isString(message.proTxHash)))
1892
- return "proTxHash: buffer expected";
1893
- if (message.posePenalty != null && message.hasOwnProperty("posePenalty"))
1894
- if (!$util.isInteger(message.posePenalty))
1895
- return "posePenalty: integer expected";
1896
- if (message.isSynced != null && message.hasOwnProperty("isSynced"))
1897
- if (typeof message.isSynced !== "boolean")
1898
- return "isSynced: boolean expected";
1899
- if (message.syncProgress != null && message.hasOwnProperty("syncProgress"))
1900
- if (typeof message.syncProgress !== "number")
1901
- return "syncProgress: number expected";
1902
- return null;
1903
- };
1904
-
1905
- /**
1906
- * Creates a Masternode message from a plain object. Also converts values to their respective internal types.
1907
- * @function fromObject
1908
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Masternode
1909
- * @static
1910
- * @param {Object.<string,*>} object Plain object
1911
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Masternode} Masternode
1912
- */
1913
- Masternode.fromObject = function fromObject(object) {
1914
- if (object instanceof $root.org.dash.platform.dapi.v0.GetStatusResponse.Masternode)
1915
- return object;
1916
- var message = new $root.org.dash.platform.dapi.v0.GetStatusResponse.Masternode();
1917
- switch (object.status) {
1918
- case "UNKNOWN":
1919
- case 0:
1920
- message.status = 0;
1921
- break;
1922
- case "WAITING_FOR_PROTX":
1923
- case 1:
1924
- message.status = 1;
1925
- break;
1926
- case "POSE_BANNED":
1927
- case 2:
1928
- message.status = 2;
1929
- break;
1930
- case "REMOVED":
1931
- case 3:
1932
- message.status = 3;
1933
- break;
1934
- case "OPERATOR_KEY_CHANGED":
1935
- case 4:
1936
- message.status = 4;
1937
- break;
1938
- case "PROTX_IP_CHANGED":
1939
- case 5:
1940
- message.status = 5;
1941
- break;
1942
- case "READY":
1943
- case 6:
1944
- message.status = 6;
1945
- break;
1946
- case "ERROR":
1947
- case 7:
1948
- message.status = 7;
1949
- break;
1950
- }
1951
- if (object.proTxHash != null)
1952
- if (typeof object.proTxHash === "string")
1953
- $util.base64.decode(object.proTxHash, message.proTxHash = $util.newBuffer($util.base64.length(object.proTxHash)), 0);
1954
- else if (object.proTxHash.length >= 0)
1955
- message.proTxHash = object.proTxHash;
1956
- if (object.posePenalty != null)
1957
- message.posePenalty = object.posePenalty >>> 0;
1958
- if (object.isSynced != null)
1959
- message.isSynced = Boolean(object.isSynced);
1960
- if (object.syncProgress != null)
1961
- message.syncProgress = Number(object.syncProgress);
1962
- return message;
1963
- };
1964
-
1965
- /**
1966
- * Creates a plain object from a Masternode message. Also converts values to other types if specified.
1967
- * @function toObject
1968
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Masternode
1969
- * @static
1970
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.Masternode} message Masternode
1971
- * @param {$protobuf.IConversionOptions} [options] Conversion options
1972
- * @returns {Object.<string,*>} Plain object
1973
- */
1974
- Masternode.toObject = function toObject(message, options) {
1975
- if (!options)
1976
- options = {};
1977
- var object = {};
1978
- if (options.defaults) {
1979
- object.status = options.enums === String ? "UNKNOWN" : 0;
1980
- if (options.bytes === String)
1981
- object.proTxHash = "";
1982
- else {
1983
- object.proTxHash = [];
1984
- if (options.bytes !== Array)
1985
- object.proTxHash = $util.newBuffer(object.proTxHash);
1986
- }
1987
- object.posePenalty = 0;
1988
- object.isSynced = false;
1989
- object.syncProgress = 0;
1990
- }
1991
- if (message.status != null && message.hasOwnProperty("status"))
1992
- object.status = options.enums === String ? $root.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.Status[message.status] : message.status;
1993
- if (message.proTxHash != null && message.hasOwnProperty("proTxHash"))
1994
- 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;
1995
- if (message.posePenalty != null && message.hasOwnProperty("posePenalty"))
1996
- object.posePenalty = message.posePenalty;
1997
- if (message.isSynced != null && message.hasOwnProperty("isSynced"))
1998
- object.isSynced = message.isSynced;
1999
- if (message.syncProgress != null && message.hasOwnProperty("syncProgress"))
2000
- object.syncProgress = options.json && !isFinite(message.syncProgress) ? String(message.syncProgress) : message.syncProgress;
2001
- return object;
2002
- };
2003
-
2004
- /**
2005
- * Converts this Masternode to JSON.
2006
- * @function toJSON
2007
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Masternode
2008
- * @instance
2009
- * @returns {Object.<string,*>} JSON object
2010
- */
2011
- Masternode.prototype.toJSON = function toJSON() {
2012
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2013
- };
2014
-
2015
- /**
2016
- * Status enum.
2017
- * @name org.dash.platform.dapi.v0.GetStatusResponse.Masternode.Status
2018
- * @enum {number}
2019
- * @property {number} UNKNOWN=0 UNKNOWN value
2020
- * @property {number} WAITING_FOR_PROTX=1 WAITING_FOR_PROTX value
2021
- * @property {number} POSE_BANNED=2 POSE_BANNED value
2022
- * @property {number} REMOVED=3 REMOVED value
2023
- * @property {number} OPERATOR_KEY_CHANGED=4 OPERATOR_KEY_CHANGED value
2024
- * @property {number} PROTX_IP_CHANGED=5 PROTX_IP_CHANGED value
2025
- * @property {number} READY=6 READY value
2026
- * @property {number} ERROR=7 ERROR value
2027
- */
2028
- Masternode.Status = (function() {
2029
- var valuesById = {}, values = Object.create(valuesById);
2030
- values[valuesById[0] = "UNKNOWN"] = 0;
2031
- values[valuesById[1] = "WAITING_FOR_PROTX"] = 1;
2032
- values[valuesById[2] = "POSE_BANNED"] = 2;
2033
- values[valuesById[3] = "REMOVED"] = 3;
2034
- values[valuesById[4] = "OPERATOR_KEY_CHANGED"] = 4;
2035
- values[valuesById[5] = "PROTX_IP_CHANGED"] = 5;
2036
- values[valuesById[6] = "READY"] = 6;
2037
- values[valuesById[7] = "ERROR"] = 7;
2038
- return values;
2039
- })();
2040
-
2041
- return Masternode;
2042
- })();
2043
-
2044
- GetStatusResponse.NetworkFee = (function() {
1696
+ GetBlockchainStatusResponse.NetworkFee = (function() {
2045
1697
 
2046
1698
  /**
2047
1699
  * Properties of a NetworkFee.
2048
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
1700
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
2049
1701
  * @interface INetworkFee
2050
1702
  * @property {number|null} [relay] NetworkFee relay
2051
1703
  * @property {number|null} [incremental] NetworkFee incremental
@@ -2053,11 +1705,11 @@ $root.org = (function() {
2053
1705
 
2054
1706
  /**
2055
1707
  * Constructs a new NetworkFee.
2056
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
1708
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
2057
1709
  * @classdesc Represents a NetworkFee.
2058
1710
  * @implements INetworkFee
2059
1711
  * @constructor
2060
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.INetworkFee=} [properties] Properties to set
1712
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.INetworkFee=} [properties] Properties to set
2061
1713
  */
2062
1714
  function NetworkFee(properties) {
2063
1715
  if (properties)
@@ -2069,7 +1721,7 @@ $root.org = (function() {
2069
1721
  /**
2070
1722
  * NetworkFee relay.
2071
1723
  * @member {number} relay
2072
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee
1724
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee
2073
1725
  * @instance
2074
1726
  */
2075
1727
  NetworkFee.prototype.relay = 0;
@@ -2077,7 +1729,7 @@ $root.org = (function() {
2077
1729
  /**
2078
1730
  * NetworkFee incremental.
2079
1731
  * @member {number} incremental
2080
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee
1732
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee
2081
1733
  * @instance
2082
1734
  */
2083
1735
  NetworkFee.prototype.incremental = 0;
@@ -2085,21 +1737,21 @@ $root.org = (function() {
2085
1737
  /**
2086
1738
  * Creates a new NetworkFee instance using the specified properties.
2087
1739
  * @function create
2088
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee
1740
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee
2089
1741
  * @static
2090
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.INetworkFee=} [properties] Properties to set
2091
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee} NetworkFee instance
1742
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.INetworkFee=} [properties] Properties to set
1743
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} NetworkFee instance
2092
1744
  */
2093
1745
  NetworkFee.create = function create(properties) {
2094
1746
  return new NetworkFee(properties);
2095
1747
  };
2096
1748
 
2097
1749
  /**
2098
- * Encodes the specified NetworkFee message. Does not implicitly {@link org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.verify|verify} messages.
1750
+ * Encodes the specified NetworkFee message. Does not implicitly {@link org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.verify|verify} messages.
2099
1751
  * @function encode
2100
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee
1752
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee
2101
1753
  * @static
2102
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.INetworkFee} message NetworkFee message or plain object to encode
1754
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.INetworkFee} message NetworkFee message or plain object to encode
2103
1755
  * @param {$protobuf.Writer} [writer] Writer to encode to
2104
1756
  * @returns {$protobuf.Writer} Writer
2105
1757
  */
@@ -2114,11 +1766,11 @@ $root.org = (function() {
2114
1766
  };
2115
1767
 
2116
1768
  /**
2117
- * Encodes the specified NetworkFee message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.verify|verify} messages.
1769
+ * Encodes the specified NetworkFee message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.verify|verify} messages.
2118
1770
  * @function encodeDelimited
2119
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee
1771
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee
2120
1772
  * @static
2121
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.INetworkFee} message NetworkFee message or plain object to encode
1773
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.INetworkFee} message NetworkFee message or plain object to encode
2122
1774
  * @param {$protobuf.Writer} [writer] Writer to encode to
2123
1775
  * @returns {$protobuf.Writer} Writer
2124
1776
  */
@@ -2129,18 +1781,18 @@ $root.org = (function() {
2129
1781
  /**
2130
1782
  * Decodes a NetworkFee message from the specified reader or buffer.
2131
1783
  * @function decode
2132
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee
1784
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee
2133
1785
  * @static
2134
1786
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2135
1787
  * @param {number} [length] Message length if known beforehand
2136
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee} NetworkFee
1788
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} NetworkFee
2137
1789
  * @throws {Error} If the payload is not a reader or valid buffer
2138
1790
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
2139
1791
  */
2140
1792
  NetworkFee.decode = function decode(reader, length) {
2141
1793
  if (!(reader instanceof $Reader))
2142
1794
  reader = $Reader.create(reader);
2143
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee();
1795
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee();
2144
1796
  while (reader.pos < end) {
2145
1797
  var tag = reader.uint32();
2146
1798
  switch (tag >>> 3) {
@@ -2161,10 +1813,10 @@ $root.org = (function() {
2161
1813
  /**
2162
1814
  * Decodes a NetworkFee message from the specified reader or buffer, length delimited.
2163
1815
  * @function decodeDelimited
2164
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee
1816
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee
2165
1817
  * @static
2166
1818
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2167
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee} NetworkFee
1819
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} NetworkFee
2168
1820
  * @throws {Error} If the payload is not a reader or valid buffer
2169
1821
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
2170
1822
  */
@@ -2177,7 +1829,7 @@ $root.org = (function() {
2177
1829
  /**
2178
1830
  * Verifies a NetworkFee message.
2179
1831
  * @function verify
2180
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee
1832
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee
2181
1833
  * @static
2182
1834
  * @param {Object.<string,*>} message Plain object to verify
2183
1835
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
@@ -2197,15 +1849,15 @@ $root.org = (function() {
2197
1849
  /**
2198
1850
  * Creates a NetworkFee message from a plain object. Also converts values to their respective internal types.
2199
1851
  * @function fromObject
2200
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee
1852
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee
2201
1853
  * @static
2202
1854
  * @param {Object.<string,*>} object Plain object
2203
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee} NetworkFee
1855
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} NetworkFee
2204
1856
  */
2205
1857
  NetworkFee.fromObject = function fromObject(object) {
2206
- if (object instanceof $root.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee)
1858
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee)
2207
1859
  return object;
2208
- var message = new $root.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee();
1860
+ var message = new $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee();
2209
1861
  if (object.relay != null)
2210
1862
  message.relay = Number(object.relay);
2211
1863
  if (object.incremental != null)
@@ -2216,9 +1868,9 @@ $root.org = (function() {
2216
1868
  /**
2217
1869
  * Creates a plain object from a NetworkFee message. Also converts values to other types if specified.
2218
1870
  * @function toObject
2219
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee
1871
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee
2220
1872
  * @static
2221
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee} message NetworkFee
1873
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} message NetworkFee
2222
1874
  * @param {$protobuf.IConversionOptions} [options] Conversion options
2223
1875
  * @returns {Object.<string,*>} Plain object
2224
1876
  */
@@ -2240,7 +1892,7 @@ $root.org = (function() {
2240
1892
  /**
2241
1893
  * Converts this NetworkFee to JSON.
2242
1894
  * @function toJSON
2243
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee
1895
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee
2244
1896
  * @instance
2245
1897
  * @returns {Object.<string,*>} JSON object
2246
1898
  */
@@ -2251,23 +1903,23 @@ $root.org = (function() {
2251
1903
  return NetworkFee;
2252
1904
  })();
2253
1905
 
2254
- GetStatusResponse.Network = (function() {
1906
+ GetBlockchainStatusResponse.Network = (function() {
2255
1907
 
2256
1908
  /**
2257
1909
  * Properties of a Network.
2258
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
1910
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
2259
1911
  * @interface INetwork
2260
1912
  * @property {number|null} [peersCount] Network peersCount
2261
- * @property {org.dash.platform.dapi.v0.GetStatusResponse.INetworkFee|null} [fee] Network fee
1913
+ * @property {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.INetworkFee|null} [fee] Network fee
2262
1914
  */
2263
1915
 
2264
1916
  /**
2265
1917
  * Constructs a new Network.
2266
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse
1918
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse
2267
1919
  * @classdesc Represents a Network.
2268
1920
  * @implements INetwork
2269
1921
  * @constructor
2270
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.INetwork=} [properties] Properties to set
1922
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.INetwork=} [properties] Properties to set
2271
1923
  */
2272
1924
  function Network(properties) {
2273
1925
  if (properties)
@@ -2279,15 +1931,15 @@ $root.org = (function() {
2279
1931
  /**
2280
1932
  * Network peersCount.
2281
1933
  * @member {number} peersCount
2282
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Network
1934
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network
2283
1935
  * @instance
2284
1936
  */
2285
1937
  Network.prototype.peersCount = 0;
2286
1938
 
2287
1939
  /**
2288
1940
  * Network fee.
2289
- * @member {org.dash.platform.dapi.v0.GetStatusResponse.INetworkFee|null|undefined} fee
2290
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Network
1941
+ * @member {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.INetworkFee|null|undefined} fee
1942
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network
2291
1943
  * @instance
2292
1944
  */
2293
1945
  Network.prototype.fee = null;
@@ -2295,21 +1947,21 @@ $root.org = (function() {
2295
1947
  /**
2296
1948
  * Creates a new Network instance using the specified properties.
2297
1949
  * @function create
2298
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Network
1950
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network
2299
1951
  * @static
2300
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.INetwork=} [properties] Properties to set
2301
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Network} Network instance
1952
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.INetwork=} [properties] Properties to set
1953
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} Network instance
2302
1954
  */
2303
1955
  Network.create = function create(properties) {
2304
1956
  return new Network(properties);
2305
1957
  };
2306
1958
 
2307
1959
  /**
2308
- * Encodes the specified Network message. Does not implicitly {@link org.dash.platform.dapi.v0.GetStatusResponse.Network.verify|verify} messages.
1960
+ * Encodes the specified Network message. Does not implicitly {@link org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.verify|verify} messages.
2309
1961
  * @function encode
2310
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Network
1962
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network
2311
1963
  * @static
2312
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.INetwork} message Network message or plain object to encode
1964
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.INetwork} message Network message or plain object to encode
2313
1965
  * @param {$protobuf.Writer} [writer] Writer to encode to
2314
1966
  * @returns {$protobuf.Writer} Writer
2315
1967
  */
@@ -2319,16 +1971,16 @@ $root.org = (function() {
2319
1971
  if (message.peersCount != null && Object.hasOwnProperty.call(message, "peersCount"))
2320
1972
  writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.peersCount);
2321
1973
  if (message.fee != null && Object.hasOwnProperty.call(message, "fee"))
2322
- $root.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.encode(message.fee, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
1974
+ $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.encode(message.fee, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
2323
1975
  return writer;
2324
1976
  };
2325
1977
 
2326
1978
  /**
2327
- * Encodes the specified Network message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetStatusResponse.Network.verify|verify} messages.
1979
+ * Encodes the specified Network message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.verify|verify} messages.
2328
1980
  * @function encodeDelimited
2329
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Network
1981
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network
2330
1982
  * @static
2331
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.INetwork} message Network message or plain object to encode
1983
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.INetwork} message Network message or plain object to encode
2332
1984
  * @param {$protobuf.Writer} [writer] Writer to encode to
2333
1985
  * @returns {$protobuf.Writer} Writer
2334
1986
  */
@@ -2339,18 +1991,18 @@ $root.org = (function() {
2339
1991
  /**
2340
1992
  * Decodes a Network message from the specified reader or buffer.
2341
1993
  * @function decode
2342
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Network
1994
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network
2343
1995
  * @static
2344
1996
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2345
1997
  * @param {number} [length] Message length if known beforehand
2346
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Network} Network
1998
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} Network
2347
1999
  * @throws {Error} If the payload is not a reader or valid buffer
2348
2000
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
2349
2001
  */
2350
2002
  Network.decode = function decode(reader, length) {
2351
2003
  if (!(reader instanceof $Reader))
2352
2004
  reader = $Reader.create(reader);
2353
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetStatusResponse.Network();
2005
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network();
2354
2006
  while (reader.pos < end) {
2355
2007
  var tag = reader.uint32();
2356
2008
  switch (tag >>> 3) {
@@ -2358,7 +2010,7 @@ $root.org = (function() {
2358
2010
  message.peersCount = reader.uint32();
2359
2011
  break;
2360
2012
  case 2:
2361
- message.fee = $root.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.decode(reader, reader.uint32());
2013
+ message.fee = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.decode(reader, reader.uint32());
2362
2014
  break;
2363
2015
  default:
2364
2016
  reader.skipType(tag & 7);
@@ -2371,10 +2023,10 @@ $root.org = (function() {
2371
2023
  /**
2372
2024
  * Decodes a Network message from the specified reader or buffer, length delimited.
2373
2025
  * @function decodeDelimited
2374
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Network
2026
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network
2375
2027
  * @static
2376
2028
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2377
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Network} Network
2029
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} Network
2378
2030
  * @throws {Error} If the payload is not a reader or valid buffer
2379
2031
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
2380
2032
  */
@@ -2387,7 +2039,7 @@ $root.org = (function() {
2387
2039
  /**
2388
2040
  * Verifies a Network message.
2389
2041
  * @function verify
2390
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Network
2042
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network
2391
2043
  * @static
2392
2044
  * @param {Object.<string,*>} message Plain object to verify
2393
2045
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
@@ -2399,7 +2051,7 @@ $root.org = (function() {
2399
2051
  if (!$util.isInteger(message.peersCount))
2400
2052
  return "peersCount: integer expected";
2401
2053
  if (message.fee != null && message.hasOwnProperty("fee")) {
2402
- var error = $root.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.verify(message.fee);
2054
+ var error = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.verify(message.fee);
2403
2055
  if (error)
2404
2056
  return "fee." + error;
2405
2057
  }
@@ -2409,21 +2061,21 @@ $root.org = (function() {
2409
2061
  /**
2410
2062
  * Creates a Network message from a plain object. Also converts values to their respective internal types.
2411
2063
  * @function fromObject
2412
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Network
2064
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network
2413
2065
  * @static
2414
2066
  * @param {Object.<string,*>} object Plain object
2415
- * @returns {org.dash.platform.dapi.v0.GetStatusResponse.Network} Network
2067
+ * @returns {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} Network
2416
2068
  */
2417
2069
  Network.fromObject = function fromObject(object) {
2418
- if (object instanceof $root.org.dash.platform.dapi.v0.GetStatusResponse.Network)
2070
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network)
2419
2071
  return object;
2420
- var message = new $root.org.dash.platform.dapi.v0.GetStatusResponse.Network();
2072
+ var message = new $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network();
2421
2073
  if (object.peersCount != null)
2422
2074
  message.peersCount = object.peersCount >>> 0;
2423
2075
  if (object.fee != null) {
2424
2076
  if (typeof object.fee !== "object")
2425
- throw TypeError(".org.dash.platform.dapi.v0.GetStatusResponse.Network.fee: object expected");
2426
- message.fee = $root.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.fromObject(object.fee);
2077
+ throw TypeError(".org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.fee: object expected");
2078
+ message.fee = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.fromObject(object.fee);
2427
2079
  }
2428
2080
  return message;
2429
2081
  };
@@ -2431,9 +2083,9 @@ $root.org = (function() {
2431
2083
  /**
2432
2084
  * Creates a plain object from a Network message. Also converts values to other types if specified.
2433
2085
  * @function toObject
2434
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Network
2086
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network
2435
2087
  * @static
2436
- * @param {org.dash.platform.dapi.v0.GetStatusResponse.Network} message Network
2088
+ * @param {org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} message Network
2437
2089
  * @param {$protobuf.IConversionOptions} [options] Conversion options
2438
2090
  * @returns {Object.<string,*>} Plain object
2439
2091
  */
@@ -2448,14 +2100,14 @@ $root.org = (function() {
2448
2100
  if (message.peersCount != null && message.hasOwnProperty("peersCount"))
2449
2101
  object.peersCount = message.peersCount;
2450
2102
  if (message.fee != null && message.hasOwnProperty("fee"))
2451
- object.fee = $root.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.toObject(message.fee, options);
2103
+ object.fee = $root.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.toObject(message.fee, options);
2452
2104
  return object;
2453
2105
  };
2454
2106
 
2455
2107
  /**
2456
2108
  * Converts this Network to JSON.
2457
2109
  * @function toJSON
2458
- * @memberof org.dash.platform.dapi.v0.GetStatusResponse.Network
2110
+ * @memberof org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network
2459
2111
  * @instance
2460
2112
  * @returns {Object.<string,*>} JSON object
2461
2113
  */
@@ -2466,7 +2118,521 @@ $root.org = (function() {
2466
2118
  return Network;
2467
2119
  })();
2468
2120
 
2469
- return GetStatusResponse;
2121
+ return GetBlockchainStatusResponse;
2122
+ })();
2123
+
2124
+ v0.GetMasternodeStatusRequest = (function() {
2125
+
2126
+ /**
2127
+ * Properties of a GetMasternodeStatusRequest.
2128
+ * @memberof org.dash.platform.dapi.v0
2129
+ * @interface IGetMasternodeStatusRequest
2130
+ */
2131
+
2132
+ /**
2133
+ * Constructs a new GetMasternodeStatusRequest.
2134
+ * @memberof org.dash.platform.dapi.v0
2135
+ * @classdesc Represents a GetMasternodeStatusRequest.
2136
+ * @implements IGetMasternodeStatusRequest
2137
+ * @constructor
2138
+ * @param {org.dash.platform.dapi.v0.IGetMasternodeStatusRequest=} [properties] Properties to set
2139
+ */
2140
+ function GetMasternodeStatusRequest(properties) {
2141
+ if (properties)
2142
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2143
+ if (properties[keys[i]] != null)
2144
+ this[keys[i]] = properties[keys[i]];
2145
+ }
2146
+
2147
+ /**
2148
+ * Creates a new GetMasternodeStatusRequest instance using the specified properties.
2149
+ * @function create
2150
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusRequest
2151
+ * @static
2152
+ * @param {org.dash.platform.dapi.v0.IGetMasternodeStatusRequest=} [properties] Properties to set
2153
+ * @returns {org.dash.platform.dapi.v0.GetMasternodeStatusRequest} GetMasternodeStatusRequest instance
2154
+ */
2155
+ GetMasternodeStatusRequest.create = function create(properties) {
2156
+ return new GetMasternodeStatusRequest(properties);
2157
+ };
2158
+
2159
+ /**
2160
+ * Encodes the specified GetMasternodeStatusRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetMasternodeStatusRequest.verify|verify} messages.
2161
+ * @function encode
2162
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusRequest
2163
+ * @static
2164
+ * @param {org.dash.platform.dapi.v0.IGetMasternodeStatusRequest} message GetMasternodeStatusRequest message or plain object to encode
2165
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2166
+ * @returns {$protobuf.Writer} Writer
2167
+ */
2168
+ GetMasternodeStatusRequest.encode = function encode(message, writer) {
2169
+ if (!writer)
2170
+ writer = $Writer.create();
2171
+ return writer;
2172
+ };
2173
+
2174
+ /**
2175
+ * Encodes the specified GetMasternodeStatusRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetMasternodeStatusRequest.verify|verify} messages.
2176
+ * @function encodeDelimited
2177
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusRequest
2178
+ * @static
2179
+ * @param {org.dash.platform.dapi.v0.IGetMasternodeStatusRequest} message GetMasternodeStatusRequest message or plain object to encode
2180
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2181
+ * @returns {$protobuf.Writer} Writer
2182
+ */
2183
+ GetMasternodeStatusRequest.encodeDelimited = function encodeDelimited(message, writer) {
2184
+ return this.encode(message, writer).ldelim();
2185
+ };
2186
+
2187
+ /**
2188
+ * Decodes a GetMasternodeStatusRequest message from the specified reader or buffer.
2189
+ * @function decode
2190
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusRequest
2191
+ * @static
2192
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2193
+ * @param {number} [length] Message length if known beforehand
2194
+ * @returns {org.dash.platform.dapi.v0.GetMasternodeStatusRequest} GetMasternodeStatusRequest
2195
+ * @throws {Error} If the payload is not a reader or valid buffer
2196
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2197
+ */
2198
+ GetMasternodeStatusRequest.decode = function decode(reader, length) {
2199
+ if (!(reader instanceof $Reader))
2200
+ reader = $Reader.create(reader);
2201
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetMasternodeStatusRequest();
2202
+ while (reader.pos < end) {
2203
+ var tag = reader.uint32();
2204
+ switch (tag >>> 3) {
2205
+ default:
2206
+ reader.skipType(tag & 7);
2207
+ break;
2208
+ }
2209
+ }
2210
+ return message;
2211
+ };
2212
+
2213
+ /**
2214
+ * Decodes a GetMasternodeStatusRequest message from the specified reader or buffer, length delimited.
2215
+ * @function decodeDelimited
2216
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusRequest
2217
+ * @static
2218
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2219
+ * @returns {org.dash.platform.dapi.v0.GetMasternodeStatusRequest} GetMasternodeStatusRequest
2220
+ * @throws {Error} If the payload is not a reader or valid buffer
2221
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2222
+ */
2223
+ GetMasternodeStatusRequest.decodeDelimited = function decodeDelimited(reader) {
2224
+ if (!(reader instanceof $Reader))
2225
+ reader = new $Reader(reader);
2226
+ return this.decode(reader, reader.uint32());
2227
+ };
2228
+
2229
+ /**
2230
+ * Verifies a GetMasternodeStatusRequest message.
2231
+ * @function verify
2232
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusRequest
2233
+ * @static
2234
+ * @param {Object.<string,*>} message Plain object to verify
2235
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
2236
+ */
2237
+ GetMasternodeStatusRequest.verify = function verify(message) {
2238
+ if (typeof message !== "object" || message === null)
2239
+ return "object expected";
2240
+ return null;
2241
+ };
2242
+
2243
+ /**
2244
+ * Creates a GetMasternodeStatusRequest message from a plain object. Also converts values to their respective internal types.
2245
+ * @function fromObject
2246
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusRequest
2247
+ * @static
2248
+ * @param {Object.<string,*>} object Plain object
2249
+ * @returns {org.dash.platform.dapi.v0.GetMasternodeStatusRequest} GetMasternodeStatusRequest
2250
+ */
2251
+ GetMasternodeStatusRequest.fromObject = function fromObject(object) {
2252
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetMasternodeStatusRequest)
2253
+ return object;
2254
+ return new $root.org.dash.platform.dapi.v0.GetMasternodeStatusRequest();
2255
+ };
2256
+
2257
+ /**
2258
+ * Creates a plain object from a GetMasternodeStatusRequest message. Also converts values to other types if specified.
2259
+ * @function toObject
2260
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusRequest
2261
+ * @static
2262
+ * @param {org.dash.platform.dapi.v0.GetMasternodeStatusRequest} message GetMasternodeStatusRequest
2263
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
2264
+ * @returns {Object.<string,*>} Plain object
2265
+ */
2266
+ GetMasternodeStatusRequest.toObject = function toObject() {
2267
+ return {};
2268
+ };
2269
+
2270
+ /**
2271
+ * Converts this GetMasternodeStatusRequest to JSON.
2272
+ * @function toJSON
2273
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusRequest
2274
+ * @instance
2275
+ * @returns {Object.<string,*>} JSON object
2276
+ */
2277
+ GetMasternodeStatusRequest.prototype.toJSON = function toJSON() {
2278
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2279
+ };
2280
+
2281
+ return GetMasternodeStatusRequest;
2282
+ })();
2283
+
2284
+ v0.GetMasternodeStatusResponse = (function() {
2285
+
2286
+ /**
2287
+ * Properties of a GetMasternodeStatusResponse.
2288
+ * @memberof org.dash.platform.dapi.v0
2289
+ * @interface IGetMasternodeStatusResponse
2290
+ * @property {org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status|null} [status] GetMasternodeStatusResponse status
2291
+ * @property {Uint8Array|null} [proTxHash] GetMasternodeStatusResponse proTxHash
2292
+ * @property {number|null} [posePenalty] GetMasternodeStatusResponse posePenalty
2293
+ * @property {boolean|null} [isSynced] GetMasternodeStatusResponse isSynced
2294
+ * @property {number|null} [syncProgress] GetMasternodeStatusResponse syncProgress
2295
+ */
2296
+
2297
+ /**
2298
+ * Constructs a new GetMasternodeStatusResponse.
2299
+ * @memberof org.dash.platform.dapi.v0
2300
+ * @classdesc Represents a GetMasternodeStatusResponse.
2301
+ * @implements IGetMasternodeStatusResponse
2302
+ * @constructor
2303
+ * @param {org.dash.platform.dapi.v0.IGetMasternodeStatusResponse=} [properties] Properties to set
2304
+ */
2305
+ function GetMasternodeStatusResponse(properties) {
2306
+ if (properties)
2307
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2308
+ if (properties[keys[i]] != null)
2309
+ this[keys[i]] = properties[keys[i]];
2310
+ }
2311
+
2312
+ /**
2313
+ * GetMasternodeStatusResponse status.
2314
+ * @member {org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status} status
2315
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusResponse
2316
+ * @instance
2317
+ */
2318
+ GetMasternodeStatusResponse.prototype.status = 0;
2319
+
2320
+ /**
2321
+ * GetMasternodeStatusResponse proTxHash.
2322
+ * @member {Uint8Array} proTxHash
2323
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusResponse
2324
+ * @instance
2325
+ */
2326
+ GetMasternodeStatusResponse.prototype.proTxHash = $util.newBuffer([]);
2327
+
2328
+ /**
2329
+ * GetMasternodeStatusResponse posePenalty.
2330
+ * @member {number} posePenalty
2331
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusResponse
2332
+ * @instance
2333
+ */
2334
+ GetMasternodeStatusResponse.prototype.posePenalty = 0;
2335
+
2336
+ /**
2337
+ * GetMasternodeStatusResponse isSynced.
2338
+ * @member {boolean} isSynced
2339
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusResponse
2340
+ * @instance
2341
+ */
2342
+ GetMasternodeStatusResponse.prototype.isSynced = false;
2343
+
2344
+ /**
2345
+ * GetMasternodeStatusResponse syncProgress.
2346
+ * @member {number} syncProgress
2347
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusResponse
2348
+ * @instance
2349
+ */
2350
+ GetMasternodeStatusResponse.prototype.syncProgress = 0;
2351
+
2352
+ /**
2353
+ * Creates a new GetMasternodeStatusResponse instance using the specified properties.
2354
+ * @function create
2355
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusResponse
2356
+ * @static
2357
+ * @param {org.dash.platform.dapi.v0.IGetMasternodeStatusResponse=} [properties] Properties to set
2358
+ * @returns {org.dash.platform.dapi.v0.GetMasternodeStatusResponse} GetMasternodeStatusResponse instance
2359
+ */
2360
+ GetMasternodeStatusResponse.create = function create(properties) {
2361
+ return new GetMasternodeStatusResponse(properties);
2362
+ };
2363
+
2364
+ /**
2365
+ * Encodes the specified GetMasternodeStatusResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetMasternodeStatusResponse.verify|verify} messages.
2366
+ * @function encode
2367
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusResponse
2368
+ * @static
2369
+ * @param {org.dash.platform.dapi.v0.IGetMasternodeStatusResponse} message GetMasternodeStatusResponse message or plain object to encode
2370
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2371
+ * @returns {$protobuf.Writer} Writer
2372
+ */
2373
+ GetMasternodeStatusResponse.encode = function encode(message, writer) {
2374
+ if (!writer)
2375
+ writer = $Writer.create();
2376
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
2377
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
2378
+ if (message.proTxHash != null && Object.hasOwnProperty.call(message, "proTxHash"))
2379
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proTxHash);
2380
+ if (message.posePenalty != null && Object.hasOwnProperty.call(message, "posePenalty"))
2381
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.posePenalty);
2382
+ if (message.isSynced != null && Object.hasOwnProperty.call(message, "isSynced"))
2383
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isSynced);
2384
+ if (message.syncProgress != null && Object.hasOwnProperty.call(message, "syncProgress"))
2385
+ writer.uint32(/* id 5, wireType 1 =*/41).double(message.syncProgress);
2386
+ return writer;
2387
+ };
2388
+
2389
+ /**
2390
+ * Encodes the specified GetMasternodeStatusResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetMasternodeStatusResponse.verify|verify} messages.
2391
+ * @function encodeDelimited
2392
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusResponse
2393
+ * @static
2394
+ * @param {org.dash.platform.dapi.v0.IGetMasternodeStatusResponse} message GetMasternodeStatusResponse message or plain object to encode
2395
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2396
+ * @returns {$protobuf.Writer} Writer
2397
+ */
2398
+ GetMasternodeStatusResponse.encodeDelimited = function encodeDelimited(message, writer) {
2399
+ return this.encode(message, writer).ldelim();
2400
+ };
2401
+
2402
+ /**
2403
+ * Decodes a GetMasternodeStatusResponse message from the specified reader or buffer.
2404
+ * @function decode
2405
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusResponse
2406
+ * @static
2407
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2408
+ * @param {number} [length] Message length if known beforehand
2409
+ * @returns {org.dash.platform.dapi.v0.GetMasternodeStatusResponse} GetMasternodeStatusResponse
2410
+ * @throws {Error} If the payload is not a reader or valid buffer
2411
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2412
+ */
2413
+ GetMasternodeStatusResponse.decode = function decode(reader, length) {
2414
+ if (!(reader instanceof $Reader))
2415
+ reader = $Reader.create(reader);
2416
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetMasternodeStatusResponse();
2417
+ while (reader.pos < end) {
2418
+ var tag = reader.uint32();
2419
+ switch (tag >>> 3) {
2420
+ case 1:
2421
+ message.status = reader.int32();
2422
+ break;
2423
+ case 2:
2424
+ message.proTxHash = reader.bytes();
2425
+ break;
2426
+ case 3:
2427
+ message.posePenalty = reader.uint32();
2428
+ break;
2429
+ case 4:
2430
+ message.isSynced = reader.bool();
2431
+ break;
2432
+ case 5:
2433
+ message.syncProgress = reader.double();
2434
+ break;
2435
+ default:
2436
+ reader.skipType(tag & 7);
2437
+ break;
2438
+ }
2439
+ }
2440
+ return message;
2441
+ };
2442
+
2443
+ /**
2444
+ * Decodes a GetMasternodeStatusResponse message from the specified reader or buffer, length delimited.
2445
+ * @function decodeDelimited
2446
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusResponse
2447
+ * @static
2448
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2449
+ * @returns {org.dash.platform.dapi.v0.GetMasternodeStatusResponse} GetMasternodeStatusResponse
2450
+ * @throws {Error} If the payload is not a reader or valid buffer
2451
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2452
+ */
2453
+ GetMasternodeStatusResponse.decodeDelimited = function decodeDelimited(reader) {
2454
+ if (!(reader instanceof $Reader))
2455
+ reader = new $Reader(reader);
2456
+ return this.decode(reader, reader.uint32());
2457
+ };
2458
+
2459
+ /**
2460
+ * Verifies a GetMasternodeStatusResponse message.
2461
+ * @function verify
2462
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusResponse
2463
+ * @static
2464
+ * @param {Object.<string,*>} message Plain object to verify
2465
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
2466
+ */
2467
+ GetMasternodeStatusResponse.verify = function verify(message) {
2468
+ if (typeof message !== "object" || message === null)
2469
+ return "object expected";
2470
+ if (message.status != null && message.hasOwnProperty("status"))
2471
+ switch (message.status) {
2472
+ default:
2473
+ return "status: enum value expected";
2474
+ case 0:
2475
+ case 1:
2476
+ case 2:
2477
+ case 3:
2478
+ case 4:
2479
+ case 5:
2480
+ case 6:
2481
+ case 7:
2482
+ break;
2483
+ }
2484
+ if (message.proTxHash != null && message.hasOwnProperty("proTxHash"))
2485
+ if (!(message.proTxHash && typeof message.proTxHash.length === "number" || $util.isString(message.proTxHash)))
2486
+ return "proTxHash: buffer expected";
2487
+ if (message.posePenalty != null && message.hasOwnProperty("posePenalty"))
2488
+ if (!$util.isInteger(message.posePenalty))
2489
+ return "posePenalty: integer expected";
2490
+ if (message.isSynced != null && message.hasOwnProperty("isSynced"))
2491
+ if (typeof message.isSynced !== "boolean")
2492
+ return "isSynced: boolean expected";
2493
+ if (message.syncProgress != null && message.hasOwnProperty("syncProgress"))
2494
+ if (typeof message.syncProgress !== "number")
2495
+ return "syncProgress: number expected";
2496
+ return null;
2497
+ };
2498
+
2499
+ /**
2500
+ * Creates a GetMasternodeStatusResponse message from a plain object. Also converts values to their respective internal types.
2501
+ * @function fromObject
2502
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusResponse
2503
+ * @static
2504
+ * @param {Object.<string,*>} object Plain object
2505
+ * @returns {org.dash.platform.dapi.v0.GetMasternodeStatusResponse} GetMasternodeStatusResponse
2506
+ */
2507
+ GetMasternodeStatusResponse.fromObject = function fromObject(object) {
2508
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetMasternodeStatusResponse)
2509
+ return object;
2510
+ var message = new $root.org.dash.platform.dapi.v0.GetMasternodeStatusResponse();
2511
+ switch (object.status) {
2512
+ case "UNKNOWN":
2513
+ case 0:
2514
+ message.status = 0;
2515
+ break;
2516
+ case "WAITING_FOR_PROTX":
2517
+ case 1:
2518
+ message.status = 1;
2519
+ break;
2520
+ case "POSE_BANNED":
2521
+ case 2:
2522
+ message.status = 2;
2523
+ break;
2524
+ case "REMOVED":
2525
+ case 3:
2526
+ message.status = 3;
2527
+ break;
2528
+ case "OPERATOR_KEY_CHANGED":
2529
+ case 4:
2530
+ message.status = 4;
2531
+ break;
2532
+ case "PROTX_IP_CHANGED":
2533
+ case 5:
2534
+ message.status = 5;
2535
+ break;
2536
+ case "READY":
2537
+ case 6:
2538
+ message.status = 6;
2539
+ break;
2540
+ case "ERROR":
2541
+ case 7:
2542
+ message.status = 7;
2543
+ break;
2544
+ }
2545
+ if (object.proTxHash != null)
2546
+ if (typeof object.proTxHash === "string")
2547
+ $util.base64.decode(object.proTxHash, message.proTxHash = $util.newBuffer($util.base64.length(object.proTxHash)), 0);
2548
+ else if (object.proTxHash.length >= 0)
2549
+ message.proTxHash = object.proTxHash;
2550
+ if (object.posePenalty != null)
2551
+ message.posePenalty = object.posePenalty >>> 0;
2552
+ if (object.isSynced != null)
2553
+ message.isSynced = Boolean(object.isSynced);
2554
+ if (object.syncProgress != null)
2555
+ message.syncProgress = Number(object.syncProgress);
2556
+ return message;
2557
+ };
2558
+
2559
+ /**
2560
+ * Creates a plain object from a GetMasternodeStatusResponse message. Also converts values to other types if specified.
2561
+ * @function toObject
2562
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusResponse
2563
+ * @static
2564
+ * @param {org.dash.platform.dapi.v0.GetMasternodeStatusResponse} message GetMasternodeStatusResponse
2565
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
2566
+ * @returns {Object.<string,*>} Plain object
2567
+ */
2568
+ GetMasternodeStatusResponse.toObject = function toObject(message, options) {
2569
+ if (!options)
2570
+ options = {};
2571
+ var object = {};
2572
+ if (options.defaults) {
2573
+ object.status = options.enums === String ? "UNKNOWN" : 0;
2574
+ if (options.bytes === String)
2575
+ object.proTxHash = "";
2576
+ else {
2577
+ object.proTxHash = [];
2578
+ if (options.bytes !== Array)
2579
+ object.proTxHash = $util.newBuffer(object.proTxHash);
2580
+ }
2581
+ object.posePenalty = 0;
2582
+ object.isSynced = false;
2583
+ object.syncProgress = 0;
2584
+ }
2585
+ if (message.status != null && message.hasOwnProperty("status"))
2586
+ object.status = options.enums === String ? $root.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status[message.status] : message.status;
2587
+ if (message.proTxHash != null && message.hasOwnProperty("proTxHash"))
2588
+ 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;
2589
+ if (message.posePenalty != null && message.hasOwnProperty("posePenalty"))
2590
+ object.posePenalty = message.posePenalty;
2591
+ if (message.isSynced != null && message.hasOwnProperty("isSynced"))
2592
+ object.isSynced = message.isSynced;
2593
+ if (message.syncProgress != null && message.hasOwnProperty("syncProgress"))
2594
+ object.syncProgress = options.json && !isFinite(message.syncProgress) ? String(message.syncProgress) : message.syncProgress;
2595
+ return object;
2596
+ };
2597
+
2598
+ /**
2599
+ * Converts this GetMasternodeStatusResponse to JSON.
2600
+ * @function toJSON
2601
+ * @memberof org.dash.platform.dapi.v0.GetMasternodeStatusResponse
2602
+ * @instance
2603
+ * @returns {Object.<string,*>} JSON object
2604
+ */
2605
+ GetMasternodeStatusResponse.prototype.toJSON = function toJSON() {
2606
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2607
+ };
2608
+
2609
+ /**
2610
+ * Status enum.
2611
+ * @name org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status
2612
+ * @enum {number}
2613
+ * @property {number} UNKNOWN=0 UNKNOWN value
2614
+ * @property {number} WAITING_FOR_PROTX=1 WAITING_FOR_PROTX value
2615
+ * @property {number} POSE_BANNED=2 POSE_BANNED value
2616
+ * @property {number} REMOVED=3 REMOVED value
2617
+ * @property {number} OPERATOR_KEY_CHANGED=4 OPERATOR_KEY_CHANGED value
2618
+ * @property {number} PROTX_IP_CHANGED=5 PROTX_IP_CHANGED value
2619
+ * @property {number} READY=6 READY value
2620
+ * @property {number} ERROR=7 ERROR value
2621
+ */
2622
+ GetMasternodeStatusResponse.Status = (function() {
2623
+ var valuesById = {}, values = Object.create(valuesById);
2624
+ values[valuesById[0] = "UNKNOWN"] = 0;
2625
+ values[valuesById[1] = "WAITING_FOR_PROTX"] = 1;
2626
+ values[valuesById[2] = "POSE_BANNED"] = 2;
2627
+ values[valuesById[3] = "REMOVED"] = 3;
2628
+ values[valuesById[4] = "OPERATOR_KEY_CHANGED"] = 4;
2629
+ values[valuesById[5] = "PROTX_IP_CHANGED"] = 5;
2630
+ values[valuesById[6] = "READY"] = 6;
2631
+ values[valuesById[7] = "ERROR"] = 7;
2632
+ return values;
2633
+ })();
2634
+
2635
+ return GetMasternodeStatusResponse;
2470
2636
  })();
2471
2637
 
2472
2638
  v0.GetBlockRequest = (function() {