@dashevo/dapi-grpc 2.0.0-rc.1 → 2.0.0-rc.2

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.
@@ -1373,6 +1373,39 @@ $root.org = (function() {
1373
1373
  * @variation 2
1374
1374
  */
1375
1375
 
1376
+ /**
1377
+ * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getTokenPerpetualDistributionLastClaim}.
1378
+ * @memberof org.dash.platform.dapi.v0.Platform
1379
+ * @typedef getTokenPerpetualDistributionLastClaimCallback
1380
+ * @type {function}
1381
+ * @param {Error|null} error Error, if any
1382
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} [response] GetTokenPerpetualDistributionLastClaimResponse
1383
+ */
1384
+
1385
+ /**
1386
+ * Calls getTokenPerpetualDistributionLastClaim.
1387
+ * @function getTokenPerpetualDistributionLastClaim
1388
+ * @memberof org.dash.platform.dapi.v0.Platform
1389
+ * @instance
1390
+ * @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest} request GetTokenPerpetualDistributionLastClaimRequest message or plain object
1391
+ * @param {org.dash.platform.dapi.v0.Platform.getTokenPerpetualDistributionLastClaimCallback} callback Node-style callback called with the error, if any, and GetTokenPerpetualDistributionLastClaimResponse
1392
+ * @returns {undefined}
1393
+ * @variation 1
1394
+ */
1395
+ Object.defineProperty(Platform.prototype.getTokenPerpetualDistributionLastClaim = function getTokenPerpetualDistributionLastClaim(request, callback) {
1396
+ return this.rpcCall(getTokenPerpetualDistributionLastClaim, $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest, $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse, request, callback);
1397
+ }, "name", { value: "getTokenPerpetualDistributionLastClaim" });
1398
+
1399
+ /**
1400
+ * Calls getTokenPerpetualDistributionLastClaim.
1401
+ * @function getTokenPerpetualDistributionLastClaim
1402
+ * @memberof org.dash.platform.dapi.v0.Platform
1403
+ * @instance
1404
+ * @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest} request GetTokenPerpetualDistributionLastClaimRequest message or plain object
1405
+ * @returns {Promise<org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse>} Promise
1406
+ * @variation 2
1407
+ */
1408
+
1376
1409
  /**
1377
1410
  * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getTokenTotalSupply}.
1378
1411
  * @memberof org.dash.platform.dapi.v0.Platform
@@ -57103,6 +57136,1509 @@ $root.org = (function() {
57103
57136
  return GetTokenPreProgrammedDistributionsResponse;
57104
57137
  })();
57105
57138
 
57139
+ v0.GetTokenPerpetualDistributionLastClaimRequest = (function() {
57140
+
57141
+ /**
57142
+ * Properties of a GetTokenPerpetualDistributionLastClaimRequest.
57143
+ * @memberof org.dash.platform.dapi.v0
57144
+ * @interface IGetTokenPerpetualDistributionLastClaimRequest
57145
+ * @property {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0|null} [v0] GetTokenPerpetualDistributionLastClaimRequest v0
57146
+ */
57147
+
57148
+ /**
57149
+ * Constructs a new GetTokenPerpetualDistributionLastClaimRequest.
57150
+ * @memberof org.dash.platform.dapi.v0
57151
+ * @classdesc Represents a GetTokenPerpetualDistributionLastClaimRequest.
57152
+ * @implements IGetTokenPerpetualDistributionLastClaimRequest
57153
+ * @constructor
57154
+ * @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest=} [properties] Properties to set
57155
+ */
57156
+ function GetTokenPerpetualDistributionLastClaimRequest(properties) {
57157
+ if (properties)
57158
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
57159
+ if (properties[keys[i]] != null)
57160
+ this[keys[i]] = properties[keys[i]];
57161
+ }
57162
+
57163
+ /**
57164
+ * GetTokenPerpetualDistributionLastClaimRequest v0.
57165
+ * @member {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0|null|undefined} v0
57166
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
57167
+ * @instance
57168
+ */
57169
+ GetTokenPerpetualDistributionLastClaimRequest.prototype.v0 = null;
57170
+
57171
+ // OneOf field names bound to virtual getters and setters
57172
+ var $oneOfFields;
57173
+
57174
+ /**
57175
+ * GetTokenPerpetualDistributionLastClaimRequest version.
57176
+ * @member {"v0"|undefined} version
57177
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
57178
+ * @instance
57179
+ */
57180
+ Object.defineProperty(GetTokenPerpetualDistributionLastClaimRequest.prototype, "version", {
57181
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
57182
+ set: $util.oneOfSetter($oneOfFields)
57183
+ });
57184
+
57185
+ /**
57186
+ * Creates a new GetTokenPerpetualDistributionLastClaimRequest instance using the specified properties.
57187
+ * @function create
57188
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
57189
+ * @static
57190
+ * @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest=} [properties] Properties to set
57191
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} GetTokenPerpetualDistributionLastClaimRequest instance
57192
+ */
57193
+ GetTokenPerpetualDistributionLastClaimRequest.create = function create(properties) {
57194
+ return new GetTokenPerpetualDistributionLastClaimRequest(properties);
57195
+ };
57196
+
57197
+ /**
57198
+ * Encodes the specified GetTokenPerpetualDistributionLastClaimRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.verify|verify} messages.
57199
+ * @function encode
57200
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
57201
+ * @static
57202
+ * @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest} message GetTokenPerpetualDistributionLastClaimRequest message or plain object to encode
57203
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57204
+ * @returns {$protobuf.Writer} Writer
57205
+ */
57206
+ GetTokenPerpetualDistributionLastClaimRequest.encode = function encode(message, writer) {
57207
+ if (!writer)
57208
+ writer = $Writer.create();
57209
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
57210
+ $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
57211
+ return writer;
57212
+ };
57213
+
57214
+ /**
57215
+ * Encodes the specified GetTokenPerpetualDistributionLastClaimRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.verify|verify} messages.
57216
+ * @function encodeDelimited
57217
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
57218
+ * @static
57219
+ * @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest} message GetTokenPerpetualDistributionLastClaimRequest message or plain object to encode
57220
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57221
+ * @returns {$protobuf.Writer} Writer
57222
+ */
57223
+ GetTokenPerpetualDistributionLastClaimRequest.encodeDelimited = function encodeDelimited(message, writer) {
57224
+ return this.encode(message, writer).ldelim();
57225
+ };
57226
+
57227
+ /**
57228
+ * Decodes a GetTokenPerpetualDistributionLastClaimRequest message from the specified reader or buffer.
57229
+ * @function decode
57230
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
57231
+ * @static
57232
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57233
+ * @param {number} [length] Message length if known beforehand
57234
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} GetTokenPerpetualDistributionLastClaimRequest
57235
+ * @throws {Error} If the payload is not a reader or valid buffer
57236
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57237
+ */
57238
+ GetTokenPerpetualDistributionLastClaimRequest.decode = function decode(reader, length) {
57239
+ if (!(reader instanceof $Reader))
57240
+ reader = $Reader.create(reader);
57241
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest();
57242
+ while (reader.pos < end) {
57243
+ var tag = reader.uint32();
57244
+ switch (tag >>> 3) {
57245
+ case 1:
57246
+ message.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.decode(reader, reader.uint32());
57247
+ break;
57248
+ default:
57249
+ reader.skipType(tag & 7);
57250
+ break;
57251
+ }
57252
+ }
57253
+ return message;
57254
+ };
57255
+
57256
+ /**
57257
+ * Decodes a GetTokenPerpetualDistributionLastClaimRequest message from the specified reader or buffer, length delimited.
57258
+ * @function decodeDelimited
57259
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
57260
+ * @static
57261
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57262
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} GetTokenPerpetualDistributionLastClaimRequest
57263
+ * @throws {Error} If the payload is not a reader or valid buffer
57264
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57265
+ */
57266
+ GetTokenPerpetualDistributionLastClaimRequest.decodeDelimited = function decodeDelimited(reader) {
57267
+ if (!(reader instanceof $Reader))
57268
+ reader = new $Reader(reader);
57269
+ return this.decode(reader, reader.uint32());
57270
+ };
57271
+
57272
+ /**
57273
+ * Verifies a GetTokenPerpetualDistributionLastClaimRequest message.
57274
+ * @function verify
57275
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
57276
+ * @static
57277
+ * @param {Object.<string,*>} message Plain object to verify
57278
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
57279
+ */
57280
+ GetTokenPerpetualDistributionLastClaimRequest.verify = function verify(message) {
57281
+ if (typeof message !== "object" || message === null)
57282
+ return "object expected";
57283
+ var properties = {};
57284
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
57285
+ properties.version = 1;
57286
+ {
57287
+ var error = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.verify(message.v0);
57288
+ if (error)
57289
+ return "v0." + error;
57290
+ }
57291
+ }
57292
+ return null;
57293
+ };
57294
+
57295
+ /**
57296
+ * Creates a GetTokenPerpetualDistributionLastClaimRequest message from a plain object. Also converts values to their respective internal types.
57297
+ * @function fromObject
57298
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
57299
+ * @static
57300
+ * @param {Object.<string,*>} object Plain object
57301
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} GetTokenPerpetualDistributionLastClaimRequest
57302
+ */
57303
+ GetTokenPerpetualDistributionLastClaimRequest.fromObject = function fromObject(object) {
57304
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest)
57305
+ return object;
57306
+ var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest();
57307
+ if (object.v0 != null) {
57308
+ if (typeof object.v0 !== "object")
57309
+ throw TypeError(".org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.v0: object expected");
57310
+ message.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.fromObject(object.v0);
57311
+ }
57312
+ return message;
57313
+ };
57314
+
57315
+ /**
57316
+ * Creates a plain object from a GetTokenPerpetualDistributionLastClaimRequest message. Also converts values to other types if specified.
57317
+ * @function toObject
57318
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
57319
+ * @static
57320
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} message GetTokenPerpetualDistributionLastClaimRequest
57321
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
57322
+ * @returns {Object.<string,*>} Plain object
57323
+ */
57324
+ GetTokenPerpetualDistributionLastClaimRequest.toObject = function toObject(message, options) {
57325
+ if (!options)
57326
+ options = {};
57327
+ var object = {};
57328
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
57329
+ object.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.toObject(message.v0, options);
57330
+ if (options.oneofs)
57331
+ object.version = "v0";
57332
+ }
57333
+ return object;
57334
+ };
57335
+
57336
+ /**
57337
+ * Converts this GetTokenPerpetualDistributionLastClaimRequest to JSON.
57338
+ * @function toJSON
57339
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
57340
+ * @instance
57341
+ * @returns {Object.<string,*>} JSON object
57342
+ */
57343
+ GetTokenPerpetualDistributionLastClaimRequest.prototype.toJSON = function toJSON() {
57344
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
57345
+ };
57346
+
57347
+ GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo = (function() {
57348
+
57349
+ /**
57350
+ * Properties of a ContractTokenInfo.
57351
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
57352
+ * @interface IContractTokenInfo
57353
+ * @property {Uint8Array|null} [contractId] ContractTokenInfo contractId
57354
+ * @property {number|null} [tokenContractPosition] ContractTokenInfo tokenContractPosition
57355
+ */
57356
+
57357
+ /**
57358
+ * Constructs a new ContractTokenInfo.
57359
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
57360
+ * @classdesc Represents a ContractTokenInfo.
57361
+ * @implements IContractTokenInfo
57362
+ * @constructor
57363
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IContractTokenInfo=} [properties] Properties to set
57364
+ */
57365
+ function ContractTokenInfo(properties) {
57366
+ if (properties)
57367
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
57368
+ if (properties[keys[i]] != null)
57369
+ this[keys[i]] = properties[keys[i]];
57370
+ }
57371
+
57372
+ /**
57373
+ * ContractTokenInfo contractId.
57374
+ * @member {Uint8Array} contractId
57375
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
57376
+ * @instance
57377
+ */
57378
+ ContractTokenInfo.prototype.contractId = $util.newBuffer([]);
57379
+
57380
+ /**
57381
+ * ContractTokenInfo tokenContractPosition.
57382
+ * @member {number} tokenContractPosition
57383
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
57384
+ * @instance
57385
+ */
57386
+ ContractTokenInfo.prototype.tokenContractPosition = 0;
57387
+
57388
+ /**
57389
+ * Creates a new ContractTokenInfo instance using the specified properties.
57390
+ * @function create
57391
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
57392
+ * @static
57393
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IContractTokenInfo=} [properties] Properties to set
57394
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo} ContractTokenInfo instance
57395
+ */
57396
+ ContractTokenInfo.create = function create(properties) {
57397
+ return new ContractTokenInfo(properties);
57398
+ };
57399
+
57400
+ /**
57401
+ * Encodes the specified ContractTokenInfo message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo.verify|verify} messages.
57402
+ * @function encode
57403
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
57404
+ * @static
57405
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IContractTokenInfo} message ContractTokenInfo message or plain object to encode
57406
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57407
+ * @returns {$protobuf.Writer} Writer
57408
+ */
57409
+ ContractTokenInfo.encode = function encode(message, writer) {
57410
+ if (!writer)
57411
+ writer = $Writer.create();
57412
+ if (message.contractId != null && Object.hasOwnProperty.call(message, "contractId"))
57413
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.contractId);
57414
+ if (message.tokenContractPosition != null && Object.hasOwnProperty.call(message, "tokenContractPosition"))
57415
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.tokenContractPosition);
57416
+ return writer;
57417
+ };
57418
+
57419
+ /**
57420
+ * Encodes the specified ContractTokenInfo message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo.verify|verify} messages.
57421
+ * @function encodeDelimited
57422
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
57423
+ * @static
57424
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IContractTokenInfo} message ContractTokenInfo message or plain object to encode
57425
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57426
+ * @returns {$protobuf.Writer} Writer
57427
+ */
57428
+ ContractTokenInfo.encodeDelimited = function encodeDelimited(message, writer) {
57429
+ return this.encode(message, writer).ldelim();
57430
+ };
57431
+
57432
+ /**
57433
+ * Decodes a ContractTokenInfo message from the specified reader or buffer.
57434
+ * @function decode
57435
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
57436
+ * @static
57437
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57438
+ * @param {number} [length] Message length if known beforehand
57439
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo} ContractTokenInfo
57440
+ * @throws {Error} If the payload is not a reader or valid buffer
57441
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57442
+ */
57443
+ ContractTokenInfo.decode = function decode(reader, length) {
57444
+ if (!(reader instanceof $Reader))
57445
+ reader = $Reader.create(reader);
57446
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo();
57447
+ while (reader.pos < end) {
57448
+ var tag = reader.uint32();
57449
+ switch (tag >>> 3) {
57450
+ case 1:
57451
+ message.contractId = reader.bytes();
57452
+ break;
57453
+ case 2:
57454
+ message.tokenContractPosition = reader.uint32();
57455
+ break;
57456
+ default:
57457
+ reader.skipType(tag & 7);
57458
+ break;
57459
+ }
57460
+ }
57461
+ return message;
57462
+ };
57463
+
57464
+ /**
57465
+ * Decodes a ContractTokenInfo message from the specified reader or buffer, length delimited.
57466
+ * @function decodeDelimited
57467
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
57468
+ * @static
57469
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57470
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo} ContractTokenInfo
57471
+ * @throws {Error} If the payload is not a reader or valid buffer
57472
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57473
+ */
57474
+ ContractTokenInfo.decodeDelimited = function decodeDelimited(reader) {
57475
+ if (!(reader instanceof $Reader))
57476
+ reader = new $Reader(reader);
57477
+ return this.decode(reader, reader.uint32());
57478
+ };
57479
+
57480
+ /**
57481
+ * Verifies a ContractTokenInfo message.
57482
+ * @function verify
57483
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
57484
+ * @static
57485
+ * @param {Object.<string,*>} message Plain object to verify
57486
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
57487
+ */
57488
+ ContractTokenInfo.verify = function verify(message) {
57489
+ if (typeof message !== "object" || message === null)
57490
+ return "object expected";
57491
+ if (message.contractId != null && message.hasOwnProperty("contractId"))
57492
+ if (!(message.contractId && typeof message.contractId.length === "number" || $util.isString(message.contractId)))
57493
+ return "contractId: buffer expected";
57494
+ if (message.tokenContractPosition != null && message.hasOwnProperty("tokenContractPosition"))
57495
+ if (!$util.isInteger(message.tokenContractPosition))
57496
+ return "tokenContractPosition: integer expected";
57497
+ return null;
57498
+ };
57499
+
57500
+ /**
57501
+ * Creates a ContractTokenInfo message from a plain object. Also converts values to their respective internal types.
57502
+ * @function fromObject
57503
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
57504
+ * @static
57505
+ * @param {Object.<string,*>} object Plain object
57506
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo} ContractTokenInfo
57507
+ */
57508
+ ContractTokenInfo.fromObject = function fromObject(object) {
57509
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo)
57510
+ return object;
57511
+ var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo();
57512
+ if (object.contractId != null)
57513
+ if (typeof object.contractId === "string")
57514
+ $util.base64.decode(object.contractId, message.contractId = $util.newBuffer($util.base64.length(object.contractId)), 0);
57515
+ else if (object.contractId.length >= 0)
57516
+ message.contractId = object.contractId;
57517
+ if (object.tokenContractPosition != null)
57518
+ message.tokenContractPosition = object.tokenContractPosition >>> 0;
57519
+ return message;
57520
+ };
57521
+
57522
+ /**
57523
+ * Creates a plain object from a ContractTokenInfo message. Also converts values to other types if specified.
57524
+ * @function toObject
57525
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
57526
+ * @static
57527
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo} message ContractTokenInfo
57528
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
57529
+ * @returns {Object.<string,*>} Plain object
57530
+ */
57531
+ ContractTokenInfo.toObject = function toObject(message, options) {
57532
+ if (!options)
57533
+ options = {};
57534
+ var object = {};
57535
+ if (options.defaults) {
57536
+ if (options.bytes === String)
57537
+ object.contractId = "";
57538
+ else {
57539
+ object.contractId = [];
57540
+ if (options.bytes !== Array)
57541
+ object.contractId = $util.newBuffer(object.contractId);
57542
+ }
57543
+ object.tokenContractPosition = 0;
57544
+ }
57545
+ if (message.contractId != null && message.hasOwnProperty("contractId"))
57546
+ object.contractId = options.bytes === String ? $util.base64.encode(message.contractId, 0, message.contractId.length) : options.bytes === Array ? Array.prototype.slice.call(message.contractId) : message.contractId;
57547
+ if (message.tokenContractPosition != null && message.hasOwnProperty("tokenContractPosition"))
57548
+ object.tokenContractPosition = message.tokenContractPosition;
57549
+ return object;
57550
+ };
57551
+
57552
+ /**
57553
+ * Converts this ContractTokenInfo to JSON.
57554
+ * @function toJSON
57555
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo
57556
+ * @instance
57557
+ * @returns {Object.<string,*>} JSON object
57558
+ */
57559
+ ContractTokenInfo.prototype.toJSON = function toJSON() {
57560
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
57561
+ };
57562
+
57563
+ return ContractTokenInfo;
57564
+ })();
57565
+
57566
+ GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0 = (function() {
57567
+
57568
+ /**
57569
+ * Properties of a GetTokenPerpetualDistributionLastClaimRequestV0.
57570
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
57571
+ * @interface IGetTokenPerpetualDistributionLastClaimRequestV0
57572
+ * @property {Uint8Array|null} [tokenId] GetTokenPerpetualDistributionLastClaimRequestV0 tokenId
57573
+ * @property {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IContractTokenInfo|null} [contractInfo] GetTokenPerpetualDistributionLastClaimRequestV0 contractInfo
57574
+ * @property {Uint8Array|null} [identityId] GetTokenPerpetualDistributionLastClaimRequestV0 identityId
57575
+ * @property {boolean|null} [prove] GetTokenPerpetualDistributionLastClaimRequestV0 prove
57576
+ */
57577
+
57578
+ /**
57579
+ * Constructs a new GetTokenPerpetualDistributionLastClaimRequestV0.
57580
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
57581
+ * @classdesc Represents a GetTokenPerpetualDistributionLastClaimRequestV0.
57582
+ * @implements IGetTokenPerpetualDistributionLastClaimRequestV0
57583
+ * @constructor
57584
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0=} [properties] Properties to set
57585
+ */
57586
+ function GetTokenPerpetualDistributionLastClaimRequestV0(properties) {
57587
+ if (properties)
57588
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
57589
+ if (properties[keys[i]] != null)
57590
+ this[keys[i]] = properties[keys[i]];
57591
+ }
57592
+
57593
+ /**
57594
+ * GetTokenPerpetualDistributionLastClaimRequestV0 tokenId.
57595
+ * @member {Uint8Array} tokenId
57596
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
57597
+ * @instance
57598
+ */
57599
+ GetTokenPerpetualDistributionLastClaimRequestV0.prototype.tokenId = $util.newBuffer([]);
57600
+
57601
+ /**
57602
+ * GetTokenPerpetualDistributionLastClaimRequestV0 contractInfo.
57603
+ * @member {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IContractTokenInfo|null|undefined} contractInfo
57604
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
57605
+ * @instance
57606
+ */
57607
+ GetTokenPerpetualDistributionLastClaimRequestV0.prototype.contractInfo = null;
57608
+
57609
+ /**
57610
+ * GetTokenPerpetualDistributionLastClaimRequestV0 identityId.
57611
+ * @member {Uint8Array} identityId
57612
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
57613
+ * @instance
57614
+ */
57615
+ GetTokenPerpetualDistributionLastClaimRequestV0.prototype.identityId = $util.newBuffer([]);
57616
+
57617
+ /**
57618
+ * GetTokenPerpetualDistributionLastClaimRequestV0 prove.
57619
+ * @member {boolean} prove
57620
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
57621
+ * @instance
57622
+ */
57623
+ GetTokenPerpetualDistributionLastClaimRequestV0.prototype.prove = false;
57624
+
57625
+ /**
57626
+ * Creates a new GetTokenPerpetualDistributionLastClaimRequestV0 instance using the specified properties.
57627
+ * @function create
57628
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
57629
+ * @static
57630
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0=} [properties] Properties to set
57631
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} GetTokenPerpetualDistributionLastClaimRequestV0 instance
57632
+ */
57633
+ GetTokenPerpetualDistributionLastClaimRequestV0.create = function create(properties) {
57634
+ return new GetTokenPerpetualDistributionLastClaimRequestV0(properties);
57635
+ };
57636
+
57637
+ /**
57638
+ * Encodes the specified GetTokenPerpetualDistributionLastClaimRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.verify|verify} messages.
57639
+ * @function encode
57640
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
57641
+ * @static
57642
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0} message GetTokenPerpetualDistributionLastClaimRequestV0 message or plain object to encode
57643
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57644
+ * @returns {$protobuf.Writer} Writer
57645
+ */
57646
+ GetTokenPerpetualDistributionLastClaimRequestV0.encode = function encode(message, writer) {
57647
+ if (!writer)
57648
+ writer = $Writer.create();
57649
+ if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
57650
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tokenId);
57651
+ if (message.contractInfo != null && Object.hasOwnProperty.call(message, "contractInfo"))
57652
+ $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo.encode(message.contractInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
57653
+ if (message.identityId != null && Object.hasOwnProperty.call(message, "identityId"))
57654
+ writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.identityId);
57655
+ if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
57656
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.prove);
57657
+ return writer;
57658
+ };
57659
+
57660
+ /**
57661
+ * Encodes the specified GetTokenPerpetualDistributionLastClaimRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.verify|verify} messages.
57662
+ * @function encodeDelimited
57663
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
57664
+ * @static
57665
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0} message GetTokenPerpetualDistributionLastClaimRequestV0 message or plain object to encode
57666
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57667
+ * @returns {$protobuf.Writer} Writer
57668
+ */
57669
+ GetTokenPerpetualDistributionLastClaimRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
57670
+ return this.encode(message, writer).ldelim();
57671
+ };
57672
+
57673
+ /**
57674
+ * Decodes a GetTokenPerpetualDistributionLastClaimRequestV0 message from the specified reader or buffer.
57675
+ * @function decode
57676
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
57677
+ * @static
57678
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57679
+ * @param {number} [length] Message length if known beforehand
57680
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} GetTokenPerpetualDistributionLastClaimRequestV0
57681
+ * @throws {Error} If the payload is not a reader or valid buffer
57682
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57683
+ */
57684
+ GetTokenPerpetualDistributionLastClaimRequestV0.decode = function decode(reader, length) {
57685
+ if (!(reader instanceof $Reader))
57686
+ reader = $Reader.create(reader);
57687
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0();
57688
+ while (reader.pos < end) {
57689
+ var tag = reader.uint32();
57690
+ switch (tag >>> 3) {
57691
+ case 1:
57692
+ message.tokenId = reader.bytes();
57693
+ break;
57694
+ case 2:
57695
+ message.contractInfo = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo.decode(reader, reader.uint32());
57696
+ break;
57697
+ case 4:
57698
+ message.identityId = reader.bytes();
57699
+ break;
57700
+ case 5:
57701
+ message.prove = reader.bool();
57702
+ break;
57703
+ default:
57704
+ reader.skipType(tag & 7);
57705
+ break;
57706
+ }
57707
+ }
57708
+ return message;
57709
+ };
57710
+
57711
+ /**
57712
+ * Decodes a GetTokenPerpetualDistributionLastClaimRequestV0 message from the specified reader or buffer, length delimited.
57713
+ * @function decodeDelimited
57714
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
57715
+ * @static
57716
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57717
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} GetTokenPerpetualDistributionLastClaimRequestV0
57718
+ * @throws {Error} If the payload is not a reader or valid buffer
57719
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57720
+ */
57721
+ GetTokenPerpetualDistributionLastClaimRequestV0.decodeDelimited = function decodeDelimited(reader) {
57722
+ if (!(reader instanceof $Reader))
57723
+ reader = new $Reader(reader);
57724
+ return this.decode(reader, reader.uint32());
57725
+ };
57726
+
57727
+ /**
57728
+ * Verifies a GetTokenPerpetualDistributionLastClaimRequestV0 message.
57729
+ * @function verify
57730
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
57731
+ * @static
57732
+ * @param {Object.<string,*>} message Plain object to verify
57733
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
57734
+ */
57735
+ GetTokenPerpetualDistributionLastClaimRequestV0.verify = function verify(message) {
57736
+ if (typeof message !== "object" || message === null)
57737
+ return "object expected";
57738
+ if (message.tokenId != null && message.hasOwnProperty("tokenId"))
57739
+ if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
57740
+ return "tokenId: buffer expected";
57741
+ if (message.contractInfo != null && message.hasOwnProperty("contractInfo")) {
57742
+ var error = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo.verify(message.contractInfo);
57743
+ if (error)
57744
+ return "contractInfo." + error;
57745
+ }
57746
+ if (message.identityId != null && message.hasOwnProperty("identityId"))
57747
+ if (!(message.identityId && typeof message.identityId.length === "number" || $util.isString(message.identityId)))
57748
+ return "identityId: buffer expected";
57749
+ if (message.prove != null && message.hasOwnProperty("prove"))
57750
+ if (typeof message.prove !== "boolean")
57751
+ return "prove: boolean expected";
57752
+ return null;
57753
+ };
57754
+
57755
+ /**
57756
+ * Creates a GetTokenPerpetualDistributionLastClaimRequestV0 message from a plain object. Also converts values to their respective internal types.
57757
+ * @function fromObject
57758
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
57759
+ * @static
57760
+ * @param {Object.<string,*>} object Plain object
57761
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} GetTokenPerpetualDistributionLastClaimRequestV0
57762
+ */
57763
+ GetTokenPerpetualDistributionLastClaimRequestV0.fromObject = function fromObject(object) {
57764
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0)
57765
+ return object;
57766
+ var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0();
57767
+ if (object.tokenId != null)
57768
+ if (typeof object.tokenId === "string")
57769
+ $util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
57770
+ else if (object.tokenId.length >= 0)
57771
+ message.tokenId = object.tokenId;
57772
+ if (object.contractInfo != null) {
57773
+ if (typeof object.contractInfo !== "object")
57774
+ throw TypeError(".org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.contractInfo: object expected");
57775
+ message.contractInfo = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo.fromObject(object.contractInfo);
57776
+ }
57777
+ if (object.identityId != null)
57778
+ if (typeof object.identityId === "string")
57779
+ $util.base64.decode(object.identityId, message.identityId = $util.newBuffer($util.base64.length(object.identityId)), 0);
57780
+ else if (object.identityId.length >= 0)
57781
+ message.identityId = object.identityId;
57782
+ if (object.prove != null)
57783
+ message.prove = Boolean(object.prove);
57784
+ return message;
57785
+ };
57786
+
57787
+ /**
57788
+ * Creates a plain object from a GetTokenPerpetualDistributionLastClaimRequestV0 message. Also converts values to other types if specified.
57789
+ * @function toObject
57790
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
57791
+ * @static
57792
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} message GetTokenPerpetualDistributionLastClaimRequestV0
57793
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
57794
+ * @returns {Object.<string,*>} Plain object
57795
+ */
57796
+ GetTokenPerpetualDistributionLastClaimRequestV0.toObject = function toObject(message, options) {
57797
+ if (!options)
57798
+ options = {};
57799
+ var object = {};
57800
+ if (options.defaults) {
57801
+ if (options.bytes === String)
57802
+ object.tokenId = "";
57803
+ else {
57804
+ object.tokenId = [];
57805
+ if (options.bytes !== Array)
57806
+ object.tokenId = $util.newBuffer(object.tokenId);
57807
+ }
57808
+ object.contractInfo = null;
57809
+ if (options.bytes === String)
57810
+ object.identityId = "";
57811
+ else {
57812
+ object.identityId = [];
57813
+ if (options.bytes !== Array)
57814
+ object.identityId = $util.newBuffer(object.identityId);
57815
+ }
57816
+ object.prove = false;
57817
+ }
57818
+ if (message.tokenId != null && message.hasOwnProperty("tokenId"))
57819
+ object.tokenId = options.bytes === String ? $util.base64.encode(message.tokenId, 0, message.tokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenId) : message.tokenId;
57820
+ if (message.contractInfo != null && message.hasOwnProperty("contractInfo"))
57821
+ object.contractInfo = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo.toObject(message.contractInfo, options);
57822
+ if (message.identityId != null && message.hasOwnProperty("identityId"))
57823
+ object.identityId = options.bytes === String ? $util.base64.encode(message.identityId, 0, message.identityId.length) : options.bytes === Array ? Array.prototype.slice.call(message.identityId) : message.identityId;
57824
+ if (message.prove != null && message.hasOwnProperty("prove"))
57825
+ object.prove = message.prove;
57826
+ return object;
57827
+ };
57828
+
57829
+ /**
57830
+ * Converts this GetTokenPerpetualDistributionLastClaimRequestV0 to JSON.
57831
+ * @function toJSON
57832
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
57833
+ * @instance
57834
+ * @returns {Object.<string,*>} JSON object
57835
+ */
57836
+ GetTokenPerpetualDistributionLastClaimRequestV0.prototype.toJSON = function toJSON() {
57837
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
57838
+ };
57839
+
57840
+ return GetTokenPerpetualDistributionLastClaimRequestV0;
57841
+ })();
57842
+
57843
+ return GetTokenPerpetualDistributionLastClaimRequest;
57844
+ })();
57845
+
57846
+ v0.GetTokenPerpetualDistributionLastClaimResponse = (function() {
57847
+
57848
+ /**
57849
+ * Properties of a GetTokenPerpetualDistributionLastClaimResponse.
57850
+ * @memberof org.dash.platform.dapi.v0
57851
+ * @interface IGetTokenPerpetualDistributionLastClaimResponse
57852
+ * @property {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0|null} [v0] GetTokenPerpetualDistributionLastClaimResponse v0
57853
+ */
57854
+
57855
+ /**
57856
+ * Constructs a new GetTokenPerpetualDistributionLastClaimResponse.
57857
+ * @memberof org.dash.platform.dapi.v0
57858
+ * @classdesc Represents a GetTokenPerpetualDistributionLastClaimResponse.
57859
+ * @implements IGetTokenPerpetualDistributionLastClaimResponse
57860
+ * @constructor
57861
+ * @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimResponse=} [properties] Properties to set
57862
+ */
57863
+ function GetTokenPerpetualDistributionLastClaimResponse(properties) {
57864
+ if (properties)
57865
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
57866
+ if (properties[keys[i]] != null)
57867
+ this[keys[i]] = properties[keys[i]];
57868
+ }
57869
+
57870
+ /**
57871
+ * GetTokenPerpetualDistributionLastClaimResponse v0.
57872
+ * @member {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0|null|undefined} v0
57873
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
57874
+ * @instance
57875
+ */
57876
+ GetTokenPerpetualDistributionLastClaimResponse.prototype.v0 = null;
57877
+
57878
+ // OneOf field names bound to virtual getters and setters
57879
+ var $oneOfFields;
57880
+
57881
+ /**
57882
+ * GetTokenPerpetualDistributionLastClaimResponse version.
57883
+ * @member {"v0"|undefined} version
57884
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
57885
+ * @instance
57886
+ */
57887
+ Object.defineProperty(GetTokenPerpetualDistributionLastClaimResponse.prototype, "version", {
57888
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
57889
+ set: $util.oneOfSetter($oneOfFields)
57890
+ });
57891
+
57892
+ /**
57893
+ * Creates a new GetTokenPerpetualDistributionLastClaimResponse instance using the specified properties.
57894
+ * @function create
57895
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
57896
+ * @static
57897
+ * @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimResponse=} [properties] Properties to set
57898
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} GetTokenPerpetualDistributionLastClaimResponse instance
57899
+ */
57900
+ GetTokenPerpetualDistributionLastClaimResponse.create = function create(properties) {
57901
+ return new GetTokenPerpetualDistributionLastClaimResponse(properties);
57902
+ };
57903
+
57904
+ /**
57905
+ * Encodes the specified GetTokenPerpetualDistributionLastClaimResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.verify|verify} messages.
57906
+ * @function encode
57907
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
57908
+ * @static
57909
+ * @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimResponse} message GetTokenPerpetualDistributionLastClaimResponse message or plain object to encode
57910
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57911
+ * @returns {$protobuf.Writer} Writer
57912
+ */
57913
+ GetTokenPerpetualDistributionLastClaimResponse.encode = function encode(message, writer) {
57914
+ if (!writer)
57915
+ writer = $Writer.create();
57916
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
57917
+ $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
57918
+ return writer;
57919
+ };
57920
+
57921
+ /**
57922
+ * Encodes the specified GetTokenPerpetualDistributionLastClaimResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.verify|verify} messages.
57923
+ * @function encodeDelimited
57924
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
57925
+ * @static
57926
+ * @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimResponse} message GetTokenPerpetualDistributionLastClaimResponse message or plain object to encode
57927
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57928
+ * @returns {$protobuf.Writer} Writer
57929
+ */
57930
+ GetTokenPerpetualDistributionLastClaimResponse.encodeDelimited = function encodeDelimited(message, writer) {
57931
+ return this.encode(message, writer).ldelim();
57932
+ };
57933
+
57934
+ /**
57935
+ * Decodes a GetTokenPerpetualDistributionLastClaimResponse message from the specified reader or buffer.
57936
+ * @function decode
57937
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
57938
+ * @static
57939
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57940
+ * @param {number} [length] Message length if known beforehand
57941
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} GetTokenPerpetualDistributionLastClaimResponse
57942
+ * @throws {Error} If the payload is not a reader or valid buffer
57943
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57944
+ */
57945
+ GetTokenPerpetualDistributionLastClaimResponse.decode = function decode(reader, length) {
57946
+ if (!(reader instanceof $Reader))
57947
+ reader = $Reader.create(reader);
57948
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse();
57949
+ while (reader.pos < end) {
57950
+ var tag = reader.uint32();
57951
+ switch (tag >>> 3) {
57952
+ case 1:
57953
+ message.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.decode(reader, reader.uint32());
57954
+ break;
57955
+ default:
57956
+ reader.skipType(tag & 7);
57957
+ break;
57958
+ }
57959
+ }
57960
+ return message;
57961
+ };
57962
+
57963
+ /**
57964
+ * Decodes a GetTokenPerpetualDistributionLastClaimResponse message from the specified reader or buffer, length delimited.
57965
+ * @function decodeDelimited
57966
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
57967
+ * @static
57968
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57969
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} GetTokenPerpetualDistributionLastClaimResponse
57970
+ * @throws {Error} If the payload is not a reader or valid buffer
57971
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57972
+ */
57973
+ GetTokenPerpetualDistributionLastClaimResponse.decodeDelimited = function decodeDelimited(reader) {
57974
+ if (!(reader instanceof $Reader))
57975
+ reader = new $Reader(reader);
57976
+ return this.decode(reader, reader.uint32());
57977
+ };
57978
+
57979
+ /**
57980
+ * Verifies a GetTokenPerpetualDistributionLastClaimResponse message.
57981
+ * @function verify
57982
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
57983
+ * @static
57984
+ * @param {Object.<string,*>} message Plain object to verify
57985
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
57986
+ */
57987
+ GetTokenPerpetualDistributionLastClaimResponse.verify = function verify(message) {
57988
+ if (typeof message !== "object" || message === null)
57989
+ return "object expected";
57990
+ var properties = {};
57991
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
57992
+ properties.version = 1;
57993
+ {
57994
+ var error = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.verify(message.v0);
57995
+ if (error)
57996
+ return "v0." + error;
57997
+ }
57998
+ }
57999
+ return null;
58000
+ };
58001
+
58002
+ /**
58003
+ * Creates a GetTokenPerpetualDistributionLastClaimResponse message from a plain object. Also converts values to their respective internal types.
58004
+ * @function fromObject
58005
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
58006
+ * @static
58007
+ * @param {Object.<string,*>} object Plain object
58008
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} GetTokenPerpetualDistributionLastClaimResponse
58009
+ */
58010
+ GetTokenPerpetualDistributionLastClaimResponse.fromObject = function fromObject(object) {
58011
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse)
58012
+ return object;
58013
+ var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse();
58014
+ if (object.v0 != null) {
58015
+ if (typeof object.v0 !== "object")
58016
+ throw TypeError(".org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.v0: object expected");
58017
+ message.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.fromObject(object.v0);
58018
+ }
58019
+ return message;
58020
+ };
58021
+
58022
+ /**
58023
+ * Creates a plain object from a GetTokenPerpetualDistributionLastClaimResponse message. Also converts values to other types if specified.
58024
+ * @function toObject
58025
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
58026
+ * @static
58027
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} message GetTokenPerpetualDistributionLastClaimResponse
58028
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
58029
+ * @returns {Object.<string,*>} Plain object
58030
+ */
58031
+ GetTokenPerpetualDistributionLastClaimResponse.toObject = function toObject(message, options) {
58032
+ if (!options)
58033
+ options = {};
58034
+ var object = {};
58035
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
58036
+ object.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.toObject(message.v0, options);
58037
+ if (options.oneofs)
58038
+ object.version = "v0";
58039
+ }
58040
+ return object;
58041
+ };
58042
+
58043
+ /**
58044
+ * Converts this GetTokenPerpetualDistributionLastClaimResponse to JSON.
58045
+ * @function toJSON
58046
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
58047
+ * @instance
58048
+ * @returns {Object.<string,*>} JSON object
58049
+ */
58050
+ GetTokenPerpetualDistributionLastClaimResponse.prototype.toJSON = function toJSON() {
58051
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
58052
+ };
58053
+
58054
+ GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0 = (function() {
58055
+
58056
+ /**
58057
+ * Properties of a GetTokenPerpetualDistributionLastClaimResponseV0.
58058
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
58059
+ * @interface IGetTokenPerpetualDistributionLastClaimResponseV0
58060
+ * @property {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.ILastClaimInfo|null} [lastClaim] GetTokenPerpetualDistributionLastClaimResponseV0 lastClaim
58061
+ * @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetTokenPerpetualDistributionLastClaimResponseV0 proof
58062
+ * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetTokenPerpetualDistributionLastClaimResponseV0 metadata
58063
+ */
58064
+
58065
+ /**
58066
+ * Constructs a new GetTokenPerpetualDistributionLastClaimResponseV0.
58067
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
58068
+ * @classdesc Represents a GetTokenPerpetualDistributionLastClaimResponseV0.
58069
+ * @implements IGetTokenPerpetualDistributionLastClaimResponseV0
58070
+ * @constructor
58071
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0=} [properties] Properties to set
58072
+ */
58073
+ function GetTokenPerpetualDistributionLastClaimResponseV0(properties) {
58074
+ if (properties)
58075
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
58076
+ if (properties[keys[i]] != null)
58077
+ this[keys[i]] = properties[keys[i]];
58078
+ }
58079
+
58080
+ /**
58081
+ * GetTokenPerpetualDistributionLastClaimResponseV0 lastClaim.
58082
+ * @member {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.ILastClaimInfo|null|undefined} lastClaim
58083
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
58084
+ * @instance
58085
+ */
58086
+ GetTokenPerpetualDistributionLastClaimResponseV0.prototype.lastClaim = null;
58087
+
58088
+ /**
58089
+ * GetTokenPerpetualDistributionLastClaimResponseV0 proof.
58090
+ * @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
58091
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
58092
+ * @instance
58093
+ */
58094
+ GetTokenPerpetualDistributionLastClaimResponseV0.prototype.proof = null;
58095
+
58096
+ /**
58097
+ * GetTokenPerpetualDistributionLastClaimResponseV0 metadata.
58098
+ * @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
58099
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
58100
+ * @instance
58101
+ */
58102
+ GetTokenPerpetualDistributionLastClaimResponseV0.prototype.metadata = null;
58103
+
58104
+ // OneOf field names bound to virtual getters and setters
58105
+ var $oneOfFields;
58106
+
58107
+ /**
58108
+ * GetTokenPerpetualDistributionLastClaimResponseV0 result.
58109
+ * @member {"lastClaim"|"proof"|undefined} result
58110
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
58111
+ * @instance
58112
+ */
58113
+ Object.defineProperty(GetTokenPerpetualDistributionLastClaimResponseV0.prototype, "result", {
58114
+ get: $util.oneOfGetter($oneOfFields = ["lastClaim", "proof"]),
58115
+ set: $util.oneOfSetter($oneOfFields)
58116
+ });
58117
+
58118
+ /**
58119
+ * Creates a new GetTokenPerpetualDistributionLastClaimResponseV0 instance using the specified properties.
58120
+ * @function create
58121
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
58122
+ * @static
58123
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0=} [properties] Properties to set
58124
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0} GetTokenPerpetualDistributionLastClaimResponseV0 instance
58125
+ */
58126
+ GetTokenPerpetualDistributionLastClaimResponseV0.create = function create(properties) {
58127
+ return new GetTokenPerpetualDistributionLastClaimResponseV0(properties);
58128
+ };
58129
+
58130
+ /**
58131
+ * Encodes the specified GetTokenPerpetualDistributionLastClaimResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.verify|verify} messages.
58132
+ * @function encode
58133
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
58134
+ * @static
58135
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0} message GetTokenPerpetualDistributionLastClaimResponseV0 message or plain object to encode
58136
+ * @param {$protobuf.Writer} [writer] Writer to encode to
58137
+ * @returns {$protobuf.Writer} Writer
58138
+ */
58139
+ GetTokenPerpetualDistributionLastClaimResponseV0.encode = function encode(message, writer) {
58140
+ if (!writer)
58141
+ writer = $Writer.create();
58142
+ if (message.lastClaim != null && Object.hasOwnProperty.call(message, "lastClaim"))
58143
+ $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.encode(message.lastClaim, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
58144
+ if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
58145
+ $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
58146
+ if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
58147
+ $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
58148
+ return writer;
58149
+ };
58150
+
58151
+ /**
58152
+ * Encodes the specified GetTokenPerpetualDistributionLastClaimResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.verify|verify} messages.
58153
+ * @function encodeDelimited
58154
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
58155
+ * @static
58156
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0} message GetTokenPerpetualDistributionLastClaimResponseV0 message or plain object to encode
58157
+ * @param {$protobuf.Writer} [writer] Writer to encode to
58158
+ * @returns {$protobuf.Writer} Writer
58159
+ */
58160
+ GetTokenPerpetualDistributionLastClaimResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
58161
+ return this.encode(message, writer).ldelim();
58162
+ };
58163
+
58164
+ /**
58165
+ * Decodes a GetTokenPerpetualDistributionLastClaimResponseV0 message from the specified reader or buffer.
58166
+ * @function decode
58167
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
58168
+ * @static
58169
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
58170
+ * @param {number} [length] Message length if known beforehand
58171
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0} GetTokenPerpetualDistributionLastClaimResponseV0
58172
+ * @throws {Error} If the payload is not a reader or valid buffer
58173
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
58174
+ */
58175
+ GetTokenPerpetualDistributionLastClaimResponseV0.decode = function decode(reader, length) {
58176
+ if (!(reader instanceof $Reader))
58177
+ reader = $Reader.create(reader);
58178
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0();
58179
+ while (reader.pos < end) {
58180
+ var tag = reader.uint32();
58181
+ switch (tag >>> 3) {
58182
+ case 1:
58183
+ message.lastClaim = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.decode(reader, reader.uint32());
58184
+ break;
58185
+ case 2:
58186
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
58187
+ break;
58188
+ case 3:
58189
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
58190
+ break;
58191
+ default:
58192
+ reader.skipType(tag & 7);
58193
+ break;
58194
+ }
58195
+ }
58196
+ return message;
58197
+ };
58198
+
58199
+ /**
58200
+ * Decodes a GetTokenPerpetualDistributionLastClaimResponseV0 message from the specified reader or buffer, length delimited.
58201
+ * @function decodeDelimited
58202
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
58203
+ * @static
58204
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
58205
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0} GetTokenPerpetualDistributionLastClaimResponseV0
58206
+ * @throws {Error} If the payload is not a reader or valid buffer
58207
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
58208
+ */
58209
+ GetTokenPerpetualDistributionLastClaimResponseV0.decodeDelimited = function decodeDelimited(reader) {
58210
+ if (!(reader instanceof $Reader))
58211
+ reader = new $Reader(reader);
58212
+ return this.decode(reader, reader.uint32());
58213
+ };
58214
+
58215
+ /**
58216
+ * Verifies a GetTokenPerpetualDistributionLastClaimResponseV0 message.
58217
+ * @function verify
58218
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
58219
+ * @static
58220
+ * @param {Object.<string,*>} message Plain object to verify
58221
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
58222
+ */
58223
+ GetTokenPerpetualDistributionLastClaimResponseV0.verify = function verify(message) {
58224
+ if (typeof message !== "object" || message === null)
58225
+ return "object expected";
58226
+ var properties = {};
58227
+ if (message.lastClaim != null && message.hasOwnProperty("lastClaim")) {
58228
+ properties.result = 1;
58229
+ {
58230
+ var error = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.verify(message.lastClaim);
58231
+ if (error)
58232
+ return "lastClaim." + error;
58233
+ }
58234
+ }
58235
+ if (message.proof != null && message.hasOwnProperty("proof")) {
58236
+ if (properties.result === 1)
58237
+ return "result: multiple values";
58238
+ properties.result = 1;
58239
+ {
58240
+ var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
58241
+ if (error)
58242
+ return "proof." + error;
58243
+ }
58244
+ }
58245
+ if (message.metadata != null && message.hasOwnProperty("metadata")) {
58246
+ var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
58247
+ if (error)
58248
+ return "metadata." + error;
58249
+ }
58250
+ return null;
58251
+ };
58252
+
58253
+ /**
58254
+ * Creates a GetTokenPerpetualDistributionLastClaimResponseV0 message from a plain object. Also converts values to their respective internal types.
58255
+ * @function fromObject
58256
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
58257
+ * @static
58258
+ * @param {Object.<string,*>} object Plain object
58259
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0} GetTokenPerpetualDistributionLastClaimResponseV0
58260
+ */
58261
+ GetTokenPerpetualDistributionLastClaimResponseV0.fromObject = function fromObject(object) {
58262
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0)
58263
+ return object;
58264
+ var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0();
58265
+ if (object.lastClaim != null) {
58266
+ if (typeof object.lastClaim !== "object")
58267
+ throw TypeError(".org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.lastClaim: object expected");
58268
+ message.lastClaim = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.fromObject(object.lastClaim);
58269
+ }
58270
+ if (object.proof != null) {
58271
+ if (typeof object.proof !== "object")
58272
+ throw TypeError(".org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.proof: object expected");
58273
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
58274
+ }
58275
+ if (object.metadata != null) {
58276
+ if (typeof object.metadata !== "object")
58277
+ throw TypeError(".org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.metadata: object expected");
58278
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
58279
+ }
58280
+ return message;
58281
+ };
58282
+
58283
+ /**
58284
+ * Creates a plain object from a GetTokenPerpetualDistributionLastClaimResponseV0 message. Also converts values to other types if specified.
58285
+ * @function toObject
58286
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
58287
+ * @static
58288
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0} message GetTokenPerpetualDistributionLastClaimResponseV0
58289
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
58290
+ * @returns {Object.<string,*>} Plain object
58291
+ */
58292
+ GetTokenPerpetualDistributionLastClaimResponseV0.toObject = function toObject(message, options) {
58293
+ if (!options)
58294
+ options = {};
58295
+ var object = {};
58296
+ if (options.defaults)
58297
+ object.metadata = null;
58298
+ if (message.lastClaim != null && message.hasOwnProperty("lastClaim")) {
58299
+ object.lastClaim = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.toObject(message.lastClaim, options);
58300
+ if (options.oneofs)
58301
+ object.result = "lastClaim";
58302
+ }
58303
+ if (message.proof != null && message.hasOwnProperty("proof")) {
58304
+ object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
58305
+ if (options.oneofs)
58306
+ object.result = "proof";
58307
+ }
58308
+ if (message.metadata != null && message.hasOwnProperty("metadata"))
58309
+ object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
58310
+ return object;
58311
+ };
58312
+
58313
+ /**
58314
+ * Converts this GetTokenPerpetualDistributionLastClaimResponseV0 to JSON.
58315
+ * @function toJSON
58316
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
58317
+ * @instance
58318
+ * @returns {Object.<string,*>} JSON object
58319
+ */
58320
+ GetTokenPerpetualDistributionLastClaimResponseV0.prototype.toJSON = function toJSON() {
58321
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
58322
+ };
58323
+
58324
+ GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo = (function() {
58325
+
58326
+ /**
58327
+ * Properties of a LastClaimInfo.
58328
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
58329
+ * @interface ILastClaimInfo
58330
+ * @property {number|Long|null} [timestampMs] LastClaimInfo timestampMs
58331
+ * @property {number|Long|null} [blockHeight] LastClaimInfo blockHeight
58332
+ * @property {number|null} [epoch] LastClaimInfo epoch
58333
+ * @property {Uint8Array|null} [rawBytes] LastClaimInfo rawBytes
58334
+ */
58335
+
58336
+ /**
58337
+ * Constructs a new LastClaimInfo.
58338
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
58339
+ * @classdesc Represents a LastClaimInfo.
58340
+ * @implements ILastClaimInfo
58341
+ * @constructor
58342
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.ILastClaimInfo=} [properties] Properties to set
58343
+ */
58344
+ function LastClaimInfo(properties) {
58345
+ if (properties)
58346
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
58347
+ if (properties[keys[i]] != null)
58348
+ this[keys[i]] = properties[keys[i]];
58349
+ }
58350
+
58351
+ /**
58352
+ * LastClaimInfo timestampMs.
58353
+ * @member {number|Long} timestampMs
58354
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
58355
+ * @instance
58356
+ */
58357
+ LastClaimInfo.prototype.timestampMs = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
58358
+
58359
+ /**
58360
+ * LastClaimInfo blockHeight.
58361
+ * @member {number|Long} blockHeight
58362
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
58363
+ * @instance
58364
+ */
58365
+ LastClaimInfo.prototype.blockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
58366
+
58367
+ /**
58368
+ * LastClaimInfo epoch.
58369
+ * @member {number} epoch
58370
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
58371
+ * @instance
58372
+ */
58373
+ LastClaimInfo.prototype.epoch = 0;
58374
+
58375
+ /**
58376
+ * LastClaimInfo rawBytes.
58377
+ * @member {Uint8Array} rawBytes
58378
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
58379
+ * @instance
58380
+ */
58381
+ LastClaimInfo.prototype.rawBytes = $util.newBuffer([]);
58382
+
58383
+ // OneOf field names bound to virtual getters and setters
58384
+ var $oneOfFields;
58385
+
58386
+ /**
58387
+ * LastClaimInfo paidAt.
58388
+ * @member {"timestampMs"|"blockHeight"|"epoch"|"rawBytes"|undefined} paidAt
58389
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
58390
+ * @instance
58391
+ */
58392
+ Object.defineProperty(LastClaimInfo.prototype, "paidAt", {
58393
+ get: $util.oneOfGetter($oneOfFields = ["timestampMs", "blockHeight", "epoch", "rawBytes"]),
58394
+ set: $util.oneOfSetter($oneOfFields)
58395
+ });
58396
+
58397
+ /**
58398
+ * Creates a new LastClaimInfo instance using the specified properties.
58399
+ * @function create
58400
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
58401
+ * @static
58402
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.ILastClaimInfo=} [properties] Properties to set
58403
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo} LastClaimInfo instance
58404
+ */
58405
+ LastClaimInfo.create = function create(properties) {
58406
+ return new LastClaimInfo(properties);
58407
+ };
58408
+
58409
+ /**
58410
+ * Encodes the specified LastClaimInfo message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.verify|verify} messages.
58411
+ * @function encode
58412
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
58413
+ * @static
58414
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.ILastClaimInfo} message LastClaimInfo message or plain object to encode
58415
+ * @param {$protobuf.Writer} [writer] Writer to encode to
58416
+ * @returns {$protobuf.Writer} Writer
58417
+ */
58418
+ LastClaimInfo.encode = function encode(message, writer) {
58419
+ if (!writer)
58420
+ writer = $Writer.create();
58421
+ if (message.timestampMs != null && Object.hasOwnProperty.call(message, "timestampMs"))
58422
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestampMs);
58423
+ if (message.blockHeight != null && Object.hasOwnProperty.call(message, "blockHeight"))
58424
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.blockHeight);
58425
+ if (message.epoch != null && Object.hasOwnProperty.call(message, "epoch"))
58426
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.epoch);
58427
+ if (message.rawBytes != null && Object.hasOwnProperty.call(message, "rawBytes"))
58428
+ writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.rawBytes);
58429
+ return writer;
58430
+ };
58431
+
58432
+ /**
58433
+ * Encodes the specified LastClaimInfo message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.verify|verify} messages.
58434
+ * @function encodeDelimited
58435
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
58436
+ * @static
58437
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.ILastClaimInfo} message LastClaimInfo message or plain object to encode
58438
+ * @param {$protobuf.Writer} [writer] Writer to encode to
58439
+ * @returns {$protobuf.Writer} Writer
58440
+ */
58441
+ LastClaimInfo.encodeDelimited = function encodeDelimited(message, writer) {
58442
+ return this.encode(message, writer).ldelim();
58443
+ };
58444
+
58445
+ /**
58446
+ * Decodes a LastClaimInfo message from the specified reader or buffer.
58447
+ * @function decode
58448
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
58449
+ * @static
58450
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
58451
+ * @param {number} [length] Message length if known beforehand
58452
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo} LastClaimInfo
58453
+ * @throws {Error} If the payload is not a reader or valid buffer
58454
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
58455
+ */
58456
+ LastClaimInfo.decode = function decode(reader, length) {
58457
+ if (!(reader instanceof $Reader))
58458
+ reader = $Reader.create(reader);
58459
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo();
58460
+ while (reader.pos < end) {
58461
+ var tag = reader.uint32();
58462
+ switch (tag >>> 3) {
58463
+ case 1:
58464
+ message.timestampMs = reader.uint64();
58465
+ break;
58466
+ case 2:
58467
+ message.blockHeight = reader.uint64();
58468
+ break;
58469
+ case 3:
58470
+ message.epoch = reader.uint32();
58471
+ break;
58472
+ case 4:
58473
+ message.rawBytes = reader.bytes();
58474
+ break;
58475
+ default:
58476
+ reader.skipType(tag & 7);
58477
+ break;
58478
+ }
58479
+ }
58480
+ return message;
58481
+ };
58482
+
58483
+ /**
58484
+ * Decodes a LastClaimInfo message from the specified reader or buffer, length delimited.
58485
+ * @function decodeDelimited
58486
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
58487
+ * @static
58488
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
58489
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo} LastClaimInfo
58490
+ * @throws {Error} If the payload is not a reader or valid buffer
58491
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
58492
+ */
58493
+ LastClaimInfo.decodeDelimited = function decodeDelimited(reader) {
58494
+ if (!(reader instanceof $Reader))
58495
+ reader = new $Reader(reader);
58496
+ return this.decode(reader, reader.uint32());
58497
+ };
58498
+
58499
+ /**
58500
+ * Verifies a LastClaimInfo message.
58501
+ * @function verify
58502
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
58503
+ * @static
58504
+ * @param {Object.<string,*>} message Plain object to verify
58505
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
58506
+ */
58507
+ LastClaimInfo.verify = function verify(message) {
58508
+ if (typeof message !== "object" || message === null)
58509
+ return "object expected";
58510
+ var properties = {};
58511
+ if (message.timestampMs != null && message.hasOwnProperty("timestampMs")) {
58512
+ properties.paidAt = 1;
58513
+ if (!$util.isInteger(message.timestampMs) && !(message.timestampMs && $util.isInteger(message.timestampMs.low) && $util.isInteger(message.timestampMs.high)))
58514
+ return "timestampMs: integer|Long expected";
58515
+ }
58516
+ if (message.blockHeight != null && message.hasOwnProperty("blockHeight")) {
58517
+ if (properties.paidAt === 1)
58518
+ return "paidAt: multiple values";
58519
+ properties.paidAt = 1;
58520
+ if (!$util.isInteger(message.blockHeight) && !(message.blockHeight && $util.isInteger(message.blockHeight.low) && $util.isInteger(message.blockHeight.high)))
58521
+ return "blockHeight: integer|Long expected";
58522
+ }
58523
+ if (message.epoch != null && message.hasOwnProperty("epoch")) {
58524
+ if (properties.paidAt === 1)
58525
+ return "paidAt: multiple values";
58526
+ properties.paidAt = 1;
58527
+ if (!$util.isInteger(message.epoch))
58528
+ return "epoch: integer expected";
58529
+ }
58530
+ if (message.rawBytes != null && message.hasOwnProperty("rawBytes")) {
58531
+ if (properties.paidAt === 1)
58532
+ return "paidAt: multiple values";
58533
+ properties.paidAt = 1;
58534
+ if (!(message.rawBytes && typeof message.rawBytes.length === "number" || $util.isString(message.rawBytes)))
58535
+ return "rawBytes: buffer expected";
58536
+ }
58537
+ return null;
58538
+ };
58539
+
58540
+ /**
58541
+ * Creates a LastClaimInfo message from a plain object. Also converts values to their respective internal types.
58542
+ * @function fromObject
58543
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
58544
+ * @static
58545
+ * @param {Object.<string,*>} object Plain object
58546
+ * @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo} LastClaimInfo
58547
+ */
58548
+ LastClaimInfo.fromObject = function fromObject(object) {
58549
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo)
58550
+ return object;
58551
+ var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo();
58552
+ if (object.timestampMs != null)
58553
+ if ($util.Long)
58554
+ (message.timestampMs = $util.Long.fromValue(object.timestampMs)).unsigned = true;
58555
+ else if (typeof object.timestampMs === "string")
58556
+ message.timestampMs = parseInt(object.timestampMs, 10);
58557
+ else if (typeof object.timestampMs === "number")
58558
+ message.timestampMs = object.timestampMs;
58559
+ else if (typeof object.timestampMs === "object")
58560
+ message.timestampMs = new $util.LongBits(object.timestampMs.low >>> 0, object.timestampMs.high >>> 0).toNumber(true);
58561
+ if (object.blockHeight != null)
58562
+ if ($util.Long)
58563
+ (message.blockHeight = $util.Long.fromValue(object.blockHeight)).unsigned = true;
58564
+ else if (typeof object.blockHeight === "string")
58565
+ message.blockHeight = parseInt(object.blockHeight, 10);
58566
+ else if (typeof object.blockHeight === "number")
58567
+ message.blockHeight = object.blockHeight;
58568
+ else if (typeof object.blockHeight === "object")
58569
+ message.blockHeight = new $util.LongBits(object.blockHeight.low >>> 0, object.blockHeight.high >>> 0).toNumber(true);
58570
+ if (object.epoch != null)
58571
+ message.epoch = object.epoch >>> 0;
58572
+ if (object.rawBytes != null)
58573
+ if (typeof object.rawBytes === "string")
58574
+ $util.base64.decode(object.rawBytes, message.rawBytes = $util.newBuffer($util.base64.length(object.rawBytes)), 0);
58575
+ else if (object.rawBytes.length >= 0)
58576
+ message.rawBytes = object.rawBytes;
58577
+ return message;
58578
+ };
58579
+
58580
+ /**
58581
+ * Creates a plain object from a LastClaimInfo message. Also converts values to other types if specified.
58582
+ * @function toObject
58583
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
58584
+ * @static
58585
+ * @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo} message LastClaimInfo
58586
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
58587
+ * @returns {Object.<string,*>} Plain object
58588
+ */
58589
+ LastClaimInfo.toObject = function toObject(message, options) {
58590
+ if (!options)
58591
+ options = {};
58592
+ var object = {};
58593
+ if (message.timestampMs != null && message.hasOwnProperty("timestampMs")) {
58594
+ if (typeof message.timestampMs === "number")
58595
+ object.timestampMs = options.longs === String ? String(message.timestampMs) : message.timestampMs;
58596
+ else
58597
+ object.timestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMs) : options.longs === Number ? new $util.LongBits(message.timestampMs.low >>> 0, message.timestampMs.high >>> 0).toNumber(true) : message.timestampMs;
58598
+ if (options.oneofs)
58599
+ object.paidAt = "timestampMs";
58600
+ }
58601
+ if (message.blockHeight != null && message.hasOwnProperty("blockHeight")) {
58602
+ if (typeof message.blockHeight === "number")
58603
+ object.blockHeight = options.longs === String ? String(message.blockHeight) : message.blockHeight;
58604
+ else
58605
+ object.blockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.blockHeight) : options.longs === Number ? new $util.LongBits(message.blockHeight.low >>> 0, message.blockHeight.high >>> 0).toNumber(true) : message.blockHeight;
58606
+ if (options.oneofs)
58607
+ object.paidAt = "blockHeight";
58608
+ }
58609
+ if (message.epoch != null && message.hasOwnProperty("epoch")) {
58610
+ object.epoch = message.epoch;
58611
+ if (options.oneofs)
58612
+ object.paidAt = "epoch";
58613
+ }
58614
+ if (message.rawBytes != null && message.hasOwnProperty("rawBytes")) {
58615
+ object.rawBytes = options.bytes === String ? $util.base64.encode(message.rawBytes, 0, message.rawBytes.length) : options.bytes === Array ? Array.prototype.slice.call(message.rawBytes) : message.rawBytes;
58616
+ if (options.oneofs)
58617
+ object.paidAt = "rawBytes";
58618
+ }
58619
+ return object;
58620
+ };
58621
+
58622
+ /**
58623
+ * Converts this LastClaimInfo to JSON.
58624
+ * @function toJSON
58625
+ * @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo
58626
+ * @instance
58627
+ * @returns {Object.<string,*>} JSON object
58628
+ */
58629
+ LastClaimInfo.prototype.toJSON = function toJSON() {
58630
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
58631
+ };
58632
+
58633
+ return LastClaimInfo;
58634
+ })();
58635
+
58636
+ return GetTokenPerpetualDistributionLastClaimResponseV0;
58637
+ })();
58638
+
58639
+ return GetTokenPerpetualDistributionLastClaimResponse;
58640
+ })();
58641
+
57106
58642
  v0.GetTokenTotalSupplyRequest = (function() {
57107
58643
 
57108
58644
  /**