@dashevo/dapi-grpc 0.21.7 → 0.22.0-dev.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/clients/core/v0/nodejs/core_pbjs.js +21 -230
- package/clients/core/v0/nodejs/core_protoc.js +43 -224
- package/clients/core/v0/web/core_pb.js +43 -224
- package/clients/platform/v0/nodejs/platform_pbjs.js +48 -359
- package/clients/platform/v0/nodejs/platform_protoc.js +91 -432
- package/clients/platform/v0/web/platform_pb.js +91 -432
- package/package.json +4 -4
- package/protos/core/v0/core.proto +1 -5
- package/protos/platform/v0/platform.proto +7 -15
|
@@ -23,7 +23,6 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRes
|
|
|
23
23
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BloomFilter', null, global);
|
|
24
24
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastTransactionRequest', null, global);
|
|
25
25
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse', null, global);
|
|
26
|
-
goog.exportSymbol('proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages', null, global);
|
|
27
26
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockRequest', null, global);
|
|
28
27
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockRequest.BlockCase', null, global);
|
|
29
28
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockResponse', null, global);
|
|
@@ -404,27 +403,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
404
403
|
*/
|
|
405
404
|
proto.org.dash.platform.dapi.v0.BlockHeaders.displayName = 'proto.org.dash.platform.dapi.v0.BlockHeaders';
|
|
406
405
|
}
|
|
407
|
-
/**
|
|
408
|
-
* Generated by JsPbCodeGenerator.
|
|
409
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
410
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
411
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
412
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
413
|
-
* valid.
|
|
414
|
-
* @extends {jspb.Message}
|
|
415
|
-
* @constructor
|
|
416
|
-
*/
|
|
417
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages = function(opt_data) {
|
|
418
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.repeatedFields_, null);
|
|
419
|
-
};
|
|
420
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages, jspb.Message);
|
|
421
|
-
if (goog.DEBUG && !COMPILED) {
|
|
422
|
-
/**
|
|
423
|
-
* @public
|
|
424
|
-
* @override
|
|
425
|
-
*/
|
|
426
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.displayName = 'proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages';
|
|
427
|
-
}
|
|
428
406
|
/**
|
|
429
407
|
* Generated by JsPbCodeGenerator.
|
|
430
408
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3966,7 +3944,7 @@ proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.oneofGroups_
|
|
|
3966
3944
|
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.ResponsesCase = {
|
|
3967
3945
|
RESPONSES_NOT_SET: 0,
|
|
3968
3946
|
BLOCK_HEADERS: 1,
|
|
3969
|
-
|
|
3947
|
+
CHAIN_LOCK: 2
|
|
3970
3948
|
};
|
|
3971
3949
|
|
|
3972
3950
|
/**
|
|
@@ -4008,7 +3986,7 @@ proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.toO
|
|
|
4008
3986
|
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.toObject = function(includeInstance, msg) {
|
|
4009
3987
|
var f, obj = {
|
|
4010
3988
|
blockHeaders: (f = msg.getBlockHeaders()) && proto.org.dash.platform.dapi.v0.BlockHeaders.toObject(includeInstance, f),
|
|
4011
|
-
|
|
3989
|
+
chainLock: msg.getChainLock_asB64()
|
|
4012
3990
|
};
|
|
4013
3991
|
|
|
4014
3992
|
if (includeInstance) {
|
|
@@ -4051,9 +4029,8 @@ proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.deserializeBi
|
|
|
4051
4029
|
msg.setBlockHeaders(value);
|
|
4052
4030
|
break;
|
|
4053
4031
|
case 2:
|
|
4054
|
-
var value =
|
|
4055
|
-
|
|
4056
|
-
msg.setChainLockSignatureMessages(value);
|
|
4032
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
4033
|
+
msg.setChainLock(value);
|
|
4057
4034
|
break;
|
|
4058
4035
|
default:
|
|
4059
4036
|
reader.skipField();
|
|
@@ -4092,12 +4069,11 @@ proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.serializeBina
|
|
|
4092
4069
|
proto.org.dash.platform.dapi.v0.BlockHeaders.serializeBinaryToWriter
|
|
4093
4070
|
);
|
|
4094
4071
|
}
|
|
4095
|
-
f =
|
|
4072
|
+
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
|
|
4096
4073
|
if (f != null) {
|
|
4097
|
-
writer.
|
|
4074
|
+
writer.writeBytes(
|
|
4098
4075
|
2,
|
|
4099
|
-
f
|
|
4100
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.serializeBinaryToWriter
|
|
4076
|
+
f
|
|
4101
4077
|
);
|
|
4102
4078
|
}
|
|
4103
4079
|
};
|
|
@@ -4141,30 +4117,53 @@ proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.has
|
|
|
4141
4117
|
|
|
4142
4118
|
|
|
4143
4119
|
/**
|
|
4144
|
-
* optional
|
|
4145
|
-
* @return {
|
|
4120
|
+
* optional bytes chain_lock = 2;
|
|
4121
|
+
* @return {string}
|
|
4146
4122
|
*/
|
|
4147
|
-
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.
|
|
4148
|
-
return /** @type{
|
|
4149
|
-
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages, 2));
|
|
4123
|
+
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.getChainLock = function() {
|
|
4124
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4150
4125
|
};
|
|
4151
4126
|
|
|
4152
4127
|
|
|
4153
4128
|
/**
|
|
4154
|
-
*
|
|
4129
|
+
* optional bytes chain_lock = 2;
|
|
4130
|
+
* This is a type-conversion wrapper around `getChainLock()`
|
|
4131
|
+
* @return {string}
|
|
4132
|
+
*/
|
|
4133
|
+
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.getChainLock_asB64 = function() {
|
|
4134
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
4135
|
+
this.getChainLock()));
|
|
4136
|
+
};
|
|
4137
|
+
|
|
4138
|
+
|
|
4139
|
+
/**
|
|
4140
|
+
* optional bytes chain_lock = 2;
|
|
4141
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
4142
|
+
* @see http://caniuse.com/Uint8Array
|
|
4143
|
+
* This is a type-conversion wrapper around `getChainLock()`
|
|
4144
|
+
* @return {!Uint8Array}
|
|
4145
|
+
*/
|
|
4146
|
+
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.getChainLock_asU8 = function() {
|
|
4147
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
4148
|
+
this.getChainLock()));
|
|
4149
|
+
};
|
|
4150
|
+
|
|
4151
|
+
|
|
4152
|
+
/**
|
|
4153
|
+
* @param {!(string|Uint8Array)} value
|
|
4155
4154
|
* @return {!proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse} returns this
|
|
4156
|
-
*/
|
|
4157
|
-
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.
|
|
4158
|
-
return jspb.Message.
|
|
4155
|
+
*/
|
|
4156
|
+
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.setChainLock = function(value) {
|
|
4157
|
+
return jspb.Message.setOneofField(this, 2, proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.oneofGroups_[0], value);
|
|
4159
4158
|
};
|
|
4160
4159
|
|
|
4161
4160
|
|
|
4162
4161
|
/**
|
|
4163
|
-
* Clears the
|
|
4162
|
+
* Clears the field making it undefined.
|
|
4164
4163
|
* @return {!proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse} returns this
|
|
4165
4164
|
*/
|
|
4166
|
-
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.
|
|
4167
|
-
return this.
|
|
4165
|
+
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.clearChainLock = function() {
|
|
4166
|
+
return jspb.Message.setOneofField(this, 2, proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.oneofGroups_[0], undefined);
|
|
4168
4167
|
};
|
|
4169
4168
|
|
|
4170
4169
|
|
|
@@ -4172,7 +4171,7 @@ proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.cle
|
|
|
4172
4171
|
* Returns whether this field is set.
|
|
4173
4172
|
* @return {boolean}
|
|
4174
4173
|
*/
|
|
4175
|
-
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.
|
|
4174
|
+
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.hasChainLock = function() {
|
|
4176
4175
|
return jspb.Message.getField(this, 2) != null;
|
|
4177
4176
|
};
|
|
4178
4177
|
|
|
@@ -4358,186 +4357,6 @@ proto.org.dash.platform.dapi.v0.BlockHeaders.prototype.clearHeadersList = functi
|
|
|
4358
4357
|
|
|
4359
4358
|
|
|
4360
4359
|
|
|
4361
|
-
/**
|
|
4362
|
-
* List of repeated fields within this message type.
|
|
4363
|
-
* @private {!Array<number>}
|
|
4364
|
-
* @const
|
|
4365
|
-
*/
|
|
4366
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.repeatedFields_ = [1];
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4371
|
-
/**
|
|
4372
|
-
* Creates an object representation of this proto.
|
|
4373
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4374
|
-
* Optional fields that are not set will be set to undefined.
|
|
4375
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4376
|
-
* For the list of reserved names please see:
|
|
4377
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4378
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4379
|
-
* JSPB instance for transitional soy proto support:
|
|
4380
|
-
* http://goto/soy-param-migration
|
|
4381
|
-
* @return {!Object}
|
|
4382
|
-
*/
|
|
4383
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.prototype.toObject = function(opt_includeInstance) {
|
|
4384
|
-
return proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.toObject(opt_includeInstance, this);
|
|
4385
|
-
};
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
/**
|
|
4389
|
-
* Static version of the {@see toObject} method.
|
|
4390
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4391
|
-
* the JSPB instance for transitional soy proto support:
|
|
4392
|
-
* http://goto/soy-param-migration
|
|
4393
|
-
* @param {!proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages} msg The msg instance to transform.
|
|
4394
|
-
* @return {!Object}
|
|
4395
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4396
|
-
*/
|
|
4397
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.toObject = function(includeInstance, msg) {
|
|
4398
|
-
var f, obj = {
|
|
4399
|
-
messagesList: msg.getMessagesList_asB64()
|
|
4400
|
-
};
|
|
4401
|
-
|
|
4402
|
-
if (includeInstance) {
|
|
4403
|
-
obj.$jspbMessageInstance = msg;
|
|
4404
|
-
}
|
|
4405
|
-
return obj;
|
|
4406
|
-
};
|
|
4407
|
-
}
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
/**
|
|
4411
|
-
* Deserializes binary data (in protobuf wire format).
|
|
4412
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4413
|
-
* @return {!proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages}
|
|
4414
|
-
*/
|
|
4415
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.deserializeBinary = function(bytes) {
|
|
4416
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
4417
|
-
var msg = new proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages;
|
|
4418
|
-
return proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.deserializeBinaryFromReader(msg, reader);
|
|
4419
|
-
};
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
/**
|
|
4423
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
4424
|
-
* given reader into the given message object.
|
|
4425
|
-
* @param {!proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages} msg The message object to deserialize into.
|
|
4426
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4427
|
-
* @return {!proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages}
|
|
4428
|
-
*/
|
|
4429
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.deserializeBinaryFromReader = function(msg, reader) {
|
|
4430
|
-
while (reader.nextField()) {
|
|
4431
|
-
if (reader.isEndGroup()) {
|
|
4432
|
-
break;
|
|
4433
|
-
}
|
|
4434
|
-
var field = reader.getFieldNumber();
|
|
4435
|
-
switch (field) {
|
|
4436
|
-
case 1:
|
|
4437
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
4438
|
-
msg.addMessages(value);
|
|
4439
|
-
break;
|
|
4440
|
-
default:
|
|
4441
|
-
reader.skipField();
|
|
4442
|
-
break;
|
|
4443
|
-
}
|
|
4444
|
-
}
|
|
4445
|
-
return msg;
|
|
4446
|
-
};
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
/**
|
|
4450
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
4451
|
-
* @return {!Uint8Array}
|
|
4452
|
-
*/
|
|
4453
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.prototype.serializeBinary = function() {
|
|
4454
|
-
var writer = new jspb.BinaryWriter();
|
|
4455
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.serializeBinaryToWriter(this, writer);
|
|
4456
|
-
return writer.getResultBuffer();
|
|
4457
|
-
};
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
/**
|
|
4461
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
4462
|
-
* format), writing to the given BinaryWriter.
|
|
4463
|
-
* @param {!proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages} message
|
|
4464
|
-
* @param {!jspb.BinaryWriter} writer
|
|
4465
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4466
|
-
*/
|
|
4467
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.serializeBinaryToWriter = function(message, writer) {
|
|
4468
|
-
var f = undefined;
|
|
4469
|
-
f = message.getMessagesList_asU8();
|
|
4470
|
-
if (f.length > 0) {
|
|
4471
|
-
writer.writeRepeatedBytes(
|
|
4472
|
-
1,
|
|
4473
|
-
f
|
|
4474
|
-
);
|
|
4475
|
-
}
|
|
4476
|
-
};
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
/**
|
|
4480
|
-
* repeated bytes messages = 1;
|
|
4481
|
-
* @return {!Array<string>}
|
|
4482
|
-
*/
|
|
4483
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.prototype.getMessagesList = function() {
|
|
4484
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
4485
|
-
};
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
/**
|
|
4489
|
-
* repeated bytes messages = 1;
|
|
4490
|
-
* This is a type-conversion wrapper around `getMessagesList()`
|
|
4491
|
-
* @return {!Array<string>}
|
|
4492
|
-
*/
|
|
4493
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.prototype.getMessagesList_asB64 = function() {
|
|
4494
|
-
return /** @type {!Array<string>} */ (jspb.Message.bytesListAsB64(
|
|
4495
|
-
this.getMessagesList()));
|
|
4496
|
-
};
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
/**
|
|
4500
|
-
* repeated bytes messages = 1;
|
|
4501
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
4502
|
-
* @see http://caniuse.com/Uint8Array
|
|
4503
|
-
* This is a type-conversion wrapper around `getMessagesList()`
|
|
4504
|
-
* @return {!Array<!Uint8Array>}
|
|
4505
|
-
*/
|
|
4506
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.prototype.getMessagesList_asU8 = function() {
|
|
4507
|
-
return /** @type {!Array<!Uint8Array>} */ (jspb.Message.bytesListAsU8(
|
|
4508
|
-
this.getMessagesList()));
|
|
4509
|
-
};
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
/**
|
|
4513
|
-
* @param {!(Array<!Uint8Array>|Array<string>)} value
|
|
4514
|
-
* @return {!proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages} returns this
|
|
4515
|
-
*/
|
|
4516
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.prototype.setMessagesList = function(value) {
|
|
4517
|
-
return jspb.Message.setField(this, 1, value || []);
|
|
4518
|
-
};
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
/**
|
|
4522
|
-
* @param {!(string|Uint8Array)} value
|
|
4523
|
-
* @param {number=} opt_index
|
|
4524
|
-
* @return {!proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages} returns this
|
|
4525
|
-
*/
|
|
4526
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.prototype.addMessages = function(value, opt_index) {
|
|
4527
|
-
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
4528
|
-
};
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
/**
|
|
4532
|
-
* Clears the list making it empty but non-null.
|
|
4533
|
-
* @return {!proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages} returns this
|
|
4534
|
-
*/
|
|
4535
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.prototype.clearMessagesList = function() {
|
|
4536
|
-
return this.setMessagesList([]);
|
|
4537
|
-
};
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
4360
|
|
|
4542
4361
|
|
|
4543
4362
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -23,7 +23,6 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRes
|
|
|
23
23
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BloomFilter', null, global);
|
|
24
24
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastTransactionRequest', null, global);
|
|
25
25
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse', null, global);
|
|
26
|
-
goog.exportSymbol('proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages', null, global);
|
|
27
26
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockRequest', null, global);
|
|
28
27
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockRequest.BlockCase', null, global);
|
|
29
28
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockResponse', null, global);
|
|
@@ -404,27 +403,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
404
403
|
*/
|
|
405
404
|
proto.org.dash.platform.dapi.v0.BlockHeaders.displayName = 'proto.org.dash.platform.dapi.v0.BlockHeaders';
|
|
406
405
|
}
|
|
407
|
-
/**
|
|
408
|
-
* Generated by JsPbCodeGenerator.
|
|
409
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
410
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
411
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
412
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
413
|
-
* valid.
|
|
414
|
-
* @extends {jspb.Message}
|
|
415
|
-
* @constructor
|
|
416
|
-
*/
|
|
417
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages = function(opt_data) {
|
|
418
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.repeatedFields_, null);
|
|
419
|
-
};
|
|
420
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages, jspb.Message);
|
|
421
|
-
if (goog.DEBUG && !COMPILED) {
|
|
422
|
-
/**
|
|
423
|
-
* @public
|
|
424
|
-
* @override
|
|
425
|
-
*/
|
|
426
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.displayName = 'proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages';
|
|
427
|
-
}
|
|
428
406
|
/**
|
|
429
407
|
* Generated by JsPbCodeGenerator.
|
|
430
408
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3966,7 +3944,7 @@ proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.oneofGroups_
|
|
|
3966
3944
|
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.ResponsesCase = {
|
|
3967
3945
|
RESPONSES_NOT_SET: 0,
|
|
3968
3946
|
BLOCK_HEADERS: 1,
|
|
3969
|
-
|
|
3947
|
+
CHAIN_LOCK: 2
|
|
3970
3948
|
};
|
|
3971
3949
|
|
|
3972
3950
|
/**
|
|
@@ -4008,7 +3986,7 @@ proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.toO
|
|
|
4008
3986
|
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.toObject = function(includeInstance, msg) {
|
|
4009
3987
|
var f, obj = {
|
|
4010
3988
|
blockHeaders: (f = msg.getBlockHeaders()) && proto.org.dash.platform.dapi.v0.BlockHeaders.toObject(includeInstance, f),
|
|
4011
|
-
|
|
3989
|
+
chainLock: msg.getChainLock_asB64()
|
|
4012
3990
|
};
|
|
4013
3991
|
|
|
4014
3992
|
if (includeInstance) {
|
|
@@ -4051,9 +4029,8 @@ proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.deserializeBi
|
|
|
4051
4029
|
msg.setBlockHeaders(value);
|
|
4052
4030
|
break;
|
|
4053
4031
|
case 2:
|
|
4054
|
-
var value =
|
|
4055
|
-
|
|
4056
|
-
msg.setChainLockSignatureMessages(value);
|
|
4032
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
4033
|
+
msg.setChainLock(value);
|
|
4057
4034
|
break;
|
|
4058
4035
|
default:
|
|
4059
4036
|
reader.skipField();
|
|
@@ -4092,12 +4069,11 @@ proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.serializeBina
|
|
|
4092
4069
|
proto.org.dash.platform.dapi.v0.BlockHeaders.serializeBinaryToWriter
|
|
4093
4070
|
);
|
|
4094
4071
|
}
|
|
4095
|
-
f =
|
|
4072
|
+
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
|
|
4096
4073
|
if (f != null) {
|
|
4097
|
-
writer.
|
|
4074
|
+
writer.writeBytes(
|
|
4098
4075
|
2,
|
|
4099
|
-
f
|
|
4100
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.serializeBinaryToWriter
|
|
4076
|
+
f
|
|
4101
4077
|
);
|
|
4102
4078
|
}
|
|
4103
4079
|
};
|
|
@@ -4141,30 +4117,53 @@ proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.has
|
|
|
4141
4117
|
|
|
4142
4118
|
|
|
4143
4119
|
/**
|
|
4144
|
-
* optional
|
|
4145
|
-
* @return {
|
|
4120
|
+
* optional bytes chain_lock = 2;
|
|
4121
|
+
* @return {string}
|
|
4146
4122
|
*/
|
|
4147
|
-
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.
|
|
4148
|
-
return /** @type{
|
|
4149
|
-
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages, 2));
|
|
4123
|
+
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.getChainLock = function() {
|
|
4124
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4150
4125
|
};
|
|
4151
4126
|
|
|
4152
4127
|
|
|
4153
4128
|
/**
|
|
4154
|
-
*
|
|
4129
|
+
* optional bytes chain_lock = 2;
|
|
4130
|
+
* This is a type-conversion wrapper around `getChainLock()`
|
|
4131
|
+
* @return {string}
|
|
4132
|
+
*/
|
|
4133
|
+
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.getChainLock_asB64 = function() {
|
|
4134
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
4135
|
+
this.getChainLock()));
|
|
4136
|
+
};
|
|
4137
|
+
|
|
4138
|
+
|
|
4139
|
+
/**
|
|
4140
|
+
* optional bytes chain_lock = 2;
|
|
4141
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
4142
|
+
* @see http://caniuse.com/Uint8Array
|
|
4143
|
+
* This is a type-conversion wrapper around `getChainLock()`
|
|
4144
|
+
* @return {!Uint8Array}
|
|
4145
|
+
*/
|
|
4146
|
+
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.getChainLock_asU8 = function() {
|
|
4147
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
4148
|
+
this.getChainLock()));
|
|
4149
|
+
};
|
|
4150
|
+
|
|
4151
|
+
|
|
4152
|
+
/**
|
|
4153
|
+
* @param {!(string|Uint8Array)} value
|
|
4155
4154
|
* @return {!proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse} returns this
|
|
4156
|
-
*/
|
|
4157
|
-
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.
|
|
4158
|
-
return jspb.Message.
|
|
4155
|
+
*/
|
|
4156
|
+
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.setChainLock = function(value) {
|
|
4157
|
+
return jspb.Message.setOneofField(this, 2, proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.oneofGroups_[0], value);
|
|
4159
4158
|
};
|
|
4160
4159
|
|
|
4161
4160
|
|
|
4162
4161
|
/**
|
|
4163
|
-
* Clears the
|
|
4162
|
+
* Clears the field making it undefined.
|
|
4164
4163
|
* @return {!proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse} returns this
|
|
4165
4164
|
*/
|
|
4166
|
-
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.
|
|
4167
|
-
return this.
|
|
4165
|
+
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.clearChainLock = function() {
|
|
4166
|
+
return jspb.Message.setOneofField(this, 2, proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.oneofGroups_[0], undefined);
|
|
4168
4167
|
};
|
|
4169
4168
|
|
|
4170
4169
|
|
|
@@ -4172,7 +4171,7 @@ proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.cle
|
|
|
4172
4171
|
* Returns whether this field is set.
|
|
4173
4172
|
* @return {boolean}
|
|
4174
4173
|
*/
|
|
4175
|
-
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.
|
|
4174
|
+
proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.prototype.hasChainLock = function() {
|
|
4176
4175
|
return jspb.Message.getField(this, 2) != null;
|
|
4177
4176
|
};
|
|
4178
4177
|
|
|
@@ -4358,186 +4357,6 @@ proto.org.dash.platform.dapi.v0.BlockHeaders.prototype.clearHeadersList = functi
|
|
|
4358
4357
|
|
|
4359
4358
|
|
|
4360
4359
|
|
|
4361
|
-
/**
|
|
4362
|
-
* List of repeated fields within this message type.
|
|
4363
|
-
* @private {!Array<number>}
|
|
4364
|
-
* @const
|
|
4365
|
-
*/
|
|
4366
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.repeatedFields_ = [1];
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4371
|
-
/**
|
|
4372
|
-
* Creates an object representation of this proto.
|
|
4373
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4374
|
-
* Optional fields that are not set will be set to undefined.
|
|
4375
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4376
|
-
* For the list of reserved names please see:
|
|
4377
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4378
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4379
|
-
* JSPB instance for transitional soy proto support:
|
|
4380
|
-
* http://goto/soy-param-migration
|
|
4381
|
-
* @return {!Object}
|
|
4382
|
-
*/
|
|
4383
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.prototype.toObject = function(opt_includeInstance) {
|
|
4384
|
-
return proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.toObject(opt_includeInstance, this);
|
|
4385
|
-
};
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
/**
|
|
4389
|
-
* Static version of the {@see toObject} method.
|
|
4390
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4391
|
-
* the JSPB instance for transitional soy proto support:
|
|
4392
|
-
* http://goto/soy-param-migration
|
|
4393
|
-
* @param {!proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages} msg The msg instance to transform.
|
|
4394
|
-
* @return {!Object}
|
|
4395
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4396
|
-
*/
|
|
4397
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.toObject = function(includeInstance, msg) {
|
|
4398
|
-
var f, obj = {
|
|
4399
|
-
messagesList: msg.getMessagesList_asB64()
|
|
4400
|
-
};
|
|
4401
|
-
|
|
4402
|
-
if (includeInstance) {
|
|
4403
|
-
obj.$jspbMessageInstance = msg;
|
|
4404
|
-
}
|
|
4405
|
-
return obj;
|
|
4406
|
-
};
|
|
4407
|
-
}
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
/**
|
|
4411
|
-
* Deserializes binary data (in protobuf wire format).
|
|
4412
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4413
|
-
* @return {!proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages}
|
|
4414
|
-
*/
|
|
4415
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.deserializeBinary = function(bytes) {
|
|
4416
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
4417
|
-
var msg = new proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages;
|
|
4418
|
-
return proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.deserializeBinaryFromReader(msg, reader);
|
|
4419
|
-
};
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
/**
|
|
4423
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
4424
|
-
* given reader into the given message object.
|
|
4425
|
-
* @param {!proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages} msg The message object to deserialize into.
|
|
4426
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4427
|
-
* @return {!proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages}
|
|
4428
|
-
*/
|
|
4429
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.deserializeBinaryFromReader = function(msg, reader) {
|
|
4430
|
-
while (reader.nextField()) {
|
|
4431
|
-
if (reader.isEndGroup()) {
|
|
4432
|
-
break;
|
|
4433
|
-
}
|
|
4434
|
-
var field = reader.getFieldNumber();
|
|
4435
|
-
switch (field) {
|
|
4436
|
-
case 1:
|
|
4437
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
4438
|
-
msg.addMessages(value);
|
|
4439
|
-
break;
|
|
4440
|
-
default:
|
|
4441
|
-
reader.skipField();
|
|
4442
|
-
break;
|
|
4443
|
-
}
|
|
4444
|
-
}
|
|
4445
|
-
return msg;
|
|
4446
|
-
};
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
/**
|
|
4450
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
4451
|
-
* @return {!Uint8Array}
|
|
4452
|
-
*/
|
|
4453
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.prototype.serializeBinary = function() {
|
|
4454
|
-
var writer = new jspb.BinaryWriter();
|
|
4455
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.serializeBinaryToWriter(this, writer);
|
|
4456
|
-
return writer.getResultBuffer();
|
|
4457
|
-
};
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
/**
|
|
4461
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
4462
|
-
* format), writing to the given BinaryWriter.
|
|
4463
|
-
* @param {!proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages} message
|
|
4464
|
-
* @param {!jspb.BinaryWriter} writer
|
|
4465
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4466
|
-
*/
|
|
4467
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.serializeBinaryToWriter = function(message, writer) {
|
|
4468
|
-
var f = undefined;
|
|
4469
|
-
f = message.getMessagesList_asU8();
|
|
4470
|
-
if (f.length > 0) {
|
|
4471
|
-
writer.writeRepeatedBytes(
|
|
4472
|
-
1,
|
|
4473
|
-
f
|
|
4474
|
-
);
|
|
4475
|
-
}
|
|
4476
|
-
};
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
/**
|
|
4480
|
-
* repeated bytes messages = 1;
|
|
4481
|
-
* @return {!Array<string>}
|
|
4482
|
-
*/
|
|
4483
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.prototype.getMessagesList = function() {
|
|
4484
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
4485
|
-
};
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
/**
|
|
4489
|
-
* repeated bytes messages = 1;
|
|
4490
|
-
* This is a type-conversion wrapper around `getMessagesList()`
|
|
4491
|
-
* @return {!Array<string>}
|
|
4492
|
-
*/
|
|
4493
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.prototype.getMessagesList_asB64 = function() {
|
|
4494
|
-
return /** @type {!Array<string>} */ (jspb.Message.bytesListAsB64(
|
|
4495
|
-
this.getMessagesList()));
|
|
4496
|
-
};
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
/**
|
|
4500
|
-
* repeated bytes messages = 1;
|
|
4501
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
4502
|
-
* @see http://caniuse.com/Uint8Array
|
|
4503
|
-
* This is a type-conversion wrapper around `getMessagesList()`
|
|
4504
|
-
* @return {!Array<!Uint8Array>}
|
|
4505
|
-
*/
|
|
4506
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.prototype.getMessagesList_asU8 = function() {
|
|
4507
|
-
return /** @type {!Array<!Uint8Array>} */ (jspb.Message.bytesListAsU8(
|
|
4508
|
-
this.getMessagesList()));
|
|
4509
|
-
};
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
/**
|
|
4513
|
-
* @param {!(Array<!Uint8Array>|Array<string>)} value
|
|
4514
|
-
* @return {!proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages} returns this
|
|
4515
|
-
*/
|
|
4516
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.prototype.setMessagesList = function(value) {
|
|
4517
|
-
return jspb.Message.setField(this, 1, value || []);
|
|
4518
|
-
};
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
/**
|
|
4522
|
-
* @param {!(string|Uint8Array)} value
|
|
4523
|
-
* @param {number=} opt_index
|
|
4524
|
-
* @return {!proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages} returns this
|
|
4525
|
-
*/
|
|
4526
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.prototype.addMessages = function(value, opt_index) {
|
|
4527
|
-
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
4528
|
-
};
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
/**
|
|
4532
|
-
* Clears the list making it empty but non-null.
|
|
4533
|
-
* @return {!proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages} returns this
|
|
4534
|
-
*/
|
|
4535
|
-
proto.org.dash.platform.dapi.v0.ChainLockSignatureMessages.prototype.clearMessagesList = function() {
|
|
4536
|
-
return this.setMessagesList([]);
|
|
4537
|
-
};
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
4360
|
|
|
4542
4361
|
|
|
4543
4362
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|