@dashevo/dapi-grpc 0.22.0-dev.4 → 0.22.0-dev.7.alpha.1
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 +20 -229
- 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 +47 -358
- package/clients/platform/v0/nodejs/platform_protoc.js +91 -432
- package/clients/platform/v0/web/platform_pb.js +91 -432
- package/package.json +2 -2
- package/protos/core/v0/core.proto +1 -5
- package/protos/platform/v0/platform.proto +7 -15
|
@@ -35,31 +35,9 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityResponse', null, g
|
|
|
35
35
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.Proof', null, global);
|
|
36
36
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.ResponseMetadata', null, global);
|
|
37
37
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.StateTransitionBroadcastError', null, global);
|
|
38
|
-
goog.exportSymbol('proto.org.dash.platform.dapi.v0.StoreTreeProofs', null, global);
|
|
39
38
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest', null, global);
|
|
40
39
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse', null, global);
|
|
41
40
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ResponsesCase', null, global);
|
|
42
|
-
/**
|
|
43
|
-
* Generated by JsPbCodeGenerator.
|
|
44
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
45
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
46
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
47
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
48
|
-
* valid.
|
|
49
|
-
* @extends {jspb.Message}
|
|
50
|
-
* @constructor
|
|
51
|
-
*/
|
|
52
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs = function(opt_data) {
|
|
53
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
54
|
-
};
|
|
55
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.StoreTreeProofs, jspb.Message);
|
|
56
|
-
if (goog.DEBUG && !COMPILED) {
|
|
57
|
-
/**
|
|
58
|
-
* @public
|
|
59
|
-
* @override
|
|
60
|
-
*/
|
|
61
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.displayName = 'proto.org.dash.platform.dapi.v0.StoreTreeProofs';
|
|
62
|
-
}
|
|
63
41
|
/**
|
|
64
42
|
* Generated by JsPbCodeGenerator.
|
|
65
43
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -504,322 +482,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
504
482
|
|
|
505
483
|
|
|
506
484
|
|
|
507
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
508
|
-
/**
|
|
509
|
-
* Creates an object representation of this proto.
|
|
510
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
511
|
-
* Optional fields that are not set will be set to undefined.
|
|
512
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
513
|
-
* For the list of reserved names please see:
|
|
514
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
515
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
516
|
-
* JSPB instance for transitional soy proto support:
|
|
517
|
-
* http://goto/soy-param-migration
|
|
518
|
-
* @return {!Object}
|
|
519
|
-
*/
|
|
520
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.toObject = function(opt_includeInstance) {
|
|
521
|
-
return proto.org.dash.platform.dapi.v0.StoreTreeProofs.toObject(opt_includeInstance, this);
|
|
522
|
-
};
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
/**
|
|
526
|
-
* Static version of the {@see toObject} method.
|
|
527
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
528
|
-
* the JSPB instance for transitional soy proto support:
|
|
529
|
-
* http://goto/soy-param-migration
|
|
530
|
-
* @param {!proto.org.dash.platform.dapi.v0.StoreTreeProofs} msg The msg instance to transform.
|
|
531
|
-
* @return {!Object}
|
|
532
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
533
|
-
*/
|
|
534
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.toObject = function(includeInstance, msg) {
|
|
535
|
-
var f, obj = {
|
|
536
|
-
identitiesProof: msg.getIdentitiesProof_asB64(),
|
|
537
|
-
publicKeyHashesToIdentityIdsProof: msg.getPublicKeyHashesToIdentityIdsProof_asB64(),
|
|
538
|
-
dataContractsProof: msg.getDataContractsProof_asB64(),
|
|
539
|
-
documentsProof: msg.getDocumentsProof_asB64()
|
|
540
|
-
};
|
|
541
|
-
|
|
542
|
-
if (includeInstance) {
|
|
543
|
-
obj.$jspbMessageInstance = msg;
|
|
544
|
-
}
|
|
545
|
-
return obj;
|
|
546
|
-
};
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
/**
|
|
551
|
-
* Deserializes binary data (in protobuf wire format).
|
|
552
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
553
|
-
* @return {!proto.org.dash.platform.dapi.v0.StoreTreeProofs}
|
|
554
|
-
*/
|
|
555
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.deserializeBinary = function(bytes) {
|
|
556
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
557
|
-
var msg = new proto.org.dash.platform.dapi.v0.StoreTreeProofs;
|
|
558
|
-
return proto.org.dash.platform.dapi.v0.StoreTreeProofs.deserializeBinaryFromReader(msg, reader);
|
|
559
|
-
};
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
/**
|
|
563
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
564
|
-
* given reader into the given message object.
|
|
565
|
-
* @param {!proto.org.dash.platform.dapi.v0.StoreTreeProofs} msg The message object to deserialize into.
|
|
566
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
567
|
-
* @return {!proto.org.dash.platform.dapi.v0.StoreTreeProofs}
|
|
568
|
-
*/
|
|
569
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.deserializeBinaryFromReader = function(msg, reader) {
|
|
570
|
-
while (reader.nextField()) {
|
|
571
|
-
if (reader.isEndGroup()) {
|
|
572
|
-
break;
|
|
573
|
-
}
|
|
574
|
-
var field = reader.getFieldNumber();
|
|
575
|
-
switch (field) {
|
|
576
|
-
case 1:
|
|
577
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
578
|
-
msg.setIdentitiesProof(value);
|
|
579
|
-
break;
|
|
580
|
-
case 2:
|
|
581
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
582
|
-
msg.setPublicKeyHashesToIdentityIdsProof(value);
|
|
583
|
-
break;
|
|
584
|
-
case 3:
|
|
585
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
586
|
-
msg.setDataContractsProof(value);
|
|
587
|
-
break;
|
|
588
|
-
case 4:
|
|
589
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
590
|
-
msg.setDocumentsProof(value);
|
|
591
|
-
break;
|
|
592
|
-
default:
|
|
593
|
-
reader.skipField();
|
|
594
|
-
break;
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
return msg;
|
|
598
|
-
};
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
/**
|
|
602
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
603
|
-
* @return {!Uint8Array}
|
|
604
|
-
*/
|
|
605
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.serializeBinary = function() {
|
|
606
|
-
var writer = new jspb.BinaryWriter();
|
|
607
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.serializeBinaryToWriter(this, writer);
|
|
608
|
-
return writer.getResultBuffer();
|
|
609
|
-
};
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
614
|
-
* format), writing to the given BinaryWriter.
|
|
615
|
-
* @param {!proto.org.dash.platform.dapi.v0.StoreTreeProofs} message
|
|
616
|
-
* @param {!jspb.BinaryWriter} writer
|
|
617
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
618
|
-
*/
|
|
619
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.serializeBinaryToWriter = function(message, writer) {
|
|
620
|
-
var f = undefined;
|
|
621
|
-
f = message.getIdentitiesProof_asU8();
|
|
622
|
-
if (f.length > 0) {
|
|
623
|
-
writer.writeBytes(
|
|
624
|
-
1,
|
|
625
|
-
f
|
|
626
|
-
);
|
|
627
|
-
}
|
|
628
|
-
f = message.getPublicKeyHashesToIdentityIdsProof_asU8();
|
|
629
|
-
if (f.length > 0) {
|
|
630
|
-
writer.writeBytes(
|
|
631
|
-
2,
|
|
632
|
-
f
|
|
633
|
-
);
|
|
634
|
-
}
|
|
635
|
-
f = message.getDataContractsProof_asU8();
|
|
636
|
-
if (f.length > 0) {
|
|
637
|
-
writer.writeBytes(
|
|
638
|
-
3,
|
|
639
|
-
f
|
|
640
|
-
);
|
|
641
|
-
}
|
|
642
|
-
f = message.getDocumentsProof_asU8();
|
|
643
|
-
if (f.length > 0) {
|
|
644
|
-
writer.writeBytes(
|
|
645
|
-
4,
|
|
646
|
-
f
|
|
647
|
-
);
|
|
648
|
-
}
|
|
649
|
-
};
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
/**
|
|
653
|
-
* optional bytes identities_proof = 1;
|
|
654
|
-
* @return {string}
|
|
655
|
-
*/
|
|
656
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.getIdentitiesProof = function() {
|
|
657
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
658
|
-
};
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
* optional bytes identities_proof = 1;
|
|
663
|
-
* This is a type-conversion wrapper around `getIdentitiesProof()`
|
|
664
|
-
* @return {string}
|
|
665
|
-
*/
|
|
666
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.getIdentitiesProof_asB64 = function() {
|
|
667
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
668
|
-
this.getIdentitiesProof()));
|
|
669
|
-
};
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
/**
|
|
673
|
-
* optional bytes identities_proof = 1;
|
|
674
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
675
|
-
* @see http://caniuse.com/Uint8Array
|
|
676
|
-
* This is a type-conversion wrapper around `getIdentitiesProof()`
|
|
677
|
-
* @return {!Uint8Array}
|
|
678
|
-
*/
|
|
679
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.getIdentitiesProof_asU8 = function() {
|
|
680
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
681
|
-
this.getIdentitiesProof()));
|
|
682
|
-
};
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
/**
|
|
686
|
-
* @param {!(string|Uint8Array)} value
|
|
687
|
-
* @return {!proto.org.dash.platform.dapi.v0.StoreTreeProofs} returns this
|
|
688
|
-
*/
|
|
689
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.setIdentitiesProof = function(value) {
|
|
690
|
-
return jspb.Message.setProto3BytesField(this, 1, value);
|
|
691
|
-
};
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
/**
|
|
695
|
-
* optional bytes public_key_hashes_to_identity_ids_proof = 2;
|
|
696
|
-
* @return {string}
|
|
697
|
-
*/
|
|
698
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.getPublicKeyHashesToIdentityIdsProof = function() {
|
|
699
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
700
|
-
};
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
/**
|
|
704
|
-
* optional bytes public_key_hashes_to_identity_ids_proof = 2;
|
|
705
|
-
* This is a type-conversion wrapper around `getPublicKeyHashesToIdentityIdsProof()`
|
|
706
|
-
* @return {string}
|
|
707
|
-
*/
|
|
708
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.getPublicKeyHashesToIdentityIdsProof_asB64 = function() {
|
|
709
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
710
|
-
this.getPublicKeyHashesToIdentityIdsProof()));
|
|
711
|
-
};
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
/**
|
|
715
|
-
* optional bytes public_key_hashes_to_identity_ids_proof = 2;
|
|
716
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
717
|
-
* @see http://caniuse.com/Uint8Array
|
|
718
|
-
* This is a type-conversion wrapper around `getPublicKeyHashesToIdentityIdsProof()`
|
|
719
|
-
* @return {!Uint8Array}
|
|
720
|
-
*/
|
|
721
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.getPublicKeyHashesToIdentityIdsProof_asU8 = function() {
|
|
722
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
723
|
-
this.getPublicKeyHashesToIdentityIdsProof()));
|
|
724
|
-
};
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
/**
|
|
728
|
-
* @param {!(string|Uint8Array)} value
|
|
729
|
-
* @return {!proto.org.dash.platform.dapi.v0.StoreTreeProofs} returns this
|
|
730
|
-
*/
|
|
731
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.setPublicKeyHashesToIdentityIdsProof = function(value) {
|
|
732
|
-
return jspb.Message.setProto3BytesField(this, 2, value);
|
|
733
|
-
};
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
/**
|
|
737
|
-
* optional bytes data_contracts_proof = 3;
|
|
738
|
-
* @return {string}
|
|
739
|
-
*/
|
|
740
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.getDataContractsProof = function() {
|
|
741
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
742
|
-
};
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
/**
|
|
746
|
-
* optional bytes data_contracts_proof = 3;
|
|
747
|
-
* This is a type-conversion wrapper around `getDataContractsProof()`
|
|
748
|
-
* @return {string}
|
|
749
|
-
*/
|
|
750
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.getDataContractsProof_asB64 = function() {
|
|
751
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
752
|
-
this.getDataContractsProof()));
|
|
753
|
-
};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
/**
|
|
757
|
-
* optional bytes data_contracts_proof = 3;
|
|
758
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
759
|
-
* @see http://caniuse.com/Uint8Array
|
|
760
|
-
* This is a type-conversion wrapper around `getDataContractsProof()`
|
|
761
|
-
* @return {!Uint8Array}
|
|
762
|
-
*/
|
|
763
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.getDataContractsProof_asU8 = function() {
|
|
764
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
765
|
-
this.getDataContractsProof()));
|
|
766
|
-
};
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
/**
|
|
770
|
-
* @param {!(string|Uint8Array)} value
|
|
771
|
-
* @return {!proto.org.dash.platform.dapi.v0.StoreTreeProofs} returns this
|
|
772
|
-
*/
|
|
773
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.setDataContractsProof = function(value) {
|
|
774
|
-
return jspb.Message.setProto3BytesField(this, 3, value);
|
|
775
|
-
};
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
/**
|
|
779
|
-
* optional bytes documents_proof = 4;
|
|
780
|
-
* @return {string}
|
|
781
|
-
*/
|
|
782
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.getDocumentsProof = function() {
|
|
783
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
784
|
-
};
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
/**
|
|
788
|
-
* optional bytes documents_proof = 4;
|
|
789
|
-
* This is a type-conversion wrapper around `getDocumentsProof()`
|
|
790
|
-
* @return {string}
|
|
791
|
-
*/
|
|
792
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.getDocumentsProof_asB64 = function() {
|
|
793
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
794
|
-
this.getDocumentsProof()));
|
|
795
|
-
};
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
/**
|
|
799
|
-
* optional bytes documents_proof = 4;
|
|
800
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
801
|
-
* @see http://caniuse.com/Uint8Array
|
|
802
|
-
* This is a type-conversion wrapper around `getDocumentsProof()`
|
|
803
|
-
* @return {!Uint8Array}
|
|
804
|
-
*/
|
|
805
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.getDocumentsProof_asU8 = function() {
|
|
806
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
807
|
-
this.getDocumentsProof()));
|
|
808
|
-
};
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
/**
|
|
812
|
-
* @param {!(string|Uint8Array)} value
|
|
813
|
-
* @return {!proto.org.dash.platform.dapi.v0.StoreTreeProofs} returns this
|
|
814
|
-
*/
|
|
815
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.prototype.setDocumentsProof = function(value) {
|
|
816
|
-
return jspb.Message.setProto3BytesField(this, 4, value);
|
|
817
|
-
};
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
485
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
824
486
|
/**
|
|
825
487
|
* Creates an object representation of this proto.
|
|
@@ -849,8 +511,7 @@ proto.org.dash.platform.dapi.v0.Proof.prototype.toObject = function(opt_includeI
|
|
|
849
511
|
*/
|
|
850
512
|
proto.org.dash.platform.dapi.v0.Proof.toObject = function(includeInstance, msg) {
|
|
851
513
|
var f, obj = {
|
|
852
|
-
|
|
853
|
-
storeTreeProofs: (f = msg.getStoreTreeProofs()) && proto.org.dash.platform.dapi.v0.StoreTreeProofs.toObject(includeInstance, f),
|
|
514
|
+
merkleProof: msg.getMerkleProof_asB64(),
|
|
854
515
|
signatureLlmqHash: msg.getSignatureLlmqHash_asB64(),
|
|
855
516
|
signature: msg.getSignature_asB64()
|
|
856
517
|
};
|
|
@@ -891,18 +552,13 @@ proto.org.dash.platform.dapi.v0.Proof.deserializeBinaryFromReader = function(msg
|
|
|
891
552
|
switch (field) {
|
|
892
553
|
case 1:
|
|
893
554
|
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
894
|
-
msg.
|
|
555
|
+
msg.setMerkleProof(value);
|
|
895
556
|
break;
|
|
896
557
|
case 2:
|
|
897
|
-
var value = new proto.org.dash.platform.dapi.v0.StoreTreeProofs;
|
|
898
|
-
reader.readMessage(value,proto.org.dash.platform.dapi.v0.StoreTreeProofs.deserializeBinaryFromReader);
|
|
899
|
-
msg.setStoreTreeProofs(value);
|
|
900
|
-
break;
|
|
901
|
-
case 3:
|
|
902
558
|
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
903
559
|
msg.setSignatureLlmqHash(value);
|
|
904
560
|
break;
|
|
905
|
-
case
|
|
561
|
+
case 3:
|
|
906
562
|
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
907
563
|
msg.setSignature(value);
|
|
908
564
|
break;
|
|
@@ -935,32 +591,24 @@ proto.org.dash.platform.dapi.v0.Proof.prototype.serializeBinary = function() {
|
|
|
935
591
|
*/
|
|
936
592
|
proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter = function(message, writer) {
|
|
937
593
|
var f = undefined;
|
|
938
|
-
f = message.
|
|
594
|
+
f = message.getMerkleProof_asU8();
|
|
939
595
|
if (f.length > 0) {
|
|
940
596
|
writer.writeBytes(
|
|
941
597
|
1,
|
|
942
598
|
f
|
|
943
599
|
);
|
|
944
600
|
}
|
|
945
|
-
f = message.getStoreTreeProofs();
|
|
946
|
-
if (f != null) {
|
|
947
|
-
writer.writeMessage(
|
|
948
|
-
2,
|
|
949
|
-
f,
|
|
950
|
-
proto.org.dash.platform.dapi.v0.StoreTreeProofs.serializeBinaryToWriter
|
|
951
|
-
);
|
|
952
|
-
}
|
|
953
601
|
f = message.getSignatureLlmqHash_asU8();
|
|
954
602
|
if (f.length > 0) {
|
|
955
603
|
writer.writeBytes(
|
|
956
|
-
|
|
604
|
+
2,
|
|
957
605
|
f
|
|
958
606
|
);
|
|
959
607
|
}
|
|
960
608
|
f = message.getSignature_asU8();
|
|
961
609
|
if (f.length > 0) {
|
|
962
610
|
writer.writeBytes(
|
|
963
|
-
|
|
611
|
+
3,
|
|
964
612
|
f
|
|
965
613
|
);
|
|
966
614
|
}
|
|
@@ -968,35 +616,35 @@ proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter = function(message
|
|
|
968
616
|
|
|
969
617
|
|
|
970
618
|
/**
|
|
971
|
-
* optional bytes
|
|
619
|
+
* optional bytes merkle_proof = 1;
|
|
972
620
|
* @return {string}
|
|
973
621
|
*/
|
|
974
|
-
proto.org.dash.platform.dapi.v0.Proof.prototype.
|
|
622
|
+
proto.org.dash.platform.dapi.v0.Proof.prototype.getMerkleProof = function() {
|
|
975
623
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
976
624
|
};
|
|
977
625
|
|
|
978
626
|
|
|
979
627
|
/**
|
|
980
|
-
* optional bytes
|
|
981
|
-
* This is a type-conversion wrapper around `
|
|
628
|
+
* optional bytes merkle_proof = 1;
|
|
629
|
+
* This is a type-conversion wrapper around `getMerkleProof()`
|
|
982
630
|
* @return {string}
|
|
983
631
|
*/
|
|
984
|
-
proto.org.dash.platform.dapi.v0.Proof.prototype.
|
|
632
|
+
proto.org.dash.platform.dapi.v0.Proof.prototype.getMerkleProof_asB64 = function() {
|
|
985
633
|
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
986
|
-
this.
|
|
634
|
+
this.getMerkleProof()));
|
|
987
635
|
};
|
|
988
636
|
|
|
989
637
|
|
|
990
638
|
/**
|
|
991
|
-
* optional bytes
|
|
639
|
+
* optional bytes merkle_proof = 1;
|
|
992
640
|
* Note that Uint8Array is not supported on all browsers.
|
|
993
641
|
* @see http://caniuse.com/Uint8Array
|
|
994
|
-
* This is a type-conversion wrapper around `
|
|
642
|
+
* This is a type-conversion wrapper around `getMerkleProof()`
|
|
995
643
|
* @return {!Uint8Array}
|
|
996
644
|
*/
|
|
997
|
-
proto.org.dash.platform.dapi.v0.Proof.prototype.
|
|
645
|
+
proto.org.dash.platform.dapi.v0.Proof.prototype.getMerkleProof_asU8 = function() {
|
|
998
646
|
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
999
|
-
this.
|
|
647
|
+
this.getMerkleProof()));
|
|
1000
648
|
};
|
|
1001
649
|
|
|
1002
650
|
|
|
@@ -1004,59 +652,22 @@ proto.org.dash.platform.dapi.v0.Proof.prototype.getRootTreeProof_asU8 = function
|
|
|
1004
652
|
* @param {!(string|Uint8Array)} value
|
|
1005
653
|
* @return {!proto.org.dash.platform.dapi.v0.Proof} returns this
|
|
1006
654
|
*/
|
|
1007
|
-
proto.org.dash.platform.dapi.v0.Proof.prototype.
|
|
655
|
+
proto.org.dash.platform.dapi.v0.Proof.prototype.setMerkleProof = function(value) {
|
|
1008
656
|
return jspb.Message.setProto3BytesField(this, 1, value);
|
|
1009
657
|
};
|
|
1010
658
|
|
|
1011
659
|
|
|
1012
660
|
/**
|
|
1013
|
-
* optional
|
|
1014
|
-
* @return {?proto.org.dash.platform.dapi.v0.StoreTreeProofs}
|
|
1015
|
-
*/
|
|
1016
|
-
proto.org.dash.platform.dapi.v0.Proof.prototype.getStoreTreeProofs = function() {
|
|
1017
|
-
return /** @type{?proto.org.dash.platform.dapi.v0.StoreTreeProofs} */ (
|
|
1018
|
-
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.StoreTreeProofs, 2));
|
|
1019
|
-
};
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
/**
|
|
1023
|
-
* @param {?proto.org.dash.platform.dapi.v0.StoreTreeProofs|undefined} value
|
|
1024
|
-
* @return {!proto.org.dash.platform.dapi.v0.Proof} returns this
|
|
1025
|
-
*/
|
|
1026
|
-
proto.org.dash.platform.dapi.v0.Proof.prototype.setStoreTreeProofs = function(value) {
|
|
1027
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
1028
|
-
};
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
/**
|
|
1032
|
-
* Clears the message field making it undefined.
|
|
1033
|
-
* @return {!proto.org.dash.platform.dapi.v0.Proof} returns this
|
|
1034
|
-
*/
|
|
1035
|
-
proto.org.dash.platform.dapi.v0.Proof.prototype.clearStoreTreeProofs = function() {
|
|
1036
|
-
return this.setStoreTreeProofs(undefined);
|
|
1037
|
-
};
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
/**
|
|
1041
|
-
* Returns whether this field is set.
|
|
1042
|
-
* @return {boolean}
|
|
1043
|
-
*/
|
|
1044
|
-
proto.org.dash.platform.dapi.v0.Proof.prototype.hasStoreTreeProofs = function() {
|
|
1045
|
-
return jspb.Message.getField(this, 2) != null;
|
|
1046
|
-
};
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
/**
|
|
1050
|
-
* optional bytes signature_llmq_hash = 3;
|
|
661
|
+
* optional bytes signature_llmq_hash = 2;
|
|
1051
662
|
* @return {string}
|
|
1052
663
|
*/
|
|
1053
664
|
proto.org.dash.platform.dapi.v0.Proof.prototype.getSignatureLlmqHash = function() {
|
|
1054
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
665
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1055
666
|
};
|
|
1056
667
|
|
|
1057
668
|
|
|
1058
669
|
/**
|
|
1059
|
-
* optional bytes signature_llmq_hash =
|
|
670
|
+
* optional bytes signature_llmq_hash = 2;
|
|
1060
671
|
* This is a type-conversion wrapper around `getSignatureLlmqHash()`
|
|
1061
672
|
* @return {string}
|
|
1062
673
|
*/
|
|
@@ -1067,7 +678,7 @@ proto.org.dash.platform.dapi.v0.Proof.prototype.getSignatureLlmqHash_asB64 = fun
|
|
|
1067
678
|
|
|
1068
679
|
|
|
1069
680
|
/**
|
|
1070
|
-
* optional bytes signature_llmq_hash =
|
|
681
|
+
* optional bytes signature_llmq_hash = 2;
|
|
1071
682
|
* Note that Uint8Array is not supported on all browsers.
|
|
1072
683
|
* @see http://caniuse.com/Uint8Array
|
|
1073
684
|
* This is a type-conversion wrapper around `getSignatureLlmqHash()`
|
|
@@ -1084,21 +695,21 @@ proto.org.dash.platform.dapi.v0.Proof.prototype.getSignatureLlmqHash_asU8 = func
|
|
|
1084
695
|
* @return {!proto.org.dash.platform.dapi.v0.Proof} returns this
|
|
1085
696
|
*/
|
|
1086
697
|
proto.org.dash.platform.dapi.v0.Proof.prototype.setSignatureLlmqHash = function(value) {
|
|
1087
|
-
return jspb.Message.setProto3BytesField(this,
|
|
698
|
+
return jspb.Message.setProto3BytesField(this, 2, value);
|
|
1088
699
|
};
|
|
1089
700
|
|
|
1090
701
|
|
|
1091
702
|
/**
|
|
1092
|
-
* optional bytes signature =
|
|
703
|
+
* optional bytes signature = 3;
|
|
1093
704
|
* @return {string}
|
|
1094
705
|
*/
|
|
1095
706
|
proto.org.dash.platform.dapi.v0.Proof.prototype.getSignature = function() {
|
|
1096
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
707
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1097
708
|
};
|
|
1098
709
|
|
|
1099
710
|
|
|
1100
711
|
/**
|
|
1101
|
-
* optional bytes signature =
|
|
712
|
+
* optional bytes signature = 3;
|
|
1102
713
|
* This is a type-conversion wrapper around `getSignature()`
|
|
1103
714
|
* @return {string}
|
|
1104
715
|
*/
|
|
@@ -1109,7 +720,7 @@ proto.org.dash.platform.dapi.v0.Proof.prototype.getSignature_asB64 = function()
|
|
|
1109
720
|
|
|
1110
721
|
|
|
1111
722
|
/**
|
|
1112
|
-
* optional bytes signature =
|
|
723
|
+
* optional bytes signature = 3;
|
|
1113
724
|
* Note that Uint8Array is not supported on all browsers.
|
|
1114
725
|
* @see http://caniuse.com/Uint8Array
|
|
1115
726
|
* This is a type-conversion wrapper around `getSignature()`
|
|
@@ -1126,7 +737,7 @@ proto.org.dash.platform.dapi.v0.Proof.prototype.getSignature_asU8 = function() {
|
|
|
1126
737
|
* @return {!proto.org.dash.platform.dapi.v0.Proof} returns this
|
|
1127
738
|
*/
|
|
1128
739
|
proto.org.dash.platform.dapi.v0.Proof.prototype.setSignature = function(value) {
|
|
1129
|
-
return jspb.Message.setProto3BytesField(this,
|
|
740
|
+
return jspb.Message.setProto3BytesField(this, 3, value);
|
|
1130
741
|
};
|
|
1131
742
|
|
|
1132
743
|
|
|
@@ -2702,8 +2313,8 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.toObject = function(includeI
|
|
|
2702
2313
|
where: msg.getWhere_asB64(),
|
|
2703
2314
|
orderBy: msg.getOrderBy_asB64(),
|
|
2704
2315
|
limit: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
2705
|
-
startAfter:
|
|
2706
|
-
startAt:
|
|
2316
|
+
startAfter: msg.getStartAfter_asB64(),
|
|
2317
|
+
startAt: msg.getStartAt_asB64(),
|
|
2707
2318
|
prove: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
|
|
2708
2319
|
};
|
|
2709
2320
|
|
|
@@ -2762,11 +2373,11 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.deserializeBinaryFromReader
|
|
|
2762
2373
|
msg.setLimit(value);
|
|
2763
2374
|
break;
|
|
2764
2375
|
case 6:
|
|
2765
|
-
var value = /** @type {
|
|
2376
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
2766
2377
|
msg.setStartAfter(value);
|
|
2767
2378
|
break;
|
|
2768
2379
|
case 7:
|
|
2769
|
-
var value = /** @type {
|
|
2380
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
2770
2381
|
msg.setStartAt(value);
|
|
2771
2382
|
break;
|
|
2772
2383
|
case 8:
|
|
@@ -2837,16 +2448,16 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.serializeBinaryToWriter = fu
|
|
|
2837
2448
|
f
|
|
2838
2449
|
);
|
|
2839
2450
|
}
|
|
2840
|
-
f = /** @type {
|
|
2451
|
+
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 6));
|
|
2841
2452
|
if (f != null) {
|
|
2842
|
-
writer.
|
|
2453
|
+
writer.writeBytes(
|
|
2843
2454
|
6,
|
|
2844
2455
|
f
|
|
2845
2456
|
);
|
|
2846
2457
|
}
|
|
2847
|
-
f = /** @type {
|
|
2458
|
+
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 7));
|
|
2848
2459
|
if (f != null) {
|
|
2849
|
-
writer.
|
|
2460
|
+
writer.writeBytes(
|
|
2850
2461
|
7,
|
|
2851
2462
|
f
|
|
2852
2463
|
);
|
|
@@ -3024,16 +2635,40 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.setLimit = functio
|
|
|
3024
2635
|
|
|
3025
2636
|
|
|
3026
2637
|
/**
|
|
3027
|
-
* optional
|
|
3028
|
-
* @return {
|
|
2638
|
+
* optional bytes start_after = 6;
|
|
2639
|
+
* @return {string}
|
|
3029
2640
|
*/
|
|
3030
2641
|
proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getStartAfter = function() {
|
|
3031
|
-
return /** @type {
|
|
2642
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
3032
2643
|
};
|
|
3033
2644
|
|
|
3034
2645
|
|
|
3035
2646
|
/**
|
|
3036
|
-
*
|
|
2647
|
+
* optional bytes start_after = 6;
|
|
2648
|
+
* This is a type-conversion wrapper around `getStartAfter()`
|
|
2649
|
+
* @return {string}
|
|
2650
|
+
*/
|
|
2651
|
+
proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getStartAfter_asB64 = function() {
|
|
2652
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
2653
|
+
this.getStartAfter()));
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2656
|
+
|
|
2657
|
+
/**
|
|
2658
|
+
* optional bytes start_after = 6;
|
|
2659
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
2660
|
+
* @see http://caniuse.com/Uint8Array
|
|
2661
|
+
* This is a type-conversion wrapper around `getStartAfter()`
|
|
2662
|
+
* @return {!Uint8Array}
|
|
2663
|
+
*/
|
|
2664
|
+
proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getStartAfter_asU8 = function() {
|
|
2665
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
2666
|
+
this.getStartAfter()));
|
|
2667
|
+
};
|
|
2668
|
+
|
|
2669
|
+
|
|
2670
|
+
/**
|
|
2671
|
+
* @param {!(string|Uint8Array)} value
|
|
3037
2672
|
* @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} returns this
|
|
3038
2673
|
*/
|
|
3039
2674
|
proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.setStartAfter = function(value) {
|
|
@@ -3060,16 +2695,40 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.hasStartAfter = fu
|
|
|
3060
2695
|
|
|
3061
2696
|
|
|
3062
2697
|
/**
|
|
3063
|
-
* optional
|
|
3064
|
-
* @return {
|
|
2698
|
+
* optional bytes start_at = 7;
|
|
2699
|
+
* @return {string}
|
|
3065
2700
|
*/
|
|
3066
2701
|
proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getStartAt = function() {
|
|
3067
|
-
return /** @type {
|
|
2702
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
3068
2703
|
};
|
|
3069
2704
|
|
|
3070
2705
|
|
|
3071
2706
|
/**
|
|
3072
|
-
*
|
|
2707
|
+
* optional bytes start_at = 7;
|
|
2708
|
+
* This is a type-conversion wrapper around `getStartAt()`
|
|
2709
|
+
* @return {string}
|
|
2710
|
+
*/
|
|
2711
|
+
proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getStartAt_asB64 = function() {
|
|
2712
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
2713
|
+
this.getStartAt()));
|
|
2714
|
+
};
|
|
2715
|
+
|
|
2716
|
+
|
|
2717
|
+
/**
|
|
2718
|
+
* optional bytes start_at = 7;
|
|
2719
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
2720
|
+
* @see http://caniuse.com/Uint8Array
|
|
2721
|
+
* This is a type-conversion wrapper around `getStartAt()`
|
|
2722
|
+
* @return {!Uint8Array}
|
|
2723
|
+
*/
|
|
2724
|
+
proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getStartAt_asU8 = function() {
|
|
2725
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
2726
|
+
this.getStartAt()));
|
|
2727
|
+
};
|
|
2728
|
+
|
|
2729
|
+
|
|
2730
|
+
/**
|
|
2731
|
+
* @param {!(string|Uint8Array)} value
|
|
3073
2732
|
* @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} returns this
|
|
3074
2733
|
*/
|
|
3075
2734
|
proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.setStartAt = function(value) {
|