@dashevo/dapi-grpc 2.0.0-rc.12 → 2.0.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/build.rs +4 -2
- package/clients/drive/v0/nodejs/drive_pbjs.js +1318 -152
- package/clients/platform/v0/nodejs/platform_pbjs.js +1318 -152
- package/clients/platform/v0/nodejs/platform_protoc.js +1217 -105
- package/clients/platform/v0/web/platform_pb.d.ts +174 -25
- package/clients/platform/v0/web/platform_pb.js +1217 -105
- 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 +64 -16
|
@@ -1340,6 +1340,39 @@ $root.org = (function() {
|
|
|
1340
1340
|
* @variation 2
|
|
1341
1341
|
*/
|
|
1342
1342
|
|
|
1343
|
+
/**
|
|
1344
|
+
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getTokenContractInfo}.
|
|
1345
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
1346
|
+
* @typedef getTokenContractInfoCallback
|
|
1347
|
+
* @type {function}
|
|
1348
|
+
* @param {Error|null} error Error, if any
|
|
1349
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse} [response] GetTokenContractInfoResponse
|
|
1350
|
+
*/
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* Calls getTokenContractInfo.
|
|
1354
|
+
* @function getTokenContractInfo
|
|
1355
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
1356
|
+
* @instance
|
|
1357
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenContractInfoRequest} request GetTokenContractInfoRequest message or plain object
|
|
1358
|
+
* @param {org.dash.platform.dapi.v0.Platform.getTokenContractInfoCallback} callback Node-style callback called with the error, if any, and GetTokenContractInfoResponse
|
|
1359
|
+
* @returns {undefined}
|
|
1360
|
+
* @variation 1
|
|
1361
|
+
*/
|
|
1362
|
+
Object.defineProperty(Platform.prototype.getTokenContractInfo = function getTokenContractInfo(request, callback) {
|
|
1363
|
+
return this.rpcCall(getTokenContractInfo, $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest, $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse, request, callback);
|
|
1364
|
+
}, "name", { value: "getTokenContractInfo" });
|
|
1365
|
+
|
|
1366
|
+
/**
|
|
1367
|
+
* Calls getTokenContractInfo.
|
|
1368
|
+
* @function getTokenContractInfo
|
|
1369
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
1370
|
+
* @instance
|
|
1371
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenContractInfoRequest} request GetTokenContractInfoRequest message or plain object
|
|
1372
|
+
* @returns {Promise<org.dash.platform.dapi.v0.GetTokenContractInfoResponse>} Promise
|
|
1373
|
+
* @variation 2
|
|
1374
|
+
*/
|
|
1375
|
+
|
|
1343
1376
|
/**
|
|
1344
1377
|
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getTokenPreProgrammedDistributions}.
|
|
1345
1378
|
* @memberof org.dash.platform.dapi.v0.Platform
|
|
@@ -53373,6 +53406,446 @@ $root.org = (function() {
|
|
|
53373
53406
|
return GetTokenStatusesResponse;
|
|
53374
53407
|
})();
|
|
53375
53408
|
|
|
53409
|
+
v0.GetTokenDirectPurchasePricesRequest = (function() {
|
|
53410
|
+
|
|
53411
|
+
/**
|
|
53412
|
+
* Properties of a GetTokenDirectPurchasePricesRequest.
|
|
53413
|
+
* @memberof org.dash.platform.dapi.v0
|
|
53414
|
+
* @interface IGetTokenDirectPurchasePricesRequest
|
|
53415
|
+
* @property {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0|null} [v0] GetTokenDirectPurchasePricesRequest v0
|
|
53416
|
+
*/
|
|
53417
|
+
|
|
53418
|
+
/**
|
|
53419
|
+
* Constructs a new GetTokenDirectPurchasePricesRequest.
|
|
53420
|
+
* @memberof org.dash.platform.dapi.v0
|
|
53421
|
+
* @classdesc Represents a GetTokenDirectPurchasePricesRequest.
|
|
53422
|
+
* @implements IGetTokenDirectPurchasePricesRequest
|
|
53423
|
+
* @constructor
|
|
53424
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenDirectPurchasePricesRequest=} [properties] Properties to set
|
|
53425
|
+
*/
|
|
53426
|
+
function GetTokenDirectPurchasePricesRequest(properties) {
|
|
53427
|
+
if (properties)
|
|
53428
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
53429
|
+
if (properties[keys[i]] != null)
|
|
53430
|
+
this[keys[i]] = properties[keys[i]];
|
|
53431
|
+
}
|
|
53432
|
+
|
|
53433
|
+
/**
|
|
53434
|
+
* GetTokenDirectPurchasePricesRequest v0.
|
|
53435
|
+
* @member {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0|null|undefined} v0
|
|
53436
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
|
|
53437
|
+
* @instance
|
|
53438
|
+
*/
|
|
53439
|
+
GetTokenDirectPurchasePricesRequest.prototype.v0 = null;
|
|
53440
|
+
|
|
53441
|
+
// OneOf field names bound to virtual getters and setters
|
|
53442
|
+
var $oneOfFields;
|
|
53443
|
+
|
|
53444
|
+
/**
|
|
53445
|
+
* GetTokenDirectPurchasePricesRequest version.
|
|
53446
|
+
* @member {"v0"|undefined} version
|
|
53447
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
|
|
53448
|
+
* @instance
|
|
53449
|
+
*/
|
|
53450
|
+
Object.defineProperty(GetTokenDirectPurchasePricesRequest.prototype, "version", {
|
|
53451
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
53452
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
53453
|
+
});
|
|
53454
|
+
|
|
53455
|
+
/**
|
|
53456
|
+
* Creates a new GetTokenDirectPurchasePricesRequest instance using the specified properties.
|
|
53457
|
+
* @function create
|
|
53458
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
|
|
53459
|
+
* @static
|
|
53460
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenDirectPurchasePricesRequest=} [properties] Properties to set
|
|
53461
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} GetTokenDirectPurchasePricesRequest instance
|
|
53462
|
+
*/
|
|
53463
|
+
GetTokenDirectPurchasePricesRequest.create = function create(properties) {
|
|
53464
|
+
return new GetTokenDirectPurchasePricesRequest(properties);
|
|
53465
|
+
};
|
|
53466
|
+
|
|
53467
|
+
/**
|
|
53468
|
+
* Encodes the specified GetTokenDirectPurchasePricesRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.verify|verify} messages.
|
|
53469
|
+
* @function encode
|
|
53470
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
|
|
53471
|
+
* @static
|
|
53472
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenDirectPurchasePricesRequest} message GetTokenDirectPurchasePricesRequest message or plain object to encode
|
|
53473
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53474
|
+
* @returns {$protobuf.Writer} Writer
|
|
53475
|
+
*/
|
|
53476
|
+
GetTokenDirectPurchasePricesRequest.encode = function encode(message, writer) {
|
|
53477
|
+
if (!writer)
|
|
53478
|
+
writer = $Writer.create();
|
|
53479
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
53480
|
+
$root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
53481
|
+
return writer;
|
|
53482
|
+
};
|
|
53483
|
+
|
|
53484
|
+
/**
|
|
53485
|
+
* Encodes the specified GetTokenDirectPurchasePricesRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.verify|verify} messages.
|
|
53486
|
+
* @function encodeDelimited
|
|
53487
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
|
|
53488
|
+
* @static
|
|
53489
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenDirectPurchasePricesRequest} message GetTokenDirectPurchasePricesRequest message or plain object to encode
|
|
53490
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53491
|
+
* @returns {$protobuf.Writer} Writer
|
|
53492
|
+
*/
|
|
53493
|
+
GetTokenDirectPurchasePricesRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
53494
|
+
return this.encode(message, writer).ldelim();
|
|
53495
|
+
};
|
|
53496
|
+
|
|
53497
|
+
/**
|
|
53498
|
+
* Decodes a GetTokenDirectPurchasePricesRequest message from the specified reader or buffer.
|
|
53499
|
+
* @function decode
|
|
53500
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
|
|
53501
|
+
* @static
|
|
53502
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53503
|
+
* @param {number} [length] Message length if known beforehand
|
|
53504
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} GetTokenDirectPurchasePricesRequest
|
|
53505
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53506
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53507
|
+
*/
|
|
53508
|
+
GetTokenDirectPurchasePricesRequest.decode = function decode(reader, length) {
|
|
53509
|
+
if (!(reader instanceof $Reader))
|
|
53510
|
+
reader = $Reader.create(reader);
|
|
53511
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest();
|
|
53512
|
+
while (reader.pos < end) {
|
|
53513
|
+
var tag = reader.uint32();
|
|
53514
|
+
switch (tag >>> 3) {
|
|
53515
|
+
case 1:
|
|
53516
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.decode(reader, reader.uint32());
|
|
53517
|
+
break;
|
|
53518
|
+
default:
|
|
53519
|
+
reader.skipType(tag & 7);
|
|
53520
|
+
break;
|
|
53521
|
+
}
|
|
53522
|
+
}
|
|
53523
|
+
return message;
|
|
53524
|
+
};
|
|
53525
|
+
|
|
53526
|
+
/**
|
|
53527
|
+
* Decodes a GetTokenDirectPurchasePricesRequest message from the specified reader or buffer, length delimited.
|
|
53528
|
+
* @function decodeDelimited
|
|
53529
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
|
|
53530
|
+
* @static
|
|
53531
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53532
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} GetTokenDirectPurchasePricesRequest
|
|
53533
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53534
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53535
|
+
*/
|
|
53536
|
+
GetTokenDirectPurchasePricesRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
53537
|
+
if (!(reader instanceof $Reader))
|
|
53538
|
+
reader = new $Reader(reader);
|
|
53539
|
+
return this.decode(reader, reader.uint32());
|
|
53540
|
+
};
|
|
53541
|
+
|
|
53542
|
+
/**
|
|
53543
|
+
* Verifies a GetTokenDirectPurchasePricesRequest message.
|
|
53544
|
+
* @function verify
|
|
53545
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
|
|
53546
|
+
* @static
|
|
53547
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
53548
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
53549
|
+
*/
|
|
53550
|
+
GetTokenDirectPurchasePricesRequest.verify = function verify(message) {
|
|
53551
|
+
if (typeof message !== "object" || message === null)
|
|
53552
|
+
return "object expected";
|
|
53553
|
+
var properties = {};
|
|
53554
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
53555
|
+
properties.version = 1;
|
|
53556
|
+
{
|
|
53557
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.verify(message.v0);
|
|
53558
|
+
if (error)
|
|
53559
|
+
return "v0." + error;
|
|
53560
|
+
}
|
|
53561
|
+
}
|
|
53562
|
+
return null;
|
|
53563
|
+
};
|
|
53564
|
+
|
|
53565
|
+
/**
|
|
53566
|
+
* Creates a GetTokenDirectPurchasePricesRequest message from a plain object. Also converts values to their respective internal types.
|
|
53567
|
+
* @function fromObject
|
|
53568
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
|
|
53569
|
+
* @static
|
|
53570
|
+
* @param {Object.<string,*>} object Plain object
|
|
53571
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} GetTokenDirectPurchasePricesRequest
|
|
53572
|
+
*/
|
|
53573
|
+
GetTokenDirectPurchasePricesRequest.fromObject = function fromObject(object) {
|
|
53574
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest)
|
|
53575
|
+
return object;
|
|
53576
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest();
|
|
53577
|
+
if (object.v0 != null) {
|
|
53578
|
+
if (typeof object.v0 !== "object")
|
|
53579
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.v0: object expected");
|
|
53580
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.fromObject(object.v0);
|
|
53581
|
+
}
|
|
53582
|
+
return message;
|
|
53583
|
+
};
|
|
53584
|
+
|
|
53585
|
+
/**
|
|
53586
|
+
* Creates a plain object from a GetTokenDirectPurchasePricesRequest message. Also converts values to other types if specified.
|
|
53587
|
+
* @function toObject
|
|
53588
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
|
|
53589
|
+
* @static
|
|
53590
|
+
* @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} message GetTokenDirectPurchasePricesRequest
|
|
53591
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
53592
|
+
* @returns {Object.<string,*>} Plain object
|
|
53593
|
+
*/
|
|
53594
|
+
GetTokenDirectPurchasePricesRequest.toObject = function toObject(message, options) {
|
|
53595
|
+
if (!options)
|
|
53596
|
+
options = {};
|
|
53597
|
+
var object = {};
|
|
53598
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
53599
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.toObject(message.v0, options);
|
|
53600
|
+
if (options.oneofs)
|
|
53601
|
+
object.version = "v0";
|
|
53602
|
+
}
|
|
53603
|
+
return object;
|
|
53604
|
+
};
|
|
53605
|
+
|
|
53606
|
+
/**
|
|
53607
|
+
* Converts this GetTokenDirectPurchasePricesRequest to JSON.
|
|
53608
|
+
* @function toJSON
|
|
53609
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
|
|
53610
|
+
* @instance
|
|
53611
|
+
* @returns {Object.<string,*>} JSON object
|
|
53612
|
+
*/
|
|
53613
|
+
GetTokenDirectPurchasePricesRequest.prototype.toJSON = function toJSON() {
|
|
53614
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
53615
|
+
};
|
|
53616
|
+
|
|
53617
|
+
GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0 = (function() {
|
|
53618
|
+
|
|
53619
|
+
/**
|
|
53620
|
+
* Properties of a GetTokenDirectPurchasePricesRequestV0.
|
|
53621
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
|
|
53622
|
+
* @interface IGetTokenDirectPurchasePricesRequestV0
|
|
53623
|
+
* @property {Array.<Uint8Array>|null} [tokenIds] GetTokenDirectPurchasePricesRequestV0 tokenIds
|
|
53624
|
+
* @property {boolean|null} [prove] GetTokenDirectPurchasePricesRequestV0 prove
|
|
53625
|
+
*/
|
|
53626
|
+
|
|
53627
|
+
/**
|
|
53628
|
+
* Constructs a new GetTokenDirectPurchasePricesRequestV0.
|
|
53629
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
|
|
53630
|
+
* @classdesc Represents a GetTokenDirectPurchasePricesRequestV0.
|
|
53631
|
+
* @implements IGetTokenDirectPurchasePricesRequestV0
|
|
53632
|
+
* @constructor
|
|
53633
|
+
* @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0=} [properties] Properties to set
|
|
53634
|
+
*/
|
|
53635
|
+
function GetTokenDirectPurchasePricesRequestV0(properties) {
|
|
53636
|
+
this.tokenIds = [];
|
|
53637
|
+
if (properties)
|
|
53638
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
53639
|
+
if (properties[keys[i]] != null)
|
|
53640
|
+
this[keys[i]] = properties[keys[i]];
|
|
53641
|
+
}
|
|
53642
|
+
|
|
53643
|
+
/**
|
|
53644
|
+
* GetTokenDirectPurchasePricesRequestV0 tokenIds.
|
|
53645
|
+
* @member {Array.<Uint8Array>} tokenIds
|
|
53646
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
|
|
53647
|
+
* @instance
|
|
53648
|
+
*/
|
|
53649
|
+
GetTokenDirectPurchasePricesRequestV0.prototype.tokenIds = $util.emptyArray;
|
|
53650
|
+
|
|
53651
|
+
/**
|
|
53652
|
+
* GetTokenDirectPurchasePricesRequestV0 prove.
|
|
53653
|
+
* @member {boolean} prove
|
|
53654
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
|
|
53655
|
+
* @instance
|
|
53656
|
+
*/
|
|
53657
|
+
GetTokenDirectPurchasePricesRequestV0.prototype.prove = false;
|
|
53658
|
+
|
|
53659
|
+
/**
|
|
53660
|
+
* Creates a new GetTokenDirectPurchasePricesRequestV0 instance using the specified properties.
|
|
53661
|
+
* @function create
|
|
53662
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
|
|
53663
|
+
* @static
|
|
53664
|
+
* @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0=} [properties] Properties to set
|
|
53665
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} GetTokenDirectPurchasePricesRequestV0 instance
|
|
53666
|
+
*/
|
|
53667
|
+
GetTokenDirectPurchasePricesRequestV0.create = function create(properties) {
|
|
53668
|
+
return new GetTokenDirectPurchasePricesRequestV0(properties);
|
|
53669
|
+
};
|
|
53670
|
+
|
|
53671
|
+
/**
|
|
53672
|
+
* Encodes the specified GetTokenDirectPurchasePricesRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.verify|verify} messages.
|
|
53673
|
+
* @function encode
|
|
53674
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
|
|
53675
|
+
* @static
|
|
53676
|
+
* @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0} message GetTokenDirectPurchasePricesRequestV0 message or plain object to encode
|
|
53677
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53678
|
+
* @returns {$protobuf.Writer} Writer
|
|
53679
|
+
*/
|
|
53680
|
+
GetTokenDirectPurchasePricesRequestV0.encode = function encode(message, writer) {
|
|
53681
|
+
if (!writer)
|
|
53682
|
+
writer = $Writer.create();
|
|
53683
|
+
if (message.tokenIds != null && message.tokenIds.length)
|
|
53684
|
+
for (var i = 0; i < message.tokenIds.length; ++i)
|
|
53685
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tokenIds[i]);
|
|
53686
|
+
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
53687
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
|
|
53688
|
+
return writer;
|
|
53689
|
+
};
|
|
53690
|
+
|
|
53691
|
+
/**
|
|
53692
|
+
* Encodes the specified GetTokenDirectPurchasePricesRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.verify|verify} messages.
|
|
53693
|
+
* @function encodeDelimited
|
|
53694
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
|
|
53695
|
+
* @static
|
|
53696
|
+
* @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0} message GetTokenDirectPurchasePricesRequestV0 message or plain object to encode
|
|
53697
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53698
|
+
* @returns {$protobuf.Writer} Writer
|
|
53699
|
+
*/
|
|
53700
|
+
GetTokenDirectPurchasePricesRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
53701
|
+
return this.encode(message, writer).ldelim();
|
|
53702
|
+
};
|
|
53703
|
+
|
|
53704
|
+
/**
|
|
53705
|
+
* Decodes a GetTokenDirectPurchasePricesRequestV0 message from the specified reader or buffer.
|
|
53706
|
+
* @function decode
|
|
53707
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
|
|
53708
|
+
* @static
|
|
53709
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53710
|
+
* @param {number} [length] Message length if known beforehand
|
|
53711
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} GetTokenDirectPurchasePricesRequestV0
|
|
53712
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53713
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53714
|
+
*/
|
|
53715
|
+
GetTokenDirectPurchasePricesRequestV0.decode = function decode(reader, length) {
|
|
53716
|
+
if (!(reader instanceof $Reader))
|
|
53717
|
+
reader = $Reader.create(reader);
|
|
53718
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0();
|
|
53719
|
+
while (reader.pos < end) {
|
|
53720
|
+
var tag = reader.uint32();
|
|
53721
|
+
switch (tag >>> 3) {
|
|
53722
|
+
case 1:
|
|
53723
|
+
if (!(message.tokenIds && message.tokenIds.length))
|
|
53724
|
+
message.tokenIds = [];
|
|
53725
|
+
message.tokenIds.push(reader.bytes());
|
|
53726
|
+
break;
|
|
53727
|
+
case 2:
|
|
53728
|
+
message.prove = reader.bool();
|
|
53729
|
+
break;
|
|
53730
|
+
default:
|
|
53731
|
+
reader.skipType(tag & 7);
|
|
53732
|
+
break;
|
|
53733
|
+
}
|
|
53734
|
+
}
|
|
53735
|
+
return message;
|
|
53736
|
+
};
|
|
53737
|
+
|
|
53738
|
+
/**
|
|
53739
|
+
* Decodes a GetTokenDirectPurchasePricesRequestV0 message from the specified reader or buffer, length delimited.
|
|
53740
|
+
* @function decodeDelimited
|
|
53741
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
|
|
53742
|
+
* @static
|
|
53743
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53744
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} GetTokenDirectPurchasePricesRequestV0
|
|
53745
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53746
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53747
|
+
*/
|
|
53748
|
+
GetTokenDirectPurchasePricesRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
53749
|
+
if (!(reader instanceof $Reader))
|
|
53750
|
+
reader = new $Reader(reader);
|
|
53751
|
+
return this.decode(reader, reader.uint32());
|
|
53752
|
+
};
|
|
53753
|
+
|
|
53754
|
+
/**
|
|
53755
|
+
* Verifies a GetTokenDirectPurchasePricesRequestV0 message.
|
|
53756
|
+
* @function verify
|
|
53757
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
|
|
53758
|
+
* @static
|
|
53759
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
53760
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
53761
|
+
*/
|
|
53762
|
+
GetTokenDirectPurchasePricesRequestV0.verify = function verify(message) {
|
|
53763
|
+
if (typeof message !== "object" || message === null)
|
|
53764
|
+
return "object expected";
|
|
53765
|
+
if (message.tokenIds != null && message.hasOwnProperty("tokenIds")) {
|
|
53766
|
+
if (!Array.isArray(message.tokenIds))
|
|
53767
|
+
return "tokenIds: array expected";
|
|
53768
|
+
for (var i = 0; i < message.tokenIds.length; ++i)
|
|
53769
|
+
if (!(message.tokenIds[i] && typeof message.tokenIds[i].length === "number" || $util.isString(message.tokenIds[i])))
|
|
53770
|
+
return "tokenIds: buffer[] expected";
|
|
53771
|
+
}
|
|
53772
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
53773
|
+
if (typeof message.prove !== "boolean")
|
|
53774
|
+
return "prove: boolean expected";
|
|
53775
|
+
return null;
|
|
53776
|
+
};
|
|
53777
|
+
|
|
53778
|
+
/**
|
|
53779
|
+
* Creates a GetTokenDirectPurchasePricesRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
53780
|
+
* @function fromObject
|
|
53781
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
|
|
53782
|
+
* @static
|
|
53783
|
+
* @param {Object.<string,*>} object Plain object
|
|
53784
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} GetTokenDirectPurchasePricesRequestV0
|
|
53785
|
+
*/
|
|
53786
|
+
GetTokenDirectPurchasePricesRequestV0.fromObject = function fromObject(object) {
|
|
53787
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0)
|
|
53788
|
+
return object;
|
|
53789
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0();
|
|
53790
|
+
if (object.tokenIds) {
|
|
53791
|
+
if (!Array.isArray(object.tokenIds))
|
|
53792
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.tokenIds: array expected");
|
|
53793
|
+
message.tokenIds = [];
|
|
53794
|
+
for (var i = 0; i < object.tokenIds.length; ++i)
|
|
53795
|
+
if (typeof object.tokenIds[i] === "string")
|
|
53796
|
+
$util.base64.decode(object.tokenIds[i], message.tokenIds[i] = $util.newBuffer($util.base64.length(object.tokenIds[i])), 0);
|
|
53797
|
+
else if (object.tokenIds[i].length >= 0)
|
|
53798
|
+
message.tokenIds[i] = object.tokenIds[i];
|
|
53799
|
+
}
|
|
53800
|
+
if (object.prove != null)
|
|
53801
|
+
message.prove = Boolean(object.prove);
|
|
53802
|
+
return message;
|
|
53803
|
+
};
|
|
53804
|
+
|
|
53805
|
+
/**
|
|
53806
|
+
* Creates a plain object from a GetTokenDirectPurchasePricesRequestV0 message. Also converts values to other types if specified.
|
|
53807
|
+
* @function toObject
|
|
53808
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
|
|
53809
|
+
* @static
|
|
53810
|
+
* @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} message GetTokenDirectPurchasePricesRequestV0
|
|
53811
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
53812
|
+
* @returns {Object.<string,*>} Plain object
|
|
53813
|
+
*/
|
|
53814
|
+
GetTokenDirectPurchasePricesRequestV0.toObject = function toObject(message, options) {
|
|
53815
|
+
if (!options)
|
|
53816
|
+
options = {};
|
|
53817
|
+
var object = {};
|
|
53818
|
+
if (options.arrays || options.defaults)
|
|
53819
|
+
object.tokenIds = [];
|
|
53820
|
+
if (options.defaults)
|
|
53821
|
+
object.prove = false;
|
|
53822
|
+
if (message.tokenIds && message.tokenIds.length) {
|
|
53823
|
+
object.tokenIds = [];
|
|
53824
|
+
for (var j = 0; j < message.tokenIds.length; ++j)
|
|
53825
|
+
object.tokenIds[j] = options.bytes === String ? $util.base64.encode(message.tokenIds[j], 0, message.tokenIds[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenIds[j]) : message.tokenIds[j];
|
|
53826
|
+
}
|
|
53827
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
53828
|
+
object.prove = message.prove;
|
|
53829
|
+
return object;
|
|
53830
|
+
};
|
|
53831
|
+
|
|
53832
|
+
/**
|
|
53833
|
+
* Converts this GetTokenDirectPurchasePricesRequestV0 to JSON.
|
|
53834
|
+
* @function toJSON
|
|
53835
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
|
|
53836
|
+
* @instance
|
|
53837
|
+
* @returns {Object.<string,*>} JSON object
|
|
53838
|
+
*/
|
|
53839
|
+
GetTokenDirectPurchasePricesRequestV0.prototype.toJSON = function toJSON() {
|
|
53840
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
53841
|
+
};
|
|
53842
|
+
|
|
53843
|
+
return GetTokenDirectPurchasePricesRequestV0;
|
|
53844
|
+
})();
|
|
53845
|
+
|
|
53846
|
+
return GetTokenDirectPurchasePricesRequest;
|
|
53847
|
+
})();
|
|
53848
|
+
|
|
53376
53849
|
v0.GetTokenDirectPurchasePricesResponse = (function() {
|
|
53377
53850
|
|
|
53378
53851
|
/**
|
|
@@ -54792,24 +55265,24 @@ $root.org = (function() {
|
|
|
54792
55265
|
return GetTokenDirectPurchasePricesResponse;
|
|
54793
55266
|
})();
|
|
54794
55267
|
|
|
54795
|
-
v0.
|
|
55268
|
+
v0.GetTokenContractInfoRequest = (function() {
|
|
54796
55269
|
|
|
54797
55270
|
/**
|
|
54798
|
-
* Properties of a
|
|
55271
|
+
* Properties of a GetTokenContractInfoRequest.
|
|
54799
55272
|
* @memberof org.dash.platform.dapi.v0
|
|
54800
|
-
* @interface
|
|
54801
|
-
* @property {org.dash.platform.dapi.v0.
|
|
55273
|
+
* @interface IGetTokenContractInfoRequest
|
|
55274
|
+
* @property {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.IGetTokenContractInfoRequestV0|null} [v0] GetTokenContractInfoRequest v0
|
|
54802
55275
|
*/
|
|
54803
55276
|
|
|
54804
55277
|
/**
|
|
54805
|
-
* Constructs a new
|
|
55278
|
+
* Constructs a new GetTokenContractInfoRequest.
|
|
54806
55279
|
* @memberof org.dash.platform.dapi.v0
|
|
54807
|
-
* @classdesc Represents a
|
|
54808
|
-
* @implements
|
|
55280
|
+
* @classdesc Represents a GetTokenContractInfoRequest.
|
|
55281
|
+
* @implements IGetTokenContractInfoRequest
|
|
54809
55282
|
* @constructor
|
|
54810
|
-
* @param {org.dash.platform.dapi.v0.
|
|
55283
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenContractInfoRequest=} [properties] Properties to set
|
|
54811
55284
|
*/
|
|
54812
|
-
function
|
|
55285
|
+
function GetTokenContractInfoRequest(properties) {
|
|
54813
55286
|
if (properties)
|
|
54814
55287
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
54815
55288
|
if (properties[keys[i]] != null)
|
|
@@ -54817,89 +55290,89 @@ $root.org = (function() {
|
|
|
54817
55290
|
}
|
|
54818
55291
|
|
|
54819
55292
|
/**
|
|
54820
|
-
*
|
|
54821
|
-
* @member {org.dash.platform.dapi.v0.
|
|
54822
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55293
|
+
* GetTokenContractInfoRequest v0.
|
|
55294
|
+
* @member {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.IGetTokenContractInfoRequestV0|null|undefined} v0
|
|
55295
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
|
|
54823
55296
|
* @instance
|
|
54824
55297
|
*/
|
|
54825
|
-
|
|
55298
|
+
GetTokenContractInfoRequest.prototype.v0 = null;
|
|
54826
55299
|
|
|
54827
55300
|
// OneOf field names bound to virtual getters and setters
|
|
54828
55301
|
var $oneOfFields;
|
|
54829
55302
|
|
|
54830
55303
|
/**
|
|
54831
|
-
*
|
|
55304
|
+
* GetTokenContractInfoRequest version.
|
|
54832
55305
|
* @member {"v0"|undefined} version
|
|
54833
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55306
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
|
|
54834
55307
|
* @instance
|
|
54835
55308
|
*/
|
|
54836
|
-
Object.defineProperty(
|
|
55309
|
+
Object.defineProperty(GetTokenContractInfoRequest.prototype, "version", {
|
|
54837
55310
|
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
54838
55311
|
set: $util.oneOfSetter($oneOfFields)
|
|
54839
55312
|
});
|
|
54840
55313
|
|
|
54841
55314
|
/**
|
|
54842
|
-
* Creates a new
|
|
55315
|
+
* Creates a new GetTokenContractInfoRequest instance using the specified properties.
|
|
54843
55316
|
* @function create
|
|
54844
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55317
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
|
|
54845
55318
|
* @static
|
|
54846
|
-
* @param {org.dash.platform.dapi.v0.
|
|
54847
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
55319
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenContractInfoRequest=} [properties] Properties to set
|
|
55320
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoRequest} GetTokenContractInfoRequest instance
|
|
54848
55321
|
*/
|
|
54849
|
-
|
|
54850
|
-
return new
|
|
55322
|
+
GetTokenContractInfoRequest.create = function create(properties) {
|
|
55323
|
+
return new GetTokenContractInfoRequest(properties);
|
|
54851
55324
|
};
|
|
54852
55325
|
|
|
54853
55326
|
/**
|
|
54854
|
-
* Encodes the specified
|
|
55327
|
+
* Encodes the specified GetTokenContractInfoRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoRequest.verify|verify} messages.
|
|
54855
55328
|
* @function encode
|
|
54856
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55329
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
|
|
54857
55330
|
* @static
|
|
54858
|
-
* @param {org.dash.platform.dapi.v0.
|
|
55331
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenContractInfoRequest} message GetTokenContractInfoRequest message or plain object to encode
|
|
54859
55332
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54860
55333
|
* @returns {$protobuf.Writer} Writer
|
|
54861
55334
|
*/
|
|
54862
|
-
|
|
55335
|
+
GetTokenContractInfoRequest.encode = function encode(message, writer) {
|
|
54863
55336
|
if (!writer)
|
|
54864
55337
|
writer = $Writer.create();
|
|
54865
55338
|
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
54866
|
-
$root.org.dash.platform.dapi.v0.
|
|
55339
|
+
$root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
54867
55340
|
return writer;
|
|
54868
55341
|
};
|
|
54869
55342
|
|
|
54870
55343
|
/**
|
|
54871
|
-
* Encodes the specified
|
|
55344
|
+
* Encodes the specified GetTokenContractInfoRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoRequest.verify|verify} messages.
|
|
54872
55345
|
* @function encodeDelimited
|
|
54873
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55346
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
|
|
54874
55347
|
* @static
|
|
54875
|
-
* @param {org.dash.platform.dapi.v0.
|
|
55348
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenContractInfoRequest} message GetTokenContractInfoRequest message or plain object to encode
|
|
54876
55349
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54877
55350
|
* @returns {$protobuf.Writer} Writer
|
|
54878
55351
|
*/
|
|
54879
|
-
|
|
55352
|
+
GetTokenContractInfoRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
54880
55353
|
return this.encode(message, writer).ldelim();
|
|
54881
55354
|
};
|
|
54882
55355
|
|
|
54883
55356
|
/**
|
|
54884
|
-
* Decodes a
|
|
55357
|
+
* Decodes a GetTokenContractInfoRequest message from the specified reader or buffer.
|
|
54885
55358
|
* @function decode
|
|
54886
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55359
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
|
|
54887
55360
|
* @static
|
|
54888
55361
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54889
55362
|
* @param {number} [length] Message length if known beforehand
|
|
54890
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
55363
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoRequest} GetTokenContractInfoRequest
|
|
54891
55364
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54892
55365
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54893
55366
|
*/
|
|
54894
|
-
|
|
55367
|
+
GetTokenContractInfoRequest.decode = function decode(reader, length) {
|
|
54895
55368
|
if (!(reader instanceof $Reader))
|
|
54896
55369
|
reader = $Reader.create(reader);
|
|
54897
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.
|
|
55370
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest();
|
|
54898
55371
|
while (reader.pos < end) {
|
|
54899
55372
|
var tag = reader.uint32();
|
|
54900
55373
|
switch (tag >>> 3) {
|
|
54901
55374
|
case 1:
|
|
54902
|
-
message.v0 = $root.org.dash.platform.dapi.v0.
|
|
55375
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.decode(reader, reader.uint32());
|
|
54903
55376
|
break;
|
|
54904
55377
|
default:
|
|
54905
55378
|
reader.skipType(tag & 7);
|
|
@@ -54910,37 +55383,37 @@ $root.org = (function() {
|
|
|
54910
55383
|
};
|
|
54911
55384
|
|
|
54912
55385
|
/**
|
|
54913
|
-
* Decodes a
|
|
55386
|
+
* Decodes a GetTokenContractInfoRequest message from the specified reader or buffer, length delimited.
|
|
54914
55387
|
* @function decodeDelimited
|
|
54915
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55388
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
|
|
54916
55389
|
* @static
|
|
54917
55390
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54918
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
55391
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoRequest} GetTokenContractInfoRequest
|
|
54919
55392
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54920
55393
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54921
55394
|
*/
|
|
54922
|
-
|
|
55395
|
+
GetTokenContractInfoRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
54923
55396
|
if (!(reader instanceof $Reader))
|
|
54924
55397
|
reader = new $Reader(reader);
|
|
54925
55398
|
return this.decode(reader, reader.uint32());
|
|
54926
55399
|
};
|
|
54927
55400
|
|
|
54928
55401
|
/**
|
|
54929
|
-
* Verifies a
|
|
55402
|
+
* Verifies a GetTokenContractInfoRequest message.
|
|
54930
55403
|
* @function verify
|
|
54931
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55404
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
|
|
54932
55405
|
* @static
|
|
54933
55406
|
* @param {Object.<string,*>} message Plain object to verify
|
|
54934
55407
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
54935
55408
|
*/
|
|
54936
|
-
|
|
55409
|
+
GetTokenContractInfoRequest.verify = function verify(message) {
|
|
54937
55410
|
if (typeof message !== "object" || message === null)
|
|
54938
55411
|
return "object expected";
|
|
54939
55412
|
var properties = {};
|
|
54940
55413
|
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
54941
55414
|
properties.version = 1;
|
|
54942
55415
|
{
|
|
54943
|
-
var error = $root.org.dash.platform.dapi.v0.
|
|
55416
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.verify(message.v0);
|
|
54944
55417
|
if (error)
|
|
54945
55418
|
return "v0." + error;
|
|
54946
55419
|
}
|
|
@@ -54949,40 +55422,40 @@ $root.org = (function() {
|
|
|
54949
55422
|
};
|
|
54950
55423
|
|
|
54951
55424
|
/**
|
|
54952
|
-
* Creates a
|
|
55425
|
+
* Creates a GetTokenContractInfoRequest message from a plain object. Also converts values to their respective internal types.
|
|
54953
55426
|
* @function fromObject
|
|
54954
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55427
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
|
|
54955
55428
|
* @static
|
|
54956
55429
|
* @param {Object.<string,*>} object Plain object
|
|
54957
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
55430
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoRequest} GetTokenContractInfoRequest
|
|
54958
55431
|
*/
|
|
54959
|
-
|
|
54960
|
-
if (object instanceof $root.org.dash.platform.dapi.v0.
|
|
55432
|
+
GetTokenContractInfoRequest.fromObject = function fromObject(object) {
|
|
55433
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest)
|
|
54961
55434
|
return object;
|
|
54962
|
-
var message = new $root.org.dash.platform.dapi.v0.
|
|
55435
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest();
|
|
54963
55436
|
if (object.v0 != null) {
|
|
54964
55437
|
if (typeof object.v0 !== "object")
|
|
54965
|
-
throw TypeError(".org.dash.platform.dapi.v0.
|
|
54966
|
-
message.v0 = $root.org.dash.platform.dapi.v0.
|
|
55438
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenContractInfoRequest.v0: object expected");
|
|
55439
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.fromObject(object.v0);
|
|
54967
55440
|
}
|
|
54968
55441
|
return message;
|
|
54969
55442
|
};
|
|
54970
55443
|
|
|
54971
55444
|
/**
|
|
54972
|
-
* Creates a plain object from a
|
|
55445
|
+
* Creates a plain object from a GetTokenContractInfoRequest message. Also converts values to other types if specified.
|
|
54973
55446
|
* @function toObject
|
|
54974
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55447
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
|
|
54975
55448
|
* @static
|
|
54976
|
-
* @param {org.dash.platform.dapi.v0.
|
|
55449
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoRequest} message GetTokenContractInfoRequest
|
|
54977
55450
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
54978
55451
|
* @returns {Object.<string,*>} Plain object
|
|
54979
55452
|
*/
|
|
54980
|
-
|
|
55453
|
+
GetTokenContractInfoRequest.toObject = function toObject(message, options) {
|
|
54981
55454
|
if (!options)
|
|
54982
55455
|
options = {};
|
|
54983
55456
|
var object = {};
|
|
54984
55457
|
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
54985
|
-
object.v0 = $root.org.dash.platform.dapi.v0.
|
|
55458
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.toObject(message.v0, options);
|
|
54986
55459
|
if (options.oneofs)
|
|
54987
55460
|
object.version = "v0";
|
|
54988
55461
|
}
|
|
@@ -54990,36 +55463,35 @@ $root.org = (function() {
|
|
|
54990
55463
|
};
|
|
54991
55464
|
|
|
54992
55465
|
/**
|
|
54993
|
-
* Converts this
|
|
55466
|
+
* Converts this GetTokenContractInfoRequest to JSON.
|
|
54994
55467
|
* @function toJSON
|
|
54995
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55468
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
|
|
54996
55469
|
* @instance
|
|
54997
55470
|
* @returns {Object.<string,*>} JSON object
|
|
54998
55471
|
*/
|
|
54999
|
-
|
|
55472
|
+
GetTokenContractInfoRequest.prototype.toJSON = function toJSON() {
|
|
55000
55473
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
55001
55474
|
};
|
|
55002
55475
|
|
|
55003
|
-
|
|
55476
|
+
GetTokenContractInfoRequest.GetTokenContractInfoRequestV0 = (function() {
|
|
55004
55477
|
|
|
55005
55478
|
/**
|
|
55006
|
-
* Properties of a
|
|
55007
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55008
|
-
* @interface
|
|
55009
|
-
* @property {
|
|
55010
|
-
* @property {boolean|null} [prove]
|
|
55479
|
+
* Properties of a GetTokenContractInfoRequestV0.
|
|
55480
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
|
|
55481
|
+
* @interface IGetTokenContractInfoRequestV0
|
|
55482
|
+
* @property {Uint8Array|null} [tokenId] GetTokenContractInfoRequestV0 tokenId
|
|
55483
|
+
* @property {boolean|null} [prove] GetTokenContractInfoRequestV0 prove
|
|
55011
55484
|
*/
|
|
55012
55485
|
|
|
55013
55486
|
/**
|
|
55014
|
-
* Constructs a new
|
|
55015
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55016
|
-
* @classdesc Represents a
|
|
55017
|
-
* @implements
|
|
55487
|
+
* Constructs a new GetTokenContractInfoRequestV0.
|
|
55488
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
|
|
55489
|
+
* @classdesc Represents a GetTokenContractInfoRequestV0.
|
|
55490
|
+
* @implements IGetTokenContractInfoRequestV0
|
|
55018
55491
|
* @constructor
|
|
55019
|
-
* @param {org.dash.platform.dapi.v0.
|
|
55492
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.IGetTokenContractInfoRequestV0=} [properties] Properties to set
|
|
55020
55493
|
*/
|
|
55021
|
-
function
|
|
55022
|
-
this.tokenIds = [];
|
|
55494
|
+
function GetTokenContractInfoRequestV0(properties) {
|
|
55023
55495
|
if (properties)
|
|
55024
55496
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
55025
55497
|
if (properties[keys[i]] != null)
|
|
@@ -55027,88 +55499,85 @@ $root.org = (function() {
|
|
|
55027
55499
|
}
|
|
55028
55500
|
|
|
55029
55501
|
/**
|
|
55030
|
-
*
|
|
55031
|
-
* @member {
|
|
55032
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55502
|
+
* GetTokenContractInfoRequestV0 tokenId.
|
|
55503
|
+
* @member {Uint8Array} tokenId
|
|
55504
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
|
|
55033
55505
|
* @instance
|
|
55034
55506
|
*/
|
|
55035
|
-
|
|
55507
|
+
GetTokenContractInfoRequestV0.prototype.tokenId = $util.newBuffer([]);
|
|
55036
55508
|
|
|
55037
55509
|
/**
|
|
55038
|
-
*
|
|
55510
|
+
* GetTokenContractInfoRequestV0 prove.
|
|
55039
55511
|
* @member {boolean} prove
|
|
55040
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55512
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
|
|
55041
55513
|
* @instance
|
|
55042
55514
|
*/
|
|
55043
|
-
|
|
55515
|
+
GetTokenContractInfoRequestV0.prototype.prove = false;
|
|
55044
55516
|
|
|
55045
55517
|
/**
|
|
55046
|
-
* Creates a new
|
|
55518
|
+
* Creates a new GetTokenContractInfoRequestV0 instance using the specified properties.
|
|
55047
55519
|
* @function create
|
|
55048
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55520
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
|
|
55049
55521
|
* @static
|
|
55050
|
-
* @param {org.dash.platform.dapi.v0.
|
|
55051
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
55522
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.IGetTokenContractInfoRequestV0=} [properties] Properties to set
|
|
55523
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0} GetTokenContractInfoRequestV0 instance
|
|
55052
55524
|
*/
|
|
55053
|
-
|
|
55054
|
-
return new
|
|
55525
|
+
GetTokenContractInfoRequestV0.create = function create(properties) {
|
|
55526
|
+
return new GetTokenContractInfoRequestV0(properties);
|
|
55055
55527
|
};
|
|
55056
55528
|
|
|
55057
55529
|
/**
|
|
55058
|
-
* Encodes the specified
|
|
55530
|
+
* Encodes the specified GetTokenContractInfoRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.verify|verify} messages.
|
|
55059
55531
|
* @function encode
|
|
55060
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55532
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
|
|
55061
55533
|
* @static
|
|
55062
|
-
* @param {org.dash.platform.dapi.v0.
|
|
55534
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.IGetTokenContractInfoRequestV0} message GetTokenContractInfoRequestV0 message or plain object to encode
|
|
55063
55535
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55064
55536
|
* @returns {$protobuf.Writer} Writer
|
|
55065
55537
|
*/
|
|
55066
|
-
|
|
55538
|
+
GetTokenContractInfoRequestV0.encode = function encode(message, writer) {
|
|
55067
55539
|
if (!writer)
|
|
55068
55540
|
writer = $Writer.create();
|
|
55069
|
-
if (message.
|
|
55070
|
-
|
|
55071
|
-
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tokenIds[i]);
|
|
55541
|
+
if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
|
|
55542
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tokenId);
|
|
55072
55543
|
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
55073
55544
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
|
|
55074
55545
|
return writer;
|
|
55075
55546
|
};
|
|
55076
55547
|
|
|
55077
55548
|
/**
|
|
55078
|
-
* Encodes the specified
|
|
55549
|
+
* Encodes the specified GetTokenContractInfoRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.verify|verify} messages.
|
|
55079
55550
|
* @function encodeDelimited
|
|
55080
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55551
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
|
|
55081
55552
|
* @static
|
|
55082
|
-
* @param {org.dash.platform.dapi.v0.
|
|
55553
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.IGetTokenContractInfoRequestV0} message GetTokenContractInfoRequestV0 message or plain object to encode
|
|
55083
55554
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55084
55555
|
* @returns {$protobuf.Writer} Writer
|
|
55085
55556
|
*/
|
|
55086
|
-
|
|
55557
|
+
GetTokenContractInfoRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
55087
55558
|
return this.encode(message, writer).ldelim();
|
|
55088
55559
|
};
|
|
55089
55560
|
|
|
55090
55561
|
/**
|
|
55091
|
-
* Decodes a
|
|
55562
|
+
* Decodes a GetTokenContractInfoRequestV0 message from the specified reader or buffer.
|
|
55092
55563
|
* @function decode
|
|
55093
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55564
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
|
|
55094
55565
|
* @static
|
|
55095
55566
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55096
55567
|
* @param {number} [length] Message length if known beforehand
|
|
55097
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
55568
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0} GetTokenContractInfoRequestV0
|
|
55098
55569
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55099
55570
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55100
55571
|
*/
|
|
55101
|
-
|
|
55572
|
+
GetTokenContractInfoRequestV0.decode = function decode(reader, length) {
|
|
55102
55573
|
if (!(reader instanceof $Reader))
|
|
55103
55574
|
reader = $Reader.create(reader);
|
|
55104
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.
|
|
55575
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0();
|
|
55105
55576
|
while (reader.pos < end) {
|
|
55106
55577
|
var tag = reader.uint32();
|
|
55107
55578
|
switch (tag >>> 3) {
|
|
55108
55579
|
case 1:
|
|
55109
|
-
|
|
55110
|
-
message.tokenIds = [];
|
|
55111
|
-
message.tokenIds.push(reader.bytes());
|
|
55580
|
+
message.tokenId = reader.bytes();
|
|
55112
55581
|
break;
|
|
55113
55582
|
case 2:
|
|
55114
55583
|
message.prove = reader.bool();
|
|
@@ -55122,39 +55591,35 @@ $root.org = (function() {
|
|
|
55122
55591
|
};
|
|
55123
55592
|
|
|
55124
55593
|
/**
|
|
55125
|
-
* Decodes a
|
|
55594
|
+
* Decodes a GetTokenContractInfoRequestV0 message from the specified reader or buffer, length delimited.
|
|
55126
55595
|
* @function decodeDelimited
|
|
55127
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55596
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
|
|
55128
55597
|
* @static
|
|
55129
55598
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55130
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
55599
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0} GetTokenContractInfoRequestV0
|
|
55131
55600
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55132
55601
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55133
55602
|
*/
|
|
55134
|
-
|
|
55603
|
+
GetTokenContractInfoRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
55135
55604
|
if (!(reader instanceof $Reader))
|
|
55136
55605
|
reader = new $Reader(reader);
|
|
55137
55606
|
return this.decode(reader, reader.uint32());
|
|
55138
55607
|
};
|
|
55139
55608
|
|
|
55140
55609
|
/**
|
|
55141
|
-
* Verifies a
|
|
55610
|
+
* Verifies a GetTokenContractInfoRequestV0 message.
|
|
55142
55611
|
* @function verify
|
|
55143
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55612
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
|
|
55144
55613
|
* @static
|
|
55145
55614
|
* @param {Object.<string,*>} message Plain object to verify
|
|
55146
55615
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
55147
55616
|
*/
|
|
55148
|
-
|
|
55617
|
+
GetTokenContractInfoRequestV0.verify = function verify(message) {
|
|
55149
55618
|
if (typeof message !== "object" || message === null)
|
|
55150
55619
|
return "object expected";
|
|
55151
|
-
if (message.
|
|
55152
|
-
if (!
|
|
55153
|
-
return "
|
|
55154
|
-
for (var i = 0; i < message.tokenIds.length; ++i)
|
|
55155
|
-
if (!(message.tokenIds[i] && typeof message.tokenIds[i].length === "number" || $util.isString(message.tokenIds[i])))
|
|
55156
|
-
return "tokenIds: buffer[] expected";
|
|
55157
|
-
}
|
|
55620
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
55621
|
+
if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
|
|
55622
|
+
return "tokenId: buffer expected";
|
|
55158
55623
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
55159
55624
|
if (typeof message.prove !== "boolean")
|
|
55160
55625
|
return "prove: boolean expected";
|
|
@@ -55162,74 +55627,775 @@ $root.org = (function() {
|
|
|
55162
55627
|
};
|
|
55163
55628
|
|
|
55164
55629
|
/**
|
|
55165
|
-
* Creates a
|
|
55630
|
+
* Creates a GetTokenContractInfoRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
55166
55631
|
* @function fromObject
|
|
55167
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55632
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
|
|
55168
55633
|
* @static
|
|
55169
55634
|
* @param {Object.<string,*>} object Plain object
|
|
55170
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
55635
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0} GetTokenContractInfoRequestV0
|
|
55171
55636
|
*/
|
|
55172
|
-
|
|
55173
|
-
if (object instanceof $root.org.dash.platform.dapi.v0.
|
|
55637
|
+
GetTokenContractInfoRequestV0.fromObject = function fromObject(object) {
|
|
55638
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0)
|
|
55174
55639
|
return object;
|
|
55175
|
-
var message = new $root.org.dash.platform.dapi.v0.
|
|
55176
|
-
if (object.
|
|
55177
|
-
if (
|
|
55178
|
-
|
|
55179
|
-
|
|
55180
|
-
|
|
55181
|
-
if (typeof object.tokenIds[i] === "string")
|
|
55182
|
-
$util.base64.decode(object.tokenIds[i], message.tokenIds[i] = $util.newBuffer($util.base64.length(object.tokenIds[i])), 0);
|
|
55183
|
-
else if (object.tokenIds[i].length >= 0)
|
|
55184
|
-
message.tokenIds[i] = object.tokenIds[i];
|
|
55185
|
-
}
|
|
55640
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0();
|
|
55641
|
+
if (object.tokenId != null)
|
|
55642
|
+
if (typeof object.tokenId === "string")
|
|
55643
|
+
$util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
|
|
55644
|
+
else if (object.tokenId.length >= 0)
|
|
55645
|
+
message.tokenId = object.tokenId;
|
|
55186
55646
|
if (object.prove != null)
|
|
55187
55647
|
message.prove = Boolean(object.prove);
|
|
55188
55648
|
return message;
|
|
55189
55649
|
};
|
|
55190
55650
|
|
|
55191
55651
|
/**
|
|
55192
|
-
* Creates a plain object from a
|
|
55652
|
+
* Creates a plain object from a GetTokenContractInfoRequestV0 message. Also converts values to other types if specified.
|
|
55193
55653
|
* @function toObject
|
|
55194
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55654
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
|
|
55195
55655
|
* @static
|
|
55196
|
-
* @param {org.dash.platform.dapi.v0.
|
|
55656
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0} message GetTokenContractInfoRequestV0
|
|
55197
55657
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
55198
55658
|
* @returns {Object.<string,*>} Plain object
|
|
55199
55659
|
*/
|
|
55200
|
-
|
|
55660
|
+
GetTokenContractInfoRequestV0.toObject = function toObject(message, options) {
|
|
55201
55661
|
if (!options)
|
|
55202
55662
|
options = {};
|
|
55203
55663
|
var object = {};
|
|
55204
|
-
if (options.
|
|
55205
|
-
|
|
55206
|
-
|
|
55664
|
+
if (options.defaults) {
|
|
55665
|
+
if (options.bytes === String)
|
|
55666
|
+
object.tokenId = "";
|
|
55667
|
+
else {
|
|
55668
|
+
object.tokenId = [];
|
|
55669
|
+
if (options.bytes !== Array)
|
|
55670
|
+
object.tokenId = $util.newBuffer(object.tokenId);
|
|
55671
|
+
}
|
|
55207
55672
|
object.prove = false;
|
|
55208
|
-
if (message.tokenIds && message.tokenIds.length) {
|
|
55209
|
-
object.tokenIds = [];
|
|
55210
|
-
for (var j = 0; j < message.tokenIds.length; ++j)
|
|
55211
|
-
object.tokenIds[j] = options.bytes === String ? $util.base64.encode(message.tokenIds[j], 0, message.tokenIds[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenIds[j]) : message.tokenIds[j];
|
|
55212
55673
|
}
|
|
55674
|
+
if (message.tokenId != null && message.hasOwnProperty("tokenId"))
|
|
55675
|
+
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;
|
|
55213
55676
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
55214
55677
|
object.prove = message.prove;
|
|
55215
55678
|
return object;
|
|
55216
55679
|
};
|
|
55217
55680
|
|
|
55218
55681
|
/**
|
|
55219
|
-
* Converts this
|
|
55682
|
+
* Converts this GetTokenContractInfoRequestV0 to JSON.
|
|
55220
55683
|
* @function toJSON
|
|
55221
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
55684
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
|
|
55222
55685
|
* @instance
|
|
55223
55686
|
* @returns {Object.<string,*>} JSON object
|
|
55224
55687
|
*/
|
|
55225
|
-
|
|
55688
|
+
GetTokenContractInfoRequestV0.prototype.toJSON = function toJSON() {
|
|
55226
55689
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
55227
55690
|
};
|
|
55228
55691
|
|
|
55229
|
-
return
|
|
55692
|
+
return GetTokenContractInfoRequestV0;
|
|
55230
55693
|
})();
|
|
55231
55694
|
|
|
55232
|
-
return
|
|
55695
|
+
return GetTokenContractInfoRequest;
|
|
55696
|
+
})();
|
|
55697
|
+
|
|
55698
|
+
v0.GetTokenContractInfoResponse = (function() {
|
|
55699
|
+
|
|
55700
|
+
/**
|
|
55701
|
+
* Properties of a GetTokenContractInfoResponse.
|
|
55702
|
+
* @memberof org.dash.platform.dapi.v0
|
|
55703
|
+
* @interface IGetTokenContractInfoResponse
|
|
55704
|
+
* @property {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.IGetTokenContractInfoResponseV0|null} [v0] GetTokenContractInfoResponse v0
|
|
55705
|
+
*/
|
|
55706
|
+
|
|
55707
|
+
/**
|
|
55708
|
+
* Constructs a new GetTokenContractInfoResponse.
|
|
55709
|
+
* @memberof org.dash.platform.dapi.v0
|
|
55710
|
+
* @classdesc Represents a GetTokenContractInfoResponse.
|
|
55711
|
+
* @implements IGetTokenContractInfoResponse
|
|
55712
|
+
* @constructor
|
|
55713
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenContractInfoResponse=} [properties] Properties to set
|
|
55714
|
+
*/
|
|
55715
|
+
function GetTokenContractInfoResponse(properties) {
|
|
55716
|
+
if (properties)
|
|
55717
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
55718
|
+
if (properties[keys[i]] != null)
|
|
55719
|
+
this[keys[i]] = properties[keys[i]];
|
|
55720
|
+
}
|
|
55721
|
+
|
|
55722
|
+
/**
|
|
55723
|
+
* GetTokenContractInfoResponse v0.
|
|
55724
|
+
* @member {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.IGetTokenContractInfoResponseV0|null|undefined} v0
|
|
55725
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
|
|
55726
|
+
* @instance
|
|
55727
|
+
*/
|
|
55728
|
+
GetTokenContractInfoResponse.prototype.v0 = null;
|
|
55729
|
+
|
|
55730
|
+
// OneOf field names bound to virtual getters and setters
|
|
55731
|
+
var $oneOfFields;
|
|
55732
|
+
|
|
55733
|
+
/**
|
|
55734
|
+
* GetTokenContractInfoResponse version.
|
|
55735
|
+
* @member {"v0"|undefined} version
|
|
55736
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
|
|
55737
|
+
* @instance
|
|
55738
|
+
*/
|
|
55739
|
+
Object.defineProperty(GetTokenContractInfoResponse.prototype, "version", {
|
|
55740
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
55741
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
55742
|
+
});
|
|
55743
|
+
|
|
55744
|
+
/**
|
|
55745
|
+
* Creates a new GetTokenContractInfoResponse instance using the specified properties.
|
|
55746
|
+
* @function create
|
|
55747
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
|
|
55748
|
+
* @static
|
|
55749
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenContractInfoResponse=} [properties] Properties to set
|
|
55750
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse} GetTokenContractInfoResponse instance
|
|
55751
|
+
*/
|
|
55752
|
+
GetTokenContractInfoResponse.create = function create(properties) {
|
|
55753
|
+
return new GetTokenContractInfoResponse(properties);
|
|
55754
|
+
};
|
|
55755
|
+
|
|
55756
|
+
/**
|
|
55757
|
+
* Encodes the specified GetTokenContractInfoResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoResponse.verify|verify} messages.
|
|
55758
|
+
* @function encode
|
|
55759
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
|
|
55760
|
+
* @static
|
|
55761
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenContractInfoResponse} message GetTokenContractInfoResponse message or plain object to encode
|
|
55762
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55763
|
+
* @returns {$protobuf.Writer} Writer
|
|
55764
|
+
*/
|
|
55765
|
+
GetTokenContractInfoResponse.encode = function encode(message, writer) {
|
|
55766
|
+
if (!writer)
|
|
55767
|
+
writer = $Writer.create();
|
|
55768
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
55769
|
+
$root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
55770
|
+
return writer;
|
|
55771
|
+
};
|
|
55772
|
+
|
|
55773
|
+
/**
|
|
55774
|
+
* Encodes the specified GetTokenContractInfoResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoResponse.verify|verify} messages.
|
|
55775
|
+
* @function encodeDelimited
|
|
55776
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
|
|
55777
|
+
* @static
|
|
55778
|
+
* @param {org.dash.platform.dapi.v0.IGetTokenContractInfoResponse} message GetTokenContractInfoResponse message or plain object to encode
|
|
55779
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55780
|
+
* @returns {$protobuf.Writer} Writer
|
|
55781
|
+
*/
|
|
55782
|
+
GetTokenContractInfoResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
55783
|
+
return this.encode(message, writer).ldelim();
|
|
55784
|
+
};
|
|
55785
|
+
|
|
55786
|
+
/**
|
|
55787
|
+
* Decodes a GetTokenContractInfoResponse message from the specified reader or buffer.
|
|
55788
|
+
* @function decode
|
|
55789
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
|
|
55790
|
+
* @static
|
|
55791
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55792
|
+
* @param {number} [length] Message length if known beforehand
|
|
55793
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse} GetTokenContractInfoResponse
|
|
55794
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55795
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55796
|
+
*/
|
|
55797
|
+
GetTokenContractInfoResponse.decode = function decode(reader, length) {
|
|
55798
|
+
if (!(reader instanceof $Reader))
|
|
55799
|
+
reader = $Reader.create(reader);
|
|
55800
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse();
|
|
55801
|
+
while (reader.pos < end) {
|
|
55802
|
+
var tag = reader.uint32();
|
|
55803
|
+
switch (tag >>> 3) {
|
|
55804
|
+
case 1:
|
|
55805
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.decode(reader, reader.uint32());
|
|
55806
|
+
break;
|
|
55807
|
+
default:
|
|
55808
|
+
reader.skipType(tag & 7);
|
|
55809
|
+
break;
|
|
55810
|
+
}
|
|
55811
|
+
}
|
|
55812
|
+
return message;
|
|
55813
|
+
};
|
|
55814
|
+
|
|
55815
|
+
/**
|
|
55816
|
+
* Decodes a GetTokenContractInfoResponse message from the specified reader or buffer, length delimited.
|
|
55817
|
+
* @function decodeDelimited
|
|
55818
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
|
|
55819
|
+
* @static
|
|
55820
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55821
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse} GetTokenContractInfoResponse
|
|
55822
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55823
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55824
|
+
*/
|
|
55825
|
+
GetTokenContractInfoResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
55826
|
+
if (!(reader instanceof $Reader))
|
|
55827
|
+
reader = new $Reader(reader);
|
|
55828
|
+
return this.decode(reader, reader.uint32());
|
|
55829
|
+
};
|
|
55830
|
+
|
|
55831
|
+
/**
|
|
55832
|
+
* Verifies a GetTokenContractInfoResponse message.
|
|
55833
|
+
* @function verify
|
|
55834
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
|
|
55835
|
+
* @static
|
|
55836
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
55837
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
55838
|
+
*/
|
|
55839
|
+
GetTokenContractInfoResponse.verify = function verify(message) {
|
|
55840
|
+
if (typeof message !== "object" || message === null)
|
|
55841
|
+
return "object expected";
|
|
55842
|
+
var properties = {};
|
|
55843
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
55844
|
+
properties.version = 1;
|
|
55845
|
+
{
|
|
55846
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.verify(message.v0);
|
|
55847
|
+
if (error)
|
|
55848
|
+
return "v0." + error;
|
|
55849
|
+
}
|
|
55850
|
+
}
|
|
55851
|
+
return null;
|
|
55852
|
+
};
|
|
55853
|
+
|
|
55854
|
+
/**
|
|
55855
|
+
* Creates a GetTokenContractInfoResponse message from a plain object. Also converts values to their respective internal types.
|
|
55856
|
+
* @function fromObject
|
|
55857
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
|
|
55858
|
+
* @static
|
|
55859
|
+
* @param {Object.<string,*>} object Plain object
|
|
55860
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse} GetTokenContractInfoResponse
|
|
55861
|
+
*/
|
|
55862
|
+
GetTokenContractInfoResponse.fromObject = function fromObject(object) {
|
|
55863
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse)
|
|
55864
|
+
return object;
|
|
55865
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse();
|
|
55866
|
+
if (object.v0 != null) {
|
|
55867
|
+
if (typeof object.v0 !== "object")
|
|
55868
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenContractInfoResponse.v0: object expected");
|
|
55869
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.fromObject(object.v0);
|
|
55870
|
+
}
|
|
55871
|
+
return message;
|
|
55872
|
+
};
|
|
55873
|
+
|
|
55874
|
+
/**
|
|
55875
|
+
* Creates a plain object from a GetTokenContractInfoResponse message. Also converts values to other types if specified.
|
|
55876
|
+
* @function toObject
|
|
55877
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
|
|
55878
|
+
* @static
|
|
55879
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse} message GetTokenContractInfoResponse
|
|
55880
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
55881
|
+
* @returns {Object.<string,*>} Plain object
|
|
55882
|
+
*/
|
|
55883
|
+
GetTokenContractInfoResponse.toObject = function toObject(message, options) {
|
|
55884
|
+
if (!options)
|
|
55885
|
+
options = {};
|
|
55886
|
+
var object = {};
|
|
55887
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
55888
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.toObject(message.v0, options);
|
|
55889
|
+
if (options.oneofs)
|
|
55890
|
+
object.version = "v0";
|
|
55891
|
+
}
|
|
55892
|
+
return object;
|
|
55893
|
+
};
|
|
55894
|
+
|
|
55895
|
+
/**
|
|
55896
|
+
* Converts this GetTokenContractInfoResponse to JSON.
|
|
55897
|
+
* @function toJSON
|
|
55898
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
|
|
55899
|
+
* @instance
|
|
55900
|
+
* @returns {Object.<string,*>} JSON object
|
|
55901
|
+
*/
|
|
55902
|
+
GetTokenContractInfoResponse.prototype.toJSON = function toJSON() {
|
|
55903
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
55904
|
+
};
|
|
55905
|
+
|
|
55906
|
+
GetTokenContractInfoResponse.GetTokenContractInfoResponseV0 = (function() {
|
|
55907
|
+
|
|
55908
|
+
/**
|
|
55909
|
+
* Properties of a GetTokenContractInfoResponseV0.
|
|
55910
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
|
|
55911
|
+
* @interface IGetTokenContractInfoResponseV0
|
|
55912
|
+
* @property {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.ITokenContractInfoData|null} [data] GetTokenContractInfoResponseV0 data
|
|
55913
|
+
* @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetTokenContractInfoResponseV0 proof
|
|
55914
|
+
* @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetTokenContractInfoResponseV0 metadata
|
|
55915
|
+
*/
|
|
55916
|
+
|
|
55917
|
+
/**
|
|
55918
|
+
* Constructs a new GetTokenContractInfoResponseV0.
|
|
55919
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
|
|
55920
|
+
* @classdesc Represents a GetTokenContractInfoResponseV0.
|
|
55921
|
+
* @implements IGetTokenContractInfoResponseV0
|
|
55922
|
+
* @constructor
|
|
55923
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.IGetTokenContractInfoResponseV0=} [properties] Properties to set
|
|
55924
|
+
*/
|
|
55925
|
+
function GetTokenContractInfoResponseV0(properties) {
|
|
55926
|
+
if (properties)
|
|
55927
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
55928
|
+
if (properties[keys[i]] != null)
|
|
55929
|
+
this[keys[i]] = properties[keys[i]];
|
|
55930
|
+
}
|
|
55931
|
+
|
|
55932
|
+
/**
|
|
55933
|
+
* GetTokenContractInfoResponseV0 data.
|
|
55934
|
+
* @member {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.ITokenContractInfoData|null|undefined} data
|
|
55935
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
|
|
55936
|
+
* @instance
|
|
55937
|
+
*/
|
|
55938
|
+
GetTokenContractInfoResponseV0.prototype.data = null;
|
|
55939
|
+
|
|
55940
|
+
/**
|
|
55941
|
+
* GetTokenContractInfoResponseV0 proof.
|
|
55942
|
+
* @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
|
|
55943
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
|
|
55944
|
+
* @instance
|
|
55945
|
+
*/
|
|
55946
|
+
GetTokenContractInfoResponseV0.prototype.proof = null;
|
|
55947
|
+
|
|
55948
|
+
/**
|
|
55949
|
+
* GetTokenContractInfoResponseV0 metadata.
|
|
55950
|
+
* @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
|
|
55951
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
|
|
55952
|
+
* @instance
|
|
55953
|
+
*/
|
|
55954
|
+
GetTokenContractInfoResponseV0.prototype.metadata = null;
|
|
55955
|
+
|
|
55956
|
+
// OneOf field names bound to virtual getters and setters
|
|
55957
|
+
var $oneOfFields;
|
|
55958
|
+
|
|
55959
|
+
/**
|
|
55960
|
+
* GetTokenContractInfoResponseV0 result.
|
|
55961
|
+
* @member {"data"|"proof"|undefined} result
|
|
55962
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
|
|
55963
|
+
* @instance
|
|
55964
|
+
*/
|
|
55965
|
+
Object.defineProperty(GetTokenContractInfoResponseV0.prototype, "result", {
|
|
55966
|
+
get: $util.oneOfGetter($oneOfFields = ["data", "proof"]),
|
|
55967
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
55968
|
+
});
|
|
55969
|
+
|
|
55970
|
+
/**
|
|
55971
|
+
* Creates a new GetTokenContractInfoResponseV0 instance using the specified properties.
|
|
55972
|
+
* @function create
|
|
55973
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
|
|
55974
|
+
* @static
|
|
55975
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.IGetTokenContractInfoResponseV0=} [properties] Properties to set
|
|
55976
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} GetTokenContractInfoResponseV0 instance
|
|
55977
|
+
*/
|
|
55978
|
+
GetTokenContractInfoResponseV0.create = function create(properties) {
|
|
55979
|
+
return new GetTokenContractInfoResponseV0(properties);
|
|
55980
|
+
};
|
|
55981
|
+
|
|
55982
|
+
/**
|
|
55983
|
+
* Encodes the specified GetTokenContractInfoResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.verify|verify} messages.
|
|
55984
|
+
* @function encode
|
|
55985
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
|
|
55986
|
+
* @static
|
|
55987
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.IGetTokenContractInfoResponseV0} message GetTokenContractInfoResponseV0 message or plain object to encode
|
|
55988
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55989
|
+
* @returns {$protobuf.Writer} Writer
|
|
55990
|
+
*/
|
|
55991
|
+
GetTokenContractInfoResponseV0.encode = function encode(message, writer) {
|
|
55992
|
+
if (!writer)
|
|
55993
|
+
writer = $Writer.create();
|
|
55994
|
+
if (message.data != null && Object.hasOwnProperty.call(message, "data"))
|
|
55995
|
+
$root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
55996
|
+
if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
|
|
55997
|
+
$root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
55998
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
55999
|
+
$root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
56000
|
+
return writer;
|
|
56001
|
+
};
|
|
56002
|
+
|
|
56003
|
+
/**
|
|
56004
|
+
* Encodes the specified GetTokenContractInfoResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.verify|verify} messages.
|
|
56005
|
+
* @function encodeDelimited
|
|
56006
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
|
|
56007
|
+
* @static
|
|
56008
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.IGetTokenContractInfoResponseV0} message GetTokenContractInfoResponseV0 message or plain object to encode
|
|
56009
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
56010
|
+
* @returns {$protobuf.Writer} Writer
|
|
56011
|
+
*/
|
|
56012
|
+
GetTokenContractInfoResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
56013
|
+
return this.encode(message, writer).ldelim();
|
|
56014
|
+
};
|
|
56015
|
+
|
|
56016
|
+
/**
|
|
56017
|
+
* Decodes a GetTokenContractInfoResponseV0 message from the specified reader or buffer.
|
|
56018
|
+
* @function decode
|
|
56019
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
|
|
56020
|
+
* @static
|
|
56021
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
56022
|
+
* @param {number} [length] Message length if known beforehand
|
|
56023
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} GetTokenContractInfoResponseV0
|
|
56024
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
56025
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
56026
|
+
*/
|
|
56027
|
+
GetTokenContractInfoResponseV0.decode = function decode(reader, length) {
|
|
56028
|
+
if (!(reader instanceof $Reader))
|
|
56029
|
+
reader = $Reader.create(reader);
|
|
56030
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0();
|
|
56031
|
+
while (reader.pos < end) {
|
|
56032
|
+
var tag = reader.uint32();
|
|
56033
|
+
switch (tag >>> 3) {
|
|
56034
|
+
case 1:
|
|
56035
|
+
message.data = $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.decode(reader, reader.uint32());
|
|
56036
|
+
break;
|
|
56037
|
+
case 2:
|
|
56038
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
|
|
56039
|
+
break;
|
|
56040
|
+
case 3:
|
|
56041
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
|
|
56042
|
+
break;
|
|
56043
|
+
default:
|
|
56044
|
+
reader.skipType(tag & 7);
|
|
56045
|
+
break;
|
|
56046
|
+
}
|
|
56047
|
+
}
|
|
56048
|
+
return message;
|
|
56049
|
+
};
|
|
56050
|
+
|
|
56051
|
+
/**
|
|
56052
|
+
* Decodes a GetTokenContractInfoResponseV0 message from the specified reader or buffer, length delimited.
|
|
56053
|
+
* @function decodeDelimited
|
|
56054
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
|
|
56055
|
+
* @static
|
|
56056
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
56057
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} GetTokenContractInfoResponseV0
|
|
56058
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
56059
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
56060
|
+
*/
|
|
56061
|
+
GetTokenContractInfoResponseV0.decodeDelimited = function decodeDelimited(reader) {
|
|
56062
|
+
if (!(reader instanceof $Reader))
|
|
56063
|
+
reader = new $Reader(reader);
|
|
56064
|
+
return this.decode(reader, reader.uint32());
|
|
56065
|
+
};
|
|
56066
|
+
|
|
56067
|
+
/**
|
|
56068
|
+
* Verifies a GetTokenContractInfoResponseV0 message.
|
|
56069
|
+
* @function verify
|
|
56070
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
|
|
56071
|
+
* @static
|
|
56072
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
56073
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
56074
|
+
*/
|
|
56075
|
+
GetTokenContractInfoResponseV0.verify = function verify(message) {
|
|
56076
|
+
if (typeof message !== "object" || message === null)
|
|
56077
|
+
return "object expected";
|
|
56078
|
+
var properties = {};
|
|
56079
|
+
if (message.data != null && message.hasOwnProperty("data")) {
|
|
56080
|
+
properties.result = 1;
|
|
56081
|
+
{
|
|
56082
|
+
var error = $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.verify(message.data);
|
|
56083
|
+
if (error)
|
|
56084
|
+
return "data." + error;
|
|
56085
|
+
}
|
|
56086
|
+
}
|
|
56087
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
56088
|
+
if (properties.result === 1)
|
|
56089
|
+
return "result: multiple values";
|
|
56090
|
+
properties.result = 1;
|
|
56091
|
+
{
|
|
56092
|
+
var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
|
|
56093
|
+
if (error)
|
|
56094
|
+
return "proof." + error;
|
|
56095
|
+
}
|
|
56096
|
+
}
|
|
56097
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
56098
|
+
var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
|
|
56099
|
+
if (error)
|
|
56100
|
+
return "metadata." + error;
|
|
56101
|
+
}
|
|
56102
|
+
return null;
|
|
56103
|
+
};
|
|
56104
|
+
|
|
56105
|
+
/**
|
|
56106
|
+
* Creates a GetTokenContractInfoResponseV0 message from a plain object. Also converts values to their respective internal types.
|
|
56107
|
+
* @function fromObject
|
|
56108
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
|
|
56109
|
+
* @static
|
|
56110
|
+
* @param {Object.<string,*>} object Plain object
|
|
56111
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} GetTokenContractInfoResponseV0
|
|
56112
|
+
*/
|
|
56113
|
+
GetTokenContractInfoResponseV0.fromObject = function fromObject(object) {
|
|
56114
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0)
|
|
56115
|
+
return object;
|
|
56116
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0();
|
|
56117
|
+
if (object.data != null) {
|
|
56118
|
+
if (typeof object.data !== "object")
|
|
56119
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.data: object expected");
|
|
56120
|
+
message.data = $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.fromObject(object.data);
|
|
56121
|
+
}
|
|
56122
|
+
if (object.proof != null) {
|
|
56123
|
+
if (typeof object.proof !== "object")
|
|
56124
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.proof: object expected");
|
|
56125
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
|
|
56126
|
+
}
|
|
56127
|
+
if (object.metadata != null) {
|
|
56128
|
+
if (typeof object.metadata !== "object")
|
|
56129
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.metadata: object expected");
|
|
56130
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
|
|
56131
|
+
}
|
|
56132
|
+
return message;
|
|
56133
|
+
};
|
|
56134
|
+
|
|
56135
|
+
/**
|
|
56136
|
+
* Creates a plain object from a GetTokenContractInfoResponseV0 message. Also converts values to other types if specified.
|
|
56137
|
+
* @function toObject
|
|
56138
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
|
|
56139
|
+
* @static
|
|
56140
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} message GetTokenContractInfoResponseV0
|
|
56141
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
56142
|
+
* @returns {Object.<string,*>} Plain object
|
|
56143
|
+
*/
|
|
56144
|
+
GetTokenContractInfoResponseV0.toObject = function toObject(message, options) {
|
|
56145
|
+
if (!options)
|
|
56146
|
+
options = {};
|
|
56147
|
+
var object = {};
|
|
56148
|
+
if (options.defaults)
|
|
56149
|
+
object.metadata = null;
|
|
56150
|
+
if (message.data != null && message.hasOwnProperty("data")) {
|
|
56151
|
+
object.data = $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.toObject(message.data, options);
|
|
56152
|
+
if (options.oneofs)
|
|
56153
|
+
object.result = "data";
|
|
56154
|
+
}
|
|
56155
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
56156
|
+
object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
|
|
56157
|
+
if (options.oneofs)
|
|
56158
|
+
object.result = "proof";
|
|
56159
|
+
}
|
|
56160
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
56161
|
+
object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
|
|
56162
|
+
return object;
|
|
56163
|
+
};
|
|
56164
|
+
|
|
56165
|
+
/**
|
|
56166
|
+
* Converts this GetTokenContractInfoResponseV0 to JSON.
|
|
56167
|
+
* @function toJSON
|
|
56168
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
|
|
56169
|
+
* @instance
|
|
56170
|
+
* @returns {Object.<string,*>} JSON object
|
|
56171
|
+
*/
|
|
56172
|
+
GetTokenContractInfoResponseV0.prototype.toJSON = function toJSON() {
|
|
56173
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
56174
|
+
};
|
|
56175
|
+
|
|
56176
|
+
GetTokenContractInfoResponseV0.TokenContractInfoData = (function() {
|
|
56177
|
+
|
|
56178
|
+
/**
|
|
56179
|
+
* Properties of a TokenContractInfoData.
|
|
56180
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
|
|
56181
|
+
* @interface ITokenContractInfoData
|
|
56182
|
+
* @property {Uint8Array|null} [contractId] TokenContractInfoData contractId
|
|
56183
|
+
* @property {number|null} [tokenContractPosition] TokenContractInfoData tokenContractPosition
|
|
56184
|
+
*/
|
|
56185
|
+
|
|
56186
|
+
/**
|
|
56187
|
+
* Constructs a new TokenContractInfoData.
|
|
56188
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
|
|
56189
|
+
* @classdesc Represents a TokenContractInfoData.
|
|
56190
|
+
* @implements ITokenContractInfoData
|
|
56191
|
+
* @constructor
|
|
56192
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.ITokenContractInfoData=} [properties] Properties to set
|
|
56193
|
+
*/
|
|
56194
|
+
function TokenContractInfoData(properties) {
|
|
56195
|
+
if (properties)
|
|
56196
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
56197
|
+
if (properties[keys[i]] != null)
|
|
56198
|
+
this[keys[i]] = properties[keys[i]];
|
|
56199
|
+
}
|
|
56200
|
+
|
|
56201
|
+
/**
|
|
56202
|
+
* TokenContractInfoData contractId.
|
|
56203
|
+
* @member {Uint8Array} contractId
|
|
56204
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
|
|
56205
|
+
* @instance
|
|
56206
|
+
*/
|
|
56207
|
+
TokenContractInfoData.prototype.contractId = $util.newBuffer([]);
|
|
56208
|
+
|
|
56209
|
+
/**
|
|
56210
|
+
* TokenContractInfoData tokenContractPosition.
|
|
56211
|
+
* @member {number} tokenContractPosition
|
|
56212
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
|
|
56213
|
+
* @instance
|
|
56214
|
+
*/
|
|
56215
|
+
TokenContractInfoData.prototype.tokenContractPosition = 0;
|
|
56216
|
+
|
|
56217
|
+
/**
|
|
56218
|
+
* Creates a new TokenContractInfoData instance using the specified properties.
|
|
56219
|
+
* @function create
|
|
56220
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
|
|
56221
|
+
* @static
|
|
56222
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.ITokenContractInfoData=} [properties] Properties to set
|
|
56223
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData} TokenContractInfoData instance
|
|
56224
|
+
*/
|
|
56225
|
+
TokenContractInfoData.create = function create(properties) {
|
|
56226
|
+
return new TokenContractInfoData(properties);
|
|
56227
|
+
};
|
|
56228
|
+
|
|
56229
|
+
/**
|
|
56230
|
+
* Encodes the specified TokenContractInfoData message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.verify|verify} messages.
|
|
56231
|
+
* @function encode
|
|
56232
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
|
|
56233
|
+
* @static
|
|
56234
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.ITokenContractInfoData} message TokenContractInfoData message or plain object to encode
|
|
56235
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
56236
|
+
* @returns {$protobuf.Writer} Writer
|
|
56237
|
+
*/
|
|
56238
|
+
TokenContractInfoData.encode = function encode(message, writer) {
|
|
56239
|
+
if (!writer)
|
|
56240
|
+
writer = $Writer.create();
|
|
56241
|
+
if (message.contractId != null && Object.hasOwnProperty.call(message, "contractId"))
|
|
56242
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.contractId);
|
|
56243
|
+
if (message.tokenContractPosition != null && Object.hasOwnProperty.call(message, "tokenContractPosition"))
|
|
56244
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.tokenContractPosition);
|
|
56245
|
+
return writer;
|
|
56246
|
+
};
|
|
56247
|
+
|
|
56248
|
+
/**
|
|
56249
|
+
* Encodes the specified TokenContractInfoData message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.verify|verify} messages.
|
|
56250
|
+
* @function encodeDelimited
|
|
56251
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
|
|
56252
|
+
* @static
|
|
56253
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.ITokenContractInfoData} message TokenContractInfoData message or plain object to encode
|
|
56254
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
56255
|
+
* @returns {$protobuf.Writer} Writer
|
|
56256
|
+
*/
|
|
56257
|
+
TokenContractInfoData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
56258
|
+
return this.encode(message, writer).ldelim();
|
|
56259
|
+
};
|
|
56260
|
+
|
|
56261
|
+
/**
|
|
56262
|
+
* Decodes a TokenContractInfoData message from the specified reader or buffer.
|
|
56263
|
+
* @function decode
|
|
56264
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
|
|
56265
|
+
* @static
|
|
56266
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
56267
|
+
* @param {number} [length] Message length if known beforehand
|
|
56268
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData} TokenContractInfoData
|
|
56269
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
56270
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
56271
|
+
*/
|
|
56272
|
+
TokenContractInfoData.decode = function decode(reader, length) {
|
|
56273
|
+
if (!(reader instanceof $Reader))
|
|
56274
|
+
reader = $Reader.create(reader);
|
|
56275
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData();
|
|
56276
|
+
while (reader.pos < end) {
|
|
56277
|
+
var tag = reader.uint32();
|
|
56278
|
+
switch (tag >>> 3) {
|
|
56279
|
+
case 1:
|
|
56280
|
+
message.contractId = reader.bytes();
|
|
56281
|
+
break;
|
|
56282
|
+
case 2:
|
|
56283
|
+
message.tokenContractPosition = reader.uint32();
|
|
56284
|
+
break;
|
|
56285
|
+
default:
|
|
56286
|
+
reader.skipType(tag & 7);
|
|
56287
|
+
break;
|
|
56288
|
+
}
|
|
56289
|
+
}
|
|
56290
|
+
return message;
|
|
56291
|
+
};
|
|
56292
|
+
|
|
56293
|
+
/**
|
|
56294
|
+
* Decodes a TokenContractInfoData message from the specified reader or buffer, length delimited.
|
|
56295
|
+
* @function decodeDelimited
|
|
56296
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
|
|
56297
|
+
* @static
|
|
56298
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
56299
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData} TokenContractInfoData
|
|
56300
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
56301
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
56302
|
+
*/
|
|
56303
|
+
TokenContractInfoData.decodeDelimited = function decodeDelimited(reader) {
|
|
56304
|
+
if (!(reader instanceof $Reader))
|
|
56305
|
+
reader = new $Reader(reader);
|
|
56306
|
+
return this.decode(reader, reader.uint32());
|
|
56307
|
+
};
|
|
56308
|
+
|
|
56309
|
+
/**
|
|
56310
|
+
* Verifies a TokenContractInfoData message.
|
|
56311
|
+
* @function verify
|
|
56312
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
|
|
56313
|
+
* @static
|
|
56314
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
56315
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
56316
|
+
*/
|
|
56317
|
+
TokenContractInfoData.verify = function verify(message) {
|
|
56318
|
+
if (typeof message !== "object" || message === null)
|
|
56319
|
+
return "object expected";
|
|
56320
|
+
if (message.contractId != null && message.hasOwnProperty("contractId"))
|
|
56321
|
+
if (!(message.contractId && typeof message.contractId.length === "number" || $util.isString(message.contractId)))
|
|
56322
|
+
return "contractId: buffer expected";
|
|
56323
|
+
if (message.tokenContractPosition != null && message.hasOwnProperty("tokenContractPosition"))
|
|
56324
|
+
if (!$util.isInteger(message.tokenContractPosition))
|
|
56325
|
+
return "tokenContractPosition: integer expected";
|
|
56326
|
+
return null;
|
|
56327
|
+
};
|
|
56328
|
+
|
|
56329
|
+
/**
|
|
56330
|
+
* Creates a TokenContractInfoData message from a plain object. Also converts values to their respective internal types.
|
|
56331
|
+
* @function fromObject
|
|
56332
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
|
|
56333
|
+
* @static
|
|
56334
|
+
* @param {Object.<string,*>} object Plain object
|
|
56335
|
+
* @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData} TokenContractInfoData
|
|
56336
|
+
*/
|
|
56337
|
+
TokenContractInfoData.fromObject = function fromObject(object) {
|
|
56338
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData)
|
|
56339
|
+
return object;
|
|
56340
|
+
var message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData();
|
|
56341
|
+
if (object.contractId != null)
|
|
56342
|
+
if (typeof object.contractId === "string")
|
|
56343
|
+
$util.base64.decode(object.contractId, message.contractId = $util.newBuffer($util.base64.length(object.contractId)), 0);
|
|
56344
|
+
else if (object.contractId.length >= 0)
|
|
56345
|
+
message.contractId = object.contractId;
|
|
56346
|
+
if (object.tokenContractPosition != null)
|
|
56347
|
+
message.tokenContractPosition = object.tokenContractPosition >>> 0;
|
|
56348
|
+
return message;
|
|
56349
|
+
};
|
|
56350
|
+
|
|
56351
|
+
/**
|
|
56352
|
+
* Creates a plain object from a TokenContractInfoData message. Also converts values to other types if specified.
|
|
56353
|
+
* @function toObject
|
|
56354
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
|
|
56355
|
+
* @static
|
|
56356
|
+
* @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData} message TokenContractInfoData
|
|
56357
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
56358
|
+
* @returns {Object.<string,*>} Plain object
|
|
56359
|
+
*/
|
|
56360
|
+
TokenContractInfoData.toObject = function toObject(message, options) {
|
|
56361
|
+
if (!options)
|
|
56362
|
+
options = {};
|
|
56363
|
+
var object = {};
|
|
56364
|
+
if (options.defaults) {
|
|
56365
|
+
if (options.bytes === String)
|
|
56366
|
+
object.contractId = "";
|
|
56367
|
+
else {
|
|
56368
|
+
object.contractId = [];
|
|
56369
|
+
if (options.bytes !== Array)
|
|
56370
|
+
object.contractId = $util.newBuffer(object.contractId);
|
|
56371
|
+
}
|
|
56372
|
+
object.tokenContractPosition = 0;
|
|
56373
|
+
}
|
|
56374
|
+
if (message.contractId != null && message.hasOwnProperty("contractId"))
|
|
56375
|
+
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;
|
|
56376
|
+
if (message.tokenContractPosition != null && message.hasOwnProperty("tokenContractPosition"))
|
|
56377
|
+
object.tokenContractPosition = message.tokenContractPosition;
|
|
56378
|
+
return object;
|
|
56379
|
+
};
|
|
56380
|
+
|
|
56381
|
+
/**
|
|
56382
|
+
* Converts this TokenContractInfoData to JSON.
|
|
56383
|
+
* @function toJSON
|
|
56384
|
+
* @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
|
|
56385
|
+
* @instance
|
|
56386
|
+
* @returns {Object.<string,*>} JSON object
|
|
56387
|
+
*/
|
|
56388
|
+
TokenContractInfoData.prototype.toJSON = function toJSON() {
|
|
56389
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
56390
|
+
};
|
|
56391
|
+
|
|
56392
|
+
return TokenContractInfoData;
|
|
56393
|
+
})();
|
|
56394
|
+
|
|
56395
|
+
return GetTokenContractInfoResponseV0;
|
|
56396
|
+
})();
|
|
56397
|
+
|
|
56398
|
+
return GetTokenContractInfoResponse;
|
|
55233
56399
|
})();
|
|
55234
56400
|
|
|
55235
56401
|
v0.GetTokenPreProgrammedDistributionsRequest = (function() {
|