@dashevo/dapi-grpc 0.22.0-dev.5 → 0.22.0-dev.6
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.
|
@@ -4095,7 +4095,7 @@ $root.org = (function() {
|
|
|
4095
4095
|
* @memberof org.dash.platform.dapi.v0
|
|
4096
4096
|
* @interface IBlockHeadersWithChainLocksResponse
|
|
4097
4097
|
* @property {org.dash.platform.dapi.v0.IBlockHeaders|null} [blockHeaders] BlockHeadersWithChainLocksResponse blockHeaders
|
|
4098
|
-
* @property {
|
|
4098
|
+
* @property {Uint8Array|null} [chainLock] BlockHeadersWithChainLocksResponse chainLock
|
|
4099
4099
|
*/
|
|
4100
4100
|
|
|
4101
4101
|
/**
|
|
@@ -4122,24 +4122,24 @@ $root.org = (function() {
|
|
|
4122
4122
|
BlockHeadersWithChainLocksResponse.prototype.blockHeaders = null;
|
|
4123
4123
|
|
|
4124
4124
|
/**
|
|
4125
|
-
* BlockHeadersWithChainLocksResponse
|
|
4126
|
-
* @member {
|
|
4125
|
+
* BlockHeadersWithChainLocksResponse chainLock.
|
|
4126
|
+
* @member {Uint8Array} chainLock
|
|
4127
4127
|
* @memberof org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse
|
|
4128
4128
|
* @instance
|
|
4129
4129
|
*/
|
|
4130
|
-
BlockHeadersWithChainLocksResponse.prototype.
|
|
4130
|
+
BlockHeadersWithChainLocksResponse.prototype.chainLock = $util.newBuffer([]);
|
|
4131
4131
|
|
|
4132
4132
|
// OneOf field names bound to virtual getters and setters
|
|
4133
4133
|
var $oneOfFields;
|
|
4134
4134
|
|
|
4135
4135
|
/**
|
|
4136
4136
|
* BlockHeadersWithChainLocksResponse responses.
|
|
4137
|
-
* @member {"blockHeaders"|"
|
|
4137
|
+
* @member {"blockHeaders"|"chainLock"|undefined} responses
|
|
4138
4138
|
* @memberof org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse
|
|
4139
4139
|
* @instance
|
|
4140
4140
|
*/
|
|
4141
4141
|
Object.defineProperty(BlockHeadersWithChainLocksResponse.prototype, "responses", {
|
|
4142
|
-
get: $util.oneOfGetter($oneOfFields = ["blockHeaders", "
|
|
4142
|
+
get: $util.oneOfGetter($oneOfFields = ["blockHeaders", "chainLock"]),
|
|
4143
4143
|
set: $util.oneOfSetter($oneOfFields)
|
|
4144
4144
|
});
|
|
4145
4145
|
|
|
@@ -4169,8 +4169,8 @@ $root.org = (function() {
|
|
|
4169
4169
|
writer = $Writer.create();
|
|
4170
4170
|
if (message.blockHeaders != null && Object.hasOwnProperty.call(message, "blockHeaders"))
|
|
4171
4171
|
$root.org.dash.platform.dapi.v0.BlockHeaders.encode(message.blockHeaders, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
4172
|
-
if (message.
|
|
4173
|
-
|
|
4172
|
+
if (message.chainLock != null && Object.hasOwnProperty.call(message, "chainLock"))
|
|
4173
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.chainLock);
|
|
4174
4174
|
return writer;
|
|
4175
4175
|
};
|
|
4176
4176
|
|
|
@@ -4209,7 +4209,7 @@ $root.org = (function() {
|
|
|
4209
4209
|
message.blockHeaders = $root.org.dash.platform.dapi.v0.BlockHeaders.decode(reader, reader.uint32());
|
|
4210
4210
|
break;
|
|
4211
4211
|
case 2:
|
|
4212
|
-
message.
|
|
4212
|
+
message.chainLock = reader.bytes();
|
|
4213
4213
|
break;
|
|
4214
4214
|
default:
|
|
4215
4215
|
reader.skipType(tag & 7);
|
|
@@ -4255,15 +4255,12 @@ $root.org = (function() {
|
|
|
4255
4255
|
return "blockHeaders." + error;
|
|
4256
4256
|
}
|
|
4257
4257
|
}
|
|
4258
|
-
if (message.
|
|
4258
|
+
if (message.chainLock != null && message.hasOwnProperty("chainLock")) {
|
|
4259
4259
|
if (properties.responses === 1)
|
|
4260
4260
|
return "responses: multiple values";
|
|
4261
4261
|
properties.responses = 1;
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
if (error)
|
|
4265
|
-
return "chainLockSignatureMessages." + error;
|
|
4266
|
-
}
|
|
4262
|
+
if (!(message.chainLock && typeof message.chainLock.length === "number" || $util.isString(message.chainLock)))
|
|
4263
|
+
return "chainLock: buffer expected";
|
|
4267
4264
|
}
|
|
4268
4265
|
return null;
|
|
4269
4266
|
};
|
|
@@ -4285,11 +4282,11 @@ $root.org = (function() {
|
|
|
4285
4282
|
throw TypeError(".org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.blockHeaders: object expected");
|
|
4286
4283
|
message.blockHeaders = $root.org.dash.platform.dapi.v0.BlockHeaders.fromObject(object.blockHeaders);
|
|
4287
4284
|
}
|
|
4288
|
-
if (object.
|
|
4289
|
-
if (typeof object.
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4285
|
+
if (object.chainLock != null)
|
|
4286
|
+
if (typeof object.chainLock === "string")
|
|
4287
|
+
$util.base64.decode(object.chainLock, message.chainLock = $util.newBuffer($util.base64.length(object.chainLock)), 0);
|
|
4288
|
+
else if (object.chainLock.length >= 0)
|
|
4289
|
+
message.chainLock = object.chainLock;
|
|
4293
4290
|
return message;
|
|
4294
4291
|
};
|
|
4295
4292
|
|
|
@@ -4311,10 +4308,10 @@ $root.org = (function() {
|
|
|
4311
4308
|
if (options.oneofs)
|
|
4312
4309
|
object.responses = "blockHeaders";
|
|
4313
4310
|
}
|
|
4314
|
-
if (message.
|
|
4315
|
-
object.
|
|
4311
|
+
if (message.chainLock != null && message.hasOwnProperty("chainLock")) {
|
|
4312
|
+
object.chainLock = options.bytes === String ? $util.base64.encode(message.chainLock, 0, message.chainLock.length) : options.bytes === Array ? Array.prototype.slice.call(message.chainLock) : message.chainLock;
|
|
4316
4313
|
if (options.oneofs)
|
|
4317
|
-
object.responses = "
|
|
4314
|
+
object.responses = "chainLock";
|
|
4318
4315
|
}
|
|
4319
4316
|
return object;
|
|
4320
4317
|
};
|
|
@@ -4539,212 +4536,6 @@ $root.org = (function() {
|
|
|
4539
4536
|
return BlockHeaders;
|
|
4540
4537
|
})();
|
|
4541
4538
|
|
|
4542
|
-
v0.ChainLockSignatureMessages = (function() {
|
|
4543
|
-
|
|
4544
|
-
/**
|
|
4545
|
-
* Properties of a ChainLockSignatureMessages.
|
|
4546
|
-
* @memberof org.dash.platform.dapi.v0
|
|
4547
|
-
* @interface IChainLockSignatureMessages
|
|
4548
|
-
* @property {Array.<Uint8Array>|null} [messages] ChainLockSignatureMessages messages
|
|
4549
|
-
*/
|
|
4550
|
-
|
|
4551
|
-
/**
|
|
4552
|
-
* Constructs a new ChainLockSignatureMessages.
|
|
4553
|
-
* @memberof org.dash.platform.dapi.v0
|
|
4554
|
-
* @classdesc Represents a ChainLockSignatureMessages.
|
|
4555
|
-
* @implements IChainLockSignatureMessages
|
|
4556
|
-
* @constructor
|
|
4557
|
-
* @param {org.dash.platform.dapi.v0.IChainLockSignatureMessages=} [properties] Properties to set
|
|
4558
|
-
*/
|
|
4559
|
-
function ChainLockSignatureMessages(properties) {
|
|
4560
|
-
this.messages = [];
|
|
4561
|
-
if (properties)
|
|
4562
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4563
|
-
if (properties[keys[i]] != null)
|
|
4564
|
-
this[keys[i]] = properties[keys[i]];
|
|
4565
|
-
}
|
|
4566
|
-
|
|
4567
|
-
/**
|
|
4568
|
-
* ChainLockSignatureMessages messages.
|
|
4569
|
-
* @member {Array.<Uint8Array>} messages
|
|
4570
|
-
* @memberof org.dash.platform.dapi.v0.ChainLockSignatureMessages
|
|
4571
|
-
* @instance
|
|
4572
|
-
*/
|
|
4573
|
-
ChainLockSignatureMessages.prototype.messages = $util.emptyArray;
|
|
4574
|
-
|
|
4575
|
-
/**
|
|
4576
|
-
* Creates a new ChainLockSignatureMessages instance using the specified properties.
|
|
4577
|
-
* @function create
|
|
4578
|
-
* @memberof org.dash.platform.dapi.v0.ChainLockSignatureMessages
|
|
4579
|
-
* @static
|
|
4580
|
-
* @param {org.dash.platform.dapi.v0.IChainLockSignatureMessages=} [properties] Properties to set
|
|
4581
|
-
* @returns {org.dash.platform.dapi.v0.ChainLockSignatureMessages} ChainLockSignatureMessages instance
|
|
4582
|
-
*/
|
|
4583
|
-
ChainLockSignatureMessages.create = function create(properties) {
|
|
4584
|
-
return new ChainLockSignatureMessages(properties);
|
|
4585
|
-
};
|
|
4586
|
-
|
|
4587
|
-
/**
|
|
4588
|
-
* Encodes the specified ChainLockSignatureMessages message. Does not implicitly {@link org.dash.platform.dapi.v0.ChainLockSignatureMessages.verify|verify} messages.
|
|
4589
|
-
* @function encode
|
|
4590
|
-
* @memberof org.dash.platform.dapi.v0.ChainLockSignatureMessages
|
|
4591
|
-
* @static
|
|
4592
|
-
* @param {org.dash.platform.dapi.v0.IChainLockSignatureMessages} message ChainLockSignatureMessages message or plain object to encode
|
|
4593
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4594
|
-
* @returns {$protobuf.Writer} Writer
|
|
4595
|
-
*/
|
|
4596
|
-
ChainLockSignatureMessages.encode = function encode(message, writer) {
|
|
4597
|
-
if (!writer)
|
|
4598
|
-
writer = $Writer.create();
|
|
4599
|
-
if (message.messages != null && message.messages.length)
|
|
4600
|
-
for (var i = 0; i < message.messages.length; ++i)
|
|
4601
|
-
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.messages[i]);
|
|
4602
|
-
return writer;
|
|
4603
|
-
};
|
|
4604
|
-
|
|
4605
|
-
/**
|
|
4606
|
-
* Encodes the specified ChainLockSignatureMessages message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.ChainLockSignatureMessages.verify|verify} messages.
|
|
4607
|
-
* @function encodeDelimited
|
|
4608
|
-
* @memberof org.dash.platform.dapi.v0.ChainLockSignatureMessages
|
|
4609
|
-
* @static
|
|
4610
|
-
* @param {org.dash.platform.dapi.v0.IChainLockSignatureMessages} message ChainLockSignatureMessages message or plain object to encode
|
|
4611
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4612
|
-
* @returns {$protobuf.Writer} Writer
|
|
4613
|
-
*/
|
|
4614
|
-
ChainLockSignatureMessages.encodeDelimited = function encodeDelimited(message, writer) {
|
|
4615
|
-
return this.encode(message, writer).ldelim();
|
|
4616
|
-
};
|
|
4617
|
-
|
|
4618
|
-
/**
|
|
4619
|
-
* Decodes a ChainLockSignatureMessages message from the specified reader or buffer.
|
|
4620
|
-
* @function decode
|
|
4621
|
-
* @memberof org.dash.platform.dapi.v0.ChainLockSignatureMessages
|
|
4622
|
-
* @static
|
|
4623
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4624
|
-
* @param {number} [length] Message length if known beforehand
|
|
4625
|
-
* @returns {org.dash.platform.dapi.v0.ChainLockSignatureMessages} ChainLockSignatureMessages
|
|
4626
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4627
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4628
|
-
*/
|
|
4629
|
-
ChainLockSignatureMessages.decode = function decode(reader, length) {
|
|
4630
|
-
if (!(reader instanceof $Reader))
|
|
4631
|
-
reader = $Reader.create(reader);
|
|
4632
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.ChainLockSignatureMessages();
|
|
4633
|
-
while (reader.pos < end) {
|
|
4634
|
-
var tag = reader.uint32();
|
|
4635
|
-
switch (tag >>> 3) {
|
|
4636
|
-
case 1:
|
|
4637
|
-
if (!(message.messages && message.messages.length))
|
|
4638
|
-
message.messages = [];
|
|
4639
|
-
message.messages.push(reader.bytes());
|
|
4640
|
-
break;
|
|
4641
|
-
default:
|
|
4642
|
-
reader.skipType(tag & 7);
|
|
4643
|
-
break;
|
|
4644
|
-
}
|
|
4645
|
-
}
|
|
4646
|
-
return message;
|
|
4647
|
-
};
|
|
4648
|
-
|
|
4649
|
-
/**
|
|
4650
|
-
* Decodes a ChainLockSignatureMessages message from the specified reader or buffer, length delimited.
|
|
4651
|
-
* @function decodeDelimited
|
|
4652
|
-
* @memberof org.dash.platform.dapi.v0.ChainLockSignatureMessages
|
|
4653
|
-
* @static
|
|
4654
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4655
|
-
* @returns {org.dash.platform.dapi.v0.ChainLockSignatureMessages} ChainLockSignatureMessages
|
|
4656
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4657
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4658
|
-
*/
|
|
4659
|
-
ChainLockSignatureMessages.decodeDelimited = function decodeDelimited(reader) {
|
|
4660
|
-
if (!(reader instanceof $Reader))
|
|
4661
|
-
reader = new $Reader(reader);
|
|
4662
|
-
return this.decode(reader, reader.uint32());
|
|
4663
|
-
};
|
|
4664
|
-
|
|
4665
|
-
/**
|
|
4666
|
-
* Verifies a ChainLockSignatureMessages message.
|
|
4667
|
-
* @function verify
|
|
4668
|
-
* @memberof org.dash.platform.dapi.v0.ChainLockSignatureMessages
|
|
4669
|
-
* @static
|
|
4670
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
4671
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
4672
|
-
*/
|
|
4673
|
-
ChainLockSignatureMessages.verify = function verify(message) {
|
|
4674
|
-
if (typeof message !== "object" || message === null)
|
|
4675
|
-
return "object expected";
|
|
4676
|
-
if (message.messages != null && message.hasOwnProperty("messages")) {
|
|
4677
|
-
if (!Array.isArray(message.messages))
|
|
4678
|
-
return "messages: array expected";
|
|
4679
|
-
for (var i = 0; i < message.messages.length; ++i)
|
|
4680
|
-
if (!(message.messages[i] && typeof message.messages[i].length === "number" || $util.isString(message.messages[i])))
|
|
4681
|
-
return "messages: buffer[] expected";
|
|
4682
|
-
}
|
|
4683
|
-
return null;
|
|
4684
|
-
};
|
|
4685
|
-
|
|
4686
|
-
/**
|
|
4687
|
-
* Creates a ChainLockSignatureMessages message from a plain object. Also converts values to their respective internal types.
|
|
4688
|
-
* @function fromObject
|
|
4689
|
-
* @memberof org.dash.platform.dapi.v0.ChainLockSignatureMessages
|
|
4690
|
-
* @static
|
|
4691
|
-
* @param {Object.<string,*>} object Plain object
|
|
4692
|
-
* @returns {org.dash.platform.dapi.v0.ChainLockSignatureMessages} ChainLockSignatureMessages
|
|
4693
|
-
*/
|
|
4694
|
-
ChainLockSignatureMessages.fromObject = function fromObject(object) {
|
|
4695
|
-
if (object instanceof $root.org.dash.platform.dapi.v0.ChainLockSignatureMessages)
|
|
4696
|
-
return object;
|
|
4697
|
-
var message = new $root.org.dash.platform.dapi.v0.ChainLockSignatureMessages();
|
|
4698
|
-
if (object.messages) {
|
|
4699
|
-
if (!Array.isArray(object.messages))
|
|
4700
|
-
throw TypeError(".org.dash.platform.dapi.v0.ChainLockSignatureMessages.messages: array expected");
|
|
4701
|
-
message.messages = [];
|
|
4702
|
-
for (var i = 0; i < object.messages.length; ++i)
|
|
4703
|
-
if (typeof object.messages[i] === "string")
|
|
4704
|
-
$util.base64.decode(object.messages[i], message.messages[i] = $util.newBuffer($util.base64.length(object.messages[i])), 0);
|
|
4705
|
-
else if (object.messages[i].length >= 0)
|
|
4706
|
-
message.messages[i] = object.messages[i];
|
|
4707
|
-
}
|
|
4708
|
-
return message;
|
|
4709
|
-
};
|
|
4710
|
-
|
|
4711
|
-
/**
|
|
4712
|
-
* Creates a plain object from a ChainLockSignatureMessages message. Also converts values to other types if specified.
|
|
4713
|
-
* @function toObject
|
|
4714
|
-
* @memberof org.dash.platform.dapi.v0.ChainLockSignatureMessages
|
|
4715
|
-
* @static
|
|
4716
|
-
* @param {org.dash.platform.dapi.v0.ChainLockSignatureMessages} message ChainLockSignatureMessages
|
|
4717
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
4718
|
-
* @returns {Object.<string,*>} Plain object
|
|
4719
|
-
*/
|
|
4720
|
-
ChainLockSignatureMessages.toObject = function toObject(message, options) {
|
|
4721
|
-
if (!options)
|
|
4722
|
-
options = {};
|
|
4723
|
-
var object = {};
|
|
4724
|
-
if (options.arrays || options.defaults)
|
|
4725
|
-
object.messages = [];
|
|
4726
|
-
if (message.messages && message.messages.length) {
|
|
4727
|
-
object.messages = [];
|
|
4728
|
-
for (var j = 0; j < message.messages.length; ++j)
|
|
4729
|
-
object.messages[j] = options.bytes === String ? $util.base64.encode(message.messages[j], 0, message.messages[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.messages[j]) : message.messages[j];
|
|
4730
|
-
}
|
|
4731
|
-
return object;
|
|
4732
|
-
};
|
|
4733
|
-
|
|
4734
|
-
/**
|
|
4735
|
-
* Converts this ChainLockSignatureMessages to JSON.
|
|
4736
|
-
* @function toJSON
|
|
4737
|
-
* @memberof org.dash.platform.dapi.v0.ChainLockSignatureMessages
|
|
4738
|
-
* @instance
|
|
4739
|
-
* @returns {Object.<string,*>} JSON object
|
|
4740
|
-
*/
|
|
4741
|
-
ChainLockSignatureMessages.prototype.toJSON = function toJSON() {
|
|
4742
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
4743
|
-
};
|
|
4744
|
-
|
|
4745
|
-
return ChainLockSignatureMessages;
|
|
4746
|
-
})();
|
|
4747
|
-
|
|
4748
4539
|
v0.GetEstimatedTransactionFeeRequest = (function() {
|
|
4749
4540
|
|
|
4750
4541
|
/**
|
|
@@ -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) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashevo/dapi-grpc",
|
|
3
|
-
"version": "0.22.0-dev.
|
|
3
|
+
"version": "0.22.0-dev.6",
|
|
4
4
|
"description": "DAPI GRPC definition file and generated clients",
|
|
5
5
|
"browser": "browser.js",
|
|
6
6
|
"main": "node.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/dashevo/dapi-grpc#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@dashevo/grpc-common": "~0.22.0-dev.
|
|
36
|
+
"@dashevo/grpc-common": "~0.22.0-dev.6",
|
|
37
37
|
"@grpc/grpc-js": "^1.3.7",
|
|
38
38
|
"google-protobuf": "^3.12.2",
|
|
39
39
|
"grpc-web": "1.2.1",
|
|
@@ -131,7 +131,7 @@ message BlockHeadersWithChainLocksRequest {
|
|
|
131
131
|
message BlockHeadersWithChainLocksResponse {
|
|
132
132
|
oneof responses {
|
|
133
133
|
BlockHeaders block_headers = 1;
|
|
134
|
-
|
|
134
|
+
bytes chain_lock = 2;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
@@ -139,10 +139,6 @@ message BlockHeaders {
|
|
|
139
139
|
repeated bytes headers = 1;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
message ChainLockSignatureMessages {
|
|
143
|
-
repeated bytes messages = 1;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
142
|
message GetEstimatedTransactionFeeRequest {
|
|
147
143
|
uint32 blocks = 1;
|
|
148
144
|
}
|