@dashevo/dapi-grpc 2.2.0-dev.2 → 3.0.0-dev.5

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.
@@ -1637,6 +1637,138 @@ $root.org = (function() {
1637
1637
  * @variation 2
1638
1638
  */
1639
1639
 
1640
+ /**
1641
+ * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getAddressInfo}.
1642
+ * @memberof org.dash.platform.dapi.v0.Platform
1643
+ * @typedef getAddressInfoCallback
1644
+ * @type {function}
1645
+ * @param {Error|null} error Error, if any
1646
+ * @param {org.dash.platform.dapi.v0.GetAddressInfoResponse} [response] GetAddressInfoResponse
1647
+ */
1648
+
1649
+ /**
1650
+ * Calls getAddressInfo.
1651
+ * @function getAddressInfo
1652
+ * @memberof org.dash.platform.dapi.v0.Platform
1653
+ * @instance
1654
+ * @param {org.dash.platform.dapi.v0.IGetAddressInfoRequest} request GetAddressInfoRequest message or plain object
1655
+ * @param {org.dash.platform.dapi.v0.Platform.getAddressInfoCallback} callback Node-style callback called with the error, if any, and GetAddressInfoResponse
1656
+ * @returns {undefined}
1657
+ * @variation 1
1658
+ */
1659
+ Object.defineProperty(Platform.prototype.getAddressInfo = function getAddressInfo(request, callback) {
1660
+ return this.rpcCall(getAddressInfo, $root.org.dash.platform.dapi.v0.GetAddressInfoRequest, $root.org.dash.platform.dapi.v0.GetAddressInfoResponse, request, callback);
1661
+ }, "name", { value: "getAddressInfo" });
1662
+
1663
+ /**
1664
+ * Calls getAddressInfo.
1665
+ * @function getAddressInfo
1666
+ * @memberof org.dash.platform.dapi.v0.Platform
1667
+ * @instance
1668
+ * @param {org.dash.platform.dapi.v0.IGetAddressInfoRequest} request GetAddressInfoRequest message or plain object
1669
+ * @returns {Promise<org.dash.platform.dapi.v0.GetAddressInfoResponse>} Promise
1670
+ * @variation 2
1671
+ */
1672
+
1673
+ /**
1674
+ * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getAddressesInfos}.
1675
+ * @memberof org.dash.platform.dapi.v0.Platform
1676
+ * @typedef getAddressesInfosCallback
1677
+ * @type {function}
1678
+ * @param {Error|null} error Error, if any
1679
+ * @param {org.dash.platform.dapi.v0.GetAddressesInfosResponse} [response] GetAddressesInfosResponse
1680
+ */
1681
+
1682
+ /**
1683
+ * Calls getAddressesInfos.
1684
+ * @function getAddressesInfos
1685
+ * @memberof org.dash.platform.dapi.v0.Platform
1686
+ * @instance
1687
+ * @param {org.dash.platform.dapi.v0.IGetAddressesInfosRequest} request GetAddressesInfosRequest message or plain object
1688
+ * @param {org.dash.platform.dapi.v0.Platform.getAddressesInfosCallback} callback Node-style callback called with the error, if any, and GetAddressesInfosResponse
1689
+ * @returns {undefined}
1690
+ * @variation 1
1691
+ */
1692
+ Object.defineProperty(Platform.prototype.getAddressesInfos = function getAddressesInfos(request, callback) {
1693
+ return this.rpcCall(getAddressesInfos, $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest, $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse, request, callback);
1694
+ }, "name", { value: "getAddressesInfos" });
1695
+
1696
+ /**
1697
+ * Calls getAddressesInfos.
1698
+ * @function getAddressesInfos
1699
+ * @memberof org.dash.platform.dapi.v0.Platform
1700
+ * @instance
1701
+ * @param {org.dash.platform.dapi.v0.IGetAddressesInfosRequest} request GetAddressesInfosRequest message or plain object
1702
+ * @returns {Promise<org.dash.platform.dapi.v0.GetAddressesInfosResponse>} Promise
1703
+ * @variation 2
1704
+ */
1705
+
1706
+ /**
1707
+ * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getAddressesTrunkState}.
1708
+ * @memberof org.dash.platform.dapi.v0.Platform
1709
+ * @typedef getAddressesTrunkStateCallback
1710
+ * @type {function}
1711
+ * @param {Error|null} error Error, if any
1712
+ * @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse} [response] GetAddressesTrunkStateResponse
1713
+ */
1714
+
1715
+ /**
1716
+ * Calls getAddressesTrunkState.
1717
+ * @function getAddressesTrunkState
1718
+ * @memberof org.dash.platform.dapi.v0.Platform
1719
+ * @instance
1720
+ * @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateRequest} request GetAddressesTrunkStateRequest message or plain object
1721
+ * @param {org.dash.platform.dapi.v0.Platform.getAddressesTrunkStateCallback} callback Node-style callback called with the error, if any, and GetAddressesTrunkStateResponse
1722
+ * @returns {undefined}
1723
+ * @variation 1
1724
+ */
1725
+ Object.defineProperty(Platform.prototype.getAddressesTrunkState = function getAddressesTrunkState(request, callback) {
1726
+ return this.rpcCall(getAddressesTrunkState, $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest, $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse, request, callback);
1727
+ }, "name", { value: "getAddressesTrunkState" });
1728
+
1729
+ /**
1730
+ * Calls getAddressesTrunkState.
1731
+ * @function getAddressesTrunkState
1732
+ * @memberof org.dash.platform.dapi.v0.Platform
1733
+ * @instance
1734
+ * @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateRequest} request GetAddressesTrunkStateRequest message or plain object
1735
+ * @returns {Promise<org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse>} Promise
1736
+ * @variation 2
1737
+ */
1738
+
1739
+ /**
1740
+ * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getAddressesBranchState}.
1741
+ * @memberof org.dash.platform.dapi.v0.Platform
1742
+ * @typedef getAddressesBranchStateCallback
1743
+ * @type {function}
1744
+ * @param {Error|null} error Error, if any
1745
+ * @param {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse} [response] GetAddressesBranchStateResponse
1746
+ */
1747
+
1748
+ /**
1749
+ * Calls getAddressesBranchState.
1750
+ * @function getAddressesBranchState
1751
+ * @memberof org.dash.platform.dapi.v0.Platform
1752
+ * @instance
1753
+ * @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateRequest} request GetAddressesBranchStateRequest message or plain object
1754
+ * @param {org.dash.platform.dapi.v0.Platform.getAddressesBranchStateCallback} callback Node-style callback called with the error, if any, and GetAddressesBranchStateResponse
1755
+ * @returns {undefined}
1756
+ * @variation 1
1757
+ */
1758
+ Object.defineProperty(Platform.prototype.getAddressesBranchState = function getAddressesBranchState(request, callback) {
1759
+ return this.rpcCall(getAddressesBranchState, $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest, $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse, request, callback);
1760
+ }, "name", { value: "getAddressesBranchState" });
1761
+
1762
+ /**
1763
+ * Calls getAddressesBranchState.
1764
+ * @function getAddressesBranchState
1765
+ * @memberof org.dash.platform.dapi.v0.Platform
1766
+ * @instance
1767
+ * @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateRequest} request GetAddressesBranchStateRequest message or plain object
1768
+ * @returns {Promise<org.dash.platform.dapi.v0.GetAddressesBranchStateResponse>} Promise
1769
+ * @variation 2
1770
+ */
1771
+
1640
1772
  return Platform;
1641
1773
  })();
1642
1774
 
@@ -73974,6 +74106,4139 @@ $root.org = (function() {
73974
74106
  return GetGroupActionSignersResponse;
73975
74107
  })();
73976
74108
 
