@dashevo/dapi-grpc 3.0.0-dev.7 → 3.0.0-dev.8

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.
@@ -1769,6 +1769,72 @@ $root.org = (function() {
1769
1769
  * @variation 2
1770
1770
  */
1771
1771
 
1772
+ /**
1773
+ * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getRecentAddressBalanceChanges}.
1774
+ * @memberof org.dash.platform.dapi.v0.Platform
1775
+ * @typedef getRecentAddressBalanceChangesCallback
1776
+ * @type {function}
1777
+ * @param {Error|null} error Error, if any
1778
+ * @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse} [response] GetRecentAddressBalanceChangesResponse
1779
+ */
1780
+
1781
+ /**
1782
+ * Calls getRecentAddressBalanceChanges.
1783
+ * @function getRecentAddressBalanceChanges
1784
+ * @memberof org.dash.platform.dapi.v0.Platform
1785
+ * @instance
1786
+ * @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesRequest} request GetRecentAddressBalanceChangesRequest message or plain object
1787
+ * @param {org.dash.platform.dapi.v0.Platform.getRecentAddressBalanceChangesCallback} callback Node-style callback called with the error, if any, and GetRecentAddressBalanceChangesResponse
1788
+ * @returns {undefined}
1789
+ * @variation 1
1790
+ */
1791
+ Object.defineProperty(Platform.prototype.getRecentAddressBalanceChanges = function getRecentAddressBalanceChanges(request, callback) {
1792
+ return this.rpcCall(getRecentAddressBalanceChanges, $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest, $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse, request, callback);
1793
+ }, "name", { value: "getRecentAddressBalanceChanges" });
1794
+
1795
+ /**
1796
+ * Calls getRecentAddressBalanceChanges.
1797
+ * @function getRecentAddressBalanceChanges
1798
+ * @memberof org.dash.platform.dapi.v0.Platform
1799
+ * @instance
1800
+ * @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesRequest} request GetRecentAddressBalanceChangesRequest message or plain object
1801
+ * @returns {Promise<org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse>} Promise
1802
+ * @variation 2
1803
+ */
1804
+
1805
+ /**
1806
+ * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getRecentCompactedAddressBalanceChanges}.
1807
+ * @memberof org.dash.platform.dapi.v0.Platform
1808
+ * @typedef getRecentCompactedAddressBalanceChangesCallback
1809
+ * @type {function}
1810
+ * @param {Error|null} error Error, if any
1811
+ * @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse} [response] GetRecentCompactedAddressBalanceChangesResponse
1812
+ */
1813
+
1814
+ /**
1815
+ * Calls getRecentCompactedAddressBalanceChanges.
1816
+ * @function getRecentCompactedAddressBalanceChanges
1817
+ * @memberof org.dash.platform.dapi.v0.Platform
1818
+ * @instance
1819
+ * @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesRequest} request GetRecentCompactedAddressBalanceChangesRequest message or plain object
1820
+ * @param {org.dash.platform.dapi.v0.Platform.getRecentCompactedAddressBalanceChangesCallback} callback Node-style callback called with the error, if any, and GetRecentCompactedAddressBalanceChangesResponse
1821
+ * @returns {undefined}
1822
+ * @variation 1
1823
+ */
1824
+ Object.defineProperty(Platform.prototype.getRecentCompactedAddressBalanceChanges = function getRecentCompactedAddressBalanceChanges(request, callback) {
1825
+ return this.rpcCall(getRecentCompactedAddressBalanceChanges, $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest, $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse, request, callback);
1826
+ }, "name", { value: "getRecentCompactedAddressBalanceChanges" });
1827
+
1828
+ /**
1829
+ * Calls getRecentCompactedAddressBalanceChanges.
1830
+ * @function getRecentCompactedAddressBalanceChanges
1831
+ * @memberof org.dash.platform.dapi.v0.Platform
1832
+ * @instance
1833
+ * @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesRequest} request GetRecentCompactedAddressBalanceChangesRequest message or plain object
1834
+ * @returns {Promise<org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse>} Promise
1835
+ * @variation 2
1836
+ */
1837
+
1772
1838
  return Platform;
1773
1839
  })();
1774
1840
 
@@ -75192,6 +75258,744 @@ $root.org = (function() {
75192
75258
  return AddressInfoEntries;
75193
75259
  })();
75194
75260
 
