@dashevo/dapi-grpc 2.0.0-rc.12 → 2.0.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/build.rs +4 -2
- package/clients/drive/v0/nodejs/drive_pbjs.js +1318 -152
- package/clients/platform/v0/nodejs/platform_pbjs.js +1318 -152
- package/clients/platform/v0/nodejs/platform_protoc.js +1217 -105
- package/clients/platform/v0/web/platform_pb.d.ts +174 -25
- package/clients/platform/v0/web/platform_pb.js +1217 -105
- package/clients/platform/v0/web/platform_pb_service.d.ts +19 -0
- package/clients/platform/v0/web/platform_pb_service.js +40 -0
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +64 -16
|
@@ -371,6 +371,14 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusRe
|
|
|
371
371
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash', null, { proto });
|
|
372
372
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software', null, { proto });
|
|
373
373
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.VersionCase', null, { proto });
|
|
374
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest', null, { proto });
|
|
375
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0', null, { proto });
|
|
376
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.VersionCase', null, { proto });
|
|
377
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse', null, { proto });
|
|
378
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0', null, { proto });
|
|
379
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.ResultCase', null, { proto });
|
|
380
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData', null, { proto });
|
|
381
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.VersionCase', null, { proto });
|
|
374
382
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest', null, { proto });
|
|
375
383
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0', null, { proto });
|
|
376
384
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.VersionCase', null, { proto });
|
|
@@ -5013,6 +5021,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
5013
5021
|
*/
|
|
5014
5022
|
proto.org.dash.platform.dapi.v0.GetTokenStatusesResponse.GetTokenStatusesResponseV0.TokenStatuses.displayName = 'proto.org.dash.platform.dapi.v0.GetTokenStatusesResponse.GetTokenStatusesResponseV0.TokenStatuses';
|
|
5015
5023
|
}
|
|
5024
|
+
/**
|
|
5025
|
+
* Generated by JsPbCodeGenerator.
|
|
5026
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5027
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5028
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5029
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5030
|
+
* valid.
|
|
5031
|
+
* @extends {jspb.Message}
|
|
5032
|
+
* @constructor
|
|
5033
|
+
*/
|
|
5034
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest = function(opt_data) {
|
|
5035
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.oneofGroups_);
|
|
5036
|
+
};
|
|
5037
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest, jspb.Message);
|
|
5038
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5039
|
+
/**
|
|
5040
|
+
* @public
|
|
5041
|
+
* @override
|
|
5042
|
+
*/
|
|
5043
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest';
|
|
5044
|
+
}
|
|
5045
|
+
/**
|
|
5046
|
+
* Generated by JsPbCodeGenerator.
|
|
5047
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5048
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5049
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5050
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5051
|
+
* valid.
|
|
5052
|
+
* @extends {jspb.Message}
|
|
5053
|
+
* @constructor
|
|
5054
|
+
*/
|
|
5055
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0 = function(opt_data) {
|
|
5056
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.repeatedFields_, null);
|
|
5057
|
+
};
|
|
5058
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0, jspb.Message);
|
|
5059
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5060
|
+
/**
|
|
5061
|
+
* @public
|
|
5062
|
+
* @override
|
|
5063
|
+
*/
|
|
5064
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.displayName = 'proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0';
|
|
5065
|
+
}
|
|
5016
5066
|
/**
|
|
5017
5067
|
* Generated by JsPbCodeGenerator.
|
|
5018
5068
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -5149,16 +5199,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
5149
5199
|
* @extends {jspb.Message}
|
|
5150
5200
|
* @constructor
|
|
5151
5201
|
*/
|
|
5152
|
-
proto.org.dash.platform.dapi.v0.
|
|
5153
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.
|
|
5202
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest = function(opt_data) {
|
|
5203
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.oneofGroups_);
|
|
5154
5204
|
};
|
|
5155
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
5205
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest, jspb.Message);
|
|
5156
5206
|
if (goog.DEBUG && !COMPILED) {
|
|
5157
5207
|
/**
|
|
5158
5208
|
* @public
|
|
5159
5209
|
* @override
|
|
5160
5210
|
*/
|
|
5161
|
-
proto.org.dash.platform.dapi.v0.
|
|
5211
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest';
|
|
5162
5212
|
}
|
|
5163
5213
|
/**
|
|
5164
5214
|
* Generated by JsPbCodeGenerator.
|
|
@@ -5170,16 +5220,79 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
5170
5220
|
* @extends {jspb.Message}
|
|
5171
5221
|
* @constructor
|
|
5172
5222
|
*/
|
|
5173
|
-
proto.org.dash.platform.dapi.v0.
|
|
5174
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
5223
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0 = function(opt_data) {
|
|
5224
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5175
5225
|
};
|
|
5176
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
5226
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0, jspb.Message);
|
|
5177
5227
|
if (goog.DEBUG && !COMPILED) {
|
|
5178
5228
|
/**
|
|
5179
5229
|
* @public
|
|
5180
5230
|
* @override
|
|
5181
5231
|
*/
|
|
5182
|
-
proto.org.dash.platform.dapi.v0.
|
|
5232
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.displayName = 'proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0';
|
|
5233
|
+
}
|
|
5234
|
+
/**
|
|
5235
|
+
* Generated by JsPbCodeGenerator.
|
|
5236
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5237
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5238
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5239
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5240
|
+
* valid.
|
|
5241
|
+
* @extends {jspb.Message}
|
|
5242
|
+
* @constructor
|
|
5243
|
+
*/
|
|
5244
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse = function(opt_data) {
|
|
5245
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.oneofGroups_);
|
|
5246
|
+
};
|
|
5247
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse, jspb.Message);
|
|
5248
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5249
|
+
/**
|
|
5250
|
+
* @public
|
|
5251
|
+
* @override
|
|
5252
|
+
*/
|
|
5253
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse';
|
|
5254
|
+
}
|
|
5255
|
+
/**
|
|
5256
|
+
* Generated by JsPbCodeGenerator.
|
|
5257
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5258
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5259
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5260
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5261
|
+
* valid.
|
|
5262
|
+
* @extends {jspb.Message}
|
|
5263
|
+
* @constructor
|
|
5264
|
+
*/
|
|
5265
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0 = function(opt_data) {
|
|
5266
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.oneofGroups_);
|
|
5267
|
+
};
|
|
5268
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0, jspb.Message);
|
|
5269
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5270
|
+
/**
|
|
5271
|
+
* @public
|
|
5272
|
+
* @override
|
|
5273
|
+
*/
|
|
5274
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.displayName = 'proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0';
|
|
5275
|
+
}
|
|
5276
|
+
/**
|
|
5277
|
+
* Generated by JsPbCodeGenerator.
|
|
5278
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5279
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
5280
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5281
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5282
|
+
* valid.
|
|
5283
|
+
* @extends {jspb.Message}
|
|
5284
|
+
* @constructor
|
|
5285
|
+
*/
|
|
5286
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData = function(opt_data) {
|
|
5287
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5288
|
+
};
|
|
5289
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData, jspb.Message);
|
|
5290
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5291
|
+
/**
|
|
5292
|
+
* @public
|
|
5293
|
+
* @override
|
|
5294
|
+
*/
|
|
5295
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.displayName = 'proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData';
|
|
5183
5296
|
}
|
|
5184
5297
|
/**
|
|
5185
5298
|
* Generated by JsPbCodeGenerator.
|
|
@@ -53515,6 +53628,392 @@ proto.org.dash.platform.dapi.v0.GetTokenStatusesResponse.prototype.hasV0 = funct
|
|
|
53515
53628
|
|
|
53516
53629
|
|
|
53517
53630
|
|
|
53631
|
+
/**
|
|
53632
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
53633
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
53634
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
53635
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
53636
|
+
* @private {!Array<!Array<number>>}
|
|
53637
|
+
* @const
|
|
53638
|
+
*/
|
|
53639
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.oneofGroups_ = [[1]];
|
|
53640
|
+
|
|
53641
|
+
/**
|
|
53642
|
+
* @enum {number}
|
|
53643
|
+
*/
|
|
53644
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.VersionCase = {
|
|
53645
|
+
VERSION_NOT_SET: 0,
|
|
53646
|
+
V0: 1
|
|
53647
|
+
};
|
|
53648
|
+
|
|
53649
|
+
/**
|
|
53650
|
+
* @return {proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.VersionCase}
|
|
53651
|
+
*/
|
|
53652
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.prototype.getVersionCase = function() {
|
|
53653
|
+
return /** @type {proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.oneofGroups_[0]));
|
|
53654
|
+
};
|
|
53655
|
+
|
|
53656
|
+
|
|
53657
|
+
|
|
53658
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53659
|
+
/**
|
|
53660
|
+
* Creates an object representation of this proto.
|
|
53661
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
53662
|
+
* Optional fields that are not set will be set to undefined.
|
|
53663
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
53664
|
+
* For the list of reserved names please see:
|
|
53665
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
53666
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
53667
|
+
* JSPB instance for transitional soy proto support:
|
|
53668
|
+
* http://goto/soy-param-migration
|
|
53669
|
+
* @return {!Object}
|
|
53670
|
+
*/
|
|
53671
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
53672
|
+
return proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.toObject(opt_includeInstance, this);
|
|
53673
|
+
};
|
|
53674
|
+
|
|
53675
|
+
|
|
53676
|
+
/**
|
|
53677
|
+
* Static version of the {@see toObject} method.
|
|
53678
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
53679
|
+
* the JSPB instance for transitional soy proto support:
|
|
53680
|
+
* http://goto/soy-param-migration
|
|
53681
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} msg The msg instance to transform.
|
|
53682
|
+
* @return {!Object}
|
|
53683
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53684
|
+
*/
|
|
53685
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.toObject = function(includeInstance, msg) {
|
|
53686
|
+
var f, obj = {
|
|
53687
|
+
v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.toObject(includeInstance, f)
|
|
53688
|
+
};
|
|
53689
|
+
|
|
53690
|
+
if (includeInstance) {
|
|
53691
|
+
obj.$jspbMessageInstance = msg;
|
|
53692
|
+
}
|
|
53693
|
+
return obj;
|
|
53694
|
+
};
|
|
53695
|
+
}
|
|
53696
|
+
|
|
53697
|
+
|
|
53698
|
+
/**
|
|
53699
|
+
* Deserializes binary data (in protobuf wire format).
|
|
53700
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
53701
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest}
|
|
53702
|
+
*/
|
|
53703
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.deserializeBinary = function(bytes) {
|
|
53704
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
53705
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest;
|
|
53706
|
+
return proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.deserializeBinaryFromReader(msg, reader);
|
|
53707
|
+
};
|
|
53708
|
+
|
|
53709
|
+
|
|
53710
|
+
/**
|
|
53711
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
53712
|
+
* given reader into the given message object.
|
|
53713
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} msg The message object to deserialize into.
|
|
53714
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
53715
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest}
|
|
53716
|
+
*/
|
|
53717
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
53718
|
+
while (reader.nextField()) {
|
|
53719
|
+
if (reader.isEndGroup()) {
|
|
53720
|
+
break;
|
|
53721
|
+
}
|
|
53722
|
+
var field = reader.getFieldNumber();
|
|
53723
|
+
switch (field) {
|
|
53724
|
+
case 1:
|
|
53725
|
+
var value = new proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0;
|
|
53726
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.deserializeBinaryFromReader);
|
|
53727
|
+
msg.setV0(value);
|
|
53728
|
+
break;
|
|
53729
|
+
default:
|
|
53730
|
+
reader.skipField();
|
|
53731
|
+
break;
|
|
53732
|
+
}
|
|
53733
|
+
}
|
|
53734
|
+
return msg;
|
|
53735
|
+
};
|
|
53736
|
+
|
|
53737
|
+
|
|
53738
|
+
/**
|
|
53739
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
53740
|
+
* @return {!Uint8Array}
|
|
53741
|
+
*/
|
|
53742
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.prototype.serializeBinary = function() {
|
|
53743
|
+
var writer = new jspb.BinaryWriter();
|
|
53744
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.serializeBinaryToWriter(this, writer);
|
|
53745
|
+
return writer.getResultBuffer();
|
|
53746
|
+
};
|
|
53747
|
+
|
|
53748
|
+
|
|
53749
|
+
/**
|
|
53750
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
53751
|
+
* format), writing to the given BinaryWriter.
|
|
53752
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} message
|
|
53753
|
+
* @param {!jspb.BinaryWriter} writer
|
|
53754
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53755
|
+
*/
|
|
53756
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
53757
|
+
var f = undefined;
|
|
53758
|
+
f = message.getV0();
|
|
53759
|
+
if (f != null) {
|
|
53760
|
+
writer.writeMessage(
|
|
53761
|
+
1,
|
|
53762
|
+
f,
|
|
53763
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.serializeBinaryToWriter
|
|
53764
|
+
);
|
|
53765
|
+
}
|
|
53766
|
+
};
|
|
53767
|
+
|
|
53768
|
+
|
|
53769
|
+
|
|
53770
|
+
/**
|
|
53771
|
+
* List of repeated fields within this message type.
|
|
53772
|
+
* @private {!Array<number>}
|
|
53773
|
+
* @const
|
|
53774
|
+
*/
|
|
53775
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.repeatedFields_ = [1];
|
|
53776
|
+
|
|
53777
|
+
|
|
53778
|
+
|
|
53779
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53780
|
+
/**
|
|
53781
|
+
* Creates an object representation of this proto.
|
|
53782
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
53783
|
+
* Optional fields that are not set will be set to undefined.
|
|
53784
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
53785
|
+
* For the list of reserved names please see:
|
|
53786
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
53787
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
53788
|
+
* JSPB instance for transitional soy proto support:
|
|
53789
|
+
* http://goto/soy-param-migration
|
|
53790
|
+
* @return {!Object}
|
|
53791
|
+
*/
|
|
53792
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.prototype.toObject = function(opt_includeInstance) {
|
|
53793
|
+
return proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.toObject(opt_includeInstance, this);
|
|
53794
|
+
};
|
|
53795
|
+
|
|
53796
|
+
|
|
53797
|
+
/**
|
|
53798
|
+
* Static version of the {@see toObject} method.
|
|
53799
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
53800
|
+
* the JSPB instance for transitional soy proto support:
|
|
53801
|
+
* http://goto/soy-param-migration
|
|
53802
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} msg The msg instance to transform.
|
|
53803
|
+
* @return {!Object}
|
|
53804
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53805
|
+
*/
|
|
53806
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.toObject = function(includeInstance, msg) {
|
|
53807
|
+
var f, obj = {
|
|
53808
|
+
tokenIdsList: msg.getTokenIdsList_asB64(),
|
|
53809
|
+
prove: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
53810
|
+
};
|
|
53811
|
+
|
|
53812
|
+
if (includeInstance) {
|
|
53813
|
+
obj.$jspbMessageInstance = msg;
|
|
53814
|
+
}
|
|
53815
|
+
return obj;
|
|
53816
|
+
};
|
|
53817
|
+
}
|
|
53818
|
+
|
|
53819
|
+
|
|
53820
|
+
/**
|
|
53821
|
+
* Deserializes binary data (in protobuf wire format).
|
|
53822
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
53823
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0}
|
|
53824
|
+
*/
|
|
53825
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.deserializeBinary = function(bytes) {
|
|
53826
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
53827
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0;
|
|
53828
|
+
return proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.deserializeBinaryFromReader(msg, reader);
|
|
53829
|
+
};
|
|
53830
|
+
|
|
53831
|
+
|
|
53832
|
+
/**
|
|
53833
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
53834
|
+
* given reader into the given message object.
|
|
53835
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} msg The message object to deserialize into.
|
|
53836
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
53837
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0}
|
|
53838
|
+
*/
|
|
53839
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.deserializeBinaryFromReader = function(msg, reader) {
|
|
53840
|
+
while (reader.nextField()) {
|
|
53841
|
+
if (reader.isEndGroup()) {
|
|
53842
|
+
break;
|
|
53843
|
+
}
|
|
53844
|
+
var field = reader.getFieldNumber();
|
|
53845
|
+
switch (field) {
|
|
53846
|
+
case 1:
|
|
53847
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
53848
|
+
msg.addTokenIds(value);
|
|
53849
|
+
break;
|
|
53850
|
+
case 2:
|
|
53851
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
53852
|
+
msg.setProve(value);
|
|
53853
|
+
break;
|
|
53854
|
+
default:
|
|
53855
|
+
reader.skipField();
|
|
53856
|
+
break;
|
|
53857
|
+
}
|
|
53858
|
+
}
|
|
53859
|
+
return msg;
|
|
53860
|
+
};
|
|
53861
|
+
|
|
53862
|
+
|
|
53863
|
+
/**
|
|
53864
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
53865
|
+
* @return {!Uint8Array}
|
|
53866
|
+
*/
|
|
53867
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.prototype.serializeBinary = function() {
|
|
53868
|
+
var writer = new jspb.BinaryWriter();
|
|
53869
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.serializeBinaryToWriter(this, writer);
|
|
53870
|
+
return writer.getResultBuffer();
|
|
53871
|
+
};
|
|
53872
|
+
|
|
53873
|
+
|
|
53874
|
+
/**
|
|
53875
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
53876
|
+
* format), writing to the given BinaryWriter.
|
|
53877
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} message
|
|
53878
|
+
* @param {!jspb.BinaryWriter} writer
|
|
53879
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53880
|
+
*/
|
|
53881
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.serializeBinaryToWriter = function(message, writer) {
|
|
53882
|
+
var f = undefined;
|
|
53883
|
+
f = message.getTokenIdsList_asU8();
|
|
53884
|
+
if (f.length > 0) {
|
|
53885
|
+
writer.writeRepeatedBytes(
|
|
53886
|
+
1,
|
|
53887
|
+
f
|
|
53888
|
+
);
|
|
53889
|
+
}
|
|
53890
|
+
f = message.getProve();
|
|
53891
|
+
if (f) {
|
|
53892
|
+
writer.writeBool(
|
|
53893
|
+
2,
|
|
53894
|
+
f
|
|
53895
|
+
);
|
|
53896
|
+
}
|
|
53897
|
+
};
|
|
53898
|
+
|
|
53899
|
+
|
|
53900
|
+
/**
|
|
53901
|
+
* repeated bytes token_ids = 1;
|
|
53902
|
+
* @return {!Array<string>}
|
|
53903
|
+
*/
|
|
53904
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.prototype.getTokenIdsList = function() {
|
|
53905
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
53906
|
+
};
|
|
53907
|
+
|
|
53908
|
+
|
|
53909
|
+
/**
|
|
53910
|
+
* repeated bytes token_ids = 1;
|
|
53911
|
+
* This is a type-conversion wrapper around `getTokenIdsList()`
|
|
53912
|
+
* @return {!Array<string>}
|
|
53913
|
+
*/
|
|
53914
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.prototype.getTokenIdsList_asB64 = function() {
|
|
53915
|
+
return /** @type {!Array<string>} */ (jspb.Message.bytesListAsB64(
|
|
53916
|
+
this.getTokenIdsList()));
|
|
53917
|
+
};
|
|
53918
|
+
|
|
53919
|
+
|
|
53920
|
+
/**
|
|
53921
|
+
* repeated bytes token_ids = 1;
|
|
53922
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
53923
|
+
* @see http://caniuse.com/Uint8Array
|
|
53924
|
+
* This is a type-conversion wrapper around `getTokenIdsList()`
|
|
53925
|
+
* @return {!Array<!Uint8Array>}
|
|
53926
|
+
*/
|
|
53927
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.prototype.getTokenIdsList_asU8 = function() {
|
|
53928
|
+
return /** @type {!Array<!Uint8Array>} */ (jspb.Message.bytesListAsU8(
|
|
53929
|
+
this.getTokenIdsList()));
|
|
53930
|
+
};
|
|
53931
|
+
|
|
53932
|
+
|
|
53933
|
+
/**
|
|
53934
|
+
* @param {!(Array<!Uint8Array>|Array<string>)} value
|
|
53935
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} returns this
|
|
53936
|
+
*/
|
|
53937
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.prototype.setTokenIdsList = function(value) {
|
|
53938
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
53939
|
+
};
|
|
53940
|
+
|
|
53941
|
+
|
|
53942
|
+
/**
|
|
53943
|
+
* @param {!(string|Uint8Array)} value
|
|
53944
|
+
* @param {number=} opt_index
|
|
53945
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} returns this
|
|
53946
|
+
*/
|
|
53947
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.prototype.addTokenIds = function(value, opt_index) {
|
|
53948
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
53949
|
+
};
|
|
53950
|
+
|
|
53951
|
+
|
|
53952
|
+
/**
|
|
53953
|
+
* Clears the list making it empty but non-null.
|
|
53954
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} returns this
|
|
53955
|
+
*/
|
|
53956
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.prototype.clearTokenIdsList = function() {
|
|
53957
|
+
return this.setTokenIdsList([]);
|
|
53958
|
+
};
|
|
53959
|
+
|
|
53960
|
+
|
|
53961
|
+
/**
|
|
53962
|
+
* optional bool prove = 2;
|
|
53963
|
+
* @return {boolean}
|
|
53964
|
+
*/
|
|
53965
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.prototype.getProve = function() {
|
|
53966
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
53967
|
+
};
|
|
53968
|
+
|
|
53969
|
+
|
|
53970
|
+
/**
|
|
53971
|
+
* @param {boolean} value
|
|
53972
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} returns this
|
|
53973
|
+
*/
|
|
53974
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.prototype.setProve = function(value) {
|
|
53975
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
53976
|
+
};
|
|
53977
|
+
|
|
53978
|
+
|
|
53979
|
+
/**
|
|
53980
|
+
* optional GetTokenDirectPurchasePricesRequestV0 v0 = 1;
|
|
53981
|
+
* @return {?proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0}
|
|
53982
|
+
*/
|
|
53983
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.prototype.getV0 = function() {
|
|
53984
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} */ (
|
|
53985
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0, 1));
|
|
53986
|
+
};
|
|
53987
|
+
|
|
53988
|
+
|
|
53989
|
+
/**
|
|
53990
|
+
* @param {?proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0|undefined} value
|
|
53991
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} returns this
|
|
53992
|
+
*/
|
|
53993
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.prototype.setV0 = function(value) {
|
|
53994
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.oneofGroups_[0], value);
|
|
53995
|
+
};
|
|
53996
|
+
|
|
53997
|
+
|
|
53998
|
+
/**
|
|
53999
|
+
* Clears the message field making it undefined.
|
|
54000
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest} returns this
|
|
54001
|
+
*/
|
|
54002
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.prototype.clearV0 = function() {
|
|
54003
|
+
return this.setV0(undefined);
|
|
54004
|
+
};
|
|
54005
|
+
|
|
54006
|
+
|
|
54007
|
+
/**
|
|
54008
|
+
* Returns whether this field is set.
|
|
54009
|
+
* @return {boolean}
|
|
54010
|
+
*/
|
|
54011
|
+
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.prototype.hasV0 = function() {
|
|
54012
|
+
return jspb.Message.getField(this, 1) != null;
|
|
54013
|
+
};
|
|
54014
|
+
|
|
54015
|
+
|
|
54016
|
+
|
|
53518
54017
|
/**
|
|
53519
54018
|
* Oneof group definitions for this message. Each group defines the field
|
|
53520
54019
|
* numbers belonging to that group. When of these fields' value is set, all
|
|
@@ -54737,21 +55236,21 @@ proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesResponse.prototype.h
|
|
|
54737
55236
|
* @private {!Array<!Array<number>>}
|
|
54738
55237
|
* @const
|
|
54739
55238
|
*/
|
|
54740
|
-
proto.org.dash.platform.dapi.v0.
|
|
55239
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.oneofGroups_ = [[1]];
|
|
54741
55240
|
|
|
54742
55241
|
/**
|
|
54743
55242
|
* @enum {number}
|
|
54744
55243
|
*/
|
|
54745
|
-
proto.org.dash.platform.dapi.v0.
|
|
55244
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.VersionCase = {
|
|
54746
55245
|
VERSION_NOT_SET: 0,
|
|
54747
55246
|
V0: 1
|
|
54748
55247
|
};
|
|
54749
55248
|
|
|
54750
55249
|
/**
|
|
54751
|
-
* @return {proto.org.dash.platform.dapi.v0.
|
|
55250
|
+
* @return {proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.VersionCase}
|
|
54752
55251
|
*/
|
|
54753
|
-
proto.org.dash.platform.dapi.v0.
|
|
54754
|
-
return /** @type {proto.org.dash.platform.dapi.v0.
|
|
55252
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.prototype.getVersionCase = function() {
|
|
55253
|
+
return /** @type {proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.oneofGroups_[0]));
|
|
54755
55254
|
};
|
|
54756
55255
|
|
|
54757
55256
|
|
|
@@ -54769,8 +55268,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
54769
55268
|
* http://goto/soy-param-migration
|
|
54770
55269
|
* @return {!Object}
|
|
54771
55270
|
*/
|
|
54772
|
-
proto.org.dash.platform.dapi.v0.
|
|
54773
|
-
return proto.org.dash.platform.dapi.v0.
|
|
55271
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.prototype.toObject = function(opt_includeInstance) {
|
|
55272
|
+
return proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.toObject(opt_includeInstance, this);
|
|
54774
55273
|
};
|
|
54775
55274
|
|
|
54776
55275
|
|
|
@@ -54779,13 +55278,13 @@ proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.prototype.to
|
|
|
54779
55278
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
54780
55279
|
* the JSPB instance for transitional soy proto support:
|
|
54781
55280
|
* http://goto/soy-param-migration
|
|
54782
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
55281
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest} msg The msg instance to transform.
|
|
54783
55282
|
* @return {!Object}
|
|
54784
55283
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54785
55284
|
*/
|
|
54786
|
-
proto.org.dash.platform.dapi.v0.
|
|
55285
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.toObject = function(includeInstance, msg) {
|
|
54787
55286
|
var f, obj = {
|
|
54788
|
-
v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.
|
|
55287
|
+
v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.toObject(includeInstance, f)
|
|
54789
55288
|
};
|
|
54790
55289
|
|
|
54791
55290
|
if (includeInstance) {
|
|
@@ -54799,23 +55298,23 @@ proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.toObject = f
|
|
|
54799
55298
|
/**
|
|
54800
55299
|
* Deserializes binary data (in protobuf wire format).
|
|
54801
55300
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
54802
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
55301
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest}
|
|
54803
55302
|
*/
|
|
54804
|
-
proto.org.dash.platform.dapi.v0.
|
|
55303
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.deserializeBinary = function(bytes) {
|
|
54805
55304
|
var reader = new jspb.BinaryReader(bytes);
|
|
54806
|
-
var msg = new proto.org.dash.platform.dapi.v0.
|
|
54807
|
-
return proto.org.dash.platform.dapi.v0.
|
|
55305
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest;
|
|
55306
|
+
return proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.deserializeBinaryFromReader(msg, reader);
|
|
54808
55307
|
};
|
|
54809
55308
|
|
|
54810
55309
|
|
|
54811
55310
|
/**
|
|
54812
55311
|
* Deserializes binary data (in protobuf wire format) from the
|
|
54813
55312
|
* given reader into the given message object.
|
|
54814
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
55313
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest} msg The message object to deserialize into.
|
|
54815
55314
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
54816
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
55315
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest}
|
|
54817
55316
|
*/
|
|
54818
|
-
proto.org.dash.platform.dapi.v0.
|
|
55317
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
54819
55318
|
while (reader.nextField()) {
|
|
54820
55319
|
if (reader.isEndGroup()) {
|
|
54821
55320
|
break;
|
|
@@ -54823,8 +55322,8 @@ proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.deserializeB
|
|
|
54823
55322
|
var field = reader.getFieldNumber();
|
|
54824
55323
|
switch (field) {
|
|
54825
55324
|
case 1:
|
|
54826
|
-
var value = new proto.org.dash.platform.dapi.v0.
|
|
54827
|
-
reader.readMessage(value,proto.org.dash.platform.dapi.v0.
|
|
55325
|
+
var value = new proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0;
|
|
55326
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.deserializeBinaryFromReader);
|
|
54828
55327
|
msg.setV0(value);
|
|
54829
55328
|
break;
|
|
54830
55329
|
default:
|
|
@@ -54840,9 +55339,9 @@ proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.deserializeB
|
|
|
54840
55339
|
* Serializes the message to binary data (in protobuf wire format).
|
|
54841
55340
|
* @return {!Uint8Array}
|
|
54842
55341
|
*/
|
|
54843
|
-
proto.org.dash.platform.dapi.v0.
|
|
55342
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.prototype.serializeBinary = function() {
|
|
54844
55343
|
var writer = new jspb.BinaryWriter();
|
|
54845
|
-
proto.org.dash.platform.dapi.v0.
|
|
55344
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.serializeBinaryToWriter(this, writer);
|
|
54846
55345
|
return writer.getResultBuffer();
|
|
54847
55346
|
};
|
|
54848
55347
|
|
|
@@ -54850,31 +55349,24 @@ proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.prototype.se
|
|
|
54850
55349
|
/**
|
|
54851
55350
|
* Serializes the given message to binary data (in protobuf wire
|
|
54852
55351
|
* format), writing to the given BinaryWriter.
|
|
54853
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
55352
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest} message
|
|
54854
55353
|
* @param {!jspb.BinaryWriter} writer
|
|
54855
55354
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54856
55355
|
*/
|
|
54857
|
-
proto.org.dash.platform.dapi.v0.
|
|
55356
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.serializeBinaryToWriter = function(message, writer) {
|
|
54858
55357
|
var f = undefined;
|
|
54859
55358
|
f = message.getV0();
|
|
54860
55359
|
if (f != null) {
|
|
54861
55360
|
writer.writeMessage(
|
|
54862
55361
|
1,
|
|
54863
55362
|
f,
|
|
54864
|
-
proto.org.dash.platform.dapi.v0.
|
|
55363
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.serializeBinaryToWriter
|
|
54865
55364
|
);
|
|
54866
55365
|
}
|
|
54867
55366
|
};
|
|
54868
55367
|
|
|
54869
55368
|
|
|
54870
55369
|
|
|
54871
|
-
/**
|
|
54872
|
-
* List of repeated fields within this message type.
|
|
54873
|
-
* @private {!Array<number>}
|
|
54874
|
-
* @const
|
|
54875
|
-
*/
|
|
54876
|
-
proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0.repeatedFields_ = [1];
|
|
54877
|
-
|
|
54878
55370
|
|
|
54879
55371
|
|
|
54880
55372
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -54890,8 +55382,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
54890
55382
|
* http://goto/soy-param-migration
|
|
54891
55383
|
* @return {!Object}
|
|
54892
55384
|
*/
|
|
54893
|
-
proto.org.dash.platform.dapi.v0.
|
|
54894
|
-
return proto.org.dash.platform.dapi.v0.
|
|
55385
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.prototype.toObject = function(opt_includeInstance) {
|
|
55386
|
+
return proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.toObject(opt_includeInstance, this);
|
|
54895
55387
|
};
|
|
54896
55388
|
|
|
54897
55389
|
|
|
@@ -54900,13 +55392,13 @@ proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDire
|
|
|
54900
55392
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
54901
55393
|
* the JSPB instance for transitional soy proto support:
|
|
54902
55394
|
* http://goto/soy-param-migration
|
|
54903
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
55395
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0} msg The msg instance to transform.
|
|
54904
55396
|
* @return {!Object}
|
|
54905
55397
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54906
55398
|
*/
|
|
54907
|
-
proto.org.dash.platform.dapi.v0.
|
|
55399
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.toObject = function(includeInstance, msg) {
|
|
54908
55400
|
var f, obj = {
|
|
54909
|
-
|
|
55401
|
+
tokenId: msg.getTokenId_asB64(),
|
|
54910
55402
|
prove: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
54911
55403
|
};
|
|
54912
55404
|
|
|
@@ -54921,23 +55413,23 @@ proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDire
|
|
|
54921
55413
|
/**
|
|
54922
55414
|
* Deserializes binary data (in protobuf wire format).
|
|
54923
55415
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
54924
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
55416
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0}
|
|
54925
55417
|
*/
|
|
54926
|
-
proto.org.dash.platform.dapi.v0.
|
|
55418
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.deserializeBinary = function(bytes) {
|
|
54927
55419
|
var reader = new jspb.BinaryReader(bytes);
|
|
54928
|
-
var msg = new proto.org.dash.platform.dapi.v0.
|
|
54929
|
-
return proto.org.dash.platform.dapi.v0.
|
|
55420
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0;
|
|
55421
|
+
return proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.deserializeBinaryFromReader(msg, reader);
|
|
54930
55422
|
};
|
|
54931
55423
|
|
|
54932
55424
|
|
|
54933
55425
|
/**
|
|
54934
55426
|
* Deserializes binary data (in protobuf wire format) from the
|
|
54935
55427
|
* given reader into the given message object.
|
|
54936
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
55428
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0} msg The message object to deserialize into.
|
|
54937
55429
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
54938
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
55430
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0}
|
|
54939
55431
|
*/
|
|
54940
|
-
proto.org.dash.platform.dapi.v0.
|
|
55432
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.deserializeBinaryFromReader = function(msg, reader) {
|
|
54941
55433
|
while (reader.nextField()) {
|
|
54942
55434
|
if (reader.isEndGroup()) {
|
|
54943
55435
|
break;
|
|
@@ -54946,7 +55438,7 @@ proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDire
|
|
|
54946
55438
|
switch (field) {
|
|
54947
55439
|
case 1:
|
|
54948
55440
|
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
54949
|
-
msg.
|
|
55441
|
+
msg.setTokenId(value);
|
|
54950
55442
|
break;
|
|
54951
55443
|
case 2:
|
|
54952
55444
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
@@ -54965,9 +55457,9 @@ proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDire
|
|
|
54965
55457
|
* Serializes the message to binary data (in protobuf wire format).
|
|
54966
55458
|
* @return {!Uint8Array}
|
|
54967
55459
|
*/
|
|
54968
|
-
proto.org.dash.platform.dapi.v0.
|
|
55460
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.prototype.serializeBinary = function() {
|
|
54969
55461
|
var writer = new jspb.BinaryWriter();
|
|
54970
|
-
proto.org.dash.platform.dapi.v0.
|
|
55462
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.serializeBinaryToWriter(this, writer);
|
|
54971
55463
|
return writer.getResultBuffer();
|
|
54972
55464
|
};
|
|
54973
55465
|
|
|
@@ -54975,15 +55467,15 @@ proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDire
|
|
|
54975
55467
|
/**
|
|
54976
55468
|
* Serializes the given message to binary data (in protobuf wire
|
|
54977
55469
|
* format), writing to the given BinaryWriter.
|
|
54978
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
55470
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0} message
|
|
54979
55471
|
* @param {!jspb.BinaryWriter} writer
|
|
54980
55472
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54981
55473
|
*/
|
|
54982
|
-
proto.org.dash.platform.dapi.v0.
|
|
55474
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.serializeBinaryToWriter = function(message, writer) {
|
|
54983
55475
|
var f = undefined;
|
|
54984
|
-
f = message.
|
|
55476
|
+
f = message.getTokenId_asU8();
|
|
54985
55477
|
if (f.length > 0) {
|
|
54986
|
-
writer.
|
|
55478
|
+
writer.writeBytes(
|
|
54987
55479
|
1,
|
|
54988
55480
|
f
|
|
54989
55481
|
);
|
|
@@ -54999,108 +55491,728 @@ proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDire
|
|
|
54999
55491
|
|
|
55000
55492
|
|
|
55001
55493
|
/**
|
|
55002
|
-
*
|
|
55003
|
-
* @return {
|
|
55494
|
+
* optional bytes token_id = 1;
|
|
55495
|
+
* @return {string}
|
|
55004
55496
|
*/
|
|
55005
|
-
proto.org.dash.platform.dapi.v0.
|
|
55006
|
-
return /** @type {
|
|
55497
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.prototype.getTokenId = function() {
|
|
55498
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
55007
55499
|
};
|
|
55008
55500
|
|
|
55009
55501
|
|
|
55010
55502
|
/**
|
|
55011
|
-
*
|
|
55012
|
-
* This is a type-conversion wrapper around `
|
|
55013
|
-
* @return {
|
|
55503
|
+
* optional bytes token_id = 1;
|
|
55504
|
+
* This is a type-conversion wrapper around `getTokenId()`
|
|
55505
|
+
* @return {string}
|
|
55014
55506
|
*/
|
|
55015
|
-
proto.org.dash.platform.dapi.v0.
|
|
55016
|
-
return /** @type {
|
|
55017
|
-
this.
|
|
55507
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.prototype.getTokenId_asB64 = function() {
|
|
55508
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
55509
|
+
this.getTokenId()));
|
|
55018
55510
|
};
|
|
55019
55511
|
|
|
55020
55512
|
|
|
55021
55513
|
/**
|
|
55022
|
-
*
|
|
55514
|
+
* optional bytes token_id = 1;
|
|
55023
55515
|
* Note that Uint8Array is not supported on all browsers.
|
|
55024
55516
|
* @see http://caniuse.com/Uint8Array
|
|
55025
|
-
* This is a type-conversion wrapper around `
|
|
55026
|
-
* @return {!
|
|
55517
|
+
* This is a type-conversion wrapper around `getTokenId()`
|
|
55518
|
+
* @return {!Uint8Array}
|
|
55027
55519
|
*/
|
|
55028
|
-
proto.org.dash.platform.dapi.v0.
|
|
55029
|
-
return /** @type {!
|
|
55030
|
-
this.
|
|
55520
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.prototype.getTokenId_asU8 = function() {
|
|
55521
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
55522
|
+
this.getTokenId()));
|
|
55031
55523
|
};
|
|
55032
55524
|
|
|
55033
55525
|
|
|
55034
55526
|
/**
|
|
55035
|
-
* @param {!(
|
|
55036
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
55527
|
+
* @param {!(string|Uint8Array)} value
|
|
55528
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0} returns this
|
|
55037
55529
|
*/
|
|
55038
|
-
proto.org.dash.platform.dapi.v0.
|
|
55039
|
-
return jspb.Message.
|
|
55530
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.prototype.setTokenId = function(value) {
|
|
55531
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
|
55532
|
+
};
|
|
55533
|
+
|
|
55534
|
+
|
|
55535
|
+
/**
|
|
55536
|
+
* optional bool prove = 2;
|
|
55537
|
+
* @return {boolean}
|
|
55538
|
+
*/
|
|
55539
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.prototype.getProve = function() {
|
|
55540
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
55541
|
+
};
|
|
55542
|
+
|
|
55543
|
+
|
|
55544
|
+
/**
|
|
55545
|
+
* @param {boolean} value
|
|
55546
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0} returns this
|
|
55547
|
+
*/
|
|
55548
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0.prototype.setProve = function(value) {
|
|
55549
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
55550
|
+
};
|
|
55551
|
+
|
|
55552
|
+
|
|
55553
|
+
/**
|
|
55554
|
+
* optional GetTokenContractInfoRequestV0 v0 = 1;
|
|
55555
|
+
* @return {?proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0}
|
|
55556
|
+
*/
|
|
55557
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.prototype.getV0 = function() {
|
|
55558
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0} */ (
|
|
55559
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0, 1));
|
|
55560
|
+
};
|
|
55561
|
+
|
|
55562
|
+
|
|
55563
|
+
/**
|
|
55564
|
+
* @param {?proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0|undefined} value
|
|
55565
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest} returns this
|
|
55566
|
+
*/
|
|
55567
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.prototype.setV0 = function(value) {
|
|
55568
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.oneofGroups_[0], value);
|
|
55569
|
+
};
|
|
55570
|
+
|
|
55571
|
+
|
|
55572
|
+
/**
|
|
55573
|
+
* Clears the message field making it undefined.
|
|
55574
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest} returns this
|
|
55575
|
+
*/
|
|
55576
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.prototype.clearV0 = function() {
|
|
55577
|
+
return this.setV0(undefined);
|
|
55578
|
+
};
|
|
55579
|
+
|
|
55580
|
+
|
|
55581
|
+
/**
|
|
55582
|
+
* Returns whether this field is set.
|
|
55583
|
+
* @return {boolean}
|
|
55584
|
+
*/
|
|
55585
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.prototype.hasV0 = function() {
|
|
55586
|
+
return jspb.Message.getField(this, 1) != null;
|
|
55587
|
+
};
|
|
55588
|
+
|
|
55589
|
+
|
|
55590
|
+
|
|
55591
|
+
/**
|
|
55592
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
55593
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
55594
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
55595
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
55596
|
+
* @private {!Array<!Array<number>>}
|
|
55597
|
+
* @const
|
|
55598
|
+
*/
|
|
55599
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.oneofGroups_ = [[1]];
|
|
55600
|
+
|
|
55601
|
+
/**
|
|
55602
|
+
* @enum {number}
|
|
55603
|
+
*/
|
|
55604
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.VersionCase = {
|
|
55605
|
+
VERSION_NOT_SET: 0,
|
|
55606
|
+
V0: 1
|
|
55607
|
+
};
|
|
55608
|
+
|
|
55609
|
+
/**
|
|
55610
|
+
* @return {proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.VersionCase}
|
|
55611
|
+
*/
|
|
55612
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.prototype.getVersionCase = function() {
|
|
55613
|
+
return /** @type {proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.oneofGroups_[0]));
|
|
55614
|
+
};
|
|
55615
|
+
|
|
55616
|
+
|
|
55617
|
+
|
|
55618
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
55619
|
+
/**
|
|
55620
|
+
* Creates an object representation of this proto.
|
|
55621
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
55622
|
+
* Optional fields that are not set will be set to undefined.
|
|
55623
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
55624
|
+
* For the list of reserved names please see:
|
|
55625
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
55626
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
55627
|
+
* JSPB instance for transitional soy proto support:
|
|
55628
|
+
* http://goto/soy-param-migration
|
|
55629
|
+
* @return {!Object}
|
|
55630
|
+
*/
|
|
55631
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.prototype.toObject = function(opt_includeInstance) {
|
|
55632
|
+
return proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.toObject(opt_includeInstance, this);
|
|
55633
|
+
};
|
|
55634
|
+
|
|
55635
|
+
|
|
55636
|
+
/**
|
|
55637
|
+
* Static version of the {@see toObject} method.
|
|
55638
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
55639
|
+
* the JSPB instance for transitional soy proto support:
|
|
55640
|
+
* http://goto/soy-param-migration
|
|
55641
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse} msg The msg instance to transform.
|
|
55642
|
+
* @return {!Object}
|
|
55643
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
55644
|
+
*/
|
|
55645
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.toObject = function(includeInstance, msg) {
|
|
55646
|
+
var f, obj = {
|
|
55647
|
+
v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.toObject(includeInstance, f)
|
|
55648
|
+
};
|
|
55649
|
+
|
|
55650
|
+
if (includeInstance) {
|
|
55651
|
+
obj.$jspbMessageInstance = msg;
|
|
55652
|
+
}
|
|
55653
|
+
return obj;
|
|
55654
|
+
};
|
|
55655
|
+
}
|
|
55656
|
+
|
|
55657
|
+
|
|
55658
|
+
/**
|
|
55659
|
+
* Deserializes binary data (in protobuf wire format).
|
|
55660
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
55661
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse}
|
|
55662
|
+
*/
|
|
55663
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.deserializeBinary = function(bytes) {
|
|
55664
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
55665
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse;
|
|
55666
|
+
return proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.deserializeBinaryFromReader(msg, reader);
|
|
55667
|
+
};
|
|
55668
|
+
|
|
55669
|
+
|
|
55670
|
+
/**
|
|
55671
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
55672
|
+
* given reader into the given message object.
|
|
55673
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse} msg The message object to deserialize into.
|
|
55674
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
55675
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse}
|
|
55676
|
+
*/
|
|
55677
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
55678
|
+
while (reader.nextField()) {
|
|
55679
|
+
if (reader.isEndGroup()) {
|
|
55680
|
+
break;
|
|
55681
|
+
}
|
|
55682
|
+
var field = reader.getFieldNumber();
|
|
55683
|
+
switch (field) {
|
|
55684
|
+
case 1:
|
|
55685
|
+
var value = new proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0;
|
|
55686
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.deserializeBinaryFromReader);
|
|
55687
|
+
msg.setV0(value);
|
|
55688
|
+
break;
|
|
55689
|
+
default:
|
|
55690
|
+
reader.skipField();
|
|
55691
|
+
break;
|
|
55692
|
+
}
|
|
55693
|
+
}
|
|
55694
|
+
return msg;
|
|
55695
|
+
};
|
|
55696
|
+
|
|
55697
|
+
|
|
55698
|
+
/**
|
|
55699
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
55700
|
+
* @return {!Uint8Array}
|
|
55701
|
+
*/
|
|
55702
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.prototype.serializeBinary = function() {
|
|
55703
|
+
var writer = new jspb.BinaryWriter();
|
|
55704
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.serializeBinaryToWriter(this, writer);
|
|
55705
|
+
return writer.getResultBuffer();
|
|
55706
|
+
};
|
|
55707
|
+
|
|
55708
|
+
|
|
55709
|
+
/**
|
|
55710
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
55711
|
+
* format), writing to the given BinaryWriter.
|
|
55712
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse} message
|
|
55713
|
+
* @param {!jspb.BinaryWriter} writer
|
|
55714
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
55715
|
+
*/
|
|
55716
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.serializeBinaryToWriter = function(message, writer) {
|
|
55717
|
+
var f = undefined;
|
|
55718
|
+
f = message.getV0();
|
|
55719
|
+
if (f != null) {
|
|
55720
|
+
writer.writeMessage(
|
|
55721
|
+
1,
|
|
55722
|
+
f,
|
|
55723
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.serializeBinaryToWriter
|
|
55724
|
+
);
|
|
55725
|
+
}
|
|
55726
|
+
};
|
|
55727
|
+
|
|
55728
|
+
|
|
55729
|
+
|
|
55730
|
+
/**
|
|
55731
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
55732
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
55733
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
55734
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
55735
|
+
* @private {!Array<!Array<number>>}
|
|
55736
|
+
* @const
|
|
55737
|
+
*/
|
|
55738
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.oneofGroups_ = [[1,2]];
|
|
55739
|
+
|
|
55740
|
+
/**
|
|
55741
|
+
* @enum {number}
|
|
55742
|
+
*/
|
|
55743
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.ResultCase = {
|
|
55744
|
+
RESULT_NOT_SET: 0,
|
|
55745
|
+
DATA: 1,
|
|
55746
|
+
PROOF: 2
|
|
55747
|
+
};
|
|
55748
|
+
|
|
55749
|
+
/**
|
|
55750
|
+
* @return {proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.ResultCase}
|
|
55751
|
+
*/
|
|
55752
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.prototype.getResultCase = function() {
|
|
55753
|
+
return /** @type {proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.ResultCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.oneofGroups_[0]));
|
|
55754
|
+
};
|
|
55755
|
+
|
|
55756
|
+
|
|
55757
|
+
|
|
55758
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
55759
|
+
/**
|
|
55760
|
+
* Creates an object representation of this proto.
|
|
55761
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
55762
|
+
* Optional fields that are not set will be set to undefined.
|
|
55763
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
55764
|
+
* For the list of reserved names please see:
|
|
55765
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
55766
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
55767
|
+
* JSPB instance for transitional soy proto support:
|
|
55768
|
+
* http://goto/soy-param-migration
|
|
55769
|
+
* @return {!Object}
|
|
55770
|
+
*/
|
|
55771
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.prototype.toObject = function(opt_includeInstance) {
|
|
55772
|
+
return proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.toObject(opt_includeInstance, this);
|
|
55773
|
+
};
|
|
55774
|
+
|
|
55775
|
+
|
|
55776
|
+
/**
|
|
55777
|
+
* Static version of the {@see toObject} method.
|
|
55778
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
55779
|
+
* the JSPB instance for transitional soy proto support:
|
|
55780
|
+
* http://goto/soy-param-migration
|
|
55781
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} msg The msg instance to transform.
|
|
55782
|
+
* @return {!Object}
|
|
55783
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
55784
|
+
*/
|
|
55785
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.toObject = function(includeInstance, msg) {
|
|
55786
|
+
var f, obj = {
|
|
55787
|
+
data: (f = msg.getData()) && proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.toObject(includeInstance, f),
|
|
55788
|
+
proof: (f = msg.getProof()) && proto.org.dash.platform.dapi.v0.Proof.toObject(includeInstance, f),
|
|
55789
|
+
metadata: (f = msg.getMetadata()) && proto.org.dash.platform.dapi.v0.ResponseMetadata.toObject(includeInstance, f)
|
|
55790
|
+
};
|
|
55791
|
+
|
|
55792
|
+
if (includeInstance) {
|
|
55793
|
+
obj.$jspbMessageInstance = msg;
|
|
55794
|
+
}
|
|
55795
|
+
return obj;
|
|
55796
|
+
};
|
|
55797
|
+
}
|
|
55798
|
+
|
|
55799
|
+
|
|
55800
|
+
/**
|
|
55801
|
+
* Deserializes binary data (in protobuf wire format).
|
|
55802
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
55803
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0}
|
|
55804
|
+
*/
|
|
55805
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.deserializeBinary = function(bytes) {
|
|
55806
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
55807
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0;
|
|
55808
|
+
return proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.deserializeBinaryFromReader(msg, reader);
|
|
55809
|
+
};
|
|
55810
|
+
|
|
55811
|
+
|
|
55812
|
+
/**
|
|
55813
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
55814
|
+
* given reader into the given message object.
|
|
55815
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} msg The message object to deserialize into.
|
|
55816
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
55817
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0}
|
|
55818
|
+
*/
|
|
55819
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.deserializeBinaryFromReader = function(msg, reader) {
|
|
55820
|
+
while (reader.nextField()) {
|
|
55821
|
+
if (reader.isEndGroup()) {
|
|
55822
|
+
break;
|
|
55823
|
+
}
|
|
55824
|
+
var field = reader.getFieldNumber();
|
|
55825
|
+
switch (field) {
|
|
55826
|
+
case 1:
|
|
55827
|
+
var value = new proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData;
|
|
55828
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.deserializeBinaryFromReader);
|
|
55829
|
+
msg.setData(value);
|
|
55830
|
+
break;
|
|
55831
|
+
case 2:
|
|
55832
|
+
var value = new proto.org.dash.platform.dapi.v0.Proof;
|
|
55833
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.Proof.deserializeBinaryFromReader);
|
|
55834
|
+
msg.setProof(value);
|
|
55835
|
+
break;
|
|
55836
|
+
case 3:
|
|
55837
|
+
var value = new proto.org.dash.platform.dapi.v0.ResponseMetadata;
|
|
55838
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.ResponseMetadata.deserializeBinaryFromReader);
|
|
55839
|
+
msg.setMetadata(value);
|
|
55840
|
+
break;
|
|
55841
|
+
default:
|
|
55842
|
+
reader.skipField();
|
|
55843
|
+
break;
|
|
55844
|
+
}
|
|
55845
|
+
}
|
|
55846
|
+
return msg;
|
|
55847
|
+
};
|
|
55848
|
+
|
|
55849
|
+
|
|
55850
|
+
/**
|
|
55851
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
55852
|
+
* @return {!Uint8Array}
|
|
55853
|
+
*/
|
|
55854
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.prototype.serializeBinary = function() {
|
|
55855
|
+
var writer = new jspb.BinaryWriter();
|
|
55856
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.serializeBinaryToWriter(this, writer);
|
|
55857
|
+
return writer.getResultBuffer();
|
|
55858
|
+
};
|
|
55859
|
+
|
|
55860
|
+
|
|
55861
|
+
/**
|
|
55862
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
55863
|
+
* format), writing to the given BinaryWriter.
|
|
55864
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} message
|
|
55865
|
+
* @param {!jspb.BinaryWriter} writer
|
|
55866
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
55867
|
+
*/
|
|
55868
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.serializeBinaryToWriter = function(message, writer) {
|
|
55869
|
+
var f = undefined;
|
|
55870
|
+
f = message.getData();
|
|
55871
|
+
if (f != null) {
|
|
55872
|
+
writer.writeMessage(
|
|
55873
|
+
1,
|
|
55874
|
+
f,
|
|
55875
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.serializeBinaryToWriter
|
|
55876
|
+
);
|
|
55877
|
+
}
|
|
55878
|
+
f = message.getProof();
|
|
55879
|
+
if (f != null) {
|
|
55880
|
+
writer.writeMessage(
|
|
55881
|
+
2,
|
|
55882
|
+
f,
|
|
55883
|
+
proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter
|
|
55884
|
+
);
|
|
55885
|
+
}
|
|
55886
|
+
f = message.getMetadata();
|
|
55887
|
+
if (f != null) {
|
|
55888
|
+
writer.writeMessage(
|
|
55889
|
+
3,
|
|
55890
|
+
f,
|
|
55891
|
+
proto.org.dash.platform.dapi.v0.ResponseMetadata.serializeBinaryToWriter
|
|
55892
|
+
);
|
|
55893
|
+
}
|
|
55894
|
+
};
|
|
55895
|
+
|
|
55896
|
+
|
|
55897
|
+
|
|
55898
|
+
|
|
55899
|
+
|
|
55900
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
55901
|
+
/**
|
|
55902
|
+
* Creates an object representation of this proto.
|
|
55903
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
55904
|
+
* Optional fields that are not set will be set to undefined.
|
|
55905
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
55906
|
+
* For the list of reserved names please see:
|
|
55907
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
55908
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
55909
|
+
* JSPB instance for transitional soy proto support:
|
|
55910
|
+
* http://goto/soy-param-migration
|
|
55911
|
+
* @return {!Object}
|
|
55912
|
+
*/
|
|
55913
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.prototype.toObject = function(opt_includeInstance) {
|
|
55914
|
+
return proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.toObject(opt_includeInstance, this);
|
|
55915
|
+
};
|
|
55916
|
+
|
|
55917
|
+
|
|
55918
|
+
/**
|
|
55919
|
+
* Static version of the {@see toObject} method.
|
|
55920
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
55921
|
+
* the JSPB instance for transitional soy proto support:
|
|
55922
|
+
* http://goto/soy-param-migration
|
|
55923
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData} msg The msg instance to transform.
|
|
55924
|
+
* @return {!Object}
|
|
55925
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
55926
|
+
*/
|
|
55927
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.toObject = function(includeInstance, msg) {
|
|
55928
|
+
var f, obj = {
|
|
55929
|
+
contractId: msg.getContractId_asB64(),
|
|
55930
|
+
tokenContractPosition: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
55931
|
+
};
|
|
55932
|
+
|
|
55933
|
+
if (includeInstance) {
|
|
55934
|
+
obj.$jspbMessageInstance = msg;
|
|
55935
|
+
}
|
|
55936
|
+
return obj;
|
|
55937
|
+
};
|
|
55938
|
+
}
|
|
55939
|
+
|
|
55940
|
+
|
|
55941
|
+
/**
|
|
55942
|
+
* Deserializes binary data (in protobuf wire format).
|
|
55943
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
55944
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData}
|
|
55945
|
+
*/
|
|
55946
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.deserializeBinary = function(bytes) {
|
|
55947
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
55948
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData;
|
|
55949
|
+
return proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.deserializeBinaryFromReader(msg, reader);
|
|
55950
|
+
};
|
|
55951
|
+
|
|
55952
|
+
|
|
55953
|
+
/**
|
|
55954
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
55955
|
+
* given reader into the given message object.
|
|
55956
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData} msg The message object to deserialize into.
|
|
55957
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
55958
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData}
|
|
55959
|
+
*/
|
|
55960
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.deserializeBinaryFromReader = function(msg, reader) {
|
|
55961
|
+
while (reader.nextField()) {
|
|
55962
|
+
if (reader.isEndGroup()) {
|
|
55963
|
+
break;
|
|
55964
|
+
}
|
|
55965
|
+
var field = reader.getFieldNumber();
|
|
55966
|
+
switch (field) {
|
|
55967
|
+
case 1:
|
|
55968
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
55969
|
+
msg.setContractId(value);
|
|
55970
|
+
break;
|
|
55971
|
+
case 2:
|
|
55972
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
55973
|
+
msg.setTokenContractPosition(value);
|
|
55974
|
+
break;
|
|
55975
|
+
default:
|
|
55976
|
+
reader.skipField();
|
|
55977
|
+
break;
|
|
55978
|
+
}
|
|
55979
|
+
}
|
|
55980
|
+
return msg;
|
|
55981
|
+
};
|
|
55982
|
+
|
|
55983
|
+
|
|
55984
|
+
/**
|
|
55985
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
55986
|
+
* @return {!Uint8Array}
|
|
55987
|
+
*/
|
|
55988
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.prototype.serializeBinary = function() {
|
|
55989
|
+
var writer = new jspb.BinaryWriter();
|
|
55990
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.serializeBinaryToWriter(this, writer);
|
|
55991
|
+
return writer.getResultBuffer();
|
|
55992
|
+
};
|
|
55993
|
+
|
|
55994
|
+
|
|
55995
|
+
/**
|
|
55996
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
55997
|
+
* format), writing to the given BinaryWriter.
|
|
55998
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData} message
|
|
55999
|
+
* @param {!jspb.BinaryWriter} writer
|
|
56000
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
56001
|
+
*/
|
|
56002
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.serializeBinaryToWriter = function(message, writer) {
|
|
56003
|
+
var f = undefined;
|
|
56004
|
+
f = message.getContractId_asU8();
|
|
56005
|
+
if (f.length > 0) {
|
|
56006
|
+
writer.writeBytes(
|
|
56007
|
+
1,
|
|
56008
|
+
f
|
|
56009
|
+
);
|
|
56010
|
+
}
|
|
56011
|
+
f = message.getTokenContractPosition();
|
|
56012
|
+
if (f !== 0) {
|
|
56013
|
+
writer.writeUint32(
|
|
56014
|
+
2,
|
|
56015
|
+
f
|
|
56016
|
+
);
|
|
56017
|
+
}
|
|
56018
|
+
};
|
|
56019
|
+
|
|
56020
|
+
|
|
56021
|
+
/**
|
|
56022
|
+
* optional bytes contract_id = 1;
|
|
56023
|
+
* @return {string}
|
|
56024
|
+
*/
|
|
56025
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.prototype.getContractId = function() {
|
|
56026
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
56027
|
+
};
|
|
56028
|
+
|
|
56029
|
+
|
|
56030
|
+
/**
|
|
56031
|
+
* optional bytes contract_id = 1;
|
|
56032
|
+
* This is a type-conversion wrapper around `getContractId()`
|
|
56033
|
+
* @return {string}
|
|
56034
|
+
*/
|
|
56035
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.prototype.getContractId_asB64 = function() {
|
|
56036
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
56037
|
+
this.getContractId()));
|
|
56038
|
+
};
|
|
56039
|
+
|
|
56040
|
+
|
|
56041
|
+
/**
|
|
56042
|
+
* optional bytes contract_id = 1;
|
|
56043
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
56044
|
+
* @see http://caniuse.com/Uint8Array
|
|
56045
|
+
* This is a type-conversion wrapper around `getContractId()`
|
|
56046
|
+
* @return {!Uint8Array}
|
|
56047
|
+
*/
|
|
56048
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.prototype.getContractId_asU8 = function() {
|
|
56049
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
56050
|
+
this.getContractId()));
|
|
55040
56051
|
};
|
|
55041
56052
|
|
|
55042
56053
|
|
|
55043
56054
|
/**
|
|
55044
56055
|
* @param {!(string|Uint8Array)} value
|
|
55045
|
-
* @
|
|
55046
|
-
* @return {!proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0} returns this
|
|
56056
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData} returns this
|
|
55047
56057
|
*/
|
|
55048
|
-
proto.org.dash.platform.dapi.v0.
|
|
55049
|
-
return jspb.Message.
|
|
56058
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.prototype.setContractId = function(value) {
|
|
56059
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
|
55050
56060
|
};
|
|
55051
56061
|
|
|
55052
56062
|
|
|
55053
56063
|
/**
|
|
55054
|
-
*
|
|
55055
|
-
* @return {
|
|
56064
|
+
* optional uint32 token_contract_position = 2;
|
|
56065
|
+
* @return {number}
|
|
55056
56066
|
*/
|
|
55057
|
-
proto.org.dash.platform.dapi.v0.
|
|
55058
|
-
return
|
|
56067
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.prototype.getTokenContractPosition = function() {
|
|
56068
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
55059
56069
|
};
|
|
55060
56070
|
|
|
55061
56071
|
|
|
55062
56072
|
/**
|
|
55063
|
-
*
|
|
56073
|
+
* @param {number} value
|
|
56074
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData} returns this
|
|
56075
|
+
*/
|
|
56076
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData.prototype.setTokenContractPosition = function(value) {
|
|
56077
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
56078
|
+
};
|
|
56079
|
+
|
|
56080
|
+
|
|
56081
|
+
/**
|
|
56082
|
+
* optional TokenContractInfoData data = 1;
|
|
56083
|
+
* @return {?proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData}
|
|
56084
|
+
*/
|
|
56085
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.prototype.getData = function() {
|
|
56086
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData} */ (
|
|
56087
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData, 1));
|
|
56088
|
+
};
|
|
56089
|
+
|
|
56090
|
+
|
|
56091
|
+
/**
|
|
56092
|
+
* @param {?proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoData|undefined} value
|
|
56093
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} returns this
|
|
56094
|
+
*/
|
|
56095
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.prototype.setData = function(value) {
|
|
56096
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.oneofGroups_[0], value);
|
|
56097
|
+
};
|
|
56098
|
+
|
|
56099
|
+
|
|
56100
|
+
/**
|
|
56101
|
+
* Clears the message field making it undefined.
|
|
56102
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} returns this
|
|
56103
|
+
*/
|
|
56104
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.prototype.clearData = function() {
|
|
56105
|
+
return this.setData(undefined);
|
|
56106
|
+
};
|
|
56107
|
+
|
|
56108
|
+
|
|
56109
|
+
/**
|
|
56110
|
+
* Returns whether this field is set.
|
|
55064
56111
|
* @return {boolean}
|
|
55065
56112
|
*/
|
|
55066
|
-
proto.org.dash.platform.dapi.v0.
|
|
55067
|
-
return
|
|
56113
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.prototype.hasData = function() {
|
|
56114
|
+
return jspb.Message.getField(this, 1) != null;
|
|
55068
56115
|
};
|
|
55069
56116
|
|
|
55070
56117
|
|
|
55071
56118
|
/**
|
|
55072
|
-
*
|
|
55073
|
-
* @return {
|
|
56119
|
+
* optional Proof proof = 2;
|
|
56120
|
+
* @return {?proto.org.dash.platform.dapi.v0.Proof}
|
|
55074
56121
|
*/
|
|
55075
|
-
proto.org.dash.platform.dapi.v0.
|
|
55076
|
-
return
|
|
56122
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.prototype.getProof = function() {
|
|
56123
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.Proof} */ (
|
|
56124
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.Proof, 2));
|
|
55077
56125
|
};
|
|
55078
56126
|
|
|
55079
56127
|
|
|
55080
56128
|
/**
|
|
55081
|
-
*
|
|
55082
|
-
* @return {
|
|
56129
|
+
* @param {?proto.org.dash.platform.dapi.v0.Proof|undefined} value
|
|
56130
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} returns this
|
|
56131
|
+
*/
|
|
56132
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.prototype.setProof = function(value) {
|
|
56133
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.oneofGroups_[0], value);
|
|
56134
|
+
};
|
|
56135
|
+
|
|
56136
|
+
|
|
56137
|
+
/**
|
|
56138
|
+
* Clears the message field making it undefined.
|
|
56139
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} returns this
|
|
55083
56140
|
*/
|
|
55084
|
-
proto.org.dash.platform.dapi.v0.
|
|
55085
|
-
return
|
|
55086
|
-
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0, 1));
|
|
56141
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.prototype.clearProof = function() {
|
|
56142
|
+
return this.setProof(undefined);
|
|
55087
56143
|
};
|
|
55088
56144
|
|
|
55089
56145
|
|
|
55090
56146
|
/**
|
|
55091
|
-
*
|
|
55092
|
-
* @return {
|
|
56147
|
+
* Returns whether this field is set.
|
|
56148
|
+
* @return {boolean}
|
|
56149
|
+
*/
|
|
56150
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.prototype.hasProof = function() {
|
|
56151
|
+
return jspb.Message.getField(this, 2) != null;
|
|
56152
|
+
};
|
|
56153
|
+
|
|
56154
|
+
|
|
56155
|
+
/**
|
|
56156
|
+
* optional ResponseMetadata metadata = 3;
|
|
56157
|
+
* @return {?proto.org.dash.platform.dapi.v0.ResponseMetadata}
|
|
56158
|
+
*/
|
|
56159
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.prototype.getMetadata = function() {
|
|
56160
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.ResponseMetadata} */ (
|
|
56161
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.ResponseMetadata, 3));
|
|
56162
|
+
};
|
|
56163
|
+
|
|
56164
|
+
|
|
56165
|
+
/**
|
|
56166
|
+
* @param {?proto.org.dash.platform.dapi.v0.ResponseMetadata|undefined} value
|
|
56167
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} returns this
|
|
55093
56168
|
*/
|
|
55094
|
-
proto.org.dash.platform.dapi.v0.
|
|
55095
|
-
return jspb.Message.
|
|
56169
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.prototype.setMetadata = function(value) {
|
|
56170
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
55096
56171
|
};
|
|
55097
56172
|
|
|
55098
56173
|
|
|
55099
56174
|
/**
|
|
55100
56175
|
* Clears the message field making it undefined.
|
|
55101
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
56176
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} returns this
|
|
55102
56177
|
*/
|
|
55103
|
-
proto.org.dash.platform.dapi.v0.
|
|
56178
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.prototype.clearMetadata = function() {
|
|
56179
|
+
return this.setMetadata(undefined);
|
|
56180
|
+
};
|
|
56181
|
+
|
|
56182
|
+
|
|
56183
|
+
/**
|
|
56184
|
+
* Returns whether this field is set.
|
|
56185
|
+
* @return {boolean}
|
|
56186
|
+
*/
|
|
56187
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.prototype.hasMetadata = function() {
|
|
56188
|
+
return jspb.Message.getField(this, 3) != null;
|
|
56189
|
+
};
|
|
56190
|
+
|
|
56191
|
+
|
|
56192
|
+
/**
|
|
56193
|
+
* optional GetTokenContractInfoResponseV0 v0 = 1;
|
|
56194
|
+
* @return {?proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0}
|
|
56195
|
+
*/
|
|
56196
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.prototype.getV0 = function() {
|
|
56197
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0} */ (
|
|
56198
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0, 1));
|
|
56199
|
+
};
|
|
56200
|
+
|
|
56201
|
+
|
|
56202
|
+
/**
|
|
56203
|
+
* @param {?proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0|undefined} value
|
|
56204
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse} returns this
|
|
56205
|
+
*/
|
|
56206
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.prototype.setV0 = function(value) {
|
|
56207
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.oneofGroups_[0], value);
|
|
56208
|
+
};
|
|
56209
|
+
|
|
56210
|
+
|
|
56211
|
+
/**
|
|
56212
|
+
* Clears the message field making it undefined.
|
|
56213
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse} returns this
|
|
56214
|
+
*/
|
|
56215
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.prototype.clearV0 = function() {
|
|
55104
56216
|
return this.setV0(undefined);
|
|
55105
56217
|
};
|
|
55106
56218
|
|
|
@@ -55109,7 +56221,7 @@ proto.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.prototype.cl
|
|
|
55109
56221
|
* Returns whether this field is set.
|
|
55110
56222
|
* @return {boolean}
|
|
55111
56223
|
*/
|
|
55112
|
-
proto.org.dash.platform.dapi.v0.
|
|
56224
|
+
proto.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.prototype.hasV0 = function() {
|
|
55113
56225
|
return jspb.Message.getField(this, 1) != null;
|
|
55114
56226
|
};
|
|
55115
56227
|
|