@dashevo/dapi-grpc 4.2.0-beta.3 → 4.2.0-beta.4

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.
@@ -23564,15 +23564,236 @@ $root.org = (function() {
23564
23564
  * @property {number} CONTRACT_MODERATION_LIST_UNSPECIFIED=0 CONTRACT_MODERATION_LIST_UNSPECIFIED value
23565
23565
  * @property {number} CONTRACT_MODERATION_LIST_BANLIST=1 CONTRACT_MODERATION_LIST_BANLIST value
23566
23566
  * @property {number} CONTRACT_MODERATION_LIST_SUSPENSIONS=2 CONTRACT_MODERATION_LIST_SUSPENSIONS value
23567
+ * @property {number} CONTRACT_MODERATION_LIST_WARNINGS=3 CONTRACT_MODERATION_LIST_WARNINGS value
23567
23568
  */
23568
23569
  v0.ContractModerationList = (function() {
23569
23570
  var valuesById = {}, values = Object.create(valuesById);
23570
23571
  values[valuesById[0] = "CONTRACT_MODERATION_LIST_UNSPECIFIED"] = 0;
23571
23572
  values[valuesById[1] = "CONTRACT_MODERATION_LIST_BANLIST"] = 1;
23572
23573
  values[valuesById[2] = "CONTRACT_MODERATION_LIST_SUSPENSIONS"] = 2;
23574
+ values[valuesById[3] = "CONTRACT_MODERATION_LIST_WARNINGS"] = 3;
23573
23575
  return values;
23574
23576
  })();
23575
23577
 
23578
+ v0.ContractModerationDocument = (function() {
23579
+
23580
+ /**
23581
+ * Properties of a ContractModerationDocument.
23582
+ * @memberof org.dash.platform.dapi.v0
23583
+ * @interface IContractModerationDocument
23584
+ * @property {string|null} [documentTypeName] ContractModerationDocument documentTypeName
23585
+ * @property {Uint8Array|null} [documentId] ContractModerationDocument documentId
23586
+ */
23587
+
23588
+ /**
23589
+ * Constructs a new ContractModerationDocument.
23590
+ * @memberof org.dash.platform.dapi.v0
23591
+ * @classdesc Represents a ContractModerationDocument.
23592
+ * @implements IContractModerationDocument
23593
+ * @constructor
23594
+ * @param {org.dash.platform.dapi.v0.IContractModerationDocument=} [properties] Properties to set
23595
+ */
23596
+ function ContractModerationDocument(properties) {
23597
+ if (properties)
23598
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23599
+ if (properties[keys[i]] != null)
23600
+ this[keys[i]] = properties[keys[i]];
23601
+ }
23602
+
23603
+ /**
23604
+ * ContractModerationDocument documentTypeName.
23605
+ * @member {string} documentTypeName
23606
+ * @memberof org.dash.platform.dapi.v0.ContractModerationDocument
23607
+ * @instance
23608
+ */
23609
+ ContractModerationDocument.prototype.documentTypeName = "";
23610
+
23611
+ /**
23612
+ * ContractModerationDocument documentId.
23613
+ * @member {Uint8Array} documentId
23614
+ * @memberof org.dash.platform.dapi.v0.ContractModerationDocument
23615
+ * @instance
23616
+ */
23617
+ ContractModerationDocument.prototype.documentId = $util.newBuffer([]);
23618
+
23619
+ /**
23620
+ * Creates a new ContractModerationDocument instance using the specified properties.
23621
+ * @function create
23622
+ * @memberof org.dash.platform.dapi.v0.ContractModerationDocument
23623
+ * @static
23624
+ * @param {org.dash.platform.dapi.v0.IContractModerationDocument=} [properties] Properties to set
23625
+ * @returns {org.dash.platform.dapi.v0.ContractModerationDocument} ContractModerationDocument instance
23626
+ */
23627
+ ContractModerationDocument.create = function create(properties) {
23628
+ return new ContractModerationDocument(properties);
23629
+ };
23630
+
23631
+ /**
23632
+ * Encodes the specified ContractModerationDocument message. Does not implicitly {@link org.dash.platform.dapi.v0.ContractModerationDocument.verify|verify} messages.
23633
+ * @function encode
23634
+ * @memberof org.dash.platform.dapi.v0.ContractModerationDocument
23635
+ * @static
23636
+ * @param {org.dash.platform.dapi.v0.IContractModerationDocument} message ContractModerationDocument message or plain object to encode
23637
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23638
+ * @returns {$protobuf.Writer} Writer
23639
+ */
23640
+ ContractModerationDocument.encode = function encode(message, writer) {
23641
+ if (!writer)
23642
+ writer = $Writer.create();
23643
+ if (message.documentTypeName != null && Object.hasOwnProperty.call(message, "documentTypeName"))
23644
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.documentTypeName);
23645
+ if (message.documentId != null && Object.hasOwnProperty.call(message, "documentId"))
23646
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.documentId);
23647
+ return writer;
23648
+ };
23649
+
23650
+ /**
23651
+ * Encodes the specified ContractModerationDocument message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.ContractModerationDocument.verify|verify} messages.
23652
+ * @function encodeDelimited
23653
+ * @memberof org.dash.platform.dapi.v0.ContractModerationDocument
23654
+ * @static
23655
+ * @param {org.dash.platform.dapi.v0.IContractModerationDocument} message ContractModerationDocument message or plain object to encode
23656
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23657
+ * @returns {$protobuf.Writer} Writer
23658
+ */
23659
+ ContractModerationDocument.encodeDelimited = function encodeDelimited(message, writer) {
23660
+ return this.encode(message, writer).ldelim();
23661
+ };
23662
+
23663
+ /**
23664
+ * Decodes a ContractModerationDocument message from the specified reader or buffer.
23665
+ * @function decode
23666
+ * @memberof org.dash.platform.dapi.v0.ContractModerationDocument
23667
+ * @static
23668
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23669
+ * @param {number} [length] Message length if known beforehand
23670
+ * @returns {org.dash.platform.dapi.v0.ContractModerationDocument} ContractModerationDocument
23671
+ * @throws {Error} If the payload is not a reader or valid buffer
23672
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23673
+ */
23674
+ ContractModerationDocument.decode = function decode(reader, length) {
23675
+ if (!(reader instanceof $Reader))
23676
+ reader = $Reader.create(reader);
23677
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.ContractModerationDocument();
23678
+ while (reader.pos < end) {
23679
+ var tag = reader.uint32();
23680
+ switch (tag >>> 3) {
23681
+ case 1:
23682
+ message.documentTypeName = reader.string();
23683
+ break;
23684
+ case 2:
23685
+ message.documentId = reader.bytes();
23686
+ break;
23687
+ default:
23688
+ reader.skipType(tag & 7);
23689
+ break;
23690
+ }
23691
+ }
23692
+ return message;
23693
+ };
23694
+
23695
+ /**
23696
+ * Decodes a ContractModerationDocument message from the specified reader or buffer, length delimited.
23697
+ * @function decodeDelimited
23698
+ * @memberof org.dash.platform.dapi.v0.ContractModerationDocument
23699
+ * @static
23700
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23701
+ * @returns {org.dash.platform.dapi.v0.ContractModerationDocument} ContractModerationDocument
23702
+ * @throws {Error} If the payload is not a reader or valid buffer
23703
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23704
+ */
23705
+ ContractModerationDocument.decodeDelimited = function decodeDelimited(reader) {
23706
+ if (!(reader instanceof $Reader))
23707
+ reader = new $Reader(reader);
23708
+ return this.decode(reader, reader.uint32());
23709
+ };
23710
+
23711
+ /**
23712
+ * Verifies a ContractModerationDocument message.
23713
+ * @function verify
23714
+ * @memberof org.dash.platform.dapi.v0.ContractModerationDocument
23715
+ * @static
23716
+ * @param {Object.<string,*>} message Plain object to verify
23717
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
23718
+ */
23719
+ ContractModerationDocument.verify = function verify(message) {
23720
+ if (typeof message !== "object" || message === null)
23721
+ return "object expected";
23722
+ if (message.documentTypeName != null && message.hasOwnProperty("documentTypeName"))
23723
+ if (!$util.isString(message.documentTypeName))
23724
+ return "documentTypeName: string expected";
23725
+ if (message.documentId != null && message.hasOwnProperty("documentId"))
23726
+ if (!(message.documentId && typeof message.documentId.length === "number" || $util.isString(message.documentId)))
23727
+ return "documentId: buffer expected";
23728
+ return null;
23729
+ };
23730
+
23731
+ /**
23732
+ * Creates a ContractModerationDocument message from a plain object. Also converts values to their respective internal types.
23733
+ * @function fromObject
23734
+ * @memberof org.dash.platform.dapi.v0.ContractModerationDocument
23735
+ * @static
23736
+ * @param {Object.<string,*>} object Plain object
23737
+ * @returns {org.dash.platform.dapi.v0.ContractModerationDocument} ContractModerationDocument
23738
+ */
23739
+ ContractModerationDocument.fromObject = function fromObject(object) {
23740
+ if (object instanceof $root.org.dash.platform.dapi.v0.ContractModerationDocument)
23741
+ return object;
23742
+ var message = new $root.org.dash.platform.dapi.v0.ContractModerationDocument();
23743
+ if (object.documentTypeName != null)
23744
+ message.documentTypeName = String(object.documentTypeName);
23745
+ if (object.documentId != null)
23746
+ if (typeof object.documentId === "string")
23747
+ $util.base64.decode(object.documentId, message.documentId = $util.newBuffer($util.base64.length(object.documentId)), 0);
23748
+ else if (object.documentId.length >= 0)
23749
+ message.documentId = object.documentId;
23750
+ return message;
23751
+ };
23752
+
23753
+ /**
23754
+ * Creates a plain object from a ContractModerationDocument message. Also converts values to other types if specified.
23755
+ * @function toObject
23756
+ * @memberof org.dash.platform.dapi.v0.ContractModerationDocument
23757
+ * @static
23758
+ * @param {org.dash.platform.dapi.v0.ContractModerationDocument} message ContractModerationDocument
23759
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
23760
+ * @returns {Object.<string,*>} Plain object
23761
+ */
23762
+ ContractModerationDocument.toObject = function toObject(message, options) {
23763
+ if (!options)
23764
+ options = {};
23765
+ var object = {};
23766
+ if (options.defaults) {
23767
+ object.documentTypeName = "";
23768
+ if (options.bytes === String)
23769
+ object.documentId = "";
23770
+ else {
23771
+ object.documentId = [];
23772
+ if (options.bytes !== Array)
23773
+ object.documentId = $util.newBuffer(object.documentId);
23774
+ }
23775
+ }
23776
+ if (message.documentTypeName != null && message.hasOwnProperty("documentTypeName"))
23777
+ object.documentTypeName = message.documentTypeName;
23778
+ if (message.documentId != null && message.hasOwnProperty("documentId"))
23779
+ object.documentId = options.bytes === String ? $util.base64.encode(message.documentId, 0, message.documentId.length) : options.bytes === Array ? Array.prototype.slice.call(message.documentId) : message.documentId;
23780
+ return object;
23781
+ };
23782
+
23783
+ /**
23784
+ * Converts this ContractModerationDocument to JSON.
23785
+ * @function toJSON
23786
+ * @memberof org.dash.platform.dapi.v0.ContractModerationDocument
23787
+ * @instance
23788
+ * @returns {Object.<string,*>} JSON object
23789
+ */
23790
+ ContractModerationDocument.prototype.toJSON = function toJSON() {
23791
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
23792
+ };
23793
+
23794
+ return ContractModerationDocument;
23795
+ })();
23796
+
23576
23797
  v0.ContractModerationReason = (function() {
23577
23798
 
23578
23799
  /**
@@ -23581,6 +23802,8 @@ $root.org = (function() {
23581
23802
  * @interface IContractModerationReason
23582
23803
  * @property {number|null} [code] ContractModerationReason code
23583
23804
  * @property {string|null} [text] ContractModerationReason text
23805
+ * @property {Array.<org.dash.platform.dapi.v0.IContractModerationDocument>|null} [documents] ContractModerationReason documents
23806
+ * @property {Uint8Array|null} [reasonDocumentId] ContractModerationReason reasonDocumentId
23584
23807
  */
23585
23808
 
23586
23809
  /**
@@ -23592,6 +23815,7 @@ $root.org = (function() {
23592
23815
  * @param {org.dash.platform.dapi.v0.IContractModerationReason=} [properties] Properties to set
23593
23816
  */
23594
23817
  function ContractModerationReason(properties) {
23818
+ this.documents = [];
23595
23819
  if (properties)
23596
23820
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23597
23821
  if (properties[keys[i]] != null)
@@ -23614,6 +23838,22 @@ $root.org = (function() {
23614
23838
  */
23615
23839
  ContractModerationReason.prototype.text = "";
23616
23840
 
23841
+ /**
23842
+ * ContractModerationReason documents.
23843
+ * @member {Array.<org.dash.platform.dapi.v0.IContractModerationDocument>} documents
23844
+ * @memberof org.dash.platform.dapi.v0.ContractModerationReason
23845
+ * @instance
23846
+ */
23847
+ ContractModerationReason.prototype.documents = $util.emptyArray;
23848
+
23849
+ /**
23850
+ * ContractModerationReason reasonDocumentId.
23851
+ * @member {Uint8Array} reasonDocumentId
23852
+ * @memberof org.dash.platform.dapi.v0.ContractModerationReason
23853
+ * @instance
23854
+ */
23855
+ ContractModerationReason.prototype.reasonDocumentId = $util.newBuffer([]);
23856
+
23617
23857
  /**
23618
23858
  * Creates a new ContractModerationReason instance using the specified properties.
23619
23859
  * @function create
@@ -23642,6 +23882,11 @@ $root.org = (function() {
23642
23882
  writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.code);
23643
23883
  if (message.text != null && Object.hasOwnProperty.call(message, "text"))
23644
23884
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.text);
23885
+ if (message.documents != null && message.documents.length)
23886
+ for (var i = 0; i < message.documents.length; ++i)
23887
+ $root.org.dash.platform.dapi.v0.ContractModerationDocument.encode(message.documents[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
23888
+ if (message.reasonDocumentId != null && Object.hasOwnProperty.call(message, "reasonDocumentId"))
23889
+ writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.reasonDocumentId);
23645
23890
  return writer;
23646
23891
  };
23647
23892
 
@@ -23669,18 +23914,279 @@ $root.org = (function() {
23669
23914
  * @throws {Error} If the payload is not a reader or valid buffer
23670
23915
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
23671
23916
  */
23672
- ContractModerationReason.decode = function decode(reader, length) {
23917
+ ContractModerationReason.decode = function decode(reader, length) {
23918
+ if (!(reader instanceof $Reader))
23919
+ reader = $Reader.create(reader);
23920
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.ContractModerationReason();
23921
+ while (reader.pos < end) {
23922
+ var tag = reader.uint32();
23923
+ switch (tag >>> 3) {
23924
+ case 1:
23925
+ message.code = reader.uint32();
23926
+ break;
23927
+ case 2:
23928
+ message.text = reader.string();
23929
+ break;
23930
+ case 3:
23931
+ if (!(message.documents && message.documents.length))
23932
+ message.documents = [];
23933
+ message.documents.push($root.org.dash.platform.dapi.v0.ContractModerationDocument.decode(reader, reader.uint32()));
23934
+ break;
23935
+ case 4:
23936
+ message.reasonDocumentId = reader.bytes();
23937
+ break;
23938
+ default:
23939
+ reader.skipType(tag & 7);
23940
+ break;
23941
+ }
23942
+ }
23943
+ return message;
23944
+ };
23945
+
23946
+ /**
23947
+ * Decodes a ContractModerationReason message from the specified reader or buffer, length delimited.
23948
+ * @function decodeDelimited
23949
+ * @memberof org.dash.platform.dapi.v0.ContractModerationReason
23950
+ * @static
23951
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23952
+ * @returns {org.dash.platform.dapi.v0.ContractModerationReason} ContractModerationReason
23953
+ * @throws {Error} If the payload is not a reader or valid buffer
23954
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23955
+ */
23956
+ ContractModerationReason.decodeDelimited = function decodeDelimited(reader) {
23957
+ if (!(reader instanceof $Reader))
23958
+ reader = new $Reader(reader);
23959
+ return this.decode(reader, reader.uint32());
23960
+ };
23961
+
23962
+ /**
23963
+ * Verifies a ContractModerationReason message.
23964
+ * @function verify
23965
+ * @memberof org.dash.platform.dapi.v0.ContractModerationReason
23966
+ * @static
23967
+ * @param {Object.<string,*>} message Plain object to verify
23968
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
23969
+ */
23970
+ ContractModerationReason.verify = function verify(message) {
23971
+ if (typeof message !== "object" || message === null)
23972
+ return "object expected";
23973
+ if (message.code != null && message.hasOwnProperty("code"))
23974
+ if (!$util.isInteger(message.code))
23975
+ return "code: integer expected";
23976
+ if (message.text != null && message.hasOwnProperty("text"))
23977
+ if (!$util.isString(message.text))
23978
+ return "text: string expected";
23979
+ if (message.documents != null && message.hasOwnProperty("documents")) {
23980
+ if (!Array.isArray(message.documents))
23981
+ return "documents: array expected";
23982
+ for (var i = 0; i < message.documents.length; ++i) {
23983
+ var error = $root.org.dash.platform.dapi.v0.ContractModerationDocument.verify(message.documents[i]);
23984
+ if (error)
23985
+ return "documents." + error;
23986
+ }
23987
+ }
23988
+ if (message.reasonDocumentId != null && message.hasOwnProperty("reasonDocumentId"))
23989
+ if (!(message.reasonDocumentId && typeof message.reasonDocumentId.length === "number" || $util.isString(message.reasonDocumentId)))
23990
+ return "reasonDocumentId: buffer expected";
23991
+ return null;
23992
+ };
23993
+
23994
+ /**
23995
+ * Creates a ContractModerationReason message from a plain object. Also converts values to their respective internal types.
23996
+ * @function fromObject
23997
+ * @memberof org.dash.platform.dapi.v0.ContractModerationReason
23998
+ * @static
23999
+ * @param {Object.<string,*>} object Plain object
24000
+ * @returns {org.dash.platform.dapi.v0.ContractModerationReason} ContractModerationReason
24001
+ */
24002
+ ContractModerationReason.fromObject = function fromObject(object) {
24003
+ if (object instanceof $root.org.dash.platform.dapi.v0.ContractModerationReason)
24004
+ return object;
24005
+ var message = new $root.org.dash.platform.dapi.v0.ContractModerationReason();
24006
+ if (object.code != null)
24007
+ message.code = object.code >>> 0;
24008
+ if (object.text != null)
24009
+ message.text = String(object.text);
24010
+ if (object.documents) {
24011
+ if (!Array.isArray(object.documents))
24012
+ throw TypeError(".org.dash.platform.dapi.v0.ContractModerationReason.documents: array expected");
24013
+ message.documents = [];
24014
+ for (var i = 0; i < object.documents.length; ++i) {
24015
+ if (typeof object.documents[i] !== "object")
24016
+ throw TypeError(".org.dash.platform.dapi.v0.ContractModerationReason.documents: object expected");
24017
+ message.documents[i] = $root.org.dash.platform.dapi.v0.ContractModerationDocument.fromObject(object.documents[i]);
24018
+ }
24019
+ }
24020
+ if (object.reasonDocumentId != null)
24021
+ if (typeof object.reasonDocumentId === "string")
24022
+ $util.base64.decode(object.reasonDocumentId, message.reasonDocumentId = $util.newBuffer($util.base64.length(object.reasonDocumentId)), 0);
24023
+ else if (object.reasonDocumentId.length >= 0)
24024
+ message.reasonDocumentId = object.reasonDocumentId;
24025
+ return message;
24026
+ };
24027
+
24028
+ /**
24029
+ * Creates a plain object from a ContractModerationReason message. Also converts values to other types if specified.
24030
+ * @function toObject
24031
+ * @memberof org.dash.platform.dapi.v0.ContractModerationReason
24032
+ * @static
24033
+ * @param {org.dash.platform.dapi.v0.ContractModerationReason} message ContractModerationReason
24034
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
24035
+ * @returns {Object.<string,*>} Plain object
24036
+ */
24037
+ ContractModerationReason.toObject = function toObject(message, options) {
24038
+ if (!options)
24039
+ options = {};
24040
+ var object = {};
24041
+ if (options.arrays || options.defaults)
24042
+ object.documents = [];
24043
+ if (options.defaults) {
24044
+ object.code = 0;
24045
+ object.text = "";
24046
+ if (options.bytes === String)
24047
+ object.reasonDocumentId = "";
24048
+ else {
24049
+ object.reasonDocumentId = [];
24050
+ if (options.bytes !== Array)
24051
+ object.reasonDocumentId = $util.newBuffer(object.reasonDocumentId);
24052
+ }
24053
+ }
24054
+ if (message.code != null && message.hasOwnProperty("code"))
24055
+ object.code = message.code;
24056
+ if (message.text != null && message.hasOwnProperty("text"))
24057
+ object.text = message.text;
24058
+ if (message.documents && message.documents.length) {
24059
+ object.documents = [];
24060
+ for (var j = 0; j < message.documents.length; ++j)
24061
+ object.documents[j] = $root.org.dash.platform.dapi.v0.ContractModerationDocument.toObject(message.documents[j], options);
24062
+ }
24063
+ if (message.reasonDocumentId != null && message.hasOwnProperty("reasonDocumentId"))
24064
+ object.reasonDocumentId = options.bytes === String ? $util.base64.encode(message.reasonDocumentId, 0, message.reasonDocumentId.length) : options.bytes === Array ? Array.prototype.slice.call(message.reasonDocumentId) : message.reasonDocumentId;
24065
+ return object;
24066
+ };
24067
+
24068
+ /**
24069
+ * Converts this ContractModerationReason to JSON.
24070
+ * @function toJSON
24071
+ * @memberof org.dash.platform.dapi.v0.ContractModerationReason
24072
+ * @instance
24073
+ * @returns {Object.<string,*>} JSON object
24074
+ */
24075
+ ContractModerationReason.prototype.toJSON = function toJSON() {
24076
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
24077
+ };
24078
+
24079
+ return ContractModerationReason;
24080
+ })();
24081
+
24082
+ v0.ContractWarning = (function() {
24083
+
24084
+ /**
24085
+ * Properties of a ContractWarning.
24086
+ * @memberof org.dash.platform.dapi.v0
24087
+ * @interface IContractWarning
24088
+ * @property {number|Long|null} [warnedAt] ContractWarning warnedAt
24089
+ * @property {org.dash.platform.dapi.v0.IContractModerationReason|null} [reason] ContractWarning reason
24090
+ */
24091
+
24092
+ /**
24093
+ * Constructs a new ContractWarning.
24094
+ * @memberof org.dash.platform.dapi.v0
24095
+ * @classdesc Represents a ContractWarning.
24096
+ * @implements IContractWarning
24097
+ * @constructor
24098
+ * @param {org.dash.platform.dapi.v0.IContractWarning=} [properties] Properties to set
24099
+ */
24100
+ function ContractWarning(properties) {
24101
+ if (properties)
24102
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
24103
+ if (properties[keys[i]] != null)
24104
+ this[keys[i]] = properties[keys[i]];
24105
+ }
24106
+
24107
+ /**
24108
+ * ContractWarning warnedAt.
24109
+ * @member {number|Long} warnedAt
24110
+ * @memberof org.dash.platform.dapi.v0.ContractWarning
24111
+ * @instance
24112
+ */
24113
+ ContractWarning.prototype.warnedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
24114
+
24115
+ /**
24116
+ * ContractWarning reason.
24117
+ * @member {org.dash.platform.dapi.v0.IContractModerationReason|null|undefined} reason
24118
+ * @memberof org.dash.platform.dapi.v0.ContractWarning
24119
+ * @instance
24120
+ */
24121
+ ContractWarning.prototype.reason = null;
24122
+
24123
+ /**
24124
+ * Creates a new ContractWarning instance using the specified properties.
24125
+ * @function create
24126
+ * @memberof org.dash.platform.dapi.v0.ContractWarning
24127
+ * @static
24128
+ * @param {org.dash.platform.dapi.v0.IContractWarning=} [properties] Properties to set
24129
+ * @returns {org.dash.platform.dapi.v0.ContractWarning} ContractWarning instance
24130
+ */
24131
+ ContractWarning.create = function create(properties) {
24132
+ return new ContractWarning(properties);
24133
+ };
24134
+
24135
+ /**
24136
+ * Encodes the specified ContractWarning message. Does not implicitly {@link org.dash.platform.dapi.v0.ContractWarning.verify|verify} messages.
24137
+ * @function encode
24138
+ * @memberof org.dash.platform.dapi.v0.ContractWarning
24139
+ * @static
24140
+ * @param {org.dash.platform.dapi.v0.IContractWarning} message ContractWarning message or plain object to encode
24141
+ * @param {$protobuf.Writer} [writer] Writer to encode to
24142
+ * @returns {$protobuf.Writer} Writer
24143
+ */
24144
+ ContractWarning.encode = function encode(message, writer) {
24145
+ if (!writer)
24146
+ writer = $Writer.create();
24147
+ if (message.warnedAt != null && Object.hasOwnProperty.call(message, "warnedAt"))
24148
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.warnedAt);
24149
+ if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
24150
+ $root.org.dash.platform.dapi.v0.ContractModerationReason.encode(message.reason, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
24151
+ return writer;
24152
+ };
24153
+
24154
+ /**
24155
+ * Encodes the specified ContractWarning message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.ContractWarning.verify|verify} messages.
24156
+ * @function encodeDelimited
24157
+ * @memberof org.dash.platform.dapi.v0.ContractWarning
24158
+ * @static
24159
+ * @param {org.dash.platform.dapi.v0.IContractWarning} message ContractWarning message or plain object to encode
24160
+ * @param {$protobuf.Writer} [writer] Writer to encode to
24161
+ * @returns {$protobuf.Writer} Writer
24162
+ */
24163
+ ContractWarning.encodeDelimited = function encodeDelimited(message, writer) {
24164
+ return this.encode(message, writer).ldelim();
24165
+ };
24166
+
24167
+ /**
24168
+ * Decodes a ContractWarning message from the specified reader or buffer.
24169
+ * @function decode
24170
+ * @memberof org.dash.platform.dapi.v0.ContractWarning
24171
+ * @static
24172
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
24173
+ * @param {number} [length] Message length if known beforehand
24174
+ * @returns {org.dash.platform.dapi.v0.ContractWarning} ContractWarning
24175
+ * @throws {Error} If the payload is not a reader or valid buffer
24176
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24177
+ */
24178
+ ContractWarning.decode = function decode(reader, length) {
23673
24179
  if (!(reader instanceof $Reader))
23674
24180
  reader = $Reader.create(reader);
23675
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.ContractModerationReason();
24181
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.ContractWarning();
23676
24182
  while (reader.pos < end) {
23677
24183
  var tag = reader.uint32();
23678
24184
  switch (tag >>> 3) {
23679
24185
  case 1:
23680
- message.code = reader.uint32();
24186
+ message.warnedAt = reader.uint64();
23681
24187
  break;
23682
24188
  case 2:
23683
- message.text = reader.string();
24189
+ message.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.decode(reader, reader.uint32());
23684
24190
  break;
23685
24191
  default:
23686
24192
  reader.skipType(tag & 7);
@@ -23691,96 +24197,115 @@ $root.org = (function() {
23691
24197
  };
23692
24198
 
23693
24199
  /**
23694
- * Decodes a ContractModerationReason message from the specified reader or buffer, length delimited.
24200
+ * Decodes a ContractWarning message from the specified reader or buffer, length delimited.
23695
24201
  * @function decodeDelimited
23696
- * @memberof org.dash.platform.dapi.v0.ContractModerationReason
24202
+ * @memberof org.dash.platform.dapi.v0.ContractWarning
23697
24203
  * @static
23698
24204
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23699
- * @returns {org.dash.platform.dapi.v0.ContractModerationReason} ContractModerationReason
24205
+ * @returns {org.dash.platform.dapi.v0.ContractWarning} ContractWarning
23700
24206
  * @throws {Error} If the payload is not a reader or valid buffer
23701
24207
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
23702
24208
  */
23703
- ContractModerationReason.decodeDelimited = function decodeDelimited(reader) {
24209
+ ContractWarning.decodeDelimited = function decodeDelimited(reader) {
23704
24210
  if (!(reader instanceof $Reader))
23705
24211
  reader = new $Reader(reader);
23706
24212
  return this.decode(reader, reader.uint32());
23707
24213
  };
23708
24214
 
23709
24215
  /**
23710
- * Verifies a ContractModerationReason message.
24216
+ * Verifies a ContractWarning message.
23711
24217
  * @function verify
23712
- * @memberof org.dash.platform.dapi.v0.ContractModerationReason
24218
+ * @memberof org.dash.platform.dapi.v0.ContractWarning
23713
24219
  * @static
23714
24220
  * @param {Object.<string,*>} message Plain object to verify
23715
24221
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
23716
24222
  */
23717
- ContractModerationReason.verify = function verify(message) {
24223
+ ContractWarning.verify = function verify(message) {
23718
24224
  if (typeof message !== "object" || message === null)
23719
24225
  return "object expected";
23720
- if (message.code != null && message.hasOwnProperty("code"))
23721
- if (!$util.isInteger(message.code))
23722
- return "code: integer expected";
23723
- if (message.text != null && message.hasOwnProperty("text"))
23724
- if (!$util.isString(message.text))
23725
- return "text: string expected";
24226
+ if (message.warnedAt != null && message.hasOwnProperty("warnedAt"))
24227
+ if (!$util.isInteger(message.warnedAt) && !(message.warnedAt && $util.isInteger(message.warnedAt.low) && $util.isInteger(message.warnedAt.high)))
24228
+ return "warnedAt: integer|Long expected";
24229
+ if (message.reason != null && message.hasOwnProperty("reason")) {
24230
+ var error = $root.org.dash.platform.dapi.v0.ContractModerationReason.verify(message.reason);
24231
+ if (error)
24232
+ return "reason." + error;
24233
+ }
23726
24234
  return null;
23727
24235
  };
23728
24236
 
23729
24237
  /**
23730
- * Creates a ContractModerationReason message from a plain object. Also converts values to their respective internal types.
24238
+ * Creates a ContractWarning message from a plain object. Also converts values to their respective internal types.
23731
24239
  * @function fromObject
23732
- * @memberof org.dash.platform.dapi.v0.ContractModerationReason
24240
+ * @memberof org.dash.platform.dapi.v0.ContractWarning
23733
24241
  * @static
23734
24242
  * @param {Object.<string,*>} object Plain object
23735
- * @returns {org.dash.platform.dapi.v0.ContractModerationReason} ContractModerationReason
24243
+ * @returns {org.dash.platform.dapi.v0.ContractWarning} ContractWarning
23736
24244
  */
23737
- ContractModerationReason.fromObject = function fromObject(object) {
23738
- if (object instanceof $root.org.dash.platform.dapi.v0.ContractModerationReason)
24245
+ ContractWarning.fromObject = function fromObject(object) {
24246
+ if (object instanceof $root.org.dash.platform.dapi.v0.ContractWarning)
23739
24247
  return object;
23740
- var message = new $root.org.dash.platform.dapi.v0.ContractModerationReason();
23741
- if (object.code != null)
23742
- message.code = object.code >>> 0;
23743
- if (object.text != null)
23744
- message.text = String(object.text);
24248
+ var message = new $root.org.dash.platform.dapi.v0.ContractWarning();
24249
+ if (object.warnedAt != null)
24250
+ if ($util.Long)
24251
+ (message.warnedAt = $util.Long.fromValue(object.warnedAt)).unsigned = true;
24252
+ else if (typeof object.warnedAt === "string")
24253
+ message.warnedAt = parseInt(object.warnedAt, 10);
24254
+ else if (typeof object.warnedAt === "number")
24255
+ message.warnedAt = object.warnedAt;
24256
+ else if (typeof object.warnedAt === "object")
24257
+ message.warnedAt = new $util.LongBits(object.warnedAt.low >>> 0, object.warnedAt.high >>> 0).toNumber(true);
24258
+ if (object.reason != null) {
24259
+ if (typeof object.reason !== "object")
24260
+ throw TypeError(".org.dash.platform.dapi.v0.ContractWarning.reason: object expected");
24261
+ message.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.fromObject(object.reason);
24262
+ }
23745
24263
  return message;
23746
24264
  };
23747
24265
 
23748
24266
  /**
23749
- * Creates a plain object from a ContractModerationReason message. Also converts values to other types if specified.
24267
+ * Creates a plain object from a ContractWarning message. Also converts values to other types if specified.
23750
24268
  * @function toObject
23751
- * @memberof org.dash.platform.dapi.v0.ContractModerationReason
24269
+ * @memberof org.dash.platform.dapi.v0.ContractWarning
23752
24270
  * @static
23753
- * @param {org.dash.platform.dapi.v0.ContractModerationReason} message ContractModerationReason
24271
+ * @param {org.dash.platform.dapi.v0.ContractWarning} message ContractWarning
23754
24272
  * @param {$protobuf.IConversionOptions} [options] Conversion options
23755
24273
  * @returns {Object.<string,*>} Plain object
23756
24274
  */
23757
- ContractModerationReason.toObject = function toObject(message, options) {
24275
+ ContractWarning.toObject = function toObject(message, options) {
23758
24276
  if (!options)
23759
24277
  options = {};
23760
24278
  var object = {};
23761
24279
  if (options.defaults) {
23762
- object.code = 0;
23763
- object.text = "";
24280
+ if ($util.Long) {
24281
+ var long = new $util.Long(0, 0, true);
24282
+ object.warnedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
24283
+ } else
24284
+ object.warnedAt = options.longs === String ? "0" : 0;
24285
+ object.reason = null;
23764
24286
  }
23765
- if (message.code != null && message.hasOwnProperty("code"))
23766
- object.code = message.code;
23767
- if (message.text != null && message.hasOwnProperty("text"))
23768
- object.text = message.text;
24287
+ if (message.warnedAt != null && message.hasOwnProperty("warnedAt"))
24288
+ if (typeof message.warnedAt === "number")
24289
+ object.warnedAt = options.longs === String ? String(message.warnedAt) : message.warnedAt;
24290
+ else
24291
+ object.warnedAt = options.longs === String ? $util.Long.prototype.toString.call(message.warnedAt) : options.longs === Number ? new $util.LongBits(message.warnedAt.low >>> 0, message.warnedAt.high >>> 0).toNumber(true) : message.warnedAt;
24292
+ if (message.reason != null && message.hasOwnProperty("reason"))
24293
+ object.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.toObject(message.reason, options);
23769
24294
  return object;
23770
24295
  };
23771
24296
 
23772
24297
  /**
23773
- * Converts this ContractModerationReason to JSON.
24298
+ * Converts this ContractWarning to JSON.
23774
24299
  * @function toJSON
23775
- * @memberof org.dash.platform.dapi.v0.ContractModerationReason
24300
+ * @memberof org.dash.platform.dapi.v0.ContractWarning
23776
24301
  * @instance
23777
24302
  * @returns {Object.<string,*>} JSON object
23778
24303
  */
23779
- ContractModerationReason.prototype.toJSON = function toJSON() {
24304
+ ContractWarning.prototype.toJSON = function toJSON() {
23780
24305
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
23781
24306
  };
23782
24307
 
23783
- return ContractModerationReason;
24308
+ return ContractWarning;
23784
24309
  })();
23785
24310
 
23786
24311
  v0.GetContractModerationStatusRequest = (function() {
@@ -24191,6 +24716,7 @@ $root.org = (function() {
24191
24716
  case 0:
24192
24717
  case 1:
24193
24718
  case 2:
24719
+ case 3:
24194
24720
  break;
24195
24721
  }
24196
24722
  }
@@ -24241,6 +24767,10 @@ $root.org = (function() {
24241
24767
  case 2:
24242
24768
  message.lists[i] = 2;
24243
24769
  break;
24770
+ case "CONTRACT_MODERATION_LIST_WARNINGS":
24771
+ case 3:
24772
+ message.lists[i] = 3;
24773
+ break;
24244
24774
  }
24245
24775
  }
24246
24776
  if (object.prove != null)
@@ -24530,6 +25060,7 @@ $root.org = (function() {
24530
25060
  * @property {Array.<org.dash.platform.dapi.v0.ContractModerationList>|null} [lists] ContractModerationStatus lists
24531
25061
  * @property {org.dash.platform.dapi.v0.IContractModerationReason|null} [banReason] ContractModerationStatus banReason
24532
25062
  * @property {org.dash.platform.dapi.v0.IContractModerationReason|null} [suspensionReason] ContractModerationStatus suspensionReason
25063
+ * @property {Array.<org.dash.platform.dapi.v0.IContractWarning>|null} [warnings] ContractModerationStatus warnings
24533
25064
  */
24534
25065
 
24535
25066
  /**
@@ -24542,6 +25073,7 @@ $root.org = (function() {
24542
25073
  */
24543
25074
  function ContractModerationStatus(properties) {
24544
25075
  this.lists = [];
25076
+ this.warnings = [];
24545
25077
  if (properties)
24546
25078
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
24547
25079
  if (properties[keys[i]] != null)
@@ -24588,6 +25120,14 @@ $root.org = (function() {
24588
25120
  */
24589
25121
  ContractModerationStatus.prototype.suspensionReason = null;
24590
25122
 
25123
+ /**
25124
+ * ContractModerationStatus warnings.
25125
+ * @member {Array.<org.dash.platform.dapi.v0.IContractWarning>} warnings
25126
+ * @memberof org.dash.platform.dapi.v0.GetContractModerationStatusResponse.ContractModerationStatus
25127
+ * @instance
25128
+ */
25129
+ ContractModerationStatus.prototype.warnings = $util.emptyArray;
25130
+
24591
25131
  /**
24592
25132
  * Creates a new ContractModerationStatus instance using the specified properties.
24593
25133
  * @function create
@@ -24626,6 +25166,9 @@ $root.org = (function() {
24626
25166
  $root.org.dash.platform.dapi.v0.ContractModerationReason.encode(message.banReason, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
24627
25167
  if (message.suspensionReason != null && Object.hasOwnProperty.call(message, "suspensionReason"))
24628
25168
  $root.org.dash.platform.dapi.v0.ContractModerationReason.encode(message.suspensionReason, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
25169
+ if (message.warnings != null && message.warnings.length)
25170
+ for (var i = 0; i < message.warnings.length; ++i)
25171
+ $root.org.dash.platform.dapi.v0.ContractWarning.encode(message.warnings[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
24629
25172
  return writer;
24630
25173
  };
24631
25174
 
@@ -24682,6 +25225,11 @@ $root.org = (function() {
24682
25225
  case 5:
24683
25226
  message.suspensionReason = $root.org.dash.platform.dapi.v0.ContractModerationReason.decode(reader, reader.uint32());
24684
25227
  break;
25228
+ case 6:
25229
+ if (!(message.warnings && message.warnings.length))
25230
+ message.warnings = [];
25231
+ message.warnings.push($root.org.dash.platform.dapi.v0.ContractWarning.decode(reader, reader.uint32()));
25232
+ break;
24685
25233
  default:
24686
25234
  reader.skipType(tag & 7);
24687
25235
  break;
@@ -24733,6 +25281,7 @@ $root.org = (function() {
24733
25281
  case 0:
24734
25282
  case 1:
24735
25283
  case 2:
25284
+ case 3:
24736
25285
  break;
24737
25286
  }
24738
25287
  }
@@ -24746,6 +25295,15 @@ $root.org = (function() {
24746
25295
  if (error)
24747
25296
  return "suspensionReason." + error;
24748
25297
  }
25298
+ if (message.warnings != null && message.hasOwnProperty("warnings")) {
25299
+ if (!Array.isArray(message.warnings))
25300
+ return "warnings: array expected";
25301
+ for (var i = 0; i < message.warnings.length; ++i) {
25302
+ var error = $root.org.dash.platform.dapi.v0.ContractWarning.verify(message.warnings[i]);
25303
+ if (error)
25304
+ return "warnings." + error;
25305
+ }
25306
+ }
24749
25307
  return null;
24750
25308
  };
24751
25309
 
@@ -24791,6 +25349,10 @@ $root.org = (function() {
24791
25349
  case 2:
24792
25350
  message.lists[i] = 2;
24793
25351
  break;
25352
+ case "CONTRACT_MODERATION_LIST_WARNINGS":
25353
+ case 3:
25354
+ message.lists[i] = 3;
25355
+ break;
24794
25356
  }
24795
25357
  }
24796
25358
  if (object.banReason != null) {
@@ -24803,6 +25365,16 @@ $root.org = (function() {
24803
25365
  throw TypeError(".org.dash.platform.dapi.v0.GetContractModerationStatusResponse.ContractModerationStatus.suspensionReason: object expected");
24804
25366
  message.suspensionReason = $root.org.dash.platform.dapi.v0.ContractModerationReason.fromObject(object.suspensionReason);
24805
25367
  }
25368
+ if (object.warnings) {
25369
+ if (!Array.isArray(object.warnings))
25370
+ throw TypeError(".org.dash.platform.dapi.v0.GetContractModerationStatusResponse.ContractModerationStatus.warnings: array expected");
25371
+ message.warnings = [];
25372
+ for (var i = 0; i < object.warnings.length; ++i) {
25373
+ if (typeof object.warnings[i] !== "object")
25374
+ throw TypeError(".org.dash.platform.dapi.v0.GetContractModerationStatusResponse.ContractModerationStatus.warnings: object expected");
25375
+ message.warnings[i] = $root.org.dash.platform.dapi.v0.ContractWarning.fromObject(object.warnings[i]);
25376
+ }
25377
+ }
24806
25378
  return message;
24807
25379
  };
24808
25380
 
@@ -24819,8 +25391,10 @@ $root.org = (function() {
24819
25391
  if (!options)
24820
25392
  options = {};
24821
25393
  var object = {};
24822
- if (options.arrays || options.defaults)
25394
+ if (options.arrays || options.defaults) {
24823
25395
  object.lists = [];
25396
+ object.warnings = [];
25397
+ }
24824
25398
  if (options.defaults) {
24825
25399
  object.banned = false;
24826
25400
  if ($util.Long) {
@@ -24847,6 +25421,11 @@ $root.org = (function() {
24847
25421
  object.banReason = $root.org.dash.platform.dapi.v0.ContractModerationReason.toObject(message.banReason, options);
24848
25422
  if (message.suspensionReason != null && message.hasOwnProperty("suspensionReason"))
24849
25423
  object.suspensionReason = $root.org.dash.platform.dapi.v0.ContractModerationReason.toObject(message.suspensionReason, options);
25424
+ if (message.warnings && message.warnings.length) {
25425
+ object.warnings = [];
25426
+ for (var j = 0; j < message.warnings.length; ++j)
25427
+ object.warnings[j] = $root.org.dash.platform.dapi.v0.ContractWarning.toObject(message.warnings[j], options);
25428
+ }
24850
25429
  return object;
24851
25430
  };
24852
25431
 
@@ -25544,6 +26123,7 @@ $root.org = (function() {
25544
26123
  case 0:
25545
26124
  case 1:
25546
26125
  case 2:
26126
+ case 3:
25547
26127
  break;
25548
26128
  }
25549
26129
  if (message.startAfter != null && message.hasOwnProperty("startAfter"))
@@ -25588,6 +26168,10 @@ $root.org = (function() {
25588
26168
  case 2:
25589
26169
  message.list = 2;
25590
26170
  break;
26171
+ case "CONTRACT_MODERATION_LIST_WARNINGS":
26172
+ case 3:
26173
+ message.list = 3;
26174
+ break;
25591
26175
  }
25592
26176
  if (object.startAfter != null)
25593
26177
  if (typeof object.startAfter === "string")
@@ -25880,6 +26464,7 @@ $root.org = (function() {
25880
26464
  * @property {Uint8Array|null} [identityId] ContractModerationEntry identityId
25881
26465
  * @property {number|Long|null} [until] ContractModerationEntry until
25882
26466
  * @property {org.dash.platform.dapi.v0.IContractModerationReason|null} [reason] ContractModerationEntry reason
26467
+ * @property {Array.<org.dash.platform.dapi.v0.IContractWarning>|null} [warnings] ContractModerationEntry warnings
25883
26468
  */
25884
26469
 
25885
26470
  /**
@@ -25891,6 +26476,7 @@ $root.org = (function() {
25891
26476
  * @param {org.dash.platform.dapi.v0.GetContractModerationEntriesResponse.IContractModerationEntry=} [properties] Properties to set
25892
26477
  */
25893
26478
  function ContractModerationEntry(properties) {
26479
+ this.warnings = [];
25894
26480
  if (properties)
25895
26481
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
25896
26482
  if (properties[keys[i]] != null)
@@ -25921,6 +26507,14 @@ $root.org = (function() {
25921
26507
  */
25922
26508
  ContractModerationEntry.prototype.reason = null;
25923
26509
 
26510
+ /**
26511
+ * ContractModerationEntry warnings.
26512
+ * @member {Array.<org.dash.platform.dapi.v0.IContractWarning>} warnings
26513
+ * @memberof org.dash.platform.dapi.v0.GetContractModerationEntriesResponse.ContractModerationEntry
26514
+ * @instance
26515
+ */
26516
+ ContractModerationEntry.prototype.warnings = $util.emptyArray;
26517
+
25924
26518
  /**
25925
26519
  * Creates a new ContractModerationEntry instance using the specified properties.
25926
26520
  * @function create
@@ -25951,6 +26545,9 @@ $root.org = (function() {
25951
26545
  writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.until);
25952
26546
  if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
25953
26547
  $root.org.dash.platform.dapi.v0.ContractModerationReason.encode(message.reason, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
26548
+ if (message.warnings != null && message.warnings.length)
26549
+ for (var i = 0; i < message.warnings.length; ++i)
26550
+ $root.org.dash.platform.dapi.v0.ContractWarning.encode(message.warnings[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
25954
26551
  return writer;
25955
26552
  };
25956
26553
 
@@ -25994,6 +26591,11 @@ $root.org = (function() {
25994
26591
  case 3:
25995
26592
  message.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.decode(reader, reader.uint32());
25996
26593
  break;
26594
+ case 4:
26595
+ if (!(message.warnings && message.warnings.length))
26596
+ message.warnings = [];
26597
+ message.warnings.push($root.org.dash.platform.dapi.v0.ContractWarning.decode(reader, reader.uint32()));
26598
+ break;
25997
26599
  default:
25998
26600
  reader.skipType(tag & 7);
25999
26601
  break;
@@ -26040,6 +26642,15 @@ $root.org = (function() {
26040
26642
  if (error)
26041
26643
  return "reason." + error;
26042
26644
  }
26645
+ if (message.warnings != null && message.hasOwnProperty("warnings")) {
26646
+ if (!Array.isArray(message.warnings))
26647
+ return "warnings: array expected";
26648
+ for (var i = 0; i < message.warnings.length; ++i) {
26649
+ var error = $root.org.dash.platform.dapi.v0.ContractWarning.verify(message.warnings[i]);
26650
+ if (error)
26651
+ return "warnings." + error;
26652
+ }
26653
+ }
26043
26654
  return null;
26044
26655
  };
26045
26656
 
@@ -26074,6 +26685,16 @@ $root.org = (function() {
26074
26685
  throw TypeError(".org.dash.platform.dapi.v0.GetContractModerationEntriesResponse.ContractModerationEntry.reason: object expected");
26075
26686
  message.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.fromObject(object.reason);
26076
26687
  }
26688
+ if (object.warnings) {
26689
+ if (!Array.isArray(object.warnings))
26690
+ throw TypeError(".org.dash.platform.dapi.v0.GetContractModerationEntriesResponse.ContractModerationEntry.warnings: array expected");
26691
+ message.warnings = [];
26692
+ for (var i = 0; i < object.warnings.length; ++i) {
26693
+ if (typeof object.warnings[i] !== "object")
26694
+ throw TypeError(".org.dash.platform.dapi.v0.GetContractModerationEntriesResponse.ContractModerationEntry.warnings: object expected");
26695
+ message.warnings[i] = $root.org.dash.platform.dapi.v0.ContractWarning.fromObject(object.warnings[i]);
26696
+ }
26697
+ }
26077
26698
  return message;
26078
26699
  };
26079
26700
 
@@ -26090,6 +26711,8 @@ $root.org = (function() {
26090
26711
  if (!options)
26091
26712
  options = {};
26092
26713
  var object = {};
26714
+ if (options.arrays || options.defaults)
26715
+ object.warnings = [];
26093
26716
  if (options.defaults) {
26094
26717
  if (options.bytes === String)
26095
26718
  object.identityId = "";
@@ -26114,6 +26737,11 @@ $root.org = (function() {
26114
26737
  object.until = options.longs === String ? $util.Long.prototype.toString.call(message.until) : options.longs === Number ? new $util.LongBits(message.until.low >>> 0, message.until.high >>> 0).toNumber(true) : message.until;
26115
26738
  if (message.reason != null && message.hasOwnProperty("reason"))
26116
26739
  object.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.toObject(message.reason, options);
26740
+ if (message.warnings && message.warnings.length) {
26741
+ object.warnings = [];
26742
+ for (var j = 0; j < message.warnings.length; ++j)
26743
+ object.warnings[j] = $root.org.dash.platform.dapi.v0.ContractWarning.toObject(message.warnings[j], options);
26744
+ }
26117
26745
  return object;
26118
26746
  };
26119
26747
 
@@ -27729,57 +28357,290 @@ $root.org = (function() {
27729
28357
  return null;
27730
28358
  };
27731
28359
 
27732
- /**
27733
- * Creates a GetContractDocumentRemovalsResponse message from a plain object. Also converts values to their respective internal types.
27734
- * @function fromObject
27735
- * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse
27736
- * @static
27737
- * @param {Object.<string,*>} object Plain object
27738
- * @returns {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse} GetContractDocumentRemovalsResponse
27739
- */
27740
- GetContractDocumentRemovalsResponse.fromObject = function fromObject(object) {
27741
- if (object instanceof $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse)
28360
+ /**
28361
+ * Creates a GetContractDocumentRemovalsResponse message from a plain object. Also converts values to their respective internal types.
28362
+ * @function fromObject
28363
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse
28364
+ * @static
28365
+ * @param {Object.<string,*>} object Plain object
28366
+ * @returns {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse} GetContractDocumentRemovalsResponse
28367
+ */
28368
+ GetContractDocumentRemovalsResponse.fromObject = function fromObject(object) {
28369
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse)
28370
+ return object;
28371
+ var message = new $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse();
28372
+ if (object.v0 != null) {
28373
+ if (typeof object.v0 !== "object")
28374
+ throw TypeError(".org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.v0: object expected");
28375
+ message.v0 = $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.GetContractDocumentRemovalsResponseV0.fromObject(object.v0);
28376
+ }
28377
+ return message;
28378
+ };
28379
+
28380
+ /**
28381
+ * Creates a plain object from a GetContractDocumentRemovalsResponse message. Also converts values to other types if specified.
28382
+ * @function toObject
28383
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse
28384
+ * @static
28385
+ * @param {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse} message GetContractDocumentRemovalsResponse
28386
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
28387
+ * @returns {Object.<string,*>} Plain object
28388
+ */
28389
+ GetContractDocumentRemovalsResponse.toObject = function toObject(message, options) {
28390
+ if (!options)
28391
+ options = {};
28392
+ var object = {};
28393
+ if (message.v0 != null && message.hasOwnProperty("v0")) {
28394
+ object.v0 = $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.GetContractDocumentRemovalsResponseV0.toObject(message.v0, options);
28395
+ if (options.oneofs)
28396
+ object.version = "v0";
28397
+ }
28398
+ return object;
28399
+ };
28400
+
28401
+ /**
28402
+ * Converts this GetContractDocumentRemovalsResponse to JSON.
28403
+ * @function toJSON
28404
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse
28405
+ * @instance
28406
+ * @returns {Object.<string,*>} JSON object
28407
+ */
28408
+ GetContractDocumentRemovalsResponse.prototype.toJSON = function toJSON() {
28409
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
28410
+ };
28411
+
28412
+ GetContractDocumentRemovalsResponse.ContractDocumentRestoration = (function() {
28413
+
28414
+ /**
28415
+ * Properties of a ContractDocumentRestoration.
28416
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse
28417
+ * @interface IContractDocumentRestoration
28418
+ * @property {Uint8Array|null} [moderatorId] ContractDocumentRestoration moderatorId
28419
+ * @property {number|Long|null} [restoredAt] ContractDocumentRestoration restoredAt
28420
+ */
28421
+
28422
+ /**
28423
+ * Constructs a new ContractDocumentRestoration.
28424
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse
28425
+ * @classdesc Represents a ContractDocumentRestoration.
28426
+ * @implements IContractDocumentRestoration
28427
+ * @constructor
28428
+ * @param {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.IContractDocumentRestoration=} [properties] Properties to set
28429
+ */
28430
+ function ContractDocumentRestoration(properties) {
28431
+ if (properties)
28432
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
28433
+ if (properties[keys[i]] != null)
28434
+ this[keys[i]] = properties[keys[i]];
28435
+ }
28436
+
28437
+ /**
28438
+ * ContractDocumentRestoration moderatorId.
28439
+ * @member {Uint8Array} moderatorId
28440
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
28441
+ * @instance
28442
+ */
28443
+ ContractDocumentRestoration.prototype.moderatorId = $util.newBuffer([]);
28444
+
28445
+ /**
28446
+ * ContractDocumentRestoration restoredAt.
28447
+ * @member {number|Long} restoredAt
28448
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
28449
+ * @instance
28450
+ */
28451
+ ContractDocumentRestoration.prototype.restoredAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
28452
+
28453
+ /**
28454
+ * Creates a new ContractDocumentRestoration instance using the specified properties.
28455
+ * @function create
28456
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
28457
+ * @static
28458
+ * @param {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.IContractDocumentRestoration=} [properties] Properties to set
28459
+ * @returns {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration} ContractDocumentRestoration instance
28460
+ */
28461
+ ContractDocumentRestoration.create = function create(properties) {
28462
+ return new ContractDocumentRestoration(properties);
28463
+ };
28464
+
28465
+ /**
28466
+ * Encodes the specified ContractDocumentRestoration message. Does not implicitly {@link org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration.verify|verify} messages.
28467
+ * @function encode
28468
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
28469
+ * @static
28470
+ * @param {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.IContractDocumentRestoration} message ContractDocumentRestoration message or plain object to encode
28471
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28472
+ * @returns {$protobuf.Writer} Writer
28473
+ */
28474
+ ContractDocumentRestoration.encode = function encode(message, writer) {
28475
+ if (!writer)
28476
+ writer = $Writer.create();
28477
+ if (message.moderatorId != null && Object.hasOwnProperty.call(message, "moderatorId"))
28478
+ writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.moderatorId);
28479
+ if (message.restoredAt != null && Object.hasOwnProperty.call(message, "restoredAt"))
28480
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.restoredAt);
28481
+ return writer;
28482
+ };
28483
+
28484
+ /**
28485
+ * Encodes the specified ContractDocumentRestoration message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration.verify|verify} messages.
28486
+ * @function encodeDelimited
28487
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
28488
+ * @static
28489
+ * @param {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.IContractDocumentRestoration} message ContractDocumentRestoration message or plain object to encode
28490
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28491
+ * @returns {$protobuf.Writer} Writer
28492
+ */
28493
+ ContractDocumentRestoration.encodeDelimited = function encodeDelimited(message, writer) {
28494
+ return this.encode(message, writer).ldelim();
28495
+ };
28496
+
28497
+ /**
28498
+ * Decodes a ContractDocumentRestoration message from the specified reader or buffer.
28499
+ * @function decode
28500
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
28501
+ * @static
28502
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28503
+ * @param {number} [length] Message length if known beforehand
28504
+ * @returns {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration} ContractDocumentRestoration
28505
+ * @throws {Error} If the payload is not a reader or valid buffer
28506
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28507
+ */
28508
+ ContractDocumentRestoration.decode = function decode(reader, length) {
28509
+ if (!(reader instanceof $Reader))
28510
+ reader = $Reader.create(reader);
28511
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration();
28512
+ while (reader.pos < end) {
28513
+ var tag = reader.uint32();
28514
+ switch (tag >>> 3) {
28515
+ case 1:
28516
+ message.moderatorId = reader.bytes();
28517
+ break;
28518
+ case 2:
28519
+ message.restoredAt = reader.uint64();
28520
+ break;
28521
+ default:
28522
+ reader.skipType(tag & 7);
28523
+ break;
28524
+ }
28525
+ }
28526
+ return message;
28527
+ };
28528
+
28529
+ /**
28530
+ * Decodes a ContractDocumentRestoration message from the specified reader or buffer, length delimited.
28531
+ * @function decodeDelimited
28532
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
28533
+ * @static
28534
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28535
+ * @returns {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration} ContractDocumentRestoration
28536
+ * @throws {Error} If the payload is not a reader or valid buffer
28537
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28538
+ */
28539
+ ContractDocumentRestoration.decodeDelimited = function decodeDelimited(reader) {
28540
+ if (!(reader instanceof $Reader))
28541
+ reader = new $Reader(reader);
28542
+ return this.decode(reader, reader.uint32());
28543
+ };
28544
+
28545
+ /**
28546
+ * Verifies a ContractDocumentRestoration message.
28547
+ * @function verify
28548
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
28549
+ * @static
28550
+ * @param {Object.<string,*>} message Plain object to verify
28551
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
28552
+ */
28553
+ ContractDocumentRestoration.verify = function verify(message) {
28554
+ if (typeof message !== "object" || message === null)
28555
+ return "object expected";
28556
+ if (message.moderatorId != null && message.hasOwnProperty("moderatorId"))
28557
+ if (!(message.moderatorId && typeof message.moderatorId.length === "number" || $util.isString(message.moderatorId)))
28558
+ return "moderatorId: buffer expected";
28559
+ if (message.restoredAt != null && message.hasOwnProperty("restoredAt"))
28560
+ if (!$util.isInteger(message.restoredAt) && !(message.restoredAt && $util.isInteger(message.restoredAt.low) && $util.isInteger(message.restoredAt.high)))
28561
+ return "restoredAt: integer|Long expected";
28562
+ return null;
28563
+ };
28564
+
28565
+ /**
28566
+ * Creates a ContractDocumentRestoration message from a plain object. Also converts values to their respective internal types.
28567
+ * @function fromObject
28568
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
28569
+ * @static
28570
+ * @param {Object.<string,*>} object Plain object
28571
+ * @returns {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration} ContractDocumentRestoration
28572
+ */
28573
+ ContractDocumentRestoration.fromObject = function fromObject(object) {
28574
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration)
28575
+ return object;
28576
+ var message = new $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration();
28577
+ if (object.moderatorId != null)
28578
+ if (typeof object.moderatorId === "string")
28579
+ $util.base64.decode(object.moderatorId, message.moderatorId = $util.newBuffer($util.base64.length(object.moderatorId)), 0);
28580
+ else if (object.moderatorId.length >= 0)
28581
+ message.moderatorId = object.moderatorId;
28582
+ if (object.restoredAt != null)
28583
+ if ($util.Long)
28584
+ (message.restoredAt = $util.Long.fromValue(object.restoredAt)).unsigned = true;
28585
+ else if (typeof object.restoredAt === "string")
28586
+ message.restoredAt = parseInt(object.restoredAt, 10);
28587
+ else if (typeof object.restoredAt === "number")
28588
+ message.restoredAt = object.restoredAt;
28589
+ else if (typeof object.restoredAt === "object")
28590
+ message.restoredAt = new $util.LongBits(object.restoredAt.low >>> 0, object.restoredAt.high >>> 0).toNumber(true);
28591
+ return message;
28592
+ };
28593
+
28594
+ /**
28595
+ * Creates a plain object from a ContractDocumentRestoration message. Also converts values to other types if specified.
28596
+ * @function toObject
28597
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
28598
+ * @static
28599
+ * @param {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration} message ContractDocumentRestoration
28600
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
28601
+ * @returns {Object.<string,*>} Plain object
28602
+ */
28603
+ ContractDocumentRestoration.toObject = function toObject(message, options) {
28604
+ if (!options)
28605
+ options = {};
28606
+ var object = {};
28607
+ if (options.defaults) {
28608
+ if (options.bytes === String)
28609
+ object.moderatorId = "";
28610
+ else {
28611
+ object.moderatorId = [];
28612
+ if (options.bytes !== Array)
28613
+ object.moderatorId = $util.newBuffer(object.moderatorId);
28614
+ }
28615
+ if ($util.Long) {
28616
+ var long = new $util.Long(0, 0, true);
28617
+ object.restoredAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
28618
+ } else
28619
+ object.restoredAt = options.longs === String ? "0" : 0;
28620
+ }
28621
+ if (message.moderatorId != null && message.hasOwnProperty("moderatorId"))
28622
+ object.moderatorId = options.bytes === String ? $util.base64.encode(message.moderatorId, 0, message.moderatorId.length) : options.bytes === Array ? Array.prototype.slice.call(message.moderatorId) : message.moderatorId;
28623
+ if (message.restoredAt != null && message.hasOwnProperty("restoredAt"))
28624
+ if (typeof message.restoredAt === "number")
28625
+ object.restoredAt = options.longs === String ? String(message.restoredAt) : message.restoredAt;
28626
+ else
28627
+ object.restoredAt = options.longs === String ? $util.Long.prototype.toString.call(message.restoredAt) : options.longs === Number ? new $util.LongBits(message.restoredAt.low >>> 0, message.restoredAt.high >>> 0).toNumber(true) : message.restoredAt;
27742
28628
  return object;
27743
- var message = new $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse();
27744
- if (object.v0 != null) {
27745
- if (typeof object.v0 !== "object")
27746
- throw TypeError(".org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.v0: object expected");
27747
- message.v0 = $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.GetContractDocumentRemovalsResponseV0.fromObject(object.v0);
27748
- }
27749
- return message;
27750
- };
28629
+ };
27751
28630
 
27752
- /**
27753
- * Creates a plain object from a GetContractDocumentRemovalsResponse message. Also converts values to other types if specified.
27754
- * @function toObject
27755
- * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse
27756
- * @static
27757
- * @param {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse} message GetContractDocumentRemovalsResponse
27758
- * @param {$protobuf.IConversionOptions} [options] Conversion options
27759
- * @returns {Object.<string,*>} Plain object
27760
- */
27761
- GetContractDocumentRemovalsResponse.toObject = function toObject(message, options) {
27762
- if (!options)
27763
- options = {};
27764
- var object = {};
27765
- if (message.v0 != null && message.hasOwnProperty("v0")) {
27766
- object.v0 = $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.GetContractDocumentRemovalsResponseV0.toObject(message.v0, options);
27767
- if (options.oneofs)
27768
- object.version = "v0";
27769
- }
27770
- return object;
27771
- };
28631
+ /**
28632
+ * Converts this ContractDocumentRestoration to JSON.
28633
+ * @function toJSON
28634
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
28635
+ * @instance
28636
+ * @returns {Object.<string,*>} JSON object
28637
+ */
28638
+ ContractDocumentRestoration.prototype.toJSON = function toJSON() {
28639
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
28640
+ };
27772
28641
 
27773
- /**
27774
- * Converts this GetContractDocumentRemovalsResponse to JSON.
27775
- * @function toJSON
27776
- * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse
27777
- * @instance
27778
- * @returns {Object.<string,*>} JSON object
27779
- */
27780
- GetContractDocumentRemovalsResponse.prototype.toJSON = function toJSON() {
27781
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
27782
- };
28642
+ return ContractDocumentRestoration;
28643
+ })();
27783
28644
 
27784
28645
  GetContractDocumentRemovalsResponse.ContractDocumentRemoval = (function() {
27785
28646
 
@@ -27792,6 +28653,8 @@ $root.org = (function() {
27792
28653
  * @property {Uint8Array|null} [moderatorId] ContractDocumentRemoval moderatorId
27793
28654
  * @property {number|Long|null} [removedAt] ContractDocumentRemoval removedAt
27794
28655
  * @property {org.dash.platform.dapi.v0.IContractModerationReason|null} [reason] ContractDocumentRemoval reason
28656
+ * @property {Uint8Array|null} [documentHash] ContractDocumentRemoval documentHash
28657
+ * @property {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.IContractDocumentRestoration|null} [restoration] ContractDocumentRemoval restoration
27795
28658
  */
27796
28659
 
27797
28660
  /**
@@ -27849,6 +28712,22 @@ $root.org = (function() {
27849
28712
  */
27850
28713
  ContractDocumentRemoval.prototype.reason = null;
27851
28714
 
28715
+ /**
28716
+ * ContractDocumentRemoval documentHash.
28717
+ * @member {Uint8Array} documentHash
28718
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRemoval
28719
+ * @instance
28720
+ */
28721
+ ContractDocumentRemoval.prototype.documentHash = $util.newBuffer([]);
28722
+
28723
+ /**
28724
+ * ContractDocumentRemoval restoration.
28725
+ * @member {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.IContractDocumentRestoration|null|undefined} restoration
28726
+ * @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRemoval
28727
+ * @instance
28728
+ */
28729
+ ContractDocumentRemoval.prototype.restoration = null;
28730
+
27852
28731
  /**
27853
28732
  * Creates a new ContractDocumentRemoval instance using the specified properties.
27854
28733
  * @function create
@@ -27883,6 +28762,10 @@ $root.org = (function() {
27883
28762
  writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.removedAt);
27884
28763
  if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
27885
28764
  $root.org.dash.platform.dapi.v0.ContractModerationReason.encode(message.reason, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
28765
+ if (message.documentHash != null && Object.hasOwnProperty.call(message, "documentHash"))
28766
+ writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.documentHash);
28767
+ if (message.restoration != null && Object.hasOwnProperty.call(message, "restoration"))
28768
+ $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration.encode(message.restoration, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
27886
28769
  return writer;
27887
28770
  };
27888
28771
 
@@ -27932,6 +28815,12 @@ $root.org = (function() {
27932
28815
  case 5:
27933
28816
  message.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.decode(reader, reader.uint32());
27934
28817
  break;
28818
+ case 6:
28819
+ message.documentHash = reader.bytes();
28820
+ break;
28821
+ case 7:
28822
+ message.restoration = $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration.decode(reader, reader.uint32());
28823
+ break;
27935
28824
  default:
27936
28825
  reader.skipType(tag & 7);
27937
28826
  break;
@@ -27984,6 +28873,14 @@ $root.org = (function() {
27984
28873
  if (error)
27985
28874
  return "reason." + error;
27986
28875
  }
28876
+ if (message.documentHash != null && message.hasOwnProperty("documentHash"))
28877
+ if (!(message.documentHash && typeof message.documentHash.length === "number" || $util.isString(message.documentHash)))
28878
+ return "documentHash: buffer expected";
28879
+ if (message.restoration != null && message.hasOwnProperty("restoration")) {
28880
+ var error = $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration.verify(message.restoration);
28881
+ if (error)
28882
+ return "restoration." + error;
28883
+ }
27987
28884
  return null;
27988
28885
  };
27989
28886
 
@@ -28028,6 +28925,16 @@ $root.org = (function() {
28028
28925
  throw TypeError(".org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRemoval.reason: object expected");
28029
28926
  message.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.fromObject(object.reason);
28030
28927
  }
28928
+ if (object.documentHash != null)
28929
+ if (typeof object.documentHash === "string")
28930
+ $util.base64.decode(object.documentHash, message.documentHash = $util.newBuffer($util.base64.length(object.documentHash)), 0);
28931
+ else if (object.documentHash.length >= 0)
28932
+ message.documentHash = object.documentHash;
28933
+ if (object.restoration != null) {
28934
+ if (typeof object.restoration !== "object")
28935
+ throw TypeError(".org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRemoval.restoration: object expected");
28936
+ message.restoration = $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration.fromObject(object.restoration);
28937
+ }
28031
28938
  return message;
28032
28939
  };
28033
28940
 
@@ -28072,6 +28979,14 @@ $root.org = (function() {
28072
28979
  } else
28073
28980
  object.removedAt = options.longs === String ? "0" : 0;
28074
28981
  object.reason = null;
28982
+ if (options.bytes === String)
28983
+ object.documentHash = "";
28984
+ else {
28985
+ object.documentHash = [];
28986
+ if (options.bytes !== Array)
28987
+ object.documentHash = $util.newBuffer(object.documentHash);
28988
+ }
28989
+ object.restoration = null;
28075
28990
  }
28076
28991
  if (message.documentId != null && message.hasOwnProperty("documentId"))
28077
28992
  object.documentId = options.bytes === String ? $util.base64.encode(message.documentId, 0, message.documentId.length) : options.bytes === Array ? Array.prototype.slice.call(message.documentId) : message.documentId;
@@ -28086,6 +29001,10 @@ $root.org = (function() {
28086
29001
  object.removedAt = options.longs === String ? $util.Long.prototype.toString.call(message.removedAt) : options.longs === Number ? new $util.LongBits(message.removedAt.low >>> 0, message.removedAt.high >>> 0).toNumber(true) : message.removedAt;
28087
29002
  if (message.reason != null && message.hasOwnProperty("reason"))
28088
29003
  object.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.toObject(message.reason, options);
29004
+ if (message.documentHash != null && message.hasOwnProperty("documentHash"))
29005
+ object.documentHash = options.bytes === String ? $util.base64.encode(message.documentHash, 0, message.documentHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.documentHash) : message.documentHash;
29006
+ if (message.restoration != null && message.hasOwnProperty("restoration"))
29007
+ object.restoration = $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration.toObject(message.restoration, options);
28089
29008
  return object;
28090
29009
  };
28091
29010
 
@@ -49461,6 +50380,7 @@ $root.org = (function() {
49461
50380
  * @interface IWaitForStateTransitionResultRequestV0
49462
50381
  * @property {Uint8Array|null} [stateTransitionHash] WaitForStateTransitionResultRequestV0 stateTransitionHash
49463
50382
  * @property {boolean|null} [prove] WaitForStateTransitionResultRequestV0 prove
50383
+ * @property {boolean|null} [requestUserBalance] WaitForStateTransitionResultRequestV0 requestUserBalance
49464
50384
  */
49465
50385
 
49466
50386
  /**
@@ -49494,6 +50414,14 @@ $root.org = (function() {
49494
50414
  */
49495
50415
  WaitForStateTransitionResultRequestV0.prototype.prove = false;
49496
50416
 
50417
+ /**
50418
+ * WaitForStateTransitionResultRequestV0 requestUserBalance.
50419
+ * @member {boolean} requestUserBalance
50420
+ * @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest.WaitForStateTransitionResultRequestV0
50421
+ * @instance
50422
+ */
50423
+ WaitForStateTransitionResultRequestV0.prototype.requestUserBalance = false;
50424
+
49497
50425
  /**
49498
50426
  * Creates a new WaitForStateTransitionResultRequestV0 instance using the specified properties.
49499
50427
  * @function create
@@ -49522,6 +50450,8 @@ $root.org = (function() {
49522
50450
  writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.stateTransitionHash);
49523
50451
  if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
49524
50452
  writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
50453
+ if (message.requestUserBalance != null && Object.hasOwnProperty.call(message, "requestUserBalance"))
50454
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.requestUserBalance);
49525
50455
  return writer;
49526
50456
  };
49527
50457
 
@@ -49562,6 +50492,9 @@ $root.org = (function() {
49562
50492
  case 2:
49563
50493
  message.prove = reader.bool();
49564
50494
  break;
50495
+ case 3:
50496
+ message.requestUserBalance = reader.bool();
50497
+ break;
49565
50498
  default:
49566
50499
  reader.skipType(tag & 7);
49567
50500
  break;
@@ -49603,6 +50536,9 @@ $root.org = (function() {
49603
50536
  if (message.prove != null && message.hasOwnProperty("prove"))
49604
50537
  if (typeof message.prove !== "boolean")
49605
50538
  return "prove: boolean expected";
50539
+ if (message.requestUserBalance != null && message.hasOwnProperty("requestUserBalance"))
50540
+ if (typeof message.requestUserBalance !== "boolean")
50541
+ return "requestUserBalance: boolean expected";
49606
50542
  return null;
49607
50543
  };
49608
50544
 
@@ -49625,6 +50561,8 @@ $root.org = (function() {
49625
50561
  message.stateTransitionHash = object.stateTransitionHash;
49626
50562
  if (object.prove != null)
49627
50563
  message.prove = Boolean(object.prove);
50564
+ if (object.requestUserBalance != null)
50565
+ message.requestUserBalance = Boolean(object.requestUserBalance);
49628
50566
  return message;
49629
50567
  };
49630
50568
 
@@ -49650,11 +50588,14 @@ $root.org = (function() {
49650
50588
  object.stateTransitionHash = $util.newBuffer(object.stateTransitionHash);
49651
50589
  }
49652
50590
  object.prove = false;
50591
+ object.requestUserBalance = false;
49653
50592
  }
49654
50593
  if (message.stateTransitionHash != null && message.hasOwnProperty("stateTransitionHash"))
49655
50594
  object.stateTransitionHash = options.bytes === String ? $util.base64.encode(message.stateTransitionHash, 0, message.stateTransitionHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.stateTransitionHash) : message.stateTransitionHash;
49656
50595
  if (message.prove != null && message.hasOwnProperty("prove"))
49657
50596
  object.prove = message.prove;
50597
+ if (message.requestUserBalance != null && message.hasOwnProperty("requestUserBalance"))
50598
+ object.requestUserBalance = message.requestUserBalance;
49658
50599
  return object;
49659
50600
  };
49660
50601
 
@@ -49883,6 +50824,207 @@ $root.org = (function() {
49883
50824
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
49884
50825
  };
49885
50826
 
50827
+ WaitForStateTransitionResultResponse.SuccessWithOwnerBalance = (function() {
50828
+
50829
+ /**
50830
+ * Properties of a SuccessWithOwnerBalance.
50831
+ * @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse
50832
+ * @interface ISuccessWithOwnerBalance
50833
+ * @property {number|Long|null} [ownerBalance] SuccessWithOwnerBalance ownerBalance
50834
+ */
50835
+
50836
+ /**
50837
+ * Constructs a new SuccessWithOwnerBalance.
50838
+ * @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse
50839
+ * @classdesc Represents a SuccessWithOwnerBalance.
50840
+ * @implements ISuccessWithOwnerBalance
50841
+ * @constructor
50842
+ * @param {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ISuccessWithOwnerBalance=} [properties] Properties to set
50843
+ */
50844
+ function SuccessWithOwnerBalance(properties) {
50845
+ if (properties)
50846
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
50847
+ if (properties[keys[i]] != null)
50848
+ this[keys[i]] = properties[keys[i]];
50849
+ }
50850
+
50851
+ /**
50852
+ * SuccessWithOwnerBalance ownerBalance.
50853
+ * @member {number|Long} ownerBalance
50854
+ * @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
50855
+ * @instance
50856
+ */
50857
+ SuccessWithOwnerBalance.prototype.ownerBalance = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
50858
+
50859
+ /**
50860
+ * Creates a new SuccessWithOwnerBalance instance using the specified properties.
50861
+ * @function create
50862
+ * @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
50863
+ * @static
50864
+ * @param {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ISuccessWithOwnerBalance=} [properties] Properties to set
50865
+ * @returns {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance} SuccessWithOwnerBalance instance
50866
+ */
50867
+ SuccessWithOwnerBalance.create = function create(properties) {
50868
+ return new SuccessWithOwnerBalance(properties);
50869
+ };
50870
+
50871
+ /**
50872
+ * Encodes the specified SuccessWithOwnerBalance message. Does not implicitly {@link org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance.verify|verify} messages.
50873
+ * @function encode
50874
+ * @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
50875
+ * @static
50876
+ * @param {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ISuccessWithOwnerBalance} message SuccessWithOwnerBalance message or plain object to encode
50877
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50878
+ * @returns {$protobuf.Writer} Writer
50879
+ */
50880
+ SuccessWithOwnerBalance.encode = function encode(message, writer) {
50881
+ if (!writer)
50882
+ writer = $Writer.create();
50883
+ if (message.ownerBalance != null && Object.hasOwnProperty.call(message, "ownerBalance"))
50884
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ownerBalance);
50885
+ return writer;
50886
+ };
50887
+
50888
+ /**
50889
+ * Encodes the specified SuccessWithOwnerBalance message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance.verify|verify} messages.
50890
+ * @function encodeDelimited
50891
+ * @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
50892
+ * @static
50893
+ * @param {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ISuccessWithOwnerBalance} message SuccessWithOwnerBalance message or plain object to encode
50894
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50895
+ * @returns {$protobuf.Writer} Writer
50896
+ */
50897
+ SuccessWithOwnerBalance.encodeDelimited = function encodeDelimited(message, writer) {
50898
+ return this.encode(message, writer).ldelim();
50899
+ };
50900
+
50901
+ /**
50902
+ * Decodes a SuccessWithOwnerBalance message from the specified reader or buffer.
50903
+ * @function decode
50904
+ * @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
50905
+ * @static
50906
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50907
+ * @param {number} [length] Message length if known beforehand
50908
+ * @returns {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance} SuccessWithOwnerBalance
50909
+ * @throws {Error} If the payload is not a reader or valid buffer
50910
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
50911
+ */
50912
+ SuccessWithOwnerBalance.decode = function decode(reader, length) {
50913
+ if (!(reader instanceof $Reader))
50914
+ reader = $Reader.create(reader);
50915
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance();
50916
+ while (reader.pos < end) {
50917
+ var tag = reader.uint32();
50918
+ switch (tag >>> 3) {
50919
+ case 1:
50920
+ message.ownerBalance = reader.uint64();
50921
+ break;
50922
+ default:
50923
+ reader.skipType(tag & 7);
50924
+ break;
50925
+ }
50926
+ }
50927
+ return message;
50928
+ };
50929
+
50930
+ /**
50931
+ * Decodes a SuccessWithOwnerBalance message from the specified reader or buffer, length delimited.
50932
+ * @function decodeDelimited
50933
+ * @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
50934
+ * @static
50935
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50936
+ * @returns {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance} SuccessWithOwnerBalance
50937
+ * @throws {Error} If the payload is not a reader or valid buffer
50938
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
50939
+ */
50940
+ SuccessWithOwnerBalance.decodeDelimited = function decodeDelimited(reader) {
50941
+ if (!(reader instanceof $Reader))
50942
+ reader = new $Reader(reader);
50943
+ return this.decode(reader, reader.uint32());
50944
+ };
50945
+
50946
+ /**
50947
+ * Verifies a SuccessWithOwnerBalance message.
50948
+ * @function verify
50949
+ * @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
50950
+ * @static
50951
+ * @param {Object.<string,*>} message Plain object to verify
50952
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
50953
+ */
50954
+ SuccessWithOwnerBalance.verify = function verify(message) {
50955
+ if (typeof message !== "object" || message === null)
50956
+ return "object expected";
50957
+ if (message.ownerBalance != null && message.hasOwnProperty("ownerBalance"))
50958
+ if (!$util.isInteger(message.ownerBalance) && !(message.ownerBalance && $util.isInteger(message.ownerBalance.low) && $util.isInteger(message.ownerBalance.high)))
50959
+ return "ownerBalance: integer|Long expected";
50960
+ return null;
50961
+ };
50962
+
50963
+ /**
50964
+ * Creates a SuccessWithOwnerBalance message from a plain object. Also converts values to their respective internal types.
50965
+ * @function fromObject
50966
+ * @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
50967
+ * @static
50968
+ * @param {Object.<string,*>} object Plain object
50969
+ * @returns {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance} SuccessWithOwnerBalance
50970
+ */
50971
+ SuccessWithOwnerBalance.fromObject = function fromObject(object) {
50972
+ if (object instanceof $root.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance)
50973
+ return object;
50974
+ var message = new $root.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance();
50975
+ if (object.ownerBalance != null)
50976
+ if ($util.Long)
50977
+ (message.ownerBalance = $util.Long.fromValue(object.ownerBalance)).unsigned = true;
50978
+ else if (typeof object.ownerBalance === "string")
50979
+ message.ownerBalance = parseInt(object.ownerBalance, 10);
50980
+ else if (typeof object.ownerBalance === "number")
50981
+ message.ownerBalance = object.ownerBalance;
50982
+ else if (typeof object.ownerBalance === "object")
50983
+ message.ownerBalance = new $util.LongBits(object.ownerBalance.low >>> 0, object.ownerBalance.high >>> 0).toNumber(true);
50984
+ return message;
50985
+ };
50986
+
50987
+ /**
50988
+ * Creates a plain object from a SuccessWithOwnerBalance message. Also converts values to other types if specified.
50989
+ * @function toObject
50990
+ * @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
50991
+ * @static
50992
+ * @param {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance} message SuccessWithOwnerBalance
50993
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
50994
+ * @returns {Object.<string,*>} Plain object
50995
+ */
50996
+ SuccessWithOwnerBalance.toObject = function toObject(message, options) {
50997
+ if (!options)
50998
+ options = {};
50999
+ var object = {};
51000
+ if (options.defaults)
51001
+ if ($util.Long) {
51002
+ var long = new $util.Long(0, 0, true);
51003
+ object.ownerBalance = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
51004
+ } else
51005
+ object.ownerBalance = options.longs === String ? "0" : 0;
51006
+ if (message.ownerBalance != null && message.hasOwnProperty("ownerBalance"))
51007
+ if (typeof message.ownerBalance === "number")
51008
+ object.ownerBalance = options.longs === String ? String(message.ownerBalance) : message.ownerBalance;
51009
+ else
51010
+ object.ownerBalance = options.longs === String ? $util.Long.prototype.toString.call(message.ownerBalance) : options.longs === Number ? new $util.LongBits(message.ownerBalance.low >>> 0, message.ownerBalance.high >>> 0).toNumber(true) : message.ownerBalance;
51011
+ return object;
51012
+ };
51013
+
51014
+ /**
51015
+ * Converts this SuccessWithOwnerBalance to JSON.
51016
+ * @function toJSON
51017
+ * @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
51018
+ * @instance
51019
+ * @returns {Object.<string,*>} JSON object
51020
+ */
51021
+ SuccessWithOwnerBalance.prototype.toJSON = function toJSON() {
51022
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
51023
+ };
51024
+
51025
+ return SuccessWithOwnerBalance;
51026
+ })();
51027
+
49886
51028
  WaitForStateTransitionResultResponse.WaitForStateTransitionResultResponseV0 = (function() {
49887
51029
 
49888
51030
  /**
@@ -49891,6 +51033,7 @@ $root.org = (function() {
49891
51033
  * @interface IWaitForStateTransitionResultResponseV0
49892
51034
  * @property {org.dash.platform.dapi.v0.IStateTransitionBroadcastError|null} [error] WaitForStateTransitionResultResponseV0 error
49893
51035
  * @property {org.dash.platform.dapi.v0.IProof|null} [proof] WaitForStateTransitionResultResponseV0 proof
51036
+ * @property {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ISuccessWithOwnerBalance|null} [successWithOwnerBalance] WaitForStateTransitionResultResponseV0 successWithOwnerBalance
49894
51037
  * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] WaitForStateTransitionResultResponseV0 metadata
49895
51038
  */
49896
51039
 
@@ -49925,6 +51068,14 @@ $root.org = (function() {
49925
51068
  */
49926
51069
  WaitForStateTransitionResultResponseV0.prototype.proof = null;
49927
51070
 
51071
+ /**
51072
+ * WaitForStateTransitionResultResponseV0 successWithOwnerBalance.
51073
+ * @member {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ISuccessWithOwnerBalance|null|undefined} successWithOwnerBalance
51074
+ * @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.WaitForStateTransitionResultResponseV0
51075
+ * @instance
51076
+ */
51077
+ WaitForStateTransitionResultResponseV0.prototype.successWithOwnerBalance = null;
51078
+
49928
51079
  /**
49929
51080
  * WaitForStateTransitionResultResponseV0 metadata.
49930
51081
  * @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
@@ -49938,12 +51089,12 @@ $root.org = (function() {
49938
51089
 
49939
51090
  /**
49940
51091
  * WaitForStateTransitionResultResponseV0 result.
49941
- * @member {"error"|"proof"|undefined} result
51092
+ * @member {"error"|"proof"|"successWithOwnerBalance"|undefined} result
49942
51093
  * @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.WaitForStateTransitionResultResponseV0
49943
51094
  * @instance
49944
51095
  */
49945
51096
  Object.defineProperty(WaitForStateTransitionResultResponseV0.prototype, "result", {
49946
- get: $util.oneOfGetter($oneOfFields = ["error", "proof"]),
51097
+ get: $util.oneOfGetter($oneOfFields = ["error", "proof", "successWithOwnerBalance"]),
49947
51098
  set: $util.oneOfSetter($oneOfFields)
49948
51099
  });
49949
51100
 
@@ -49977,6 +51128,8 @@ $root.org = (function() {
49977
51128
  $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
49978
51129
  if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
49979
51130
  $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
51131
+ if (message.successWithOwnerBalance != null && Object.hasOwnProperty.call(message, "successWithOwnerBalance"))
51132
+ $root.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance.encode(message.successWithOwnerBalance, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
49980
51133
  return writer;
49981
51134
  };
49982
51135
 
@@ -50017,6 +51170,9 @@ $root.org = (function() {
50017
51170
  case 2:
50018
51171
  message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
50019
51172
  break;
51173
+ case 4:
51174
+ message.successWithOwnerBalance = $root.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance.decode(reader, reader.uint32());
51175
+ break;
50020
51176
  case 3:
50021
51177
  message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
50022
51178
  break;
@@ -50074,6 +51230,16 @@ $root.org = (function() {
50074
51230
  return "proof." + error;
50075
51231
  }
50076
51232
  }
51233
+ if (message.successWithOwnerBalance != null && message.hasOwnProperty("successWithOwnerBalance")) {
51234
+ if (properties.result === 1)
51235
+ return "result: multiple values";
51236
+ properties.result = 1;
51237
+ {
51238
+ var error = $root.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance.verify(message.successWithOwnerBalance);
51239
+ if (error)
51240
+ return "successWithOwnerBalance." + error;
51241
+ }
51242
+ }
50077
51243
  if (message.metadata != null && message.hasOwnProperty("metadata")) {
50078
51244
  var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
50079
51245
  if (error)
@@ -50104,6 +51270,11 @@ $root.org = (function() {
50104
51270
  throw TypeError(".org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.WaitForStateTransitionResultResponseV0.proof: object expected");
50105
51271
  message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
50106
51272
  }
51273
+ if (object.successWithOwnerBalance != null) {
51274
+ if (typeof object.successWithOwnerBalance !== "object")
51275
+ throw TypeError(".org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.WaitForStateTransitionResultResponseV0.successWithOwnerBalance: object expected");
51276
+ message.successWithOwnerBalance = $root.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance.fromObject(object.successWithOwnerBalance);
51277
+ }
50107
51278
  if (object.metadata != null) {
50108
51279
  if (typeof object.metadata !== "object")
50109
51280
  throw TypeError(".org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.WaitForStateTransitionResultResponseV0.metadata: object expected");
@@ -50139,6 +51310,11 @@ $root.org = (function() {
50139
51310
  }
50140
51311
  if (message.metadata != null && message.hasOwnProperty("metadata"))
50141
51312
  object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
51313
+ if (message.successWithOwnerBalance != null && message.hasOwnProperty("successWithOwnerBalance")) {
51314
+ object.successWithOwnerBalance = $root.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance.toObject(message.successWithOwnerBalance, options);
51315
+ if (options.oneofs)
51316
+ object.result = "successWithOwnerBalance";
51317
+ }
50142
51318
  return object;
50143
51319
  };
50144
51320