75261
+ v0.AddressBalanceChange = (function() {
75262
+
75263
+ /**
75264
+ * Properties of an AddressBalanceChange.
75265
+ * @memberof org.dash.platform.dapi.v0
75266
+ * @interface IAddressBalanceChange
75267
+ * @property {Uint8Array|null} [address] AddressBalanceChange address
75268
+ * @property {number|Long|null} [setBalance] AddressBalanceChange setBalance
75269
+ * @property {number|Long|null} [addToBalance] AddressBalanceChange addToBalance
75270
+ */
75271
+
75272
+ /**
75273
+ * Constructs a new AddressBalanceChange.
75274
+ * @memberof org.dash.platform.dapi.v0
75275
+ * @classdesc Represents an AddressBalanceChange.
75276
+ * @implements IAddressBalanceChange
75277
+ * @constructor
75278
+ * @param {org.dash.platform.dapi.v0.IAddressBalanceChange=} [properties] Properties to set
75279
+ */
75280
+ function AddressBalanceChange(properties) {
75281
+ if (properties)
75282
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
75283
+ if (properties[keys[i]] != null)
75284
+ this[keys[i]] = properties[keys[i]];
75285
+ }
75286
+
75287
+ /**
75288
+ * AddressBalanceChange address.
75289
+ * @member {Uint8Array} address
75290
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceChange
75291
+ * @instance
75292
+ */
75293
+ AddressBalanceChange.prototype.address = $util.newBuffer([]);
75294
+
75295
+ /**
75296
+ * AddressBalanceChange setBalance.
75297
+ * @member {number|Long} setBalance
75298
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceChange
75299
+ * @instance
75300
+ */
75301
+ AddressBalanceChange.prototype.setBalance = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
75302
+
75303
+ /**
75304
+ * AddressBalanceChange addToBalance.
75305
+ * @member {number|Long} addToBalance
75306
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceChange
75307
+ * @instance
75308
+ */
75309
+ AddressBalanceChange.prototype.addToBalance = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
75310
+
75311
+ // OneOf field names bound to virtual getters and setters
75312
+ var $oneOfFields;
75313
+
75314
+ /**
75315
+ * AddressBalanceChange operation.
75316
+ * @member {"setBalance"|"addToBalance"|undefined} operation
75317
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceChange
75318
+ * @instance
75319
+ */
75320
+ Object.defineProperty(AddressBalanceChange.prototype, "operation", {
75321
+ get: $util.oneOfGetter($oneOfFields = ["setBalance", "addToBalance"]),
75322
+ set: $util.oneOfSetter($oneOfFields)
75323
+ });
75324
+
75325
+ /**
75326
+ * Creates a new AddressBalanceChange instance using the specified properties.
75327
+ * @function create
75328
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceChange
75329
+ * @static
75330
+ * @param {org.dash.platform.dapi.v0.IAddressBalanceChange=} [properties] Properties to set
75331
+ * @returns {org.dash.platform.dapi.v0.AddressBalanceChange} AddressBalanceChange instance
75332
+ */
75333
+ AddressBalanceChange.create = function create(properties) {
75334
+ return new AddressBalanceChange(properties);
75335
+ };
75336
+
75337
+ /**
75338
+ * Encodes the specified AddressBalanceChange message. Does not implicitly {@link org.dash.platform.dapi.v0.AddressBalanceChange.verify|verify} messages.
75339
+ * @function encode
75340
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceChange
75341
+ * @static
75342
+ * @param {org.dash.platform.dapi.v0.IAddressBalanceChange} message AddressBalanceChange message or plain object to encode
75343
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75344
+ * @returns {$protobuf.Writer} Writer
75345
+ */
75346
+ AddressBalanceChange.encode = function encode(message, writer) {
75347
+ if (!writer)
75348
+ writer = $Writer.create();
75349
+ if (message.address != null && Object.hasOwnProperty.call(message, "address"))
75350
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.address);
75351
+ if (message.setBalance != null && Object.hasOwnProperty.call(message, "setBalance"))
75352
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.setBalance);
75353
+ if (message.addToBalance != null && Object.hasOwnProperty.call(message, "addToBalance"))
75354
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.addToBalance);
75355
+ return writer;
75356
+ };
75357
+
75358
+ /**
75359
+ * Encodes the specified AddressBalanceChange message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.AddressBalanceChange.verify|verify} messages.
75360
+ * @function encodeDelimited
75361
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceChange
75362
+ * @static
75363
+ * @param {org.dash.platform.dapi.v0.IAddressBalanceChange} message AddressBalanceChange message or plain object to encode
75364
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75365
+ * @returns {$protobuf.Writer} Writer
75366
+ */
75367
+ AddressBalanceChange.encodeDelimited = function encodeDelimited(message, writer) {
75368
+ return this.encode(message, writer).ldelim();
75369
+ };
75370
+
75371
+ /**
75372
+ * Decodes an AddressBalanceChange message from the specified reader or buffer.
75373
+ * @function decode
75374
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceChange
75375
+ * @static
75376
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75377
+ * @param {number} [length] Message length if known beforehand
75378
+ * @returns {org.dash.platform.dapi.v0.AddressBalanceChange} AddressBalanceChange
75379
+ * @throws {Error} If the payload is not a reader or valid buffer
75380
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
75381
+ */
75382
+ AddressBalanceChange.decode = function decode(reader, length) {
75383
+ if (!(reader instanceof $Reader))
75384
+ reader = $Reader.create(reader);
75385
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.AddressBalanceChange();
75386
+ while (reader.pos < end) {
75387
+ var tag = reader.uint32();
75388
+ switch (tag >>> 3) {
75389
+ case 1:
75390
+ message.address = reader.bytes();
75391
+ break;
75392
+ case 2:
75393
+ message.setBalance = reader.uint64();
75394
+ break;
75395
+ case 3:
75396
+ message.addToBalance = reader.uint64();
75397
+ break;
75398
+ default:
75399
+ reader.skipType(tag & 7);
75400
+ break;
75401
+ }
75402
+ }
75403
+ return message;
75404
+ };
75405
+
75406
+ /**
75407
+ * Decodes an AddressBalanceChange message from the specified reader or buffer, length delimited.
75408
+ * @function decodeDelimited
75409
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceChange
75410
+ * @static
75411
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75412
+ * @returns {org.dash.platform.dapi.v0.AddressBalanceChange} AddressBalanceChange
75413
+ * @throws {Error} If the payload is not a reader or valid buffer
75414
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
75415
+ */
75416
+ AddressBalanceChange.decodeDelimited = function decodeDelimited(reader) {
75417
+ if (!(reader instanceof $Reader))
75418
+ reader = new $Reader(reader);
75419
+ return this.decode(reader, reader.uint32());
75420
+ };
75421
+
75422
+ /**
75423
+ * Verifies an AddressBalanceChange message.
75424
+ * @function verify
75425
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceChange
75426
+ * @static
75427
+ * @param {Object.<string,*>} message Plain object to verify
75428
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
75429
+ */
75430
+ AddressBalanceChange.verify = function verify(message) {
75431
+ if (typeof message !== "object" || message === null)
75432
+ return "object expected";
75433
+ var properties = {};
75434
+ if (message.address != null && message.hasOwnProperty("address"))
75435
+ if (!(message.address && typeof message.address.length === "number" || $util.isString(message.address)))
75436
+ return "address: buffer expected";
75437
+ if (message.setBalance != null && message.hasOwnProperty("setBalance")) {
75438
+ properties.operation = 1;
75439
+ if (!$util.isInteger(message.setBalance) && !(message.setBalance && $util.isInteger(message.setBalance.low) && $util.isInteger(message.setBalance.high)))
75440
+ return "setBalance: integer|Long expected";
75441
+ }
75442
+ if (message.addToBalance != null && message.hasOwnProperty("addToBalance")) {
75443
+ if (properties.operation === 1)
75444
+ return "operation: multiple values";
75445
+ properties.operation = 1;
75446
+ if (!$util.isInteger(message.addToBalance) && !(message.addToBalance && $util.isInteger(message.addToBalance.low) && $util.isInteger(message.addToBalance.high)))
75447
+ return "addToBalance: integer|Long expected";
75448
+ }
75449
+ return null;
75450
+ };
75451
+
75452
+ /**
75453
+ * Creates an AddressBalanceChange message from a plain object. Also converts values to their respective internal types.
75454
+ * @function fromObject
75455
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceChange
75456
+ * @static
75457
+ * @param {Object.<string,*>} object Plain object
75458
+ * @returns {org.dash.platform.dapi.v0.AddressBalanceChange} AddressBalanceChange
75459
+ */
75460
+ AddressBalanceChange.fromObject = function fromObject(object) {
75461
+ if (object instanceof $root.org.dash.platform.dapi.v0.AddressBalanceChange)
75462
+ return object;
75463
+ var message = new $root.org.dash.platform.dapi.v0.AddressBalanceChange();
75464
+ if (object.address != null)
75465
+ if (typeof object.address === "string")
75466
+ $util.base64.decode(object.address, message.address = $util.newBuffer($util.base64.length(object.address)), 0);
75467
+ else if (object.address.length >= 0)
75468
+ message.address = object.address;
75469
+ if (object.setBalance != null)
75470
+ if ($util.Long)
75471
+ (message.setBalance = $util.Long.fromValue(object.setBalance)).unsigned = true;
75472
+ else if (typeof object.setBalance === "string")
75473
+ message.setBalance = parseInt(object.setBalance, 10);
75474
+ else if (typeof object.setBalance === "number")
75475
+ message.setBalance = object.setBalance;
75476
+ else if (typeof object.setBalance === "object")
75477
+ message.setBalance = new $util.LongBits(object.setBalance.low >>> 0, object.setBalance.high >>> 0).toNumber(true);
75478
+ if (object.addToBalance != null)
75479
+ if ($util.Long)
75480
+ (message.addToBalance = $util.Long.fromValue(object.addToBalance)).unsigned = true;
75481
+ else if (typeof object.addToBalance === "string")
75482
+ message.addToBalance = parseInt(object.addToBalance, 10);
75483
+ else if (typeof object.addToBalance === "number")
75484
+ message.addToBalance = object.addToBalance;
75485
+ else if (typeof object.addToBalance === "object")
75486
+ message.addToBalance = new $util.LongBits(object.addToBalance.low >>> 0, object.addToBalance.high >>> 0).toNumber(true);
75487
+ return message;
75488
+ };
75489
+
75490
+ /**
75491
+ * Creates a plain object from an AddressBalanceChange message. Also converts values to other types if specified.
75492
+ * @function toObject
75493
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceChange
75494
+ * @static
75495
+ * @param {org.dash.platform.dapi.v0.AddressBalanceChange} message AddressBalanceChange
75496
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
75497
+ * @returns {Object.<string,*>} Plain object
75498
+ */
75499
+ AddressBalanceChange.toObject = function toObject(message, options) {
75500
+ if (!options)
75501
+ options = {};
75502
+ var object = {};
75503
+ if (options.defaults)
75504
+ if (options.bytes === String)
75505
+ object.address = "";
75506
+ else {
75507
+ object.address = [];
75508
+ if (options.bytes !== Array)
75509
+ object.address = $util.newBuffer(object.address);
75510
+ }
75511
+ if (message.address != null && message.hasOwnProperty("address"))
75512
+ object.address = options.bytes === String ? $util.base64.encode(message.address, 0, message.address.length) : options.bytes === Array ? Array.prototype.slice.call(message.address) : message.address;
75513
+ if (message.setBalance != null && message.hasOwnProperty("setBalance")) {
75514
+ if (typeof message.setBalance === "number")
75515
+ object.setBalance = options.longs === String ? String(message.setBalance) : message.setBalance;
75516
+ else
75517
+ object.setBalance = options.longs === String ? $util.Long.prototype.toString.call(message.setBalance) : options.longs === Number ? new $util.LongBits(message.setBalance.low >>> 0, message.setBalance.high >>> 0).toNumber(true) : message.setBalance;
75518
+ if (options.oneofs)
75519
+ object.operation = "setBalance";
75520
+ }
75521
+ if (message.addToBalance != null && message.hasOwnProperty("addToBalance")) {
75522
+ if (typeof message.addToBalance === "number")
75523
+ object.addToBalance = options.longs === String ? String(message.addToBalance) : message.addToBalance;
75524
+ else
75525
+ object.addToBalance = options.longs === String ? $util.Long.prototype.toString.call(message.addToBalance) : options.longs === Number ? new $util.LongBits(message.addToBalance.low >>> 0, message.addToBalance.high >>> 0).toNumber(true) : message.addToBalance;
75526
+ if (options.oneofs)
75527
+ object.operation = "addToBalance";
75528
+ }
75529
+ return object;
75530
+ };
75531
+
75532
+ /**
75533
+ * Converts this AddressBalanceChange to JSON.
75534
+ * @function toJSON
75535
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceChange
75536
+ * @instance
75537
+ * @returns {Object.<string,*>} JSON object
75538
+ */
75539
+ AddressBalanceChange.prototype.toJSON = function toJSON() {
75540
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
75541
+ };
75542
+
75543
+ return AddressBalanceChange;
75544
+ })();
75545
+
75546
+ v0.BlockAddressBalanceChanges = (function() {
75547
+
75548
+ /**
75549
+ * Properties of a BlockAddressBalanceChanges.
75550
+ * @memberof org.dash.platform.dapi.v0
75551
+ * @interface IBlockAddressBalanceChanges
75552
+ * @property {number|Long|null} [blockHeight] BlockAddressBalanceChanges blockHeight
75553
+ * @property {Array.<org.dash.platform.dapi.v0.IAddressBalanceChange>|null} [changes] BlockAddressBalanceChanges changes
75554
+ */
75555
+
75556
+ /**
75557
+ * Constructs a new BlockAddressBalanceChanges.
75558
+ * @memberof org.dash.platform.dapi.v0
75559
+ * @classdesc Represents a BlockAddressBalanceChanges.
75560
+ * @implements IBlockAddressBalanceChanges
75561
+ * @constructor
75562
+ * @param {org.dash.platform.dapi.v0.IBlockAddressBalanceChanges=} [properties] Properties to set
75563
+ */
75564
+ function BlockAddressBalanceChanges(properties) {
75565
+ this.changes = [];
75566
+ if (properties)
75567
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
75568
+ if (properties[keys[i]] != null)
75569
+ this[keys[i]] = properties[keys[i]];
75570
+ }
75571
+
75572
+ /**
75573
+ * BlockAddressBalanceChanges blockHeight.
75574
+ * @member {number|Long} blockHeight
75575
+ * @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
75576
+ * @instance
75577
+ */
75578
+ BlockAddressBalanceChanges.prototype.blockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
75579
+
75580
+ /**
75581
+ * BlockAddressBalanceChanges changes.
75582
+ * @member {Array.<org.dash.platform.dapi.v0.IAddressBalanceChange>} changes
75583
+ * @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
75584
+ * @instance
75585
+ */
75586
+ BlockAddressBalanceChanges.prototype.changes = $util.emptyArray;
75587
+
75588
+ /**
75589
+ * Creates a new BlockAddressBalanceChanges instance using the specified properties.
75590
+ * @function create
75591
+ * @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
75592
+ * @static
75593
+ * @param {org.dash.platform.dapi.v0.IBlockAddressBalanceChanges=} [properties] Properties to set
75594
+ * @returns {org.dash.platform.dapi.v0.BlockAddressBalanceChanges} BlockAddressBalanceChanges instance
75595
+ */
75596
+ BlockAddressBalanceChanges.create = function create(properties) {
75597
+ return new BlockAddressBalanceChanges(properties);
75598
+ };
75599
+
75600
+ /**
75601
+ * Encodes the specified BlockAddressBalanceChanges message. Does not implicitly {@link org.dash.platform.dapi.v0.BlockAddressBalanceChanges.verify|verify} messages.
75602
+ * @function encode
75603
+ * @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
75604
+ * @static
75605
+ * @param {org.dash.platform.dapi.v0.IBlockAddressBalanceChanges} message BlockAddressBalanceChanges message or plain object to encode
75606
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75607
+ * @returns {$protobuf.Writer} Writer
75608
+ */
75609
+ BlockAddressBalanceChanges.encode = function encode(message, writer) {
75610
+ if (!writer)
75611
+ writer = $Writer.create();
75612
+ if (message.blockHeight != null && Object.hasOwnProperty.call(message, "blockHeight"))
75613
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.blockHeight);
75614
+ if (message.changes != null && message.changes.length)
75615
+ for (var i = 0; i < message.changes.length; ++i)
75616
+ $root.org.dash.platform.dapi.v0.AddressBalanceChange.encode(message.changes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
75617
+ return writer;
75618
+ };
75619
+
75620
+ /**
75621
+ * Encodes the specified BlockAddressBalanceChanges message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.BlockAddressBalanceChanges.verify|verify} messages.
75622
+ * @function encodeDelimited
75623
+ * @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
75624
+ * @static
75625
+ * @param {org.dash.platform.dapi.v0.IBlockAddressBalanceChanges} message BlockAddressBalanceChanges message or plain object to encode
75626
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75627
+ * @returns {$protobuf.Writer} Writer
75628
+ */
75629
+ BlockAddressBalanceChanges.encodeDelimited = function encodeDelimited(message, writer) {
75630
+ return this.encode(message, writer).ldelim();
75631
+ };
75632
+
75633
+ /**
75634
+ * Decodes a BlockAddressBalanceChanges message from the specified reader or buffer.
75635
+ * @function decode
75636
+ * @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
75637
+ * @static
75638
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75639
+ * @param {number} [length] Message length if known beforehand
75640
+ * @returns {org.dash.platform.dapi.v0.BlockAddressBalanceChanges} BlockAddressBalanceChanges
75641
+ * @throws {Error} If the payload is not a reader or valid buffer
75642
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
75643
+ */
75644
+ BlockAddressBalanceChanges.decode = function decode(reader, length) {
75645
+ if (!(reader instanceof $Reader))
75646
+ reader = $Reader.create(reader);
75647
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.BlockAddressBalanceChanges();
75648
+ while (reader.pos < end) {
75649
+ var tag = reader.uint32();
75650
+ switch (tag >>> 3) {
75651
+ case 1:
75652
+ message.blockHeight = reader.uint64();
75653
+ break;
75654
+ case 2:
75655
+ if (!(message.changes && message.changes.length))
75656
+ message.changes = [];
75657
+ message.changes.push($root.org.dash.platform.dapi.v0.AddressBalanceChange.decode(reader, reader.uint32()));
75658
+ break;
75659
+ default:
75660
+ reader.skipType(tag & 7);
75661
+ break;
75662
+ }
75663
+ }
75664
+ return message;
75665
+ };
75666
+
75667
+ /**
75668
+ * Decodes a BlockAddressBalanceChanges message from the specified reader or buffer, length delimited.
75669
+ * @function decodeDelimited
75670
+ * @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
75671
+ * @static
75672
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75673
+ * @returns {org.dash.platform.dapi.v0.BlockAddressBalanceChanges} BlockAddressBalanceChanges
75674
+ * @throws {Error} If the payload is not a reader or valid buffer
75675
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
75676
+ */
75677
+ BlockAddressBalanceChanges.decodeDelimited = function decodeDelimited(reader) {
75678
+ if (!(reader instanceof $Reader))
75679
+ reader = new $Reader(reader);
75680
+ return this.decode(reader, reader.uint32());
75681
+ };
75682
+
75683
+ /**
75684
+ * Verifies a BlockAddressBalanceChanges message.
75685
+ * @function verify
75686
+ * @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
75687
+ * @static
75688
+ * @param {Object.<string,*>} message Plain object to verify
75689
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
75690
+ */
75691
+ BlockAddressBalanceChanges.verify = function verify(message) {
75692
+ if (typeof message !== "object" || message === null)
75693
+ return "object expected";
75694
+ if (message.blockHeight != null && message.hasOwnProperty("blockHeight"))
75695
+ if (!$util.isInteger(message.blockHeight) && !(message.blockHeight && $util.isInteger(message.blockHeight.low) && $util.isInteger(message.blockHeight.high)))
75696
+ return "blockHeight: integer|Long expected";
75697
+ if (message.changes != null && message.hasOwnProperty("changes")) {
75698
+ if (!Array.isArray(message.changes))
75699
+ return "changes: array expected";
75700
+ for (var i = 0; i < message.changes.length; ++i) {
75701
+ var error = $root.org.dash.platform.dapi.v0.AddressBalanceChange.verify(message.changes[i]);
75702
+ if (error)
75703
+ return "changes." + error;
75704
+ }
75705
+ }
75706
+ return null;
75707
+ };
75708
+
75709
+ /**
75710
+ * Creates a BlockAddressBalanceChanges message from a plain object. Also converts values to their respective internal types.
75711
+ * @function fromObject
75712
+ * @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
75713
+ * @static
75714
+ * @param {Object.<string,*>} object Plain object
75715
+ * @returns {org.dash.platform.dapi.v0.BlockAddressBalanceChanges} BlockAddressBalanceChanges
75716
+ */
75717
+ BlockAddressBalanceChanges.fromObject = function fromObject(object) {
75718
+ if (object instanceof $root.org.dash.platform.dapi.v0.BlockAddressBalanceChanges)
75719
+ return object;
75720
+ var message = new $root.org.dash.platform.dapi.v0.BlockAddressBalanceChanges();
75721
+ if (object.blockHeight != null)
75722
+ if ($util.Long)
75723
+ (message.blockHeight = $util.Long.fromValue(object.blockHeight)).unsigned = true;
75724
+ else if (typeof object.blockHeight === "string")
75725
+ message.blockHeight = parseInt(object.blockHeight, 10);
75726
+ else if (typeof object.blockHeight === "number")
75727
+ message.blockHeight = object.blockHeight;
75728
+ else if (typeof object.blockHeight === "object")
75729
+ message.blockHeight = new $util.LongBits(object.blockHeight.low >>> 0, object.blockHeight.high >>> 0).toNumber(true);
75730
+ if (object.changes) {
75731
+ if (!Array.isArray(object.changes))
75732
+ throw TypeError(".org.dash.platform.dapi.v0.BlockAddressBalanceChanges.changes: array expected");
75733
+ message.changes = [];
75734
+ for (var i = 0; i < object.changes.length; ++i) {
75735
+ if (typeof object.changes[i] !== "object")
75736
+ throw TypeError(".org.dash.platform.dapi.v0.BlockAddressBalanceChanges.changes: object expected");
75737
+ message.changes[i] = $root.org.dash.platform.dapi.v0.AddressBalanceChange.fromObject(object.changes[i]);
75738
+ }
75739
+ }
75740
+ return message;
75741
+ };
75742
+
75743
+ /**
75744
+ * Creates a plain object from a BlockAddressBalanceChanges message. Also converts values to other types if specified.
75745
+ * @function toObject
75746
+ * @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
75747
+ * @static
75748
+ * @param {org.dash.platform.dapi.v0.BlockAddressBalanceChanges} message BlockAddressBalanceChanges
75749
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
75750
+ * @returns {Object.<string,*>} Plain object
75751
+ */
75752
+ BlockAddressBalanceChanges.toObject = function toObject(message, options) {
75753
+ if (!options)
75754
+ options = {};
75755
+ var object = {};
75756
+ if (options.arrays || options.defaults)
75757
+ object.changes = [];
75758
+ if (options.defaults)
75759
+ if ($util.Long) {
75760
+ var long = new $util.Long(0, 0, true);
75761
+ object.blockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
75762
+ } else
75763
+ object.blockHeight = options.longs === String ? "0" : 0;
75764
+ if (message.blockHeight != null && message.hasOwnProperty("blockHeight"))
75765
+ if (typeof message.blockHeight === "number")
75766
+ object.blockHeight = options.longs === String ? String(message.blockHeight) : message.blockHeight;
75767
+ else
75768
+ object.blockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.blockHeight) : options.longs === Number ? new $util.LongBits(message.blockHeight.low >>> 0, message.blockHeight.high >>> 0).toNumber(true) : message.blockHeight;
75769
+ if (message.changes && message.changes.length) {
75770
+ object.changes = [];
75771
+ for (var j = 0; j < message.changes.length; ++j)
75772
+ object.changes[j] = $root.org.dash.platform.dapi.v0.AddressBalanceChange.toObject(message.changes[j], options);
75773
+ }
75774
+ return object;
75775
+ };
75776
+
75777
+ /**
75778
+ * Converts this BlockAddressBalanceChanges to JSON.
75779
+ * @function toJSON
75780
+ * @memberof org.dash.platform.dapi.v0.BlockAddressBalanceChanges
75781
+ * @instance
75782
+ * @returns {Object.<string,*>} JSON object
75783
+ */
75784
+ BlockAddressBalanceChanges.prototype.toJSON = function toJSON() {
75785
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
75786
+ };
75787
+
75788
+ return BlockAddressBalanceChanges;
75789
+ })();
75790
+
75791
+ v0.AddressBalanceUpdateEntries = (function() {
75792
+
75793
+ /**
75794
+ * Properties of an AddressBalanceUpdateEntries.
75795
+ * @memberof org.dash.platform.dapi.v0
75796
+ * @interface IAddressBalanceUpdateEntries
75797
+ * @property {Array.<org.dash.platform.dapi.v0.IBlockAddressBalanceChanges>|null} [blockChanges] AddressBalanceUpdateEntries blockChanges
75798
+ */
75799
+
75800
+ /**
75801
+ * Constructs a new AddressBalanceUpdateEntries.
75802
+ * @memberof org.dash.platform.dapi.v0
75803
+ * @classdesc Represents an AddressBalanceUpdateEntries.
75804
+ * @implements IAddressBalanceUpdateEntries
75805
+ * @constructor
75806
+ * @param {org.dash.platform.dapi.v0.IAddressBalanceUpdateEntries=} [properties] Properties to set
75807
+ */
75808
+ function AddressBalanceUpdateEntries(properties) {
75809
+ this.blockChanges = [];
75810
+ if (properties)
75811
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
75812
+ if (properties[keys[i]] != null)
75813
+ this[keys[i]] = properties[keys[i]];
75814
+ }
75815
+
75816
+ /**
75817
+ * AddressBalanceUpdateEntries blockChanges.
75818
+ * @member {Array.<org.dash.platform.dapi.v0.IBlockAddressBalanceChanges>} blockChanges
75819
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
75820
+ * @instance
75821
+ */
75822
+ AddressBalanceUpdateEntries.prototype.blockChanges = $util.emptyArray;
75823
+
75824
+ /**
75825
+ * Creates a new AddressBalanceUpdateEntries instance using the specified properties.
75826
+ * @function create
75827
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
75828
+ * @static
75829
+ * @param {org.dash.platform.dapi.v0.IAddressBalanceUpdateEntries=} [properties] Properties to set
75830
+ * @returns {org.dash.platform.dapi.v0.AddressBalanceUpdateEntries} AddressBalanceUpdateEntries instance
75831
+ */
75832
+ AddressBalanceUpdateEntries.create = function create(properties) {
75833
+ return new AddressBalanceUpdateEntries(properties);
75834
+ };
75835
+
75836
+ /**
75837
+ * Encodes the specified AddressBalanceUpdateEntries message. Does not implicitly {@link org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.verify|verify} messages.
75838
+ * @function encode
75839
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
75840
+ * @static
75841
+ * @param {org.dash.platform.dapi.v0.IAddressBalanceUpdateEntries} message AddressBalanceUpdateEntries message or plain object to encode
75842
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75843
+ * @returns {$protobuf.Writer} Writer
75844
+ */
75845
+ AddressBalanceUpdateEntries.encode = function encode(message, writer) {
75846
+ if (!writer)
75847
+ writer = $Writer.create();
75848
+ if (message.blockChanges != null && message.blockChanges.length)
75849
+ for (var i = 0; i < message.blockChanges.length; ++i)
75850
+ $root.org.dash.platform.dapi.v0.BlockAddressBalanceChanges.encode(message.blockChanges[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
75851
+ return writer;
75852
+ };
75853
+
75854
+ /**
75855
+ * Encodes the specified AddressBalanceUpdateEntries message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.verify|verify} messages.
75856
+ * @function encodeDelimited
75857
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
75858
+ * @static
75859
+ * @param {org.dash.platform.dapi.v0.IAddressBalanceUpdateEntries} message AddressBalanceUpdateEntries message or plain object to encode
75860
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75861
+ * @returns {$protobuf.Writer} Writer
75862
+ */
75863
+ AddressBalanceUpdateEntries.encodeDelimited = function encodeDelimited(message, writer) {
75864
+ return this.encode(message, writer).ldelim();
75865
+ };
75866
+
75867
+ /**
75868
+ * Decodes an AddressBalanceUpdateEntries message from the specified reader or buffer.
75869
+ * @function decode
75870
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
75871
+ * @static
75872
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75873
+ * @param {number} [length] Message length if known beforehand
75874
+ * @returns {org.dash.platform.dapi.v0.AddressBalanceUpdateEntries} AddressBalanceUpdateEntries
75875
+ * @throws {Error} If the payload is not a reader or valid buffer
75876
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
75877
+ */
75878
+ AddressBalanceUpdateEntries.decode = function decode(reader, length) {
75879
+ if (!(reader instanceof $Reader))
75880
+ reader = $Reader.create(reader);
75881
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries();
75882
+ while (reader.pos < end) {
75883
+ var tag = reader.uint32();
75884
+ switch (tag >>> 3) {
75885
+ case 1:
75886
+ if (!(message.blockChanges && message.blockChanges.length))
75887
+ message.blockChanges = [];
75888
+ message.blockChanges.push($root.org.dash.platform.dapi.v0.BlockAddressBalanceChanges.decode(reader, reader.uint32()));
75889
+ break;
75890
+ default:
75891
+ reader.skipType(tag & 7);
75892
+ break;
75893
+ }
75894
+ }
75895
+ return message;
75896
+ };
75897
+
75898
+ /**
75899
+ * Decodes an AddressBalanceUpdateEntries message from the specified reader or buffer, length delimited.
75900
+ * @function decodeDelimited
75901
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
75902
+ * @static
75903
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75904
+ * @returns {org.dash.platform.dapi.v0.AddressBalanceUpdateEntries} AddressBalanceUpdateEntries
75905
+ * @throws {Error} If the payload is not a reader or valid buffer
75906
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
75907
+ */
75908
+ AddressBalanceUpdateEntries.decodeDelimited = function decodeDelimited(reader) {
75909
+ if (!(reader instanceof $Reader))
75910
+ reader = new $Reader(reader);
75911
+ return this.decode(reader, reader.uint32());
75912
+ };
75913
+
75914
+ /**
75915
+ * Verifies an AddressBalanceUpdateEntries message.
75916
+ * @function verify
75917
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
75918
+ * @static
75919
+ * @param {Object.<string,*>} message Plain object to verify
75920
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
75921
+ */
75922
+ AddressBalanceUpdateEntries.verify = function verify(message) {
75923
+ if (typeof message !== "object" || message === null)
75924
+ return "object expected";
75925
+ if (message.blockChanges != null && message.hasOwnProperty("blockChanges")) {
75926
+ if (!Array.isArray(message.blockChanges))
75927
+ return "blockChanges: array expected";
75928
+ for (var i = 0; i < message.blockChanges.length; ++i) {
75929
+ var error = $root.org.dash.platform.dapi.v0.BlockAddressBalanceChanges.verify(message.blockChanges[i]);
75930
+ if (error)
75931
+ return "blockChanges." + error;
75932
+ }
75933
+ }
75934
+ return null;
75935
+ };
75936
+
75937
+ /**
75938
+ * Creates an AddressBalanceUpdateEntries message from a plain object. Also converts values to their respective internal types.
75939
+ * @function fromObject
75940
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
75941
+ * @static
75942
+ * @param {Object.<string,*>} object Plain object
75943
+ * @returns {org.dash.platform.dapi.v0.AddressBalanceUpdateEntries} AddressBalanceUpdateEntries
75944
+ */
75945
+ AddressBalanceUpdateEntries.fromObject = function fromObject(object) {
75946
+ if (object instanceof $root.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries)
75947
+ return object;
75948
+ var message = new $root.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries();
75949
+ if (object.blockChanges) {
75950
+ if (!Array.isArray(object.blockChanges))
75951
+ throw TypeError(".org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.blockChanges: array expected");
75952
+ message.blockChanges = [];
75953
+ for (var i = 0; i < object.blockChanges.length; ++i) {
75954
+ if (typeof object.blockChanges[i] !== "object")
75955
+ throw TypeError(".org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.blockChanges: object expected");
75956
+ message.blockChanges[i] = $root.org.dash.platform.dapi.v0.BlockAddressBalanceChanges.fromObject(object.blockChanges[i]);
75957
+ }
75958
+ }
75959
+ return message;
75960
+ };
75961
+
75962
+ /**
75963
+ * Creates a plain object from an AddressBalanceUpdateEntries message. Also converts values to other types if specified.
75964
+ * @function toObject
75965
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
75966
+ * @static
75967
+ * @param {org.dash.platform.dapi.v0.AddressBalanceUpdateEntries} message AddressBalanceUpdateEntries
75968
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
75969
+ * @returns {Object.<string,*>} Plain object
75970
+ */
75971
+ AddressBalanceUpdateEntries.toObject = function toObject(message, options) {
75972
+ if (!options)
75973
+ options = {};
75974
+ var object = {};
75975
+ if (options.arrays || options.defaults)
75976
+ object.blockChanges = [];
75977
+ if (message.blockChanges && message.blockChanges.length) {
75978
+ object.blockChanges = [];
75979
+ for (var j = 0; j < message.blockChanges.length; ++j)
75980
+ object.blockChanges[j] = $root.org.dash.platform.dapi.v0.BlockAddressBalanceChanges.toObject(message.blockChanges[j], options);
75981
+ }
75982
+ return object;
75983
+ };
75984
+
75985
+ /**
75986
+ * Converts this AddressBalanceUpdateEntries to JSON.
75987
+ * @function toJSON
75988
+ * @memberof org.dash.platform.dapi.v0.AddressBalanceUpdateEntries
75989
+ * @instance
75990
+ * @returns {Object.<string,*>} JSON object
75991
+ */
75992
+ AddressBalanceUpdateEntries.prototype.toJSON = function toJSON() {
75993
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
75994
+ };
75995
+
75996
+ return AddressBalanceUpdateEntries;
75997
+ })();
75998
+
75195
75999
  v0.GetAddressInfoResponse = (function() {
75196
76000
 
75197
76001
  /**
@@ -78275,6 +79079,2334 @@ $root.org = (function() {
78275
79079
  return GetAddressesBranchStateResponse;
78276
79080
  })();
78277
79081
 
79082
+ v0.GetRecentAddressBalanceChangesRequest = (function() {
79083
+
79084
+ /**
79085
+ * Properties of a GetRecentAddressBalanceChangesRequest.
79086
+ * @memberof org.dash.platform.dapi.v0
79087
+ * @interface IGetRecentAddressBalanceChangesRequest
79088
+ * @property {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.IGetRecentAddressBalanceChangesRequestV0|null} [v0] GetRecentAddressBalanceChangesRequest v0
79089
+ */
79090
+
79091
+ /**
79092
+ * Constructs a new GetRecentAddressBalanceChangesRequest.
79093
+ * @memberof org.dash.platform.dapi.v0
79094
+ * @classdesc Represents a GetRecentAddressBalanceChangesRequest.
79095
+ * @implements IGetRecentAddressBalanceChangesRequest
79096
+ * @constructor
79097
+ * @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesRequest=} [properties] Properties to set
79098
+ */
79099
+ function GetRecentAddressBalanceChangesRequest(properties) {
79100
+ if (properties)
79101
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
79102
+ if (properties[keys[i]] != null)
79103
+ this[keys[i]] = properties[keys[i]];
79104
+ }
79105
+
79106
+ /**
79107
+ * GetRecentAddressBalanceChangesRequest v0.
79108
+ * @member {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.IGetRecentAddressBalanceChangesRequestV0|null|undefined} v0
79109
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
79110
+ * @instance
79111
+ */
79112
+ GetRecentAddressBalanceChangesRequest.prototype.v0 = null;
79113
+
79114
+ // OneOf field names bound to virtual getters and setters
79115
+ var $oneOfFields;
79116
+
79117
+ /**
79118
+ * GetRecentAddressBalanceChangesRequest version.
79119
+ * @member {"v0"|undefined} version
79120
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
79121
+ * @instance
79122
+ */
79123
+ Object.defineProperty(GetRecentAddressBalanceChangesRequest.prototype, "version", {
79124
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
79125
+ set: $util.oneOfSetter($oneOfFields)
79126
+ });
79127
+
79128
+ /**
79129
+ * Creates a new GetRecentAddressBalanceChangesRequest instance using the specified properties.
79130
+ * @function create
79131
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
79132
+ * @static
79133
+ * @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesRequest=} [properties] Properties to set
79134
+ * @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest} GetRecentAddressBalanceChangesRequest instance
79135
+ */
79136
+ GetRecentAddressBalanceChangesRequest.create = function create(properties) {
79137
+ return new GetRecentAddressBalanceChangesRequest(properties);
79138
+ };
79139
+
79140
+ /**
79141
+ * Encodes the specified GetRecentAddressBalanceChangesRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.verify|verify} messages.
79142
+ * @function encode
79143
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
79144
+ * @static
79145
+ * @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesRequest} message GetRecentAddressBalanceChangesRequest message or plain object to encode
79146
+ * @param {$protobuf.Writer} [writer] Writer to encode to
79147
+ * @returns {$protobuf.Writer} Writer
79148
+ */
79149
+ GetRecentAddressBalanceChangesRequest.encode = function encode(message, writer) {
79150
+ if (!writer)
79151
+ writer = $Writer.create();
79152
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
79153
+ $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
79154
+ return writer;
79155
+ };
79156
+
79157
+ /**
79158
+ * Encodes the specified GetRecentAddressBalanceChangesRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.verify|verify} messages.
79159
+ * @function encodeDelimited
79160
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
79161
+ * @static
79162
+ * @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesRequest} message GetRecentAddressBalanceChangesRequest message or plain object to encode
79163
+ * @param {$protobuf.Writer} [writer] Writer to encode to
79164
+ * @returns {$protobuf.Writer} Writer
79165
+ */
79166
+ GetRecentAddressBalanceChangesRequest.encodeDelimited = function encodeDelimited(message, writer) {
79167
+ return this.encode(message, writer).ldelim();
79168
+ };
79169
+
79170
+ /**
79171
+ * Decodes a GetRecentAddressBalanceChangesRequest message from the specified reader or buffer.
79172
+ * @function decode
79173
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
79174
+ * @static
79175
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
79176
+ * @param {number} [length] Message length if known beforehand
79177
+ * @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest} GetRecentAddressBalanceChangesRequest
79178
+ * @throws {Error} If the payload is not a reader or valid buffer
79179
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
79180
+ */
79181
+ GetRecentAddressBalanceChangesRequest.decode = function decode(reader, length) {
79182
+ if (!(reader instanceof $Reader))
79183
+ reader = $Reader.create(reader);
79184
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest();
79185
+ while (reader.pos < end) {
79186
+ var tag = reader.uint32();
79187
+ switch (tag >>> 3) {
79188
+ case 1:
79189
+ message.v0 = $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0.decode(reader, reader.uint32());
79190
+ break;
79191
+ default:
79192
+ reader.skipType(tag & 7);
79193
+ break;
79194
+ }
79195
+ }
79196
+ return message;
79197
+ };
79198
+
79199
+ /**
79200
+ * Decodes a GetRecentAddressBalanceChangesRequest message from the specified reader or buffer, length delimited.
79201
+ * @function decodeDelimited
79202
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
79203
+ * @static
79204
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
79205
+ * @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest} GetRecentAddressBalanceChangesRequest
79206
+ * @throws {Error} If the payload is not a reader or valid buffer
79207
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
79208
+ */
79209
+ GetRecentAddressBalanceChangesRequest.decodeDelimited = function decodeDelimited(reader) {
79210
+ if (!(reader instanceof $Reader))
79211
+ reader = new $Reader(reader);
79212
+ return this.decode(reader, reader.uint32());
79213
+ };
79214
+
79215
+ /**
79216
+ * Verifies a GetRecentAddressBalanceChangesRequest message.
79217
+ * @function verify
79218
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
79219
+ * @static
79220
+ * @param {Object.<string,*>} message Plain object to verify
79221
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
79222
+ */
79223
+ GetRecentAddressBalanceChangesRequest.verify = function verify(message) {
79224
+ if (typeof message !== "object" || message === null)
79225
+ return "object expected";
79226
+ var properties = {};
79227
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
79228
+ properties.version = 1;
79229
+ {
79230
+ var error = $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0.verify(message.v0);
79231
+ if (error)
79232
+ return "v0." + error;
79233
+ }
79234
+ }
79235
+ return null;
79236
+ };
79237
+
79238
+ /**
79239
+ * Creates a GetRecentAddressBalanceChangesRequest message from a plain object. Also converts values to their respective internal types.
79240
+ * @function fromObject
79241
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
79242
+ * @static
79243
+ * @param {Object.<string,*>} object Plain object
79244
+ * @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest} GetRecentAddressBalanceChangesRequest
79245
+ */
79246
+ GetRecentAddressBalanceChangesRequest.fromObject = function fromObject(object) {
79247
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest)
79248
+ return object;
79249
+ var message = new $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest();
79250
+ if (object.v0 != null) {
79251
+ if (typeof object.v0 !== "object")
79252
+ throw TypeError(".org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.v0: object expected");
79253
+ message.v0 = $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0.fromObject(object.v0);
79254
+ }
79255
+ return message;
79256
+ };
79257
+
79258
+ /**
79259
+ * Creates a plain object from a GetRecentAddressBalanceChangesRequest message. Also converts values to other types if specified.
79260
+ * @function toObject
79261
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
79262
+ * @static
79263
+ * @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest} message GetRecentAddressBalanceChangesRequest
79264
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
79265
+ * @returns {Object.<string,*>} Plain object
79266
+ */
79267
+ GetRecentAddressBalanceChangesRequest.toObject = function toObject(message, options) {
79268
+ if (!options)
79269
+ options = {};
79270
+ var object = {};
79271
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
79272
+ object.v0 = $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0.toObject(message.v0, options);
79273
+ if (options.oneofs)
79274
+ object.version = "v0";
79275
+ }
79276
+ return object;
79277
+ };
79278
+
79279
+ /**
79280
+ * Converts this GetRecentAddressBalanceChangesRequest to JSON.
79281
+ * @function toJSON
79282
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
79283
+ * @instance
79284
+ * @returns {Object.<string,*>} JSON object
79285
+ */
79286
+ GetRecentAddressBalanceChangesRequest.prototype.toJSON = function toJSON() {
79287
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
79288
+ };
79289
+
79290
+ GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0 = (function() {
79291
+
79292
+ /**
79293
+ * Properties of a GetRecentAddressBalanceChangesRequestV0.
79294
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
79295
+ * @interface IGetRecentAddressBalanceChangesRequestV0
79296
+ * @property {number|Long|null} [startHeight] GetRecentAddressBalanceChangesRequestV0 startHeight
79297
+ * @property {boolean|null} [prove] GetRecentAddressBalanceChangesRequestV0 prove
79298
+ */
79299
+
79300
+ /**
79301
+ * Constructs a new GetRecentAddressBalanceChangesRequestV0.
79302
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest
79303
+ * @classdesc Represents a GetRecentAddressBalanceChangesRequestV0.
79304
+ * @implements IGetRecentAddressBalanceChangesRequestV0
79305
+ * @constructor
79306
+ * @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.IGetRecentAddressBalanceChangesRequestV0=} [properties] Properties to set
79307
+ */
79308
+ function GetRecentAddressBalanceChangesRequestV0(properties) {
79309
+ if (properties)
79310
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
79311
+ if (properties[keys[i]] != null)
79312
+ this[keys[i]] = properties[keys[i]];
79313
+ }
79314
+
79315
+ /**
79316
+ * GetRecentAddressBalanceChangesRequestV0 startHeight.
79317
+ * @member {number|Long} startHeight
79318
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
79319
+ * @instance
79320
+ */
79321
+ GetRecentAddressBalanceChangesRequestV0.prototype.startHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
79322
+
79323
+ /**
79324
+ * GetRecentAddressBalanceChangesRequestV0 prove.
79325
+ * @member {boolean} prove
79326
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
79327
+ * @instance
79328
+ */
79329
+ GetRecentAddressBalanceChangesRequestV0.prototype.prove = false;
79330
+
79331
+ /**
79332
+ * Creates a new GetRecentAddressBalanceChangesRequestV0 instance using the specified properties.
79333
+ * @function create
79334
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
79335
+ * @static
79336
+ * @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.IGetRecentAddressBalanceChangesRequestV0=} [properties] Properties to set
79337
+ * @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0} GetRecentAddressBalanceChangesRequestV0 instance
79338
+ */
79339
+ GetRecentAddressBalanceChangesRequestV0.create = function create(properties) {
79340
+ return new GetRecentAddressBalanceChangesRequestV0(properties);
79341
+ };
79342
+
79343
+ /**
79344
+ * Encodes the specified GetRecentAddressBalanceChangesRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0.verify|verify} messages.
79345
+ * @function encode
79346
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
79347
+ * @static
79348
+ * @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.IGetRecentAddressBalanceChangesRequestV0} message GetRecentAddressBalanceChangesRequestV0 message or plain object to encode
79349
+ * @param {$protobuf.Writer} [writer] Writer to encode to
79350
+ * @returns {$protobuf.Writer} Writer
79351
+ */
79352
+ GetRecentAddressBalanceChangesRequestV0.encode = function encode(message, writer) {
79353
+ if (!writer)
79354
+ writer = $Writer.create();
79355
+ if (message.startHeight != null && Object.hasOwnProperty.call(message, "startHeight"))
79356
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startHeight);
79357
+ if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
79358
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
79359
+ return writer;
79360
+ };
79361
+
79362
+ /**
79363
+ * Encodes the specified GetRecentAddressBalanceChangesRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0.verify|verify} messages.
79364
+ * @function encodeDelimited
79365
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
79366
+ * @static
79367
+ * @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.IGetRecentAddressBalanceChangesRequestV0} message GetRecentAddressBalanceChangesRequestV0 message or plain object to encode
79368
+ * @param {$protobuf.Writer} [writer] Writer to encode to
79369
+ * @returns {$protobuf.Writer} Writer
79370
+ */
79371
+ GetRecentAddressBalanceChangesRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
79372
+ return this.encode(message, writer).ldelim();
79373
+ };
79374
+
79375
+ /**
79376
+ * Decodes a GetRecentAddressBalanceChangesRequestV0 message from the specified reader or buffer.
79377
+ * @function decode
79378
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
79379
+ * @static
79380
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
79381
+ * @param {number} [length] Message length if known beforehand
79382
+ * @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0} GetRecentAddressBalanceChangesRequestV0
79383
+ * @throws {Error} If the payload is not a reader or valid buffer
79384
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
79385
+ */
79386
+ GetRecentAddressBalanceChangesRequestV0.decode = function decode(reader, length) {
79387
+ if (!(reader instanceof $Reader))
79388
+ reader = $Reader.create(reader);
79389
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0();
79390
+ while (reader.pos < end) {
79391
+ var tag = reader.uint32();
79392
+ switch (tag >>> 3) {
79393
+ case 1:
79394
+ message.startHeight = reader.uint64();
79395
+ break;
79396
+ case 2:
79397
+ message.prove = reader.bool();
79398
+ break;
79399
+ default:
79400
+ reader.skipType(tag & 7);
79401
+ break;
79402
+ }
79403
+ }
79404
+ return message;
79405
+ };
79406
+
79407
+ /**
79408
+ * Decodes a GetRecentAddressBalanceChangesRequestV0 message from the specified reader or buffer, length delimited.
79409
+ * @function decodeDelimited
79410
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
79411
+ * @static
79412
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
79413
+ * @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0} GetRecentAddressBalanceChangesRequestV0
79414
+ * @throws {Error} If the payload is not a reader or valid buffer
79415
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
79416
+ */
79417
+ GetRecentAddressBalanceChangesRequestV0.decodeDelimited = function decodeDelimited(reader) {
79418
+ if (!(reader instanceof $Reader))
79419
+ reader = new $Reader(reader);
79420
+ return this.decode(reader, reader.uint32());
79421
+ };
79422
+
79423
+ /**
79424
+ * Verifies a GetRecentAddressBalanceChangesRequestV0 message.
79425
+ * @function verify
79426
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
79427
+ * @static
79428
+ * @param {Object.<string,*>} message Plain object to verify
79429
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
79430
+ */
79431
+ GetRecentAddressBalanceChangesRequestV0.verify = function verify(message) {
79432
+ if (typeof message !== "object" || message === null)
79433
+ return "object expected";
79434
+ if (message.startHeight != null && message.hasOwnProperty("startHeight"))
79435
+ if (!$util.isInteger(message.startHeight) && !(message.startHeight && $util.isInteger(message.startHeight.low) && $util.isInteger(message.startHeight.high)))
79436
+ return "startHeight: integer|Long expected";
79437
+ if (message.prove != null && message.hasOwnProperty("prove"))
79438
+ if (typeof message.prove !== "boolean")
79439
+ return "prove: boolean expected";
79440
+ return null;
79441
+ };
79442
+
79443
+ /**
79444
+ * Creates a GetRecentAddressBalanceChangesRequestV0 message from a plain object. Also converts values to their respective internal types.
79445
+ * @function fromObject
79446
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
79447
+ * @static
79448
+ * @param {Object.<string,*>} object Plain object
79449
+ * @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0} GetRecentAddressBalanceChangesRequestV0
79450
+ */
79451
+ GetRecentAddressBalanceChangesRequestV0.fromObject = function fromObject(object) {
79452
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0)
79453
+ return object;
79454
+ var message = new $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0();
79455
+ if (object.startHeight != null)
79456
+ if ($util.Long)
79457
+ (message.startHeight = $util.Long.fromValue(object.startHeight)).unsigned = true;
79458
+ else if (typeof object.startHeight === "string")
79459
+ message.startHeight = parseInt(object.startHeight, 10);
79460
+ else if (typeof object.startHeight === "number")
79461
+ message.startHeight = object.startHeight;
79462
+ else if (typeof object.startHeight === "object")
79463
+ message.startHeight = new $util.LongBits(object.startHeight.low >>> 0, object.startHeight.high >>> 0).toNumber(true);
79464
+ if (object.prove != null)
79465
+ message.prove = Boolean(object.prove);
79466
+ return message;
79467
+ };
79468
+
79469
+ /**
79470
+ * Creates a plain object from a GetRecentAddressBalanceChangesRequestV0 message. Also converts values to other types if specified.
79471
+ * @function toObject
79472
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
79473
+ * @static
79474
+ * @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0} message GetRecentAddressBalanceChangesRequestV0
79475
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
79476
+ * @returns {Object.<string,*>} Plain object
79477
+ */
79478
+ GetRecentAddressBalanceChangesRequestV0.toObject = function toObject(message, options) {
79479
+ if (!options)
79480
+ options = {};
79481
+ var object = {};
79482
+ if (options.defaults) {
79483
+ if ($util.Long) {
79484
+ var long = new $util.Long(0, 0, true);
79485
+ object.startHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
79486
+ } else
79487
+ object.startHeight = options.longs === String ? "0" : 0;
79488
+ object.prove = false;
79489
+ }
79490
+ if (message.startHeight != null && message.hasOwnProperty("startHeight"))
79491
+ if (typeof message.startHeight === "number")
79492
+ object.startHeight = options.longs === String ? String(message.startHeight) : message.startHeight;
79493
+ else
79494
+ object.startHeight = options.longs === String ? $util.Long.prototype.toString.call(message.startHeight) : options.longs === Number ? new $util.LongBits(message.startHeight.low >>> 0, message.startHeight.high >>> 0).toNumber(true) : message.startHeight;
79495
+ if (message.prove != null && message.hasOwnProperty("prove"))
79496
+ object.prove = message.prove;
79497
+ return object;
79498
+ };
79499
+
79500
+ /**
79501
+ * Converts this GetRecentAddressBalanceChangesRequestV0 to JSON.
79502
+ * @function toJSON
79503
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0
79504
+ * @instance
79505
+ * @returns {Object.<string,*>} JSON object
79506
+ */
79507
+ GetRecentAddressBalanceChangesRequestV0.prototype.toJSON = function toJSON() {
79508
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
79509
+ };
79510
+
79511
+ return GetRecentAddressBalanceChangesRequestV0;
79512
+ })();
79513
+
79514
+ return GetRecentAddressBalanceChangesRequest;
79515
+ })();
79516
+
79517
+ v0.GetRecentAddressBalanceChangesResponse = (function() {
79518
+
79519
+ /**
79520
+ * Properties of a GetRecentAddressBalanceChangesResponse.
79521
+ * @memberof org.dash.platform.dapi.v0
79522
+ * @interface IGetRecentAddressBalanceChangesResponse
79523
+ * @property {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.IGetRecentAddressBalanceChangesResponseV0|null} [v0] GetRecentAddressBalanceChangesResponse v0
79524
+ */
79525
+
79526
+ /**
79527
+ * Constructs a new GetRecentAddressBalanceChangesResponse.
79528
+ * @memberof org.dash.platform.dapi.v0
79529
+ * @classdesc Represents a GetRecentAddressBalanceChangesResponse.
79530
+ * @implements IGetRecentAddressBalanceChangesResponse
79531
+ * @constructor
79532
+ * @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesResponse=} [properties] Properties to set
79533
+ */
79534
+ function GetRecentAddressBalanceChangesResponse(properties) {
79535
+ if (properties)
79536
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
79537
+ if (properties[keys[i]] != null)
79538
+ this[keys[i]] = properties[keys[i]];
79539
+ }
79540
+
79541
+ /**
79542
+ * GetRecentAddressBalanceChangesResponse v0.
79543
+ * @member {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.IGetRecentAddressBalanceChangesResponseV0|null|undefined} v0
79544
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
79545
+ * @instance
79546
+ */
79547
+ GetRecentAddressBalanceChangesResponse.prototype.v0 = null;
79548
+
79549
+ // OneOf field names bound to virtual getters and setters
79550
+ var $oneOfFields;
79551
+
79552
+ /**
79553
+ * GetRecentAddressBalanceChangesResponse version.
79554
+ * @member {"v0"|undefined} version
79555
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
79556
+ * @instance
79557
+ */
79558
+ Object.defineProperty(GetRecentAddressBalanceChangesResponse.prototype, "version", {
79559
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
79560
+ set: $util.oneOfSetter($oneOfFields)
79561
+ });
79562
+
79563
+ /**
79564
+ * Creates a new GetRecentAddressBalanceChangesResponse instance using the specified properties.
79565
+ * @function create
79566
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
79567
+ * @static
79568
+ * @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesResponse=} [properties] Properties to set
79569
+ * @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse} GetRecentAddressBalanceChangesResponse instance
79570
+ */
79571
+ GetRecentAddressBalanceChangesResponse.create = function create(properties) {
79572
+ return new GetRecentAddressBalanceChangesResponse(properties);
79573
+ };
79574
+
79575
+ /**
79576
+ * Encodes the specified GetRecentAddressBalanceChangesResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.verify|verify} messages.
79577
+ * @function encode
79578
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
79579
+ * @static
79580
+ * @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesResponse} message GetRecentAddressBalanceChangesResponse message or plain object to encode
79581
+ * @param {$protobuf.Writer} [writer] Writer to encode to
79582
+ * @returns {$protobuf.Writer} Writer
79583
+ */
79584
+ GetRecentAddressBalanceChangesResponse.encode = function encode(message, writer) {
79585
+ if (!writer)
79586
+ writer = $Writer.create();
79587
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
79588
+ $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
79589
+ return writer;
79590
+ };
79591
+
79592
+ /**
79593
+ * Encodes the specified GetRecentAddressBalanceChangesResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.verify|verify} messages.
79594
+ * @function encodeDelimited
79595
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
79596
+ * @static
79597
+ * @param {org.dash.platform.dapi.v0.IGetRecentAddressBalanceChangesResponse} message GetRecentAddressBalanceChangesResponse message or plain object to encode
79598
+ * @param {$protobuf.Writer} [writer] Writer to encode to
79599
+ * @returns {$protobuf.Writer} Writer
79600
+ */
79601
+ GetRecentAddressBalanceChangesResponse.encodeDelimited = function encodeDelimited(message, writer) {
79602
+ return this.encode(message, writer).ldelim();
79603
+ };
79604
+
79605
+ /**
79606
+ * Decodes a GetRecentAddressBalanceChangesResponse message from the specified reader or buffer.
79607
+ * @function decode
79608
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
79609
+ * @static
79610
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
79611
+ * @param {number} [length] Message length if known beforehand
79612
+ * @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse} GetRecentAddressBalanceChangesResponse
79613
+ * @throws {Error} If the payload is not a reader or valid buffer
79614
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
79615
+ */
79616
+ GetRecentAddressBalanceChangesResponse.decode = function decode(reader, length) {
79617
+ if (!(reader instanceof $Reader))
79618
+ reader = $Reader.create(reader);
79619
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse();
79620
+ while (reader.pos < end) {
79621
+ var tag = reader.uint32();
79622
+ switch (tag >>> 3) {
79623
+ case 1:
79624
+ message.v0 = $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.decode(reader, reader.uint32());
79625
+ break;
79626
+ default:
79627
+ reader.skipType(tag & 7);
79628
+ break;
79629
+ }
79630
+ }
79631
+ return message;
79632
+ };
79633
+
79634
+ /**
79635
+ * Decodes a GetRecentAddressBalanceChangesResponse message from the specified reader or buffer, length delimited.
79636
+ * @function decodeDelimited
79637
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
79638
+ * @static
79639
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
79640
+ * @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse} GetRecentAddressBalanceChangesResponse
79641
+ * @throws {Error} If the payload is not a reader or valid buffer
79642
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
79643
+ */
79644
+ GetRecentAddressBalanceChangesResponse.decodeDelimited = function decodeDelimited(reader) {
79645
+ if (!(reader instanceof $Reader))
79646
+ reader = new $Reader(reader);
79647
+ return this.decode(reader, reader.uint32());
79648
+ };
79649
+
79650
+ /**
79651
+ * Verifies a GetRecentAddressBalanceChangesResponse message.
79652
+ * @function verify
79653
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
79654
+ * @static
79655
+ * @param {Object.<string,*>} message Plain object to verify
79656
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
79657
+ */
79658
+ GetRecentAddressBalanceChangesResponse.verify = function verify(message) {
79659
+ if (typeof message !== "object" || message === null)
79660
+ return "object expected";
79661
+ var properties = {};
79662
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
79663
+ properties.version = 1;
79664
+ {
79665
+ var error = $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.verify(message.v0);
79666
+ if (error)
79667
+ return "v0." + error;
79668
+ }
79669
+ }
79670
+ return null;
79671
+ };
79672
+
79673
+ /**
79674
+ * Creates a GetRecentAddressBalanceChangesResponse message from a plain object. Also converts values to their respective internal types.
79675
+ * @function fromObject
79676
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
79677
+ * @static
79678
+ * @param {Object.<string,*>} object Plain object
79679
+ * @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse} GetRecentAddressBalanceChangesResponse
79680
+ */
79681
+ GetRecentAddressBalanceChangesResponse.fromObject = function fromObject(object) {
79682
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse)
79683
+ return object;
79684
+ var message = new $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse();
79685
+ if (object.v0 != null) {
79686
+ if (typeof object.v0 !== "object")
79687
+ throw TypeError(".org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.v0: object expected");
79688
+ message.v0 = $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.fromObject(object.v0);
79689
+ }
79690
+ return message;
79691
+ };
79692
+
79693
+ /**
79694
+ * Creates a plain object from a GetRecentAddressBalanceChangesResponse message. Also converts values to other types if specified.
79695
+ * @function toObject
79696
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
79697
+ * @static
79698
+ * @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse} message GetRecentAddressBalanceChangesResponse
79699
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
79700
+ * @returns {Object.<string,*>} Plain object
79701
+ */
79702
+ GetRecentAddressBalanceChangesResponse.toObject = function toObject(message, options) {
79703
+ if (!options)
79704
+ options = {};
79705
+ var object = {};
79706
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
79707
+ object.v0 = $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.toObject(message.v0, options);
79708
+ if (options.oneofs)
79709
+ object.version = "v0";
79710
+ }
79711
+ return object;
79712
+ };
79713
+
79714
+ /**
79715
+ * Converts this GetRecentAddressBalanceChangesResponse to JSON.
79716
+ * @function toJSON
79717
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
79718
+ * @instance
79719
+ * @returns {Object.<string,*>} JSON object
79720
+ */
79721
+ GetRecentAddressBalanceChangesResponse.prototype.toJSON = function toJSON() {
79722
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
79723
+ };
79724
+
79725
+ GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0 = (function() {
79726
+
79727
+ /**
79728
+ * Properties of a GetRecentAddressBalanceChangesResponseV0.
79729
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
79730
+ * @interface IGetRecentAddressBalanceChangesResponseV0
79731
+ * @property {org.dash.platform.dapi.v0.IAddressBalanceUpdateEntries|null} [addressBalanceUpdateEntries] GetRecentAddressBalanceChangesResponseV0 addressBalanceUpdateEntries
79732
+ * @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetRecentAddressBalanceChangesResponseV0 proof
79733
+ * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetRecentAddressBalanceChangesResponseV0 metadata
79734
+ */
79735
+
79736
+ /**
79737
+ * Constructs a new GetRecentAddressBalanceChangesResponseV0.
79738
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse
79739
+ * @classdesc Represents a GetRecentAddressBalanceChangesResponseV0.
79740
+ * @implements IGetRecentAddressBalanceChangesResponseV0
79741
+ * @constructor
79742
+ * @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.IGetRecentAddressBalanceChangesResponseV0=} [properties] Properties to set
79743
+ */
79744
+ function GetRecentAddressBalanceChangesResponseV0(properties) {
79745
+ if (properties)
79746
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
79747
+ if (properties[keys[i]] != null)
79748
+ this[keys[i]] = properties[keys[i]];
79749
+ }
79750
+
79751
+ /**
79752
+ * GetRecentAddressBalanceChangesResponseV0 addressBalanceUpdateEntries.
79753
+ * @member {org.dash.platform.dapi.v0.IAddressBalanceUpdateEntries|null|undefined} addressBalanceUpdateEntries
79754
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
79755
+ * @instance
79756
+ */
79757
+ GetRecentAddressBalanceChangesResponseV0.prototype.addressBalanceUpdateEntries = null;
79758
+
79759
+ /**
79760
+ * GetRecentAddressBalanceChangesResponseV0 proof.
79761
+ * @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
79762
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
79763
+ * @instance
79764
+ */
79765
+ GetRecentAddressBalanceChangesResponseV0.prototype.proof = null;
79766
+
79767
+ /**
79768
+ * GetRecentAddressBalanceChangesResponseV0 metadata.
79769
+ * @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
79770
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
79771
+ * @instance
79772
+ */
79773
+ GetRecentAddressBalanceChangesResponseV0.prototype.metadata = null;
79774
+
79775
+ // OneOf field names bound to virtual getters and setters
79776
+ var $oneOfFields;
79777
+
79778
+ /**
79779
+ * GetRecentAddressBalanceChangesResponseV0 result.
79780
+ * @member {"addressBalanceUpdateEntries"|"proof"|undefined} result
79781
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
79782
+ * @instance
79783
+ */
79784
+ Object.defineProperty(GetRecentAddressBalanceChangesResponseV0.prototype, "result", {
79785
+ get: $util.oneOfGetter($oneOfFields = ["addressBalanceUpdateEntries", "proof"]),
79786
+ set: $util.oneOfSetter($oneOfFields)
79787
+ });
79788
+
79789
+ /**
79790
+ * Creates a new GetRecentAddressBalanceChangesResponseV0 instance using the specified properties.
79791
+ * @function create
79792
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
79793
+ * @static
79794
+ * @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.IGetRecentAddressBalanceChangesResponseV0=} [properties] Properties to set
79795
+ * @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0} GetRecentAddressBalanceChangesResponseV0 instance
79796
+ */
79797
+ GetRecentAddressBalanceChangesResponseV0.create = function create(properties) {
79798
+ return new GetRecentAddressBalanceChangesResponseV0(properties);
79799
+ };
79800
+
79801
+ /**
79802
+ * Encodes the specified GetRecentAddressBalanceChangesResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.verify|verify} messages.
79803
+ * @function encode
79804
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
79805
+ * @static
79806
+ * @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.IGetRecentAddressBalanceChangesResponseV0} message GetRecentAddressBalanceChangesResponseV0 message or plain object to encode
79807
+ * @param {$protobuf.Writer} [writer] Writer to encode to
79808
+ * @returns {$protobuf.Writer} Writer
79809
+ */
79810
+ GetRecentAddressBalanceChangesResponseV0.encode = function encode(message, writer) {
79811
+ if (!writer)
79812
+ writer = $Writer.create();
79813
+ if (message.addressBalanceUpdateEntries != null && Object.hasOwnProperty.call(message, "addressBalanceUpdateEntries"))
79814
+ $root.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.encode(message.addressBalanceUpdateEntries, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
79815
+ if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
79816
+ $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
79817
+ if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
79818
+ $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
79819
+ return writer;
79820
+ };
79821
+
79822
+ /**
79823
+ * Encodes the specified GetRecentAddressBalanceChangesResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.verify|verify} messages.
79824
+ * @function encodeDelimited
79825
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
79826
+ * @static
79827
+ * @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.IGetRecentAddressBalanceChangesResponseV0} message GetRecentAddressBalanceChangesResponseV0 message or plain object to encode
79828
+ * @param {$protobuf.Writer} [writer] Writer to encode to
79829
+ * @returns {$protobuf.Writer} Writer
79830
+ */
79831
+ GetRecentAddressBalanceChangesResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
79832
+ return this.encode(message, writer).ldelim();
79833
+ };
79834
+
79835
+ /**
79836
+ * Decodes a GetRecentAddressBalanceChangesResponseV0 message from the specified reader or buffer.
79837
+ * @function decode
79838
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
79839
+ * @static
79840
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
79841
+ * @param {number} [length] Message length if known beforehand
79842
+ * @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0} GetRecentAddressBalanceChangesResponseV0
79843
+ * @throws {Error} If the payload is not a reader or valid buffer
79844
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
79845
+ */
79846
+ GetRecentAddressBalanceChangesResponseV0.decode = function decode(reader, length) {
79847
+ if (!(reader instanceof $Reader))
79848
+ reader = $Reader.create(reader);
79849
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0();
79850
+ while (reader.pos < end) {
79851
+ var tag = reader.uint32();
79852
+ switch (tag >>> 3) {
79853
+ case 1:
79854
+ message.addressBalanceUpdateEntries = $root.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.decode(reader, reader.uint32());
79855
+ break;
79856
+ case 2:
79857
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
79858
+ break;
79859
+ case 3:
79860
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
79861
+ break;
79862
+ default:
79863
+ reader.skipType(tag & 7);
79864
+ break;
79865
+ }
79866
+ }
79867
+ return message;
79868
+ };
79869
+
79870
+ /**
79871
+ * Decodes a GetRecentAddressBalanceChangesResponseV0 message from the specified reader or buffer, length delimited.
79872
+ * @function decodeDelimited
79873
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
79874
+ * @static
79875
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
79876
+ * @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0} GetRecentAddressBalanceChangesResponseV0
79877
+ * @throws {Error} If the payload is not a reader or valid buffer
79878
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
79879
+ */
79880
+ GetRecentAddressBalanceChangesResponseV0.decodeDelimited = function decodeDelimited(reader) {
79881
+ if (!(reader instanceof $Reader))
79882
+ reader = new $Reader(reader);
79883
+ return this.decode(reader, reader.uint32());
79884
+ };
79885
+
79886
+ /**
79887
+ * Verifies a GetRecentAddressBalanceChangesResponseV0 message.
79888
+ * @function verify
79889
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
79890
+ * @static
79891
+ * @param {Object.<string,*>} message Plain object to verify
79892
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
79893
+ */
79894
+ GetRecentAddressBalanceChangesResponseV0.verify = function verify(message) {
79895
+ if (typeof message !== "object" || message === null)
79896
+ return "object expected";
79897
+ var properties = {};
79898
+ if (message.addressBalanceUpdateEntries != null && message.hasOwnProperty("addressBalanceUpdateEntries")) {
79899
+ properties.result = 1;
79900
+ {
79901
+ var error = $root.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.verify(message.addressBalanceUpdateEntries);
79902
+ if (error)
79903
+ return "addressBalanceUpdateEntries." + error;
79904
+ }
79905
+ }
79906
+ if (message.proof != null && message.hasOwnProperty("proof")) {
79907
+ if (properties.result === 1)
79908
+ return "result: multiple values";
79909
+ properties.result = 1;
79910
+ {
79911
+ var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
79912
+ if (error)
79913
+ return "proof." + error;
79914
+ }
79915
+ }
79916
+ if (message.metadata != null && message.hasOwnProperty("metadata")) {
79917
+ var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
79918
+ if (error)
79919
+ return "metadata." + error;
79920
+ }
79921
+ return null;
79922
+ };
79923
+
79924
+ /**
79925
+ * Creates a GetRecentAddressBalanceChangesResponseV0 message from a plain object. Also converts values to their respective internal types.
79926
+ * @function fromObject
79927
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
79928
+ * @static
79929
+ * @param {Object.<string,*>} object Plain object
79930
+ * @returns {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0} GetRecentAddressBalanceChangesResponseV0
79931
+ */
79932
+ GetRecentAddressBalanceChangesResponseV0.fromObject = function fromObject(object) {
79933
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0)
79934
+ return object;
79935
+ var message = new $root.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0();
79936
+ if (object.addressBalanceUpdateEntries != null) {
79937
+ if (typeof object.addressBalanceUpdateEntries !== "object")
79938
+ throw TypeError(".org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.addressBalanceUpdateEntries: object expected");
79939
+ message.addressBalanceUpdateEntries = $root.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.fromObject(object.addressBalanceUpdateEntries);
79940
+ }
79941
+ if (object.proof != null) {
79942
+ if (typeof object.proof !== "object")
79943
+ throw TypeError(".org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.proof: object expected");
79944
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
79945
+ }
79946
+ if (object.metadata != null) {
79947
+ if (typeof object.metadata !== "object")
79948
+ throw TypeError(".org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.metadata: object expected");
79949
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
79950
+ }
79951
+ return message;
79952
+ };
79953
+
79954
+ /**
79955
+ * Creates a plain object from a GetRecentAddressBalanceChangesResponseV0 message. Also converts values to other types if specified.
79956
+ * @function toObject
79957
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
79958
+ * @static
79959
+ * @param {org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0} message GetRecentAddressBalanceChangesResponseV0
79960
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
79961
+ * @returns {Object.<string,*>} Plain object
79962
+ */
79963
+ GetRecentAddressBalanceChangesResponseV0.toObject = function toObject(message, options) {
79964
+ if (!options)
79965
+ options = {};
79966
+ var object = {};
79967
+ if (options.defaults)
79968
+ object.metadata = null;
79969
+ if (message.addressBalanceUpdateEntries != null && message.hasOwnProperty("addressBalanceUpdateEntries")) {
79970
+ object.addressBalanceUpdateEntries = $root.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries.toObject(message.addressBalanceUpdateEntries, options);
79971
+ if (options.oneofs)
79972
+ object.result = "addressBalanceUpdateEntries";
79973
+ }
79974
+ if (message.proof != null && message.hasOwnProperty("proof")) {
79975
+ object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
79976
+ if (options.oneofs)
79977
+ object.result = "proof";
79978
+ }
79979
+ if (message.metadata != null && message.hasOwnProperty("metadata"))
79980
+ object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
79981
+ return object;
79982
+ };
79983
+
79984
+ /**
79985
+ * Converts this GetRecentAddressBalanceChangesResponseV0 to JSON.
79986
+ * @function toJSON
79987
+ * @memberof org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0
79988
+ * @instance
79989
+ * @returns {Object.<string,*>} JSON object
79990
+ */
79991
+ GetRecentAddressBalanceChangesResponseV0.prototype.toJSON = function toJSON() {
79992
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
79993
+ };
79994
+
79995
+ return GetRecentAddressBalanceChangesResponseV0;
79996
+ })();
79997
+
79998
+ return GetRecentAddressBalanceChangesResponse;
79999
+ })();
80000
+
80001
+ v0.CompactedBlockAddressBalanceChanges = (function() {
80002
+
80003
+ /**
80004
+ * Properties of a CompactedBlockAddressBalanceChanges.
80005
+ * @memberof org.dash.platform.dapi.v0
80006
+ * @interface ICompactedBlockAddressBalanceChanges
80007
+ * @property {number|Long|null} [startBlockHeight] CompactedBlockAddressBalanceChanges startBlockHeight
80008
+ * @property {number|Long|null} [endBlockHeight] CompactedBlockAddressBalanceChanges endBlockHeight
80009
+ * @property {Array.<org.dash.platform.dapi.v0.IAddressBalanceChange>|null} [changes] CompactedBlockAddressBalanceChanges changes
80010
+ */
80011
+
80012
+ /**
80013
+ * Constructs a new CompactedBlockAddressBalanceChanges.
80014
+ * @memberof org.dash.platform.dapi.v0
80015
+ * @classdesc Represents a CompactedBlockAddressBalanceChanges.
80016
+ * @implements ICompactedBlockAddressBalanceChanges
80017
+ * @constructor
80018
+ * @param {org.dash.platform.dapi.v0.ICompactedBlockAddressBalanceChanges=} [properties] Properties to set
80019
+ */
80020
+ function CompactedBlockAddressBalanceChanges(properties) {
80021
+ this.changes = [];
80022
+ if (properties)
80023
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
80024
+ if (properties[keys[i]] != null)
80025
+ this[keys[i]] = properties[keys[i]];
80026
+ }
80027
+
80028
+ /**
80029
+ * CompactedBlockAddressBalanceChanges startBlockHeight.
80030
+ * @member {number|Long} startBlockHeight
80031
+ * @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
80032
+ * @instance
80033
+ */
80034
+ CompactedBlockAddressBalanceChanges.prototype.startBlockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
80035
+
80036
+ /**
80037
+ * CompactedBlockAddressBalanceChanges endBlockHeight.
80038
+ * @member {number|Long} endBlockHeight
80039
+ * @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
80040
+ * @instance
80041
+ */
80042
+ CompactedBlockAddressBalanceChanges.prototype.endBlockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
80043
+
80044
+ /**
80045
+ * CompactedBlockAddressBalanceChanges changes.
80046
+ * @member {Array.<org.dash.platform.dapi.v0.IAddressBalanceChange>} changes
80047
+ * @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
80048
+ * @instance
80049
+ */
80050
+ CompactedBlockAddressBalanceChanges.prototype.changes = $util.emptyArray;
80051
+
80052
+ /**
80053
+ * Creates a new CompactedBlockAddressBalanceChanges instance using the specified properties.
80054
+ * @function create
80055
+ * @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
80056
+ * @static
80057
+ * @param {org.dash.platform.dapi.v0.ICompactedBlockAddressBalanceChanges=} [properties] Properties to set
80058
+ * @returns {org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges} CompactedBlockAddressBalanceChanges instance
80059
+ */
80060
+ CompactedBlockAddressBalanceChanges.create = function create(properties) {
80061
+ return new CompactedBlockAddressBalanceChanges(properties);
80062
+ };
80063
+
80064
+ /**
80065
+ * Encodes the specified CompactedBlockAddressBalanceChanges message. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.verify|verify} messages.
80066
+ * @function encode
80067
+ * @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
80068
+ * @static
80069
+ * @param {org.dash.platform.dapi.v0.ICompactedBlockAddressBalanceChanges} message CompactedBlockAddressBalanceChanges message or plain object to encode
80070
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80071
+ * @returns {$protobuf.Writer} Writer
80072
+ */
80073
+ CompactedBlockAddressBalanceChanges.encode = function encode(message, writer) {
80074
+ if (!writer)
80075
+ writer = $Writer.create();
80076
+ if (message.startBlockHeight != null && Object.hasOwnProperty.call(message, "startBlockHeight"))
80077
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startBlockHeight);
80078
+ if (message.endBlockHeight != null && Object.hasOwnProperty.call(message, "endBlockHeight"))
80079
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endBlockHeight);
80080
+ if (message.changes != null && message.changes.length)
80081
+ for (var i = 0; i < message.changes.length; ++i)
80082
+ $root.org.dash.platform.dapi.v0.AddressBalanceChange.encode(message.changes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
80083
+ return writer;
80084
+ };
80085
+
80086
+ /**
80087
+ * Encodes the specified CompactedBlockAddressBalanceChanges message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.verify|verify} messages.
80088
+ * @function encodeDelimited
80089
+ * @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
80090
+ * @static
80091
+ * @param {org.dash.platform.dapi.v0.ICompactedBlockAddressBalanceChanges} message CompactedBlockAddressBalanceChanges message or plain object to encode
80092
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80093
+ * @returns {$protobuf.Writer} Writer
80094
+ */
80095
+ CompactedBlockAddressBalanceChanges.encodeDelimited = function encodeDelimited(message, writer) {
80096
+ return this.encode(message, writer).ldelim();
80097
+ };
80098
+
80099
+ /**
80100
+ * Decodes a CompactedBlockAddressBalanceChanges message from the specified reader or buffer.
80101
+ * @function decode
80102
+ * @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
80103
+ * @static
80104
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80105
+ * @param {number} [length] Message length if known beforehand
80106
+ * @returns {org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges} CompactedBlockAddressBalanceChanges
80107
+ * @throws {Error} If the payload is not a reader or valid buffer
80108
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80109
+ */
80110
+ CompactedBlockAddressBalanceChanges.decode = function decode(reader, length) {
80111
+ if (!(reader instanceof $Reader))
80112
+ reader = $Reader.create(reader);
80113
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges();
80114
+ while (reader.pos < end) {
80115
+ var tag = reader.uint32();
80116
+ switch (tag >>> 3) {
80117
+ case 1:
80118
+ message.startBlockHeight = reader.uint64();
80119
+ break;
80120
+ case 2:
80121
+ message.endBlockHeight = reader.uint64();
80122
+ break;
80123
+ case 3:
80124
+ if (!(message.changes && message.changes.length))
80125
+ message.changes = [];
80126
+ message.changes.push($root.org.dash.platform.dapi.v0.AddressBalanceChange.decode(reader, reader.uint32()));
80127
+ break;
80128
+ default:
80129
+ reader.skipType(tag & 7);
80130
+ break;
80131
+ }
80132
+ }
80133
+ return message;
80134
+ };
80135
+
80136
+ /**
80137
+ * Decodes a CompactedBlockAddressBalanceChanges message from the specified reader or buffer, length delimited.
80138
+ * @function decodeDelimited
80139
+ * @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
80140
+ * @static
80141
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80142
+ * @returns {org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges} CompactedBlockAddressBalanceChanges
80143
+ * @throws {Error} If the payload is not a reader or valid buffer
80144
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80145
+ */
80146
+ CompactedBlockAddressBalanceChanges.decodeDelimited = function decodeDelimited(reader) {
80147
+ if (!(reader instanceof $Reader))
80148
+ reader = new $Reader(reader);
80149
+ return this.decode(reader, reader.uint32());
80150
+ };
80151
+
80152
+ /**
80153
+ * Verifies a CompactedBlockAddressBalanceChanges message.
80154
+ * @function verify
80155
+ * @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
80156
+ * @static
80157
+ * @param {Object.<string,*>} message Plain object to verify
80158
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
80159
+ */
80160
+ CompactedBlockAddressBalanceChanges.verify = function verify(message) {
80161
+ if (typeof message !== "object" || message === null)
80162
+ return "object expected";
80163
+ if (message.startBlockHeight != null && message.hasOwnProperty("startBlockHeight"))
80164
+ if (!$util.isInteger(message.startBlockHeight) && !(message.startBlockHeight && $util.isInteger(message.startBlockHeight.low) && $util.isInteger(message.startBlockHeight.high)))
80165
+ return "startBlockHeight: integer|Long expected";
80166
+ if (message.endBlockHeight != null && message.hasOwnProperty("endBlockHeight"))
80167
+ if (!$util.isInteger(message.endBlockHeight) && !(message.endBlockHeight && $util.isInteger(message.endBlockHeight.low) && $util.isInteger(message.endBlockHeight.high)))
80168
+ return "endBlockHeight: integer|Long expected";
80169
+ if (message.changes != null && message.hasOwnProperty("changes")) {
80170
+ if (!Array.isArray(message.changes))
80171
+ return "changes: array expected";
80172
+ for (var i = 0; i < message.changes.length; ++i) {
80173
+ var error = $root.org.dash.platform.dapi.v0.AddressBalanceChange.verify(message.changes[i]);
80174
+ if (error)
80175
+ return "changes." + error;
80176
+ }
80177
+ }
80178
+ return null;
80179
+ };
80180
+
80181
+ /**
80182
+ * Creates a CompactedBlockAddressBalanceChanges message from a plain object. Also converts values to their respective internal types.
80183
+ * @function fromObject
80184
+ * @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
80185
+ * @static
80186
+ * @param {Object.<string,*>} object Plain object
80187
+ * @returns {org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges} CompactedBlockAddressBalanceChanges
80188
+ */
80189
+ CompactedBlockAddressBalanceChanges.fromObject = function fromObject(object) {
80190
+ if (object instanceof $root.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges)
80191
+ return object;
80192
+ var message = new $root.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges();
80193
+ if (object.startBlockHeight != null)
80194
+ if ($util.Long)
80195
+ (message.startBlockHeight = $util.Long.fromValue(object.startBlockHeight)).unsigned = true;
80196
+ else if (typeof object.startBlockHeight === "string")
80197
+ message.startBlockHeight = parseInt(object.startBlockHeight, 10);
80198
+ else if (typeof object.startBlockHeight === "number")
80199
+ message.startBlockHeight = object.startBlockHeight;
80200
+ else if (typeof object.startBlockHeight === "object")
80201
+ message.startBlockHeight = new $util.LongBits(object.startBlockHeight.low >>> 0, object.startBlockHeight.high >>> 0).toNumber(true);
80202
+ if (object.endBlockHeight != null)
80203
+ if ($util.Long)
80204
+ (message.endBlockHeight = $util.Long.fromValue(object.endBlockHeight)).unsigned = true;
80205
+ else if (typeof object.endBlockHeight === "string")
80206
+ message.endBlockHeight = parseInt(object.endBlockHeight, 10);
80207
+ else if (typeof object.endBlockHeight === "number")
80208
+ message.endBlockHeight = object.endBlockHeight;
80209
+ else if (typeof object.endBlockHeight === "object")
80210
+ message.endBlockHeight = new $util.LongBits(object.endBlockHeight.low >>> 0, object.endBlockHeight.high >>> 0).toNumber(true);
80211
+ if (object.changes) {
80212
+ if (!Array.isArray(object.changes))
80213
+ throw TypeError(".org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.changes: array expected");
80214
+ message.changes = [];
80215
+ for (var i = 0; i < object.changes.length; ++i) {
80216
+ if (typeof object.changes[i] !== "object")
80217
+ throw TypeError(".org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.changes: object expected");
80218
+ message.changes[i] = $root.org.dash.platform.dapi.v0.AddressBalanceChange.fromObject(object.changes[i]);
80219
+ }
80220
+ }
80221
+ return message;
80222
+ };
80223
+
80224
+ /**
80225
+ * Creates a plain object from a CompactedBlockAddressBalanceChanges message. Also converts values to other types if specified.
80226
+ * @function toObject
80227
+ * @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
80228
+ * @static
80229
+ * @param {org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges} message CompactedBlockAddressBalanceChanges
80230
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
80231
+ * @returns {Object.<string,*>} Plain object
80232
+ */
80233
+ CompactedBlockAddressBalanceChanges.toObject = function toObject(message, options) {
80234
+ if (!options)
80235
+ options = {};
80236
+ var object = {};
80237
+ if (options.arrays || options.defaults)
80238
+ object.changes = [];
80239
+ if (options.defaults) {
80240
+ if ($util.Long) {
80241
+ var long = new $util.Long(0, 0, true);
80242
+ object.startBlockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
80243
+ } else
80244
+ object.startBlockHeight = options.longs === String ? "0" : 0;
80245
+ if ($util.Long) {
80246
+ var long = new $util.Long(0, 0, true);
80247
+ object.endBlockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
80248
+ } else
80249
+ object.endBlockHeight = options.longs === String ? "0" : 0;
80250
+ }
80251
+ if (message.startBlockHeight != null && message.hasOwnProperty("startBlockHeight"))
80252
+ if (typeof message.startBlockHeight === "number")
80253
+ object.startBlockHeight = options.longs === String ? String(message.startBlockHeight) : message.startBlockHeight;
80254
+ else
80255
+ object.startBlockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.startBlockHeight) : options.longs === Number ? new $util.LongBits(message.startBlockHeight.low >>> 0, message.startBlockHeight.high >>> 0).toNumber(true) : message.startBlockHeight;
80256
+ if (message.endBlockHeight != null && message.hasOwnProperty("endBlockHeight"))
80257
+ if (typeof message.endBlockHeight === "number")
80258
+ object.endBlockHeight = options.longs === String ? String(message.endBlockHeight) : message.endBlockHeight;
80259
+ else
80260
+ object.endBlockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.endBlockHeight) : options.longs === Number ? new $util.LongBits(message.endBlockHeight.low >>> 0, message.endBlockHeight.high >>> 0).toNumber(true) : message.endBlockHeight;
80261
+ if (message.changes && message.changes.length) {
80262
+ object.changes = [];
80263
+ for (var j = 0; j < message.changes.length; ++j)
80264
+ object.changes[j] = $root.org.dash.platform.dapi.v0.AddressBalanceChange.toObject(message.changes[j], options);
80265
+ }
80266
+ return object;
80267
+ };
80268
+
80269
+ /**
80270
+ * Converts this CompactedBlockAddressBalanceChanges to JSON.
80271
+ * @function toJSON
80272
+ * @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
80273
+ * @instance
80274
+ * @returns {Object.<string,*>} JSON object
80275
+ */
80276
+ CompactedBlockAddressBalanceChanges.prototype.toJSON = function toJSON() {
80277
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
80278
+ };
80279
+
80280
+ return CompactedBlockAddressBalanceChanges;
80281
+ })();
80282
+
80283
+ v0.CompactedAddressBalanceUpdateEntries = (function() {
80284
+
80285
+ /**
80286
+ * Properties of a CompactedAddressBalanceUpdateEntries.
80287
+ * @memberof org.dash.platform.dapi.v0
80288
+ * @interface ICompactedAddressBalanceUpdateEntries
80289
+ * @property {Array.<org.dash.platform.dapi.v0.ICompactedBlockAddressBalanceChanges>|null} [compactedBlockChanges] CompactedAddressBalanceUpdateEntries compactedBlockChanges
80290
+ */
80291
+
80292
+ /**
80293
+ * Constructs a new CompactedAddressBalanceUpdateEntries.
80294
+ * @memberof org.dash.platform.dapi.v0
80295
+ * @classdesc Represents a CompactedAddressBalanceUpdateEntries.
80296
+ * @implements ICompactedAddressBalanceUpdateEntries
80297
+ * @constructor
80298
+ * @param {org.dash.platform.dapi.v0.ICompactedAddressBalanceUpdateEntries=} [properties] Properties to set
80299
+ */
80300
+ function CompactedAddressBalanceUpdateEntries(properties) {
80301
+ this.compactedBlockChanges = [];
80302
+ if (properties)
80303
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
80304
+ if (properties[keys[i]] != null)
80305
+ this[keys[i]] = properties[keys[i]];
80306
+ }
80307
+
80308
+ /**
80309
+ * CompactedAddressBalanceUpdateEntries compactedBlockChanges.
80310
+ * @member {Array.<org.dash.platform.dapi.v0.ICompactedBlockAddressBalanceChanges>} compactedBlockChanges
80311
+ * @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
80312
+ * @instance
80313
+ */
80314
+ CompactedAddressBalanceUpdateEntries.prototype.compactedBlockChanges = $util.emptyArray;
80315
+
80316
+ /**
80317
+ * Creates a new CompactedAddressBalanceUpdateEntries instance using the specified properties.
80318
+ * @function create
80319
+ * @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
80320
+ * @static
80321
+ * @param {org.dash.platform.dapi.v0.ICompactedAddressBalanceUpdateEntries=} [properties] Properties to set
80322
+ * @returns {org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries} CompactedAddressBalanceUpdateEntries instance
80323
+ */
80324
+ CompactedAddressBalanceUpdateEntries.create = function create(properties) {
80325
+ return new CompactedAddressBalanceUpdateEntries(properties);
80326
+ };
80327
+
80328
+ /**
80329
+ * Encodes the specified CompactedAddressBalanceUpdateEntries message. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.verify|verify} messages.
80330
+ * @function encode
80331
+ * @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
80332
+ * @static
80333
+ * @param {org.dash.platform.dapi.v0.ICompactedAddressBalanceUpdateEntries} message CompactedAddressBalanceUpdateEntries message or plain object to encode
80334
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80335
+ * @returns {$protobuf.Writer} Writer
80336
+ */
80337
+ CompactedAddressBalanceUpdateEntries.encode = function encode(message, writer) {
80338
+ if (!writer)
80339
+ writer = $Writer.create();
80340
+ if (message.compactedBlockChanges != null && message.compactedBlockChanges.length)
80341
+ for (var i = 0; i < message.compactedBlockChanges.length; ++i)
80342
+ $root.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.encode(message.compactedBlockChanges[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
80343
+ return writer;
80344
+ };
80345
+
80346
+ /**
80347
+ * Encodes the specified CompactedAddressBalanceUpdateEntries message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.verify|verify} messages.
80348
+ * @function encodeDelimited
80349
+ * @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
80350
+ * @static
80351
+ * @param {org.dash.platform.dapi.v0.ICompactedAddressBalanceUpdateEntries} message CompactedAddressBalanceUpdateEntries message or plain object to encode
80352
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80353
+ * @returns {$protobuf.Writer} Writer
80354
+ */
80355
+ CompactedAddressBalanceUpdateEntries.encodeDelimited = function encodeDelimited(message, writer) {
80356
+ return this.encode(message, writer).ldelim();
80357
+ };
80358
+
80359
+ /**
80360
+ * Decodes a CompactedAddressBalanceUpdateEntries message from the specified reader or buffer.
80361
+ * @function decode
80362
+ * @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
80363
+ * @static
80364
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80365
+ * @param {number} [length] Message length if known beforehand
80366
+ * @returns {org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries} CompactedAddressBalanceUpdateEntries
80367
+ * @throws {Error} If the payload is not a reader or valid buffer
80368
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80369
+ */
80370
+ CompactedAddressBalanceUpdateEntries.decode = function decode(reader, length) {
80371
+ if (!(reader instanceof $Reader))
80372
+ reader = $Reader.create(reader);
80373
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries();
80374
+ while (reader.pos < end) {
80375
+ var tag = reader.uint32();
80376
+ switch (tag >>> 3) {
80377
+ case 1:
80378
+ if (!(message.compactedBlockChanges && message.compactedBlockChanges.length))
80379
+ message.compactedBlockChanges = [];
80380
+ message.compactedBlockChanges.push($root.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.decode(reader, reader.uint32()));
80381
+ break;
80382
+ default:
80383
+ reader.skipType(tag & 7);
80384
+ break;
80385
+ }
80386
+ }
80387
+ return message;
80388
+ };
80389
+
80390
+ /**
80391
+ * Decodes a CompactedAddressBalanceUpdateEntries message from the specified reader or buffer, length delimited.
80392
+ * @function decodeDelimited
80393
+ * @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
80394
+ * @static
80395
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80396
+ * @returns {org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries} CompactedAddressBalanceUpdateEntries
80397
+ * @throws {Error} If the payload is not a reader or valid buffer
80398
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80399
+ */
80400
+ CompactedAddressBalanceUpdateEntries.decodeDelimited = function decodeDelimited(reader) {
80401
+ if (!(reader instanceof $Reader))
80402
+ reader = new $Reader(reader);
80403
+ return this.decode(reader, reader.uint32());
80404
+ };
80405
+
80406
+ /**
80407
+ * Verifies a CompactedAddressBalanceUpdateEntries message.
80408
+ * @function verify
80409
+ * @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
80410
+ * @static
80411
+ * @param {Object.<string,*>} message Plain object to verify
80412
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
80413
+ */
80414
+ CompactedAddressBalanceUpdateEntries.verify = function verify(message) {
80415
+ if (typeof message !== "object" || message === null)
80416
+ return "object expected";
80417
+ if (message.compactedBlockChanges != null && message.hasOwnProperty("compactedBlockChanges")) {
80418
+ if (!Array.isArray(message.compactedBlockChanges))
80419
+ return "compactedBlockChanges: array expected";
80420
+ for (var i = 0; i < message.compactedBlockChanges.length; ++i) {
80421
+ var error = $root.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.verify(message.compactedBlockChanges[i]);
80422
+ if (error)
80423
+ return "compactedBlockChanges." + error;
80424
+ }
80425
+ }
80426
+ return null;
80427
+ };
80428
+
80429
+ /**
80430
+ * Creates a CompactedAddressBalanceUpdateEntries message from a plain object. Also converts values to their respective internal types.
80431
+ * @function fromObject
80432
+ * @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
80433
+ * @static
80434
+ * @param {Object.<string,*>} object Plain object
80435
+ * @returns {org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries} CompactedAddressBalanceUpdateEntries
80436
+ */
80437
+ CompactedAddressBalanceUpdateEntries.fromObject = function fromObject(object) {
80438
+ if (object instanceof $root.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries)
80439
+ return object;
80440
+ var message = new $root.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries();
80441
+ if (object.compactedBlockChanges) {
80442
+ if (!Array.isArray(object.compactedBlockChanges))
80443
+ throw TypeError(".org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.compactedBlockChanges: array expected");
80444
+ message.compactedBlockChanges = [];
80445
+ for (var i = 0; i < object.compactedBlockChanges.length; ++i) {
80446
+ if (typeof object.compactedBlockChanges[i] !== "object")
80447
+ throw TypeError(".org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.compactedBlockChanges: object expected");
80448
+ message.compactedBlockChanges[i] = $root.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.fromObject(object.compactedBlockChanges[i]);
80449
+ }
80450
+ }
80451
+ return message;
80452
+ };
80453
+
80454
+ /**
80455
+ * Creates a plain object from a CompactedAddressBalanceUpdateEntries message. Also converts values to other types if specified.
80456
+ * @function toObject
80457
+ * @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
80458
+ * @static
80459
+ * @param {org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries} message CompactedAddressBalanceUpdateEntries
80460
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
80461
+ * @returns {Object.<string,*>} Plain object
80462
+ */
80463
+ CompactedAddressBalanceUpdateEntries.toObject = function toObject(message, options) {
80464
+ if (!options)
80465
+ options = {};
80466
+ var object = {};
80467
+ if (options.arrays || options.defaults)
80468
+ object.compactedBlockChanges = [];
80469
+ if (message.compactedBlockChanges && message.compactedBlockChanges.length) {
80470
+ object.compactedBlockChanges = [];
80471
+ for (var j = 0; j < message.compactedBlockChanges.length; ++j)
80472
+ object.compactedBlockChanges[j] = $root.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.toObject(message.compactedBlockChanges[j], options);
80473
+ }
80474
+ return object;
80475
+ };
80476
+
80477
+ /**
80478
+ * Converts this CompactedAddressBalanceUpdateEntries to JSON.
80479
+ * @function toJSON
80480
+ * @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries
80481
+ * @instance
80482
+ * @returns {Object.<string,*>} JSON object
80483
+ */
80484
+ CompactedAddressBalanceUpdateEntries.prototype.toJSON = function toJSON() {
80485
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
80486
+ };
80487
+
80488
+ return CompactedAddressBalanceUpdateEntries;
80489
+ })();
80490
+
80491
+ v0.GetRecentCompactedAddressBalanceChangesRequest = (function() {
80492
+
80493
+ /**
80494
+ * Properties of a GetRecentCompactedAddressBalanceChangesRequest.
80495
+ * @memberof org.dash.platform.dapi.v0
80496
+ * @interface IGetRecentCompactedAddressBalanceChangesRequest
80497
+ * @property {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.IGetRecentCompactedAddressBalanceChangesRequestV0|null} [v0] GetRecentCompactedAddressBalanceChangesRequest v0
80498
+ */
80499
+
80500
+ /**
80501
+ * Constructs a new GetRecentCompactedAddressBalanceChangesRequest.
80502
+ * @memberof org.dash.platform.dapi.v0
80503
+ * @classdesc Represents a GetRecentCompactedAddressBalanceChangesRequest.
80504
+ * @implements IGetRecentCompactedAddressBalanceChangesRequest
80505
+ * @constructor
80506
+ * @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesRequest=} [properties] Properties to set
80507
+ */
80508
+ function GetRecentCompactedAddressBalanceChangesRequest(properties) {
80509
+ if (properties)
80510
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
80511
+ if (properties[keys[i]] != null)
80512
+ this[keys[i]] = properties[keys[i]];
80513
+ }
80514
+
80515
+ /**
80516
+ * GetRecentCompactedAddressBalanceChangesRequest v0.
80517
+ * @member {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.IGetRecentCompactedAddressBalanceChangesRequestV0|null|undefined} v0
80518
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
80519
+ * @instance
80520
+ */
80521
+ GetRecentCompactedAddressBalanceChangesRequest.prototype.v0 = null;
80522
+
80523
+ // OneOf field names bound to virtual getters and setters
80524
+ var $oneOfFields;
80525
+
80526
+ /**
80527
+ * GetRecentCompactedAddressBalanceChangesRequest version.
80528
+ * @member {"v0"|undefined} version
80529
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
80530
+ * @instance
80531
+ */
80532
+ Object.defineProperty(GetRecentCompactedAddressBalanceChangesRequest.prototype, "version", {
80533
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
80534
+ set: $util.oneOfSetter($oneOfFields)
80535
+ });
80536
+
80537
+ /**
80538
+ * Creates a new GetRecentCompactedAddressBalanceChangesRequest instance using the specified properties.
80539
+ * @function create
80540
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
80541
+ * @static
80542
+ * @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesRequest=} [properties] Properties to set
80543
+ * @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest} GetRecentCompactedAddressBalanceChangesRequest instance
80544
+ */
80545
+ GetRecentCompactedAddressBalanceChangesRequest.create = function create(properties) {
80546
+ return new GetRecentCompactedAddressBalanceChangesRequest(properties);
80547
+ };
80548
+
80549
+ /**
80550
+ * Encodes the specified GetRecentCompactedAddressBalanceChangesRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.verify|verify} messages.
80551
+ * @function encode
80552
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
80553
+ * @static
80554
+ * @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesRequest} message GetRecentCompactedAddressBalanceChangesRequest message or plain object to encode
80555
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80556
+ * @returns {$protobuf.Writer} Writer
80557
+ */
80558
+ GetRecentCompactedAddressBalanceChangesRequest.encode = function encode(message, writer) {
80559
+ if (!writer)
80560
+ writer = $Writer.create();
80561
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
80562
+ $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
80563
+ return writer;
80564
+ };
80565
+
80566
+ /**
80567
+ * Encodes the specified GetRecentCompactedAddressBalanceChangesRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.verify|verify} messages.
80568
+ * @function encodeDelimited
80569
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
80570
+ * @static
80571
+ * @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesRequest} message GetRecentCompactedAddressBalanceChangesRequest message or plain object to encode
80572
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80573
+ * @returns {$protobuf.Writer} Writer
80574
+ */
80575
+ GetRecentCompactedAddressBalanceChangesRequest.encodeDelimited = function encodeDelimited(message, writer) {
80576
+ return this.encode(message, writer).ldelim();
80577
+ };
80578
+
80579
+ /**
80580
+ * Decodes a GetRecentCompactedAddressBalanceChangesRequest message from the specified reader or buffer.
80581
+ * @function decode
80582
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
80583
+ * @static
80584
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80585
+ * @param {number} [length] Message length if known beforehand
80586
+ * @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest} GetRecentCompactedAddressBalanceChangesRequest
80587
+ * @throws {Error} If the payload is not a reader or valid buffer
80588
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80589
+ */
80590
+ GetRecentCompactedAddressBalanceChangesRequest.decode = function decode(reader, length) {
80591
+ if (!(reader instanceof $Reader))
80592
+ reader = $Reader.create(reader);
80593
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest();
80594
+ while (reader.pos < end) {
80595
+ var tag = reader.uint32();
80596
+ switch (tag >>> 3) {
80597
+ case 1:
80598
+ message.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0.decode(reader, reader.uint32());
80599
+ break;
80600
+ default:
80601
+ reader.skipType(tag & 7);
80602
+ break;
80603
+ }
80604
+ }
80605
+ return message;
80606
+ };
80607
+
80608
+ /**
80609
+ * Decodes a GetRecentCompactedAddressBalanceChangesRequest message from the specified reader or buffer, length delimited.
80610
+ * @function decodeDelimited
80611
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
80612
+ * @static
80613
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80614
+ * @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest} GetRecentCompactedAddressBalanceChangesRequest
80615
+ * @throws {Error} If the payload is not a reader or valid buffer
80616
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80617
+ */
80618
+ GetRecentCompactedAddressBalanceChangesRequest.decodeDelimited = function decodeDelimited(reader) {
80619
+ if (!(reader instanceof $Reader))
80620
+ reader = new $Reader(reader);
80621
+ return this.decode(reader, reader.uint32());
80622
+ };
80623
+
80624
+ /**
80625
+ * Verifies a GetRecentCompactedAddressBalanceChangesRequest message.
80626
+ * @function verify
80627
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
80628
+ * @static
80629
+ * @param {Object.<string,*>} message Plain object to verify
80630
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
80631
+ */
80632
+ GetRecentCompactedAddressBalanceChangesRequest.verify = function verify(message) {
80633
+ if (typeof message !== "object" || message === null)
80634
+ return "object expected";
80635
+ var properties = {};
80636
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
80637
+ properties.version = 1;
80638
+ {
80639
+ var error = $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0.verify(message.v0);
80640
+ if (error)
80641
+ return "v0." + error;
80642
+ }
80643
+ }
80644
+ return null;
80645
+ };
80646
+
80647
+ /**
80648
+ * Creates a GetRecentCompactedAddressBalanceChangesRequest message from a plain object. Also converts values to their respective internal types.
80649
+ * @function fromObject
80650
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
80651
+ * @static
80652
+ * @param {Object.<string,*>} object Plain object
80653
+ * @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest} GetRecentCompactedAddressBalanceChangesRequest
80654
+ */
80655
+ GetRecentCompactedAddressBalanceChangesRequest.fromObject = function fromObject(object) {
80656
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest)
80657
+ return object;
80658
+ var message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest();
80659
+ if (object.v0 != null) {
80660
+ if (typeof object.v0 !== "object")
80661
+ throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.v0: object expected");
80662
+ message.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0.fromObject(object.v0);
80663
+ }
80664
+ return message;
80665
+ };
80666
+
80667
+ /**
80668
+ * Creates a plain object from a GetRecentCompactedAddressBalanceChangesRequest message. Also converts values to other types if specified.
80669
+ * @function toObject
80670
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
80671
+ * @static
80672
+ * @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest} message GetRecentCompactedAddressBalanceChangesRequest
80673
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
80674
+ * @returns {Object.<string,*>} Plain object
80675
+ */
80676
+ GetRecentCompactedAddressBalanceChangesRequest.toObject = function toObject(message, options) {
80677
+ if (!options)
80678
+ options = {};
80679
+ var object = {};
80680
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
80681
+ object.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0.toObject(message.v0, options);
80682
+ if (options.oneofs)
80683
+ object.version = "v0";
80684
+ }
80685
+ return object;
80686
+ };
80687
+
80688
+ /**
80689
+ * Converts this GetRecentCompactedAddressBalanceChangesRequest to JSON.
80690
+ * @function toJSON
80691
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
80692
+ * @instance
80693
+ * @returns {Object.<string,*>} JSON object
80694
+ */
80695
+ GetRecentCompactedAddressBalanceChangesRequest.prototype.toJSON = function toJSON() {
80696
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
80697
+ };
80698
+
80699
+ GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0 = (function() {
80700
+
80701
+ /**
80702
+ * Properties of a GetRecentCompactedAddressBalanceChangesRequestV0.
80703
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
80704
+ * @interface IGetRecentCompactedAddressBalanceChangesRequestV0
80705
+ * @property {number|Long|null} [startBlockHeight] GetRecentCompactedAddressBalanceChangesRequestV0 startBlockHeight
80706
+ * @property {boolean|null} [prove] GetRecentCompactedAddressBalanceChangesRequestV0 prove
80707
+ */
80708
+
80709
+ /**
80710
+ * Constructs a new GetRecentCompactedAddressBalanceChangesRequestV0.
80711
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest
80712
+ * @classdesc Represents a GetRecentCompactedAddressBalanceChangesRequestV0.
80713
+ * @implements IGetRecentCompactedAddressBalanceChangesRequestV0
80714
+ * @constructor
80715
+ * @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.IGetRecentCompactedAddressBalanceChangesRequestV0=} [properties] Properties to set
80716
+ */
80717
+ function GetRecentCompactedAddressBalanceChangesRequestV0(properties) {
80718
+ if (properties)
80719
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
80720
+ if (properties[keys[i]] != null)
80721
+ this[keys[i]] = properties[keys[i]];
80722
+ }
80723
+
80724
+ /**
80725
+ * GetRecentCompactedAddressBalanceChangesRequestV0 startBlockHeight.
80726
+ * @member {number|Long} startBlockHeight
80727
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
80728
+ * @instance
80729
+ */
80730
+ GetRecentCompactedAddressBalanceChangesRequestV0.prototype.startBlockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
80731
+
80732
+ /**
80733
+ * GetRecentCompactedAddressBalanceChangesRequestV0 prove.
80734
+ * @member {boolean} prove
80735
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
80736
+ * @instance
80737
+ */
80738
+ GetRecentCompactedAddressBalanceChangesRequestV0.prototype.prove = false;
80739
+
80740
+ /**
80741
+ * Creates a new GetRecentCompactedAddressBalanceChangesRequestV0 instance using the specified properties.
80742
+ * @function create
80743
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
80744
+ * @static
80745
+ * @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.IGetRecentCompactedAddressBalanceChangesRequestV0=} [properties] Properties to set
80746
+ * @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0} GetRecentCompactedAddressBalanceChangesRequestV0 instance
80747
+ */
80748
+ GetRecentCompactedAddressBalanceChangesRequestV0.create = function create(properties) {
80749
+ return new GetRecentCompactedAddressBalanceChangesRequestV0(properties);
80750
+ };
80751
+
80752
+ /**
80753
+ * Encodes the specified GetRecentCompactedAddressBalanceChangesRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0.verify|verify} messages.
80754
+ * @function encode
80755
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
80756
+ * @static
80757
+ * @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.IGetRecentCompactedAddressBalanceChangesRequestV0} message GetRecentCompactedAddressBalanceChangesRequestV0 message or plain object to encode
80758
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80759
+ * @returns {$protobuf.Writer} Writer
80760
+ */
80761
+ GetRecentCompactedAddressBalanceChangesRequestV0.encode = function encode(message, writer) {
80762
+ if (!writer)
80763
+ writer = $Writer.create();
80764
+ if (message.startBlockHeight != null && Object.hasOwnProperty.call(message, "startBlockHeight"))
80765
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startBlockHeight);
80766
+ if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
80767
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
80768
+ return writer;
80769
+ };
80770
+
80771
+ /**
80772
+ * Encodes the specified GetRecentCompactedAddressBalanceChangesRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0.verify|verify} messages.
80773
+ * @function encodeDelimited
80774
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
80775
+ * @static
80776
+ * @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.IGetRecentCompactedAddressBalanceChangesRequestV0} message GetRecentCompactedAddressBalanceChangesRequestV0 message or plain object to encode
80777
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80778
+ * @returns {$protobuf.Writer} Writer
80779
+ */
80780
+ GetRecentCompactedAddressBalanceChangesRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
80781
+ return this.encode(message, writer).ldelim();
80782
+ };
80783
+
80784
+ /**
80785
+ * Decodes a GetRecentCompactedAddressBalanceChangesRequestV0 message from the specified reader or buffer.
80786
+ * @function decode
80787
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
80788
+ * @static
80789
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80790
+ * @param {number} [length] Message length if known beforehand
80791
+ * @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0} GetRecentCompactedAddressBalanceChangesRequestV0
80792
+ * @throws {Error} If the payload is not a reader or valid buffer
80793
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80794
+ */
80795
+ GetRecentCompactedAddressBalanceChangesRequestV0.decode = function decode(reader, length) {
80796
+ if (!(reader instanceof $Reader))
80797
+ reader = $Reader.create(reader);
80798
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0();
80799
+ while (reader.pos < end) {
80800
+ var tag = reader.uint32();
80801
+ switch (tag >>> 3) {
80802
+ case 1:
80803
+ message.startBlockHeight = reader.uint64();
80804
+ break;
80805
+ case 2:
80806
+ message.prove = reader.bool();
80807
+ break;
80808
+ default:
80809
+ reader.skipType(tag & 7);
80810
+ break;
80811
+ }
80812
+ }
80813
+ return message;
80814
+ };
80815
+
80816
+ /**
80817
+ * Decodes a GetRecentCompactedAddressBalanceChangesRequestV0 message from the specified reader or buffer, length delimited.
80818
+ * @function decodeDelimited
80819
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
80820
+ * @static
80821
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80822
+ * @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0} GetRecentCompactedAddressBalanceChangesRequestV0
80823
+ * @throws {Error} If the payload is not a reader or valid buffer
80824
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80825
+ */
80826
+ GetRecentCompactedAddressBalanceChangesRequestV0.decodeDelimited = function decodeDelimited(reader) {
80827
+ if (!(reader instanceof $Reader))
80828
+ reader = new $Reader(reader);
80829
+ return this.decode(reader, reader.uint32());
80830
+ };
80831
+
80832
+ /**
80833
+ * Verifies a GetRecentCompactedAddressBalanceChangesRequestV0 message.
80834
+ * @function verify
80835
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
80836
+ * @static
80837
+ * @param {Object.<string,*>} message Plain object to verify
80838
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
80839
+ */
80840
+ GetRecentCompactedAddressBalanceChangesRequestV0.verify = function verify(message) {
80841
+ if (typeof message !== "object" || message === null)
80842
+ return "object expected";
80843
+ if (message.startBlockHeight != null && message.hasOwnProperty("startBlockHeight"))
80844
+ if (!$util.isInteger(message.startBlockHeight) && !(message.startBlockHeight && $util.isInteger(message.startBlockHeight.low) && $util.isInteger(message.startBlockHeight.high)))
80845
+ return "startBlockHeight: integer|Long expected";
80846
+ if (message.prove != null && message.hasOwnProperty("prove"))
80847
+ if (typeof message.prove !== "boolean")
80848
+ return "prove: boolean expected";
80849
+ return null;
80850
+ };
80851
+
80852
+ /**
80853
+ * Creates a GetRecentCompactedAddressBalanceChangesRequestV0 message from a plain object. Also converts values to their respective internal types.
80854
+ * @function fromObject
80855
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
80856
+ * @static
80857
+ * @param {Object.<string,*>} object Plain object
80858
+ * @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0} GetRecentCompactedAddressBalanceChangesRequestV0
80859
+ */
80860
+ GetRecentCompactedAddressBalanceChangesRequestV0.fromObject = function fromObject(object) {
80861
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0)
80862
+ return object;
80863
+ var message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0();
80864
+ if (object.startBlockHeight != null)
80865
+ if ($util.Long)
80866
+ (message.startBlockHeight = $util.Long.fromValue(object.startBlockHeight)).unsigned = true;
80867
+ else if (typeof object.startBlockHeight === "string")
80868
+ message.startBlockHeight = parseInt(object.startBlockHeight, 10);
80869
+ else if (typeof object.startBlockHeight === "number")
80870
+ message.startBlockHeight = object.startBlockHeight;
80871
+ else if (typeof object.startBlockHeight === "object")
80872
+ message.startBlockHeight = new $util.LongBits(object.startBlockHeight.low >>> 0, object.startBlockHeight.high >>> 0).toNumber(true);
80873
+ if (object.prove != null)
80874
+ message.prove = Boolean(object.prove);
80875
+ return message;
80876
+ };
80877
+
80878
+ /**
80879
+ * Creates a plain object from a GetRecentCompactedAddressBalanceChangesRequestV0 message. Also converts values to other types if specified.
80880
+ * @function toObject
80881
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
80882
+ * @static
80883
+ * @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0} message GetRecentCompactedAddressBalanceChangesRequestV0
80884
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
80885
+ * @returns {Object.<string,*>} Plain object
80886
+ */
80887
+ GetRecentCompactedAddressBalanceChangesRequestV0.toObject = function toObject(message, options) {
80888
+ if (!options)
80889
+ options = {};
80890
+ var object = {};
80891
+ if (options.defaults) {
80892
+ if ($util.Long) {
80893
+ var long = new $util.Long(0, 0, true);
80894
+ object.startBlockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
80895
+ } else
80896
+ object.startBlockHeight = options.longs === String ? "0" : 0;
80897
+ object.prove = false;
80898
+ }
80899
+ if (message.startBlockHeight != null && message.hasOwnProperty("startBlockHeight"))
80900
+ if (typeof message.startBlockHeight === "number")
80901
+ object.startBlockHeight = options.longs === String ? String(message.startBlockHeight) : message.startBlockHeight;
80902
+ else
80903
+ object.startBlockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.startBlockHeight) : options.longs === Number ? new $util.LongBits(message.startBlockHeight.low >>> 0, message.startBlockHeight.high >>> 0).toNumber(true) : message.startBlockHeight;
80904
+ if (message.prove != null && message.hasOwnProperty("prove"))
80905
+ object.prove = message.prove;
80906
+ return object;
80907
+ };
80908
+
80909
+ /**
80910
+ * Converts this GetRecentCompactedAddressBalanceChangesRequestV0 to JSON.
80911
+ * @function toJSON
80912
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0
80913
+ * @instance
80914
+ * @returns {Object.<string,*>} JSON object
80915
+ */
80916
+ GetRecentCompactedAddressBalanceChangesRequestV0.prototype.toJSON = function toJSON() {
80917
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
80918
+ };
80919
+
80920
+ return GetRecentCompactedAddressBalanceChangesRequestV0;
80921
+ })();
80922
+
80923
+ return GetRecentCompactedAddressBalanceChangesRequest;
80924
+ })();
80925
+
80926
+ v0.GetRecentCompactedAddressBalanceChangesResponse = (function() {
80927
+
80928
+ /**
80929
+ * Properties of a GetRecentCompactedAddressBalanceChangesResponse.
80930
+ * @memberof org.dash.platform.dapi.v0
80931
+ * @interface IGetRecentCompactedAddressBalanceChangesResponse
80932
+ * @property {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.IGetRecentCompactedAddressBalanceChangesResponseV0|null} [v0] GetRecentCompactedAddressBalanceChangesResponse v0
80933
+ */
80934
+
80935
+ /**
80936
+ * Constructs a new GetRecentCompactedAddressBalanceChangesResponse.
80937
+ * @memberof org.dash.platform.dapi.v0
80938
+ * @classdesc Represents a GetRecentCompactedAddressBalanceChangesResponse.
80939
+ * @implements IGetRecentCompactedAddressBalanceChangesResponse
80940
+ * @constructor
80941
+ * @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesResponse=} [properties] Properties to set
80942
+ */
80943
+ function GetRecentCompactedAddressBalanceChangesResponse(properties) {
80944
+ if (properties)
80945
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
80946
+ if (properties[keys[i]] != null)
80947
+ this[keys[i]] = properties[keys[i]];
80948
+ }
80949
+
80950
+ /**
80951
+ * GetRecentCompactedAddressBalanceChangesResponse v0.
80952
+ * @member {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.IGetRecentCompactedAddressBalanceChangesResponseV0|null|undefined} v0
80953
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
80954
+ * @instance
80955
+ */
80956
+ GetRecentCompactedAddressBalanceChangesResponse.prototype.v0 = null;
80957
+
80958
+ // OneOf field names bound to virtual getters and setters
80959
+ var $oneOfFields;
80960
+
80961
+ /**
80962
+ * GetRecentCompactedAddressBalanceChangesResponse version.
80963
+ * @member {"v0"|undefined} version
80964
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
80965
+ * @instance
80966
+ */
80967
+ Object.defineProperty(GetRecentCompactedAddressBalanceChangesResponse.prototype, "version", {
80968
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
80969
+ set: $util.oneOfSetter($oneOfFields)
80970
+ });
80971
+
80972
+ /**
80973
+ * Creates a new GetRecentCompactedAddressBalanceChangesResponse instance using the specified properties.
80974
+ * @function create
80975
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
80976
+ * @static
80977
+ * @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesResponse=} [properties] Properties to set
80978
+ * @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse} GetRecentCompactedAddressBalanceChangesResponse instance
80979
+ */
80980
+ GetRecentCompactedAddressBalanceChangesResponse.create = function create(properties) {
80981
+ return new GetRecentCompactedAddressBalanceChangesResponse(properties);
80982
+ };
80983
+
80984
+ /**
80985
+ * Encodes the specified GetRecentCompactedAddressBalanceChangesResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.verify|verify} messages.
80986
+ * @function encode
80987
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
80988
+ * @static
80989
+ * @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesResponse} message GetRecentCompactedAddressBalanceChangesResponse message or plain object to encode
80990
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80991
+ * @returns {$protobuf.Writer} Writer
80992
+ */
80993
+ GetRecentCompactedAddressBalanceChangesResponse.encode = function encode(message, writer) {
80994
+ if (!writer)
80995
+ writer = $Writer.create();
80996
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
80997
+ $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
80998
+ return writer;
80999
+ };
81000
+
81001
+ /**
81002
+ * Encodes the specified GetRecentCompactedAddressBalanceChangesResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.verify|verify} messages.
81003
+ * @function encodeDelimited
81004
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
81005
+ * @static
81006
+ * @param {org.dash.platform.dapi.v0.IGetRecentCompactedAddressBalanceChangesResponse} message GetRecentCompactedAddressBalanceChangesResponse message or plain object to encode
81007
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81008
+ * @returns {$protobuf.Writer} Writer
81009
+ */
81010
+ GetRecentCompactedAddressBalanceChangesResponse.encodeDelimited = function encodeDelimited(message, writer) {
81011
+ return this.encode(message, writer).ldelim();
81012
+ };
81013
+
81014
+ /**
81015
+ * Decodes a GetRecentCompactedAddressBalanceChangesResponse message from the specified reader or buffer.
81016
+ * @function decode
81017
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
81018
+ * @static
81019
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81020
+ * @param {number} [length] Message length if known beforehand
81021
+ * @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse} GetRecentCompactedAddressBalanceChangesResponse
81022
+ * @throws {Error} If the payload is not a reader or valid buffer
81023
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81024
+ */
81025
+ GetRecentCompactedAddressBalanceChangesResponse.decode = function decode(reader, length) {
81026
+ if (!(reader instanceof $Reader))
81027
+ reader = $Reader.create(reader);
81028
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse();
81029
+ while (reader.pos < end) {
81030
+ var tag = reader.uint32();
81031
+ switch (tag >>> 3) {
81032
+ case 1:
81033
+ message.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.decode(reader, reader.uint32());
81034
+ break;
81035
+ default:
81036
+ reader.skipType(tag & 7);
81037
+ break;
81038
+ }
81039
+ }
81040
+ return message;
81041
+ };
81042
+
81043
+ /**
81044
+ * Decodes a GetRecentCompactedAddressBalanceChangesResponse message from the specified reader or buffer, length delimited.
81045
+ * @function decodeDelimited
81046
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
81047
+ * @static
81048
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81049
+ * @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse} GetRecentCompactedAddressBalanceChangesResponse
81050
+ * @throws {Error} If the payload is not a reader or valid buffer
81051
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81052
+ */
81053
+ GetRecentCompactedAddressBalanceChangesResponse.decodeDelimited = function decodeDelimited(reader) {
81054
+ if (!(reader instanceof $Reader))
81055
+ reader = new $Reader(reader);
81056
+ return this.decode(reader, reader.uint32());
81057
+ };
81058
+
81059
+ /**
81060
+ * Verifies a GetRecentCompactedAddressBalanceChangesResponse message.
81061
+ * @function verify
81062
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
81063
+ * @static
81064
+ * @param {Object.<string,*>} message Plain object to verify
81065
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
81066
+ */
81067
+ GetRecentCompactedAddressBalanceChangesResponse.verify = function verify(message) {
81068
+ if (typeof message !== "object" || message === null)
81069
+ return "object expected";
81070
+ var properties = {};
81071
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
81072
+ properties.version = 1;
81073
+ {
81074
+ var error = $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.verify(message.v0);
81075
+ if (error)
81076
+ return "v0." + error;
81077
+ }
81078
+ }
81079
+ return null;
81080
+ };
81081
+
81082
+ /**
81083
+ * Creates a GetRecentCompactedAddressBalanceChangesResponse message from a plain object. Also converts values to their respective internal types.
81084
+ * @function fromObject
81085
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
81086
+ * @static
81087
+ * @param {Object.<string,*>} object Plain object
81088
+ * @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse} GetRecentCompactedAddressBalanceChangesResponse
81089
+ */
81090
+ GetRecentCompactedAddressBalanceChangesResponse.fromObject = function fromObject(object) {
81091
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse)
81092
+ return object;
81093
+ var message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse();
81094
+ if (object.v0 != null) {
81095
+ if (typeof object.v0 !== "object")
81096
+ throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.v0: object expected");
81097
+ message.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.fromObject(object.v0);
81098
+ }
81099
+ return message;
81100
+ };
81101
+
81102
+ /**
81103
+ * Creates a plain object from a GetRecentCompactedAddressBalanceChangesResponse message. Also converts values to other types if specified.
81104
+ * @function toObject
81105
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
81106
+ * @static
81107
+ * @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse} message GetRecentCompactedAddressBalanceChangesResponse
81108
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
81109
+ * @returns {Object.<string,*>} Plain object
81110
+ */
81111
+ GetRecentCompactedAddressBalanceChangesResponse.toObject = function toObject(message, options) {
81112
+ if (!options)
81113
+ options = {};
81114
+ var object = {};
81115
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
81116
+ object.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.toObject(message.v0, options);
81117
+ if (options.oneofs)
81118
+ object.version = "v0";
81119
+ }
81120
+ return object;
81121
+ };
81122
+
81123
+ /**
81124
+ * Converts this GetRecentCompactedAddressBalanceChangesResponse to JSON.
81125
+ * @function toJSON
81126
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
81127
+ * @instance
81128
+ * @returns {Object.<string,*>} JSON object
81129
+ */
81130
+ GetRecentCompactedAddressBalanceChangesResponse.prototype.toJSON = function toJSON() {
81131
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
81132
+ };
81133
+
81134
+ GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0 = (function() {
81135
+
81136
+ /**
81137
+ * Properties of a GetRecentCompactedAddressBalanceChangesResponseV0.
81138
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
81139
+ * @interface IGetRecentCompactedAddressBalanceChangesResponseV0
81140
+ * @property {org.dash.platform.dapi.v0.ICompactedAddressBalanceUpdateEntries|null} [compactedAddressBalanceUpdateEntries] GetRecentCompactedAddressBalanceChangesResponseV0 compactedAddressBalanceUpdateEntries
81141
+ * @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetRecentCompactedAddressBalanceChangesResponseV0 proof
81142
+ * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetRecentCompactedAddressBalanceChangesResponseV0 metadata
81143
+ */
81144
+
81145
+ /**
81146
+ * Constructs a new GetRecentCompactedAddressBalanceChangesResponseV0.
81147
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse
81148
+ * @classdesc Represents a GetRecentCompactedAddressBalanceChangesResponseV0.
81149
+ * @implements IGetRecentCompactedAddressBalanceChangesResponseV0
81150
+ * @constructor
81151
+ * @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.IGetRecentCompactedAddressBalanceChangesResponseV0=} [properties] Properties to set
81152
+ */
81153
+ function GetRecentCompactedAddressBalanceChangesResponseV0(properties) {
81154
+ if (properties)
81155
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
81156
+ if (properties[keys[i]] != null)
81157
+ this[keys[i]] = properties[keys[i]];
81158
+ }
81159
+
81160
+ /**
81161
+ * GetRecentCompactedAddressBalanceChangesResponseV0 compactedAddressBalanceUpdateEntries.
81162
+ * @member {org.dash.platform.dapi.v0.ICompactedAddressBalanceUpdateEntries|null|undefined} compactedAddressBalanceUpdateEntries
81163
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
81164
+ * @instance
81165
+ */
81166
+ GetRecentCompactedAddressBalanceChangesResponseV0.prototype.compactedAddressBalanceUpdateEntries = null;
81167
+
81168
+ /**
81169
+ * GetRecentCompactedAddressBalanceChangesResponseV0 proof.
81170
+ * @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
81171
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
81172
+ * @instance
81173
+ */
81174
+ GetRecentCompactedAddressBalanceChangesResponseV0.prototype.proof = null;
81175
+
81176
+ /**
81177
+ * GetRecentCompactedAddressBalanceChangesResponseV0 metadata.
81178
+ * @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
81179
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
81180
+ * @instance
81181
+ */
81182
+ GetRecentCompactedAddressBalanceChangesResponseV0.prototype.metadata = null;
81183
+
81184
+ // OneOf field names bound to virtual getters and setters
81185
+ var $oneOfFields;
81186
+
81187
+ /**
81188
+ * GetRecentCompactedAddressBalanceChangesResponseV0 result.
81189
+ * @member {"compactedAddressBalanceUpdateEntries"|"proof"|undefined} result
81190
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
81191
+ * @instance
81192
+ */
81193
+ Object.defineProperty(GetRecentCompactedAddressBalanceChangesResponseV0.prototype, "result", {
81194
+ get: $util.oneOfGetter($oneOfFields = ["compactedAddressBalanceUpdateEntries", "proof"]),
81195
+ set: $util.oneOfSetter($oneOfFields)
81196
+ });
81197
+
81198
+ /**
81199
+ * Creates a new GetRecentCompactedAddressBalanceChangesResponseV0 instance using the specified properties.
81200
+ * @function create
81201
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
81202
+ * @static
81203
+ * @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.IGetRecentCompactedAddressBalanceChangesResponseV0=} [properties] Properties to set
81204
+ * @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0} GetRecentCompactedAddressBalanceChangesResponseV0 instance
81205
+ */
81206
+ GetRecentCompactedAddressBalanceChangesResponseV0.create = function create(properties) {
81207
+ return new GetRecentCompactedAddressBalanceChangesResponseV0(properties);
81208
+ };
81209
+
81210
+ /**
81211
+ * Encodes the specified GetRecentCompactedAddressBalanceChangesResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.verify|verify} messages.
81212
+ * @function encode
81213
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
81214
+ * @static
81215
+ * @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.IGetRecentCompactedAddressBalanceChangesResponseV0} message GetRecentCompactedAddressBalanceChangesResponseV0 message or plain object to encode
81216
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81217
+ * @returns {$protobuf.Writer} Writer
81218
+ */
81219
+ GetRecentCompactedAddressBalanceChangesResponseV0.encode = function encode(message, writer) {
81220
+ if (!writer)
81221
+ writer = $Writer.create();
81222
+ if (message.compactedAddressBalanceUpdateEntries != null && Object.hasOwnProperty.call(message, "compactedAddressBalanceUpdateEntries"))
81223
+ $root.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.encode(message.compactedAddressBalanceUpdateEntries, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
81224
+ if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
81225
+ $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
81226
+ if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
81227
+ $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
81228
+ return writer;
81229
+ };
81230
+
81231
+ /**
81232
+ * Encodes the specified GetRecentCompactedAddressBalanceChangesResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.verify|verify} messages.
81233
+ * @function encodeDelimited
81234
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
81235
+ * @static
81236
+ * @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.IGetRecentCompactedAddressBalanceChangesResponseV0} message GetRecentCompactedAddressBalanceChangesResponseV0 message or plain object to encode
81237
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81238
+ * @returns {$protobuf.Writer} Writer
81239
+ */
81240
+ GetRecentCompactedAddressBalanceChangesResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
81241
+ return this.encode(message, writer).ldelim();
81242
+ };
81243
+
81244
+ /**
81245
+ * Decodes a GetRecentCompactedAddressBalanceChangesResponseV0 message from the specified reader or buffer.
81246
+ * @function decode
81247
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
81248
+ * @static
81249
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81250
+ * @param {number} [length] Message length if known beforehand
81251
+ * @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0} GetRecentCompactedAddressBalanceChangesResponseV0
81252
+ * @throws {Error} If the payload is not a reader or valid buffer
81253
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81254
+ */
81255
+ GetRecentCompactedAddressBalanceChangesResponseV0.decode = function decode(reader, length) {
81256
+ if (!(reader instanceof $Reader))
81257
+ reader = $Reader.create(reader);
81258
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0();
81259
+ while (reader.pos < end) {
81260
+ var tag = reader.uint32();
81261
+ switch (tag >>> 3) {
81262
+ case 1:
81263
+ message.compactedAddressBalanceUpdateEntries = $root.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.decode(reader, reader.uint32());
81264
+ break;
81265
+ case 2:
81266
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
81267
+ break;
81268
+ case 3:
81269
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
81270
+ break;
81271
+ default:
81272
+ reader.skipType(tag & 7);
81273
+ break;
81274
+ }
81275
+ }
81276
+ return message;
81277
+ };
81278
+
81279
+ /**
81280
+ * Decodes a GetRecentCompactedAddressBalanceChangesResponseV0 message from the specified reader or buffer, length delimited.
81281
+ * @function decodeDelimited
81282
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
81283
+ * @static
81284
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81285
+ * @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0} GetRecentCompactedAddressBalanceChangesResponseV0
81286
+ * @throws {Error} If the payload is not a reader or valid buffer
81287
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81288
+ */
81289
+ GetRecentCompactedAddressBalanceChangesResponseV0.decodeDelimited = function decodeDelimited(reader) {
81290
+ if (!(reader instanceof $Reader))
81291
+ reader = new $Reader(reader);
81292
+ return this.decode(reader, reader.uint32());
81293
+ };
81294
+
81295
+ /**
81296
+ * Verifies a GetRecentCompactedAddressBalanceChangesResponseV0 message.
81297
+ * @function verify
81298
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
81299
+ * @static
81300
+ * @param {Object.<string,*>} message Plain object to verify
81301
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
81302
+ */
81303
+ GetRecentCompactedAddressBalanceChangesResponseV0.verify = function verify(message) {
81304
+ if (typeof message !== "object" || message === null)
81305
+ return "object expected";
81306
+ var properties = {};
81307
+ if (message.compactedAddressBalanceUpdateEntries != null && message.hasOwnProperty("compactedAddressBalanceUpdateEntries")) {
81308
+ properties.result = 1;
81309
+ {
81310
+ var error = $root.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.verify(message.compactedAddressBalanceUpdateEntries);
81311
+ if (error)
81312
+ return "compactedAddressBalanceUpdateEntries." + error;
81313
+ }
81314
+ }
81315
+ if (message.proof != null && message.hasOwnProperty("proof")) {
81316
+ if (properties.result === 1)
81317
+ return "result: multiple values";
81318
+ properties.result = 1;
81319
+ {
81320
+ var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
81321
+ if (error)
81322
+ return "proof." + error;
81323
+ }
81324
+ }
81325
+ if (message.metadata != null && message.hasOwnProperty("metadata")) {
81326
+ var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
81327
+ if (error)
81328
+ return "metadata." + error;
81329
+ }
81330
+ return null;
81331
+ };
81332
+
81333
+ /**
81334
+ * Creates a GetRecentCompactedAddressBalanceChangesResponseV0 message from a plain object. Also converts values to their respective internal types.
81335
+ * @function fromObject
81336
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
81337
+ * @static
81338
+ * @param {Object.<string,*>} object Plain object
81339
+ * @returns {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0} GetRecentCompactedAddressBalanceChangesResponseV0
81340
+ */
81341
+ GetRecentCompactedAddressBalanceChangesResponseV0.fromObject = function fromObject(object) {
81342
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0)
81343
+ return object;
81344
+ var message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0();
81345
+ if (object.compactedAddressBalanceUpdateEntries != null) {
81346
+ if (typeof object.compactedAddressBalanceUpdateEntries !== "object")
81347
+ throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.compactedAddressBalanceUpdateEntries: object expected");
81348
+ message.compactedAddressBalanceUpdateEntries = $root.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.fromObject(object.compactedAddressBalanceUpdateEntries);
81349
+ }
81350
+ if (object.proof != null) {
81351
+ if (typeof object.proof !== "object")
81352
+ throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.proof: object expected");
81353
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
81354
+ }
81355
+ if (object.metadata != null) {
81356
+ if (typeof object.metadata !== "object")
81357
+ throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.metadata: object expected");
81358
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
81359
+ }
81360
+ return message;
81361
+ };
81362
+
81363
+ /**
81364
+ * Creates a plain object from a GetRecentCompactedAddressBalanceChangesResponseV0 message. Also converts values to other types if specified.
81365
+ * @function toObject
81366
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
81367
+ * @static
81368
+ * @param {org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0} message GetRecentCompactedAddressBalanceChangesResponseV0
81369
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
81370
+ * @returns {Object.<string,*>} Plain object
81371
+ */
81372
+ GetRecentCompactedAddressBalanceChangesResponseV0.toObject = function toObject(message, options) {
81373
+ if (!options)
81374
+ options = {};
81375
+ var object = {};
81376
+ if (options.defaults)
81377
+ object.metadata = null;
81378
+ if (message.compactedAddressBalanceUpdateEntries != null && message.hasOwnProperty("compactedAddressBalanceUpdateEntries")) {
81379
+ object.compactedAddressBalanceUpdateEntries = $root.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries.toObject(message.compactedAddressBalanceUpdateEntries, options);
81380
+ if (options.oneofs)
81381
+ object.result = "compactedAddressBalanceUpdateEntries";
81382
+ }
81383
+ if (message.proof != null && message.hasOwnProperty("proof")) {
81384
+ object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
81385
+ if (options.oneofs)
81386
+ object.result = "proof";
81387
+ }
81388
+ if (message.metadata != null && message.hasOwnProperty("metadata"))
81389
+ object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
81390
+ return object;
81391
+ };
81392
+
81393
+ /**
81394
+ * Converts this GetRecentCompactedAddressBalanceChangesResponseV0 to JSON.
81395
+ * @function toJSON
81396
+ * @memberof org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0
81397
+ * @instance
81398
+ * @returns {Object.<string,*>} JSON object
81399
+ */
81400
+ GetRecentCompactedAddressBalanceChangesResponseV0.prototype.toJSON = function toJSON() {
81401
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
81402
+ };
81403
+
81404
+ return GetRecentCompactedAddressBalanceChangesResponseV0;
81405
+ })();
81406
+
81407
+ return GetRecentCompactedAddressBalanceChangesResponse;
81408
+ })();
81409
+
78278
81410
  return v0;
78279
81411
  })();
78280
81412