74109
+ v0.GetAddressInfoRequest = (function() {
74110
+
74111
+ /**
74112
+ * Properties of a GetAddressInfoRequest.
74113
+ * @memberof org.dash.platform.dapi.v0
74114
+ * @interface IGetAddressInfoRequest
74115
+ * @property {org.dash.platform.dapi.v0.GetAddressInfoRequest.IGetAddressInfoRequestV0|null} [v0] GetAddressInfoRequest v0
74116
+ */
74117
+
74118
+ /**
74119
+ * Constructs a new GetAddressInfoRequest.
74120
+ * @memberof org.dash.platform.dapi.v0
74121
+ * @classdesc Represents a GetAddressInfoRequest.
74122
+ * @implements IGetAddressInfoRequest
74123
+ * @constructor
74124
+ * @param {org.dash.platform.dapi.v0.IGetAddressInfoRequest=} [properties] Properties to set
74125
+ */
74126
+ function GetAddressInfoRequest(properties) {
74127
+ if (properties)
74128
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
74129
+ if (properties[keys[i]] != null)
74130
+ this[keys[i]] = properties[keys[i]];
74131
+ }
74132
+
74133
+ /**
74134
+ * GetAddressInfoRequest v0.
74135
+ * @member {org.dash.platform.dapi.v0.GetAddressInfoRequest.IGetAddressInfoRequestV0|null|undefined} v0
74136
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
74137
+ * @instance
74138
+ */
74139
+ GetAddressInfoRequest.prototype.v0 = null;
74140
+
74141
+ // OneOf field names bound to virtual getters and setters
74142
+ var $oneOfFields;
74143
+
74144
+ /**
74145
+ * GetAddressInfoRequest version.
74146
+ * @member {"v0"|undefined} version
74147
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
74148
+ * @instance
74149
+ */
74150
+ Object.defineProperty(GetAddressInfoRequest.prototype, "version", {
74151
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
74152
+ set: $util.oneOfSetter($oneOfFields)
74153
+ });
74154
+
74155
+ /**
74156
+ * Creates a new GetAddressInfoRequest instance using the specified properties.
74157
+ * @function create
74158
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
74159
+ * @static
74160
+ * @param {org.dash.platform.dapi.v0.IGetAddressInfoRequest=} [properties] Properties to set
74161
+ * @returns {org.dash.platform.dapi.v0.GetAddressInfoRequest} GetAddressInfoRequest instance
74162
+ */
74163
+ GetAddressInfoRequest.create = function create(properties) {
74164
+ return new GetAddressInfoRequest(properties);
74165
+ };
74166
+
74167
+ /**
74168
+ * Encodes the specified GetAddressInfoRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressInfoRequest.verify|verify} messages.
74169
+ * @function encode
74170
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
74171
+ * @static
74172
+ * @param {org.dash.platform.dapi.v0.IGetAddressInfoRequest} message GetAddressInfoRequest message or plain object to encode
74173
+ * @param {$protobuf.Writer} [writer] Writer to encode to
74174
+ * @returns {$protobuf.Writer} Writer
74175
+ */
74176
+ GetAddressInfoRequest.encode = function encode(message, writer) {
74177
+ if (!writer)
74178
+ writer = $Writer.create();
74179
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
74180
+ $root.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
74181
+ return writer;
74182
+ };
74183
+
74184
+ /**
74185
+ * Encodes the specified GetAddressInfoRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressInfoRequest.verify|verify} messages.
74186
+ * @function encodeDelimited
74187
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
74188
+ * @static
74189
+ * @param {org.dash.platform.dapi.v0.IGetAddressInfoRequest} message GetAddressInfoRequest message or plain object to encode
74190
+ * @param {$protobuf.Writer} [writer] Writer to encode to
74191
+ * @returns {$protobuf.Writer} Writer
74192
+ */
74193
+ GetAddressInfoRequest.encodeDelimited = function encodeDelimited(message, writer) {
74194
+ return this.encode(message, writer).ldelim();
74195
+ };
74196
+
74197
+ /**
74198
+ * Decodes a GetAddressInfoRequest message from the specified reader or buffer.
74199
+ * @function decode
74200
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
74201
+ * @static
74202
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
74203
+ * @param {number} [length] Message length if known beforehand
74204
+ * @returns {org.dash.platform.dapi.v0.GetAddressInfoRequest} GetAddressInfoRequest
74205
+ * @throws {Error} If the payload is not a reader or valid buffer
74206
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
74207
+ */
74208
+ GetAddressInfoRequest.decode = function decode(reader, length) {
74209
+ if (!(reader instanceof $Reader))
74210
+ reader = $Reader.create(reader);
74211
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressInfoRequest();
74212
+ while (reader.pos < end) {
74213
+ var tag = reader.uint32();
74214
+ switch (tag >>> 3) {
74215
+ case 1:
74216
+ message.v0 = $root.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0.decode(reader, reader.uint32());
74217
+ break;
74218
+ default:
74219
+ reader.skipType(tag & 7);
74220
+ break;
74221
+ }
74222
+ }
74223
+ return message;
74224
+ };
74225
+
74226
+ /**
74227
+ * Decodes a GetAddressInfoRequest message from the specified reader or buffer, length delimited.
74228
+ * @function decodeDelimited
74229
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
74230
+ * @static
74231
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
74232
+ * @returns {org.dash.platform.dapi.v0.GetAddressInfoRequest} GetAddressInfoRequest
74233
+ * @throws {Error} If the payload is not a reader or valid buffer
74234
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
74235
+ */
74236
+ GetAddressInfoRequest.decodeDelimited = function decodeDelimited(reader) {
74237
+ if (!(reader instanceof $Reader))
74238
+ reader = new $Reader(reader);
74239
+ return this.decode(reader, reader.uint32());
74240
+ };
74241
+
74242
+ /**
74243
+ * Verifies a GetAddressInfoRequest message.
74244
+ * @function verify
74245
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
74246
+ * @static
74247
+ * @param {Object.<string,*>} message Plain object to verify
74248
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
74249
+ */
74250
+ GetAddressInfoRequest.verify = function verify(message) {
74251
+ if (typeof message !== "object" || message === null)
74252
+ return "object expected";
74253
+ var properties = {};
74254
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
74255
+ properties.version = 1;
74256
+ {
74257
+ var error = $root.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0.verify(message.v0);
74258
+ if (error)
74259
+ return "v0." + error;
74260
+ }
74261
+ }
74262
+ return null;
74263
+ };
74264
+
74265
+ /**
74266
+ * Creates a GetAddressInfoRequest message from a plain object. Also converts values to their respective internal types.
74267
+ * @function fromObject
74268
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
74269
+ * @static
74270
+ * @param {Object.<string,*>} object Plain object
74271
+ * @returns {org.dash.platform.dapi.v0.GetAddressInfoRequest} GetAddressInfoRequest
74272
+ */
74273
+ GetAddressInfoRequest.fromObject = function fromObject(object) {
74274
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressInfoRequest)
74275
+ return object;
74276
+ var message = new $root.org.dash.platform.dapi.v0.GetAddressInfoRequest();
74277
+ if (object.v0 != null) {
74278
+ if (typeof object.v0 !== "object")
74279
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressInfoRequest.v0: object expected");
74280
+ message.v0 = $root.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0.fromObject(object.v0);
74281
+ }
74282
+ return message;
74283
+ };
74284
+
74285
+ /**
74286
+ * Creates a plain object from a GetAddressInfoRequest message. Also converts values to other types if specified.
74287
+ * @function toObject
74288
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
74289
+ * @static
74290
+ * @param {org.dash.platform.dapi.v0.GetAddressInfoRequest} message GetAddressInfoRequest
74291
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
74292
+ * @returns {Object.<string,*>} Plain object
74293
+ */
74294
+ GetAddressInfoRequest.toObject = function toObject(message, options) {
74295
+ if (!options)
74296
+ options = {};
74297
+ var object = {};
74298
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
74299
+ object.v0 = $root.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0.toObject(message.v0, options);
74300
+ if (options.oneofs)
74301
+ object.version = "v0";
74302
+ }
74303
+ return object;
74304
+ };
74305
+
74306
+ /**
74307
+ * Converts this GetAddressInfoRequest to JSON.
74308
+ * @function toJSON
74309
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
74310
+ * @instance
74311
+ * @returns {Object.<string,*>} JSON object
74312
+ */
74313
+ GetAddressInfoRequest.prototype.toJSON = function toJSON() {
74314
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
74315
+ };
74316
+
74317
+ GetAddressInfoRequest.GetAddressInfoRequestV0 = (function() {
74318
+
74319
+ /**
74320
+ * Properties of a GetAddressInfoRequestV0.
74321
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
74322
+ * @interface IGetAddressInfoRequestV0
74323
+ * @property {Uint8Array|null} [address] GetAddressInfoRequestV0 address
74324
+ * @property {boolean|null} [prove] GetAddressInfoRequestV0 prove
74325
+ */
74326
+
74327
+ /**
74328
+ * Constructs a new GetAddressInfoRequestV0.
74329
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
74330
+ * @classdesc Represents a GetAddressInfoRequestV0.
74331
+ * @implements IGetAddressInfoRequestV0
74332
+ * @constructor
74333
+ * @param {org.dash.platform.dapi.v0.GetAddressInfoRequest.IGetAddressInfoRequestV0=} [properties] Properties to set
74334
+ */
74335
+ function GetAddressInfoRequestV0(properties) {
74336
+ if (properties)
74337
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
74338
+ if (properties[keys[i]] != null)
74339
+ this[keys[i]] = properties[keys[i]];
74340
+ }
74341
+
74342
+ /**
74343
+ * GetAddressInfoRequestV0 address.
74344
+ * @member {Uint8Array} address
74345
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
74346
+ * @instance
74347
+ */
74348
+ GetAddressInfoRequestV0.prototype.address = $util.newBuffer([]);
74349
+
74350
+ /**
74351
+ * GetAddressInfoRequestV0 prove.
74352
+ * @member {boolean} prove
74353
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
74354
+ * @instance
74355
+ */
74356
+ GetAddressInfoRequestV0.prototype.prove = false;
74357
+
74358
+ /**
74359
+ * Creates a new GetAddressInfoRequestV0 instance using the specified properties.
74360
+ * @function create
74361
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
74362
+ * @static
74363
+ * @param {org.dash.platform.dapi.v0.GetAddressInfoRequest.IGetAddressInfoRequestV0=} [properties] Properties to set
74364
+ * @returns {org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0} GetAddressInfoRequestV0 instance
74365
+ */
74366
+ GetAddressInfoRequestV0.create = function create(properties) {
74367
+ return new GetAddressInfoRequestV0(properties);
74368
+ };
74369
+
74370
+ /**
74371
+ * Encodes the specified GetAddressInfoRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0.verify|verify} messages.
74372
+ * @function encode
74373
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
74374
+ * @static
74375
+ * @param {org.dash.platform.dapi.v0.GetAddressInfoRequest.IGetAddressInfoRequestV0} message GetAddressInfoRequestV0 message or plain object to encode
74376
+ * @param {$protobuf.Writer} [writer] Writer to encode to
74377
+ * @returns {$protobuf.Writer} Writer
74378
+ */
74379
+ GetAddressInfoRequestV0.encode = function encode(message, writer) {
74380
+ if (!writer)
74381
+ writer = $Writer.create();
74382
+ if (message.address != null && Object.hasOwnProperty.call(message, "address"))
74383
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.address);
74384
+ if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
74385
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
74386
+ return writer;
74387
+ };
74388
+
74389
+ /**
74390
+ * Encodes the specified GetAddressInfoRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0.verify|verify} messages.
74391
+ * @function encodeDelimited
74392
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
74393
+ * @static
74394
+ * @param {org.dash.platform.dapi.v0.GetAddressInfoRequest.IGetAddressInfoRequestV0} message GetAddressInfoRequestV0 message or plain object to encode
74395
+ * @param {$protobuf.Writer} [writer] Writer to encode to
74396
+ * @returns {$protobuf.Writer} Writer
74397
+ */
74398
+ GetAddressInfoRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
74399
+ return this.encode(message, writer).ldelim();
74400
+ };
74401
+
74402
+ /**
74403
+ * Decodes a GetAddressInfoRequestV0 message from the specified reader or buffer.
74404
+ * @function decode
74405
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
74406
+ * @static
74407
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
74408
+ * @param {number} [length] Message length if known beforehand
74409
+ * @returns {org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0} GetAddressInfoRequestV0
74410
+ * @throws {Error} If the payload is not a reader or valid buffer
74411
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
74412
+ */
74413
+ GetAddressInfoRequestV0.decode = function decode(reader, length) {
74414
+ if (!(reader instanceof $Reader))
74415
+ reader = $Reader.create(reader);
74416
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0();
74417
+ while (reader.pos < end) {
74418
+ var tag = reader.uint32();
74419
+ switch (tag >>> 3) {
74420
+ case 1:
74421
+ message.address = reader.bytes();
74422
+ break;
74423
+ case 2:
74424
+ message.prove = reader.bool();
74425
+ break;
74426
+ default:
74427
+ reader.skipType(tag & 7);
74428
+ break;
74429
+ }
74430
+ }
74431
+ return message;
74432
+ };
74433
+
74434
+ /**
74435
+ * Decodes a GetAddressInfoRequestV0 message from the specified reader or buffer, length delimited.
74436
+ * @function decodeDelimited
74437
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
74438
+ * @static
74439
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
74440
+ * @returns {org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0} GetAddressInfoRequestV0
74441
+ * @throws {Error} If the payload is not a reader or valid buffer
74442
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
74443
+ */
74444
+ GetAddressInfoRequestV0.decodeDelimited = function decodeDelimited(reader) {
74445
+ if (!(reader instanceof $Reader))
74446
+ reader = new $Reader(reader);
74447
+ return this.decode(reader, reader.uint32());
74448
+ };
74449
+
74450
+ /**
74451
+ * Verifies a GetAddressInfoRequestV0 message.
74452
+ * @function verify
74453
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
74454
+ * @static
74455
+ * @param {Object.<string,*>} message Plain object to verify
74456
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
74457
+ */
74458
+ GetAddressInfoRequestV0.verify = function verify(message) {
74459
+ if (typeof message !== "object" || message === null)
74460
+ return "object expected";
74461
+ if (message.address != null && message.hasOwnProperty("address"))
74462
+ if (!(message.address && typeof message.address.length === "number" || $util.isString(message.address)))
74463
+ return "address: buffer expected";
74464
+ if (message.prove != null && message.hasOwnProperty("prove"))
74465
+ if (typeof message.prove !== "boolean")
74466
+ return "prove: boolean expected";
74467
+ return null;
74468
+ };
74469
+
74470
+ /**
74471
+ * Creates a GetAddressInfoRequestV0 message from a plain object. Also converts values to their respective internal types.
74472
+ * @function fromObject
74473
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
74474
+ * @static
74475
+ * @param {Object.<string,*>} object Plain object
74476
+ * @returns {org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0} GetAddressInfoRequestV0
74477
+ */
74478
+ GetAddressInfoRequestV0.fromObject = function fromObject(object) {
74479
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0)
74480
+ return object;
74481
+ var message = new $root.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0();
74482
+ if (object.address != null)
74483
+ if (typeof object.address === "string")
74484
+ $util.base64.decode(object.address, message.address = $util.newBuffer($util.base64.length(object.address)), 0);
74485
+ else if (object.address.length >= 0)
74486
+ message.address = object.address;
74487
+ if (object.prove != null)
74488
+ message.prove = Boolean(object.prove);
74489
+ return message;
74490
+ };
74491
+
74492
+ /**
74493
+ * Creates a plain object from a GetAddressInfoRequestV0 message. Also converts values to other types if specified.
74494
+ * @function toObject
74495
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
74496
+ * @static
74497
+ * @param {org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0} message GetAddressInfoRequestV0
74498
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
74499
+ * @returns {Object.<string,*>} Plain object
74500
+ */
74501
+ GetAddressInfoRequestV0.toObject = function toObject(message, options) {
74502
+ if (!options)
74503
+ options = {};
74504
+ var object = {};
74505
+ if (options.defaults) {
74506
+ if (options.bytes === String)
74507
+ object.address = "";
74508
+ else {
74509
+ object.address = [];
74510
+ if (options.bytes !== Array)
74511
+ object.address = $util.newBuffer(object.address);
74512
+ }
74513
+ object.prove = false;
74514
+ }
74515
+ if (message.address != null && message.hasOwnProperty("address"))
74516
+ 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;
74517
+ if (message.prove != null && message.hasOwnProperty("prove"))
74518
+ object.prove = message.prove;
74519
+ return object;
74520
+ };
74521
+
74522
+ /**
74523
+ * Converts this GetAddressInfoRequestV0 to JSON.
74524
+ * @function toJSON
74525
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
74526
+ * @instance
74527
+ * @returns {Object.<string,*>} JSON object
74528
+ */
74529
+ GetAddressInfoRequestV0.prototype.toJSON = function toJSON() {
74530
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
74531
+ };
74532
+
74533
+ return GetAddressInfoRequestV0;
74534
+ })();
74535
+
74536
+ return GetAddressInfoRequest;
74537
+ })();
74538
+
74539
+ v0.AddressInfoEntry = (function() {
74540
+
74541
+ /**
74542
+ * Properties of an AddressInfoEntry.
74543
+ * @memberof org.dash.platform.dapi.v0
74544
+ * @interface IAddressInfoEntry
74545
+ * @property {Uint8Array|null} [address] AddressInfoEntry address
74546
+ * @property {org.dash.platform.dapi.v0.IBalanceAndNonce|null} [balanceAndNonce] AddressInfoEntry balanceAndNonce
74547
+ */
74548
+
74549
+ /**
74550
+ * Constructs a new AddressInfoEntry.
74551
+ * @memberof org.dash.platform.dapi.v0
74552
+ * @classdesc Represents an AddressInfoEntry.
74553
+ * @implements IAddressInfoEntry
74554
+ * @constructor
74555
+ * @param {org.dash.platform.dapi.v0.IAddressInfoEntry=} [properties] Properties to set
74556
+ */
74557
+ function AddressInfoEntry(properties) {
74558
+ if (properties)
74559
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
74560
+ if (properties[keys[i]] != null)
74561
+ this[keys[i]] = properties[keys[i]];
74562
+ }
74563
+
74564
+ /**
74565
+ * AddressInfoEntry address.
74566
+ * @member {Uint8Array} address
74567
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntry
74568
+ * @instance
74569
+ */
74570
+ AddressInfoEntry.prototype.address = $util.newBuffer([]);
74571
+
74572
+ /**
74573
+ * AddressInfoEntry balanceAndNonce.
74574
+ * @member {org.dash.platform.dapi.v0.IBalanceAndNonce|null|undefined} balanceAndNonce
74575
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntry
74576
+ * @instance
74577
+ */
74578
+ AddressInfoEntry.prototype.balanceAndNonce = null;
74579
+
74580
+ /**
74581
+ * Creates a new AddressInfoEntry instance using the specified properties.
74582
+ * @function create
74583
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntry
74584
+ * @static
74585
+ * @param {org.dash.platform.dapi.v0.IAddressInfoEntry=} [properties] Properties to set
74586
+ * @returns {org.dash.platform.dapi.v0.AddressInfoEntry} AddressInfoEntry instance
74587
+ */
74588
+ AddressInfoEntry.create = function create(properties) {
74589
+ return new AddressInfoEntry(properties);
74590
+ };
74591
+
74592
+ /**
74593
+ * Encodes the specified AddressInfoEntry message. Does not implicitly {@link org.dash.platform.dapi.v0.AddressInfoEntry.verify|verify} messages.
74594
+ * @function encode
74595
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntry
74596
+ * @static
74597
+ * @param {org.dash.platform.dapi.v0.IAddressInfoEntry} message AddressInfoEntry message or plain object to encode
74598
+ * @param {$protobuf.Writer} [writer] Writer to encode to
74599
+ * @returns {$protobuf.Writer} Writer
74600
+ */
74601
+ AddressInfoEntry.encode = function encode(message, writer) {
74602
+ if (!writer)
74603
+ writer = $Writer.create();
74604
+ if (message.address != null && Object.hasOwnProperty.call(message, "address"))
74605
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.address);
74606
+ if (message.balanceAndNonce != null && Object.hasOwnProperty.call(message, "balanceAndNonce"))
74607
+ $root.org.dash.platform.dapi.v0.BalanceAndNonce.encode(message.balanceAndNonce, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
74608
+ return writer;
74609
+ };
74610
+
74611
+ /**
74612
+ * Encodes the specified AddressInfoEntry message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.AddressInfoEntry.verify|verify} messages.
74613
+ * @function encodeDelimited
74614
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntry
74615
+ * @static
74616
+ * @param {org.dash.platform.dapi.v0.IAddressInfoEntry} message AddressInfoEntry message or plain object to encode
74617
+ * @param {$protobuf.Writer} [writer] Writer to encode to
74618
+ * @returns {$protobuf.Writer} Writer
74619
+ */
74620
+ AddressInfoEntry.encodeDelimited = function encodeDelimited(message, writer) {
74621
+ return this.encode(message, writer).ldelim();
74622
+ };
74623
+
74624
+ /**
74625
+ * Decodes an AddressInfoEntry message from the specified reader or buffer.
74626
+ * @function decode
74627
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntry
74628
+ * @static
74629
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
74630
+ * @param {number} [length] Message length if known beforehand
74631
+ * @returns {org.dash.platform.dapi.v0.AddressInfoEntry} AddressInfoEntry
74632
+ * @throws {Error} If the payload is not a reader or valid buffer
74633
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
74634
+ */
74635
+ AddressInfoEntry.decode = function decode(reader, length) {
74636
+ if (!(reader instanceof $Reader))
74637
+ reader = $Reader.create(reader);
74638
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.AddressInfoEntry();
74639
+ while (reader.pos < end) {
74640
+ var tag = reader.uint32();
74641
+ switch (tag >>> 3) {
74642
+ case 1:
74643
+ message.address = reader.bytes();
74644
+ break;
74645
+ case 2:
74646
+ message.balanceAndNonce = $root.org.dash.platform.dapi.v0.BalanceAndNonce.decode(reader, reader.uint32());
74647
+ break;
74648
+ default:
74649
+ reader.skipType(tag & 7);
74650
+ break;
74651
+ }
74652
+ }
74653
+ return message;
74654
+ };
74655
+
74656
+ /**
74657
+ * Decodes an AddressInfoEntry message from the specified reader or buffer, length delimited.
74658
+ * @function decodeDelimited
74659
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntry
74660
+ * @static
74661
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
74662
+ * @returns {org.dash.platform.dapi.v0.AddressInfoEntry} AddressInfoEntry
74663
+ * @throws {Error} If the payload is not a reader or valid buffer
74664
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
74665
+ */
74666
+ AddressInfoEntry.decodeDelimited = function decodeDelimited(reader) {
74667
+ if (!(reader instanceof $Reader))
74668
+ reader = new $Reader(reader);
74669
+ return this.decode(reader, reader.uint32());
74670
+ };
74671
+
74672
+ /**
74673
+ * Verifies an AddressInfoEntry message.
74674
+ * @function verify
74675
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntry
74676
+ * @static
74677
+ * @param {Object.<string,*>} message Plain object to verify
74678
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
74679
+ */
74680
+ AddressInfoEntry.verify = function verify(message) {
74681
+ if (typeof message !== "object" || message === null)
74682
+ return "object expected";
74683
+ if (message.address != null && message.hasOwnProperty("address"))
74684
+ if (!(message.address && typeof message.address.length === "number" || $util.isString(message.address)))
74685
+ return "address: buffer expected";
74686
+ if (message.balanceAndNonce != null && message.hasOwnProperty("balanceAndNonce")) {
74687
+ var error = $root.org.dash.platform.dapi.v0.BalanceAndNonce.verify(message.balanceAndNonce);
74688
+ if (error)
74689
+ return "balanceAndNonce." + error;
74690
+ }
74691
+ return null;
74692
+ };
74693
+
74694
+ /**
74695
+ * Creates an AddressInfoEntry message from a plain object. Also converts values to their respective internal types.
74696
+ * @function fromObject
74697
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntry
74698
+ * @static
74699
+ * @param {Object.<string,*>} object Plain object
74700
+ * @returns {org.dash.platform.dapi.v0.AddressInfoEntry} AddressInfoEntry
74701
+ */
74702
+ AddressInfoEntry.fromObject = function fromObject(object) {
74703
+ if (object instanceof $root.org.dash.platform.dapi.v0.AddressInfoEntry)
74704
+ return object;
74705
+ var message = new $root.org.dash.platform.dapi.v0.AddressInfoEntry();
74706
+ if (object.address != null)
74707
+ if (typeof object.address === "string")
74708
+ $util.base64.decode(object.address, message.address = $util.newBuffer($util.base64.length(object.address)), 0);
74709
+ else if (object.address.length >= 0)
74710
+ message.address = object.address;
74711
+ if (object.balanceAndNonce != null) {
74712
+ if (typeof object.balanceAndNonce !== "object")
74713
+ throw TypeError(".org.dash.platform.dapi.v0.AddressInfoEntry.balanceAndNonce: object expected");
74714
+ message.balanceAndNonce = $root.org.dash.platform.dapi.v0.BalanceAndNonce.fromObject(object.balanceAndNonce);
74715
+ }
74716
+ return message;
74717
+ };
74718
+
74719
+ /**
74720
+ * Creates a plain object from an AddressInfoEntry message. Also converts values to other types if specified.
74721
+ * @function toObject
74722
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntry
74723
+ * @static
74724
+ * @param {org.dash.platform.dapi.v0.AddressInfoEntry} message AddressInfoEntry
74725
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
74726
+ * @returns {Object.<string,*>} Plain object
74727
+ */
74728
+ AddressInfoEntry.toObject = function toObject(message, options) {
74729
+ if (!options)
74730
+ options = {};
74731
+ var object = {};
74732
+ if (options.defaults) {
74733
+ if (options.bytes === String)
74734
+ object.address = "";
74735
+ else {
74736
+ object.address = [];
74737
+ if (options.bytes !== Array)
74738
+ object.address = $util.newBuffer(object.address);
74739
+ }
74740
+ object.balanceAndNonce = null;
74741
+ }
74742
+ if (message.address != null && message.hasOwnProperty("address"))
74743
+ 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;
74744
+ if (message.balanceAndNonce != null && message.hasOwnProperty("balanceAndNonce"))
74745
+ object.balanceAndNonce = $root.org.dash.platform.dapi.v0.BalanceAndNonce.toObject(message.balanceAndNonce, options);
74746
+ return object;
74747
+ };
74748
+
74749
+ /**
74750
+ * Converts this AddressInfoEntry to JSON.
74751
+ * @function toJSON
74752
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntry
74753
+ * @instance
74754
+ * @returns {Object.<string,*>} JSON object
74755
+ */
74756
+ AddressInfoEntry.prototype.toJSON = function toJSON() {
74757
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
74758
+ };
74759
+
74760
+ return AddressInfoEntry;
74761
+ })();
74762
+
74763
+ v0.BalanceAndNonce = (function() {
74764
+
74765
+ /**
74766
+ * Properties of a BalanceAndNonce.
74767
+ * @memberof org.dash.platform.dapi.v0
74768
+ * @interface IBalanceAndNonce
74769
+ * @property {number|Long|null} [balance] BalanceAndNonce balance
74770
+ * @property {number|null} [nonce] BalanceAndNonce nonce
74771
+ */
74772
+
74773
+ /**
74774
+ * Constructs a new BalanceAndNonce.
74775
+ * @memberof org.dash.platform.dapi.v0
74776
+ * @classdesc Represents a BalanceAndNonce.
74777
+ * @implements IBalanceAndNonce
74778
+ * @constructor
74779
+ * @param {org.dash.platform.dapi.v0.IBalanceAndNonce=} [properties] Properties to set
74780
+ */
74781
+ function BalanceAndNonce(properties) {
74782
+ if (properties)
74783
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
74784
+ if (properties[keys[i]] != null)
74785
+ this[keys[i]] = properties[keys[i]];
74786
+ }
74787
+
74788
+ /**
74789
+ * BalanceAndNonce balance.
74790
+ * @member {number|Long} balance
74791
+ * @memberof org.dash.platform.dapi.v0.BalanceAndNonce
74792
+ * @instance
74793
+ */
74794
+ BalanceAndNonce.prototype.balance = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
74795
+
74796
+ /**
74797
+ * BalanceAndNonce nonce.
74798
+ * @member {number} nonce
74799
+ * @memberof org.dash.platform.dapi.v0.BalanceAndNonce
74800
+ * @instance
74801
+ */
74802
+ BalanceAndNonce.prototype.nonce = 0;
74803
+
74804
+ /**
74805
+ * Creates a new BalanceAndNonce instance using the specified properties.
74806
+ * @function create
74807
+ * @memberof org.dash.platform.dapi.v0.BalanceAndNonce
74808
+ * @static
74809
+ * @param {org.dash.platform.dapi.v0.IBalanceAndNonce=} [properties] Properties to set
74810
+ * @returns {org.dash.platform.dapi.v0.BalanceAndNonce} BalanceAndNonce instance
74811
+ */
74812
+ BalanceAndNonce.create = function create(properties) {
74813
+ return new BalanceAndNonce(properties);
74814
+ };
74815
+
74816
+ /**
74817
+ * Encodes the specified BalanceAndNonce message. Does not implicitly {@link org.dash.platform.dapi.v0.BalanceAndNonce.verify|verify} messages.
74818
+ * @function encode
74819
+ * @memberof org.dash.platform.dapi.v0.BalanceAndNonce
74820
+ * @static
74821
+ * @param {org.dash.platform.dapi.v0.IBalanceAndNonce} message BalanceAndNonce message or plain object to encode
74822
+ * @param {$protobuf.Writer} [writer] Writer to encode to
74823
+ * @returns {$protobuf.Writer} Writer
74824
+ */
74825
+ BalanceAndNonce.encode = function encode(message, writer) {
74826
+ if (!writer)
74827
+ writer = $Writer.create();
74828
+ if (message.balance != null && Object.hasOwnProperty.call(message, "balance"))
74829
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.balance);
74830
+ if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
74831
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.nonce);
74832
+ return writer;
74833
+ };
74834
+
74835
+ /**
74836
+ * Encodes the specified BalanceAndNonce message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.BalanceAndNonce.verify|verify} messages.
74837
+ * @function encodeDelimited
74838
+ * @memberof org.dash.platform.dapi.v0.BalanceAndNonce
74839
+ * @static
74840
+ * @param {org.dash.platform.dapi.v0.IBalanceAndNonce} message BalanceAndNonce message or plain object to encode
74841
+ * @param {$protobuf.Writer} [writer] Writer to encode to
74842
+ * @returns {$protobuf.Writer} Writer
74843
+ */
74844
+ BalanceAndNonce.encodeDelimited = function encodeDelimited(message, writer) {
74845
+ return this.encode(message, writer).ldelim();
74846
+ };
74847
+
74848
+ /**
74849
+ * Decodes a BalanceAndNonce message from the specified reader or buffer.
74850
+ * @function decode
74851
+ * @memberof org.dash.platform.dapi.v0.BalanceAndNonce
74852
+ * @static
74853
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
74854
+ * @param {number} [length] Message length if known beforehand
74855
+ * @returns {org.dash.platform.dapi.v0.BalanceAndNonce} BalanceAndNonce
74856
+ * @throws {Error} If the payload is not a reader or valid buffer
74857
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
74858
+ */
74859
+ BalanceAndNonce.decode = function decode(reader, length) {
74860
+ if (!(reader instanceof $Reader))
74861
+ reader = $Reader.create(reader);
74862
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.BalanceAndNonce();
74863
+ while (reader.pos < end) {
74864
+ var tag = reader.uint32();
74865
+ switch (tag >>> 3) {
74866
+ case 1:
74867
+ message.balance = reader.uint64();
74868
+ break;
74869
+ case 2:
74870
+ message.nonce = reader.uint32();
74871
+ break;
74872
+ default:
74873
+ reader.skipType(tag & 7);
74874
+ break;
74875
+ }
74876
+ }
74877
+ return message;
74878
+ };
74879
+
74880
+ /**
74881
+ * Decodes a BalanceAndNonce message from the specified reader or buffer, length delimited.
74882
+ * @function decodeDelimited
74883
+ * @memberof org.dash.platform.dapi.v0.BalanceAndNonce
74884
+ * @static
74885
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
74886
+ * @returns {org.dash.platform.dapi.v0.BalanceAndNonce} BalanceAndNonce
74887
+ * @throws {Error} If the payload is not a reader or valid buffer
74888
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
74889
+ */
74890
+ BalanceAndNonce.decodeDelimited = function decodeDelimited(reader) {
74891
+ if (!(reader instanceof $Reader))
74892
+ reader = new $Reader(reader);
74893
+ return this.decode(reader, reader.uint32());
74894
+ };
74895
+
74896
+ /**
74897
+ * Verifies a BalanceAndNonce message.
74898
+ * @function verify
74899
+ * @memberof org.dash.platform.dapi.v0.BalanceAndNonce
74900
+ * @static
74901
+ * @param {Object.<string,*>} message Plain object to verify
74902
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
74903
+ */
74904
+ BalanceAndNonce.verify = function verify(message) {
74905
+ if (typeof message !== "object" || message === null)
74906
+ return "object expected";
74907
+ if (message.balance != null && message.hasOwnProperty("balance"))
74908
+ if (!$util.isInteger(message.balance) && !(message.balance && $util.isInteger(message.balance.low) && $util.isInteger(message.balance.high)))
74909
+ return "balance: integer|Long expected";
74910
+ if (message.nonce != null && message.hasOwnProperty("nonce"))
74911
+ if (!$util.isInteger(message.nonce))
74912
+ return "nonce: integer expected";
74913
+ return null;
74914
+ };
74915
+
74916
+ /**
74917
+ * Creates a BalanceAndNonce message from a plain object. Also converts values to their respective internal types.
74918
+ * @function fromObject
74919
+ * @memberof org.dash.platform.dapi.v0.BalanceAndNonce
74920
+ * @static
74921
+ * @param {Object.<string,*>} object Plain object
74922
+ * @returns {org.dash.platform.dapi.v0.BalanceAndNonce} BalanceAndNonce
74923
+ */
74924
+ BalanceAndNonce.fromObject = function fromObject(object) {
74925
+ if (object instanceof $root.org.dash.platform.dapi.v0.BalanceAndNonce)
74926
+ return object;
74927
+ var message = new $root.org.dash.platform.dapi.v0.BalanceAndNonce();
74928
+ if (object.balance != null)
74929
+ if ($util.Long)
74930
+ (message.balance = $util.Long.fromValue(object.balance)).unsigned = true;
74931
+ else if (typeof object.balance === "string")
74932
+ message.balance = parseInt(object.balance, 10);
74933
+ else if (typeof object.balance === "number")
74934
+ message.balance = object.balance;
74935
+ else if (typeof object.balance === "object")
74936
+ message.balance = new $util.LongBits(object.balance.low >>> 0, object.balance.high >>> 0).toNumber(true);
74937
+ if (object.nonce != null)
74938
+ message.nonce = object.nonce >>> 0;
74939
+ return message;
74940
+ };
74941
+
74942
+ /**
74943
+ * Creates a plain object from a BalanceAndNonce message. Also converts values to other types if specified.
74944
+ * @function toObject
74945
+ * @memberof org.dash.platform.dapi.v0.BalanceAndNonce
74946
+ * @static
74947
+ * @param {org.dash.platform.dapi.v0.BalanceAndNonce} message BalanceAndNonce
74948
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
74949
+ * @returns {Object.<string,*>} Plain object
74950
+ */
74951
+ BalanceAndNonce.toObject = function toObject(message, options) {
74952
+ if (!options)
74953
+ options = {};
74954
+ var object = {};
74955
+ if (options.defaults) {
74956
+ if ($util.Long) {
74957
+ var long = new $util.Long(0, 0, true);
74958
+ object.balance = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
74959
+ } else
74960
+ object.balance = options.longs === String ? "0" : 0;
74961
+ object.nonce = 0;
74962
+ }
74963
+ if (message.balance != null && message.hasOwnProperty("balance"))
74964
+ if (typeof message.balance === "number")
74965
+ object.balance = options.longs === String ? String(message.balance) : message.balance;
74966
+ else
74967
+ object.balance = options.longs === String ? $util.Long.prototype.toString.call(message.balance) : options.longs === Number ? new $util.LongBits(message.balance.low >>> 0, message.balance.high >>> 0).toNumber(true) : message.balance;
74968
+ if (message.nonce != null && message.hasOwnProperty("nonce"))
74969
+ object.nonce = message.nonce;
74970
+ return object;
74971
+ };
74972
+
74973
+ /**
74974
+ * Converts this BalanceAndNonce to JSON.
74975
+ * @function toJSON
74976
+ * @memberof org.dash.platform.dapi.v0.BalanceAndNonce
74977
+ * @instance
74978
+ * @returns {Object.<string,*>} JSON object
74979
+ */
74980
+ BalanceAndNonce.prototype.toJSON = function toJSON() {
74981
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
74982
+ };
74983
+
74984
+ return BalanceAndNonce;
74985
+ })();
74986
+
74987
+ v0.AddressInfoEntries = (function() {
74988
+
74989
+ /**
74990
+ * Properties of an AddressInfoEntries.
74991
+ * @memberof org.dash.platform.dapi.v0
74992
+ * @interface IAddressInfoEntries
74993
+ * @property {Array.<org.dash.platform.dapi.v0.IAddressInfoEntry>|null} [addressInfoEntries] AddressInfoEntries addressInfoEntries
74994
+ */
74995
+
74996
+ /**
74997
+ * Constructs a new AddressInfoEntries.
74998
+ * @memberof org.dash.platform.dapi.v0
74999
+ * @classdesc Represents an AddressInfoEntries.
75000
+ * @implements IAddressInfoEntries
75001
+ * @constructor
75002
+ * @param {org.dash.platform.dapi.v0.IAddressInfoEntries=} [properties] Properties to set
75003
+ */
75004
+ function AddressInfoEntries(properties) {
75005
+ this.addressInfoEntries = [];
75006
+ if (properties)
75007
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
75008
+ if (properties[keys[i]] != null)
75009
+ this[keys[i]] = properties[keys[i]];
75010
+ }
75011
+
75012
+ /**
75013
+ * AddressInfoEntries addressInfoEntries.
75014
+ * @member {Array.<org.dash.platform.dapi.v0.IAddressInfoEntry>} addressInfoEntries
75015
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntries
75016
+ * @instance
75017
+ */
75018
+ AddressInfoEntries.prototype.addressInfoEntries = $util.emptyArray;
75019
+
75020
+ /**
75021
+ * Creates a new AddressInfoEntries instance using the specified properties.
75022
+ * @function create
75023
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntries
75024
+ * @static
75025
+ * @param {org.dash.platform.dapi.v0.IAddressInfoEntries=} [properties] Properties to set
75026
+ * @returns {org.dash.platform.dapi.v0.AddressInfoEntries} AddressInfoEntries instance
75027
+ */
75028
+ AddressInfoEntries.create = function create(properties) {
75029
+ return new AddressInfoEntries(properties);
75030
+ };
75031
+
75032
+ /**
75033
+ * Encodes the specified AddressInfoEntries message. Does not implicitly {@link org.dash.platform.dapi.v0.AddressInfoEntries.verify|verify} messages.
75034
+ * @function encode
75035
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntries
75036
+ * @static
75037
+ * @param {org.dash.platform.dapi.v0.IAddressInfoEntries} message AddressInfoEntries message or plain object to encode
75038
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75039
+ * @returns {$protobuf.Writer} Writer
75040
+ */
75041
+ AddressInfoEntries.encode = function encode(message, writer) {
75042
+ if (!writer)
75043
+ writer = $Writer.create();
75044
+ if (message.addressInfoEntries != null && message.addressInfoEntries.length)
75045
+ for (var i = 0; i < message.addressInfoEntries.length; ++i)
75046
+ $root.org.dash.platform.dapi.v0.AddressInfoEntry.encode(message.addressInfoEntries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
75047
+ return writer;
75048
+ };
75049
+
75050
+ /**
75051
+ * Encodes the specified AddressInfoEntries message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.AddressInfoEntries.verify|verify} messages.
75052
+ * @function encodeDelimited
75053
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntries
75054
+ * @static
75055
+ * @param {org.dash.platform.dapi.v0.IAddressInfoEntries} message AddressInfoEntries message or plain object to encode
75056
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75057
+ * @returns {$protobuf.Writer} Writer
75058
+ */
75059
+ AddressInfoEntries.encodeDelimited = function encodeDelimited(message, writer) {
75060
+ return this.encode(message, writer).ldelim();
75061
+ };
75062
+
75063
+ /**
75064
+ * Decodes an AddressInfoEntries message from the specified reader or buffer.
75065
+ * @function decode
75066
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntries
75067
+ * @static
75068
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75069
+ * @param {number} [length] Message length if known beforehand
75070
+ * @returns {org.dash.platform.dapi.v0.AddressInfoEntries} AddressInfoEntries
75071
+ * @throws {Error} If the payload is not a reader or valid buffer
75072
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
75073
+ */
75074
+ AddressInfoEntries.decode = function decode(reader, length) {
75075
+ if (!(reader instanceof $Reader))
75076
+ reader = $Reader.create(reader);
75077
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.AddressInfoEntries();
75078
+ while (reader.pos < end) {
75079
+ var tag = reader.uint32();
75080
+ switch (tag >>> 3) {
75081
+ case 1:
75082
+ if (!(message.addressInfoEntries && message.addressInfoEntries.length))
75083
+ message.addressInfoEntries = [];
75084
+ message.addressInfoEntries.push($root.org.dash.platform.dapi.v0.AddressInfoEntry.decode(reader, reader.uint32()));
75085
+ break;
75086
+ default:
75087
+ reader.skipType(tag & 7);
75088
+ break;
75089
+ }
75090
+ }
75091
+ return message;
75092
+ };
75093
+
75094
+ /**
75095
+ * Decodes an AddressInfoEntries message from the specified reader or buffer, length delimited.
75096
+ * @function decodeDelimited
75097
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntries
75098
+ * @static
75099
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75100
+ * @returns {org.dash.platform.dapi.v0.AddressInfoEntries} AddressInfoEntries
75101
+ * @throws {Error} If the payload is not a reader or valid buffer
75102
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
75103
+ */
75104
+ AddressInfoEntries.decodeDelimited = function decodeDelimited(reader) {
75105
+ if (!(reader instanceof $Reader))
75106
+ reader = new $Reader(reader);
75107
+ return this.decode(reader, reader.uint32());
75108
+ };
75109
+
75110
+ /**
75111
+ * Verifies an AddressInfoEntries message.
75112
+ * @function verify
75113
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntries
75114
+ * @static
75115
+ * @param {Object.<string,*>} message Plain object to verify
75116
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
75117
+ */
75118
+ AddressInfoEntries.verify = function verify(message) {
75119
+ if (typeof message !== "object" || message === null)
75120
+ return "object expected";
75121
+ if (message.addressInfoEntries != null && message.hasOwnProperty("addressInfoEntries")) {
75122
+ if (!Array.isArray(message.addressInfoEntries))
75123
+ return "addressInfoEntries: array expected";
75124
+ for (var i = 0; i < message.addressInfoEntries.length; ++i) {
75125
+ var error = $root.org.dash.platform.dapi.v0.AddressInfoEntry.verify(message.addressInfoEntries[i]);
75126
+ if (error)
75127
+ return "addressInfoEntries." + error;
75128
+ }
75129
+ }
75130
+ return null;
75131
+ };
75132
+
75133
+ /**
75134
+ * Creates an AddressInfoEntries message from a plain object. Also converts values to their respective internal types.
75135
+ * @function fromObject
75136
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntries
75137
+ * @static
75138
+ * @param {Object.<string,*>} object Plain object
75139
+ * @returns {org.dash.platform.dapi.v0.AddressInfoEntries} AddressInfoEntries
75140
+ */
75141
+ AddressInfoEntries.fromObject = function fromObject(object) {
75142
+ if (object instanceof $root.org.dash.platform.dapi.v0.AddressInfoEntries)
75143
+ return object;
75144
+ var message = new $root.org.dash.platform.dapi.v0.AddressInfoEntries();
75145
+ if (object.addressInfoEntries) {
75146
+ if (!Array.isArray(object.addressInfoEntries))
75147
+ throw TypeError(".org.dash.platform.dapi.v0.AddressInfoEntries.addressInfoEntries: array expected");
75148
+ message.addressInfoEntries = [];
75149
+ for (var i = 0; i < object.addressInfoEntries.length; ++i) {
75150
+ if (typeof object.addressInfoEntries[i] !== "object")
75151
+ throw TypeError(".org.dash.platform.dapi.v0.AddressInfoEntries.addressInfoEntries: object expected");
75152
+ message.addressInfoEntries[i] = $root.org.dash.platform.dapi.v0.AddressInfoEntry.fromObject(object.addressInfoEntries[i]);
75153
+ }
75154
+ }
75155
+ return message;
75156
+ };
75157
+
75158
+ /**
75159
+ * Creates a plain object from an AddressInfoEntries message. Also converts values to other types if specified.
75160
+ * @function toObject
75161
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntries
75162
+ * @static
75163
+ * @param {org.dash.platform.dapi.v0.AddressInfoEntries} message AddressInfoEntries
75164
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
75165
+ * @returns {Object.<string,*>} Plain object
75166
+ */
75167
+ AddressInfoEntries.toObject = function toObject(message, options) {
75168
+ if (!options)
75169
+ options = {};
75170
+ var object = {};
75171
+ if (options.arrays || options.defaults)
75172
+ object.addressInfoEntries = [];
75173
+ if (message.addressInfoEntries && message.addressInfoEntries.length) {
75174
+ object.addressInfoEntries = [];
75175
+ for (var j = 0; j < message.addressInfoEntries.length; ++j)
75176
+ object.addressInfoEntries[j] = $root.org.dash.platform.dapi.v0.AddressInfoEntry.toObject(message.addressInfoEntries[j], options);
75177
+ }
75178
+ return object;
75179
+ };
75180
+
75181
+ /**
75182
+ * Converts this AddressInfoEntries to JSON.
75183
+ * @function toJSON
75184
+ * @memberof org.dash.platform.dapi.v0.AddressInfoEntries
75185
+ * @instance
75186
+ * @returns {Object.<string,*>} JSON object
75187
+ */
75188
+ AddressInfoEntries.prototype.toJSON = function toJSON() {
75189
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
75190
+ };
75191
+
75192
+ return AddressInfoEntries;
75193
+ })();
75194
+
75195
+ v0.GetAddressInfoResponse = (function() {
75196
+
75197
+ /**
75198
+ * Properties of a GetAddressInfoResponse.
75199
+ * @memberof org.dash.platform.dapi.v0
75200
+ * @interface IGetAddressInfoResponse
75201
+ * @property {org.dash.platform.dapi.v0.GetAddressInfoResponse.IGetAddressInfoResponseV0|null} [v0] GetAddressInfoResponse v0
75202
+ */
75203
+
75204
+ /**
75205
+ * Constructs a new GetAddressInfoResponse.
75206
+ * @memberof org.dash.platform.dapi.v0
75207
+ * @classdesc Represents a GetAddressInfoResponse.
75208
+ * @implements IGetAddressInfoResponse
75209
+ * @constructor
75210
+ * @param {org.dash.platform.dapi.v0.IGetAddressInfoResponse=} [properties] Properties to set
75211
+ */
75212
+ function GetAddressInfoResponse(properties) {
75213
+ if (properties)
75214
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
75215
+ if (properties[keys[i]] != null)
75216
+ this[keys[i]] = properties[keys[i]];
75217
+ }
75218
+
75219
+ /**
75220
+ * GetAddressInfoResponse v0.
75221
+ * @member {org.dash.platform.dapi.v0.GetAddressInfoResponse.IGetAddressInfoResponseV0|null|undefined} v0
75222
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
75223
+ * @instance
75224
+ */
75225
+ GetAddressInfoResponse.prototype.v0 = null;
75226
+
75227
+ // OneOf field names bound to virtual getters and setters
75228
+ var $oneOfFields;
75229
+
75230
+ /**
75231
+ * GetAddressInfoResponse version.
75232
+ * @member {"v0"|undefined} version
75233
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
75234
+ * @instance
75235
+ */
75236
+ Object.defineProperty(GetAddressInfoResponse.prototype, "version", {
75237
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
75238
+ set: $util.oneOfSetter($oneOfFields)
75239
+ });
75240
+
75241
+ /**
75242
+ * Creates a new GetAddressInfoResponse instance using the specified properties.
75243
+ * @function create
75244
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
75245
+ * @static
75246
+ * @param {org.dash.platform.dapi.v0.IGetAddressInfoResponse=} [properties] Properties to set
75247
+ * @returns {org.dash.platform.dapi.v0.GetAddressInfoResponse} GetAddressInfoResponse instance
75248
+ */
75249
+ GetAddressInfoResponse.create = function create(properties) {
75250
+ return new GetAddressInfoResponse(properties);
75251
+ };
75252
+
75253
+ /**
75254
+ * Encodes the specified GetAddressInfoResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressInfoResponse.verify|verify} messages.
75255
+ * @function encode
75256
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
75257
+ * @static
75258
+ * @param {org.dash.platform.dapi.v0.IGetAddressInfoResponse} message GetAddressInfoResponse message or plain object to encode
75259
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75260
+ * @returns {$protobuf.Writer} Writer
75261
+ */
75262
+ GetAddressInfoResponse.encode = function encode(message, writer) {
75263
+ if (!writer)
75264
+ writer = $Writer.create();
75265
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
75266
+ $root.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
75267
+ return writer;
75268
+ };
75269
+
75270
+ /**
75271
+ * Encodes the specified GetAddressInfoResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressInfoResponse.verify|verify} messages.
75272
+ * @function encodeDelimited
75273
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
75274
+ * @static
75275
+ * @param {org.dash.platform.dapi.v0.IGetAddressInfoResponse} message GetAddressInfoResponse message or plain object to encode
75276
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75277
+ * @returns {$protobuf.Writer} Writer
75278
+ */
75279
+ GetAddressInfoResponse.encodeDelimited = function encodeDelimited(message, writer) {
75280
+ return this.encode(message, writer).ldelim();
75281
+ };
75282
+
75283
+ /**
75284
+ * Decodes a GetAddressInfoResponse message from the specified reader or buffer.
75285
+ * @function decode
75286
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
75287
+ * @static
75288
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75289
+ * @param {number} [length] Message length if known beforehand
75290
+ * @returns {org.dash.platform.dapi.v0.GetAddressInfoResponse} GetAddressInfoResponse
75291
+ * @throws {Error} If the payload is not a reader or valid buffer
75292
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
75293
+ */
75294
+ GetAddressInfoResponse.decode = function decode(reader, length) {
75295
+ if (!(reader instanceof $Reader))
75296
+ reader = $Reader.create(reader);
75297
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressInfoResponse();
75298
+ while (reader.pos < end) {
75299
+ var tag = reader.uint32();
75300
+ switch (tag >>> 3) {
75301
+ case 1:
75302
+ message.v0 = $root.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.decode(reader, reader.uint32());
75303
+ break;
75304
+ default:
75305
+ reader.skipType(tag & 7);
75306
+ break;
75307
+ }
75308
+ }
75309
+ return message;
75310
+ };
75311
+
75312
+ /**
75313
+ * Decodes a GetAddressInfoResponse message from the specified reader or buffer, length delimited.
75314
+ * @function decodeDelimited
75315
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
75316
+ * @static
75317
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75318
+ * @returns {org.dash.platform.dapi.v0.GetAddressInfoResponse} GetAddressInfoResponse
75319
+ * @throws {Error} If the payload is not a reader or valid buffer
75320
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
75321
+ */
75322
+ GetAddressInfoResponse.decodeDelimited = function decodeDelimited(reader) {
75323
+ if (!(reader instanceof $Reader))
75324
+ reader = new $Reader(reader);
75325
+ return this.decode(reader, reader.uint32());
75326
+ };
75327
+
75328
+ /**
75329
+ * Verifies a GetAddressInfoResponse message.
75330
+ * @function verify
75331
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
75332
+ * @static
75333
+ * @param {Object.<string,*>} message Plain object to verify
75334
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
75335
+ */
75336
+ GetAddressInfoResponse.verify = function verify(message) {
75337
+ if (typeof message !== "object" || message === null)
75338
+ return "object expected";
75339
+ var properties = {};
75340
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
75341
+ properties.version = 1;
75342
+ {
75343
+ var error = $root.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.verify(message.v0);
75344
+ if (error)
75345
+ return "v0." + error;
75346
+ }
75347
+ }
75348
+ return null;
75349
+ };
75350
+
75351
+ /**
75352
+ * Creates a GetAddressInfoResponse message from a plain object. Also converts values to their respective internal types.
75353
+ * @function fromObject
75354
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
75355
+ * @static
75356
+ * @param {Object.<string,*>} object Plain object
75357
+ * @returns {org.dash.platform.dapi.v0.GetAddressInfoResponse} GetAddressInfoResponse
75358
+ */
75359
+ GetAddressInfoResponse.fromObject = function fromObject(object) {
75360
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressInfoResponse)
75361
+ return object;
75362
+ var message = new $root.org.dash.platform.dapi.v0.GetAddressInfoResponse();
75363
+ if (object.v0 != null) {
75364
+ if (typeof object.v0 !== "object")
75365
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressInfoResponse.v0: object expected");
75366
+ message.v0 = $root.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.fromObject(object.v0);
75367
+ }
75368
+ return message;
75369
+ };
75370
+
75371
+ /**
75372
+ * Creates a plain object from a GetAddressInfoResponse message. Also converts values to other types if specified.
75373
+ * @function toObject
75374
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
75375
+ * @static
75376
+ * @param {org.dash.platform.dapi.v0.GetAddressInfoResponse} message GetAddressInfoResponse
75377
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
75378
+ * @returns {Object.<string,*>} Plain object
75379
+ */
75380
+ GetAddressInfoResponse.toObject = function toObject(message, options) {
75381
+ if (!options)
75382
+ options = {};
75383
+ var object = {};
75384
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
75385
+ object.v0 = $root.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.toObject(message.v0, options);
75386
+ if (options.oneofs)
75387
+ object.version = "v0";
75388
+ }
75389
+ return object;
75390
+ };
75391
+
75392
+ /**
75393
+ * Converts this GetAddressInfoResponse to JSON.
75394
+ * @function toJSON
75395
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
75396
+ * @instance
75397
+ * @returns {Object.<string,*>} JSON object
75398
+ */
75399
+ GetAddressInfoResponse.prototype.toJSON = function toJSON() {
75400
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
75401
+ };
75402
+
75403
+ GetAddressInfoResponse.GetAddressInfoResponseV0 = (function() {
75404
+
75405
+ /**
75406
+ * Properties of a GetAddressInfoResponseV0.
75407
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
75408
+ * @interface IGetAddressInfoResponseV0
75409
+ * @property {org.dash.platform.dapi.v0.IAddressInfoEntry|null} [addressInfoEntry] GetAddressInfoResponseV0 addressInfoEntry
75410
+ * @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetAddressInfoResponseV0 proof
75411
+ * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetAddressInfoResponseV0 metadata
75412
+ */
75413
+
75414
+ /**
75415
+ * Constructs a new GetAddressInfoResponseV0.
75416
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
75417
+ * @classdesc Represents a GetAddressInfoResponseV0.
75418
+ * @implements IGetAddressInfoResponseV0
75419
+ * @constructor
75420
+ * @param {org.dash.platform.dapi.v0.GetAddressInfoResponse.IGetAddressInfoResponseV0=} [properties] Properties to set
75421
+ */
75422
+ function GetAddressInfoResponseV0(properties) {
75423
+ if (properties)
75424
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
75425
+ if (properties[keys[i]] != null)
75426
+ this[keys[i]] = properties[keys[i]];
75427
+ }
75428
+
75429
+ /**
75430
+ * GetAddressInfoResponseV0 addressInfoEntry.
75431
+ * @member {org.dash.platform.dapi.v0.IAddressInfoEntry|null|undefined} addressInfoEntry
75432
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
75433
+ * @instance
75434
+ */
75435
+ GetAddressInfoResponseV0.prototype.addressInfoEntry = null;
75436
+
75437
+ /**
75438
+ * GetAddressInfoResponseV0 proof.
75439
+ * @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
75440
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
75441
+ * @instance
75442
+ */
75443
+ GetAddressInfoResponseV0.prototype.proof = null;
75444
+
75445
+ /**
75446
+ * GetAddressInfoResponseV0 metadata.
75447
+ * @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
75448
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
75449
+ * @instance
75450
+ */
75451
+ GetAddressInfoResponseV0.prototype.metadata = null;
75452
+
75453
+ // OneOf field names bound to virtual getters and setters
75454
+ var $oneOfFields;
75455
+
75456
+ /**
75457
+ * GetAddressInfoResponseV0 result.
75458
+ * @member {"addressInfoEntry"|"proof"|undefined} result
75459
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
75460
+ * @instance
75461
+ */
75462
+ Object.defineProperty(GetAddressInfoResponseV0.prototype, "result", {
75463
+ get: $util.oneOfGetter($oneOfFields = ["addressInfoEntry", "proof"]),
75464
+ set: $util.oneOfSetter($oneOfFields)
75465
+ });
75466
+
75467
+ /**
75468
+ * Creates a new GetAddressInfoResponseV0 instance using the specified properties.
75469
+ * @function create
75470
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
75471
+ * @static
75472
+ * @param {org.dash.platform.dapi.v0.GetAddressInfoResponse.IGetAddressInfoResponseV0=} [properties] Properties to set
75473
+ * @returns {org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0} GetAddressInfoResponseV0 instance
75474
+ */
75475
+ GetAddressInfoResponseV0.create = function create(properties) {
75476
+ return new GetAddressInfoResponseV0(properties);
75477
+ };
75478
+
75479
+ /**
75480
+ * Encodes the specified GetAddressInfoResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.verify|verify} messages.
75481
+ * @function encode
75482
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
75483
+ * @static
75484
+ * @param {org.dash.platform.dapi.v0.GetAddressInfoResponse.IGetAddressInfoResponseV0} message GetAddressInfoResponseV0 message or plain object to encode
75485
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75486
+ * @returns {$protobuf.Writer} Writer
75487
+ */
75488
+ GetAddressInfoResponseV0.encode = function encode(message, writer) {
75489
+ if (!writer)
75490
+ writer = $Writer.create();
75491
+ if (message.addressInfoEntry != null && Object.hasOwnProperty.call(message, "addressInfoEntry"))
75492
+ $root.org.dash.platform.dapi.v0.AddressInfoEntry.encode(message.addressInfoEntry, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
75493
+ if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
75494
+ $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
75495
+ if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
75496
+ $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
75497
+ return writer;
75498
+ };
75499
+
75500
+ /**
75501
+ * Encodes the specified GetAddressInfoResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.verify|verify} messages.
75502
+ * @function encodeDelimited
75503
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
75504
+ * @static
75505
+ * @param {org.dash.platform.dapi.v0.GetAddressInfoResponse.IGetAddressInfoResponseV0} message GetAddressInfoResponseV0 message or plain object to encode
75506
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75507
+ * @returns {$protobuf.Writer} Writer
75508
+ */
75509
+ GetAddressInfoResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
75510
+ return this.encode(message, writer).ldelim();
75511
+ };
75512
+
75513
+ /**
75514
+ * Decodes a GetAddressInfoResponseV0 message from the specified reader or buffer.
75515
+ * @function decode
75516
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
75517
+ * @static
75518
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75519
+ * @param {number} [length] Message length if known beforehand
75520
+ * @returns {org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0} GetAddressInfoResponseV0
75521
+ * @throws {Error} If the payload is not a reader or valid buffer
75522
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
75523
+ */
75524
+ GetAddressInfoResponseV0.decode = function decode(reader, length) {
75525
+ if (!(reader instanceof $Reader))
75526
+ reader = $Reader.create(reader);
75527
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0();
75528
+ while (reader.pos < end) {
75529
+ var tag = reader.uint32();
75530
+ switch (tag >>> 3) {
75531
+ case 1:
75532
+ message.addressInfoEntry = $root.org.dash.platform.dapi.v0.AddressInfoEntry.decode(reader, reader.uint32());
75533
+ break;
75534
+ case 2:
75535
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
75536
+ break;
75537
+ case 3:
75538
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
75539
+ break;
75540
+ default:
75541
+ reader.skipType(tag & 7);
75542
+ break;
75543
+ }
75544
+ }
75545
+ return message;
75546
+ };
75547
+
75548
+ /**
75549
+ * Decodes a GetAddressInfoResponseV0 message from the specified reader or buffer, length delimited.
75550
+ * @function decodeDelimited
75551
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
75552
+ * @static
75553
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75554
+ * @returns {org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0} GetAddressInfoResponseV0
75555
+ * @throws {Error} If the payload is not a reader or valid buffer
75556
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
75557
+ */
75558
+ GetAddressInfoResponseV0.decodeDelimited = function decodeDelimited(reader) {
75559
+ if (!(reader instanceof $Reader))
75560
+ reader = new $Reader(reader);
75561
+ return this.decode(reader, reader.uint32());
75562
+ };
75563
+
75564
+ /**
75565
+ * Verifies a GetAddressInfoResponseV0 message.
75566
+ * @function verify
75567
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
75568
+ * @static
75569
+ * @param {Object.<string,*>} message Plain object to verify
75570
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
75571
+ */
75572
+ GetAddressInfoResponseV0.verify = function verify(message) {
75573
+ if (typeof message !== "object" || message === null)
75574
+ return "object expected";
75575
+ var properties = {};
75576
+ if (message.addressInfoEntry != null && message.hasOwnProperty("addressInfoEntry")) {
75577
+ properties.result = 1;
75578
+ {
75579
+ var error = $root.org.dash.platform.dapi.v0.AddressInfoEntry.verify(message.addressInfoEntry);
75580
+ if (error)
75581
+ return "addressInfoEntry." + error;
75582
+ }
75583
+ }
75584
+ if (message.proof != null && message.hasOwnProperty("proof")) {
75585
+ if (properties.result === 1)
75586
+ return "result: multiple values";
75587
+ properties.result = 1;
75588
+ {
75589
+ var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
75590
+ if (error)
75591
+ return "proof." + error;
75592
+ }
75593
+ }
75594
+ if (message.metadata != null && message.hasOwnProperty("metadata")) {
75595
+ var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
75596
+ if (error)
75597
+ return "metadata." + error;
75598
+ }
75599
+ return null;
75600
+ };
75601
+
75602
+ /**
75603
+ * Creates a GetAddressInfoResponseV0 message from a plain object. Also converts values to their respective internal types.
75604
+ * @function fromObject
75605
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
75606
+ * @static
75607
+ * @param {Object.<string,*>} object Plain object
75608
+ * @returns {org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0} GetAddressInfoResponseV0
75609
+ */
75610
+ GetAddressInfoResponseV0.fromObject = function fromObject(object) {
75611
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0)
75612
+ return object;
75613
+ var message = new $root.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0();
75614
+ if (object.addressInfoEntry != null) {
75615
+ if (typeof object.addressInfoEntry !== "object")
75616
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.addressInfoEntry: object expected");
75617
+ message.addressInfoEntry = $root.org.dash.platform.dapi.v0.AddressInfoEntry.fromObject(object.addressInfoEntry);
75618
+ }
75619
+ if (object.proof != null) {
75620
+ if (typeof object.proof !== "object")
75621
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.proof: object expected");
75622
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
75623
+ }
75624
+ if (object.metadata != null) {
75625
+ if (typeof object.metadata !== "object")
75626
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.metadata: object expected");
75627
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
75628
+ }
75629
+ return message;
75630
+ };
75631
+
75632
+ /**
75633
+ * Creates a plain object from a GetAddressInfoResponseV0 message. Also converts values to other types if specified.
75634
+ * @function toObject
75635
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
75636
+ * @static
75637
+ * @param {org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0} message GetAddressInfoResponseV0
75638
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
75639
+ * @returns {Object.<string,*>} Plain object
75640
+ */
75641
+ GetAddressInfoResponseV0.toObject = function toObject(message, options) {
75642
+ if (!options)
75643
+ options = {};
75644
+ var object = {};
75645
+ if (options.defaults)
75646
+ object.metadata = null;
75647
+ if (message.addressInfoEntry != null && message.hasOwnProperty("addressInfoEntry")) {
75648
+ object.addressInfoEntry = $root.org.dash.platform.dapi.v0.AddressInfoEntry.toObject(message.addressInfoEntry, options);
75649
+ if (options.oneofs)
75650
+ object.result = "addressInfoEntry";
75651
+ }
75652
+ if (message.proof != null && message.hasOwnProperty("proof")) {
75653
+ object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
75654
+ if (options.oneofs)
75655
+ object.result = "proof";
75656
+ }
75657
+ if (message.metadata != null && message.hasOwnProperty("metadata"))
75658
+ object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
75659
+ return object;
75660
+ };
75661
+
75662
+ /**
75663
+ * Converts this GetAddressInfoResponseV0 to JSON.
75664
+ * @function toJSON
75665
+ * @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
75666
+ * @instance
75667
+ * @returns {Object.<string,*>} JSON object
75668
+ */
75669
+ GetAddressInfoResponseV0.prototype.toJSON = function toJSON() {
75670
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
75671
+ };
75672
+
75673
+ return GetAddressInfoResponseV0;
75674
+ })();
75675
+
75676
+ return GetAddressInfoResponse;
75677
+ })();
75678
+
75679
+ v0.GetAddressesInfosRequest = (function() {
75680
+
75681
+ /**
75682
+ * Properties of a GetAddressesInfosRequest.
75683
+ * @memberof org.dash.platform.dapi.v0
75684
+ * @interface IGetAddressesInfosRequest
75685
+ * @property {org.dash.platform.dapi.v0.GetAddressesInfosRequest.IGetAddressesInfosRequestV0|null} [v0] GetAddressesInfosRequest v0
75686
+ */
75687
+
75688
+ /**
75689
+ * Constructs a new GetAddressesInfosRequest.
75690
+ * @memberof org.dash.platform.dapi.v0
75691
+ * @classdesc Represents a GetAddressesInfosRequest.
75692
+ * @implements IGetAddressesInfosRequest
75693
+ * @constructor
75694
+ * @param {org.dash.platform.dapi.v0.IGetAddressesInfosRequest=} [properties] Properties to set
75695
+ */
75696
+ function GetAddressesInfosRequest(properties) {
75697
+ if (properties)
75698
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
75699
+ if (properties[keys[i]] != null)
75700
+ this[keys[i]] = properties[keys[i]];
75701
+ }
75702
+
75703
+ /**
75704
+ * GetAddressesInfosRequest v0.
75705
+ * @member {org.dash.platform.dapi.v0.GetAddressesInfosRequest.IGetAddressesInfosRequestV0|null|undefined} v0
75706
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
75707
+ * @instance
75708
+ */
75709
+ GetAddressesInfosRequest.prototype.v0 = null;
75710
+
75711
+ // OneOf field names bound to virtual getters and setters
75712
+ var $oneOfFields;
75713
+
75714
+ /**
75715
+ * GetAddressesInfosRequest version.
75716
+ * @member {"v0"|undefined} version
75717
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
75718
+ * @instance
75719
+ */
75720
+ Object.defineProperty(GetAddressesInfosRequest.prototype, "version", {
75721
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
75722
+ set: $util.oneOfSetter($oneOfFields)
75723
+ });
75724
+
75725
+ /**
75726
+ * Creates a new GetAddressesInfosRequest instance using the specified properties.
75727
+ * @function create
75728
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
75729
+ * @static
75730
+ * @param {org.dash.platform.dapi.v0.IGetAddressesInfosRequest=} [properties] Properties to set
75731
+ * @returns {org.dash.platform.dapi.v0.GetAddressesInfosRequest} GetAddressesInfosRequest instance
75732
+ */
75733
+ GetAddressesInfosRequest.create = function create(properties) {
75734
+ return new GetAddressesInfosRequest(properties);
75735
+ };
75736
+
75737
+ /**
75738
+ * Encodes the specified GetAddressesInfosRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesInfosRequest.verify|verify} messages.
75739
+ * @function encode
75740
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
75741
+ * @static
75742
+ * @param {org.dash.platform.dapi.v0.IGetAddressesInfosRequest} message GetAddressesInfosRequest message or plain object to encode
75743
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75744
+ * @returns {$protobuf.Writer} Writer
75745
+ */
75746
+ GetAddressesInfosRequest.encode = function encode(message, writer) {
75747
+ if (!writer)
75748
+ writer = $Writer.create();
75749
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
75750
+ $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
75751
+ return writer;
75752
+ };
75753
+
75754
+ /**
75755
+ * Encodes the specified GetAddressesInfosRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesInfosRequest.verify|verify} messages.
75756
+ * @function encodeDelimited
75757
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
75758
+ * @static
75759
+ * @param {org.dash.platform.dapi.v0.IGetAddressesInfosRequest} message GetAddressesInfosRequest message or plain object to encode
75760
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75761
+ * @returns {$protobuf.Writer} Writer
75762
+ */
75763
+ GetAddressesInfosRequest.encodeDelimited = function encodeDelimited(message, writer) {
75764
+ return this.encode(message, writer).ldelim();
75765
+ };
75766
+
75767
+ /**
75768
+ * Decodes a GetAddressesInfosRequest message from the specified reader or buffer.
75769
+ * @function decode
75770
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
75771
+ * @static
75772
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75773
+ * @param {number} [length] Message length if known beforehand
75774
+ * @returns {org.dash.platform.dapi.v0.GetAddressesInfosRequest} GetAddressesInfosRequest
75775
+ * @throws {Error} If the payload is not a reader or valid buffer
75776
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
75777
+ */
75778
+ GetAddressesInfosRequest.decode = function decode(reader, length) {
75779
+ if (!(reader instanceof $Reader))
75780
+ reader = $Reader.create(reader);
75781
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest();
75782
+ while (reader.pos < end) {
75783
+ var tag = reader.uint32();
75784
+ switch (tag >>> 3) {
75785
+ case 1:
75786
+ message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0.decode(reader, reader.uint32());
75787
+ break;
75788
+ default:
75789
+ reader.skipType(tag & 7);
75790
+ break;
75791
+ }
75792
+ }
75793
+ return message;
75794
+ };
75795
+
75796
+ /**
75797
+ * Decodes a GetAddressesInfosRequest message from the specified reader or buffer, length delimited.
75798
+ * @function decodeDelimited
75799
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
75800
+ * @static
75801
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75802
+ * @returns {org.dash.platform.dapi.v0.GetAddressesInfosRequest} GetAddressesInfosRequest
75803
+ * @throws {Error} If the payload is not a reader or valid buffer
75804
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
75805
+ */
75806
+ GetAddressesInfosRequest.decodeDelimited = function decodeDelimited(reader) {
75807
+ if (!(reader instanceof $Reader))
75808
+ reader = new $Reader(reader);
75809
+ return this.decode(reader, reader.uint32());
75810
+ };
75811
+
75812
+ /**
75813
+ * Verifies a GetAddressesInfosRequest message.
75814
+ * @function verify
75815
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
75816
+ * @static
75817
+ * @param {Object.<string,*>} message Plain object to verify
75818
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
75819
+ */
75820
+ GetAddressesInfosRequest.verify = function verify(message) {
75821
+ if (typeof message !== "object" || message === null)
75822
+ return "object expected";
75823
+ var properties = {};
75824
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
75825
+ properties.version = 1;
75826
+ {
75827
+ var error = $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0.verify(message.v0);
75828
+ if (error)
75829
+ return "v0." + error;
75830
+ }
75831
+ }
75832
+ return null;
75833
+ };
75834
+
75835
+ /**
75836
+ * Creates a GetAddressesInfosRequest message from a plain object. Also converts values to their respective internal types.
75837
+ * @function fromObject
75838
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
75839
+ * @static
75840
+ * @param {Object.<string,*>} object Plain object
75841
+ * @returns {org.dash.platform.dapi.v0.GetAddressesInfosRequest} GetAddressesInfosRequest
75842
+ */
75843
+ GetAddressesInfosRequest.fromObject = function fromObject(object) {
75844
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest)
75845
+ return object;
75846
+ var message = new $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest();
75847
+ if (object.v0 != null) {
75848
+ if (typeof object.v0 !== "object")
75849
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressesInfosRequest.v0: object expected");
75850
+ message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0.fromObject(object.v0);
75851
+ }
75852
+ return message;
75853
+ };
75854
+
75855
+ /**
75856
+ * Creates a plain object from a GetAddressesInfosRequest message. Also converts values to other types if specified.
75857
+ * @function toObject
75858
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
75859
+ * @static
75860
+ * @param {org.dash.platform.dapi.v0.GetAddressesInfosRequest} message GetAddressesInfosRequest
75861
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
75862
+ * @returns {Object.<string,*>} Plain object
75863
+ */
75864
+ GetAddressesInfosRequest.toObject = function toObject(message, options) {
75865
+ if (!options)
75866
+ options = {};
75867
+ var object = {};
75868
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
75869
+ object.v0 = $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0.toObject(message.v0, options);
75870
+ if (options.oneofs)
75871
+ object.version = "v0";
75872
+ }
75873
+ return object;
75874
+ };
75875
+
75876
+ /**
75877
+ * Converts this GetAddressesInfosRequest to JSON.
75878
+ * @function toJSON
75879
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
75880
+ * @instance
75881
+ * @returns {Object.<string,*>} JSON object
75882
+ */
75883
+ GetAddressesInfosRequest.prototype.toJSON = function toJSON() {
75884
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
75885
+ };
75886
+
75887
+ GetAddressesInfosRequest.GetAddressesInfosRequestV0 = (function() {
75888
+
75889
+ /**
75890
+ * Properties of a GetAddressesInfosRequestV0.
75891
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
75892
+ * @interface IGetAddressesInfosRequestV0
75893
+ * @property {Array.<Uint8Array>|null} [addresses] GetAddressesInfosRequestV0 addresses
75894
+ * @property {boolean|null} [prove] GetAddressesInfosRequestV0 prove
75895
+ */
75896
+
75897
+ /**
75898
+ * Constructs a new GetAddressesInfosRequestV0.
75899
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
75900
+ * @classdesc Represents a GetAddressesInfosRequestV0.
75901
+ * @implements IGetAddressesInfosRequestV0
75902
+ * @constructor
75903
+ * @param {org.dash.platform.dapi.v0.GetAddressesInfosRequest.IGetAddressesInfosRequestV0=} [properties] Properties to set
75904
+ */
75905
+ function GetAddressesInfosRequestV0(properties) {
75906
+ this.addresses = [];
75907
+ if (properties)
75908
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
75909
+ if (properties[keys[i]] != null)
75910
+ this[keys[i]] = properties[keys[i]];
75911
+ }
75912
+
75913
+ /**
75914
+ * GetAddressesInfosRequestV0 addresses.
75915
+ * @member {Array.<Uint8Array>} addresses
75916
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
75917
+ * @instance
75918
+ */
75919
+ GetAddressesInfosRequestV0.prototype.addresses = $util.emptyArray;
75920
+
75921
+ /**
75922
+ * GetAddressesInfosRequestV0 prove.
75923
+ * @member {boolean} prove
75924
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
75925
+ * @instance
75926
+ */
75927
+ GetAddressesInfosRequestV0.prototype.prove = false;
75928
+
75929
+ /**
75930
+ * Creates a new GetAddressesInfosRequestV0 instance using the specified properties.
75931
+ * @function create
75932
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
75933
+ * @static
75934
+ * @param {org.dash.platform.dapi.v0.GetAddressesInfosRequest.IGetAddressesInfosRequestV0=} [properties] Properties to set
75935
+ * @returns {org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0} GetAddressesInfosRequestV0 instance
75936
+ */
75937
+ GetAddressesInfosRequestV0.create = function create(properties) {
75938
+ return new GetAddressesInfosRequestV0(properties);
75939
+ };
75940
+
75941
+ /**
75942
+ * Encodes the specified GetAddressesInfosRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0.verify|verify} messages.
75943
+ * @function encode
75944
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
75945
+ * @static
75946
+ * @param {org.dash.platform.dapi.v0.GetAddressesInfosRequest.IGetAddressesInfosRequestV0} message GetAddressesInfosRequestV0 message or plain object to encode
75947
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75948
+ * @returns {$protobuf.Writer} Writer
75949
+ */
75950
+ GetAddressesInfosRequestV0.encode = function encode(message, writer) {
75951
+ if (!writer)
75952
+ writer = $Writer.create();
75953
+ if (message.addresses != null && message.addresses.length)
75954
+ for (var i = 0; i < message.addresses.length; ++i)
75955
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.addresses[i]);
75956
+ if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
75957
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
75958
+ return writer;
75959
+ };
75960
+
75961
+ /**
75962
+ * Encodes the specified GetAddressesInfosRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0.verify|verify} messages.
75963
+ * @function encodeDelimited
75964
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
75965
+ * @static
75966
+ * @param {org.dash.platform.dapi.v0.GetAddressesInfosRequest.IGetAddressesInfosRequestV0} message GetAddressesInfosRequestV0 message or plain object to encode
75967
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75968
+ * @returns {$protobuf.Writer} Writer
75969
+ */
75970
+ GetAddressesInfosRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
75971
+ return this.encode(message, writer).ldelim();
75972
+ };
75973
+
75974
+ /**
75975
+ * Decodes a GetAddressesInfosRequestV0 message from the specified reader or buffer.
75976
+ * @function decode
75977
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
75978
+ * @static
75979
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75980
+ * @param {number} [length] Message length if known beforehand
75981
+ * @returns {org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0} GetAddressesInfosRequestV0
75982
+ * @throws {Error} If the payload is not a reader or valid buffer
75983
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
75984
+ */
75985
+ GetAddressesInfosRequestV0.decode = function decode(reader, length) {
75986
+ if (!(reader instanceof $Reader))
75987
+ reader = $Reader.create(reader);
75988
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0();
75989
+ while (reader.pos < end) {
75990
+ var tag = reader.uint32();
75991
+ switch (tag >>> 3) {
75992
+ case 1:
75993
+ if (!(message.addresses && message.addresses.length))
75994
+ message.addresses = [];
75995
+ message.addresses.push(reader.bytes());
75996
+ break;
75997
+ case 2:
75998
+ message.prove = reader.bool();
75999
+ break;
76000
+ default:
76001
+ reader.skipType(tag & 7);
76002
+ break;
76003
+ }
76004
+ }
76005
+ return message;
76006
+ };
76007
+
76008
+ /**
76009
+ * Decodes a GetAddressesInfosRequestV0 message from the specified reader or buffer, length delimited.
76010
+ * @function decodeDelimited
76011
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
76012
+ * @static
76013
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
76014
+ * @returns {org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0} GetAddressesInfosRequestV0
76015
+ * @throws {Error} If the payload is not a reader or valid buffer
76016
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
76017
+ */
76018
+ GetAddressesInfosRequestV0.decodeDelimited = function decodeDelimited(reader) {
76019
+ if (!(reader instanceof $Reader))
76020
+ reader = new $Reader(reader);
76021
+ return this.decode(reader, reader.uint32());
76022
+ };
76023
+
76024
+ /**
76025
+ * Verifies a GetAddressesInfosRequestV0 message.
76026
+ * @function verify
76027
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
76028
+ * @static
76029
+ * @param {Object.<string,*>} message Plain object to verify
76030
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
76031
+ */
76032
+ GetAddressesInfosRequestV0.verify = function verify(message) {
76033
+ if (typeof message !== "object" || message === null)
76034
+ return "object expected";
76035
+ if (message.addresses != null && message.hasOwnProperty("addresses")) {
76036
+ if (!Array.isArray(message.addresses))
76037
+ return "addresses: array expected";
76038
+ for (var i = 0; i < message.addresses.length; ++i)
76039
+ if (!(message.addresses[i] && typeof message.addresses[i].length === "number" || $util.isString(message.addresses[i])))
76040
+ return "addresses: buffer[] expected";
76041
+ }
76042
+ if (message.prove != null && message.hasOwnProperty("prove"))
76043
+ if (typeof message.prove !== "boolean")
76044
+ return "prove: boolean expected";
76045
+ return null;
76046
+ };
76047
+
76048
+ /**
76049
+ * Creates a GetAddressesInfosRequestV0 message from a plain object. Also converts values to their respective internal types.
76050
+ * @function fromObject
76051
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
76052
+ * @static
76053
+ * @param {Object.<string,*>} object Plain object
76054
+ * @returns {org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0} GetAddressesInfosRequestV0
76055
+ */
76056
+ GetAddressesInfosRequestV0.fromObject = function fromObject(object) {
76057
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0)
76058
+ return object;
76059
+ var message = new $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0();
76060
+ if (object.addresses) {
76061
+ if (!Array.isArray(object.addresses))
76062
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0.addresses: array expected");
76063
+ message.addresses = [];
76064
+ for (var i = 0; i < object.addresses.length; ++i)
76065
+ if (typeof object.addresses[i] === "string")
76066
+ $util.base64.decode(object.addresses[i], message.addresses[i] = $util.newBuffer($util.base64.length(object.addresses[i])), 0);
76067
+ else if (object.addresses[i].length >= 0)
76068
+ message.addresses[i] = object.addresses[i];
76069
+ }
76070
+ if (object.prove != null)
76071
+ message.prove = Boolean(object.prove);
76072
+ return message;
76073
+ };
76074
+
76075
+ /**
76076
+ * Creates a plain object from a GetAddressesInfosRequestV0 message. Also converts values to other types if specified.
76077
+ * @function toObject
76078
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
76079
+ * @static
76080
+ * @param {org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0} message GetAddressesInfosRequestV0
76081
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
76082
+ * @returns {Object.<string,*>} Plain object
76083
+ */
76084
+ GetAddressesInfosRequestV0.toObject = function toObject(message, options) {
76085
+ if (!options)
76086
+ options = {};
76087
+ var object = {};
76088
+ if (options.arrays || options.defaults)
76089
+ object.addresses = [];
76090
+ if (options.defaults)
76091
+ object.prove = false;
76092
+ if (message.addresses && message.addresses.length) {
76093
+ object.addresses = [];
76094
+ for (var j = 0; j < message.addresses.length; ++j)
76095
+ object.addresses[j] = options.bytes === String ? $util.base64.encode(message.addresses[j], 0, message.addresses[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.addresses[j]) : message.addresses[j];
76096
+ }
76097
+ if (message.prove != null && message.hasOwnProperty("prove"))
76098
+ object.prove = message.prove;
76099
+ return object;
76100
+ };
76101
+
76102
+ /**
76103
+ * Converts this GetAddressesInfosRequestV0 to JSON.
76104
+ * @function toJSON
76105
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
76106
+ * @instance
76107
+ * @returns {Object.<string,*>} JSON object
76108
+ */
76109
+ GetAddressesInfosRequestV0.prototype.toJSON = function toJSON() {
76110
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
76111
+ };
76112
+
76113
+ return GetAddressesInfosRequestV0;
76114
+ })();
76115
+
76116
+ return GetAddressesInfosRequest;
76117
+ })();
76118
+
76119
+ v0.GetAddressesInfosResponse = (function() {
76120
+
76121
+ /**
76122
+ * Properties of a GetAddressesInfosResponse.
76123
+ * @memberof org.dash.platform.dapi.v0
76124
+ * @interface IGetAddressesInfosResponse
76125
+ * @property {org.dash.platform.dapi.v0.GetAddressesInfosResponse.IGetAddressesInfosResponseV0|null} [v0] GetAddressesInfosResponse v0
76126
+ */
76127
+
76128
+ /**
76129
+ * Constructs a new GetAddressesInfosResponse.
76130
+ * @memberof org.dash.platform.dapi.v0
76131
+ * @classdesc Represents a GetAddressesInfosResponse.
76132
+ * @implements IGetAddressesInfosResponse
76133
+ * @constructor
76134
+ * @param {org.dash.platform.dapi.v0.IGetAddressesInfosResponse=} [properties] Properties to set
76135
+ */
76136
+ function GetAddressesInfosResponse(properties) {
76137
+ if (properties)
76138
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
76139
+ if (properties[keys[i]] != null)
76140
+ this[keys[i]] = properties[keys[i]];
76141
+ }
76142
+
76143
+ /**
76144
+ * GetAddressesInfosResponse v0.
76145
+ * @member {org.dash.platform.dapi.v0.GetAddressesInfosResponse.IGetAddressesInfosResponseV0|null|undefined} v0
76146
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
76147
+ * @instance
76148
+ */
76149
+ GetAddressesInfosResponse.prototype.v0 = null;
76150
+
76151
+ // OneOf field names bound to virtual getters and setters
76152
+ var $oneOfFields;
76153
+
76154
+ /**
76155
+ * GetAddressesInfosResponse version.
76156
+ * @member {"v0"|undefined} version
76157
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
76158
+ * @instance
76159
+ */
76160
+ Object.defineProperty(GetAddressesInfosResponse.prototype, "version", {
76161
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
76162
+ set: $util.oneOfSetter($oneOfFields)
76163
+ });
76164
+
76165
+ /**
76166
+ * Creates a new GetAddressesInfosResponse instance using the specified properties.
76167
+ * @function create
76168
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
76169
+ * @static
76170
+ * @param {org.dash.platform.dapi.v0.IGetAddressesInfosResponse=} [properties] Properties to set
76171
+ * @returns {org.dash.platform.dapi.v0.GetAddressesInfosResponse} GetAddressesInfosResponse instance
76172
+ */
76173
+ GetAddressesInfosResponse.create = function create(properties) {
76174
+ return new GetAddressesInfosResponse(properties);
76175
+ };
76176
+
76177
+ /**
76178
+ * Encodes the specified GetAddressesInfosResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesInfosResponse.verify|verify} messages.
76179
+ * @function encode
76180
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
76181
+ * @static
76182
+ * @param {org.dash.platform.dapi.v0.IGetAddressesInfosResponse} message GetAddressesInfosResponse message or plain object to encode
76183
+ * @param {$protobuf.Writer} [writer] Writer to encode to
76184
+ * @returns {$protobuf.Writer} Writer
76185
+ */
76186
+ GetAddressesInfosResponse.encode = function encode(message, writer) {
76187
+ if (!writer)
76188
+ writer = $Writer.create();
76189
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
76190
+ $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
76191
+ return writer;
76192
+ };
76193
+
76194
+ /**
76195
+ * Encodes the specified GetAddressesInfosResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesInfosResponse.verify|verify} messages.
76196
+ * @function encodeDelimited
76197
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
76198
+ * @static
76199
+ * @param {org.dash.platform.dapi.v0.IGetAddressesInfosResponse} message GetAddressesInfosResponse message or plain object to encode
76200
+ * @param {$protobuf.Writer} [writer] Writer to encode to
76201
+ * @returns {$protobuf.Writer} Writer
76202
+ */
76203
+ GetAddressesInfosResponse.encodeDelimited = function encodeDelimited(message, writer) {
76204
+ return this.encode(message, writer).ldelim();
76205
+ };
76206
+
76207
+ /**
76208
+ * Decodes a GetAddressesInfosResponse message from the specified reader or buffer.
76209
+ * @function decode
76210
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
76211
+ * @static
76212
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
76213
+ * @param {number} [length] Message length if known beforehand
76214
+ * @returns {org.dash.platform.dapi.v0.GetAddressesInfosResponse} GetAddressesInfosResponse
76215
+ * @throws {Error} If the payload is not a reader or valid buffer
76216
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
76217
+ */
76218
+ GetAddressesInfosResponse.decode = function decode(reader, length) {
76219
+ if (!(reader instanceof $Reader))
76220
+ reader = $Reader.create(reader);
76221
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse();
76222
+ while (reader.pos < end) {
76223
+ var tag = reader.uint32();
76224
+ switch (tag >>> 3) {
76225
+ case 1:
76226
+ message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.decode(reader, reader.uint32());
76227
+ break;
76228
+ default:
76229
+ reader.skipType(tag & 7);
76230
+ break;
76231
+ }
76232
+ }
76233
+ return message;
76234
+ };
76235
+
76236
+ /**
76237
+ * Decodes a GetAddressesInfosResponse message from the specified reader or buffer, length delimited.
76238
+ * @function decodeDelimited
76239
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
76240
+ * @static
76241
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
76242
+ * @returns {org.dash.platform.dapi.v0.GetAddressesInfosResponse} GetAddressesInfosResponse
76243
+ * @throws {Error} If the payload is not a reader or valid buffer
76244
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
76245
+ */
76246
+ GetAddressesInfosResponse.decodeDelimited = function decodeDelimited(reader) {
76247
+ if (!(reader instanceof $Reader))
76248
+ reader = new $Reader(reader);
76249
+ return this.decode(reader, reader.uint32());
76250
+ };
76251
+
76252
+ /**
76253
+ * Verifies a GetAddressesInfosResponse message.
76254
+ * @function verify
76255
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
76256
+ * @static
76257
+ * @param {Object.<string,*>} message Plain object to verify
76258
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
76259
+ */
76260
+ GetAddressesInfosResponse.verify = function verify(message) {
76261
+ if (typeof message !== "object" || message === null)
76262
+ return "object expected";
76263
+ var properties = {};
76264
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
76265
+ properties.version = 1;
76266
+ {
76267
+ var error = $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.verify(message.v0);
76268
+ if (error)
76269
+ return "v0." + error;
76270
+ }
76271
+ }
76272
+ return null;
76273
+ };
76274
+
76275
+ /**
76276
+ * Creates a GetAddressesInfosResponse message from a plain object. Also converts values to their respective internal types.
76277
+ * @function fromObject
76278
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
76279
+ * @static
76280
+ * @param {Object.<string,*>} object Plain object
76281
+ * @returns {org.dash.platform.dapi.v0.GetAddressesInfosResponse} GetAddressesInfosResponse
76282
+ */
76283
+ GetAddressesInfosResponse.fromObject = function fromObject(object) {
76284
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse)
76285
+ return object;
76286
+ var message = new $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse();
76287
+ if (object.v0 != null) {
76288
+ if (typeof object.v0 !== "object")
76289
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressesInfosResponse.v0: object expected");
76290
+ message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.fromObject(object.v0);
76291
+ }
76292
+ return message;
76293
+ };
76294
+
76295
+ /**
76296
+ * Creates a plain object from a GetAddressesInfosResponse message. Also converts values to other types if specified.
76297
+ * @function toObject
76298
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
76299
+ * @static
76300
+ * @param {org.dash.platform.dapi.v0.GetAddressesInfosResponse} message GetAddressesInfosResponse
76301
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
76302
+ * @returns {Object.<string,*>} Plain object
76303
+ */
76304
+ GetAddressesInfosResponse.toObject = function toObject(message, options) {
76305
+ if (!options)
76306
+ options = {};
76307
+ var object = {};
76308
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
76309
+ object.v0 = $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.toObject(message.v0, options);
76310
+ if (options.oneofs)
76311
+ object.version = "v0";
76312
+ }
76313
+ return object;
76314
+ };
76315
+
76316
+ /**
76317
+ * Converts this GetAddressesInfosResponse to JSON.
76318
+ * @function toJSON
76319
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
76320
+ * @instance
76321
+ * @returns {Object.<string,*>} JSON object
76322
+ */
76323
+ GetAddressesInfosResponse.prototype.toJSON = function toJSON() {
76324
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
76325
+ };
76326
+
76327
+ GetAddressesInfosResponse.GetAddressesInfosResponseV0 = (function() {
76328
+
76329
+ /**
76330
+ * Properties of a GetAddressesInfosResponseV0.
76331
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
76332
+ * @interface IGetAddressesInfosResponseV0
76333
+ * @property {org.dash.platform.dapi.v0.IAddressInfoEntries|null} [addressInfoEntries] GetAddressesInfosResponseV0 addressInfoEntries
76334
+ * @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetAddressesInfosResponseV0 proof
76335
+ * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetAddressesInfosResponseV0 metadata
76336
+ */
76337
+
76338
+ /**
76339
+ * Constructs a new GetAddressesInfosResponseV0.
76340
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
76341
+ * @classdesc Represents a GetAddressesInfosResponseV0.
76342
+ * @implements IGetAddressesInfosResponseV0
76343
+ * @constructor
76344
+ * @param {org.dash.platform.dapi.v0.GetAddressesInfosResponse.IGetAddressesInfosResponseV0=} [properties] Properties to set
76345
+ */
76346
+ function GetAddressesInfosResponseV0(properties) {
76347
+ if (properties)
76348
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
76349
+ if (properties[keys[i]] != null)
76350
+ this[keys[i]] = properties[keys[i]];
76351
+ }
76352
+
76353
+ /**
76354
+ * GetAddressesInfosResponseV0 addressInfoEntries.
76355
+ * @member {org.dash.platform.dapi.v0.IAddressInfoEntries|null|undefined} addressInfoEntries
76356
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
76357
+ * @instance
76358
+ */
76359
+ GetAddressesInfosResponseV0.prototype.addressInfoEntries = null;
76360
+
76361
+ /**
76362
+ * GetAddressesInfosResponseV0 proof.
76363
+ * @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
76364
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
76365
+ * @instance
76366
+ */
76367
+ GetAddressesInfosResponseV0.prototype.proof = null;
76368
+
76369
+ /**
76370
+ * GetAddressesInfosResponseV0 metadata.
76371
+ * @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
76372
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
76373
+ * @instance
76374
+ */
76375
+ GetAddressesInfosResponseV0.prototype.metadata = null;
76376
+
76377
+ // OneOf field names bound to virtual getters and setters
76378
+ var $oneOfFields;
76379
+
76380
+ /**
76381
+ * GetAddressesInfosResponseV0 result.
76382
+ * @member {"addressInfoEntries"|"proof"|undefined} result
76383
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
76384
+ * @instance
76385
+ */
76386
+ Object.defineProperty(GetAddressesInfosResponseV0.prototype, "result", {
76387
+ get: $util.oneOfGetter($oneOfFields = ["addressInfoEntries", "proof"]),
76388
+ set: $util.oneOfSetter($oneOfFields)
76389
+ });
76390
+
76391
+ /**
76392
+ * Creates a new GetAddressesInfosResponseV0 instance using the specified properties.
76393
+ * @function create
76394
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
76395
+ * @static
76396
+ * @param {org.dash.platform.dapi.v0.GetAddressesInfosResponse.IGetAddressesInfosResponseV0=} [properties] Properties to set
76397
+ * @returns {org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0} GetAddressesInfosResponseV0 instance
76398
+ */
76399
+ GetAddressesInfosResponseV0.create = function create(properties) {
76400
+ return new GetAddressesInfosResponseV0(properties);
76401
+ };
76402
+
76403
+ /**
76404
+ * Encodes the specified GetAddressesInfosResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.verify|verify} messages.
76405
+ * @function encode
76406
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
76407
+ * @static
76408
+ * @param {org.dash.platform.dapi.v0.GetAddressesInfosResponse.IGetAddressesInfosResponseV0} message GetAddressesInfosResponseV0 message or plain object to encode
76409
+ * @param {$protobuf.Writer} [writer] Writer to encode to
76410
+ * @returns {$protobuf.Writer} Writer
76411
+ */
76412
+ GetAddressesInfosResponseV0.encode = function encode(message, writer) {
76413
+ if (!writer)
76414
+ writer = $Writer.create();
76415
+ if (message.addressInfoEntries != null && Object.hasOwnProperty.call(message, "addressInfoEntries"))
76416
+ $root.org.dash.platform.dapi.v0.AddressInfoEntries.encode(message.addressInfoEntries, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
76417
+ if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
76418
+ $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
76419
+ if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
76420
+ $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
76421
+ return writer;
76422
+ };
76423
+
76424
+ /**
76425
+ * Encodes the specified GetAddressesInfosResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.verify|verify} messages.
76426
+ * @function encodeDelimited
76427
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
76428
+ * @static
76429
+ * @param {org.dash.platform.dapi.v0.GetAddressesInfosResponse.IGetAddressesInfosResponseV0} message GetAddressesInfosResponseV0 message or plain object to encode
76430
+ * @param {$protobuf.Writer} [writer] Writer to encode to
76431
+ * @returns {$protobuf.Writer} Writer
76432
+ */
76433
+ GetAddressesInfosResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
76434
+ return this.encode(message, writer).ldelim();
76435
+ };
76436
+
76437
+ /**
76438
+ * Decodes a GetAddressesInfosResponseV0 message from the specified reader or buffer.
76439
+ * @function decode
76440
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
76441
+ * @static
76442
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
76443
+ * @param {number} [length] Message length if known beforehand
76444
+ * @returns {org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0} GetAddressesInfosResponseV0
76445
+ * @throws {Error} If the payload is not a reader or valid buffer
76446
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
76447
+ */
76448
+ GetAddressesInfosResponseV0.decode = function decode(reader, length) {
76449
+ if (!(reader instanceof $Reader))
76450
+ reader = $Reader.create(reader);
76451
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0();
76452
+ while (reader.pos < end) {
76453
+ var tag = reader.uint32();
76454
+ switch (tag >>> 3) {
76455
+ case 1:
76456
+ message.addressInfoEntries = $root.org.dash.platform.dapi.v0.AddressInfoEntries.decode(reader, reader.uint32());
76457
+ break;
76458
+ case 2:
76459
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
76460
+ break;
76461
+ case 3:
76462
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
76463
+ break;
76464
+ default:
76465
+ reader.skipType(tag & 7);
76466
+ break;
76467
+ }
76468
+ }
76469
+ return message;
76470
+ };
76471
+
76472
+ /**
76473
+ * Decodes a GetAddressesInfosResponseV0 message from the specified reader or buffer, length delimited.
76474
+ * @function decodeDelimited
76475
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
76476
+ * @static
76477
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
76478
+ * @returns {org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0} GetAddressesInfosResponseV0
76479
+ * @throws {Error} If the payload is not a reader or valid buffer
76480
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
76481
+ */
76482
+ GetAddressesInfosResponseV0.decodeDelimited = function decodeDelimited(reader) {
76483
+ if (!(reader instanceof $Reader))
76484
+ reader = new $Reader(reader);
76485
+ return this.decode(reader, reader.uint32());
76486
+ };
76487
+
76488
+ /**
76489
+ * Verifies a GetAddressesInfosResponseV0 message.
76490
+ * @function verify
76491
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
76492
+ * @static
76493
+ * @param {Object.<string,*>} message Plain object to verify
76494
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
76495
+ */
76496
+ GetAddressesInfosResponseV0.verify = function verify(message) {
76497
+ if (typeof message !== "object" || message === null)
76498
+ return "object expected";
76499
+ var properties = {};
76500
+ if (message.addressInfoEntries != null && message.hasOwnProperty("addressInfoEntries")) {
76501
+ properties.result = 1;
76502
+ {
76503
+ var error = $root.org.dash.platform.dapi.v0.AddressInfoEntries.verify(message.addressInfoEntries);
76504
+ if (error)
76505
+ return "addressInfoEntries." + error;
76506
+ }
76507
+ }
76508
+ if (message.proof != null && message.hasOwnProperty("proof")) {
76509
+ if (properties.result === 1)
76510
+ return "result: multiple values";
76511
+ properties.result = 1;
76512
+ {
76513
+ var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
76514
+ if (error)
76515
+ return "proof." + error;
76516
+ }
76517
+ }
76518
+ if (message.metadata != null && message.hasOwnProperty("metadata")) {
76519
+ var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
76520
+ if (error)
76521
+ return "metadata." + error;
76522
+ }
76523
+ return null;
76524
+ };
76525
+
76526
+ /**
76527
+ * Creates a GetAddressesInfosResponseV0 message from a plain object. Also converts values to their respective internal types.
76528
+ * @function fromObject
76529
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
76530
+ * @static
76531
+ * @param {Object.<string,*>} object Plain object
76532
+ * @returns {org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0} GetAddressesInfosResponseV0
76533
+ */
76534
+ GetAddressesInfosResponseV0.fromObject = function fromObject(object) {
76535
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0)
76536
+ return object;
76537
+ var message = new $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0();
76538
+ if (object.addressInfoEntries != null) {
76539
+ if (typeof object.addressInfoEntries !== "object")
76540
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.addressInfoEntries: object expected");
76541
+ message.addressInfoEntries = $root.org.dash.platform.dapi.v0.AddressInfoEntries.fromObject(object.addressInfoEntries);
76542
+ }
76543
+ if (object.proof != null) {
76544
+ if (typeof object.proof !== "object")
76545
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.proof: object expected");
76546
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
76547
+ }
76548
+ if (object.metadata != null) {
76549
+ if (typeof object.metadata !== "object")
76550
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.metadata: object expected");
76551
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
76552
+ }
76553
+ return message;
76554
+ };
76555
+
76556
+ /**
76557
+ * Creates a plain object from a GetAddressesInfosResponseV0 message. Also converts values to other types if specified.
76558
+ * @function toObject
76559
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
76560
+ * @static
76561
+ * @param {org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0} message GetAddressesInfosResponseV0
76562
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
76563
+ * @returns {Object.<string,*>} Plain object
76564
+ */
76565
+ GetAddressesInfosResponseV0.toObject = function toObject(message, options) {
76566
+ if (!options)
76567
+ options = {};
76568
+ var object = {};
76569
+ if (options.defaults)
76570
+ object.metadata = null;
76571
+ if (message.addressInfoEntries != null && message.hasOwnProperty("addressInfoEntries")) {
76572
+ object.addressInfoEntries = $root.org.dash.platform.dapi.v0.AddressInfoEntries.toObject(message.addressInfoEntries, options);
76573
+ if (options.oneofs)
76574
+ object.result = "addressInfoEntries";
76575
+ }
76576
+ if (message.proof != null && message.hasOwnProperty("proof")) {
76577
+ object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
76578
+ if (options.oneofs)
76579
+ object.result = "proof";
76580
+ }
76581
+ if (message.metadata != null && message.hasOwnProperty("metadata"))
76582
+ object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
76583
+ return object;
76584
+ };
76585
+
76586
+ /**
76587
+ * Converts this GetAddressesInfosResponseV0 to JSON.
76588
+ * @function toJSON
76589
+ * @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
76590
+ * @instance
76591
+ * @returns {Object.<string,*>} JSON object
76592
+ */
76593
+ GetAddressesInfosResponseV0.prototype.toJSON = function toJSON() {
76594
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
76595
+ };
76596
+
76597
+ return GetAddressesInfosResponseV0;
76598
+ })();
76599
+
76600
+ return GetAddressesInfosResponse;
76601
+ })();
76602
+
76603
+ v0.GetAddressesTrunkStateRequest = (function() {
76604
+
76605
+ /**
76606
+ * Properties of a GetAddressesTrunkStateRequest.
76607
+ * @memberof org.dash.platform.dapi.v0
76608
+ * @interface IGetAddressesTrunkStateRequest
76609
+ * @property {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.IGetAddressesTrunkStateRequestV0|null} [v0] GetAddressesTrunkStateRequest v0
76610
+ */
76611
+
76612
+ /**
76613
+ * Constructs a new GetAddressesTrunkStateRequest.
76614
+ * @memberof org.dash.platform.dapi.v0
76615
+ * @classdesc Represents a GetAddressesTrunkStateRequest.
76616
+ * @implements IGetAddressesTrunkStateRequest
76617
+ * @constructor
76618
+ * @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateRequest=} [properties] Properties to set
76619
+ */
76620
+ function GetAddressesTrunkStateRequest(properties) {
76621
+ if (properties)
76622
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
76623
+ if (properties[keys[i]] != null)
76624
+ this[keys[i]] = properties[keys[i]];
76625
+ }
76626
+
76627
+ /**
76628
+ * GetAddressesTrunkStateRequest v0.
76629
+ * @member {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.IGetAddressesTrunkStateRequestV0|null|undefined} v0
76630
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
76631
+ * @instance
76632
+ */
76633
+ GetAddressesTrunkStateRequest.prototype.v0 = null;
76634
+
76635
+ // OneOf field names bound to virtual getters and setters
76636
+ var $oneOfFields;
76637
+
76638
+ /**
76639
+ * GetAddressesTrunkStateRequest version.
76640
+ * @member {"v0"|undefined} version
76641
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
76642
+ * @instance
76643
+ */
76644
+ Object.defineProperty(GetAddressesTrunkStateRequest.prototype, "version", {
76645
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
76646
+ set: $util.oneOfSetter($oneOfFields)
76647
+ });
76648
+
76649
+ /**
76650
+ * Creates a new GetAddressesTrunkStateRequest instance using the specified properties.
76651
+ * @function create
76652
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
76653
+ * @static
76654
+ * @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateRequest=} [properties] Properties to set
76655
+ * @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest} GetAddressesTrunkStateRequest instance
76656
+ */
76657
+ GetAddressesTrunkStateRequest.create = function create(properties) {
76658
+ return new GetAddressesTrunkStateRequest(properties);
76659
+ };
76660
+
76661
+ /**
76662
+ * Encodes the specified GetAddressesTrunkStateRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.verify|verify} messages.
76663
+ * @function encode
76664
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
76665
+ * @static
76666
+ * @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateRequest} message GetAddressesTrunkStateRequest message or plain object to encode
76667
+ * @param {$protobuf.Writer} [writer] Writer to encode to
76668
+ * @returns {$protobuf.Writer} Writer
76669
+ */
76670
+ GetAddressesTrunkStateRequest.encode = function encode(message, writer) {
76671
+ if (!writer)
76672
+ writer = $Writer.create();
76673
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
76674
+ $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
76675
+ return writer;
76676
+ };
76677
+
76678
+ /**
76679
+ * Encodes the specified GetAddressesTrunkStateRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.verify|verify} messages.
76680
+ * @function encodeDelimited
76681
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
76682
+ * @static
76683
+ * @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateRequest} message GetAddressesTrunkStateRequest message or plain object to encode
76684
+ * @param {$protobuf.Writer} [writer] Writer to encode to
76685
+ * @returns {$protobuf.Writer} Writer
76686
+ */
76687
+ GetAddressesTrunkStateRequest.encodeDelimited = function encodeDelimited(message, writer) {
76688
+ return this.encode(message, writer).ldelim();
76689
+ };
76690
+
76691
+ /**
76692
+ * Decodes a GetAddressesTrunkStateRequest message from the specified reader or buffer.
76693
+ * @function decode
76694
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
76695
+ * @static
76696
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
76697
+ * @param {number} [length] Message length if known beforehand
76698
+ * @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest} GetAddressesTrunkStateRequest
76699
+ * @throws {Error} If the payload is not a reader or valid buffer
76700
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
76701
+ */
76702
+ GetAddressesTrunkStateRequest.decode = function decode(reader, length) {
76703
+ if (!(reader instanceof $Reader))
76704
+ reader = $Reader.create(reader);
76705
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest();
76706
+ while (reader.pos < end) {
76707
+ var tag = reader.uint32();
76708
+ switch (tag >>> 3) {
76709
+ case 1:
76710
+ message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0.decode(reader, reader.uint32());
76711
+ break;
76712
+ default:
76713
+ reader.skipType(tag & 7);
76714
+ break;
76715
+ }
76716
+ }
76717
+ return message;
76718
+ };
76719
+
76720
+ /**
76721
+ * Decodes a GetAddressesTrunkStateRequest message from the specified reader or buffer, length delimited.
76722
+ * @function decodeDelimited
76723
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
76724
+ * @static
76725
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
76726
+ * @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest} GetAddressesTrunkStateRequest
76727
+ * @throws {Error} If the payload is not a reader or valid buffer
76728
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
76729
+ */
76730
+ GetAddressesTrunkStateRequest.decodeDelimited = function decodeDelimited(reader) {
76731
+ if (!(reader instanceof $Reader))
76732
+ reader = new $Reader(reader);
76733
+ return this.decode(reader, reader.uint32());
76734
+ };
76735
+
76736
+ /**
76737
+ * Verifies a GetAddressesTrunkStateRequest message.
76738
+ * @function verify
76739
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
76740
+ * @static
76741
+ * @param {Object.<string,*>} message Plain object to verify
76742
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
76743
+ */
76744
+ GetAddressesTrunkStateRequest.verify = function verify(message) {
76745
+ if (typeof message !== "object" || message === null)
76746
+ return "object expected";
76747
+ var properties = {};
76748
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
76749
+ properties.version = 1;
76750
+ {
76751
+ var error = $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0.verify(message.v0);
76752
+ if (error)
76753
+ return "v0." + error;
76754
+ }
76755
+ }
76756
+ return null;
76757
+ };
76758
+
76759
+ /**
76760
+ * Creates a GetAddressesTrunkStateRequest message from a plain object. Also converts values to their respective internal types.
76761
+ * @function fromObject
76762
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
76763
+ * @static
76764
+ * @param {Object.<string,*>} object Plain object
76765
+ * @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest} GetAddressesTrunkStateRequest
76766
+ */
76767
+ GetAddressesTrunkStateRequest.fromObject = function fromObject(object) {
76768
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest)
76769
+ return object;
76770
+ var message = new $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest();
76771
+ if (object.v0 != null) {
76772
+ if (typeof object.v0 !== "object")
76773
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.v0: object expected");
76774
+ message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0.fromObject(object.v0);
76775
+ }
76776
+ return message;
76777
+ };
76778
+
76779
+ /**
76780
+ * Creates a plain object from a GetAddressesTrunkStateRequest message. Also converts values to other types if specified.
76781
+ * @function toObject
76782
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
76783
+ * @static
76784
+ * @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest} message GetAddressesTrunkStateRequest
76785
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
76786
+ * @returns {Object.<string,*>} Plain object
76787
+ */
76788
+ GetAddressesTrunkStateRequest.toObject = function toObject(message, options) {
76789
+ if (!options)
76790
+ options = {};
76791
+ var object = {};
76792
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
76793
+ object.v0 = $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0.toObject(message.v0, options);
76794
+ if (options.oneofs)
76795
+ object.version = "v0";
76796
+ }
76797
+ return object;
76798
+ };
76799
+
76800
+ /**
76801
+ * Converts this GetAddressesTrunkStateRequest to JSON.
76802
+ * @function toJSON
76803
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
76804
+ * @instance
76805
+ * @returns {Object.<string,*>} JSON object
76806
+ */
76807
+ GetAddressesTrunkStateRequest.prototype.toJSON = function toJSON() {
76808
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
76809
+ };
76810
+
76811
+ GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0 = (function() {
76812
+
76813
+ /**
76814
+ * Properties of a GetAddressesTrunkStateRequestV0.
76815
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
76816
+ * @interface IGetAddressesTrunkStateRequestV0
76817
+ */
76818
+
76819
+ /**
76820
+ * Constructs a new GetAddressesTrunkStateRequestV0.
76821
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
76822
+ * @classdesc Represents a GetAddressesTrunkStateRequestV0.
76823
+ * @implements IGetAddressesTrunkStateRequestV0
76824
+ * @constructor
76825
+ * @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.IGetAddressesTrunkStateRequestV0=} [properties] Properties to set
76826
+ */
76827
+ function GetAddressesTrunkStateRequestV0(properties) {
76828
+ if (properties)
76829
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
76830
+ if (properties[keys[i]] != null)
76831
+ this[keys[i]] = properties[keys[i]];
76832
+ }
76833
+
76834
+ /**
76835
+ * Creates a new GetAddressesTrunkStateRequestV0 instance using the specified properties.
76836
+ * @function create
76837
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
76838
+ * @static
76839
+ * @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.IGetAddressesTrunkStateRequestV0=} [properties] Properties to set
76840
+ * @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0} GetAddressesTrunkStateRequestV0 instance
76841
+ */
76842
+ GetAddressesTrunkStateRequestV0.create = function create(properties) {
76843
+ return new GetAddressesTrunkStateRequestV0(properties);
76844
+ };
76845
+
76846
+ /**
76847
+ * Encodes the specified GetAddressesTrunkStateRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0.verify|verify} messages.
76848
+ * @function encode
76849
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
76850
+ * @static
76851
+ * @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.IGetAddressesTrunkStateRequestV0} message GetAddressesTrunkStateRequestV0 message or plain object to encode
76852
+ * @param {$protobuf.Writer} [writer] Writer to encode to
76853
+ * @returns {$protobuf.Writer} Writer
76854
+ */
76855
+ GetAddressesTrunkStateRequestV0.encode = function encode(message, writer) {
76856
+ if (!writer)
76857
+ writer = $Writer.create();
76858
+ return writer;
76859
+ };
76860
+
76861
+ /**
76862
+ * Encodes the specified GetAddressesTrunkStateRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0.verify|verify} messages.
76863
+ * @function encodeDelimited
76864
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
76865
+ * @static
76866
+ * @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.IGetAddressesTrunkStateRequestV0} message GetAddressesTrunkStateRequestV0 message or plain object to encode
76867
+ * @param {$protobuf.Writer} [writer] Writer to encode to
76868
+ * @returns {$protobuf.Writer} Writer
76869
+ */
76870
+ GetAddressesTrunkStateRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
76871
+ return this.encode(message, writer).ldelim();
76872
+ };
76873
+
76874
+ /**
76875
+ * Decodes a GetAddressesTrunkStateRequestV0 message from the specified reader or buffer.
76876
+ * @function decode
76877
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
76878
+ * @static
76879
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
76880
+ * @param {number} [length] Message length if known beforehand
76881
+ * @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0} GetAddressesTrunkStateRequestV0
76882
+ * @throws {Error} If the payload is not a reader or valid buffer
76883
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
76884
+ */
76885
+ GetAddressesTrunkStateRequestV0.decode = function decode(reader, length) {
76886
+ if (!(reader instanceof $Reader))
76887
+ reader = $Reader.create(reader);
76888
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0();
76889
+ while (reader.pos < end) {
76890
+ var tag = reader.uint32();
76891
+ switch (tag >>> 3) {
76892
+ default:
76893
+ reader.skipType(tag & 7);
76894
+ break;
76895
+ }
76896
+ }
76897
+ return message;
76898
+ };
76899
+
76900
+ /**
76901
+ * Decodes a GetAddressesTrunkStateRequestV0 message from the specified reader or buffer, length delimited.
76902
+ * @function decodeDelimited
76903
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
76904
+ * @static
76905
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
76906
+ * @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0} GetAddressesTrunkStateRequestV0
76907
+ * @throws {Error} If the payload is not a reader or valid buffer
76908
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
76909
+ */
76910
+ GetAddressesTrunkStateRequestV0.decodeDelimited = function decodeDelimited(reader) {
76911
+ if (!(reader instanceof $Reader))
76912
+ reader = new $Reader(reader);
76913
+ return this.decode(reader, reader.uint32());
76914
+ };
76915
+
76916
+ /**
76917
+ * Verifies a GetAddressesTrunkStateRequestV0 message.
76918
+ * @function verify
76919
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
76920
+ * @static
76921
+ * @param {Object.<string,*>} message Plain object to verify
76922
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
76923
+ */
76924
+ GetAddressesTrunkStateRequestV0.verify = function verify(message) {
76925
+ if (typeof message !== "object" || message === null)
76926
+ return "object expected";
76927
+ return null;
76928
+ };
76929
+
76930
+ /**
76931
+ * Creates a GetAddressesTrunkStateRequestV0 message from a plain object. Also converts values to their respective internal types.
76932
+ * @function fromObject
76933
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
76934
+ * @static
76935
+ * @param {Object.<string,*>} object Plain object
76936
+ * @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0} GetAddressesTrunkStateRequestV0
76937
+ */
76938
+ GetAddressesTrunkStateRequestV0.fromObject = function fromObject(object) {
76939
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0)
76940
+ return object;
76941
+ return new $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0();
76942
+ };
76943
+
76944
+ /**
76945
+ * Creates a plain object from a GetAddressesTrunkStateRequestV0 message. Also converts values to other types if specified.
76946
+ * @function toObject
76947
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
76948
+ * @static
76949
+ * @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0} message GetAddressesTrunkStateRequestV0
76950
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
76951
+ * @returns {Object.<string,*>} Plain object
76952
+ */
76953
+ GetAddressesTrunkStateRequestV0.toObject = function toObject() {
76954
+ return {};
76955
+ };
76956
+
76957
+ /**
76958
+ * Converts this GetAddressesTrunkStateRequestV0 to JSON.
76959
+ * @function toJSON
76960
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
76961
+ * @instance
76962
+ * @returns {Object.<string,*>} JSON object
76963
+ */
76964
+ GetAddressesTrunkStateRequestV0.prototype.toJSON = function toJSON() {
76965
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
76966
+ };
76967
+
76968
+ return GetAddressesTrunkStateRequestV0;
76969
+ })();
76970
+
76971
+ return GetAddressesTrunkStateRequest;
76972
+ })();
76973
+
76974
+ v0.GetAddressesTrunkStateResponse = (function() {
76975
+
76976
+ /**
76977
+ * Properties of a GetAddressesTrunkStateResponse.
76978
+ * @memberof org.dash.platform.dapi.v0
76979
+ * @interface IGetAddressesTrunkStateResponse
76980
+ * @property {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.IGetAddressesTrunkStateResponseV0|null} [v0] GetAddressesTrunkStateResponse v0
76981
+ */
76982
+
76983
+ /**
76984
+ * Constructs a new GetAddressesTrunkStateResponse.
76985
+ * @memberof org.dash.platform.dapi.v0
76986
+ * @classdesc Represents a GetAddressesTrunkStateResponse.
76987
+ * @implements IGetAddressesTrunkStateResponse
76988
+ * @constructor
76989
+ * @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateResponse=} [properties] Properties to set
76990
+ */
76991
+ function GetAddressesTrunkStateResponse(properties) {
76992
+ if (properties)
76993
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
76994
+ if (properties[keys[i]] != null)
76995
+ this[keys[i]] = properties[keys[i]];
76996
+ }
76997
+
76998
+ /**
76999
+ * GetAddressesTrunkStateResponse v0.
77000
+ * @member {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.IGetAddressesTrunkStateResponseV0|null|undefined} v0
77001
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
77002
+ * @instance
77003
+ */
77004
+ GetAddressesTrunkStateResponse.prototype.v0 = null;
77005
+
77006
+ // OneOf field names bound to virtual getters and setters
77007
+ var $oneOfFields;
77008
+
77009
+ /**
77010
+ * GetAddressesTrunkStateResponse version.
77011
+ * @member {"v0"|undefined} version
77012
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
77013
+ * @instance
77014
+ */
77015
+ Object.defineProperty(GetAddressesTrunkStateResponse.prototype, "version", {
77016
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
77017
+ set: $util.oneOfSetter($oneOfFields)
77018
+ });
77019
+
77020
+ /**
77021
+ * Creates a new GetAddressesTrunkStateResponse instance using the specified properties.
77022
+ * @function create
77023
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
77024
+ * @static
77025
+ * @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateResponse=} [properties] Properties to set
77026
+ * @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse} GetAddressesTrunkStateResponse instance
77027
+ */
77028
+ GetAddressesTrunkStateResponse.create = function create(properties) {
77029
+ return new GetAddressesTrunkStateResponse(properties);
77030
+ };
77031
+
77032
+ /**
77033
+ * Encodes the specified GetAddressesTrunkStateResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.verify|verify} messages.
77034
+ * @function encode
77035
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
77036
+ * @static
77037
+ * @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateResponse} message GetAddressesTrunkStateResponse message or plain object to encode
77038
+ * @param {$protobuf.Writer} [writer] Writer to encode to
77039
+ * @returns {$protobuf.Writer} Writer
77040
+ */
77041
+ GetAddressesTrunkStateResponse.encode = function encode(message, writer) {
77042
+ if (!writer)
77043
+ writer = $Writer.create();
77044
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
77045
+ $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
77046
+ return writer;
77047
+ };
77048
+
77049
+ /**
77050
+ * Encodes the specified GetAddressesTrunkStateResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.verify|verify} messages.
77051
+ * @function encodeDelimited
77052
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
77053
+ * @static
77054
+ * @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateResponse} message GetAddressesTrunkStateResponse message or plain object to encode
77055
+ * @param {$protobuf.Writer} [writer] Writer to encode to
77056
+ * @returns {$protobuf.Writer} Writer
77057
+ */
77058
+ GetAddressesTrunkStateResponse.encodeDelimited = function encodeDelimited(message, writer) {
77059
+ return this.encode(message, writer).ldelim();
77060
+ };
77061
+
77062
+ /**
77063
+ * Decodes a GetAddressesTrunkStateResponse message from the specified reader or buffer.
77064
+ * @function decode
77065
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
77066
+ * @static
77067
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
77068
+ * @param {number} [length] Message length if known beforehand
77069
+ * @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse} GetAddressesTrunkStateResponse
77070
+ * @throws {Error} If the payload is not a reader or valid buffer
77071
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
77072
+ */
77073
+ GetAddressesTrunkStateResponse.decode = function decode(reader, length) {
77074
+ if (!(reader instanceof $Reader))
77075
+ reader = $Reader.create(reader);
77076
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse();
77077
+ while (reader.pos < end) {
77078
+ var tag = reader.uint32();
77079
+ switch (tag >>> 3) {
77080
+ case 1:
77081
+ message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.decode(reader, reader.uint32());
77082
+ break;
77083
+ default:
77084
+ reader.skipType(tag & 7);
77085
+ break;
77086
+ }
77087
+ }
77088
+ return message;
77089
+ };
77090
+
77091
+ /**
77092
+ * Decodes a GetAddressesTrunkStateResponse message from the specified reader or buffer, length delimited.
77093
+ * @function decodeDelimited
77094
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
77095
+ * @static
77096
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
77097
+ * @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse} GetAddressesTrunkStateResponse
77098
+ * @throws {Error} If the payload is not a reader or valid buffer
77099
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
77100
+ */
77101
+ GetAddressesTrunkStateResponse.decodeDelimited = function decodeDelimited(reader) {
77102
+ if (!(reader instanceof $Reader))
77103
+ reader = new $Reader(reader);
77104
+ return this.decode(reader, reader.uint32());
77105
+ };
77106
+
77107
+ /**
77108
+ * Verifies a GetAddressesTrunkStateResponse message.
77109
+ * @function verify
77110
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
77111
+ * @static
77112
+ * @param {Object.<string,*>} message Plain object to verify
77113
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
77114
+ */
77115
+ GetAddressesTrunkStateResponse.verify = function verify(message) {
77116
+ if (typeof message !== "object" || message === null)
77117
+ return "object expected";
77118
+ var properties = {};
77119
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
77120
+ properties.version = 1;
77121
+ {
77122
+ var error = $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.verify(message.v0);
77123
+ if (error)
77124
+ return "v0." + error;
77125
+ }
77126
+ }
77127
+ return null;
77128
+ };
77129
+
77130
+ /**
77131
+ * Creates a GetAddressesTrunkStateResponse message from a plain object. Also converts values to their respective internal types.
77132
+ * @function fromObject
77133
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
77134
+ * @static
77135
+ * @param {Object.<string,*>} object Plain object
77136
+ * @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse} GetAddressesTrunkStateResponse
77137
+ */
77138
+ GetAddressesTrunkStateResponse.fromObject = function fromObject(object) {
77139
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse)
77140
+ return object;
77141
+ var message = new $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse();
77142
+ if (object.v0 != null) {
77143
+ if (typeof object.v0 !== "object")
77144
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.v0: object expected");
77145
+ message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.fromObject(object.v0);
77146
+ }
77147
+ return message;
77148
+ };
77149
+
77150
+ /**
77151
+ * Creates a plain object from a GetAddressesTrunkStateResponse message. Also converts values to other types if specified.
77152
+ * @function toObject
77153
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
77154
+ * @static
77155
+ * @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse} message GetAddressesTrunkStateResponse
77156
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
77157
+ * @returns {Object.<string,*>} Plain object
77158
+ */
77159
+ GetAddressesTrunkStateResponse.toObject = function toObject(message, options) {
77160
+ if (!options)
77161
+ options = {};
77162
+ var object = {};
77163
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
77164
+ object.v0 = $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.toObject(message.v0, options);
77165
+ if (options.oneofs)
77166
+ object.version = "v0";
77167
+ }
77168
+ return object;
77169
+ };
77170
+
77171
+ /**
77172
+ * Converts this GetAddressesTrunkStateResponse to JSON.
77173
+ * @function toJSON
77174
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
77175
+ * @instance
77176
+ * @returns {Object.<string,*>} JSON object
77177
+ */
77178
+ GetAddressesTrunkStateResponse.prototype.toJSON = function toJSON() {
77179
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
77180
+ };
77181
+
77182
+ GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0 = (function() {
77183
+
77184
+ /**
77185
+ * Properties of a GetAddressesTrunkStateResponseV0.
77186
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
77187
+ * @interface IGetAddressesTrunkStateResponseV0
77188
+ * @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetAddressesTrunkStateResponseV0 proof
77189
+ * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetAddressesTrunkStateResponseV0 metadata
77190
+ */
77191
+
77192
+ /**
77193
+ * Constructs a new GetAddressesTrunkStateResponseV0.
77194
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
77195
+ * @classdesc Represents a GetAddressesTrunkStateResponseV0.
77196
+ * @implements IGetAddressesTrunkStateResponseV0
77197
+ * @constructor
77198
+ * @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.IGetAddressesTrunkStateResponseV0=} [properties] Properties to set
77199
+ */
77200
+ function GetAddressesTrunkStateResponseV0(properties) {
77201
+ if (properties)
77202
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
77203
+ if (properties[keys[i]] != null)
77204
+ this[keys[i]] = properties[keys[i]];
77205
+ }
77206
+
77207
+ /**
77208
+ * GetAddressesTrunkStateResponseV0 proof.
77209
+ * @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
77210
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
77211
+ * @instance
77212
+ */
77213
+ GetAddressesTrunkStateResponseV0.prototype.proof = null;
77214
+
77215
+ /**
77216
+ * GetAddressesTrunkStateResponseV0 metadata.
77217
+ * @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
77218
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
77219
+ * @instance
77220
+ */
77221
+ GetAddressesTrunkStateResponseV0.prototype.metadata = null;
77222
+
77223
+ /**
77224
+ * Creates a new GetAddressesTrunkStateResponseV0 instance using the specified properties.
77225
+ * @function create
77226
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
77227
+ * @static
77228
+ * @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.IGetAddressesTrunkStateResponseV0=} [properties] Properties to set
77229
+ * @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0} GetAddressesTrunkStateResponseV0 instance
77230
+ */
77231
+ GetAddressesTrunkStateResponseV0.create = function create(properties) {
77232
+ return new GetAddressesTrunkStateResponseV0(properties);
77233
+ };
77234
+
77235
+ /**
77236
+ * Encodes the specified GetAddressesTrunkStateResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.verify|verify} messages.
77237
+ * @function encode
77238
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
77239
+ * @static
77240
+ * @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.IGetAddressesTrunkStateResponseV0} message GetAddressesTrunkStateResponseV0 message or plain object to encode
77241
+ * @param {$protobuf.Writer} [writer] Writer to encode to
77242
+ * @returns {$protobuf.Writer} Writer
77243
+ */
77244
+ GetAddressesTrunkStateResponseV0.encode = function encode(message, writer) {
77245
+ if (!writer)
77246
+ writer = $Writer.create();
77247
+ if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
77248
+ $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
77249
+ if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
77250
+ $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
77251
+ return writer;
77252
+ };
77253
+
77254
+ /**
77255
+ * Encodes the specified GetAddressesTrunkStateResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.verify|verify} messages.
77256
+ * @function encodeDelimited
77257
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
77258
+ * @static
77259
+ * @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.IGetAddressesTrunkStateResponseV0} message GetAddressesTrunkStateResponseV0 message or plain object to encode
77260
+ * @param {$protobuf.Writer} [writer] Writer to encode to
77261
+ * @returns {$protobuf.Writer} Writer
77262
+ */
77263
+ GetAddressesTrunkStateResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
77264
+ return this.encode(message, writer).ldelim();
77265
+ };
77266
+
77267
+ /**
77268
+ * Decodes a GetAddressesTrunkStateResponseV0 message from the specified reader or buffer.
77269
+ * @function decode
77270
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
77271
+ * @static
77272
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
77273
+ * @param {number} [length] Message length if known beforehand
77274
+ * @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0} GetAddressesTrunkStateResponseV0
77275
+ * @throws {Error} If the payload is not a reader or valid buffer
77276
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
77277
+ */
77278
+ GetAddressesTrunkStateResponseV0.decode = function decode(reader, length) {
77279
+ if (!(reader instanceof $Reader))
77280
+ reader = $Reader.create(reader);
77281
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0();
77282
+ while (reader.pos < end) {
77283
+ var tag = reader.uint32();
77284
+ switch (tag >>> 3) {
77285
+ case 2:
77286
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
77287
+ break;
77288
+ case 3:
77289
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
77290
+ break;
77291
+ default:
77292
+ reader.skipType(tag & 7);
77293
+ break;
77294
+ }
77295
+ }
77296
+ return message;
77297
+ };
77298
+
77299
+ /**
77300
+ * Decodes a GetAddressesTrunkStateResponseV0 message from the specified reader or buffer, length delimited.
77301
+ * @function decodeDelimited
77302
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
77303
+ * @static
77304
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
77305
+ * @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0} GetAddressesTrunkStateResponseV0
77306
+ * @throws {Error} If the payload is not a reader or valid buffer
77307
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
77308
+ */
77309
+ GetAddressesTrunkStateResponseV0.decodeDelimited = function decodeDelimited(reader) {
77310
+ if (!(reader instanceof $Reader))
77311
+ reader = new $Reader(reader);
77312
+ return this.decode(reader, reader.uint32());
77313
+ };
77314
+
77315
+ /**
77316
+ * Verifies a GetAddressesTrunkStateResponseV0 message.
77317
+ * @function verify
77318
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
77319
+ * @static
77320
+ * @param {Object.<string,*>} message Plain object to verify
77321
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
77322
+ */
77323
+ GetAddressesTrunkStateResponseV0.verify = function verify(message) {
77324
+ if (typeof message !== "object" || message === null)
77325
+ return "object expected";
77326
+ if (message.proof != null && message.hasOwnProperty("proof")) {
77327
+ var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
77328
+ if (error)
77329
+ return "proof." + error;
77330
+ }
77331
+ if (message.metadata != null && message.hasOwnProperty("metadata")) {
77332
+ var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
77333
+ if (error)
77334
+ return "metadata." + error;
77335
+ }
77336
+ return null;
77337
+ };
77338
+
77339
+ /**
77340
+ * Creates a GetAddressesTrunkStateResponseV0 message from a plain object. Also converts values to their respective internal types.
77341
+ * @function fromObject
77342
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
77343
+ * @static
77344
+ * @param {Object.<string,*>} object Plain object
77345
+ * @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0} GetAddressesTrunkStateResponseV0
77346
+ */
77347
+ GetAddressesTrunkStateResponseV0.fromObject = function fromObject(object) {
77348
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0)
77349
+ return object;
77350
+ var message = new $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0();
77351
+ if (object.proof != null) {
77352
+ if (typeof object.proof !== "object")
77353
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.proof: object expected");
77354
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
77355
+ }
77356
+ if (object.metadata != null) {
77357
+ if (typeof object.metadata !== "object")
77358
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.metadata: object expected");
77359
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
77360
+ }
77361
+ return message;
77362
+ };
77363
+
77364
+ /**
77365
+ * Creates a plain object from a GetAddressesTrunkStateResponseV0 message. Also converts values to other types if specified.
77366
+ * @function toObject
77367
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
77368
+ * @static
77369
+ * @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0} message GetAddressesTrunkStateResponseV0
77370
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
77371
+ * @returns {Object.<string,*>} Plain object
77372
+ */
77373
+ GetAddressesTrunkStateResponseV0.toObject = function toObject(message, options) {
77374
+ if (!options)
77375
+ options = {};
77376
+ var object = {};
77377
+ if (options.defaults) {
77378
+ object.proof = null;
77379
+ object.metadata = null;
77380
+ }
77381
+ if (message.proof != null && message.hasOwnProperty("proof"))
77382
+ object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
77383
+ if (message.metadata != null && message.hasOwnProperty("metadata"))
77384
+ object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
77385
+ return object;
77386
+ };
77387
+
77388
+ /**
77389
+ * Converts this GetAddressesTrunkStateResponseV0 to JSON.
77390
+ * @function toJSON
77391
+ * @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
77392
+ * @instance
77393
+ * @returns {Object.<string,*>} JSON object
77394
+ */
77395
+ GetAddressesTrunkStateResponseV0.prototype.toJSON = function toJSON() {
77396
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
77397
+ };
77398
+
77399
+ return GetAddressesTrunkStateResponseV0;
77400
+ })();
77401
+
77402
+ return GetAddressesTrunkStateResponse;
77403
+ })();
77404
+
77405
+ v0.GetAddressesBranchStateRequest = (function() {
77406
+
77407
+ /**
77408
+ * Properties of a GetAddressesBranchStateRequest.
77409
+ * @memberof org.dash.platform.dapi.v0
77410
+ * @interface IGetAddressesBranchStateRequest
77411
+ * @property {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.IGetAddressesBranchStateRequestV0|null} [v0] GetAddressesBranchStateRequest v0
77412
+ */
77413
+
77414
+ /**
77415
+ * Constructs a new GetAddressesBranchStateRequest.
77416
+ * @memberof org.dash.platform.dapi.v0
77417
+ * @classdesc Represents a GetAddressesBranchStateRequest.
77418
+ * @implements IGetAddressesBranchStateRequest
77419
+ * @constructor
77420
+ * @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateRequest=} [properties] Properties to set
77421
+ */
77422
+ function GetAddressesBranchStateRequest(properties) {
77423
+ if (properties)
77424
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
77425
+ if (properties[keys[i]] != null)
77426
+ this[keys[i]] = properties[keys[i]];
77427
+ }
77428
+
77429
+ /**
77430
+ * GetAddressesBranchStateRequest v0.
77431
+ * @member {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.IGetAddressesBranchStateRequestV0|null|undefined} v0
77432
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
77433
+ * @instance
77434
+ */
77435
+ GetAddressesBranchStateRequest.prototype.v0 = null;
77436
+
77437
+ // OneOf field names bound to virtual getters and setters
77438
+ var $oneOfFields;
77439
+
77440
+ /**
77441
+ * GetAddressesBranchStateRequest version.
77442
+ * @member {"v0"|undefined} version
77443
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
77444
+ * @instance
77445
+ */
77446
+ Object.defineProperty(GetAddressesBranchStateRequest.prototype, "version", {
77447
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
77448
+ set: $util.oneOfSetter($oneOfFields)
77449
+ });
77450
+
77451
+ /**
77452
+ * Creates a new GetAddressesBranchStateRequest instance using the specified properties.
77453
+ * @function create
77454
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
77455
+ * @static
77456
+ * @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateRequest=} [properties] Properties to set
77457
+ * @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest} GetAddressesBranchStateRequest instance
77458
+ */
77459
+ GetAddressesBranchStateRequest.create = function create(properties) {
77460
+ return new GetAddressesBranchStateRequest(properties);
77461
+ };
77462
+
77463
+ /**
77464
+ * Encodes the specified GetAddressesBranchStateRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.verify|verify} messages.
77465
+ * @function encode
77466
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
77467
+ * @static
77468
+ * @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateRequest} message GetAddressesBranchStateRequest message or plain object to encode
77469
+ * @param {$protobuf.Writer} [writer] Writer to encode to
77470
+ * @returns {$protobuf.Writer} Writer
77471
+ */
77472
+ GetAddressesBranchStateRequest.encode = function encode(message, writer) {
77473
+ if (!writer)
77474
+ writer = $Writer.create();
77475
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
77476
+ $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
77477
+ return writer;
77478
+ };
77479
+
77480
+ /**
77481
+ * Encodes the specified GetAddressesBranchStateRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.verify|verify} messages.
77482
+ * @function encodeDelimited
77483
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
77484
+ * @static
77485
+ * @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateRequest} message GetAddressesBranchStateRequest message or plain object to encode
77486
+ * @param {$protobuf.Writer} [writer] Writer to encode to
77487
+ * @returns {$protobuf.Writer} Writer
77488
+ */
77489
+ GetAddressesBranchStateRequest.encodeDelimited = function encodeDelimited(message, writer) {
77490
+ return this.encode(message, writer).ldelim();
77491
+ };
77492
+
77493
+ /**
77494
+ * Decodes a GetAddressesBranchStateRequest message from the specified reader or buffer.
77495
+ * @function decode
77496
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
77497
+ * @static
77498
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
77499
+ * @param {number} [length] Message length if known beforehand
77500
+ * @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest} GetAddressesBranchStateRequest
77501
+ * @throws {Error} If the payload is not a reader or valid buffer
77502
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
77503
+ */
77504
+ GetAddressesBranchStateRequest.decode = function decode(reader, length) {
77505
+ if (!(reader instanceof $Reader))
77506
+ reader = $Reader.create(reader);
77507
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest();
77508
+ while (reader.pos < end) {
77509
+ var tag = reader.uint32();
77510
+ switch (tag >>> 3) {
77511
+ case 1:
77512
+ message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0.decode(reader, reader.uint32());
77513
+ break;
77514
+ default:
77515
+ reader.skipType(tag & 7);
77516
+ break;
77517
+ }
77518
+ }
77519
+ return message;
77520
+ };
77521
+
77522
+ /**
77523
+ * Decodes a GetAddressesBranchStateRequest message from the specified reader or buffer, length delimited.
77524
+ * @function decodeDelimited
77525
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
77526
+ * @static
77527
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
77528
+ * @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest} GetAddressesBranchStateRequest
77529
+ * @throws {Error} If the payload is not a reader or valid buffer
77530
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
77531
+ */
77532
+ GetAddressesBranchStateRequest.decodeDelimited = function decodeDelimited(reader) {
77533
+ if (!(reader instanceof $Reader))
77534
+ reader = new $Reader(reader);
77535
+ return this.decode(reader, reader.uint32());
77536
+ };
77537
+
77538
+ /**
77539
+ * Verifies a GetAddressesBranchStateRequest message.
77540
+ * @function verify
77541
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
77542
+ * @static
77543
+ * @param {Object.<string,*>} message Plain object to verify
77544
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
77545
+ */
77546
+ GetAddressesBranchStateRequest.verify = function verify(message) {
77547
+ if (typeof message !== "object" || message === null)
77548
+ return "object expected";
77549
+ var properties = {};
77550
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
77551
+ properties.version = 1;
77552
+ {
77553
+ var error = $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0.verify(message.v0);
77554
+ if (error)
77555
+ return "v0." + error;
77556
+ }
77557
+ }
77558
+ return null;
77559
+ };
77560
+
77561
+ /**
77562
+ * Creates a GetAddressesBranchStateRequest message from a plain object. Also converts values to their respective internal types.
77563
+ * @function fromObject
77564
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
77565
+ * @static
77566
+ * @param {Object.<string,*>} object Plain object
77567
+ * @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest} GetAddressesBranchStateRequest
77568
+ */
77569
+ GetAddressesBranchStateRequest.fromObject = function fromObject(object) {
77570
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest)
77571
+ return object;
77572
+ var message = new $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest();
77573
+ if (object.v0 != null) {
77574
+ if (typeof object.v0 !== "object")
77575
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.v0: object expected");
77576
+ message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0.fromObject(object.v0);
77577
+ }
77578
+ return message;
77579
+ };
77580
+
77581
+ /**
77582
+ * Creates a plain object from a GetAddressesBranchStateRequest message. Also converts values to other types if specified.
77583
+ * @function toObject
77584
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
77585
+ * @static
77586
+ * @param {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest} message GetAddressesBranchStateRequest
77587
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
77588
+ * @returns {Object.<string,*>} Plain object
77589
+ */
77590
+ GetAddressesBranchStateRequest.toObject = function toObject(message, options) {
77591
+ if (!options)
77592
+ options = {};
77593
+ var object = {};
77594
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
77595
+ object.v0 = $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0.toObject(message.v0, options);
77596
+ if (options.oneofs)
77597
+ object.version = "v0";
77598
+ }
77599
+ return object;
77600
+ };
77601
+
77602
+ /**
77603
+ * Converts this GetAddressesBranchStateRequest to JSON.
77604
+ * @function toJSON
77605
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
77606
+ * @instance
77607
+ * @returns {Object.<string,*>} JSON object
77608
+ */
77609
+ GetAddressesBranchStateRequest.prototype.toJSON = function toJSON() {
77610
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
77611
+ };
77612
+
77613
+ GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0 = (function() {
77614
+
77615
+ /**
77616
+ * Properties of a GetAddressesBranchStateRequestV0.
77617
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
77618
+ * @interface IGetAddressesBranchStateRequestV0
77619
+ * @property {Uint8Array|null} [key] GetAddressesBranchStateRequestV0 key
77620
+ * @property {number|null} [depth] GetAddressesBranchStateRequestV0 depth
77621
+ */
77622
+
77623
+ /**
77624
+ * Constructs a new GetAddressesBranchStateRequestV0.
77625
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
77626
+ * @classdesc Represents a GetAddressesBranchStateRequestV0.
77627
+ * @implements IGetAddressesBranchStateRequestV0
77628
+ * @constructor
77629
+ * @param {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.IGetAddressesBranchStateRequestV0=} [properties] Properties to set
77630
+ */
77631
+ function GetAddressesBranchStateRequestV0(properties) {
77632
+ if (properties)
77633
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
77634
+ if (properties[keys[i]] != null)
77635
+ this[keys[i]] = properties[keys[i]];
77636
+ }
77637
+
77638
+ /**
77639
+ * GetAddressesBranchStateRequestV0 key.
77640
+ * @member {Uint8Array} key
77641
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
77642
+ * @instance
77643
+ */
77644
+ GetAddressesBranchStateRequestV0.prototype.key = $util.newBuffer([]);
77645
+
77646
+ /**
77647
+ * GetAddressesBranchStateRequestV0 depth.
77648
+ * @member {number} depth
77649
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
77650
+ * @instance
77651
+ */
77652
+ GetAddressesBranchStateRequestV0.prototype.depth = 0;
77653
+
77654
+ /**
77655
+ * Creates a new GetAddressesBranchStateRequestV0 instance using the specified properties.
77656
+ * @function create
77657
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
77658
+ * @static
77659
+ * @param {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.IGetAddressesBranchStateRequestV0=} [properties] Properties to set
77660
+ * @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0} GetAddressesBranchStateRequestV0 instance
77661
+ */
77662
+ GetAddressesBranchStateRequestV0.create = function create(properties) {
77663
+ return new GetAddressesBranchStateRequestV0(properties);
77664
+ };
77665
+
77666
+ /**
77667
+ * Encodes the specified GetAddressesBranchStateRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0.verify|verify} messages.
77668
+ * @function encode
77669
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
77670
+ * @static
77671
+ * @param {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.IGetAddressesBranchStateRequestV0} message GetAddressesBranchStateRequestV0 message or plain object to encode
77672
+ * @param {$protobuf.Writer} [writer] Writer to encode to
77673
+ * @returns {$protobuf.Writer} Writer
77674
+ */
77675
+ GetAddressesBranchStateRequestV0.encode = function encode(message, writer) {
77676
+ if (!writer)
77677
+ writer = $Writer.create();
77678
+ if (message.key != null && Object.hasOwnProperty.call(message, "key"))
77679
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key);
77680
+ if (message.depth != null && Object.hasOwnProperty.call(message, "depth"))
77681
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.depth);
77682
+ return writer;
77683
+ };
77684
+
77685
+ /**
77686
+ * Encodes the specified GetAddressesBranchStateRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0.verify|verify} messages.
77687
+ * @function encodeDelimited
77688
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
77689
+ * @static
77690
+ * @param {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.IGetAddressesBranchStateRequestV0} message GetAddressesBranchStateRequestV0 message or plain object to encode
77691
+ * @param {$protobuf.Writer} [writer] Writer to encode to
77692
+ * @returns {$protobuf.Writer} Writer
77693
+ */
77694
+ GetAddressesBranchStateRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
77695
+ return this.encode(message, writer).ldelim();
77696
+ };
77697
+
77698
+ /**
77699
+ * Decodes a GetAddressesBranchStateRequestV0 message from the specified reader or buffer.
77700
+ * @function decode
77701
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
77702
+ * @static
77703
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
77704
+ * @param {number} [length] Message length if known beforehand
77705
+ * @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0} GetAddressesBranchStateRequestV0
77706
+ * @throws {Error} If the payload is not a reader or valid buffer
77707
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
77708
+ */
77709
+ GetAddressesBranchStateRequestV0.decode = function decode(reader, length) {
77710
+ if (!(reader instanceof $Reader))
77711
+ reader = $Reader.create(reader);
77712
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0();
77713
+ while (reader.pos < end) {
77714
+ var tag = reader.uint32();
77715
+ switch (tag >>> 3) {
77716
+ case 1:
77717
+ message.key = reader.bytes();
77718
+ break;
77719
+ case 2:
77720
+ message.depth = reader.uint32();
77721
+ break;
77722
+ default:
77723
+ reader.skipType(tag & 7);
77724
+ break;
77725
+ }
77726
+ }
77727
+ return message;
77728
+ };
77729
+
77730
+ /**
77731
+ * Decodes a GetAddressesBranchStateRequestV0 message from the specified reader or buffer, length delimited.
77732
+ * @function decodeDelimited
77733
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
77734
+ * @static
77735
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
77736
+ * @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0} GetAddressesBranchStateRequestV0
77737
+ * @throws {Error} If the payload is not a reader or valid buffer
77738
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
77739
+ */
77740
+ GetAddressesBranchStateRequestV0.decodeDelimited = function decodeDelimited(reader) {
77741
+ if (!(reader instanceof $Reader))
77742
+ reader = new $Reader(reader);
77743
+ return this.decode(reader, reader.uint32());
77744
+ };
77745
+
77746
+ /**
77747
+ * Verifies a GetAddressesBranchStateRequestV0 message.
77748
+ * @function verify
77749
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
77750
+ * @static
77751
+ * @param {Object.<string,*>} message Plain object to verify
77752
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
77753
+ */
77754
+ GetAddressesBranchStateRequestV0.verify = function verify(message) {
77755
+ if (typeof message !== "object" || message === null)
77756
+ return "object expected";
77757
+ if (message.key != null && message.hasOwnProperty("key"))
77758
+ if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key)))
77759
+ return "key: buffer expected";
77760
+ if (message.depth != null && message.hasOwnProperty("depth"))
77761
+ if (!$util.isInteger(message.depth))
77762
+ return "depth: integer expected";
77763
+ return null;
77764
+ };
77765
+
77766
+ /**
77767
+ * Creates a GetAddressesBranchStateRequestV0 message from a plain object. Also converts values to their respective internal types.
77768
+ * @function fromObject
77769
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
77770
+ * @static
77771
+ * @param {Object.<string,*>} object Plain object
77772
+ * @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0} GetAddressesBranchStateRequestV0
77773
+ */
77774
+ GetAddressesBranchStateRequestV0.fromObject = function fromObject(object) {
77775
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0)
77776
+ return object;
77777
+ var message = new $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0();
77778
+ if (object.key != null)
77779
+ if (typeof object.key === "string")
77780
+ $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0);
77781
+ else if (object.key.length >= 0)
77782
+ message.key = object.key;
77783
+ if (object.depth != null)
77784
+ message.depth = object.depth >>> 0;
77785
+ return message;
77786
+ };
77787
+
77788
+ /**
77789
+ * Creates a plain object from a GetAddressesBranchStateRequestV0 message. Also converts values to other types if specified.
77790
+ * @function toObject
77791
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
77792
+ * @static
77793
+ * @param {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0} message GetAddressesBranchStateRequestV0
77794
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
77795
+ * @returns {Object.<string,*>} Plain object
77796
+ */
77797
+ GetAddressesBranchStateRequestV0.toObject = function toObject(message, options) {
77798
+ if (!options)
77799
+ options = {};
77800
+ var object = {};
77801
+ if (options.defaults) {
77802
+ if (options.bytes === String)
77803
+ object.key = "";
77804
+ else {
77805
+ object.key = [];
77806
+ if (options.bytes !== Array)
77807
+ object.key = $util.newBuffer(object.key);
77808
+ }
77809
+ object.depth = 0;
77810
+ }
77811
+ if (message.key != null && message.hasOwnProperty("key"))
77812
+ object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key;
77813
+ if (message.depth != null && message.hasOwnProperty("depth"))
77814
+ object.depth = message.depth;
77815
+ return object;
77816
+ };
77817
+
77818
+ /**
77819
+ * Converts this GetAddressesBranchStateRequestV0 to JSON.
77820
+ * @function toJSON
77821
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
77822
+ * @instance
77823
+ * @returns {Object.<string,*>} JSON object
77824
+ */
77825
+ GetAddressesBranchStateRequestV0.prototype.toJSON = function toJSON() {
77826
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
77827
+ };
77828
+
77829
+ return GetAddressesBranchStateRequestV0;
77830
+ })();
77831
+
77832
+ return GetAddressesBranchStateRequest;
77833
+ })();
77834
+
77835
+ v0.GetAddressesBranchStateResponse = (function() {
77836
+
77837
+ /**
77838
+ * Properties of a GetAddressesBranchStateResponse.
77839
+ * @memberof org.dash.platform.dapi.v0
77840
+ * @interface IGetAddressesBranchStateResponse
77841
+ * @property {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.IGetAddressesBranchStateResponseV0|null} [v0] GetAddressesBranchStateResponse v0
77842
+ */
77843
+
77844
+ /**
77845
+ * Constructs a new GetAddressesBranchStateResponse.
77846
+ * @memberof org.dash.platform.dapi.v0
77847
+ * @classdesc Represents a GetAddressesBranchStateResponse.
77848
+ * @implements IGetAddressesBranchStateResponse
77849
+ * @constructor
77850
+ * @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateResponse=} [properties] Properties to set
77851
+ */
77852
+ function GetAddressesBranchStateResponse(properties) {
77853
+ if (properties)
77854
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
77855
+ if (properties[keys[i]] != null)
77856
+ this[keys[i]] = properties[keys[i]];
77857
+ }
77858
+
77859
+ /**
77860
+ * GetAddressesBranchStateResponse v0.
77861
+ * @member {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.IGetAddressesBranchStateResponseV0|null|undefined} v0
77862
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
77863
+ * @instance
77864
+ */
77865
+ GetAddressesBranchStateResponse.prototype.v0 = null;
77866
+
77867
+ // OneOf field names bound to virtual getters and setters
77868
+ var $oneOfFields;
77869
+
77870
+ /**
77871
+ * GetAddressesBranchStateResponse version.
77872
+ * @member {"v0"|undefined} version
77873
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
77874
+ * @instance
77875
+ */
77876
+ Object.defineProperty(GetAddressesBranchStateResponse.prototype, "version", {
77877
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
77878
+ set: $util.oneOfSetter($oneOfFields)
77879
+ });
77880
+
77881
+ /**
77882
+ * Creates a new GetAddressesBranchStateResponse instance using the specified properties.
77883
+ * @function create
77884
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
77885
+ * @static
77886
+ * @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateResponse=} [properties] Properties to set
77887
+ * @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse} GetAddressesBranchStateResponse instance
77888
+ */
77889
+ GetAddressesBranchStateResponse.create = function create(properties) {
77890
+ return new GetAddressesBranchStateResponse(properties);
77891
+ };
77892
+
77893
+ /**
77894
+ * Encodes the specified GetAddressesBranchStateResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.verify|verify} messages.
77895
+ * @function encode
77896
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
77897
+ * @static
77898
+ * @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateResponse} message GetAddressesBranchStateResponse message or plain object to encode
77899
+ * @param {$protobuf.Writer} [writer] Writer to encode to
77900
+ * @returns {$protobuf.Writer} Writer
77901
+ */
77902
+ GetAddressesBranchStateResponse.encode = function encode(message, writer) {
77903
+ if (!writer)
77904
+ writer = $Writer.create();
77905
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
77906
+ $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
77907
+ return writer;
77908
+ };
77909
+
77910
+ /**
77911
+ * Encodes the specified GetAddressesBranchStateResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.verify|verify} messages.
77912
+ * @function encodeDelimited
77913
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
77914
+ * @static
77915
+ * @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateResponse} message GetAddressesBranchStateResponse message or plain object to encode
77916
+ * @param {$protobuf.Writer} [writer] Writer to encode to
77917
+ * @returns {$protobuf.Writer} Writer
77918
+ */
77919
+ GetAddressesBranchStateResponse.encodeDelimited = function encodeDelimited(message, writer) {
77920
+ return this.encode(message, writer).ldelim();
77921
+ };
77922
+
77923
+ /**
77924
+ * Decodes a GetAddressesBranchStateResponse message from the specified reader or buffer.
77925
+ * @function decode
77926
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
77927
+ * @static
77928
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
77929
+ * @param {number} [length] Message length if known beforehand
77930
+ * @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse} GetAddressesBranchStateResponse
77931
+ * @throws {Error} If the payload is not a reader or valid buffer
77932
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
77933
+ */
77934
+ GetAddressesBranchStateResponse.decode = function decode(reader, length) {
77935
+ if (!(reader instanceof $Reader))
77936
+ reader = $Reader.create(reader);
77937
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse();
77938
+ while (reader.pos < end) {
77939
+ var tag = reader.uint32();
77940
+ switch (tag >>> 3) {
77941
+ case 1:
77942
+ message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0.decode(reader, reader.uint32());
77943
+ break;
77944
+ default:
77945
+ reader.skipType(tag & 7);
77946
+ break;
77947
+ }
77948
+ }
77949
+ return message;
77950
+ };
77951
+
77952
+ /**
77953
+ * Decodes a GetAddressesBranchStateResponse message from the specified reader or buffer, length delimited.
77954
+ * @function decodeDelimited
77955
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
77956
+ * @static
77957
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
77958
+ * @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse} GetAddressesBranchStateResponse
77959
+ * @throws {Error} If the payload is not a reader or valid buffer
77960
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
77961
+ */
77962
+ GetAddressesBranchStateResponse.decodeDelimited = function decodeDelimited(reader) {
77963
+ if (!(reader instanceof $Reader))
77964
+ reader = new $Reader(reader);
77965
+ return this.decode(reader, reader.uint32());
77966
+ };
77967
+
77968
+ /**
77969
+ * Verifies a GetAddressesBranchStateResponse message.
77970
+ * @function verify
77971
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
77972
+ * @static
77973
+ * @param {Object.<string,*>} message Plain object to verify
77974
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
77975
+ */
77976
+ GetAddressesBranchStateResponse.verify = function verify(message) {
77977
+ if (typeof message !== "object" || message === null)
77978
+ return "object expected";
77979
+ var properties = {};
77980
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
77981
+ properties.version = 1;
77982
+ {
77983
+ var error = $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0.verify(message.v0);
77984
+ if (error)
77985
+ return "v0." + error;
77986
+ }
77987
+ }
77988
+ return null;
77989
+ };
77990
+
77991
+ /**
77992
+ * Creates a GetAddressesBranchStateResponse message from a plain object. Also converts values to their respective internal types.
77993
+ * @function fromObject
77994
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
77995
+ * @static
77996
+ * @param {Object.<string,*>} object Plain object
77997
+ * @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse} GetAddressesBranchStateResponse
77998
+ */
77999
+ GetAddressesBranchStateResponse.fromObject = function fromObject(object) {
78000
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse)
78001
+ return object;
78002
+ var message = new $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse();
78003
+ if (object.v0 != null) {
78004
+ if (typeof object.v0 !== "object")
78005
+ throw TypeError(".org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.v0: object expected");
78006
+ message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0.fromObject(object.v0);
78007
+ }
78008
+ return message;
78009
+ };
78010
+
78011
+ /**
78012
+ * Creates a plain object from a GetAddressesBranchStateResponse message. Also converts values to other types if specified.
78013
+ * @function toObject
78014
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
78015
+ * @static
78016
+ * @param {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse} message GetAddressesBranchStateResponse
78017
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
78018
+ * @returns {Object.<string,*>} Plain object
78019
+ */
78020
+ GetAddressesBranchStateResponse.toObject = function toObject(message, options) {
78021
+ if (!options)
78022
+ options = {};
78023
+ var object = {};
78024
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
78025
+ object.v0 = $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0.toObject(message.v0, options);
78026
+ if (options.oneofs)
78027
+ object.version = "v0";
78028
+ }
78029
+ return object;
78030
+ };
78031
+
78032
+ /**
78033
+ * Converts this GetAddressesBranchStateResponse to JSON.
78034
+ * @function toJSON
78035
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
78036
+ * @instance
78037
+ * @returns {Object.<string,*>} JSON object
78038
+ */
78039
+ GetAddressesBranchStateResponse.prototype.toJSON = function toJSON() {
78040
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
78041
+ };
78042
+
78043
+ GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0 = (function() {
78044
+
78045
+ /**
78046
+ * Properties of a GetAddressesBranchStateResponseV0.
78047
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
78048
+ * @interface IGetAddressesBranchStateResponseV0
78049
+ * @property {Uint8Array|null} [merkProof] GetAddressesBranchStateResponseV0 merkProof
78050
+ */
78051
+
78052
+ /**
78053
+ * Constructs a new GetAddressesBranchStateResponseV0.
78054
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
78055
+ * @classdesc Represents a GetAddressesBranchStateResponseV0.
78056
+ * @implements IGetAddressesBranchStateResponseV0
78057
+ * @constructor
78058
+ * @param {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.IGetAddressesBranchStateResponseV0=} [properties] Properties to set
78059
+ */
78060
+ function GetAddressesBranchStateResponseV0(properties) {
78061
+ if (properties)
78062
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
78063
+ if (properties[keys[i]] != null)
78064
+ this[keys[i]] = properties[keys[i]];
78065
+ }
78066
+
78067
+ /**
78068
+ * GetAddressesBranchStateResponseV0 merkProof.
78069
+ * @member {Uint8Array} merkProof
78070
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
78071
+ * @instance
78072
+ */
78073
+ GetAddressesBranchStateResponseV0.prototype.merkProof = $util.newBuffer([]);
78074
+
78075
+ /**
78076
+ * Creates a new GetAddressesBranchStateResponseV0 instance using the specified properties.
78077
+ * @function create
78078
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
78079
+ * @static
78080
+ * @param {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.IGetAddressesBranchStateResponseV0=} [properties] Properties to set
78081
+ * @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0} GetAddressesBranchStateResponseV0 instance
78082
+ */
78083
+ GetAddressesBranchStateResponseV0.create = function create(properties) {
78084
+ return new GetAddressesBranchStateResponseV0(properties);
78085
+ };
78086
+
78087
+ /**
78088
+ * Encodes the specified GetAddressesBranchStateResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0.verify|verify} messages.
78089
+ * @function encode
78090
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
78091
+ * @static
78092
+ * @param {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.IGetAddressesBranchStateResponseV0} message GetAddressesBranchStateResponseV0 message or plain object to encode
78093
+ * @param {$protobuf.Writer} [writer] Writer to encode to
78094
+ * @returns {$protobuf.Writer} Writer
78095
+ */
78096
+ GetAddressesBranchStateResponseV0.encode = function encode(message, writer) {
78097
+ if (!writer)
78098
+ writer = $Writer.create();
78099
+ if (message.merkProof != null && Object.hasOwnProperty.call(message, "merkProof"))
78100
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.merkProof);
78101
+ return writer;
78102
+ };
78103
+
78104
+ /**
78105
+ * Encodes the specified GetAddressesBranchStateResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0.verify|verify} messages.
78106
+ * @function encodeDelimited
78107
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
78108
+ * @static
78109
+ * @param {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.IGetAddressesBranchStateResponseV0} message GetAddressesBranchStateResponseV0 message or plain object to encode
78110
+ * @param {$protobuf.Writer} [writer] Writer to encode to
78111
+ * @returns {$protobuf.Writer} Writer
78112
+ */
78113
+ GetAddressesBranchStateResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
78114
+ return this.encode(message, writer).ldelim();
78115
+ };
78116
+
78117
+ /**
78118
+ * Decodes a GetAddressesBranchStateResponseV0 message from the specified reader or buffer.
78119
+ * @function decode
78120
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
78121
+ * @static
78122
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
78123
+ * @param {number} [length] Message length if known beforehand
78124
+ * @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0} GetAddressesBranchStateResponseV0
78125
+ * @throws {Error} If the payload is not a reader or valid buffer
78126
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
78127
+ */
78128
+ GetAddressesBranchStateResponseV0.decode = function decode(reader, length) {
78129
+ if (!(reader instanceof $Reader))
78130
+ reader = $Reader.create(reader);
78131
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0();
78132
+ while (reader.pos < end) {
78133
+ var tag = reader.uint32();
78134
+ switch (tag >>> 3) {
78135
+ case 2:
78136
+ message.merkProof = reader.bytes();
78137
+ break;
78138
+ default:
78139
+ reader.skipType(tag & 7);
78140
+ break;
78141
+ }
78142
+ }
78143
+ return message;
78144
+ };
78145
+
78146
+ /**
78147
+ * Decodes a GetAddressesBranchStateResponseV0 message from the specified reader or buffer, length delimited.
78148
+ * @function decodeDelimited
78149
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
78150
+ * @static
78151
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
78152
+ * @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0} GetAddressesBranchStateResponseV0
78153
+ * @throws {Error} If the payload is not a reader or valid buffer
78154
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
78155
+ */
78156
+ GetAddressesBranchStateResponseV0.decodeDelimited = function decodeDelimited(reader) {
78157
+ if (!(reader instanceof $Reader))
78158
+ reader = new $Reader(reader);
78159
+ return this.decode(reader, reader.uint32());
78160
+ };
78161
+
78162
+ /**
78163
+ * Verifies a GetAddressesBranchStateResponseV0 message.
78164
+ * @function verify
78165
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
78166
+ * @static
78167
+ * @param {Object.<string,*>} message Plain object to verify
78168
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
78169
+ */
78170
+ GetAddressesBranchStateResponseV0.verify = function verify(message) {
78171
+ if (typeof message !== "object" || message === null)
78172
+ return "object expected";
78173
+ if (message.merkProof != null && message.hasOwnProperty("merkProof"))
78174
+ if (!(message.merkProof && typeof message.merkProof.length === "number" || $util.isString(message.merkProof)))
78175
+ return "merkProof: buffer expected";
78176
+ return null;
78177
+ };
78178
+
78179
+ /**
78180
+ * Creates a GetAddressesBranchStateResponseV0 message from a plain object. Also converts values to their respective internal types.
78181
+ * @function fromObject
78182
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
78183
+ * @static
78184
+ * @param {Object.<string,*>} object Plain object
78185
+ * @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0} GetAddressesBranchStateResponseV0
78186
+ */
78187
+ GetAddressesBranchStateResponseV0.fromObject = function fromObject(object) {
78188
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0)
78189
+ return object;
78190
+ var message = new $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0();
78191
+ if (object.merkProof != null)
78192
+ if (typeof object.merkProof === "string")
78193
+ $util.base64.decode(object.merkProof, message.merkProof = $util.newBuffer($util.base64.length(object.merkProof)), 0);
78194
+ else if (object.merkProof.length >= 0)
78195
+ message.merkProof = object.merkProof;
78196
+ return message;
78197
+ };
78198
+
78199
+ /**
78200
+ * Creates a plain object from a GetAddressesBranchStateResponseV0 message. Also converts values to other types if specified.
78201
+ * @function toObject
78202
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
78203
+ * @static
78204
+ * @param {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0} message GetAddressesBranchStateResponseV0
78205
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
78206
+ * @returns {Object.<string,*>} Plain object
78207
+ */
78208
+ GetAddressesBranchStateResponseV0.toObject = function toObject(message, options) {
78209
+ if (!options)
78210
+ options = {};
78211
+ var object = {};
78212
+ if (options.defaults)
78213
+ if (options.bytes === String)
78214
+ object.merkProof = "";
78215
+ else {
78216
+ object.merkProof = [];
78217
+ if (options.bytes !== Array)
78218
+ object.merkProof = $util.newBuffer(object.merkProof);
78219
+ }
78220
+ if (message.merkProof != null && message.hasOwnProperty("merkProof"))
78221
+ object.merkProof = options.bytes === String ? $util.base64.encode(message.merkProof, 0, message.merkProof.length) : options.bytes === Array ? Array.prototype.slice.call(message.merkProof) : message.merkProof;
78222
+ return object;
78223
+ };
78224
+
78225
+ /**
78226
+ * Converts this GetAddressesBranchStateResponseV0 to JSON.
78227
+ * @function toJSON
78228
+ * @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
78229
+ * @instance
78230
+ * @returns {Object.<string,*>} JSON object
78231
+ */
78232
+ GetAddressesBranchStateResponseV0.prototype.toJSON = function toJSON() {
78233
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
78234
+ };
78235
+
78236
+ return GetAddressesBranchStateResponseV0;
78237
+ })();
78238
+
78239
+ return GetAddressesBranchStateResponse;
78240
+ })();
78241
+
73977
78242
  return v0;
73978
78243
  })();
73979
78244