@dashevo/dapi-grpc 2.0.0-rc.1 → 2.0.0-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/build.rs +4 -2
- package/clients/drive/v0/nodejs/drive_pbjs.js +1810 -243
- package/clients/platform/v0/nodejs/platform_pbjs.js +1810 -243
- package/clients/platform/v0/nodejs/platform_protoc.js +1755 -117
- package/clients/platform/v0/web/platform_pb.d.ts +218 -0
- package/clients/platform/v0/web/platform_pb.js +1755 -117
- package/clients/platform/v0/web/platform_pb_service.d.ts +19 -0
- package/clients/platform/v0/web/platform_pb_service.js +40 -0
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +57 -2
- package/src/deserialization.rs +1 -1
|
@@ -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,24 +57136,24 @@ $root.org = (function() {
|
|
|
57103
57136
|
return GetTokenPreProgrammedDistributionsResponse;
|
|
57104
57137
|
})();
|
|
57105
57138
|
|
|
57106
|
-
v0.
|
|
57139
|
+
v0.GetTokenPerpetualDistributionLastClaimRequest = (function() {
|
|
57107
57140
|
|
|
57108
57141
|
/**
|
|
57109
|
-
* Properties of a
|
|
57142
|
+
* Properties of a GetTokenPerpetualDistributionLastClaimRequest.
|
|
57110
57143
|
* @memberof org.dash.platform.dapi.v0
|
|
57111
|
-
* @interface
|
|
57112
|
-
* @property {org.dash.platform.dapi.v0.
|
|
57144
|
+
* @interface IGetTokenPerpetualDistributionLastClaimRequest
|
|
57145
|
+
* @property {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0|null} [v0] GetTokenPerpetualDistributionLastClaimRequest v0
|
|
57113
57146
|
*/
|
|
57114
57147
|
|
|
57115
57148
|
/**
|
|
57116
|
-
* Constructs a new
|
|
57149
|
+
* Constructs a new GetTokenPerpetualDistributionLastClaimRequest.
|
|
57117
57150
|
* @memberof org.dash.platform.dapi.v0
|
|
57118
|
-
* @classdesc Represents a
|
|
57119
|
-
* @implements
|
|
57151
|
+
* @classdesc Represents a GetTokenPerpetualDistributionLastClaimRequest.
|
|
57152
|
+
* @implements IGetTokenPerpetualDistributionLastClaimRequest
|
|
57120
57153
|
* @constructor
|
|
57121
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57154
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest=} [properties] Properties to set
|
|
57122
57155
|
*/
|
|
57123
|
-
function
|
|
57156
|
+
function GetTokenPerpetualDistributionLastClaimRequest(properties) {
|
|
57124
57157
|
if (properties)
|
|
57125
57158
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
57126
57159
|
if (properties[keys[i]] != null)
|
|
@@ -57128,89 +57161,89 @@ $root.org = (function() {
|
|
|
57128
57161
|
}
|
|
57129
57162
|
|
|
57130
57163
|
/**
|
|
57131
|
-
*
|
|
57132
|
-
* @member {org.dash.platform.dapi.v0.
|
|
57133
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57164
|
+
* GetTokenPerpetualDistributionLastClaimRequest v0.
|
|
57165
|
+
* @member {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0|null|undefined} v0
|
|
57166
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57134
57167
|
* @instance
|
|
57135
57168
|
*/
|
|
57136
|
-
|
|
57169
|
+
GetTokenPerpetualDistributionLastClaimRequest.prototype.v0 = null;
|
|
57137
57170
|
|
|
57138
57171
|
// OneOf field names bound to virtual getters and setters
|
|
57139
57172
|
var $oneOfFields;
|
|
57140
57173
|
|
|
57141
57174
|
/**
|
|
57142
|
-
*
|
|
57175
|
+
* GetTokenPerpetualDistributionLastClaimRequest version.
|
|
57143
57176
|
* @member {"v0"|undefined} version
|
|
57144
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57177
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57145
57178
|
* @instance
|
|
57146
57179
|
*/
|
|
57147
|
-
Object.defineProperty(
|
|
57180
|
+
Object.defineProperty(GetTokenPerpetualDistributionLastClaimRequest.prototype, "version", {
|
|
57148
57181
|
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
57149
57182
|
set: $util.oneOfSetter($oneOfFields)
|
|
57150
57183
|
});
|
|
57151
57184
|
|
|
57152
57185
|
/**
|
|
57153
|
-
* Creates a new
|
|
57186
|
+
* Creates a new GetTokenPerpetualDistributionLastClaimRequest instance using the specified properties.
|
|
57154
57187
|
* @function create
|
|
57155
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57188
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57156
57189
|
* @static
|
|
57157
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57158
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
57190
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest=} [properties] Properties to set
|
|
57191
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} GetTokenPerpetualDistributionLastClaimRequest instance
|
|
57159
57192
|
*/
|
|
57160
|
-
|
|
57161
|
-
return new
|
|
57193
|
+
GetTokenPerpetualDistributionLastClaimRequest.create = function create(properties) {
|
|
57194
|
+
return new GetTokenPerpetualDistributionLastClaimRequest(properties);
|
|
57162
57195
|
};
|
|
57163
57196
|
|
|
57164
57197
|
/**
|
|
57165
|
-
* Encodes the specified
|
|
57198
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.verify|verify} messages.
|
|
57166
57199
|
* @function encode
|
|
57167
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57200
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57168
57201
|
* @static
|
|
57169
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57202
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest} message GetTokenPerpetualDistributionLastClaimRequest message or plain object to encode
|
|
57170
57203
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57171
57204
|
* @returns {$protobuf.Writer} Writer
|
|
57172
57205
|
*/
|
|
57173
|
-
|
|
57206
|
+
GetTokenPerpetualDistributionLastClaimRequest.encode = function encode(message, writer) {
|
|
57174
57207
|
if (!writer)
|
|
57175
57208
|
writer = $Writer.create();
|
|
57176
57209
|
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
57177
|
-
$root.org.dash.platform.dapi.v0.
|
|
57210
|
+
$root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
57178
57211
|
return writer;
|
|
57179
57212
|
};
|
|
57180
57213
|
|
|
57181
57214
|
/**
|
|
57182
|
-
* Encodes the specified
|
|
57215
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.verify|verify} messages.
|
|
57183
57216
|
* @function encodeDelimited
|
|
57184
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57217
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57185
57218
|
* @static
|
|
57186
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57219
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimRequest} message GetTokenPerpetualDistributionLastClaimRequest message or plain object to encode
|
|
57187
57220
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57188
57221
|
* @returns {$protobuf.Writer} Writer
|
|
57189
57222
|
*/
|
|
57190
|
-
|
|
57223
|
+
GetTokenPerpetualDistributionLastClaimRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
57191
57224
|
return this.encode(message, writer).ldelim();
|
|
57192
57225
|
};
|
|
57193
57226
|
|
|
57194
57227
|
/**
|
|
57195
|
-
* Decodes a
|
|
57228
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimRequest message from the specified reader or buffer.
|
|
57196
57229
|
* @function decode
|
|
57197
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57230
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57198
57231
|
* @static
|
|
57199
57232
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57200
57233
|
* @param {number} [length] Message length if known beforehand
|
|
57201
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
57234
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} GetTokenPerpetualDistributionLastClaimRequest
|
|
57202
57235
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57203
57236
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57204
57237
|
*/
|
|
57205
|
-
|
|
57238
|
+
GetTokenPerpetualDistributionLastClaimRequest.decode = function decode(reader, length) {
|
|
57206
57239
|
if (!(reader instanceof $Reader))
|
|
57207
57240
|
reader = $Reader.create(reader);
|
|
57208
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.
|
|
57241
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest();
|
|
57209
57242
|
while (reader.pos < end) {
|
|
57210
57243
|
var tag = reader.uint32();
|
|
57211
57244
|
switch (tag >>> 3) {
|
|
57212
57245
|
case 1:
|
|
57213
|
-
message.v0 = $root.org.dash.platform.dapi.v0.
|
|
57246
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.decode(reader, reader.uint32());
|
|
57214
57247
|
break;
|
|
57215
57248
|
default:
|
|
57216
57249
|
reader.skipType(tag & 7);
|
|
@@ -57221,37 +57254,37 @@ $root.org = (function() {
|
|
|
57221
57254
|
};
|
|
57222
57255
|
|
|
57223
57256
|
/**
|
|
57224
|
-
* Decodes a
|
|
57257
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimRequest message from the specified reader or buffer, length delimited.
|
|
57225
57258
|
* @function decodeDelimited
|
|
57226
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57259
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57227
57260
|
* @static
|
|
57228
57261
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57229
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
57262
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} GetTokenPerpetualDistributionLastClaimRequest
|
|
57230
57263
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57231
57264
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57232
57265
|
*/
|
|
57233
|
-
|
|
57266
|
+
GetTokenPerpetualDistributionLastClaimRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
57234
57267
|
if (!(reader instanceof $Reader))
|
|
57235
57268
|
reader = new $Reader(reader);
|
|
57236
57269
|
return this.decode(reader, reader.uint32());
|
|
57237
57270
|
};
|
|
57238
57271
|
|
|
57239
57272
|
/**
|
|
57240
|
-
* Verifies a
|
|
57273
|
+
* Verifies a GetTokenPerpetualDistributionLastClaimRequest message.
|
|
57241
57274
|
* @function verify
|
|
57242
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57275
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57243
57276
|
* @static
|
|
57244
57277
|
* @param {Object.<string,*>} message Plain object to verify
|
|
57245
57278
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
57246
57279
|
*/
|
|
57247
|
-
|
|
57280
|
+
GetTokenPerpetualDistributionLastClaimRequest.verify = function verify(message) {
|
|
57248
57281
|
if (typeof message !== "object" || message === null)
|
|
57249
57282
|
return "object expected";
|
|
57250
57283
|
var properties = {};
|
|
57251
57284
|
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
57252
57285
|
properties.version = 1;
|
|
57253
57286
|
{
|
|
57254
|
-
var error = $root.org.dash.platform.dapi.v0.
|
|
57287
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.verify(message.v0);
|
|
57255
57288
|
if (error)
|
|
57256
57289
|
return "v0." + error;
|
|
57257
57290
|
}
|
|
@@ -57260,40 +57293,40 @@ $root.org = (function() {
|
|
|
57260
57293
|
};
|
|
57261
57294
|
|
|
57262
57295
|
/**
|
|
57263
|
-
* Creates a
|
|
57296
|
+
* Creates a GetTokenPerpetualDistributionLastClaimRequest message from a plain object. Also converts values to their respective internal types.
|
|
57264
57297
|
* @function fromObject
|
|
57265
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57298
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57266
57299
|
* @static
|
|
57267
57300
|
* @param {Object.<string,*>} object Plain object
|
|
57268
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
57301
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} GetTokenPerpetualDistributionLastClaimRequest
|
|
57269
57302
|
*/
|
|
57270
|
-
|
|
57271
|
-
if (object instanceof $root.org.dash.platform.dapi.v0.
|
|
57303
|
+
GetTokenPerpetualDistributionLastClaimRequest.fromObject = function fromObject(object) {
|
|
57304
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest)
|
|
57272
57305
|
return object;
|
|
57273
|
-
var message = new $root.org.dash.platform.dapi.v0.
|
|
57306
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest();
|
|
57274
57307
|
if (object.v0 != null) {
|
|
57275
57308
|
if (typeof object.v0 !== "object")
|
|
57276
|
-
throw TypeError(".org.dash.platform.dapi.v0.
|
|
57277
|
-
message.v0 = $root.org.dash.platform.dapi.v0.
|
|
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);
|
|
57278
57311
|
}
|
|
57279
57312
|
return message;
|
|
57280
57313
|
};
|
|
57281
57314
|
|
|
57282
57315
|
/**
|
|
57283
|
-
* Creates a plain object from a
|
|
57316
|
+
* Creates a plain object from a GetTokenPerpetualDistributionLastClaimRequest message. Also converts values to other types if specified.
|
|
57284
57317
|
* @function toObject
|
|
57285
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57318
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57286
57319
|
* @static
|
|
57287
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57320
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest} message GetTokenPerpetualDistributionLastClaimRequest
|
|
57288
57321
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
57289
57322
|
* @returns {Object.<string,*>} Plain object
|
|
57290
57323
|
*/
|
|
57291
|
-
|
|
57324
|
+
GetTokenPerpetualDistributionLastClaimRequest.toObject = function toObject(message, options) {
|
|
57292
57325
|
if (!options)
|
|
57293
57326
|
options = {};
|
|
57294
57327
|
var object = {};
|
|
57295
57328
|
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
57296
|
-
object.v0 = $root.org.dash.platform.dapi.v0.
|
|
57329
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.toObject(message.v0, options);
|
|
57297
57330
|
if (options.oneofs)
|
|
57298
57331
|
object.version = "v0";
|
|
57299
57332
|
}
|
|
@@ -57301,35 +57334,35 @@ $root.org = (function() {
|
|
|
57301
57334
|
};
|
|
57302
57335
|
|
|
57303
57336
|
/**
|
|
57304
|
-
* Converts this
|
|
57337
|
+
* Converts this GetTokenPerpetualDistributionLastClaimRequest to JSON.
|
|
57305
57338
|
* @function toJSON
|
|
57306
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57339
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57307
57340
|
* @instance
|
|
57308
57341
|
* @returns {Object.<string,*>} JSON object
|
|
57309
57342
|
*/
|
|
57310
|
-
|
|
57343
|
+
GetTokenPerpetualDistributionLastClaimRequest.prototype.toJSON = function toJSON() {
|
|
57311
57344
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
57312
57345
|
};
|
|
57313
57346
|
|
|
57314
|
-
|
|
57347
|
+
GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfo = (function() {
|
|
57315
57348
|
|
|
57316
57349
|
/**
|
|
57317
|
-
* Properties of a
|
|
57318
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57319
|
-
* @interface
|
|
57320
|
-
* @property {Uint8Array|null} [
|
|
57321
|
-
* @property {
|
|
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
|
|
57322
57355
|
*/
|
|
57323
57356
|
|
|
57324
57357
|
/**
|
|
57325
|
-
* Constructs a new
|
|
57326
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57327
|
-
* @classdesc Represents a
|
|
57328
|
-
* @implements
|
|
57358
|
+
* Constructs a new ContractTokenInfo.
|
|
57359
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest
|
|
57360
|
+
* @classdesc Represents a ContractTokenInfo.
|
|
57361
|
+
* @implements IContractTokenInfo
|
|
57329
57362
|
* @constructor
|
|
57330
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57363
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IContractTokenInfo=} [properties] Properties to set
|
|
57331
57364
|
*/
|
|
57332
|
-
function
|
|
57365
|
+
function ContractTokenInfo(properties) {
|
|
57333
57366
|
if (properties)
|
|
57334
57367
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
57335
57368
|
if (properties[keys[i]] != null)
|
|
@@ -57337,80 +57370,321 @@ $root.org = (function() {
|
|
|
57337
57370
|
}
|
|
57338
57371
|
|
|
57339
57372
|
/**
|
|
57340
|
-
*
|
|
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.
|
|
57341
57595
|
* @member {Uint8Array} tokenId
|
|
57342
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57596
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57343
57597
|
* @instance
|
|
57344
57598
|
*/
|
|
57345
|
-
|
|
57599
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.prototype.tokenId = $util.newBuffer([]);
|
|
57346
57600
|
|
|
57347
57601
|
/**
|
|
57348
|
-
*
|
|
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.
|
|
57349
57619
|
* @member {boolean} prove
|
|
57350
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57620
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57351
57621
|
* @instance
|
|
57352
57622
|
*/
|
|
57353
|
-
|
|
57623
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.prototype.prove = false;
|
|
57354
57624
|
|
|
57355
57625
|
/**
|
|
57356
|
-
* Creates a new
|
|
57626
|
+
* Creates a new GetTokenPerpetualDistributionLastClaimRequestV0 instance using the specified properties.
|
|
57357
57627
|
* @function create
|
|
57358
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57628
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57359
57629
|
* @static
|
|
57360
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57361
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
57630
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0=} [properties] Properties to set
|
|
57631
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} GetTokenPerpetualDistributionLastClaimRequestV0 instance
|
|
57362
57632
|
*/
|
|
57363
|
-
|
|
57364
|
-
return new
|
|
57633
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.create = function create(properties) {
|
|
57634
|
+
return new GetTokenPerpetualDistributionLastClaimRequestV0(properties);
|
|
57365
57635
|
};
|
|
57366
57636
|
|
|
57367
57637
|
/**
|
|
57368
|
-
* Encodes the specified
|
|
57638
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.verify|verify} messages.
|
|
57369
57639
|
* @function encode
|
|
57370
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57640
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57371
57641
|
* @static
|
|
57372
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57642
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0} message GetTokenPerpetualDistributionLastClaimRequestV0 message or plain object to encode
|
|
57373
57643
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57374
57644
|
* @returns {$protobuf.Writer} Writer
|
|
57375
57645
|
*/
|
|
57376
|
-
|
|
57646
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.encode = function encode(message, writer) {
|
|
57377
57647
|
if (!writer)
|
|
57378
57648
|
writer = $Writer.create();
|
|
57379
57649
|
if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
|
|
57380
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);
|
|
57381
57655
|
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
57382
|
-
writer.uint32(/* id
|
|
57656
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.prove);
|
|
57383
57657
|
return writer;
|
|
57384
57658
|
};
|
|
57385
57659
|
|
|
57386
57660
|
/**
|
|
57387
|
-
* Encodes the specified
|
|
57661
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0.verify|verify} messages.
|
|
57388
57662
|
* @function encodeDelimited
|
|
57389
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57663
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57390
57664
|
* @static
|
|
57391
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57665
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.IGetTokenPerpetualDistributionLastClaimRequestV0} message GetTokenPerpetualDistributionLastClaimRequestV0 message or plain object to encode
|
|
57392
57666
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57393
57667
|
* @returns {$protobuf.Writer} Writer
|
|
57394
57668
|
*/
|
|
57395
|
-
|
|
57669
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
57396
57670
|
return this.encode(message, writer).ldelim();
|
|
57397
57671
|
};
|
|
57398
57672
|
|
|
57399
57673
|
/**
|
|
57400
|
-
* Decodes a
|
|
57674
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimRequestV0 message from the specified reader or buffer.
|
|
57401
57675
|
* @function decode
|
|
57402
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57676
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57403
57677
|
* @static
|
|
57404
57678
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57405
57679
|
* @param {number} [length] Message length if known beforehand
|
|
57406
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
57680
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57407
57681
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57408
57682
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57409
57683
|
*/
|
|
57410
|
-
|
|
57684
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.decode = function decode(reader, length) {
|
|
57411
57685
|
if (!(reader instanceof $Reader))
|
|
57412
57686
|
reader = $Reader.create(reader);
|
|
57413
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.
|
|
57687
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0();
|
|
57414
57688
|
while (reader.pos < end) {
|
|
57415
57689
|
var tag = reader.uint32();
|
|
57416
57690
|
switch (tag >>> 3) {
|
|
@@ -57418,6 +57692,12 @@ $root.org = (function() {
|
|
|
57418
57692
|
message.tokenId = reader.bytes();
|
|
57419
57693
|
break;
|
|
57420
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:
|
|
57421
57701
|
message.prove = reader.bool();
|
|
57422
57702
|
break;
|
|
57423
57703
|
default:
|
|
@@ -57429,35 +57709,43 @@ $root.org = (function() {
|
|
|
57429
57709
|
};
|
|
57430
57710
|
|
|
57431
57711
|
/**
|
|
57432
|
-
* Decodes a
|
|
57712
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimRequestV0 message from the specified reader or buffer, length delimited.
|
|
57433
57713
|
* @function decodeDelimited
|
|
57434
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57714
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57435
57715
|
* @static
|
|
57436
57716
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57437
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
57717
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57438
57718
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57439
57719
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57440
57720
|
*/
|
|
57441
|
-
|
|
57721
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
57442
57722
|
if (!(reader instanceof $Reader))
|
|
57443
57723
|
reader = new $Reader(reader);
|
|
57444
57724
|
return this.decode(reader, reader.uint32());
|
|
57445
57725
|
};
|
|
57446
57726
|
|
|
57447
57727
|
/**
|
|
57448
|
-
* Verifies a
|
|
57728
|
+
* Verifies a GetTokenPerpetualDistributionLastClaimRequestV0 message.
|
|
57449
57729
|
* @function verify
|
|
57450
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57730
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57451
57731
|
* @static
|
|
57452
57732
|
* @param {Object.<string,*>} message Plain object to verify
|
|
57453
57733
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
57454
57734
|
*/
|
|
57455
|
-
|
|
57735
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.verify = function verify(message) {
|
|
57456
57736
|
if (typeof message !== "object" || message === null)
|
|
57457
57737
|
return "object expected";
|
|
57458
57738
|
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
57459
57739
|
if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
|
|
57460
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";
|
|
57461
57749
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
57462
57750
|
if (typeof message.prove !== "boolean")
|
|
57463
57751
|
return "prove: boolean expected";
|
|
@@ -57465,37 +57753,47 @@ $root.org = (function() {
|
|
|
57465
57753
|
};
|
|
57466
57754
|
|
|
57467
57755
|
/**
|
|
57468
|
-
* Creates a
|
|
57756
|
+
* Creates a GetTokenPerpetualDistributionLastClaimRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
57469
57757
|
* @function fromObject
|
|
57470
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57758
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57471
57759
|
* @static
|
|
57472
57760
|
* @param {Object.<string,*>} object Plain object
|
|
57473
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
57761
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57474
57762
|
*/
|
|
57475
|
-
|
|
57476
|
-
if (object instanceof $root.org.dash.platform.dapi.v0.
|
|
57763
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.fromObject = function fromObject(object) {
|
|
57764
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0)
|
|
57477
57765
|
return object;
|
|
57478
|
-
var message = new $root.org.dash.platform.dapi.v0.
|
|
57766
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0();
|
|
57479
57767
|
if (object.tokenId != null)
|
|
57480
57768
|
if (typeof object.tokenId === "string")
|
|
57481
57769
|
$util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
|
|
57482
57770
|
else if (object.tokenId.length >= 0)
|
|
57483
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;
|
|
57484
57782
|
if (object.prove != null)
|
|
57485
57783
|
message.prove = Boolean(object.prove);
|
|
57486
57784
|
return message;
|
|
57487
57785
|
};
|
|
57488
57786
|
|
|
57489
57787
|
/**
|
|
57490
|
-
* Creates a plain object from a
|
|
57788
|
+
* Creates a plain object from a GetTokenPerpetualDistributionLastClaimRequestV0 message. Also converts values to other types if specified.
|
|
57491
57789
|
* @function toObject
|
|
57492
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57790
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57493
57791
|
* @static
|
|
57494
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57792
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0} message GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57495
57793
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
57496
57794
|
* @returns {Object.<string,*>} Plain object
|
|
57497
57795
|
*/
|
|
57498
|
-
|
|
57796
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.toObject = function toObject(message, options) {
|
|
57499
57797
|
if (!options)
|
|
57500
57798
|
options = {};
|
|
57501
57799
|
var object = {};
|
|
@@ -57507,50 +57805,62 @@ $root.org = (function() {
|
|
|
57507
57805
|
if (options.bytes !== Array)
|
|
57508
57806
|
object.tokenId = $util.newBuffer(object.tokenId);
|
|
57509
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
|
+
}
|
|
57510
57816
|
object.prove = false;
|
|
57511
57817
|
}
|
|
57512
57818
|
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
57513
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;
|
|
57514
57824
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
57515
57825
|
object.prove = message.prove;
|
|
57516
57826
|
return object;
|
|
57517
57827
|
};
|
|
57518
57828
|
|
|
57519
57829
|
/**
|
|
57520
|
-
* Converts this
|
|
57830
|
+
* Converts this GetTokenPerpetualDistributionLastClaimRequestV0 to JSON.
|
|
57521
57831
|
* @function toJSON
|
|
57522
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57832
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0
|
|
57523
57833
|
* @instance
|
|
57524
57834
|
* @returns {Object.<string,*>} JSON object
|
|
57525
57835
|
*/
|
|
57526
|
-
|
|
57836
|
+
GetTokenPerpetualDistributionLastClaimRequestV0.prototype.toJSON = function toJSON() {
|
|
57527
57837
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
57528
57838
|
};
|
|
57529
57839
|
|
|
57530
|
-
return
|
|
57840
|
+
return GetTokenPerpetualDistributionLastClaimRequestV0;
|
|
57531
57841
|
})();
|
|
57532
57842
|
|
|
57533
|
-
return
|
|
57843
|
+
return GetTokenPerpetualDistributionLastClaimRequest;
|
|
57534
57844
|
})();
|
|
57535
57845
|
|
|
57536
|
-
v0.
|
|
57846
|
+
v0.GetTokenPerpetualDistributionLastClaimResponse = (function() {
|
|
57537
57847
|
|
|
57538
57848
|
/**
|
|
57539
|
-
* Properties of a
|
|
57849
|
+
* Properties of a GetTokenPerpetualDistributionLastClaimResponse.
|
|
57540
57850
|
* @memberof org.dash.platform.dapi.v0
|
|
57541
|
-
* @interface
|
|
57542
|
-
* @property {org.dash.platform.dapi.v0.
|
|
57851
|
+
* @interface IGetTokenPerpetualDistributionLastClaimResponse
|
|
57852
|
+
* @property {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0|null} [v0] GetTokenPerpetualDistributionLastClaimResponse v0
|
|
57543
57853
|
*/
|
|
57544
57854
|
|
|
57545
57855
|
/**
|
|
57546
|
-
* Constructs a new
|
|
57856
|
+
* Constructs a new GetTokenPerpetualDistributionLastClaimResponse.
|
|
57547
57857
|
* @memberof org.dash.platform.dapi.v0
|
|
57548
|
-
* @classdesc Represents a
|
|
57549
|
-
* @implements
|
|
57858
|
+
* @classdesc Represents a GetTokenPerpetualDistributionLastClaimResponse.
|
|
57859
|
+
* @implements IGetTokenPerpetualDistributionLastClaimResponse
|
|
57550
57860
|
* @constructor
|
|
57551
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57861
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimResponse=} [properties] Properties to set
|
|
57552
57862
|
*/
|
|
57553
|
-
function
|
|
57863
|
+
function GetTokenPerpetualDistributionLastClaimResponse(properties) {
|
|
57554
57864
|
if (properties)
|
|
57555
57865
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
57556
57866
|
if (properties[keys[i]] != null)
|
|
@@ -57558,89 +57868,89 @@ $root.org = (function() {
|
|
|
57558
57868
|
}
|
|
57559
57869
|
|
|
57560
57870
|
/**
|
|
57561
|
-
*
|
|
57562
|
-
* @member {org.dash.platform.dapi.v0.
|
|
57563
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57871
|
+
* GetTokenPerpetualDistributionLastClaimResponse v0.
|
|
57872
|
+
* @member {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0|null|undefined} v0
|
|
57873
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
57564
57874
|
* @instance
|
|
57565
57875
|
*/
|
|
57566
|
-
|
|
57876
|
+
GetTokenPerpetualDistributionLastClaimResponse.prototype.v0 = null;
|
|
57567
57877
|
|
|
57568
57878
|
// OneOf field names bound to virtual getters and setters
|
|
57569
57879
|
var $oneOfFields;
|
|
57570
57880
|
|
|
57571
57881
|
/**
|
|
57572
|
-
*
|
|
57882
|
+
* GetTokenPerpetualDistributionLastClaimResponse version.
|
|
57573
57883
|
* @member {"v0"|undefined} version
|
|
57574
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57884
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
57575
57885
|
* @instance
|
|
57576
57886
|
*/
|
|
57577
|
-
Object.defineProperty(
|
|
57887
|
+
Object.defineProperty(GetTokenPerpetualDistributionLastClaimResponse.prototype, "version", {
|
|
57578
57888
|
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
57579
57889
|
set: $util.oneOfSetter($oneOfFields)
|
|
57580
57890
|
});
|
|
57581
57891
|
|
|
57582
57892
|
/**
|
|
57583
|
-
* Creates a new
|
|
57893
|
+
* Creates a new GetTokenPerpetualDistributionLastClaimResponse instance using the specified properties.
|
|
57584
57894
|
* @function create
|
|
57585
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57895
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
57586
57896
|
* @static
|
|
57587
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57588
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
57897
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimResponse=} [properties] Properties to set
|
|
57898
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} GetTokenPerpetualDistributionLastClaimResponse instance
|
|
57589
57899
|
*/
|
|
57590
|
-
|
|
57591
|
-
return new
|
|
57900
|
+
GetTokenPerpetualDistributionLastClaimResponse.create = function create(properties) {
|
|
57901
|
+
return new GetTokenPerpetualDistributionLastClaimResponse(properties);
|
|
57592
57902
|
};
|
|
57593
57903
|
|
|
57594
57904
|
/**
|
|
57595
|
-
* Encodes the specified
|
|
57905
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.verify|verify} messages.
|
|
57596
57906
|
* @function encode
|
|
57597
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57907
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
57598
57908
|
* @static
|
|
57599
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57909
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimResponse} message GetTokenPerpetualDistributionLastClaimResponse message or plain object to encode
|
|
57600
57910
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57601
57911
|
* @returns {$protobuf.Writer} Writer
|
|
57602
57912
|
*/
|
|
57603
|
-
|
|
57913
|
+
GetTokenPerpetualDistributionLastClaimResponse.encode = function encode(message, writer) {
|
|
57604
57914
|
if (!writer)
|
|
57605
57915
|
writer = $Writer.create();
|
|
57606
57916
|
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
57607
|
-
$root.org.dash.platform.dapi.v0.
|
|
57917
|
+
$root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
57608
57918
|
return writer;
|
|
57609
57919
|
};
|
|
57610
57920
|
|
|
57611
57921
|
/**
|
|
57612
|
-
* Encodes the specified
|
|
57922
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.verify|verify} messages.
|
|
57613
57923
|
* @function encodeDelimited
|
|
57614
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57924
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
57615
57925
|
* @static
|
|
57616
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57926
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenPerpetualDistributionLastClaimResponse} message GetTokenPerpetualDistributionLastClaimResponse message or plain object to encode
|
|
57617
57927
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57618
57928
|
* @returns {$protobuf.Writer} Writer
|
|
57619
57929
|
*/
|
|
57620
|
-
|
|
57930
|
+
GetTokenPerpetualDistributionLastClaimResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
57621
57931
|
return this.encode(message, writer).ldelim();
|
|
57622
57932
|
};
|
|
57623
57933
|
|
|
57624
57934
|
/**
|
|
57625
|
-
* Decodes a
|
|
57935
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimResponse message from the specified reader or buffer.
|
|
57626
57936
|
* @function decode
|
|
57627
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57937
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
57628
57938
|
* @static
|
|
57629
57939
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57630
57940
|
* @param {number} [length] Message length if known beforehand
|
|
57631
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
57941
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} GetTokenPerpetualDistributionLastClaimResponse
|
|
57632
57942
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57633
57943
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57634
57944
|
*/
|
|
57635
|
-
|
|
57945
|
+
GetTokenPerpetualDistributionLastClaimResponse.decode = function decode(reader, length) {
|
|
57636
57946
|
if (!(reader instanceof $Reader))
|
|
57637
57947
|
reader = $Reader.create(reader);
|
|
57638
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.
|
|
57948
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse();
|
|
57639
57949
|
while (reader.pos < end) {
|
|
57640
57950
|
var tag = reader.uint32();
|
|
57641
57951
|
switch (tag >>> 3) {
|
|
57642
57952
|
case 1:
|
|
57643
|
-
message.v0 = $root.org.dash.platform.dapi.v0.
|
|
57953
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.decode(reader, reader.uint32());
|
|
57644
57954
|
break;
|
|
57645
57955
|
default:
|
|
57646
57956
|
reader.skipType(tag & 7);
|
|
@@ -57651,37 +57961,37 @@ $root.org = (function() {
|
|
|
57651
57961
|
};
|
|
57652
57962
|
|
|
57653
57963
|
/**
|
|
57654
|
-
* Decodes a
|
|
57964
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimResponse message from the specified reader or buffer, length delimited.
|
|
57655
57965
|
* @function decodeDelimited
|
|
57656
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57966
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
57657
57967
|
* @static
|
|
57658
57968
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57659
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
57969
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} GetTokenPerpetualDistributionLastClaimResponse
|
|
57660
57970
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57661
57971
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57662
57972
|
*/
|
|
57663
|
-
|
|
57973
|
+
GetTokenPerpetualDistributionLastClaimResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
57664
57974
|
if (!(reader instanceof $Reader))
|
|
57665
57975
|
reader = new $Reader(reader);
|
|
57666
57976
|
return this.decode(reader, reader.uint32());
|
|
57667
57977
|
};
|
|
57668
57978
|
|
|
57669
57979
|
/**
|
|
57670
|
-
* Verifies a
|
|
57980
|
+
* Verifies a GetTokenPerpetualDistributionLastClaimResponse message.
|
|
57671
57981
|
* @function verify
|
|
57672
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57982
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
57673
57983
|
* @static
|
|
57674
57984
|
* @param {Object.<string,*>} message Plain object to verify
|
|
57675
57985
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
57676
57986
|
*/
|
|
57677
|
-
|
|
57987
|
+
GetTokenPerpetualDistributionLastClaimResponse.verify = function verify(message) {
|
|
57678
57988
|
if (typeof message !== "object" || message === null)
|
|
57679
57989
|
return "object expected";
|
|
57680
57990
|
var properties = {};
|
|
57681
57991
|
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
57682
57992
|
properties.version = 1;
|
|
57683
57993
|
{
|
|
57684
|
-
var error = $root.org.dash.platform.dapi.v0.
|
|
57994
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.verify(message.v0);
|
|
57685
57995
|
if (error)
|
|
57686
57996
|
return "v0." + error;
|
|
57687
57997
|
}
|
|
@@ -57690,40 +58000,40 @@ $root.org = (function() {
|
|
|
57690
58000
|
};
|
|
57691
58001
|
|
|
57692
58002
|
/**
|
|
57693
|
-
* Creates a
|
|
58003
|
+
* Creates a GetTokenPerpetualDistributionLastClaimResponse message from a plain object. Also converts values to their respective internal types.
|
|
57694
58004
|
* @function fromObject
|
|
57695
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58005
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
57696
58006
|
* @static
|
|
57697
58007
|
* @param {Object.<string,*>} object Plain object
|
|
57698
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
58008
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} GetTokenPerpetualDistributionLastClaimResponse
|
|
57699
58009
|
*/
|
|
57700
|
-
|
|
57701
|
-
if (object instanceof $root.org.dash.platform.dapi.v0.
|
|
58010
|
+
GetTokenPerpetualDistributionLastClaimResponse.fromObject = function fromObject(object) {
|
|
58011
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse)
|
|
57702
58012
|
return object;
|
|
57703
|
-
var message = new $root.org.dash.platform.dapi.v0.
|
|
58013
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse();
|
|
57704
58014
|
if (object.v0 != null) {
|
|
57705
58015
|
if (typeof object.v0 !== "object")
|
|
57706
|
-
throw TypeError(".org.dash.platform.dapi.v0.
|
|
57707
|
-
message.v0 = $root.org.dash.platform.dapi.v0.
|
|
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);
|
|
57708
58018
|
}
|
|
57709
58019
|
return message;
|
|
57710
58020
|
};
|
|
57711
58021
|
|
|
57712
58022
|
/**
|
|
57713
|
-
* Creates a plain object from a
|
|
58023
|
+
* Creates a plain object from a GetTokenPerpetualDistributionLastClaimResponse message. Also converts values to other types if specified.
|
|
57714
58024
|
* @function toObject
|
|
57715
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58025
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
57716
58026
|
* @static
|
|
57717
|
-
* @param {org.dash.platform.dapi.v0.
|
|
58027
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse} message GetTokenPerpetualDistributionLastClaimResponse
|
|
57718
58028
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
57719
58029
|
* @returns {Object.<string,*>} Plain object
|
|
57720
58030
|
*/
|
|
57721
|
-
|
|
58031
|
+
GetTokenPerpetualDistributionLastClaimResponse.toObject = function toObject(message, options) {
|
|
57722
58032
|
if (!options)
|
|
57723
58033
|
options = {};
|
|
57724
58034
|
var object = {};
|
|
57725
58035
|
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
57726
|
-
object.v0 = $root.org.dash.platform.dapi.v0.
|
|
58036
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.toObject(message.v0, options);
|
|
57727
58037
|
if (options.oneofs)
|
|
57728
58038
|
object.version = "v0";
|
|
57729
58039
|
}
|
|
@@ -57731,36 +58041,36 @@ $root.org = (function() {
|
|
|
57731
58041
|
};
|
|
57732
58042
|
|
|
57733
58043
|
/**
|
|
57734
|
-
* Converts this
|
|
58044
|
+
* Converts this GetTokenPerpetualDistributionLastClaimResponse to JSON.
|
|
57735
58045
|
* @function toJSON
|
|
57736
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58046
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
57737
58047
|
* @instance
|
|
57738
58048
|
* @returns {Object.<string,*>} JSON object
|
|
57739
58049
|
*/
|
|
57740
|
-
|
|
58050
|
+
GetTokenPerpetualDistributionLastClaimResponse.prototype.toJSON = function toJSON() {
|
|
57741
58051
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
57742
58052
|
};
|
|
57743
58053
|
|
|
57744
|
-
|
|
58054
|
+
GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0 = (function() {
|
|
57745
58055
|
|
|
57746
58056
|
/**
|
|
57747
|
-
* Properties of a
|
|
57748
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57749
|
-
* @interface
|
|
57750
|
-
* @property {org.dash.platform.dapi.v0.
|
|
57751
|
-
* @property {org.dash.platform.dapi.v0.IProof|null} [proof]
|
|
57752
|
-
* @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata]
|
|
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
|
|
57753
58063
|
*/
|
|
57754
58064
|
|
|
57755
58065
|
/**
|
|
57756
|
-
* Constructs a new
|
|
57757
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
57758
|
-
* @classdesc Represents a
|
|
57759
|
-
* @implements
|
|
58066
|
+
* Constructs a new GetTokenPerpetualDistributionLastClaimResponseV0.
|
|
58067
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse
|
|
58068
|
+
* @classdesc Represents a GetTokenPerpetualDistributionLastClaimResponseV0.
|
|
58069
|
+
* @implements IGetTokenPerpetualDistributionLastClaimResponseV0
|
|
57760
58070
|
* @constructor
|
|
57761
|
-
* @param {org.dash.platform.dapi.v0.
|
|
58071
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0=} [properties] Properties to set
|
|
57762
58072
|
*/
|
|
57763
|
-
function
|
|
58073
|
+
function GetTokenPerpetualDistributionLastClaimResponseV0(properties) {
|
|
57764
58074
|
if (properties)
|
|
57765
58075
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
57766
58076
|
if (properties[keys[i]] != null)
|
|
@@ -57768,69 +58078,69 @@ $root.org = (function() {
|
|
|
57768
58078
|
}
|
|
57769
58079
|
|
|
57770
58080
|
/**
|
|
57771
|
-
*
|
|
57772
|
-
* @member {org.dash.platform.dapi.v0.
|
|
57773
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
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
|
|
57774
58084
|
* @instance
|
|
57775
58085
|
*/
|
|
57776
|
-
|
|
58086
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.prototype.lastClaim = null;
|
|
57777
58087
|
|
|
57778
58088
|
/**
|
|
57779
|
-
*
|
|
58089
|
+
* GetTokenPerpetualDistributionLastClaimResponseV0 proof.
|
|
57780
58090
|
* @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
|
|
57781
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58091
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
57782
58092
|
* @instance
|
|
57783
58093
|
*/
|
|
57784
|
-
|
|
58094
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.prototype.proof = null;
|
|
57785
58095
|
|
|
57786
58096
|
/**
|
|
57787
|
-
*
|
|
58097
|
+
* GetTokenPerpetualDistributionLastClaimResponseV0 metadata.
|
|
57788
58098
|
* @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
|
|
57789
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58099
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
57790
58100
|
* @instance
|
|
57791
58101
|
*/
|
|
57792
|
-
|
|
58102
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.prototype.metadata = null;
|
|
57793
58103
|
|
|
57794
58104
|
// OneOf field names bound to virtual getters and setters
|
|
57795
58105
|
var $oneOfFields;
|
|
57796
58106
|
|
|
57797
58107
|
/**
|
|
57798
|
-
*
|
|
57799
|
-
* @member {"
|
|
57800
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58108
|
+
* GetTokenPerpetualDistributionLastClaimResponseV0 result.
|
|
58109
|
+
* @member {"lastClaim"|"proof"|undefined} result
|
|
58110
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
57801
58111
|
* @instance
|
|
57802
58112
|
*/
|
|
57803
|
-
Object.defineProperty(
|
|
57804
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
58113
|
+
Object.defineProperty(GetTokenPerpetualDistributionLastClaimResponseV0.prototype, "result", {
|
|
58114
|
+
get: $util.oneOfGetter($oneOfFields = ["lastClaim", "proof"]),
|
|
57805
58115
|
set: $util.oneOfSetter($oneOfFields)
|
|
57806
58116
|
});
|
|
57807
58117
|
|
|
57808
58118
|
/**
|
|
57809
|
-
* Creates a new
|
|
58119
|
+
* Creates a new GetTokenPerpetualDistributionLastClaimResponseV0 instance using the specified properties.
|
|
57810
58120
|
* @function create
|
|
57811
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58121
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
57812
58122
|
* @static
|
|
57813
|
-
* @param {org.dash.platform.dapi.v0.
|
|
57814
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
58123
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0=} [properties] Properties to set
|
|
58124
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0} GetTokenPerpetualDistributionLastClaimResponseV0 instance
|
|
57815
58125
|
*/
|
|
57816
|
-
|
|
57817
|
-
return new
|
|
58126
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.create = function create(properties) {
|
|
58127
|
+
return new GetTokenPerpetualDistributionLastClaimResponseV0(properties);
|
|
57818
58128
|
};
|
|
57819
58129
|
|
|
57820
58130
|
/**
|
|
57821
|
-
* Encodes the specified
|
|
58131
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.verify|verify} messages.
|
|
57822
58132
|
* @function encode
|
|
57823
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58133
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
57824
58134
|
* @static
|
|
57825
|
-
* @param {org.dash.platform.dapi.v0.
|
|
58135
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0} message GetTokenPerpetualDistributionLastClaimResponseV0 message or plain object to encode
|
|
57826
58136
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57827
58137
|
* @returns {$protobuf.Writer} Writer
|
|
57828
58138
|
*/
|
|
57829
|
-
|
|
58139
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.encode = function encode(message, writer) {
|
|
57830
58140
|
if (!writer)
|
|
57831
58141
|
writer = $Writer.create();
|
|
57832
|
-
if (message.
|
|
57833
|
-
$root.org.dash.platform.dapi.v0.
|
|
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();
|
|
57834
58144
|
if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
|
|
57835
58145
|
$root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
57836
58146
|
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
@@ -57839,38 +58149,38 @@ $root.org = (function() {
|
|
|
57839
58149
|
};
|
|
57840
58150
|
|
|
57841
58151
|
/**
|
|
57842
|
-
* Encodes the specified
|
|
58152
|
+
* Encodes the specified GetTokenPerpetualDistributionLastClaimResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.verify|verify} messages.
|
|
57843
58153
|
* @function encodeDelimited
|
|
57844
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58154
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
57845
58155
|
* @static
|
|
57846
|
-
* @param {org.dash.platform.dapi.v0.
|
|
58156
|
+
* @param {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.IGetTokenPerpetualDistributionLastClaimResponseV0} message GetTokenPerpetualDistributionLastClaimResponseV0 message or plain object to encode
|
|
57847
58157
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57848
58158
|
* @returns {$protobuf.Writer} Writer
|
|
57849
58159
|
*/
|
|
57850
|
-
|
|
58160
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
57851
58161
|
return this.encode(message, writer).ldelim();
|
|
57852
58162
|
};
|
|
57853
58163
|
|
|
57854
58164
|
/**
|
|
57855
|
-
* Decodes a
|
|
58165
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimResponseV0 message from the specified reader or buffer.
|
|
57856
58166
|
* @function decode
|
|
57857
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58167
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
57858
58168
|
* @static
|
|
57859
58169
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57860
58170
|
* @param {number} [length] Message length if known beforehand
|
|
57861
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
58171
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0} GetTokenPerpetualDistributionLastClaimResponseV0
|
|
57862
58172
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57863
58173
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57864
58174
|
*/
|
|
57865
|
-
|
|
58175
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.decode = function decode(reader, length) {
|
|
57866
58176
|
if (!(reader instanceof $Reader))
|
|
57867
58177
|
reader = $Reader.create(reader);
|
|
57868
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.
|
|
58178
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0();
|
|
57869
58179
|
while (reader.pos < end) {
|
|
57870
58180
|
var tag = reader.uint32();
|
|
57871
58181
|
switch (tag >>> 3) {
|
|
57872
58182
|
case 1:
|
|
57873
|
-
message.
|
|
58183
|
+
message.lastClaim = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.decode(reader, reader.uint32());
|
|
57874
58184
|
break;
|
|
57875
58185
|
case 2:
|
|
57876
58186
|
message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
|
|
@@ -57887,39 +58197,1265 @@ $root.org = (function() {
|
|
|
57887
58197
|
};
|
|
57888
58198
|
|
|
57889
58199
|
/**
|
|
57890
|
-
* Decodes a
|
|
58200
|
+
* Decodes a GetTokenPerpetualDistributionLastClaimResponseV0 message from the specified reader or buffer, length delimited.
|
|
57891
58201
|
* @function decodeDelimited
|
|
57892
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58202
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
57893
58203
|
* @static
|
|
57894
58204
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57895
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
58205
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0} GetTokenPerpetualDistributionLastClaimResponseV0
|
|
57896
58206
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57897
58207
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57898
58208
|
*/
|
|
57899
|
-
|
|
58209
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.decodeDelimited = function decodeDelimited(reader) {
|
|
57900
58210
|
if (!(reader instanceof $Reader))
|
|
57901
58211
|
reader = new $Reader(reader);
|
|
57902
58212
|
return this.decode(reader, reader.uint32());
|
|
57903
58213
|
};
|
|
57904
58214
|
|
|
57905
58215
|
/**
|
|
57906
|
-
* Verifies a
|
|
58216
|
+
* Verifies a GetTokenPerpetualDistributionLastClaimResponseV0 message.
|
|
57907
58217
|
* @function verify
|
|
57908
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
58218
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0
|
|
57909
58219
|
* @static
|
|
57910
58220
|
* @param {Object.<string,*>} message Plain object to verify
|
|
57911
58221
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
57912
58222
|
*/
|
|
57913
|
-
|
|
58223
|
+
GetTokenPerpetualDistributionLastClaimResponseV0.verify = function verify(message) {
|
|
57914
58224
|
if (typeof message !== "object" || message === null)
|
|
57915
58225
|
return "object expected";
|
|
57916
58226
|
var properties = {};
|
|
57917
|
-
if (message.
|
|
58227
|
+
if (message.lastClaim != null && message.hasOwnProperty("lastClaim")) {
|
|
57918
58228
|
properties.result = 1;
|
|
57919
58229
|
{
|
|
57920
|
-
var error = $root.org.dash.platform.dapi.v0.
|
|
58230
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfo.verify(message.lastClaim);
|
|
57921
58231
|
if (error)
|
|
57922
|
-
return "
|
|
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
|
+
|
|
58642
|
+
v0.GetTokenTotalSupplyRequest = (function() {
|
|
58643
|
+
|
|
58644
|
+
/**
|
|
58645
|
+
* Properties of a GetTokenTotalSupplyRequest.
|
|
58646
|
+
* @memberof org.dash.platform.dapi.v0
|
|
58647
|
+
* @interface IGetTokenTotalSupplyRequest
|
|
58648
|
+
* @property {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.IGetTokenTotalSupplyRequestV0|null} [v0] GetTokenTotalSupplyRequest v0
|
|
58649
|
+
*/
|
|
58650
|
+
|
|
58651
|
+
/**
|
|
58652
|
+
* Constructs a new GetTokenTotalSupplyRequest.
|
|
58653
|
+
* @memberof org.dash.platform.dapi.v0
|
|
58654
|
+
* @classdesc Represents a GetTokenTotalSupplyRequest.
|
|
58655
|
+
* @implements IGetTokenTotalSupplyRequest
|
|
58656
|
+
* @constructor
|
|
58657
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenTotalSupplyRequest=} [properties] Properties to set
|
|
58658
|
+
*/
|
|
58659
|
+
function GetTokenTotalSupplyRequest(properties) {
|
|
58660
|
+
if (properties)
|
|
58661
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58662
|
+
if (properties[keys[i]] != null)
|
|
58663
|
+
this[keys[i]] = properties[keys[i]];
|
|
58664
|
+
}
|
|
58665
|
+
|
|
58666
|
+
/**
|
|
58667
|
+
* GetTokenTotalSupplyRequest v0.
|
|
58668
|
+
* @member {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.IGetTokenTotalSupplyRequestV0|null|undefined} v0
|
|
58669
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
58670
|
+
* @instance
|
|
58671
|
+
*/
|
|
58672
|
+
GetTokenTotalSupplyRequest.prototype.v0 = null;
|
|
58673
|
+
|
|
58674
|
+
// OneOf field names bound to virtual getters and setters
|
|
58675
|
+
var $oneOfFields;
|
|
58676
|
+
|
|
58677
|
+
/**
|
|
58678
|
+
* GetTokenTotalSupplyRequest version.
|
|
58679
|
+
* @member {"v0"|undefined} version
|
|
58680
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
58681
|
+
* @instance
|
|
58682
|
+
*/
|
|
58683
|
+
Object.defineProperty(GetTokenTotalSupplyRequest.prototype, "version", {
|
|
58684
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
58685
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
58686
|
+
});
|
|
58687
|
+
|
|
58688
|
+
/**
|
|
58689
|
+
* Creates a new GetTokenTotalSupplyRequest instance using the specified properties.
|
|
58690
|
+
* @function create
|
|
58691
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
58692
|
+
* @static
|
|
58693
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenTotalSupplyRequest=} [properties] Properties to set
|
|
58694
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest} GetTokenTotalSupplyRequest instance
|
|
58695
|
+
*/
|
|
58696
|
+
GetTokenTotalSupplyRequest.create = function create(properties) {
|
|
58697
|
+
return new GetTokenTotalSupplyRequest(properties);
|
|
58698
|
+
};
|
|
58699
|
+
|
|
58700
|
+
/**
|
|
58701
|
+
* Encodes the specified GetTokenTotalSupplyRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.verify|verify} messages.
|
|
58702
|
+
* @function encode
|
|
58703
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
58704
|
+
* @static
|
|
58705
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenTotalSupplyRequest} message GetTokenTotalSupplyRequest message or plain object to encode
|
|
58706
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58707
|
+
* @returns {$protobuf.Writer} Writer
|
|
58708
|
+
*/
|
|
58709
|
+
GetTokenTotalSupplyRequest.encode = function encode(message, writer) {
|
|
58710
|
+
if (!writer)
|
|
58711
|
+
writer = $Writer.create();
|
|
58712
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
58713
|
+
$root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
58714
|
+
return writer;
|
|
58715
|
+
};
|
|
58716
|
+
|
|
58717
|
+
/**
|
|
58718
|
+
* Encodes the specified GetTokenTotalSupplyRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.verify|verify} messages.
|
|
58719
|
+
* @function encodeDelimited
|
|
58720
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
58721
|
+
* @static
|
|
58722
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenTotalSupplyRequest} message GetTokenTotalSupplyRequest message or plain object to encode
|
|
58723
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58724
|
+
* @returns {$protobuf.Writer} Writer
|
|
58725
|
+
*/
|
|
58726
|
+
GetTokenTotalSupplyRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58727
|
+
return this.encode(message, writer).ldelim();
|
|
58728
|
+
};
|
|
58729
|
+
|
|
58730
|
+
/**
|
|
58731
|
+
* Decodes a GetTokenTotalSupplyRequest message from the specified reader or buffer.
|
|
58732
|
+
* @function decode
|
|
58733
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
58734
|
+
* @static
|
|
58735
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58736
|
+
* @param {number} [length] Message length if known beforehand
|
|
58737
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest} GetTokenTotalSupplyRequest
|
|
58738
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58739
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58740
|
+
*/
|
|
58741
|
+
GetTokenTotalSupplyRequest.decode = function decode(reader, length) {
|
|
58742
|
+
if (!(reader instanceof $Reader))
|
|
58743
|
+
reader = $Reader.create(reader);
|
|
58744
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest();
|
|
58745
|
+
while (reader.pos < end) {
|
|
58746
|
+
var tag = reader.uint32();
|
|
58747
|
+
switch (tag >>> 3) {
|
|
58748
|
+
case 1:
|
|
58749
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0.decode(reader, reader.uint32());
|
|
58750
|
+
break;
|
|
58751
|
+
default:
|
|
58752
|
+
reader.skipType(tag & 7);
|
|
58753
|
+
break;
|
|
58754
|
+
}
|
|
58755
|
+
}
|
|
58756
|
+
return message;
|
|
58757
|
+
};
|
|
58758
|
+
|
|
58759
|
+
/**
|
|
58760
|
+
* Decodes a GetTokenTotalSupplyRequest message from the specified reader or buffer, length delimited.
|
|
58761
|
+
* @function decodeDelimited
|
|
58762
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
58763
|
+
* @static
|
|
58764
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58765
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest} GetTokenTotalSupplyRequest
|
|
58766
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58767
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58768
|
+
*/
|
|
58769
|
+
GetTokenTotalSupplyRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
58770
|
+
if (!(reader instanceof $Reader))
|
|
58771
|
+
reader = new $Reader(reader);
|
|
58772
|
+
return this.decode(reader, reader.uint32());
|
|
58773
|
+
};
|
|
58774
|
+
|
|
58775
|
+
/**
|
|
58776
|
+
* Verifies a GetTokenTotalSupplyRequest message.
|
|
58777
|
+
* @function verify
|
|
58778
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
58779
|
+
* @static
|
|
58780
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
58781
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
58782
|
+
*/
|
|
58783
|
+
GetTokenTotalSupplyRequest.verify = function verify(message) {
|
|
58784
|
+
if (typeof message !== "object" || message === null)
|
|
58785
|
+
return "object expected";
|
|
58786
|
+
var properties = {};
|
|
58787
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
58788
|
+
properties.version = 1;
|
|
58789
|
+
{
|
|
58790
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0.verify(message.v0);
|
|
58791
|
+
if (error)
|
|
58792
|
+
return "v0." + error;
|
|
58793
|
+
}
|
|
58794
|
+
}
|
|
58795
|
+
return null;
|
|
58796
|
+
};
|
|
58797
|
+
|
|
58798
|
+
/**
|
|
58799
|
+
* Creates a GetTokenTotalSupplyRequest message from a plain object. Also converts values to their respective internal types.
|
|
58800
|
+
* @function fromObject
|
|
58801
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
58802
|
+
* @static
|
|
58803
|
+
* @param {Object.<string,*>} object Plain object
|
|
58804
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest} GetTokenTotalSupplyRequest
|
|
58805
|
+
*/
|
|
58806
|
+
GetTokenTotalSupplyRequest.fromObject = function fromObject(object) {
|
|
58807
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest)
|
|
58808
|
+
return object;
|
|
58809
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest();
|
|
58810
|
+
if (object.v0 != null) {
|
|
58811
|
+
if (typeof object.v0 !== "object")
|
|
58812
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.v0: object expected");
|
|
58813
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0.fromObject(object.v0);
|
|
58814
|
+
}
|
|
58815
|
+
return message;
|
|
58816
|
+
};
|
|
58817
|
+
|
|
58818
|
+
/**
|
|
58819
|
+
* Creates a plain object from a GetTokenTotalSupplyRequest message. Also converts values to other types if specified.
|
|
58820
|
+
* @function toObject
|
|
58821
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
58822
|
+
* @static
|
|
58823
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest} message GetTokenTotalSupplyRequest
|
|
58824
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
58825
|
+
* @returns {Object.<string,*>} Plain object
|
|
58826
|
+
*/
|
|
58827
|
+
GetTokenTotalSupplyRequest.toObject = function toObject(message, options) {
|
|
58828
|
+
if (!options)
|
|
58829
|
+
options = {};
|
|
58830
|
+
var object = {};
|
|
58831
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
58832
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0.toObject(message.v0, options);
|
|
58833
|
+
if (options.oneofs)
|
|
58834
|
+
object.version = "v0";
|
|
58835
|
+
}
|
|
58836
|
+
return object;
|
|
58837
|
+
};
|
|
58838
|
+
|
|
58839
|
+
/**
|
|
58840
|
+
* Converts this GetTokenTotalSupplyRequest to JSON.
|
|
58841
|
+
* @function toJSON
|
|
58842
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
58843
|
+
* @instance
|
|
58844
|
+
* @returns {Object.<string,*>} JSON object
|
|
58845
|
+
*/
|
|
58846
|
+
GetTokenTotalSupplyRequest.prototype.toJSON = function toJSON() {
|
|
58847
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
58848
|
+
};
|
|
58849
|
+
|
|
58850
|
+
GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0 = (function() {
|
|
58851
|
+
|
|
58852
|
+
/**
|
|
58853
|
+
* Properties of a GetTokenTotalSupplyRequestV0.
|
|
58854
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
58855
|
+
* @interface IGetTokenTotalSupplyRequestV0
|
|
58856
|
+
* @property {Uint8Array|null} [tokenId] GetTokenTotalSupplyRequestV0 tokenId
|
|
58857
|
+
* @property {boolean|null} [prove] GetTokenTotalSupplyRequestV0 prove
|
|
58858
|
+
*/
|
|
58859
|
+
|
|
58860
|
+
/**
|
|
58861
|
+
* Constructs a new GetTokenTotalSupplyRequestV0.
|
|
58862
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest
|
|
58863
|
+
* @classdesc Represents a GetTokenTotalSupplyRequestV0.
|
|
58864
|
+
* @implements IGetTokenTotalSupplyRequestV0
|
|
58865
|
+
* @constructor
|
|
58866
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.IGetTokenTotalSupplyRequestV0=} [properties] Properties to set
|
|
58867
|
+
*/
|
|
58868
|
+
function GetTokenTotalSupplyRequestV0(properties) {
|
|
58869
|
+
if (properties)
|
|
58870
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58871
|
+
if (properties[keys[i]] != null)
|
|
58872
|
+
this[keys[i]] = properties[keys[i]];
|
|
58873
|
+
}
|
|
58874
|
+
|
|
58875
|
+
/**
|
|
58876
|
+
* GetTokenTotalSupplyRequestV0 tokenId.
|
|
58877
|
+
* @member {Uint8Array} tokenId
|
|
58878
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
58879
|
+
* @instance
|
|
58880
|
+
*/
|
|
58881
|
+
GetTokenTotalSupplyRequestV0.prototype.tokenId = $util.newBuffer([]);
|
|
58882
|
+
|
|
58883
|
+
/**
|
|
58884
|
+
* GetTokenTotalSupplyRequestV0 prove.
|
|
58885
|
+
* @member {boolean} prove
|
|
58886
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
58887
|
+
* @instance
|
|
58888
|
+
*/
|
|
58889
|
+
GetTokenTotalSupplyRequestV0.prototype.prove = false;
|
|
58890
|
+
|
|
58891
|
+
/**
|
|
58892
|
+
* Creates a new GetTokenTotalSupplyRequestV0 instance using the specified properties.
|
|
58893
|
+
* @function create
|
|
58894
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
58895
|
+
* @static
|
|
58896
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.IGetTokenTotalSupplyRequestV0=} [properties] Properties to set
|
|
58897
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0} GetTokenTotalSupplyRequestV0 instance
|
|
58898
|
+
*/
|
|
58899
|
+
GetTokenTotalSupplyRequestV0.create = function create(properties) {
|
|
58900
|
+
return new GetTokenTotalSupplyRequestV0(properties);
|
|
58901
|
+
};
|
|
58902
|
+
|
|
58903
|
+
/**
|
|
58904
|
+
* Encodes the specified GetTokenTotalSupplyRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0.verify|verify} messages.
|
|
58905
|
+
* @function encode
|
|
58906
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
58907
|
+
* @static
|
|
58908
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.IGetTokenTotalSupplyRequestV0} message GetTokenTotalSupplyRequestV0 message or plain object to encode
|
|
58909
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58910
|
+
* @returns {$protobuf.Writer} Writer
|
|
58911
|
+
*/
|
|
58912
|
+
GetTokenTotalSupplyRequestV0.encode = function encode(message, writer) {
|
|
58913
|
+
if (!writer)
|
|
58914
|
+
writer = $Writer.create();
|
|
58915
|
+
if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
|
|
58916
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tokenId);
|
|
58917
|
+
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
58918
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
|
|
58919
|
+
return writer;
|
|
58920
|
+
};
|
|
58921
|
+
|
|
58922
|
+
/**
|
|
58923
|
+
* Encodes the specified GetTokenTotalSupplyRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0.verify|verify} messages.
|
|
58924
|
+
* @function encodeDelimited
|
|
58925
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
58926
|
+
* @static
|
|
58927
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.IGetTokenTotalSupplyRequestV0} message GetTokenTotalSupplyRequestV0 message or plain object to encode
|
|
58928
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58929
|
+
* @returns {$protobuf.Writer} Writer
|
|
58930
|
+
*/
|
|
58931
|
+
GetTokenTotalSupplyRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58932
|
+
return this.encode(message, writer).ldelim();
|
|
58933
|
+
};
|
|
58934
|
+
|
|
58935
|
+
/**
|
|
58936
|
+
* Decodes a GetTokenTotalSupplyRequestV0 message from the specified reader or buffer.
|
|
58937
|
+
* @function decode
|
|
58938
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
58939
|
+
* @static
|
|
58940
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58941
|
+
* @param {number} [length] Message length if known beforehand
|
|
58942
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0} GetTokenTotalSupplyRequestV0
|
|
58943
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58944
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58945
|
+
*/
|
|
58946
|
+
GetTokenTotalSupplyRequestV0.decode = function decode(reader, length) {
|
|
58947
|
+
if (!(reader instanceof $Reader))
|
|
58948
|
+
reader = $Reader.create(reader);
|
|
58949
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0();
|
|
58950
|
+
while (reader.pos < end) {
|
|
58951
|
+
var tag = reader.uint32();
|
|
58952
|
+
switch (tag >>> 3) {
|
|
58953
|
+
case 1:
|
|
58954
|
+
message.tokenId = reader.bytes();
|
|
58955
|
+
break;
|
|
58956
|
+
case 2:
|
|
58957
|
+
message.prove = reader.bool();
|
|
58958
|
+
break;
|
|
58959
|
+
default:
|
|
58960
|
+
reader.skipType(tag & 7);
|
|
58961
|
+
break;
|
|
58962
|
+
}
|
|
58963
|
+
}
|
|
58964
|
+
return message;
|
|
58965
|
+
};
|
|
58966
|
+
|
|
58967
|
+
/**
|
|
58968
|
+
* Decodes a GetTokenTotalSupplyRequestV0 message from the specified reader or buffer, length delimited.
|
|
58969
|
+
* @function decodeDelimited
|
|
58970
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
58971
|
+
* @static
|
|
58972
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58973
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0} GetTokenTotalSupplyRequestV0
|
|
58974
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58975
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58976
|
+
*/
|
|
58977
|
+
GetTokenTotalSupplyRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
58978
|
+
if (!(reader instanceof $Reader))
|
|
58979
|
+
reader = new $Reader(reader);
|
|
58980
|
+
return this.decode(reader, reader.uint32());
|
|
58981
|
+
};
|
|
58982
|
+
|
|
58983
|
+
/**
|
|
58984
|
+
* Verifies a GetTokenTotalSupplyRequestV0 message.
|
|
58985
|
+
* @function verify
|
|
58986
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
58987
|
+
* @static
|
|
58988
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
58989
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
58990
|
+
*/
|
|
58991
|
+
GetTokenTotalSupplyRequestV0.verify = function verify(message) {
|
|
58992
|
+
if (typeof message !== "object" || message === null)
|
|
58993
|
+
return "object expected";
|
|
58994
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
58995
|
+
if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
|
|
58996
|
+
return "tokenId: buffer expected";
|
|
58997
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
58998
|
+
if (typeof message.prove !== "boolean")
|
|
58999
|
+
return "prove: boolean expected";
|
|
59000
|
+
return null;
|
|
59001
|
+
};
|
|
59002
|
+
|
|
59003
|
+
/**
|
|
59004
|
+
* Creates a GetTokenTotalSupplyRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
59005
|
+
* @function fromObject
|
|
59006
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
59007
|
+
* @static
|
|
59008
|
+
* @param {Object.<string,*>} object Plain object
|
|
59009
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0} GetTokenTotalSupplyRequestV0
|
|
59010
|
+
*/
|
|
59011
|
+
GetTokenTotalSupplyRequestV0.fromObject = function fromObject(object) {
|
|
59012
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0)
|
|
59013
|
+
return object;
|
|
59014
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0();
|
|
59015
|
+
if (object.tokenId != null)
|
|
59016
|
+
if (typeof object.tokenId === "string")
|
|
59017
|
+
$util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
|
|
59018
|
+
else if (object.tokenId.length >= 0)
|
|
59019
|
+
message.tokenId = object.tokenId;
|
|
59020
|
+
if (object.prove != null)
|
|
59021
|
+
message.prove = Boolean(object.prove);
|
|
59022
|
+
return message;
|
|
59023
|
+
};
|
|
59024
|
+
|
|
59025
|
+
/**
|
|
59026
|
+
* Creates a plain object from a GetTokenTotalSupplyRequestV0 message. Also converts values to other types if specified.
|
|
59027
|
+
* @function toObject
|
|
59028
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
59029
|
+
* @static
|
|
59030
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0} message GetTokenTotalSupplyRequestV0
|
|
59031
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59032
|
+
* @returns {Object.<string,*>} Plain object
|
|
59033
|
+
*/
|
|
59034
|
+
GetTokenTotalSupplyRequestV0.toObject = function toObject(message, options) {
|
|
59035
|
+
if (!options)
|
|
59036
|
+
options = {};
|
|
59037
|
+
var object = {};
|
|
59038
|
+
if (options.defaults) {
|
|
59039
|
+
if (options.bytes === String)
|
|
59040
|
+
object.tokenId = "";
|
|
59041
|
+
else {
|
|
59042
|
+
object.tokenId = [];
|
|
59043
|
+
if (options.bytes !== Array)
|
|
59044
|
+
object.tokenId = $util.newBuffer(object.tokenId);
|
|
59045
|
+
}
|
|
59046
|
+
object.prove = false;
|
|
59047
|
+
}
|
|
59048
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
59049
|
+
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;
|
|
59050
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
59051
|
+
object.prove = message.prove;
|
|
59052
|
+
return object;
|
|
59053
|
+
};
|
|
59054
|
+
|
|
59055
|
+
/**
|
|
59056
|
+
* Converts this GetTokenTotalSupplyRequestV0 to JSON.
|
|
59057
|
+
* @function toJSON
|
|
59058
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0
|
|
59059
|
+
* @instance
|
|
59060
|
+
* @returns {Object.<string,*>} JSON object
|
|
59061
|
+
*/
|
|
59062
|
+
GetTokenTotalSupplyRequestV0.prototype.toJSON = function toJSON() {
|
|
59063
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59064
|
+
};
|
|
59065
|
+
|
|
59066
|
+
return GetTokenTotalSupplyRequestV0;
|
|
59067
|
+
})();
|
|
59068
|
+
|
|
59069
|
+
return GetTokenTotalSupplyRequest;
|
|
59070
|
+
})();
|
|
59071
|
+
|
|
59072
|
+
v0.GetTokenTotalSupplyResponse = (function() {
|
|
59073
|
+
|
|
59074
|
+
/**
|
|
59075
|
+
* Properties of a GetTokenTotalSupplyResponse.
|
|
59076
|
+
* @memberof org.dash.platform.dapi.v0
|
|
59077
|
+
* @interface IGetTokenTotalSupplyResponse
|
|
59078
|
+
* @property {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.IGetTokenTotalSupplyResponseV0|null} [v0] GetTokenTotalSupplyResponse v0
|
|
59079
|
+
*/
|
|
59080
|
+
|
|
59081
|
+
/**
|
|
59082
|
+
* Constructs a new GetTokenTotalSupplyResponse.
|
|
59083
|
+
* @memberof org.dash.platform.dapi.v0
|
|
59084
|
+
* @classdesc Represents a GetTokenTotalSupplyResponse.
|
|
59085
|
+
* @implements IGetTokenTotalSupplyResponse
|
|
59086
|
+
* @constructor
|
|
59087
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenTotalSupplyResponse=} [properties] Properties to set
|
|
59088
|
+
*/
|
|
59089
|
+
function GetTokenTotalSupplyResponse(properties) {
|
|
59090
|
+
if (properties)
|
|
59091
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59092
|
+
if (properties[keys[i]] != null)
|
|
59093
|
+
this[keys[i]] = properties[keys[i]];
|
|
59094
|
+
}
|
|
59095
|
+
|
|
59096
|
+
/**
|
|
59097
|
+
* GetTokenTotalSupplyResponse v0.
|
|
59098
|
+
* @member {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.IGetTokenTotalSupplyResponseV0|null|undefined} v0
|
|
59099
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59100
|
+
* @instance
|
|
59101
|
+
*/
|
|
59102
|
+
GetTokenTotalSupplyResponse.prototype.v0 = null;
|
|
59103
|
+
|
|
59104
|
+
// OneOf field names bound to virtual getters and setters
|
|
59105
|
+
var $oneOfFields;
|
|
59106
|
+
|
|
59107
|
+
/**
|
|
59108
|
+
* GetTokenTotalSupplyResponse version.
|
|
59109
|
+
* @member {"v0"|undefined} version
|
|
59110
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59111
|
+
* @instance
|
|
59112
|
+
*/
|
|
59113
|
+
Object.defineProperty(GetTokenTotalSupplyResponse.prototype, "version", {
|
|
59114
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
59115
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
59116
|
+
});
|
|
59117
|
+
|
|
59118
|
+
/**
|
|
59119
|
+
* Creates a new GetTokenTotalSupplyResponse instance using the specified properties.
|
|
59120
|
+
* @function create
|
|
59121
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59122
|
+
* @static
|
|
59123
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenTotalSupplyResponse=} [properties] Properties to set
|
|
59124
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse} GetTokenTotalSupplyResponse instance
|
|
59125
|
+
*/
|
|
59126
|
+
GetTokenTotalSupplyResponse.create = function create(properties) {
|
|
59127
|
+
return new GetTokenTotalSupplyResponse(properties);
|
|
59128
|
+
};
|
|
59129
|
+
|
|
59130
|
+
/**
|
|
59131
|
+
* Encodes the specified GetTokenTotalSupplyResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.verify|verify} messages.
|
|
59132
|
+
* @function encode
|
|
59133
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59134
|
+
* @static
|
|
59135
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenTotalSupplyResponse} message GetTokenTotalSupplyResponse message or plain object to encode
|
|
59136
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59137
|
+
* @returns {$protobuf.Writer} Writer
|
|
59138
|
+
*/
|
|
59139
|
+
GetTokenTotalSupplyResponse.encode = function encode(message, writer) {
|
|
59140
|
+
if (!writer)
|
|
59141
|
+
writer = $Writer.create();
|
|
59142
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
59143
|
+
$root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
59144
|
+
return writer;
|
|
59145
|
+
};
|
|
59146
|
+
|
|
59147
|
+
/**
|
|
59148
|
+
* Encodes the specified GetTokenTotalSupplyResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.verify|verify} messages.
|
|
59149
|
+
* @function encodeDelimited
|
|
59150
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59151
|
+
* @static
|
|
59152
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenTotalSupplyResponse} message GetTokenTotalSupplyResponse message or plain object to encode
|
|
59153
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59154
|
+
* @returns {$protobuf.Writer} Writer
|
|
59155
|
+
*/
|
|
59156
|
+
GetTokenTotalSupplyResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59157
|
+
return this.encode(message, writer).ldelim();
|
|
59158
|
+
};
|
|
59159
|
+
|
|
59160
|
+
/**
|
|
59161
|
+
* Decodes a GetTokenTotalSupplyResponse message from the specified reader or buffer.
|
|
59162
|
+
* @function decode
|
|
59163
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59164
|
+
* @static
|
|
59165
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59166
|
+
* @param {number} [length] Message length if known beforehand
|
|
59167
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse} GetTokenTotalSupplyResponse
|
|
59168
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59169
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59170
|
+
*/
|
|
59171
|
+
GetTokenTotalSupplyResponse.decode = function decode(reader, length) {
|
|
59172
|
+
if (!(reader instanceof $Reader))
|
|
59173
|
+
reader = $Reader.create(reader);
|
|
59174
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse();
|
|
59175
|
+
while (reader.pos < end) {
|
|
59176
|
+
var tag = reader.uint32();
|
|
59177
|
+
switch (tag >>> 3) {
|
|
59178
|
+
case 1:
|
|
59179
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.decode(reader, reader.uint32());
|
|
59180
|
+
break;
|
|
59181
|
+
default:
|
|
59182
|
+
reader.skipType(tag & 7);
|
|
59183
|
+
break;
|
|
59184
|
+
}
|
|
59185
|
+
}
|
|
59186
|
+
return message;
|
|
59187
|
+
};
|
|
59188
|
+
|
|
59189
|
+
/**
|
|
59190
|
+
* Decodes a GetTokenTotalSupplyResponse message from the specified reader or buffer, length delimited.
|
|
59191
|
+
* @function decodeDelimited
|
|
59192
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59193
|
+
* @static
|
|
59194
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59195
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse} GetTokenTotalSupplyResponse
|
|
59196
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59197
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59198
|
+
*/
|
|
59199
|
+
GetTokenTotalSupplyResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
59200
|
+
if (!(reader instanceof $Reader))
|
|
59201
|
+
reader = new $Reader(reader);
|
|
59202
|
+
return this.decode(reader, reader.uint32());
|
|
59203
|
+
};
|
|
59204
|
+
|
|
59205
|
+
/**
|
|
59206
|
+
* Verifies a GetTokenTotalSupplyResponse message.
|
|
59207
|
+
* @function verify
|
|
59208
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59209
|
+
* @static
|
|
59210
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59211
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59212
|
+
*/
|
|
59213
|
+
GetTokenTotalSupplyResponse.verify = function verify(message) {
|
|
59214
|
+
if (typeof message !== "object" || message === null)
|
|
59215
|
+
return "object expected";
|
|
59216
|
+
var properties = {};
|
|
59217
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
59218
|
+
properties.version = 1;
|
|
59219
|
+
{
|
|
59220
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.verify(message.v0);
|
|
59221
|
+
if (error)
|
|
59222
|
+
return "v0." + error;
|
|
59223
|
+
}
|
|
59224
|
+
}
|
|
59225
|
+
return null;
|
|
59226
|
+
};
|
|
59227
|
+
|
|
59228
|
+
/**
|
|
59229
|
+
* Creates a GetTokenTotalSupplyResponse message from a plain object. Also converts values to their respective internal types.
|
|
59230
|
+
* @function fromObject
|
|
59231
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59232
|
+
* @static
|
|
59233
|
+
* @param {Object.<string,*>} object Plain object
|
|
59234
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse} GetTokenTotalSupplyResponse
|
|
59235
|
+
*/
|
|
59236
|
+
GetTokenTotalSupplyResponse.fromObject = function fromObject(object) {
|
|
59237
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse)
|
|
59238
|
+
return object;
|
|
59239
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse();
|
|
59240
|
+
if (object.v0 != null) {
|
|
59241
|
+
if (typeof object.v0 !== "object")
|
|
59242
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.v0: object expected");
|
|
59243
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.fromObject(object.v0);
|
|
59244
|
+
}
|
|
59245
|
+
return message;
|
|
59246
|
+
};
|
|
59247
|
+
|
|
59248
|
+
/**
|
|
59249
|
+
* Creates a plain object from a GetTokenTotalSupplyResponse message. Also converts values to other types if specified.
|
|
59250
|
+
* @function toObject
|
|
59251
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59252
|
+
* @static
|
|
59253
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse} message GetTokenTotalSupplyResponse
|
|
59254
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59255
|
+
* @returns {Object.<string,*>} Plain object
|
|
59256
|
+
*/
|
|
59257
|
+
GetTokenTotalSupplyResponse.toObject = function toObject(message, options) {
|
|
59258
|
+
if (!options)
|
|
59259
|
+
options = {};
|
|
59260
|
+
var object = {};
|
|
59261
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
59262
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.toObject(message.v0, options);
|
|
59263
|
+
if (options.oneofs)
|
|
59264
|
+
object.version = "v0";
|
|
59265
|
+
}
|
|
59266
|
+
return object;
|
|
59267
|
+
};
|
|
59268
|
+
|
|
59269
|
+
/**
|
|
59270
|
+
* Converts this GetTokenTotalSupplyResponse to JSON.
|
|
59271
|
+
* @function toJSON
|
|
59272
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59273
|
+
* @instance
|
|
59274
|
+
* @returns {Object.<string,*>} JSON object
|
|
59275
|
+
*/
|
|
59276
|
+
GetTokenTotalSupplyResponse.prototype.toJSON = function toJSON() {
|
|
59277
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59278
|
+
};
|
|
59279
|
+
|
|
59280
|
+
GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0 = (function() {
|
|
59281
|
+
|
|
59282
|
+
/**
|
|
59283
|
+
* Properties of a GetTokenTotalSupplyResponseV0.
|
|
59284
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59285
|
+
* @interface IGetTokenTotalSupplyResponseV0
|
|
59286
|
+
* @property {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.ITokenTotalSupplyEntry|null} [tokenTotalSupply] GetTokenTotalSupplyResponseV0 tokenTotalSupply
|
|
59287
|
+
* @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetTokenTotalSupplyResponseV0 proof
|
|
59288
|
+
* @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetTokenTotalSupplyResponseV0 metadata
|
|
59289
|
+
*/
|
|
59290
|
+
|
|
59291
|
+
/**
|
|
59292
|
+
* Constructs a new GetTokenTotalSupplyResponseV0.
|
|
59293
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse
|
|
59294
|
+
* @classdesc Represents a GetTokenTotalSupplyResponseV0.
|
|
59295
|
+
* @implements IGetTokenTotalSupplyResponseV0
|
|
59296
|
+
* @constructor
|
|
59297
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.IGetTokenTotalSupplyResponseV0=} [properties] Properties to set
|
|
59298
|
+
*/
|
|
59299
|
+
function GetTokenTotalSupplyResponseV0(properties) {
|
|
59300
|
+
if (properties)
|
|
59301
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59302
|
+
if (properties[keys[i]] != null)
|
|
59303
|
+
this[keys[i]] = properties[keys[i]];
|
|
59304
|
+
}
|
|
59305
|
+
|
|
59306
|
+
/**
|
|
59307
|
+
* GetTokenTotalSupplyResponseV0 tokenTotalSupply.
|
|
59308
|
+
* @member {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.ITokenTotalSupplyEntry|null|undefined} tokenTotalSupply
|
|
59309
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59310
|
+
* @instance
|
|
59311
|
+
*/
|
|
59312
|
+
GetTokenTotalSupplyResponseV0.prototype.tokenTotalSupply = null;
|
|
59313
|
+
|
|
59314
|
+
/**
|
|
59315
|
+
* GetTokenTotalSupplyResponseV0 proof.
|
|
59316
|
+
* @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
|
|
59317
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59318
|
+
* @instance
|
|
59319
|
+
*/
|
|
59320
|
+
GetTokenTotalSupplyResponseV0.prototype.proof = null;
|
|
59321
|
+
|
|
59322
|
+
/**
|
|
59323
|
+
* GetTokenTotalSupplyResponseV0 metadata.
|
|
59324
|
+
* @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
|
|
59325
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59326
|
+
* @instance
|
|
59327
|
+
*/
|
|
59328
|
+
GetTokenTotalSupplyResponseV0.prototype.metadata = null;
|
|
59329
|
+
|
|
59330
|
+
// OneOf field names bound to virtual getters and setters
|
|
59331
|
+
var $oneOfFields;
|
|
59332
|
+
|
|
59333
|
+
/**
|
|
59334
|
+
* GetTokenTotalSupplyResponseV0 result.
|
|
59335
|
+
* @member {"tokenTotalSupply"|"proof"|undefined} result
|
|
59336
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59337
|
+
* @instance
|
|
59338
|
+
*/
|
|
59339
|
+
Object.defineProperty(GetTokenTotalSupplyResponseV0.prototype, "result", {
|
|
59340
|
+
get: $util.oneOfGetter($oneOfFields = ["tokenTotalSupply", "proof"]),
|
|
59341
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
59342
|
+
});
|
|
59343
|
+
|
|
59344
|
+
/**
|
|
59345
|
+
* Creates a new GetTokenTotalSupplyResponseV0 instance using the specified properties.
|
|
59346
|
+
* @function create
|
|
59347
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59348
|
+
* @static
|
|
59349
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.IGetTokenTotalSupplyResponseV0=} [properties] Properties to set
|
|
59350
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0} GetTokenTotalSupplyResponseV0 instance
|
|
59351
|
+
*/
|
|
59352
|
+
GetTokenTotalSupplyResponseV0.create = function create(properties) {
|
|
59353
|
+
return new GetTokenTotalSupplyResponseV0(properties);
|
|
59354
|
+
};
|
|
59355
|
+
|
|
59356
|
+
/**
|
|
59357
|
+
* Encodes the specified GetTokenTotalSupplyResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.verify|verify} messages.
|
|
59358
|
+
* @function encode
|
|
59359
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59360
|
+
* @static
|
|
59361
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.IGetTokenTotalSupplyResponseV0} message GetTokenTotalSupplyResponseV0 message or plain object to encode
|
|
59362
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59363
|
+
* @returns {$protobuf.Writer} Writer
|
|
59364
|
+
*/
|
|
59365
|
+
GetTokenTotalSupplyResponseV0.encode = function encode(message, writer) {
|
|
59366
|
+
if (!writer)
|
|
59367
|
+
writer = $Writer.create();
|
|
59368
|
+
if (message.tokenTotalSupply != null && Object.hasOwnProperty.call(message, "tokenTotalSupply"))
|
|
59369
|
+
$root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.TokenTotalSupplyEntry.encode(message.tokenTotalSupply, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
59370
|
+
if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
|
|
59371
|
+
$root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
59372
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
59373
|
+
$root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
59374
|
+
return writer;
|
|
59375
|
+
};
|
|
59376
|
+
|
|
59377
|
+
/**
|
|
59378
|
+
* Encodes the specified GetTokenTotalSupplyResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.verify|verify} messages.
|
|
59379
|
+
* @function encodeDelimited
|
|
59380
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59381
|
+
* @static
|
|
59382
|
+
* @param {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.IGetTokenTotalSupplyResponseV0} message GetTokenTotalSupplyResponseV0 message or plain object to encode
|
|
59383
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59384
|
+
* @returns {$protobuf.Writer} Writer
|
|
59385
|
+
*/
|
|
59386
|
+
GetTokenTotalSupplyResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59387
|
+
return this.encode(message, writer).ldelim();
|
|
59388
|
+
};
|
|
59389
|
+
|
|
59390
|
+
/**
|
|
59391
|
+
* Decodes a GetTokenTotalSupplyResponseV0 message from the specified reader or buffer.
|
|
59392
|
+
* @function decode
|
|
59393
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59394
|
+
* @static
|
|
59395
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59396
|
+
* @param {number} [length] Message length if known beforehand
|
|
59397
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0} GetTokenTotalSupplyResponseV0
|
|
59398
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59399
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59400
|
+
*/
|
|
59401
|
+
GetTokenTotalSupplyResponseV0.decode = function decode(reader, length) {
|
|
59402
|
+
if (!(reader instanceof $Reader))
|
|
59403
|
+
reader = $Reader.create(reader);
|
|
59404
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0();
|
|
59405
|
+
while (reader.pos < end) {
|
|
59406
|
+
var tag = reader.uint32();
|
|
59407
|
+
switch (tag >>> 3) {
|
|
59408
|
+
case 1:
|
|
59409
|
+
message.tokenTotalSupply = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.TokenTotalSupplyEntry.decode(reader, reader.uint32());
|
|
59410
|
+
break;
|
|
59411
|
+
case 2:
|
|
59412
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
|
|
59413
|
+
break;
|
|
59414
|
+
case 3:
|
|
59415
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
|
|
59416
|
+
break;
|
|
59417
|
+
default:
|
|
59418
|
+
reader.skipType(tag & 7);
|
|
59419
|
+
break;
|
|
59420
|
+
}
|
|
59421
|
+
}
|
|
59422
|
+
return message;
|
|
59423
|
+
};
|
|
59424
|
+
|
|
59425
|
+
/**
|
|
59426
|
+
* Decodes a GetTokenTotalSupplyResponseV0 message from the specified reader or buffer, length delimited.
|
|
59427
|
+
* @function decodeDelimited
|
|
59428
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59429
|
+
* @static
|
|
59430
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59431
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0} GetTokenTotalSupplyResponseV0
|
|
59432
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59433
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59434
|
+
*/
|
|
59435
|
+
GetTokenTotalSupplyResponseV0.decodeDelimited = function decodeDelimited(reader) {
|
|
59436
|
+
if (!(reader instanceof $Reader))
|
|
59437
|
+
reader = new $Reader(reader);
|
|
59438
|
+
return this.decode(reader, reader.uint32());
|
|
59439
|
+
};
|
|
59440
|
+
|
|
59441
|
+
/**
|
|
59442
|
+
* Verifies a GetTokenTotalSupplyResponseV0 message.
|
|
59443
|
+
* @function verify
|
|
59444
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0
|
|
59445
|
+
* @static
|
|
59446
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59447
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59448
|
+
*/
|
|
59449
|
+
GetTokenTotalSupplyResponseV0.verify = function verify(message) {
|
|
59450
|
+
if (typeof message !== "object" || message === null)
|
|
59451
|
+
return "object expected";
|
|
59452
|
+
var properties = {};
|
|
59453
|
+
if (message.tokenTotalSupply != null && message.hasOwnProperty("tokenTotalSupply")) {
|
|
59454
|
+
properties.result = 1;
|
|
59455
|
+
{
|
|
59456
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.TokenTotalSupplyEntry.verify(message.tokenTotalSupply);
|
|
59457
|
+
if (error)
|
|
59458
|
+
return "tokenTotalSupply." + error;
|
|
57923
59459
|
}
|
|
57924
59460
|
}
|
|
57925
59461
|
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
@@ -63227,6 +64763,7 @@ $root.org = (function() {
|
|
|
63227
64763
|
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0
|
|
63228
64764
|
* @interface IBurnEvent
|
|
63229
64765
|
* @property {number|Long|null} [amount] BurnEvent amount
|
|
64766
|
+
* @property {Uint8Array|null} [burnFromId] BurnEvent burnFromId
|
|
63230
64767
|
* @property {string|null} [publicNote] BurnEvent publicNote
|
|
63231
64768
|
*/
|
|
63232
64769
|
|
|
@@ -63253,6 +64790,14 @@ $root.org = (function() {
|
|
|
63253
64790
|
*/
|
|
63254
64791
|
BurnEvent.prototype.amount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
63255
64792
|
|
|
64793
|
+
/**
|
|
64794
|
+
* BurnEvent burnFromId.
|
|
64795
|
+
* @member {Uint8Array} burnFromId
|
|
64796
|
+
* @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnEvent
|
|
64797
|
+
* @instance
|
|
64798
|
+
*/
|
|
64799
|
+
BurnEvent.prototype.burnFromId = $util.newBuffer([]);
|
|
64800
|
+
|
|
63256
64801
|
/**
|
|
63257
64802
|
* BurnEvent publicNote.
|
|
63258
64803
|
* @member {string} publicNote
|
|
@@ -63287,8 +64832,10 @@ $root.org = (function() {
|
|
|
63287
64832
|
writer = $Writer.create();
|
|
63288
64833
|
if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
|
|
63289
64834
|
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.amount);
|
|
64835
|
+
if (message.burnFromId != null && Object.hasOwnProperty.call(message, "burnFromId"))
|
|
64836
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.burnFromId);
|
|
63290
64837
|
if (message.publicNote != null && Object.hasOwnProperty.call(message, "publicNote"))
|
|
63291
|
-
writer.uint32(/* id
|
|
64838
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.publicNote);
|
|
63292
64839
|
return writer;
|
|
63293
64840
|
};
|
|
63294
64841
|
|
|
@@ -63327,6 +64874,9 @@ $root.org = (function() {
|
|
|
63327
64874
|
message.amount = reader.uint64();
|
|
63328
64875
|
break;
|
|
63329
64876
|
case 2:
|
|
64877
|
+
message.burnFromId = reader.bytes();
|
|
64878
|
+
break;
|
|
64879
|
+
case 3:
|
|
63330
64880
|
message.publicNote = reader.string();
|
|
63331
64881
|
break;
|
|
63332
64882
|
default:
|
|
@@ -63367,6 +64917,9 @@ $root.org = (function() {
|
|
|
63367
64917
|
if (message.amount != null && message.hasOwnProperty("amount"))
|
|
63368
64918
|
if (!$util.isInteger(message.amount) && !(message.amount && $util.isInteger(message.amount.low) && $util.isInteger(message.amount.high)))
|
|
63369
64919
|
return "amount: integer|Long expected";
|
|
64920
|
+
if (message.burnFromId != null && message.hasOwnProperty("burnFromId"))
|
|
64921
|
+
if (!(message.burnFromId && typeof message.burnFromId.length === "number" || $util.isString(message.burnFromId)))
|
|
64922
|
+
return "burnFromId: buffer expected";
|
|
63370
64923
|
if (message.publicNote != null && message.hasOwnProperty("publicNote"))
|
|
63371
64924
|
if (!$util.isString(message.publicNote))
|
|
63372
64925
|
return "publicNote: string expected";
|
|
@@ -63394,6 +64947,11 @@ $root.org = (function() {
|
|
|
63394
64947
|
message.amount = object.amount;
|
|
63395
64948
|
else if (typeof object.amount === "object")
|
|
63396
64949
|
message.amount = new $util.LongBits(object.amount.low >>> 0, object.amount.high >>> 0).toNumber(true);
|
|
64950
|
+
if (object.burnFromId != null)
|
|
64951
|
+
if (typeof object.burnFromId === "string")
|
|
64952
|
+
$util.base64.decode(object.burnFromId, message.burnFromId = $util.newBuffer($util.base64.length(object.burnFromId)), 0);
|
|
64953
|
+
else if (object.burnFromId.length >= 0)
|
|
64954
|
+
message.burnFromId = object.burnFromId;
|
|
63397
64955
|
if (object.publicNote != null)
|
|
63398
64956
|
message.publicNote = String(object.publicNote);
|
|
63399
64957
|
return message;
|
|
@@ -63418,6 +64976,13 @@ $root.org = (function() {
|
|
|
63418
64976
|
object.amount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
63419
64977
|
} else
|
|
63420
64978
|
object.amount = options.longs === String ? "0" : 0;
|
|
64979
|
+
if (options.bytes === String)
|
|
64980
|
+
object.burnFromId = "";
|
|
64981
|
+
else {
|
|
64982
|
+
object.burnFromId = [];
|
|
64983
|
+
if (options.bytes !== Array)
|
|
64984
|
+
object.burnFromId = $util.newBuffer(object.burnFromId);
|
|
64985
|
+
}
|
|
63421
64986
|
object.publicNote = "";
|
|
63422
64987
|
}
|
|
63423
64988
|
if (message.amount != null && message.hasOwnProperty("amount"))
|
|
@@ -63425,6 +64990,8 @@ $root.org = (function() {
|
|
|
63425
64990
|
object.amount = options.longs === String ? String(message.amount) : message.amount;
|
|
63426
64991
|
else
|
|
63427
64992
|
object.amount = options.longs === String ? $util.Long.prototype.toString.call(message.amount) : options.longs === Number ? new $util.LongBits(message.amount.low >>> 0, message.amount.high >>> 0).toNumber(true) : message.amount;
|
|
64993
|
+
if (message.burnFromId != null && message.hasOwnProperty("burnFromId"))
|
|
64994
|
+
object.burnFromId = options.bytes === String ? $util.base64.encode(message.burnFromId, 0, message.burnFromId.length) : options.bytes === Array ? Array.prototype.slice.call(message.burnFromId) : message.burnFromId;
|
|
63428
64995
|
if (message.publicNote != null && message.hasOwnProperty("publicNote"))
|
|
63429
64996
|
object.publicNote = message.publicNote;
|
|
63430
64997
|
return object;
|