@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.
@@ -1848,6 +1848,39 @@ $root.org = (function() {
1848
1848
  * @variation 2
1849
1849
  */
1850
1850
 
1851
+ /**
1852
+ * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getTokenContractInfo}.
1853
+ * @memberof org.dash.platform.dapi.v0.Platform
1854
+ * @typedef getTokenContractInfoCallback
1855
+ * @type {function}
1856
+ * @param {Error|null} error Error, if any
1857
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse} [response] GetTokenContractInfoResponse
1858
+ */
1859
+
1860
+ /**
1861
+ * Calls getTokenContractInfo.
1862
+ * @function getTokenContractInfo
1863
+ * @memberof org.dash.platform.dapi.v0.Platform
1864
+ * @instance
1865
+ * @param {org.dash.platform.dapi.v0.IGetTokenContractInfoRequest} request GetTokenContractInfoRequest message or plain object
1866
+ * @param {org.dash.platform.dapi.v0.Platform.getTokenContractInfoCallback} callback Node-style callback called with the error, if any, and GetTokenContractInfoResponse
1867
+ * @returns {undefined}
1868
+ * @variation 1
1869
+ */
1870
+ Object.defineProperty(Platform.prototype.getTokenContractInfo = function getTokenContractInfo(request, callback) {
1871
+ return this.rpcCall(getTokenContractInfo, $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest, $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse, request, callback);
1872
+ }, "name", { value: "getTokenContractInfo" });
1873
+
1874
+ /**
1875
+ * Calls getTokenContractInfo.
1876
+ * @function getTokenContractInfo
1877
+ * @memberof org.dash.platform.dapi.v0.Platform
1878
+ * @instance
1879
+ * @param {org.dash.platform.dapi.v0.IGetTokenContractInfoRequest} request GetTokenContractInfoRequest message or plain object
1880
+ * @returns {Promise<org.dash.platform.dapi.v0.GetTokenContractInfoResponse>} Promise
1881
+ * @variation 2
1882
+ */
1883
+
1851
1884
  /**
1852
1885
  * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getTokenPreProgrammedDistributions}.
1853
1886
  * @memberof org.dash.platform.dapi.v0.Platform
@@ -53881,6 +53914,446 @@ $root.org = (function() {
53881
53914
  return GetTokenStatusesResponse;
53882
53915
  })();
53883
53916
 
53917
+ v0.GetTokenDirectPurchasePricesRequest = (function() {
53918
+
53919
+ /**
53920
+ * Properties of a GetTokenDirectPurchasePricesRequest.
53921
+ * @memberof org.dash.platform.dapi.v0
53922
+ * @interface IGetTokenDirectPurchasePricesRequest
53923
+ * @property {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0|null} [v0] GetTokenDirectPurchasePricesRequest v0
53924
+ */
53925
+
53926
+ /**
53927
+ * Constructs a new GetTokenDirectPurchasePricesRequest.
53928
+ * @memberof org.dash.platform.dapi.v0
53929
+ * @classdesc Represents a GetTokenDirectPurchasePricesRequest.
53930
+ * @implements IGetTokenDirectPurchasePricesRequest
53931
+ * @constructor
53932
+ * @param {org.dash.platform.dapi.v0.IGetTokenDirectPurchasePricesRequest=} [properties] Properties to set
53933
+ */
53934
+ function GetTokenDirectPurchasePricesRequest(properties) {
53935
+ if (properties)
53936
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
53937
+ if (properties[keys[i]] != null)
53938
+ this[keys[i]] = properties[keys[i]];
53939
+ }
53940
+
53941
+ /**
53942
+ * GetTokenDirectPurchasePricesRequest v0.
53943
+ * @member {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0|null|undefined} v0
53944
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
53945
+ * @instance
53946
+ */
53947
+ GetTokenDirectPurchasePricesRequest.prototype.v0 = null;
53948
+
53949
+ // OneOf field names bound to virtual getters and setters
53950
+ var $oneOfFields;
53951
+
53952
+ /**
53953
+ * GetTokenDirectPurchasePricesRequest version.
53954
+ * @member {"v0"|undefined} version
53955
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
53956
+ * @instance
53957
+ */
53958
+ Object.defineProperty(GetTokenDirectPurchasePricesRequest.prototype, "version", {
53959
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
53960
+ set: $util.oneOfSetter($oneOfFields)
53961
+ });
53962
+
53963
+ /**
53964
+ * Creates a new GetTokenDirectPurchasePricesRequest instance using the specified properties.
53965
+ * @function create
53966
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
53967
+ * @static
53968
+ * @param {org.dash.platform.dapi.v0.IGetTokenDirectPurchasePricesRequest=} [properties] Properties to set
53969
+ * @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} GetTokenDirectPurchasePricesRequest instance
53970
+ */
53971
+ GetTokenDirectPurchasePricesRequest.create = function create(properties) {
53972
+ return new GetTokenDirectPurchasePricesRequest(properties);
53973
+ };
53974
+
53975
+ /**
53976
+ * Encodes the specified GetTokenDirectPurchasePricesRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.verify|verify} messages.
53977
+ * @function encode
53978
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
53979
+ * @static
53980
+ * @param {org.dash.platform.dapi.v0.IGetTokenDirectPurchasePricesRequest} message GetTokenDirectPurchasePricesRequest message or plain object to encode
53981
+ * @param {$protobuf.Writer} [writer] Writer to encode to
53982
+ * @returns {$protobuf.Writer} Writer
53983
+ */
53984
+ GetTokenDirectPurchasePricesRequest.encode = function encode(message, writer) {
53985
+ if (!writer)
53986
+ writer = $Writer.create();
53987
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
53988
+ $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
53989
+ return writer;
53990
+ };
53991
+
53992
+ /**
53993
+ * Encodes the specified GetTokenDirectPurchasePricesRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.verify|verify} messages.
53994
+ * @function encodeDelimited
53995
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
53996
+ * @static
53997
+ * @param {org.dash.platform.dapi.v0.IGetTokenDirectPurchasePricesRequest} message GetTokenDirectPurchasePricesRequest message or plain object to encode
53998
+ * @param {$protobuf.Writer} [writer] Writer to encode to
53999
+ * @returns {$protobuf.Writer} Writer
54000
+ */
54001
+ GetTokenDirectPurchasePricesRequest.encodeDelimited = function encodeDelimited(message, writer) {
54002
+ return this.encode(message, writer).ldelim();
54003
+ };
54004
+
54005
+ /**
54006
+ * Decodes a GetTokenDirectPurchasePricesRequest message from the specified reader or buffer.
54007
+ * @function decode
54008
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
54009
+ * @static
54010
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
54011
+ * @param {number} [length] Message length if known beforehand
54012
+ * @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} GetTokenDirectPurchasePricesRequest
54013
+ * @throws {Error} If the payload is not a reader or valid buffer
54014
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
54015
+ */
54016
+ GetTokenDirectPurchasePricesRequest.decode = function decode(reader, length) {
54017
+ if (!(reader instanceof $Reader))
54018
+ reader = $Reader.create(reader);
54019
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest();
54020
+ while (reader.pos < end) {
54021
+ var tag = reader.uint32();
54022
+ switch (tag >>> 3) {
54023
+ case 1:
54024
+ message.v0 = $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.decode(reader, reader.uint32());
54025
+ break;
54026
+ default:
54027
+ reader.skipType(tag & 7);
54028
+ break;
54029
+ }
54030
+ }
54031
+ return message;
54032
+ };
54033
+
54034
+ /**
54035
+ * Decodes a GetTokenDirectPurchasePricesRequest message from the specified reader or buffer, length delimited.
54036
+ * @function decodeDelimited
54037
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
54038
+ * @static
54039
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
54040
+ * @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} GetTokenDirectPurchasePricesRequest
54041
+ * @throws {Error} If the payload is not a reader or valid buffer
54042
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
54043
+ */
54044
+ GetTokenDirectPurchasePricesRequest.decodeDelimited = function decodeDelimited(reader) {
54045
+ if (!(reader instanceof $Reader))
54046
+ reader = new $Reader(reader);
54047
+ return this.decode(reader, reader.uint32());
54048
+ };
54049
+
54050
+ /**
54051
+ * Verifies a GetTokenDirectPurchasePricesRequest message.
54052
+ * @function verify
54053
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
54054
+ * @static
54055
+ * @param {Object.<string,*>} message Plain object to verify
54056
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
54057
+ */
54058
+ GetTokenDirectPurchasePricesRequest.verify = function verify(message) {
54059
+ if (typeof message !== "object" || message === null)
54060
+ return "object expected";
54061
+ var properties = {};
54062
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
54063
+ properties.version = 1;
54064
+ {
54065
+ var error = $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.verify(message.v0);
54066
+ if (error)
54067
+ return "v0." + error;
54068
+ }
54069
+ }
54070
+ return null;
54071
+ };
54072
+
54073
+ /**
54074
+ * Creates a GetTokenDirectPurchasePricesRequest message from a plain object. Also converts values to their respective internal types.
54075
+ * @function fromObject
54076
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
54077
+ * @static
54078
+ * @param {Object.<string,*>} object Plain object
54079
+ * @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} GetTokenDirectPurchasePricesRequest
54080
+ */
54081
+ GetTokenDirectPurchasePricesRequest.fromObject = function fromObject(object) {
54082
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest)
54083
+ return object;
54084
+ var message = new $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest();
54085
+ if (object.v0 != null) {
54086
+ if (typeof object.v0 !== "object")
54087
+ throw TypeError(".org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.v0: object expected");
54088
+ message.v0 = $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.fromObject(object.v0);
54089
+ }
54090
+ return message;
54091
+ };
54092
+
54093
+ /**
54094
+ * Creates a plain object from a GetTokenDirectPurchasePricesRequest message. Also converts values to other types if specified.
54095
+ * @function toObject
54096
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
54097
+ * @static
54098
+ * @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} message GetTokenDirectPurchasePricesRequest
54099
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
54100
+ * @returns {Object.<string,*>} Plain object
54101
+ */
54102
+ GetTokenDirectPurchasePricesRequest.toObject = function toObject(message, options) {
54103
+ if (!options)
54104
+ options = {};
54105
+ var object = {};
54106
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
54107
+ object.v0 = $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.toObject(message.v0, options);
54108
+ if (options.oneofs)
54109
+ object.version = "v0";
54110
+ }
54111
+ return object;
54112
+ };
54113
+
54114
+ /**
54115
+ * Converts this GetTokenDirectPurchasePricesRequest to JSON.
54116
+ * @function toJSON
54117
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
54118
+ * @instance
54119
+ * @returns {Object.<string,*>} JSON object
54120
+ */
54121
+ GetTokenDirectPurchasePricesRequest.prototype.toJSON = function toJSON() {
54122
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
54123
+ };
54124
+
54125
+ GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0 = (function() {
54126
+
54127
+ /**
54128
+ * Properties of a GetTokenDirectPurchasePricesRequestV0.
54129
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
54130
+ * @interface IGetTokenDirectPurchasePricesRequestV0
54131
+ * @property {Array.<Uint8Array>|null} [tokenIds] GetTokenDirectPurchasePricesRequestV0 tokenIds
54132
+ * @property {boolean|null} [prove] GetTokenDirectPurchasePricesRequestV0 prove
54133
+ */
54134
+
54135
+ /**
54136
+ * Constructs a new GetTokenDirectPurchasePricesRequestV0.
54137
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
54138
+ * @classdesc Represents a GetTokenDirectPurchasePricesRequestV0.
54139
+ * @implements IGetTokenDirectPurchasePricesRequestV0
54140
+ * @constructor
54141
+ * @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0=} [properties] Properties to set
54142
+ */
54143
+ function GetTokenDirectPurchasePricesRequestV0(properties) {
54144
+ this.tokenIds = [];
54145
+ if (properties)
54146
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
54147
+ if (properties[keys[i]] != null)
54148
+ this[keys[i]] = properties[keys[i]];
54149
+ }
54150
+
54151
+ /**
54152
+ * GetTokenDirectPurchasePricesRequestV0 tokenIds.
54153
+ * @member {Array.<Uint8Array>} tokenIds
54154
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
54155
+ * @instance
54156
+ */
54157
+ GetTokenDirectPurchasePricesRequestV0.prototype.tokenIds = $util.emptyArray;
54158
+
54159
+ /**
54160
+ * GetTokenDirectPurchasePricesRequestV0 prove.
54161
+ * @member {boolean} prove
54162
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
54163
+ * @instance
54164
+ */
54165
+ GetTokenDirectPurchasePricesRequestV0.prototype.prove = false;
54166
+
54167
+ /**
54168
+ * Creates a new GetTokenDirectPurchasePricesRequestV0 instance using the specified properties.
54169
+ * @function create
54170
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
54171
+ * @static
54172
+ * @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0=} [properties] Properties to set
54173
+ * @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} GetTokenDirectPurchasePricesRequestV0 instance
54174
+ */
54175
+ GetTokenDirectPurchasePricesRequestV0.create = function create(properties) {
54176
+ return new GetTokenDirectPurchasePricesRequestV0(properties);
54177
+ };
54178
+
54179
+ /**
54180
+ * Encodes the specified GetTokenDirectPurchasePricesRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.verify|verify} messages.
54181
+ * @function encode
54182
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
54183
+ * @static
54184
+ * @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0} message GetTokenDirectPurchasePricesRequestV0 message or plain object to encode
54185
+ * @param {$protobuf.Writer} [writer] Writer to encode to
54186
+ * @returns {$protobuf.Writer} Writer
54187
+ */
54188
+ GetTokenDirectPurchasePricesRequestV0.encode = function encode(message, writer) {
54189
+ if (!writer)
54190
+ writer = $Writer.create();
54191
+ if (message.tokenIds != null && message.tokenIds.length)
54192
+ for (var i = 0; i < message.tokenIds.length; ++i)
54193
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tokenIds[i]);
54194
+ if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
54195
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
54196
+ return writer;
54197
+ };
54198
+
54199
+ /**
54200
+ * Encodes the specified GetTokenDirectPurchasePricesRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.verify|verify} messages.
54201
+ * @function encodeDelimited
54202
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
54203
+ * @static
54204
+ * @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0} message GetTokenDirectPurchasePricesRequestV0 message or plain object to encode
54205
+ * @param {$protobuf.Writer} [writer] Writer to encode to
54206
+ * @returns {$protobuf.Writer} Writer
54207
+ */
54208
+ GetTokenDirectPurchasePricesRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
54209
+ return this.encode(message, writer).ldelim();
54210
+ };
54211
+
54212
+ /**
54213
+ * Decodes a GetTokenDirectPurchasePricesRequestV0 message from the specified reader or buffer.
54214
+ * @function decode
54215
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
54216
+ * @static
54217
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
54218
+ * @param {number} [length] Message length if known beforehand
54219
+ * @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} GetTokenDirectPurchasePricesRequestV0
54220
+ * @throws {Error} If the payload is not a reader or valid buffer
54221
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
54222
+ */
54223
+ GetTokenDirectPurchasePricesRequestV0.decode = function decode(reader, length) {
54224
+ if (!(reader instanceof $Reader))
54225
+ reader = $Reader.create(reader);
54226
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0();
54227
+ while (reader.pos < end) {
54228
+ var tag = reader.uint32();
54229
+ switch (tag >>> 3) {
54230
+ case 1:
54231
+ if (!(message.tokenIds && message.tokenIds.length))
54232
+ message.tokenIds = [];
54233
+ message.tokenIds.push(reader.bytes());
54234
+ break;
54235
+ case 2:
54236
+ message.prove = reader.bool();
54237
+ break;
54238
+ default:
54239
+ reader.skipType(tag & 7);
54240
+ break;
54241
+ }
54242
+ }
54243
+ return message;
54244
+ };
54245
+
54246
+ /**
54247
+ * Decodes a GetTokenDirectPurchasePricesRequestV0 message from the specified reader or buffer, length delimited.
54248
+ * @function decodeDelimited
54249
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
54250
+ * @static
54251
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
54252
+ * @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} GetTokenDirectPurchasePricesRequestV0
54253
+ * @throws {Error} If the payload is not a reader or valid buffer
54254
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
54255
+ */
54256
+ GetTokenDirectPurchasePricesRequestV0.decodeDelimited = function decodeDelimited(reader) {
54257
+ if (!(reader instanceof $Reader))
54258
+ reader = new $Reader(reader);
54259
+ return this.decode(reader, reader.uint32());
54260
+ };
54261
+
54262
+ /**
54263
+ * Verifies a GetTokenDirectPurchasePricesRequestV0 message.
54264
+ * @function verify
54265
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
54266
+ * @static
54267
+ * @param {Object.<string,*>} message Plain object to verify
54268
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
54269
+ */
54270
+ GetTokenDirectPurchasePricesRequestV0.verify = function verify(message) {
54271
+ if (typeof message !== "object" || message === null)
54272
+ return "object expected";
54273
+ if (message.tokenIds != null && message.hasOwnProperty("tokenIds")) {
54274
+ if (!Array.isArray(message.tokenIds))
54275
+ return "tokenIds: array expected";
54276
+ for (var i = 0; i < message.tokenIds.length; ++i)
54277
+ if (!(message.tokenIds[i] && typeof message.tokenIds[i].length === "number" || $util.isString(message.tokenIds[i])))
54278
+ return "tokenIds: buffer[] expected";
54279
+ }
54280
+ if (message.prove != null && message.hasOwnProperty("prove"))
54281
+ if (typeof message.prove !== "boolean")
54282
+ return "prove: boolean expected";
54283
+ return null;
54284
+ };
54285
+
54286
+ /**
54287
+ * Creates a GetTokenDirectPurchasePricesRequestV0 message from a plain object. Also converts values to their respective internal types.
54288
+ * @function fromObject
54289
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
54290
+ * @static
54291
+ * @param {Object.<string,*>} object Plain object
54292
+ * @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} GetTokenDirectPurchasePricesRequestV0
54293
+ */
54294
+ GetTokenDirectPurchasePricesRequestV0.fromObject = function fromObject(object) {
54295
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0)
54296
+ return object;
54297
+ var message = new $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0();
54298
+ if (object.tokenIds) {
54299
+ if (!Array.isArray(object.tokenIds))
54300
+ throw TypeError(".org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.tokenIds: array expected");
54301
+ message.tokenIds = [];
54302
+ for (var i = 0; i < object.tokenIds.length; ++i)
54303
+ if (typeof object.tokenIds[i] === "string")
54304
+ $util.base64.decode(object.tokenIds[i], message.tokenIds[i] = $util.newBuffer($util.base64.length(object.tokenIds[i])), 0);
54305
+ else if (object.tokenIds[i].length >= 0)
54306
+ message.tokenIds[i] = object.tokenIds[i];
54307
+ }
54308
+ if (object.prove != null)
54309
+ message.prove = Boolean(object.prove);
54310
+ return message;
54311
+ };
54312
+
54313
+ /**
54314
+ * Creates a plain object from a GetTokenDirectPurchasePricesRequestV0 message. Also converts values to other types if specified.
54315
+ * @function toObject
54316
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
54317
+ * @static
54318
+ * @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} message GetTokenDirectPurchasePricesRequestV0
54319
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
54320
+ * @returns {Object.<string,*>} Plain object
54321
+ */
54322
+ GetTokenDirectPurchasePricesRequestV0.toObject = function toObject(message, options) {
54323
+ if (!options)
54324
+ options = {};
54325
+ var object = {};
54326
+ if (options.arrays || options.defaults)
54327
+ object.tokenIds = [];
54328
+ if (options.defaults)
54329
+ object.prove = false;
54330
+ if (message.tokenIds && message.tokenIds.length) {
54331
+ object.tokenIds = [];
54332
+ for (var j = 0; j < message.tokenIds.length; ++j)
54333
+ 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];
54334
+ }
54335
+ if (message.prove != null && message.hasOwnProperty("prove"))
54336
+ object.prove = message.prove;
54337
+ return object;
54338
+ };
54339
+
54340
+ /**
54341
+ * Converts this GetTokenDirectPurchasePricesRequestV0 to JSON.
54342
+ * @function toJSON
54343
+ * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
54344
+ * @instance
54345
+ * @returns {Object.<string,*>} JSON object
54346
+ */
54347
+ GetTokenDirectPurchasePricesRequestV0.prototype.toJSON = function toJSON() {
54348
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
54349
+ };
54350
+
54351
+ return GetTokenDirectPurchasePricesRequestV0;
54352
+ })();
54353
+
54354
+ return GetTokenDirectPurchasePricesRequest;
54355
+ })();
54356
+
53884
54357
  v0.GetTokenDirectPurchasePricesResponse = (function() {
53885
54358
 
53886
54359
  /**
@@ -55300,24 +55773,24 @@ $root.org = (function() {
55300
55773
  return GetTokenDirectPurchasePricesResponse;
55301
55774
  })();
55302
55775
 
55303
- v0.GetTokenDirectPurchasePricesRequest = (function() {
55776
+ v0.GetTokenContractInfoRequest = (function() {
55304
55777
 
55305
55778
  /**
55306
- * Properties of a GetTokenDirectPurchasePricesRequest.
55779
+ * Properties of a GetTokenContractInfoRequest.
55307
55780
  * @memberof org.dash.platform.dapi.v0
55308
- * @interface IGetTokenDirectPurchasePricesRequest
55309
- * @property {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0|null} [v0] GetTokenDirectPurchasePricesRequest v0
55781
+ * @interface IGetTokenContractInfoRequest
55782
+ * @property {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.IGetTokenContractInfoRequestV0|null} [v0] GetTokenContractInfoRequest v0
55310
55783
  */
55311
55784
 
55312
55785
  /**
55313
- * Constructs a new GetTokenDirectPurchasePricesRequest.
55786
+ * Constructs a new GetTokenContractInfoRequest.
55314
55787
  * @memberof org.dash.platform.dapi.v0
55315
- * @classdesc Represents a GetTokenDirectPurchasePricesRequest.
55316
- * @implements IGetTokenDirectPurchasePricesRequest
55788
+ * @classdesc Represents a GetTokenContractInfoRequest.
55789
+ * @implements IGetTokenContractInfoRequest
55317
55790
  * @constructor
55318
- * @param {org.dash.platform.dapi.v0.IGetTokenDirectPurchasePricesRequest=} [properties] Properties to set
55791
+ * @param {org.dash.platform.dapi.v0.IGetTokenContractInfoRequest=} [properties] Properties to set
55319
55792
  */
55320
- function GetTokenDirectPurchasePricesRequest(properties) {
55793
+ function GetTokenContractInfoRequest(properties) {
55321
55794
  if (properties)
55322
55795
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
55323
55796
  if (properties[keys[i]] != null)
@@ -55325,89 +55798,89 @@ $root.org = (function() {
55325
55798
  }
55326
55799
 
55327
55800
  /**
55328
- * GetTokenDirectPurchasePricesRequest v0.
55329
- * @member {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0|null|undefined} v0
55330
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
55801
+ * GetTokenContractInfoRequest v0.
55802
+ * @member {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.IGetTokenContractInfoRequestV0|null|undefined} v0
55803
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
55331
55804
  * @instance
55332
55805
  */
55333
- GetTokenDirectPurchasePricesRequest.prototype.v0 = null;
55806
+ GetTokenContractInfoRequest.prototype.v0 = null;
55334
55807
 
55335
55808
  // OneOf field names bound to virtual getters and setters
55336
55809
  var $oneOfFields;
55337
55810
 
55338
55811
  /**
55339
- * GetTokenDirectPurchasePricesRequest version.
55812
+ * GetTokenContractInfoRequest version.
55340
55813
  * @member {"v0"|undefined} version
55341
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
55814
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
55342
55815
  * @instance
55343
55816
  */
55344
- Object.defineProperty(GetTokenDirectPurchasePricesRequest.prototype, "version", {
55817
+ Object.defineProperty(GetTokenContractInfoRequest.prototype, "version", {
55345
55818
  get: $util.oneOfGetter($oneOfFields = ["v0"]),
55346
55819
  set: $util.oneOfSetter($oneOfFields)
55347
55820
  });
55348
55821
 
55349
55822
  /**
55350
- * Creates a new GetTokenDirectPurchasePricesRequest instance using the specified properties.
55823
+ * Creates a new GetTokenContractInfoRequest instance using the specified properties.
55351
55824
  * @function create
55352
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
55825
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
55353
55826
  * @static
55354
- * @param {org.dash.platform.dapi.v0.IGetTokenDirectPurchasePricesRequest=} [properties] Properties to set
55355
- * @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} GetTokenDirectPurchasePricesRequest instance
55827
+ * @param {org.dash.platform.dapi.v0.IGetTokenContractInfoRequest=} [properties] Properties to set
55828
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoRequest} GetTokenContractInfoRequest instance
55356
55829
  */
55357
- GetTokenDirectPurchasePricesRequest.create = function create(properties) {
55358
- return new GetTokenDirectPurchasePricesRequest(properties);
55830
+ GetTokenContractInfoRequest.create = function create(properties) {
55831
+ return new GetTokenContractInfoRequest(properties);
55359
55832
  };
55360
55833
 
55361
55834
  /**
55362
- * Encodes the specified GetTokenDirectPurchasePricesRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.verify|verify} messages.
55835
+ * Encodes the specified GetTokenContractInfoRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoRequest.verify|verify} messages.
55363
55836
  * @function encode
55364
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
55837
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
55365
55838
  * @static
55366
- * @param {org.dash.platform.dapi.v0.IGetTokenDirectPurchasePricesRequest} message GetTokenDirectPurchasePricesRequest message or plain object to encode
55839
+ * @param {org.dash.platform.dapi.v0.IGetTokenContractInfoRequest} message GetTokenContractInfoRequest message or plain object to encode
55367
55840
  * @param {$protobuf.Writer} [writer] Writer to encode to
55368
55841
  * @returns {$protobuf.Writer} Writer
55369
55842
  */
55370
- GetTokenDirectPurchasePricesRequest.encode = function encode(message, writer) {
55843
+ GetTokenContractInfoRequest.encode = function encode(message, writer) {
55371
55844
  if (!writer)
55372
55845
  writer = $Writer.create();
55373
55846
  if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
55374
- $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
55847
+ $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
55375
55848
  return writer;
55376
55849
  };
55377
55850
 
55378
55851
  /**
55379
- * Encodes the specified GetTokenDirectPurchasePricesRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.verify|verify} messages.
55852
+ * Encodes the specified GetTokenContractInfoRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoRequest.verify|verify} messages.
55380
55853
  * @function encodeDelimited
55381
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
55854
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
55382
55855
  * @static
55383
- * @param {org.dash.platform.dapi.v0.IGetTokenDirectPurchasePricesRequest} message GetTokenDirectPurchasePricesRequest message or plain object to encode
55856
+ * @param {org.dash.platform.dapi.v0.IGetTokenContractInfoRequest} message GetTokenContractInfoRequest message or plain object to encode
55384
55857
  * @param {$protobuf.Writer} [writer] Writer to encode to
55385
55858
  * @returns {$protobuf.Writer} Writer
55386
55859
  */
55387
- GetTokenDirectPurchasePricesRequest.encodeDelimited = function encodeDelimited(message, writer) {
55860
+ GetTokenContractInfoRequest.encodeDelimited = function encodeDelimited(message, writer) {
55388
55861
  return this.encode(message, writer).ldelim();
55389
55862
  };
55390
55863
 
55391
55864
  /**
55392
- * Decodes a GetTokenDirectPurchasePricesRequest message from the specified reader or buffer.
55865
+ * Decodes a GetTokenContractInfoRequest message from the specified reader or buffer.
55393
55866
  * @function decode
55394
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
55867
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
55395
55868
  * @static
55396
55869
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55397
55870
  * @param {number} [length] Message length if known beforehand
55398
- * @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} GetTokenDirectPurchasePricesRequest
55871
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoRequest} GetTokenContractInfoRequest
55399
55872
  * @throws {Error} If the payload is not a reader or valid buffer
55400
55873
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
55401
55874
  */
55402
- GetTokenDirectPurchasePricesRequest.decode = function decode(reader, length) {
55875
+ GetTokenContractInfoRequest.decode = function decode(reader, length) {
55403
55876
  if (!(reader instanceof $Reader))
55404
55877
  reader = $Reader.create(reader);
55405
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest();
55878
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest();
55406
55879
  while (reader.pos < end) {
55407
55880
  var tag = reader.uint32();
55408
55881
  switch (tag >>> 3) {
55409
55882
  case 1:
55410
- message.v0 = $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.decode(reader, reader.uint32());
55883
+ message.v0 = $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.decode(reader, reader.uint32());
55411
55884
  break;
55412
55885
  default:
55413
55886
  reader.skipType(tag & 7);
@@ -55418,37 +55891,37 @@ $root.org = (function() {
55418
55891
  };
55419
55892
 
55420
55893
  /**
55421
- * Decodes a GetTokenDirectPurchasePricesRequest message from the specified reader or buffer, length delimited.
55894
+ * Decodes a GetTokenContractInfoRequest message from the specified reader or buffer, length delimited.
55422
55895
  * @function decodeDelimited
55423
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
55896
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
55424
55897
  * @static
55425
55898
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55426
- * @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} GetTokenDirectPurchasePricesRequest
55899
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoRequest} GetTokenContractInfoRequest
55427
55900
  * @throws {Error} If the payload is not a reader or valid buffer
55428
55901
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
55429
55902
  */
55430
- GetTokenDirectPurchasePricesRequest.decodeDelimited = function decodeDelimited(reader) {
55903
+ GetTokenContractInfoRequest.decodeDelimited = function decodeDelimited(reader) {
55431
55904
  if (!(reader instanceof $Reader))
55432
55905
  reader = new $Reader(reader);
55433
55906
  return this.decode(reader, reader.uint32());
55434
55907
  };
55435
55908
 
55436
55909
  /**
55437
- * Verifies a GetTokenDirectPurchasePricesRequest message.
55910
+ * Verifies a GetTokenContractInfoRequest message.
55438
55911
  * @function verify
55439
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
55912
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
55440
55913
  * @static
55441
55914
  * @param {Object.<string,*>} message Plain object to verify
55442
55915
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
55443
55916
  */
55444
- GetTokenDirectPurchasePricesRequest.verify = function verify(message) {
55917
+ GetTokenContractInfoRequest.verify = function verify(message) {
55445
55918
  if (typeof message !== "object" || message === null)
55446
55919
  return "object expected";
55447
55920
  var properties = {};
55448
55921
  if (message.v0 != null && message.hasOwnProperty("v0")) {
55449
55922
  properties.version = 1;
55450
55923
  {
55451
- var error = $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.verify(message.v0);
55924
+ var error = $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.verify(message.v0);
55452
55925
  if (error)
55453
55926
  return "v0." + error;
55454
55927
  }
@@ -55457,40 +55930,40 @@ $root.org = (function() {
55457
55930
  };
55458
55931
 
55459
55932
  /**
55460
- * Creates a GetTokenDirectPurchasePricesRequest message from a plain object. Also converts values to their respective internal types.
55933
+ * Creates a GetTokenContractInfoRequest message from a plain object. Also converts values to their respective internal types.
55461
55934
  * @function fromObject
55462
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
55935
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
55463
55936
  * @static
55464
55937
  * @param {Object.<string,*>} object Plain object
55465
- * @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} GetTokenDirectPurchasePricesRequest
55938
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoRequest} GetTokenContractInfoRequest
55466
55939
  */
55467
- GetTokenDirectPurchasePricesRequest.fromObject = function fromObject(object) {
55468
- if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest)
55940
+ GetTokenContractInfoRequest.fromObject = function fromObject(object) {
55941
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest)
55469
55942
  return object;
55470
- var message = new $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest();
55943
+ var message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest();
55471
55944
  if (object.v0 != null) {
55472
55945
  if (typeof object.v0 !== "object")
55473
- throw TypeError(".org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.v0: object expected");
55474
- message.v0 = $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.fromObject(object.v0);
55946
+ throw TypeError(".org.dash.platform.dapi.v0.GetTokenContractInfoRequest.v0: object expected");
55947
+ message.v0 = $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.fromObject(object.v0);
55475
55948
  }
55476
55949
  return message;
55477
55950
  };
55478
55951
 
55479
55952
  /**
55480
- * Creates a plain object from a GetTokenDirectPurchasePricesRequest message. Also converts values to other types if specified.
55953
+ * Creates a plain object from a GetTokenContractInfoRequest message. Also converts values to other types if specified.
55481
55954
  * @function toObject
55482
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
55955
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
55483
55956
  * @static
55484
- * @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} message GetTokenDirectPurchasePricesRequest
55957
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoRequest} message GetTokenContractInfoRequest
55485
55958
  * @param {$protobuf.IConversionOptions} [options] Conversion options
55486
55959
  * @returns {Object.<string,*>} Plain object
55487
55960
  */
55488
- GetTokenDirectPurchasePricesRequest.toObject = function toObject(message, options) {
55961
+ GetTokenContractInfoRequest.toObject = function toObject(message, options) {
55489
55962
  if (!options)
55490
55963
  options = {};
55491
55964
  var object = {};
55492
55965
  if (message.v0 != null && message.hasOwnProperty("v0")) {
55493
- object.v0 = $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.toObject(message.v0, options);
55966
+ object.v0 = $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.toObject(message.v0, options);
55494
55967
  if (options.oneofs)
55495
55968
  object.version = "v0";
55496
55969
  }
@@ -55498,36 +55971,35 @@ $root.org = (function() {
55498
55971
  };
55499
55972
 
55500
55973
  /**
55501
- * Converts this GetTokenDirectPurchasePricesRequest to JSON.
55974
+ * Converts this GetTokenContractInfoRequest to JSON.
55502
55975
  * @function toJSON
55503
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
55976
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
55504
55977
  * @instance
55505
55978
  * @returns {Object.<string,*>} JSON object
55506
55979
  */
55507
- GetTokenDirectPurchasePricesRequest.prototype.toJSON = function toJSON() {
55980
+ GetTokenContractInfoRequest.prototype.toJSON = function toJSON() {
55508
55981
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
55509
55982
  };
55510
55983
 
55511
- GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0 = (function() {
55984
+ GetTokenContractInfoRequest.GetTokenContractInfoRequestV0 = (function() {
55512
55985
 
55513
55986
  /**
55514
- * Properties of a GetTokenDirectPurchasePricesRequestV0.
55515
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
55516
- * @interface IGetTokenDirectPurchasePricesRequestV0
55517
- * @property {Array.<Uint8Array>|null} [tokenIds] GetTokenDirectPurchasePricesRequestV0 tokenIds
55518
- * @property {boolean|null} [prove] GetTokenDirectPurchasePricesRequestV0 prove
55987
+ * Properties of a GetTokenContractInfoRequestV0.
55988
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
55989
+ * @interface IGetTokenContractInfoRequestV0
55990
+ * @property {Uint8Array|null} [tokenId] GetTokenContractInfoRequestV0 tokenId
55991
+ * @property {boolean|null} [prove] GetTokenContractInfoRequestV0 prove
55519
55992
  */
55520
55993
 
55521
55994
  /**
55522
- * Constructs a new GetTokenDirectPurchasePricesRequestV0.
55523
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest
55524
- * @classdesc Represents a GetTokenDirectPurchasePricesRequestV0.
55525
- * @implements IGetTokenDirectPurchasePricesRequestV0
55995
+ * Constructs a new GetTokenContractInfoRequestV0.
55996
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest
55997
+ * @classdesc Represents a GetTokenContractInfoRequestV0.
55998
+ * @implements IGetTokenContractInfoRequestV0
55526
55999
  * @constructor
55527
- * @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0=} [properties] Properties to set
56000
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.IGetTokenContractInfoRequestV0=} [properties] Properties to set
55528
56001
  */
55529
- function GetTokenDirectPurchasePricesRequestV0(properties) {
55530
- this.tokenIds = [];
56002
+ function GetTokenContractInfoRequestV0(properties) {
55531
56003
  if (properties)
55532
56004
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
55533
56005
  if (properties[keys[i]] != null)
@@ -55535,88 +56007,85 @@ $root.org = (function() {
55535
56007
  }
55536
56008
 
55537
56009
  /**
55538
- * GetTokenDirectPurchasePricesRequestV0 tokenIds.
55539
- * @member {Array.<Uint8Array>} tokenIds
55540
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
56010
+ * GetTokenContractInfoRequestV0 tokenId.
56011
+ * @member {Uint8Array} tokenId
56012
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
55541
56013
  * @instance
55542
56014
  */
55543
- GetTokenDirectPurchasePricesRequestV0.prototype.tokenIds = $util.emptyArray;
56015
+ GetTokenContractInfoRequestV0.prototype.tokenId = $util.newBuffer([]);
55544
56016
 
55545
56017
  /**
55546
- * GetTokenDirectPurchasePricesRequestV0 prove.
56018
+ * GetTokenContractInfoRequestV0 prove.
55547
56019
  * @member {boolean} prove
55548
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
56020
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
55549
56021
  * @instance
55550
56022
  */
55551
- GetTokenDirectPurchasePricesRequestV0.prototype.prove = false;
56023
+ GetTokenContractInfoRequestV0.prototype.prove = false;
55552
56024
 
55553
56025
  /**
55554
- * Creates a new GetTokenDirectPurchasePricesRequestV0 instance using the specified properties.
56026
+ * Creates a new GetTokenContractInfoRequestV0 instance using the specified properties.
55555
56027
  * @function create
55556
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
56028
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
55557
56029
  * @static
55558
- * @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0=} [properties] Properties to set
55559
- * @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} GetTokenDirectPurchasePricesRequestV0 instance
56030
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.IGetTokenContractInfoRequestV0=} [properties] Properties to set
56031
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0} GetTokenContractInfoRequestV0 instance
55560
56032
  */
55561
- GetTokenDirectPurchasePricesRequestV0.create = function create(properties) {
55562
- return new GetTokenDirectPurchasePricesRequestV0(properties);
56033
+ GetTokenContractInfoRequestV0.create = function create(properties) {
56034
+ return new GetTokenContractInfoRequestV0(properties);
55563
56035
  };
55564
56036
 
55565
56037
  /**
55566
- * Encodes the specified GetTokenDirectPurchasePricesRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.verify|verify} messages.
56038
+ * Encodes the specified GetTokenContractInfoRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.verify|verify} messages.
55567
56039
  * @function encode
55568
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
56040
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
55569
56041
  * @static
55570
- * @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0} message GetTokenDirectPurchasePricesRequestV0 message or plain object to encode
56042
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.IGetTokenContractInfoRequestV0} message GetTokenContractInfoRequestV0 message or plain object to encode
55571
56043
  * @param {$protobuf.Writer} [writer] Writer to encode to
55572
56044
  * @returns {$protobuf.Writer} Writer
55573
56045
  */
55574
- GetTokenDirectPurchasePricesRequestV0.encode = function encode(message, writer) {
56046
+ GetTokenContractInfoRequestV0.encode = function encode(message, writer) {
55575
56047
  if (!writer)
55576
56048
  writer = $Writer.create();
55577
- if (message.tokenIds != null && message.tokenIds.length)
55578
- for (var i = 0; i < message.tokenIds.length; ++i)
55579
- writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tokenIds[i]);
56049
+ if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
56050
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tokenId);
55580
56051
  if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
55581
56052
  writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
55582
56053
  return writer;
55583
56054
  };
55584
56055
 
55585
56056
  /**
55586
- * Encodes the specified GetTokenDirectPurchasePricesRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.verify|verify} messages.
56057
+ * Encodes the specified GetTokenContractInfoRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.verify|verify} messages.
55587
56058
  * @function encodeDelimited
55588
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
56059
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
55589
56060
  * @static
55590
- * @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.IGetTokenDirectPurchasePricesRequestV0} message GetTokenDirectPurchasePricesRequestV0 message or plain object to encode
56061
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.IGetTokenContractInfoRequestV0} message GetTokenContractInfoRequestV0 message or plain object to encode
55591
56062
  * @param {$protobuf.Writer} [writer] Writer to encode to
55592
56063
  * @returns {$protobuf.Writer} Writer
55593
56064
  */
55594
- GetTokenDirectPurchasePricesRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
56065
+ GetTokenContractInfoRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
55595
56066
  return this.encode(message, writer).ldelim();
55596
56067
  };
55597
56068
 
55598
56069
  /**
55599
- * Decodes a GetTokenDirectPurchasePricesRequestV0 message from the specified reader or buffer.
56070
+ * Decodes a GetTokenContractInfoRequestV0 message from the specified reader or buffer.
55600
56071
  * @function decode
55601
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
56072
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
55602
56073
  * @static
55603
56074
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55604
56075
  * @param {number} [length] Message length if known beforehand
55605
- * @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} GetTokenDirectPurchasePricesRequestV0
56076
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0} GetTokenContractInfoRequestV0
55606
56077
  * @throws {Error} If the payload is not a reader or valid buffer
55607
56078
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
55608
56079
  */
55609
- GetTokenDirectPurchasePricesRequestV0.decode = function decode(reader, length) {
56080
+ GetTokenContractInfoRequestV0.decode = function decode(reader, length) {
55610
56081
  if (!(reader instanceof $Reader))
55611
56082
  reader = $Reader.create(reader);
55612
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0();
56083
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0();
55613
56084
  while (reader.pos < end) {
55614
56085
  var tag = reader.uint32();
55615
56086
  switch (tag >>> 3) {
55616
56087
  case 1:
55617
- if (!(message.tokenIds && message.tokenIds.length))
55618
- message.tokenIds = [];
55619
- message.tokenIds.push(reader.bytes());
56088
+ message.tokenId = reader.bytes();
55620
56089
  break;
55621
56090
  case 2:
55622
56091
  message.prove = reader.bool();
@@ -55630,39 +56099,35 @@ $root.org = (function() {
55630
56099
  };
55631
56100
 
55632
56101
  /**
55633
- * Decodes a GetTokenDirectPurchasePricesRequestV0 message from the specified reader or buffer, length delimited.
56102
+ * Decodes a GetTokenContractInfoRequestV0 message from the specified reader or buffer, length delimited.
55634
56103
  * @function decodeDelimited
55635
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
56104
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
55636
56105
  * @static
55637
56106
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55638
- * @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} GetTokenDirectPurchasePricesRequestV0
56107
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0} GetTokenContractInfoRequestV0
55639
56108
  * @throws {Error} If the payload is not a reader or valid buffer
55640
56109
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
55641
56110
  */
55642
- GetTokenDirectPurchasePricesRequestV0.decodeDelimited = function decodeDelimited(reader) {
56111
+ GetTokenContractInfoRequestV0.decodeDelimited = function decodeDelimited(reader) {
55643
56112
  if (!(reader instanceof $Reader))
55644
56113
  reader = new $Reader(reader);
55645
56114
  return this.decode(reader, reader.uint32());
55646
56115
  };
55647
56116
 
55648
56117
  /**
55649
- * Verifies a GetTokenDirectPurchasePricesRequestV0 message.
56118
+ * Verifies a GetTokenContractInfoRequestV0 message.
55650
56119
  * @function verify
55651
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
56120
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
55652
56121
  * @static
55653
56122
  * @param {Object.<string,*>} message Plain object to verify
55654
56123
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
55655
56124
  */
55656
- GetTokenDirectPurchasePricesRequestV0.verify = function verify(message) {
56125
+ GetTokenContractInfoRequestV0.verify = function verify(message) {
55657
56126
  if (typeof message !== "object" || message === null)
55658
56127
  return "object expected";
55659
- if (message.tokenIds != null && message.hasOwnProperty("tokenIds")) {
55660
- if (!Array.isArray(message.tokenIds))
55661
- return "tokenIds: array expected";
55662
- for (var i = 0; i < message.tokenIds.length; ++i)
55663
- if (!(message.tokenIds[i] && typeof message.tokenIds[i].length === "number" || $util.isString(message.tokenIds[i])))
55664
- return "tokenIds: buffer[] expected";
55665
- }
56128
+ if (message.tokenId != null && message.hasOwnProperty("tokenId"))
56129
+ if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
56130
+ return "tokenId: buffer expected";
55666
56131
  if (message.prove != null && message.hasOwnProperty("prove"))
55667
56132
  if (typeof message.prove !== "boolean")
55668
56133
  return "prove: boolean expected";
@@ -55670,74 +56135,775 @@ $root.org = (function() {
55670
56135
  };
55671
56136
 
55672
56137
  /**
55673
- * Creates a GetTokenDirectPurchasePricesRequestV0 message from a plain object. Also converts values to their respective internal types.
56138
+ * Creates a GetTokenContractInfoRequestV0 message from a plain object. Also converts values to their respective internal types.
55674
56139
  * @function fromObject
55675
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
56140
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
55676
56141
  * @static
55677
56142
  * @param {Object.<string,*>} object Plain object
55678
- * @returns {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} GetTokenDirectPurchasePricesRequestV0
56143
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0} GetTokenContractInfoRequestV0
55679
56144
  */
55680
- GetTokenDirectPurchasePricesRequestV0.fromObject = function fromObject(object) {
55681
- if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0)
56145
+ GetTokenContractInfoRequestV0.fromObject = function fromObject(object) {
56146
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0)
55682
56147
  return object;
55683
- var message = new $root.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0();
55684
- if (object.tokenIds) {
55685
- if (!Array.isArray(object.tokenIds))
55686
- throw TypeError(".org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.tokenIds: array expected");
55687
- message.tokenIds = [];
55688
- for (var i = 0; i < object.tokenIds.length; ++i)
55689
- if (typeof object.tokenIds[i] === "string")
55690
- $util.base64.decode(object.tokenIds[i], message.tokenIds[i] = $util.newBuffer($util.base64.length(object.tokenIds[i])), 0);
55691
- else if (object.tokenIds[i].length >= 0)
55692
- message.tokenIds[i] = object.tokenIds[i];
55693
- }
56148
+ var message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0();
56149
+ if (object.tokenId != null)
56150
+ if (typeof object.tokenId === "string")
56151
+ $util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
56152
+ else if (object.tokenId.length >= 0)
56153
+ message.tokenId = object.tokenId;
55694
56154
  if (object.prove != null)
55695
56155
  message.prove = Boolean(object.prove);
55696
56156
  return message;
55697
56157
  };
55698
56158
 
55699
56159
  /**
55700
- * Creates a plain object from a GetTokenDirectPurchasePricesRequestV0 message. Also converts values to other types if specified.
56160
+ * Creates a plain object from a GetTokenContractInfoRequestV0 message. Also converts values to other types if specified.
55701
56161
  * @function toObject
55702
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
56162
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
55703
56163
  * @static
55704
- * @param {org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} message GetTokenDirectPurchasePricesRequestV0
56164
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0} message GetTokenContractInfoRequestV0
55705
56165
  * @param {$protobuf.IConversionOptions} [options] Conversion options
55706
56166
  * @returns {Object.<string,*>} Plain object
55707
56167
  */
55708
- GetTokenDirectPurchasePricesRequestV0.toObject = function toObject(message, options) {
56168
+ GetTokenContractInfoRequestV0.toObject = function toObject(message, options) {
55709
56169
  if (!options)
55710
56170
  options = {};
55711
56171
  var object = {};
55712
- if (options.arrays || options.defaults)
55713
- object.tokenIds = [];
55714
- if (options.defaults)
56172
+ if (options.defaults) {
56173
+ if (options.bytes === String)
56174
+ object.tokenId = "";
56175
+ else {
56176
+ object.tokenId = [];
56177
+ if (options.bytes !== Array)
56178
+ object.tokenId = $util.newBuffer(object.tokenId);
56179
+ }
55715
56180
  object.prove = false;
55716
- if (message.tokenIds && message.tokenIds.length) {
55717
- object.tokenIds = [];
55718
- for (var j = 0; j < message.tokenIds.length; ++j)
55719
- 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];
55720
56181
  }
56182
+ if (message.tokenId != null && message.hasOwnProperty("tokenId"))
56183
+ 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;
55721
56184
  if (message.prove != null && message.hasOwnProperty("prove"))
55722
56185
  object.prove = message.prove;
55723
56186
  return object;
55724
56187
  };
55725
56188
 
55726
56189
  /**
55727
- * Converts this GetTokenDirectPurchasePricesRequestV0 to JSON.
56190
+ * Converts this GetTokenContractInfoRequestV0 to JSON.
55728
56191
  * @function toJSON
55729
- * @memberof org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0
56192
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0
55730
56193
  * @instance
55731
56194
  * @returns {Object.<string,*>} JSON object
55732
56195
  */
55733
- GetTokenDirectPurchasePricesRequestV0.prototype.toJSON = function toJSON() {
56196
+ GetTokenContractInfoRequestV0.prototype.toJSON = function toJSON() {
55734
56197
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
55735
56198
  };
55736
56199
 
55737
- return GetTokenDirectPurchasePricesRequestV0;
56200
+ return GetTokenContractInfoRequestV0;
55738
56201
  })();
55739
56202
 
55740
- return GetTokenDirectPurchasePricesRequest;
56203
+ return GetTokenContractInfoRequest;
56204
+ })();
56205
+
56206
+ v0.GetTokenContractInfoResponse = (function() {
56207
+
56208
+ /**
56209
+ * Properties of a GetTokenContractInfoResponse.
56210
+ * @memberof org.dash.platform.dapi.v0
56211
+ * @interface IGetTokenContractInfoResponse
56212
+ * @property {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.IGetTokenContractInfoResponseV0|null} [v0] GetTokenContractInfoResponse v0
56213
+ */
56214
+
56215
+ /**
56216
+ * Constructs a new GetTokenContractInfoResponse.
56217
+ * @memberof org.dash.platform.dapi.v0
56218
+ * @classdesc Represents a GetTokenContractInfoResponse.
56219
+ * @implements IGetTokenContractInfoResponse
56220
+ * @constructor
56221
+ * @param {org.dash.platform.dapi.v0.IGetTokenContractInfoResponse=} [properties] Properties to set
56222
+ */
56223
+ function GetTokenContractInfoResponse(properties) {
56224
+ if (properties)
56225
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
56226
+ if (properties[keys[i]] != null)
56227
+ this[keys[i]] = properties[keys[i]];
56228
+ }
56229
+
56230
+ /**
56231
+ * GetTokenContractInfoResponse v0.
56232
+ * @member {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.IGetTokenContractInfoResponseV0|null|undefined} v0
56233
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
56234
+ * @instance
56235
+ */
56236
+ GetTokenContractInfoResponse.prototype.v0 = null;
56237
+
56238
+ // OneOf field names bound to virtual getters and setters
56239
+ var $oneOfFields;
56240
+
56241
+ /**
56242
+ * GetTokenContractInfoResponse version.
56243
+ * @member {"v0"|undefined} version
56244
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
56245
+ * @instance
56246
+ */
56247
+ Object.defineProperty(GetTokenContractInfoResponse.prototype, "version", {
56248
+ get: $util.oneOfGetter($oneOfFields = ["v0"]),
56249
+ set: $util.oneOfSetter($oneOfFields)
56250
+ });
56251
+
56252
+ /**
56253
+ * Creates a new GetTokenContractInfoResponse instance using the specified properties.
56254
+ * @function create
56255
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
56256
+ * @static
56257
+ * @param {org.dash.platform.dapi.v0.IGetTokenContractInfoResponse=} [properties] Properties to set
56258
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse} GetTokenContractInfoResponse instance
56259
+ */
56260
+ GetTokenContractInfoResponse.create = function create(properties) {
56261
+ return new GetTokenContractInfoResponse(properties);
56262
+ };
56263
+
56264
+ /**
56265
+ * Encodes the specified GetTokenContractInfoResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoResponse.verify|verify} messages.
56266
+ * @function encode
56267
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
56268
+ * @static
56269
+ * @param {org.dash.platform.dapi.v0.IGetTokenContractInfoResponse} message GetTokenContractInfoResponse message or plain object to encode
56270
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56271
+ * @returns {$protobuf.Writer} Writer
56272
+ */
56273
+ GetTokenContractInfoResponse.encode = function encode(message, writer) {
56274
+ if (!writer)
56275
+ writer = $Writer.create();
56276
+ if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
56277
+ $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
56278
+ return writer;
56279
+ };
56280
+
56281
+ /**
56282
+ * Encodes the specified GetTokenContractInfoResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoResponse.verify|verify} messages.
56283
+ * @function encodeDelimited
56284
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
56285
+ * @static
56286
+ * @param {org.dash.platform.dapi.v0.IGetTokenContractInfoResponse} message GetTokenContractInfoResponse message or plain object to encode
56287
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56288
+ * @returns {$protobuf.Writer} Writer
56289
+ */
56290
+ GetTokenContractInfoResponse.encodeDelimited = function encodeDelimited(message, writer) {
56291
+ return this.encode(message, writer).ldelim();
56292
+ };
56293
+
56294
+ /**
56295
+ * Decodes a GetTokenContractInfoResponse message from the specified reader or buffer.
56296
+ * @function decode
56297
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
56298
+ * @static
56299
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56300
+ * @param {number} [length] Message length if known beforehand
56301
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse} GetTokenContractInfoResponse
56302
+ * @throws {Error} If the payload is not a reader or valid buffer
56303
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56304
+ */
56305
+ GetTokenContractInfoResponse.decode = function decode(reader, length) {
56306
+ if (!(reader instanceof $Reader))
56307
+ reader = $Reader.create(reader);
56308
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse();
56309
+ while (reader.pos < end) {
56310
+ var tag = reader.uint32();
56311
+ switch (tag >>> 3) {
56312
+ case 1:
56313
+ message.v0 = $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.decode(reader, reader.uint32());
56314
+ break;
56315
+ default:
56316
+ reader.skipType(tag & 7);
56317
+ break;
56318
+ }
56319
+ }
56320
+ return message;
56321
+ };
56322
+
56323
+ /**
56324
+ * Decodes a GetTokenContractInfoResponse message from the specified reader or buffer, length delimited.
56325
+ * @function decodeDelimited
56326
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
56327
+ * @static
56328
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56329
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse} GetTokenContractInfoResponse
56330
+ * @throws {Error} If the payload is not a reader or valid buffer
56331
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56332
+ */
56333
+ GetTokenContractInfoResponse.decodeDelimited = function decodeDelimited(reader) {
56334
+ if (!(reader instanceof $Reader))
56335
+ reader = new $Reader(reader);
56336
+ return this.decode(reader, reader.uint32());
56337
+ };
56338
+
56339
+ /**
56340
+ * Verifies a GetTokenContractInfoResponse message.
56341
+ * @function verify
56342
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
56343
+ * @static
56344
+ * @param {Object.<string,*>} message Plain object to verify
56345
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
56346
+ */
56347
+ GetTokenContractInfoResponse.verify = function verify(message) {
56348
+ if (typeof message !== "object" || message === null)
56349
+ return "object expected";
56350
+ var properties = {};
56351
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
56352
+ properties.version = 1;
56353
+ {
56354
+ var error = $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.verify(message.v0);
56355
+ if (error)
56356
+ return "v0." + error;
56357
+ }
56358
+ }
56359
+ return null;
56360
+ };
56361
+
56362
+ /**
56363
+ * Creates a GetTokenContractInfoResponse message from a plain object. Also converts values to their respective internal types.
56364
+ * @function fromObject
56365
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
56366
+ * @static
56367
+ * @param {Object.<string,*>} object Plain object
56368
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse} GetTokenContractInfoResponse
56369
+ */
56370
+ GetTokenContractInfoResponse.fromObject = function fromObject(object) {
56371
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse)
56372
+ return object;
56373
+ var message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse();
56374
+ if (object.v0 != null) {
56375
+ if (typeof object.v0 !== "object")
56376
+ throw TypeError(".org.dash.platform.dapi.v0.GetTokenContractInfoResponse.v0: object expected");
56377
+ message.v0 = $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.fromObject(object.v0);
56378
+ }
56379
+ return message;
56380
+ };
56381
+
56382
+ /**
56383
+ * Creates a plain object from a GetTokenContractInfoResponse message. Also converts values to other types if specified.
56384
+ * @function toObject
56385
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
56386
+ * @static
56387
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse} message GetTokenContractInfoResponse
56388
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
56389
+ * @returns {Object.<string,*>} Plain object
56390
+ */
56391
+ GetTokenContractInfoResponse.toObject = function toObject(message, options) {
56392
+ if (!options)
56393
+ options = {};
56394
+ var object = {};
56395
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
56396
+ object.v0 = $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.toObject(message.v0, options);
56397
+ if (options.oneofs)
56398
+ object.version = "v0";
56399
+ }
56400
+ return object;
56401
+ };
56402
+
56403
+ /**
56404
+ * Converts this GetTokenContractInfoResponse to JSON.
56405
+ * @function toJSON
56406
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
56407
+ * @instance
56408
+ * @returns {Object.<string,*>} JSON object
56409
+ */
56410
+ GetTokenContractInfoResponse.prototype.toJSON = function toJSON() {
56411
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
56412
+ };
56413
+
56414
+ GetTokenContractInfoResponse.GetTokenContractInfoResponseV0 = (function() {
56415
+
56416
+ /**
56417
+ * Properties of a GetTokenContractInfoResponseV0.
56418
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
56419
+ * @interface IGetTokenContractInfoResponseV0
56420
+ * @property {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.ITokenContractInfoData|null} [data] GetTokenContractInfoResponseV0 data
56421
+ * @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetTokenContractInfoResponseV0 proof
56422
+ * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetTokenContractInfoResponseV0 metadata
56423
+ */
56424
+
56425
+ /**
56426
+ * Constructs a new GetTokenContractInfoResponseV0.
56427
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse
56428
+ * @classdesc Represents a GetTokenContractInfoResponseV0.
56429
+ * @implements IGetTokenContractInfoResponseV0
56430
+ * @constructor
56431
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.IGetTokenContractInfoResponseV0=} [properties] Properties to set
56432
+ */
56433
+ function GetTokenContractInfoResponseV0(properties) {
56434
+ if (properties)
56435
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
56436
+ if (properties[keys[i]] != null)
56437
+ this[keys[i]] = properties[keys[i]];
56438
+ }
56439
+
56440
+ /**
56441
+ * GetTokenContractInfoResponseV0 data.
56442
+ * @member {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.ITokenContractInfoData|null|undefined} data
56443
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
56444
+ * @instance
56445
+ */
56446
+ GetTokenContractInfoResponseV0.prototype.data = null;
56447
+
56448
+ /**
56449
+ * GetTokenContractInfoResponseV0 proof.
56450
+ * @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
56451
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
56452
+ * @instance
56453
+ */
56454
+ GetTokenContractInfoResponseV0.prototype.proof = null;
56455
+
56456
+ /**
56457
+ * GetTokenContractInfoResponseV0 metadata.
56458
+ * @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
56459
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
56460
+ * @instance
56461
+ */
56462
+ GetTokenContractInfoResponseV0.prototype.metadata = null;
56463
+
56464
+ // OneOf field names bound to virtual getters and setters
56465
+ var $oneOfFields;
56466
+
56467
+ /**
56468
+ * GetTokenContractInfoResponseV0 result.
56469
+ * @member {"data"|"proof"|undefined} result
56470
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
56471
+ * @instance
56472
+ */
56473
+ Object.defineProperty(GetTokenContractInfoResponseV0.prototype, "result", {
56474
+ get: $util.oneOfGetter($oneOfFields = ["data", "proof"]),
56475
+ set: $util.oneOfSetter($oneOfFields)
56476
+ });
56477
+
56478
+ /**
56479
+ * Creates a new GetTokenContractInfoResponseV0 instance using the specified properties.
56480
+ * @function create
56481
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
56482
+ * @static
56483
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.IGetTokenContractInfoResponseV0=} [properties] Properties to set
56484
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} GetTokenContractInfoResponseV0 instance
56485
+ */
56486
+ GetTokenContractInfoResponseV0.create = function create(properties) {
56487
+ return new GetTokenContractInfoResponseV0(properties);
56488
+ };
56489
+
56490
+ /**
56491
+ * Encodes the specified GetTokenContractInfoResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.verify|verify} messages.
56492
+ * @function encode
56493
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
56494
+ * @static
56495
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.IGetTokenContractInfoResponseV0} message GetTokenContractInfoResponseV0 message or plain object to encode
56496
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56497
+ * @returns {$protobuf.Writer} Writer
56498
+ */
56499
+ GetTokenContractInfoResponseV0.encode = function encode(message, writer) {
56500
+ if (!writer)
56501
+ writer = $Writer.create();
56502
+ if (message.data != null && Object.hasOwnProperty.call(message, "data"))
56503
+ $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
56504
+ if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
56505
+ $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
56506
+ if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
56507
+ $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
56508
+ return writer;
56509
+ };
56510
+
56511
+ /**
56512
+ * Encodes the specified GetTokenContractInfoResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.verify|verify} messages.
56513
+ * @function encodeDelimited
56514
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
56515
+ * @static
56516
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.IGetTokenContractInfoResponseV0} message GetTokenContractInfoResponseV0 message or plain object to encode
56517
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56518
+ * @returns {$protobuf.Writer} Writer
56519
+ */
56520
+ GetTokenContractInfoResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
56521
+ return this.encode(message, writer).ldelim();
56522
+ };
56523
+
56524
+ /**
56525
+ * Decodes a GetTokenContractInfoResponseV0 message from the specified reader or buffer.
56526
+ * @function decode
56527
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
56528
+ * @static
56529
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56530
+ * @param {number} [length] Message length if known beforehand
56531
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} GetTokenContractInfoResponseV0
56532
+ * @throws {Error} If the payload is not a reader or valid buffer
56533
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56534
+ */
56535
+ GetTokenContractInfoResponseV0.decode = function decode(reader, length) {
56536
+ if (!(reader instanceof $Reader))
56537
+ reader = $Reader.create(reader);
56538
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0();
56539
+ while (reader.pos < end) {
56540
+ var tag = reader.uint32();
56541
+ switch (tag >>> 3) {
56542
+ case 1:
56543
+ message.data = $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.decode(reader, reader.uint32());
56544
+ break;
56545
+ case 2:
56546
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
56547
+ break;
56548
+ case 3:
56549
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
56550
+ break;
56551
+ default:
56552
+ reader.skipType(tag & 7);
56553
+ break;
56554
+ }
56555
+ }
56556
+ return message;
56557
+ };
56558
+
56559
+ /**
56560
+ * Decodes a GetTokenContractInfoResponseV0 message from the specified reader or buffer, length delimited.
56561
+ * @function decodeDelimited
56562
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
56563
+ * @static
56564
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56565
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} GetTokenContractInfoResponseV0
56566
+ * @throws {Error} If the payload is not a reader or valid buffer
56567
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56568
+ */
56569
+ GetTokenContractInfoResponseV0.decodeDelimited = function decodeDelimited(reader) {
56570
+ if (!(reader instanceof $Reader))
56571
+ reader = new $Reader(reader);
56572
+ return this.decode(reader, reader.uint32());
56573
+ };
56574
+
56575
+ /**
56576
+ * Verifies a GetTokenContractInfoResponseV0 message.
56577
+ * @function verify
56578
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
56579
+ * @static
56580
+ * @param {Object.<string,*>} message Plain object to verify
56581
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
56582
+ */
56583
+ GetTokenContractInfoResponseV0.verify = function verify(message) {
56584
+ if (typeof message !== "object" || message === null)
56585
+ return "object expected";
56586
+ var properties = {};
56587
+ if (message.data != null && message.hasOwnProperty("data")) {
56588
+ properties.result = 1;
56589
+ {
56590
+ var error = $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.verify(message.data);
56591
+ if (error)
56592
+ return "data." + error;
56593
+ }
56594
+ }
56595
+ if (message.proof != null && message.hasOwnProperty("proof")) {
56596
+ if (properties.result === 1)
56597
+ return "result: multiple values";
56598
+ properties.result = 1;
56599
+ {
56600
+ var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
56601
+ if (error)
56602
+ return "proof." + error;
56603
+ }
56604
+ }
56605
+ if (message.metadata != null && message.hasOwnProperty("metadata")) {
56606
+ var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
56607
+ if (error)
56608
+ return "metadata." + error;
56609
+ }
56610
+ return null;
56611
+ };
56612
+
56613
+ /**
56614
+ * Creates a GetTokenContractInfoResponseV0 message from a plain object. Also converts values to their respective internal types.
56615
+ * @function fromObject
56616
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
56617
+ * @static
56618
+ * @param {Object.<string,*>} object Plain object
56619
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} GetTokenContractInfoResponseV0
56620
+ */
56621
+ GetTokenContractInfoResponseV0.fromObject = function fromObject(object) {
56622
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0)
56623
+ return object;
56624
+ var message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0();
56625
+ if (object.data != null) {
56626
+ if (typeof object.data !== "object")
56627
+ throw TypeError(".org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.data: object expected");
56628
+ message.data = $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.fromObject(object.data);
56629
+ }
56630
+ if (object.proof != null) {
56631
+ if (typeof object.proof !== "object")
56632
+ throw TypeError(".org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.proof: object expected");
56633
+ message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
56634
+ }
56635
+ if (object.metadata != null) {
56636
+ if (typeof object.metadata !== "object")
56637
+ throw TypeError(".org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.metadata: object expected");
56638
+ message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
56639
+ }
56640
+ return message;
56641
+ };
56642
+
56643
+ /**
56644
+ * Creates a plain object from a GetTokenContractInfoResponseV0 message. Also converts values to other types if specified.
56645
+ * @function toObject
56646
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
56647
+ * @static
56648
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} message GetTokenContractInfoResponseV0
56649
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
56650
+ * @returns {Object.<string,*>} Plain object
56651
+ */
56652
+ GetTokenContractInfoResponseV0.toObject = function toObject(message, options) {
56653
+ if (!options)
56654
+ options = {};
56655
+ var object = {};
56656
+ if (options.defaults)
56657
+ object.metadata = null;
56658
+ if (message.data != null && message.hasOwnProperty("data")) {
56659
+ object.data = $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.toObject(message.data, options);
56660
+ if (options.oneofs)
56661
+ object.result = "data";
56662
+ }
56663
+ if (message.proof != null && message.hasOwnProperty("proof")) {
56664
+ object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
56665
+ if (options.oneofs)
56666
+ object.result = "proof";
56667
+ }
56668
+ if (message.metadata != null && message.hasOwnProperty("metadata"))
56669
+ object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
56670
+ return object;
56671
+ };
56672
+
56673
+ /**
56674
+ * Converts this GetTokenContractInfoResponseV0 to JSON.
56675
+ * @function toJSON
56676
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
56677
+ * @instance
56678
+ * @returns {Object.<string,*>} JSON object
56679
+ */
56680
+ GetTokenContractInfoResponseV0.prototype.toJSON = function toJSON() {
56681
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
56682
+ };
56683
+
56684
+ GetTokenContractInfoResponseV0.TokenContractInfoData = (function() {
56685
+
56686
+ /**
56687
+ * Properties of a TokenContractInfoData.
56688
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
56689
+ * @interface ITokenContractInfoData
56690
+ * @property {Uint8Array|null} [contractId] TokenContractInfoData contractId
56691
+ * @property {number|null} [tokenContractPosition] TokenContractInfoData tokenContractPosition
56692
+ */
56693
+
56694
+ /**
56695
+ * Constructs a new TokenContractInfoData.
56696
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0
56697
+ * @classdesc Represents a TokenContractInfoData.
56698
+ * @implements ITokenContractInfoData
56699
+ * @constructor
56700
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.ITokenContractInfoData=} [properties] Properties to set
56701
+ */
56702
+ function TokenContractInfoData(properties) {
56703
+ if (properties)
56704
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
56705
+ if (properties[keys[i]] != null)
56706
+ this[keys[i]] = properties[keys[i]];
56707
+ }
56708
+
56709
+ /**
56710
+ * TokenContractInfoData contractId.
56711
+ * @member {Uint8Array} contractId
56712
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
56713
+ * @instance
56714
+ */
56715
+ TokenContractInfoData.prototype.contractId = $util.newBuffer([]);
56716
+
56717
+ /**
56718
+ * TokenContractInfoData tokenContractPosition.
56719
+ * @member {number} tokenContractPosition
56720
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
56721
+ * @instance
56722
+ */
56723
+ TokenContractInfoData.prototype.tokenContractPosition = 0;
56724
+
56725
+ /**
56726
+ * Creates a new TokenContractInfoData instance using the specified properties.
56727
+ * @function create
56728
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
56729
+ * @static
56730
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.ITokenContractInfoData=} [properties] Properties to set
56731
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData} TokenContractInfoData instance
56732
+ */
56733
+ TokenContractInfoData.create = function create(properties) {
56734
+ return new TokenContractInfoData(properties);
56735
+ };
56736
+
56737
+ /**
56738
+ * Encodes the specified TokenContractInfoData message. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.verify|verify} messages.
56739
+ * @function encode
56740
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
56741
+ * @static
56742
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.ITokenContractInfoData} message TokenContractInfoData message or plain object to encode
56743
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56744
+ * @returns {$protobuf.Writer} Writer
56745
+ */
56746
+ TokenContractInfoData.encode = function encode(message, writer) {
56747
+ if (!writer)
56748
+ writer = $Writer.create();
56749
+ if (message.contractId != null && Object.hasOwnProperty.call(message, "contractId"))
56750
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.contractId);
56751
+ if (message.tokenContractPosition != null && Object.hasOwnProperty.call(message, "tokenContractPosition"))
56752
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.tokenContractPosition);
56753
+ return writer;
56754
+ };
56755
+
56756
+ /**
56757
+ * Encodes the specified TokenContractInfoData message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.verify|verify} messages.
56758
+ * @function encodeDelimited
56759
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
56760
+ * @static
56761
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.ITokenContractInfoData} message TokenContractInfoData message or plain object to encode
56762
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56763
+ * @returns {$protobuf.Writer} Writer
56764
+ */
56765
+ TokenContractInfoData.encodeDelimited = function encodeDelimited(message, writer) {
56766
+ return this.encode(message, writer).ldelim();
56767
+ };
56768
+
56769
+ /**
56770
+ * Decodes a TokenContractInfoData message from the specified reader or buffer.
56771
+ * @function decode
56772
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
56773
+ * @static
56774
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56775
+ * @param {number} [length] Message length if known beforehand
56776
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData} TokenContractInfoData
56777
+ * @throws {Error} If the payload is not a reader or valid buffer
56778
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56779
+ */
56780
+ TokenContractInfoData.decode = function decode(reader, length) {
56781
+ if (!(reader instanceof $Reader))
56782
+ reader = $Reader.create(reader);
56783
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData();
56784
+ while (reader.pos < end) {
56785
+ var tag = reader.uint32();
56786
+ switch (tag >>> 3) {
56787
+ case 1:
56788
+ message.contractId = reader.bytes();
56789
+ break;
56790
+ case 2:
56791
+ message.tokenContractPosition = reader.uint32();
56792
+ break;
56793
+ default:
56794
+ reader.skipType(tag & 7);
56795
+ break;
56796
+ }
56797
+ }
56798
+ return message;
56799
+ };
56800
+
56801
+ /**
56802
+ * Decodes a TokenContractInfoData message from the specified reader or buffer, length delimited.
56803
+ * @function decodeDelimited
56804
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
56805
+ * @static
56806
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56807
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData} TokenContractInfoData
56808
+ * @throws {Error} If the payload is not a reader or valid buffer
56809
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56810
+ */
56811
+ TokenContractInfoData.decodeDelimited = function decodeDelimited(reader) {
56812
+ if (!(reader instanceof $Reader))
56813
+ reader = new $Reader(reader);
56814
+ return this.decode(reader, reader.uint32());
56815
+ };
56816
+
56817
+ /**
56818
+ * Verifies a TokenContractInfoData message.
56819
+ * @function verify
56820
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
56821
+ * @static
56822
+ * @param {Object.<string,*>} message Plain object to verify
56823
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
56824
+ */
56825
+ TokenContractInfoData.verify = function verify(message) {
56826
+ if (typeof message !== "object" || message === null)
56827
+ return "object expected";
56828
+ if (message.contractId != null && message.hasOwnProperty("contractId"))
56829
+ if (!(message.contractId && typeof message.contractId.length === "number" || $util.isString(message.contractId)))
56830
+ return "contractId: buffer expected";
56831
+ if (message.tokenContractPosition != null && message.hasOwnProperty("tokenContractPosition"))
56832
+ if (!$util.isInteger(message.tokenContractPosition))
56833
+ return "tokenContractPosition: integer expected";
56834
+ return null;
56835
+ };
56836
+
56837
+ /**
56838
+ * Creates a TokenContractInfoData message from a plain object. Also converts values to their respective internal types.
56839
+ * @function fromObject
56840
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
56841
+ * @static
56842
+ * @param {Object.<string,*>} object Plain object
56843
+ * @returns {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData} TokenContractInfoData
56844
+ */
56845
+ TokenContractInfoData.fromObject = function fromObject(object) {
56846
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData)
56847
+ return object;
56848
+ var message = new $root.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData();
56849
+ if (object.contractId != null)
56850
+ if (typeof object.contractId === "string")
56851
+ $util.base64.decode(object.contractId, message.contractId = $util.newBuffer($util.base64.length(object.contractId)), 0);
56852
+ else if (object.contractId.length >= 0)
56853
+ message.contractId = object.contractId;
56854
+ if (object.tokenContractPosition != null)
56855
+ message.tokenContractPosition = object.tokenContractPosition >>> 0;
56856
+ return message;
56857
+ };
56858
+
56859
+ /**
56860
+ * Creates a plain object from a TokenContractInfoData message. Also converts values to other types if specified.
56861
+ * @function toObject
56862
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
56863
+ * @static
56864
+ * @param {org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData} message TokenContractInfoData
56865
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
56866
+ * @returns {Object.<string,*>} Plain object
56867
+ */
56868
+ TokenContractInfoData.toObject = function toObject(message, options) {
56869
+ if (!options)
56870
+ options = {};
56871
+ var object = {};
56872
+ if (options.defaults) {
56873
+ if (options.bytes === String)
56874
+ object.contractId = "";
56875
+ else {
56876
+ object.contractId = [];
56877
+ if (options.bytes !== Array)
56878
+ object.contractId = $util.newBuffer(object.contractId);
56879
+ }
56880
+ object.tokenContractPosition = 0;
56881
+ }
56882
+ if (message.contractId != null && message.hasOwnProperty("contractId"))
56883
+ 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;
56884
+ if (message.tokenContractPosition != null && message.hasOwnProperty("tokenContractPosition"))
56885
+ object.tokenContractPosition = message.tokenContractPosition;
56886
+ return object;
56887
+ };
56888
+
56889
+ /**
56890
+ * Converts this TokenContractInfoData to JSON.
56891
+ * @function toJSON
56892
+ * @memberof org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData
56893
+ * @instance
56894
+ * @returns {Object.<string,*>} JSON object
56895
+ */
56896
+ TokenContractInfoData.prototype.toJSON = function toJSON() {
56897
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
56898
+ };
56899
+
56900
+ return TokenContractInfoData;
56901
+ })();
56902
+
56903
+ return GetTokenContractInfoResponseV0;
56904
+ })();
56905
+
56906
+ return GetTokenContractInfoResponse;
55741
56907
  })();
55742
56908
 
55743
56909
  v0.GetTokenPreProgrammedDistributionsRequest = (function() {