@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.
- package/clients/drive/v0/nodejs/drive_pbjs.js +1268 -92
- package/clients/platform/v0/nodejs/platform_pbjs.js +1268 -92
- package/clients/platform/v0/nodejs/platform_protoc.js +1211 -11
- package/clients/platform/v0/web/platform_pb.d.ts +148 -0
- package/clients/platform/v0/web/platform_pb.js +1211 -11
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +64 -5
|
@@ -24072,15 +24072,236 @@ $root.org = (function() {
|
|
|
24072
24072
|
* @property {number} CONTRACT_MODERATION_LIST_UNSPECIFIED=0 CONTRACT_MODERATION_LIST_UNSPECIFIED value
|
|
24073
24073
|
* @property {number} CONTRACT_MODERATION_LIST_BANLIST=1 CONTRACT_MODERATION_LIST_BANLIST value
|
|
24074
24074
|
* @property {number} CONTRACT_MODERATION_LIST_SUSPENSIONS=2 CONTRACT_MODERATION_LIST_SUSPENSIONS value
|
|
24075
|
+
* @property {number} CONTRACT_MODERATION_LIST_WARNINGS=3 CONTRACT_MODERATION_LIST_WARNINGS value
|
|
24075
24076
|
*/
|
|
24076
24077
|
v0.ContractModerationList = (function() {
|
|
24077
24078
|
var valuesById = {}, values = Object.create(valuesById);
|
|
24078
24079
|
values[valuesById[0] = "CONTRACT_MODERATION_LIST_UNSPECIFIED"] = 0;
|
|
24079
24080
|
values[valuesById[1] = "CONTRACT_MODERATION_LIST_BANLIST"] = 1;
|
|
24080
24081
|
values[valuesById[2] = "CONTRACT_MODERATION_LIST_SUSPENSIONS"] = 2;
|
|
24082
|
+
values[valuesById[3] = "CONTRACT_MODERATION_LIST_WARNINGS"] = 3;
|
|
24081
24083
|
return values;
|
|
24082
24084
|
})();
|
|
24083
24085
|
|
|
24086
|
+
v0.ContractModerationDocument = (function() {
|
|
24087
|
+
|
|
24088
|
+
/**
|
|
24089
|
+
* Properties of a ContractModerationDocument.
|
|
24090
|
+
* @memberof org.dash.platform.dapi.v0
|
|
24091
|
+
* @interface IContractModerationDocument
|
|
24092
|
+
* @property {string|null} [documentTypeName] ContractModerationDocument documentTypeName
|
|
24093
|
+
* @property {Uint8Array|null} [documentId] ContractModerationDocument documentId
|
|
24094
|
+
*/
|
|
24095
|
+
|
|
24096
|
+
/**
|
|
24097
|
+
* Constructs a new ContractModerationDocument.
|
|
24098
|
+
* @memberof org.dash.platform.dapi.v0
|
|
24099
|
+
* @classdesc Represents a ContractModerationDocument.
|
|
24100
|
+
* @implements IContractModerationDocument
|
|
24101
|
+
* @constructor
|
|
24102
|
+
* @param {org.dash.platform.dapi.v0.IContractModerationDocument=} [properties] Properties to set
|
|
24103
|
+
*/
|
|
24104
|
+
function ContractModerationDocument(properties) {
|
|
24105
|
+
if (properties)
|
|
24106
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24107
|
+
if (properties[keys[i]] != null)
|
|
24108
|
+
this[keys[i]] = properties[keys[i]];
|
|
24109
|
+
}
|
|
24110
|
+
|
|
24111
|
+
/**
|
|
24112
|
+
* ContractModerationDocument documentTypeName.
|
|
24113
|
+
* @member {string} documentTypeName
|
|
24114
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationDocument
|
|
24115
|
+
* @instance
|
|
24116
|
+
*/
|
|
24117
|
+
ContractModerationDocument.prototype.documentTypeName = "";
|
|
24118
|
+
|
|
24119
|
+
/**
|
|
24120
|
+
* ContractModerationDocument documentId.
|
|
24121
|
+
* @member {Uint8Array} documentId
|
|
24122
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationDocument
|
|
24123
|
+
* @instance
|
|
24124
|
+
*/
|
|
24125
|
+
ContractModerationDocument.prototype.documentId = $util.newBuffer([]);
|
|
24126
|
+
|
|
24127
|
+
/**
|
|
24128
|
+
* Creates a new ContractModerationDocument instance using the specified properties.
|
|
24129
|
+
* @function create
|
|
24130
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationDocument
|
|
24131
|
+
* @static
|
|
24132
|
+
* @param {org.dash.platform.dapi.v0.IContractModerationDocument=} [properties] Properties to set
|
|
24133
|
+
* @returns {org.dash.platform.dapi.v0.ContractModerationDocument} ContractModerationDocument instance
|
|
24134
|
+
*/
|
|
24135
|
+
ContractModerationDocument.create = function create(properties) {
|
|
24136
|
+
return new ContractModerationDocument(properties);
|
|
24137
|
+
};
|
|
24138
|
+
|
|
24139
|
+
/**
|
|
24140
|
+
* Encodes the specified ContractModerationDocument message. Does not implicitly {@link org.dash.platform.dapi.v0.ContractModerationDocument.verify|verify} messages.
|
|
24141
|
+
* @function encode
|
|
24142
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationDocument
|
|
24143
|
+
* @static
|
|
24144
|
+
* @param {org.dash.platform.dapi.v0.IContractModerationDocument} message ContractModerationDocument message or plain object to encode
|
|
24145
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24146
|
+
* @returns {$protobuf.Writer} Writer
|
|
24147
|
+
*/
|
|
24148
|
+
ContractModerationDocument.encode = function encode(message, writer) {
|
|
24149
|
+
if (!writer)
|
|
24150
|
+
writer = $Writer.create();
|
|
24151
|
+
if (message.documentTypeName != null && Object.hasOwnProperty.call(message, "documentTypeName"))
|
|
24152
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.documentTypeName);
|
|
24153
|
+
if (message.documentId != null && Object.hasOwnProperty.call(message, "documentId"))
|
|
24154
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.documentId);
|
|
24155
|
+
return writer;
|
|
24156
|
+
};
|
|
24157
|
+
|
|
24158
|
+
/**
|
|
24159
|
+
* Encodes the specified ContractModerationDocument message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.ContractModerationDocument.verify|verify} messages.
|
|
24160
|
+
* @function encodeDelimited
|
|
24161
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationDocument
|
|
24162
|
+
* @static
|
|
24163
|
+
* @param {org.dash.platform.dapi.v0.IContractModerationDocument} message ContractModerationDocument message or plain object to encode
|
|
24164
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24165
|
+
* @returns {$protobuf.Writer} Writer
|
|
24166
|
+
*/
|
|
24167
|
+
ContractModerationDocument.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24168
|
+
return this.encode(message, writer).ldelim();
|
|
24169
|
+
};
|
|
24170
|
+
|
|
24171
|
+
/**
|
|
24172
|
+
* Decodes a ContractModerationDocument message from the specified reader or buffer.
|
|
24173
|
+
* @function decode
|
|
24174
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationDocument
|
|
24175
|
+
* @static
|
|
24176
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24177
|
+
* @param {number} [length] Message length if known beforehand
|
|
24178
|
+
* @returns {org.dash.platform.dapi.v0.ContractModerationDocument} ContractModerationDocument
|
|
24179
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24180
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24181
|
+
*/
|
|
24182
|
+
ContractModerationDocument.decode = function decode(reader, length) {
|
|
24183
|
+
if (!(reader instanceof $Reader))
|
|
24184
|
+
reader = $Reader.create(reader);
|
|
24185
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.ContractModerationDocument();
|
|
24186
|
+
while (reader.pos < end) {
|
|
24187
|
+
var tag = reader.uint32();
|
|
24188
|
+
switch (tag >>> 3) {
|
|
24189
|
+
case 1:
|
|
24190
|
+
message.documentTypeName = reader.string();
|
|
24191
|
+
break;
|
|
24192
|
+
case 2:
|
|
24193
|
+
message.documentId = reader.bytes();
|
|
24194
|
+
break;
|
|
24195
|
+
default:
|
|
24196
|
+
reader.skipType(tag & 7);
|
|
24197
|
+
break;
|
|
24198
|
+
}
|
|
24199
|
+
}
|
|
24200
|
+
return message;
|
|
24201
|
+
};
|
|
24202
|
+
|
|
24203
|
+
/**
|
|
24204
|
+
* Decodes a ContractModerationDocument message from the specified reader or buffer, length delimited.
|
|
24205
|
+
* @function decodeDelimited
|
|
24206
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationDocument
|
|
24207
|
+
* @static
|
|
24208
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24209
|
+
* @returns {org.dash.platform.dapi.v0.ContractModerationDocument} ContractModerationDocument
|
|
24210
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24211
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24212
|
+
*/
|
|
24213
|
+
ContractModerationDocument.decodeDelimited = function decodeDelimited(reader) {
|
|
24214
|
+
if (!(reader instanceof $Reader))
|
|
24215
|
+
reader = new $Reader(reader);
|
|
24216
|
+
return this.decode(reader, reader.uint32());
|
|
24217
|
+
};
|
|
24218
|
+
|
|
24219
|
+
/**
|
|
24220
|
+
* Verifies a ContractModerationDocument message.
|
|
24221
|
+
* @function verify
|
|
24222
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationDocument
|
|
24223
|
+
* @static
|
|
24224
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
24225
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
24226
|
+
*/
|
|
24227
|
+
ContractModerationDocument.verify = function verify(message) {
|
|
24228
|
+
if (typeof message !== "object" || message === null)
|
|
24229
|
+
return "object expected";
|
|
24230
|
+
if (message.documentTypeName != null && message.hasOwnProperty("documentTypeName"))
|
|
24231
|
+
if (!$util.isString(message.documentTypeName))
|
|
24232
|
+
return "documentTypeName: string expected";
|
|
24233
|
+
if (message.documentId != null && message.hasOwnProperty("documentId"))
|
|
24234
|
+
if (!(message.documentId && typeof message.documentId.length === "number" || $util.isString(message.documentId)))
|
|
24235
|
+
return "documentId: buffer expected";
|
|
24236
|
+
return null;
|
|
24237
|
+
};
|
|
24238
|
+
|
|
24239
|
+
/**
|
|
24240
|
+
* Creates a ContractModerationDocument message from a plain object. Also converts values to their respective internal types.
|
|
24241
|
+
* @function fromObject
|
|
24242
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationDocument
|
|
24243
|
+
* @static
|
|
24244
|
+
* @param {Object.<string,*>} object Plain object
|
|
24245
|
+
* @returns {org.dash.platform.dapi.v0.ContractModerationDocument} ContractModerationDocument
|
|
24246
|
+
*/
|
|
24247
|
+
ContractModerationDocument.fromObject = function fromObject(object) {
|
|
24248
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.ContractModerationDocument)
|
|
24249
|
+
return object;
|
|
24250
|
+
var message = new $root.org.dash.platform.dapi.v0.ContractModerationDocument();
|
|
24251
|
+
if (object.documentTypeName != null)
|
|
24252
|
+
message.documentTypeName = String(object.documentTypeName);
|
|
24253
|
+
if (object.documentId != null)
|
|
24254
|
+
if (typeof object.documentId === "string")
|
|
24255
|
+
$util.base64.decode(object.documentId, message.documentId = $util.newBuffer($util.base64.length(object.documentId)), 0);
|
|
24256
|
+
else if (object.documentId.length >= 0)
|
|
24257
|
+
message.documentId = object.documentId;
|
|
24258
|
+
return message;
|
|
24259
|
+
};
|
|
24260
|
+
|
|
24261
|
+
/**
|
|
24262
|
+
* Creates a plain object from a ContractModerationDocument message. Also converts values to other types if specified.
|
|
24263
|
+
* @function toObject
|
|
24264
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationDocument
|
|
24265
|
+
* @static
|
|
24266
|
+
* @param {org.dash.platform.dapi.v0.ContractModerationDocument} message ContractModerationDocument
|
|
24267
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
24268
|
+
* @returns {Object.<string,*>} Plain object
|
|
24269
|
+
*/
|
|
24270
|
+
ContractModerationDocument.toObject = function toObject(message, options) {
|
|
24271
|
+
if (!options)
|
|
24272
|
+
options = {};
|
|
24273
|
+
var object = {};
|
|
24274
|
+
if (options.defaults) {
|
|
24275
|
+
object.documentTypeName = "";
|
|
24276
|
+
if (options.bytes === String)
|
|
24277
|
+
object.documentId = "";
|
|
24278
|
+
else {
|
|
24279
|
+
object.documentId = [];
|
|
24280
|
+
if (options.bytes !== Array)
|
|
24281
|
+
object.documentId = $util.newBuffer(object.documentId);
|
|
24282
|
+
}
|
|
24283
|
+
}
|
|
24284
|
+
if (message.documentTypeName != null && message.hasOwnProperty("documentTypeName"))
|
|
24285
|
+
object.documentTypeName = message.documentTypeName;
|
|
24286
|
+
if (message.documentId != null && message.hasOwnProperty("documentId"))
|
|
24287
|
+
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;
|
|
24288
|
+
return object;
|
|
24289
|
+
};
|
|
24290
|
+
|
|
24291
|
+
/**
|
|
24292
|
+
* Converts this ContractModerationDocument to JSON.
|
|
24293
|
+
* @function toJSON
|
|
24294
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationDocument
|
|
24295
|
+
* @instance
|
|
24296
|
+
* @returns {Object.<string,*>} JSON object
|
|
24297
|
+
*/
|
|
24298
|
+
ContractModerationDocument.prototype.toJSON = function toJSON() {
|
|
24299
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
24300
|
+
};
|
|
24301
|
+
|
|
24302
|
+
return ContractModerationDocument;
|
|
24303
|
+
})();
|
|
24304
|
+
|
|
24084
24305
|
v0.ContractModerationReason = (function() {
|
|
24085
24306
|
|
|
24086
24307
|
/**
|
|
@@ -24089,6 +24310,8 @@ $root.org = (function() {
|
|
|
24089
24310
|
* @interface IContractModerationReason
|
|
24090
24311
|
* @property {number|null} [code] ContractModerationReason code
|
|
24091
24312
|
* @property {string|null} [text] ContractModerationReason text
|
|
24313
|
+
* @property {Array.<org.dash.platform.dapi.v0.IContractModerationDocument>|null} [documents] ContractModerationReason documents
|
|
24314
|
+
* @property {Uint8Array|null} [reasonDocumentId] ContractModerationReason reasonDocumentId
|
|
24092
24315
|
*/
|
|
24093
24316
|
|
|
24094
24317
|
/**
|
|
@@ -24100,6 +24323,7 @@ $root.org = (function() {
|
|
|
24100
24323
|
* @param {org.dash.platform.dapi.v0.IContractModerationReason=} [properties] Properties to set
|
|
24101
24324
|
*/
|
|
24102
24325
|
function ContractModerationReason(properties) {
|
|
24326
|
+
this.documents = [];
|
|
24103
24327
|
if (properties)
|
|
24104
24328
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24105
24329
|
if (properties[keys[i]] != null)
|
|
@@ -24122,6 +24346,22 @@ $root.org = (function() {
|
|
|
24122
24346
|
*/
|
|
24123
24347
|
ContractModerationReason.prototype.text = "";
|
|
24124
24348
|
|
|
24349
|
+
/**
|
|
24350
|
+
* ContractModerationReason documents.
|
|
24351
|
+
* @member {Array.<org.dash.platform.dapi.v0.IContractModerationDocument>} documents
|
|
24352
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationReason
|
|
24353
|
+
* @instance
|
|
24354
|
+
*/
|
|
24355
|
+
ContractModerationReason.prototype.documents = $util.emptyArray;
|
|
24356
|
+
|
|
24357
|
+
/**
|
|
24358
|
+
* ContractModerationReason reasonDocumentId.
|
|
24359
|
+
* @member {Uint8Array} reasonDocumentId
|
|
24360
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationReason
|
|
24361
|
+
* @instance
|
|
24362
|
+
*/
|
|
24363
|
+
ContractModerationReason.prototype.reasonDocumentId = $util.newBuffer([]);
|
|
24364
|
+
|
|
24125
24365
|
/**
|
|
24126
24366
|
* Creates a new ContractModerationReason instance using the specified properties.
|
|
24127
24367
|
* @function create
|
|
@@ -24150,6 +24390,11 @@ $root.org = (function() {
|
|
|
24150
24390
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.code);
|
|
24151
24391
|
if (message.text != null && Object.hasOwnProperty.call(message, "text"))
|
|
24152
24392
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.text);
|
|
24393
|
+
if (message.documents != null && message.documents.length)
|
|
24394
|
+
for (var i = 0; i < message.documents.length; ++i)
|
|
24395
|
+
$root.org.dash.platform.dapi.v0.ContractModerationDocument.encode(message.documents[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
24396
|
+
if (message.reasonDocumentId != null && Object.hasOwnProperty.call(message, "reasonDocumentId"))
|
|
24397
|
+
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.reasonDocumentId);
|
|
24153
24398
|
return writer;
|
|
24154
24399
|
};
|
|
24155
24400
|
|
|
@@ -24177,18 +24422,279 @@ $root.org = (function() {
|
|
|
24177
24422
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24178
24423
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24179
24424
|
*/
|
|
24180
|
-
ContractModerationReason.decode = function decode(reader, length) {
|
|
24425
|
+
ContractModerationReason.decode = function decode(reader, length) {
|
|
24426
|
+
if (!(reader instanceof $Reader))
|
|
24427
|
+
reader = $Reader.create(reader);
|
|
24428
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.ContractModerationReason();
|
|
24429
|
+
while (reader.pos < end) {
|
|
24430
|
+
var tag = reader.uint32();
|
|
24431
|
+
switch (tag >>> 3) {
|
|
24432
|
+
case 1:
|
|
24433
|
+
message.code = reader.uint32();
|
|
24434
|
+
break;
|
|
24435
|
+
case 2:
|
|
24436
|
+
message.text = reader.string();
|
|
24437
|
+
break;
|
|
24438
|
+
case 3:
|
|
24439
|
+
if (!(message.documents && message.documents.length))
|
|
24440
|
+
message.documents = [];
|
|
24441
|
+
message.documents.push($root.org.dash.platform.dapi.v0.ContractModerationDocument.decode(reader, reader.uint32()));
|
|
24442
|
+
break;
|
|
24443
|
+
case 4:
|
|
24444
|
+
message.reasonDocumentId = reader.bytes();
|
|
24445
|
+
break;
|
|
24446
|
+
default:
|
|
24447
|
+
reader.skipType(tag & 7);
|
|
24448
|
+
break;
|
|
24449
|
+
}
|
|
24450
|
+
}
|
|
24451
|
+
return message;
|
|
24452
|
+
};
|
|
24453
|
+
|
|
24454
|
+
/**
|
|
24455
|
+
* Decodes a ContractModerationReason message from the specified reader or buffer, length delimited.
|
|
24456
|
+
* @function decodeDelimited
|
|
24457
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationReason
|
|
24458
|
+
* @static
|
|
24459
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24460
|
+
* @returns {org.dash.platform.dapi.v0.ContractModerationReason} ContractModerationReason
|
|
24461
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24462
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24463
|
+
*/
|
|
24464
|
+
ContractModerationReason.decodeDelimited = function decodeDelimited(reader) {
|
|
24465
|
+
if (!(reader instanceof $Reader))
|
|
24466
|
+
reader = new $Reader(reader);
|
|
24467
|
+
return this.decode(reader, reader.uint32());
|
|
24468
|
+
};
|
|
24469
|
+
|
|
24470
|
+
/**
|
|
24471
|
+
* Verifies a ContractModerationReason message.
|
|
24472
|
+
* @function verify
|
|
24473
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationReason
|
|
24474
|
+
* @static
|
|
24475
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
24476
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
24477
|
+
*/
|
|
24478
|
+
ContractModerationReason.verify = function verify(message) {
|
|
24479
|
+
if (typeof message !== "object" || message === null)
|
|
24480
|
+
return "object expected";
|
|
24481
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
24482
|
+
if (!$util.isInteger(message.code))
|
|
24483
|
+
return "code: integer expected";
|
|
24484
|
+
if (message.text != null && message.hasOwnProperty("text"))
|
|
24485
|
+
if (!$util.isString(message.text))
|
|
24486
|
+
return "text: string expected";
|
|
24487
|
+
if (message.documents != null && message.hasOwnProperty("documents")) {
|
|
24488
|
+
if (!Array.isArray(message.documents))
|
|
24489
|
+
return "documents: array expected";
|
|
24490
|
+
for (var i = 0; i < message.documents.length; ++i) {
|
|
24491
|
+
var error = $root.org.dash.platform.dapi.v0.ContractModerationDocument.verify(message.documents[i]);
|
|
24492
|
+
if (error)
|
|
24493
|
+
return "documents." + error;
|
|
24494
|
+
}
|
|
24495
|
+
}
|
|
24496
|
+
if (message.reasonDocumentId != null && message.hasOwnProperty("reasonDocumentId"))
|
|
24497
|
+
if (!(message.reasonDocumentId && typeof message.reasonDocumentId.length === "number" || $util.isString(message.reasonDocumentId)))
|
|
24498
|
+
return "reasonDocumentId: buffer expected";
|
|
24499
|
+
return null;
|
|
24500
|
+
};
|
|
24501
|
+
|
|
24502
|
+
/**
|
|
24503
|
+
* Creates a ContractModerationReason message from a plain object. Also converts values to their respective internal types.
|
|
24504
|
+
* @function fromObject
|
|
24505
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationReason
|
|
24506
|
+
* @static
|
|
24507
|
+
* @param {Object.<string,*>} object Plain object
|
|
24508
|
+
* @returns {org.dash.platform.dapi.v0.ContractModerationReason} ContractModerationReason
|
|
24509
|
+
*/
|
|
24510
|
+
ContractModerationReason.fromObject = function fromObject(object) {
|
|
24511
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.ContractModerationReason)
|
|
24512
|
+
return object;
|
|
24513
|
+
var message = new $root.org.dash.platform.dapi.v0.ContractModerationReason();
|
|
24514
|
+
if (object.code != null)
|
|
24515
|
+
message.code = object.code >>> 0;
|
|
24516
|
+
if (object.text != null)
|
|
24517
|
+
message.text = String(object.text);
|
|
24518
|
+
if (object.documents) {
|
|
24519
|
+
if (!Array.isArray(object.documents))
|
|
24520
|
+
throw TypeError(".org.dash.platform.dapi.v0.ContractModerationReason.documents: array expected");
|
|
24521
|
+
message.documents = [];
|
|
24522
|
+
for (var i = 0; i < object.documents.length; ++i) {
|
|
24523
|
+
if (typeof object.documents[i] !== "object")
|
|
24524
|
+
throw TypeError(".org.dash.platform.dapi.v0.ContractModerationReason.documents: object expected");
|
|
24525
|
+
message.documents[i] = $root.org.dash.platform.dapi.v0.ContractModerationDocument.fromObject(object.documents[i]);
|
|
24526
|
+
}
|
|
24527
|
+
}
|
|
24528
|
+
if (object.reasonDocumentId != null)
|
|
24529
|
+
if (typeof object.reasonDocumentId === "string")
|
|
24530
|
+
$util.base64.decode(object.reasonDocumentId, message.reasonDocumentId = $util.newBuffer($util.base64.length(object.reasonDocumentId)), 0);
|
|
24531
|
+
else if (object.reasonDocumentId.length >= 0)
|
|
24532
|
+
message.reasonDocumentId = object.reasonDocumentId;
|
|
24533
|
+
return message;
|
|
24534
|
+
};
|
|
24535
|
+
|
|
24536
|
+
/**
|
|
24537
|
+
* Creates a plain object from a ContractModerationReason message. Also converts values to other types if specified.
|
|
24538
|
+
* @function toObject
|
|
24539
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationReason
|
|
24540
|
+
* @static
|
|
24541
|
+
* @param {org.dash.platform.dapi.v0.ContractModerationReason} message ContractModerationReason
|
|
24542
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
24543
|
+
* @returns {Object.<string,*>} Plain object
|
|
24544
|
+
*/
|
|
24545
|
+
ContractModerationReason.toObject = function toObject(message, options) {
|
|
24546
|
+
if (!options)
|
|
24547
|
+
options = {};
|
|
24548
|
+
var object = {};
|
|
24549
|
+
if (options.arrays || options.defaults)
|
|
24550
|
+
object.documents = [];
|
|
24551
|
+
if (options.defaults) {
|
|
24552
|
+
object.code = 0;
|
|
24553
|
+
object.text = "";
|
|
24554
|
+
if (options.bytes === String)
|
|
24555
|
+
object.reasonDocumentId = "";
|
|
24556
|
+
else {
|
|
24557
|
+
object.reasonDocumentId = [];
|
|
24558
|
+
if (options.bytes !== Array)
|
|
24559
|
+
object.reasonDocumentId = $util.newBuffer(object.reasonDocumentId);
|
|
24560
|
+
}
|
|
24561
|
+
}
|
|
24562
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
24563
|
+
object.code = message.code;
|
|
24564
|
+
if (message.text != null && message.hasOwnProperty("text"))
|
|
24565
|
+
object.text = message.text;
|
|
24566
|
+
if (message.documents && message.documents.length) {
|
|
24567
|
+
object.documents = [];
|
|
24568
|
+
for (var j = 0; j < message.documents.length; ++j)
|
|
24569
|
+
object.documents[j] = $root.org.dash.platform.dapi.v0.ContractModerationDocument.toObject(message.documents[j], options);
|
|
24570
|
+
}
|
|
24571
|
+
if (message.reasonDocumentId != null && message.hasOwnProperty("reasonDocumentId"))
|
|
24572
|
+
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;
|
|
24573
|
+
return object;
|
|
24574
|
+
};
|
|
24575
|
+
|
|
24576
|
+
/**
|
|
24577
|
+
* Converts this ContractModerationReason to JSON.
|
|
24578
|
+
* @function toJSON
|
|
24579
|
+
* @memberof org.dash.platform.dapi.v0.ContractModerationReason
|
|
24580
|
+
* @instance
|
|
24581
|
+
* @returns {Object.<string,*>} JSON object
|
|
24582
|
+
*/
|
|
24583
|
+
ContractModerationReason.prototype.toJSON = function toJSON() {
|
|
24584
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
24585
|
+
};
|
|
24586
|
+
|
|
24587
|
+
return ContractModerationReason;
|
|
24588
|
+
})();
|
|
24589
|
+
|
|
24590
|
+
v0.ContractWarning = (function() {
|
|
24591
|
+
|
|
24592
|
+
/**
|
|
24593
|
+
* Properties of a ContractWarning.
|
|
24594
|
+
* @memberof org.dash.platform.dapi.v0
|
|
24595
|
+
* @interface IContractWarning
|
|
24596
|
+
* @property {number|Long|null} [warnedAt] ContractWarning warnedAt
|
|
24597
|
+
* @property {org.dash.platform.dapi.v0.IContractModerationReason|null} [reason] ContractWarning reason
|
|
24598
|
+
*/
|
|
24599
|
+
|
|
24600
|
+
/**
|
|
24601
|
+
* Constructs a new ContractWarning.
|
|
24602
|
+
* @memberof org.dash.platform.dapi.v0
|
|
24603
|
+
* @classdesc Represents a ContractWarning.
|
|
24604
|
+
* @implements IContractWarning
|
|
24605
|
+
* @constructor
|
|
24606
|
+
* @param {org.dash.platform.dapi.v0.IContractWarning=} [properties] Properties to set
|
|
24607
|
+
*/
|
|
24608
|
+
function ContractWarning(properties) {
|
|
24609
|
+
if (properties)
|
|
24610
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24611
|
+
if (properties[keys[i]] != null)
|
|
24612
|
+
this[keys[i]] = properties[keys[i]];
|
|
24613
|
+
}
|
|
24614
|
+
|
|
24615
|
+
/**
|
|
24616
|
+
* ContractWarning warnedAt.
|
|
24617
|
+
* @member {number|Long} warnedAt
|
|
24618
|
+
* @memberof org.dash.platform.dapi.v0.ContractWarning
|
|
24619
|
+
* @instance
|
|
24620
|
+
*/
|
|
24621
|
+
ContractWarning.prototype.warnedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
24622
|
+
|
|
24623
|
+
/**
|
|
24624
|
+
* ContractWarning reason.
|
|
24625
|
+
* @member {org.dash.platform.dapi.v0.IContractModerationReason|null|undefined} reason
|
|
24626
|
+
* @memberof org.dash.platform.dapi.v0.ContractWarning
|
|
24627
|
+
* @instance
|
|
24628
|
+
*/
|
|
24629
|
+
ContractWarning.prototype.reason = null;
|
|
24630
|
+
|
|
24631
|
+
/**
|
|
24632
|
+
* Creates a new ContractWarning instance using the specified properties.
|
|
24633
|
+
* @function create
|
|
24634
|
+
* @memberof org.dash.platform.dapi.v0.ContractWarning
|
|
24635
|
+
* @static
|
|
24636
|
+
* @param {org.dash.platform.dapi.v0.IContractWarning=} [properties] Properties to set
|
|
24637
|
+
* @returns {org.dash.platform.dapi.v0.ContractWarning} ContractWarning instance
|
|
24638
|
+
*/
|
|
24639
|
+
ContractWarning.create = function create(properties) {
|
|
24640
|
+
return new ContractWarning(properties);
|
|
24641
|
+
};
|
|
24642
|
+
|
|
24643
|
+
/**
|
|
24644
|
+
* Encodes the specified ContractWarning message. Does not implicitly {@link org.dash.platform.dapi.v0.ContractWarning.verify|verify} messages.
|
|
24645
|
+
* @function encode
|
|
24646
|
+
* @memberof org.dash.platform.dapi.v0.ContractWarning
|
|
24647
|
+
* @static
|
|
24648
|
+
* @param {org.dash.platform.dapi.v0.IContractWarning} message ContractWarning message or plain object to encode
|
|
24649
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24650
|
+
* @returns {$protobuf.Writer} Writer
|
|
24651
|
+
*/
|
|
24652
|
+
ContractWarning.encode = function encode(message, writer) {
|
|
24653
|
+
if (!writer)
|
|
24654
|
+
writer = $Writer.create();
|
|
24655
|
+
if (message.warnedAt != null && Object.hasOwnProperty.call(message, "warnedAt"))
|
|
24656
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.warnedAt);
|
|
24657
|
+
if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
|
|
24658
|
+
$root.org.dash.platform.dapi.v0.ContractModerationReason.encode(message.reason, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
24659
|
+
return writer;
|
|
24660
|
+
};
|
|
24661
|
+
|
|
24662
|
+
/**
|
|
24663
|
+
* Encodes the specified ContractWarning message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.ContractWarning.verify|verify} messages.
|
|
24664
|
+
* @function encodeDelimited
|
|
24665
|
+
* @memberof org.dash.platform.dapi.v0.ContractWarning
|
|
24666
|
+
* @static
|
|
24667
|
+
* @param {org.dash.platform.dapi.v0.IContractWarning} message ContractWarning message or plain object to encode
|
|
24668
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24669
|
+
* @returns {$protobuf.Writer} Writer
|
|
24670
|
+
*/
|
|
24671
|
+
ContractWarning.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24672
|
+
return this.encode(message, writer).ldelim();
|
|
24673
|
+
};
|
|
24674
|
+
|
|
24675
|
+
/**
|
|
24676
|
+
* Decodes a ContractWarning message from the specified reader or buffer.
|
|
24677
|
+
* @function decode
|
|
24678
|
+
* @memberof org.dash.platform.dapi.v0.ContractWarning
|
|
24679
|
+
* @static
|
|
24680
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24681
|
+
* @param {number} [length] Message length if known beforehand
|
|
24682
|
+
* @returns {org.dash.platform.dapi.v0.ContractWarning} ContractWarning
|
|
24683
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24684
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24685
|
+
*/
|
|
24686
|
+
ContractWarning.decode = function decode(reader, length) {
|
|
24181
24687
|
if (!(reader instanceof $Reader))
|
|
24182
24688
|
reader = $Reader.create(reader);
|
|
24183
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.
|
|
24689
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.ContractWarning();
|
|
24184
24690
|
while (reader.pos < end) {
|
|
24185
24691
|
var tag = reader.uint32();
|
|
24186
24692
|
switch (tag >>> 3) {
|
|
24187
24693
|
case 1:
|
|
24188
|
-
message.
|
|
24694
|
+
message.warnedAt = reader.uint64();
|
|
24189
24695
|
break;
|
|
24190
24696
|
case 2:
|
|
24191
|
-
message.
|
|
24697
|
+
message.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.decode(reader, reader.uint32());
|
|
24192
24698
|
break;
|
|
24193
24699
|
default:
|
|
24194
24700
|
reader.skipType(tag & 7);
|
|
@@ -24199,96 +24705,115 @@ $root.org = (function() {
|
|
|
24199
24705
|
};
|
|
24200
24706
|
|
|
24201
24707
|
/**
|
|
24202
|
-
* Decodes a
|
|
24708
|
+
* Decodes a ContractWarning message from the specified reader or buffer, length delimited.
|
|
24203
24709
|
* @function decodeDelimited
|
|
24204
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
24710
|
+
* @memberof org.dash.platform.dapi.v0.ContractWarning
|
|
24205
24711
|
* @static
|
|
24206
24712
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24207
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
24713
|
+
* @returns {org.dash.platform.dapi.v0.ContractWarning} ContractWarning
|
|
24208
24714
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24209
24715
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24210
24716
|
*/
|
|
24211
|
-
|
|
24717
|
+
ContractWarning.decodeDelimited = function decodeDelimited(reader) {
|
|
24212
24718
|
if (!(reader instanceof $Reader))
|
|
24213
24719
|
reader = new $Reader(reader);
|
|
24214
24720
|
return this.decode(reader, reader.uint32());
|
|
24215
24721
|
};
|
|
24216
24722
|
|
|
24217
24723
|
/**
|
|
24218
|
-
* Verifies a
|
|
24724
|
+
* Verifies a ContractWarning message.
|
|
24219
24725
|
* @function verify
|
|
24220
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
24726
|
+
* @memberof org.dash.platform.dapi.v0.ContractWarning
|
|
24221
24727
|
* @static
|
|
24222
24728
|
* @param {Object.<string,*>} message Plain object to verify
|
|
24223
24729
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
24224
24730
|
*/
|
|
24225
|
-
|
|
24731
|
+
ContractWarning.verify = function verify(message) {
|
|
24226
24732
|
if (typeof message !== "object" || message === null)
|
|
24227
24733
|
return "object expected";
|
|
24228
|
-
if (message.
|
|
24229
|
-
if (!$util.isInteger(message.
|
|
24230
|
-
return "
|
|
24231
|
-
if (message.
|
|
24232
|
-
|
|
24233
|
-
|
|
24734
|
+
if (message.warnedAt != null && message.hasOwnProperty("warnedAt"))
|
|
24735
|
+
if (!$util.isInteger(message.warnedAt) && !(message.warnedAt && $util.isInteger(message.warnedAt.low) && $util.isInteger(message.warnedAt.high)))
|
|
24736
|
+
return "warnedAt: integer|Long expected";
|
|
24737
|
+
if (message.reason != null && message.hasOwnProperty("reason")) {
|
|
24738
|
+
var error = $root.org.dash.platform.dapi.v0.ContractModerationReason.verify(message.reason);
|
|
24739
|
+
if (error)
|
|
24740
|
+
return "reason." + error;
|
|
24741
|
+
}
|
|
24234
24742
|
return null;
|
|
24235
24743
|
};
|
|
24236
24744
|
|
|
24237
24745
|
/**
|
|
24238
|
-
* Creates a
|
|
24746
|
+
* Creates a ContractWarning message from a plain object. Also converts values to their respective internal types.
|
|
24239
24747
|
* @function fromObject
|
|
24240
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
24748
|
+
* @memberof org.dash.platform.dapi.v0.ContractWarning
|
|
24241
24749
|
* @static
|
|
24242
24750
|
* @param {Object.<string,*>} object Plain object
|
|
24243
|
-
* @returns {org.dash.platform.dapi.v0.
|
|
24751
|
+
* @returns {org.dash.platform.dapi.v0.ContractWarning} ContractWarning
|
|
24244
24752
|
*/
|
|
24245
|
-
|
|
24246
|
-
if (object instanceof $root.org.dash.platform.dapi.v0.
|
|
24753
|
+
ContractWarning.fromObject = function fromObject(object) {
|
|
24754
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.ContractWarning)
|
|
24247
24755
|
return object;
|
|
24248
|
-
var message = new $root.org.dash.platform.dapi.v0.
|
|
24249
|
-
if (object.
|
|
24250
|
-
|
|
24251
|
-
|
|
24252
|
-
|
|
24756
|
+
var message = new $root.org.dash.platform.dapi.v0.ContractWarning();
|
|
24757
|
+
if (object.warnedAt != null)
|
|
24758
|
+
if ($util.Long)
|
|
24759
|
+
(message.warnedAt = $util.Long.fromValue(object.warnedAt)).unsigned = true;
|
|
24760
|
+
else if (typeof object.warnedAt === "string")
|
|
24761
|
+
message.warnedAt = parseInt(object.warnedAt, 10);
|
|
24762
|
+
else if (typeof object.warnedAt === "number")
|
|
24763
|
+
message.warnedAt = object.warnedAt;
|
|
24764
|
+
else if (typeof object.warnedAt === "object")
|
|
24765
|
+
message.warnedAt = new $util.LongBits(object.warnedAt.low >>> 0, object.warnedAt.high >>> 0).toNumber(true);
|
|
24766
|
+
if (object.reason != null) {
|
|
24767
|
+
if (typeof object.reason !== "object")
|
|
24768
|
+
throw TypeError(".org.dash.platform.dapi.v0.ContractWarning.reason: object expected");
|
|
24769
|
+
message.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.fromObject(object.reason);
|
|
24770
|
+
}
|
|
24253
24771
|
return message;
|
|
24254
24772
|
};
|
|
24255
24773
|
|
|
24256
24774
|
/**
|
|
24257
|
-
* Creates a plain object from a
|
|
24775
|
+
* Creates a plain object from a ContractWarning message. Also converts values to other types if specified.
|
|
24258
24776
|
* @function toObject
|
|
24259
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
24777
|
+
* @memberof org.dash.platform.dapi.v0.ContractWarning
|
|
24260
24778
|
* @static
|
|
24261
|
-
* @param {org.dash.platform.dapi.v0.
|
|
24779
|
+
* @param {org.dash.platform.dapi.v0.ContractWarning} message ContractWarning
|
|
24262
24780
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
24263
24781
|
* @returns {Object.<string,*>} Plain object
|
|
24264
24782
|
*/
|
|
24265
|
-
|
|
24783
|
+
ContractWarning.toObject = function toObject(message, options) {
|
|
24266
24784
|
if (!options)
|
|
24267
24785
|
options = {};
|
|
24268
24786
|
var object = {};
|
|
24269
24787
|
if (options.defaults) {
|
|
24270
|
-
|
|
24271
|
-
|
|
24788
|
+
if ($util.Long) {
|
|
24789
|
+
var long = new $util.Long(0, 0, true);
|
|
24790
|
+
object.warnedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
24791
|
+
} else
|
|
24792
|
+
object.warnedAt = options.longs === String ? "0" : 0;
|
|
24793
|
+
object.reason = null;
|
|
24272
24794
|
}
|
|
24273
|
-
if (message.
|
|
24274
|
-
|
|
24275
|
-
|
|
24276
|
-
|
|
24795
|
+
if (message.warnedAt != null && message.hasOwnProperty("warnedAt"))
|
|
24796
|
+
if (typeof message.warnedAt === "number")
|
|
24797
|
+
object.warnedAt = options.longs === String ? String(message.warnedAt) : message.warnedAt;
|
|
24798
|
+
else
|
|
24799
|
+
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;
|
|
24800
|
+
if (message.reason != null && message.hasOwnProperty("reason"))
|
|
24801
|
+
object.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.toObject(message.reason, options);
|
|
24277
24802
|
return object;
|
|
24278
24803
|
};
|
|
24279
24804
|
|
|
24280
24805
|
/**
|
|
24281
|
-
* Converts this
|
|
24806
|
+
* Converts this ContractWarning to JSON.
|
|
24282
24807
|
* @function toJSON
|
|
24283
|
-
* @memberof org.dash.platform.dapi.v0.
|
|
24808
|
+
* @memberof org.dash.platform.dapi.v0.ContractWarning
|
|
24284
24809
|
* @instance
|
|
24285
24810
|
* @returns {Object.<string,*>} JSON object
|
|
24286
24811
|
*/
|
|
24287
|
-
|
|
24812
|
+
ContractWarning.prototype.toJSON = function toJSON() {
|
|
24288
24813
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
24289
24814
|
};
|
|
24290
24815
|
|
|
24291
|
-
return
|
|
24816
|
+
return ContractWarning;
|
|
24292
24817
|
})();
|
|
24293
24818
|
|
|
24294
24819
|
v0.GetContractModerationStatusRequest = (function() {
|
|
@@ -24699,6 +25224,7 @@ $root.org = (function() {
|
|
|
24699
25224
|
case 0:
|
|
24700
25225
|
case 1:
|
|
24701
25226
|
case 2:
|
|
25227
|
+
case 3:
|
|
24702
25228
|
break;
|
|
24703
25229
|
}
|
|
24704
25230
|
}
|
|
@@ -24749,6 +25275,10 @@ $root.org = (function() {
|
|
|
24749
25275
|
case 2:
|
|
24750
25276
|
message.lists[i] = 2;
|
|
24751
25277
|
break;
|
|
25278
|
+
case "CONTRACT_MODERATION_LIST_WARNINGS":
|
|
25279
|
+
case 3:
|
|
25280
|
+
message.lists[i] = 3;
|
|
25281
|
+
break;
|
|
24752
25282
|
}
|
|
24753
25283
|
}
|
|
24754
25284
|
if (object.prove != null)
|
|
@@ -25038,6 +25568,7 @@ $root.org = (function() {
|
|
|
25038
25568
|
* @property {Array.<org.dash.platform.dapi.v0.ContractModerationList>|null} [lists] ContractModerationStatus lists
|
|
25039
25569
|
* @property {org.dash.platform.dapi.v0.IContractModerationReason|null} [banReason] ContractModerationStatus banReason
|
|
25040
25570
|
* @property {org.dash.platform.dapi.v0.IContractModerationReason|null} [suspensionReason] ContractModerationStatus suspensionReason
|
|
25571
|
+
* @property {Array.<org.dash.platform.dapi.v0.IContractWarning>|null} [warnings] ContractModerationStatus warnings
|
|
25041
25572
|
*/
|
|
25042
25573
|
|
|
25043
25574
|
/**
|
|
@@ -25050,6 +25581,7 @@ $root.org = (function() {
|
|
|
25050
25581
|
*/
|
|
25051
25582
|
function ContractModerationStatus(properties) {
|
|
25052
25583
|
this.lists = [];
|
|
25584
|
+
this.warnings = [];
|
|
25053
25585
|
if (properties)
|
|
25054
25586
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
25055
25587
|
if (properties[keys[i]] != null)
|
|
@@ -25096,6 +25628,14 @@ $root.org = (function() {
|
|
|
25096
25628
|
*/
|
|
25097
25629
|
ContractModerationStatus.prototype.suspensionReason = null;
|
|
25098
25630
|
|
|
25631
|
+
/**
|
|
25632
|
+
* ContractModerationStatus warnings.
|
|
25633
|
+
* @member {Array.<org.dash.platform.dapi.v0.IContractWarning>} warnings
|
|
25634
|
+
* @memberof org.dash.platform.dapi.v0.GetContractModerationStatusResponse.ContractModerationStatus
|
|
25635
|
+
* @instance
|
|
25636
|
+
*/
|
|
25637
|
+
ContractModerationStatus.prototype.warnings = $util.emptyArray;
|
|
25638
|
+
|
|
25099
25639
|
/**
|
|
25100
25640
|
* Creates a new ContractModerationStatus instance using the specified properties.
|
|
25101
25641
|
* @function create
|
|
@@ -25134,6 +25674,9 @@ $root.org = (function() {
|
|
|
25134
25674
|
$root.org.dash.platform.dapi.v0.ContractModerationReason.encode(message.banReason, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
25135
25675
|
if (message.suspensionReason != null && Object.hasOwnProperty.call(message, "suspensionReason"))
|
|
25136
25676
|
$root.org.dash.platform.dapi.v0.ContractModerationReason.encode(message.suspensionReason, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
25677
|
+
if (message.warnings != null && message.warnings.length)
|
|
25678
|
+
for (var i = 0; i < message.warnings.length; ++i)
|
|
25679
|
+
$root.org.dash.platform.dapi.v0.ContractWarning.encode(message.warnings[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
25137
25680
|
return writer;
|
|
25138
25681
|
};
|
|
25139
25682
|
|
|
@@ -25190,6 +25733,11 @@ $root.org = (function() {
|
|
|
25190
25733
|
case 5:
|
|
25191
25734
|
message.suspensionReason = $root.org.dash.platform.dapi.v0.ContractModerationReason.decode(reader, reader.uint32());
|
|
25192
25735
|
break;
|
|
25736
|
+
case 6:
|
|
25737
|
+
if (!(message.warnings && message.warnings.length))
|
|
25738
|
+
message.warnings = [];
|
|
25739
|
+
message.warnings.push($root.org.dash.platform.dapi.v0.ContractWarning.decode(reader, reader.uint32()));
|
|
25740
|
+
break;
|
|
25193
25741
|
default:
|
|
25194
25742
|
reader.skipType(tag & 7);
|
|
25195
25743
|
break;
|
|
@@ -25241,6 +25789,7 @@ $root.org = (function() {
|
|
|
25241
25789
|
case 0:
|
|
25242
25790
|
case 1:
|
|
25243
25791
|
case 2:
|
|
25792
|
+
case 3:
|
|
25244
25793
|
break;
|
|
25245
25794
|
}
|
|
25246
25795
|
}
|
|
@@ -25254,6 +25803,15 @@ $root.org = (function() {
|
|
|
25254
25803
|
if (error)
|
|
25255
25804
|
return "suspensionReason." + error;
|
|
25256
25805
|
}
|
|
25806
|
+
if (message.warnings != null && message.hasOwnProperty("warnings")) {
|
|
25807
|
+
if (!Array.isArray(message.warnings))
|
|
25808
|
+
return "warnings: array expected";
|
|
25809
|
+
for (var i = 0; i < message.warnings.length; ++i) {
|
|
25810
|
+
var error = $root.org.dash.platform.dapi.v0.ContractWarning.verify(message.warnings[i]);
|
|
25811
|
+
if (error)
|
|
25812
|
+
return "warnings." + error;
|
|
25813
|
+
}
|
|
25814
|
+
}
|
|
25257
25815
|
return null;
|
|
25258
25816
|
};
|
|
25259
25817
|
|
|
@@ -25299,6 +25857,10 @@ $root.org = (function() {
|
|
|
25299
25857
|
case 2:
|
|
25300
25858
|
message.lists[i] = 2;
|
|
25301
25859
|
break;
|
|
25860
|
+
case "CONTRACT_MODERATION_LIST_WARNINGS":
|
|
25861
|
+
case 3:
|
|
25862
|
+
message.lists[i] = 3;
|
|
25863
|
+
break;
|
|
25302
25864
|
}
|
|
25303
25865
|
}
|
|
25304
25866
|
if (object.banReason != null) {
|
|
@@ -25311,6 +25873,16 @@ $root.org = (function() {
|
|
|
25311
25873
|
throw TypeError(".org.dash.platform.dapi.v0.GetContractModerationStatusResponse.ContractModerationStatus.suspensionReason: object expected");
|
|
25312
25874
|
message.suspensionReason = $root.org.dash.platform.dapi.v0.ContractModerationReason.fromObject(object.suspensionReason);
|
|
25313
25875
|
}
|
|
25876
|
+
if (object.warnings) {
|
|
25877
|
+
if (!Array.isArray(object.warnings))
|
|
25878
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetContractModerationStatusResponse.ContractModerationStatus.warnings: array expected");
|
|
25879
|
+
message.warnings = [];
|
|
25880
|
+
for (var i = 0; i < object.warnings.length; ++i) {
|
|
25881
|
+
if (typeof object.warnings[i] !== "object")
|
|
25882
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetContractModerationStatusResponse.ContractModerationStatus.warnings: object expected");
|
|
25883
|
+
message.warnings[i] = $root.org.dash.platform.dapi.v0.ContractWarning.fromObject(object.warnings[i]);
|
|
25884
|
+
}
|
|
25885
|
+
}
|
|
25314
25886
|
return message;
|
|
25315
25887
|
};
|
|
25316
25888
|
|
|
@@ -25327,8 +25899,10 @@ $root.org = (function() {
|
|
|
25327
25899
|
if (!options)
|
|
25328
25900
|
options = {};
|
|
25329
25901
|
var object = {};
|
|
25330
|
-
if (options.arrays || options.defaults)
|
|
25902
|
+
if (options.arrays || options.defaults) {
|
|
25331
25903
|
object.lists = [];
|
|
25904
|
+
object.warnings = [];
|
|
25905
|
+
}
|
|
25332
25906
|
if (options.defaults) {
|
|
25333
25907
|
object.banned = false;
|
|
25334
25908
|
if ($util.Long) {
|
|
@@ -25355,6 +25929,11 @@ $root.org = (function() {
|
|
|
25355
25929
|
object.banReason = $root.org.dash.platform.dapi.v0.ContractModerationReason.toObject(message.banReason, options);
|
|
25356
25930
|
if (message.suspensionReason != null && message.hasOwnProperty("suspensionReason"))
|
|
25357
25931
|
object.suspensionReason = $root.org.dash.platform.dapi.v0.ContractModerationReason.toObject(message.suspensionReason, options);
|
|
25932
|
+
if (message.warnings && message.warnings.length) {
|
|
25933
|
+
object.warnings = [];
|
|
25934
|
+
for (var j = 0; j < message.warnings.length; ++j)
|
|
25935
|
+
object.warnings[j] = $root.org.dash.platform.dapi.v0.ContractWarning.toObject(message.warnings[j], options);
|
|
25936
|
+
}
|
|
25358
25937
|
return object;
|
|
25359
25938
|
};
|
|
25360
25939
|
|
|
@@ -26052,6 +26631,7 @@ $root.org = (function() {
|
|
|
26052
26631
|
case 0:
|
|
26053
26632
|
case 1:
|
|
26054
26633
|
case 2:
|
|
26634
|
+
case 3:
|
|
26055
26635
|
break;
|
|
26056
26636
|
}
|
|
26057
26637
|
if (message.startAfter != null && message.hasOwnProperty("startAfter"))
|
|
@@ -26096,6 +26676,10 @@ $root.org = (function() {
|
|
|
26096
26676
|
case 2:
|
|
26097
26677
|
message.list = 2;
|
|
26098
26678
|
break;
|
|
26679
|
+
case "CONTRACT_MODERATION_LIST_WARNINGS":
|
|
26680
|
+
case 3:
|
|
26681
|
+
message.list = 3;
|
|
26682
|
+
break;
|
|
26099
26683
|
}
|
|
26100
26684
|
if (object.startAfter != null)
|
|
26101
26685
|
if (typeof object.startAfter === "string")
|
|
@@ -26388,6 +26972,7 @@ $root.org = (function() {
|
|
|
26388
26972
|
* @property {Uint8Array|null} [identityId] ContractModerationEntry identityId
|
|
26389
26973
|
* @property {number|Long|null} [until] ContractModerationEntry until
|
|
26390
26974
|
* @property {org.dash.platform.dapi.v0.IContractModerationReason|null} [reason] ContractModerationEntry reason
|
|
26975
|
+
* @property {Array.<org.dash.platform.dapi.v0.IContractWarning>|null} [warnings] ContractModerationEntry warnings
|
|
26391
26976
|
*/
|
|
26392
26977
|
|
|
26393
26978
|
/**
|
|
@@ -26399,6 +26984,7 @@ $root.org = (function() {
|
|
|
26399
26984
|
* @param {org.dash.platform.dapi.v0.GetContractModerationEntriesResponse.IContractModerationEntry=} [properties] Properties to set
|
|
26400
26985
|
*/
|
|
26401
26986
|
function ContractModerationEntry(properties) {
|
|
26987
|
+
this.warnings = [];
|
|
26402
26988
|
if (properties)
|
|
26403
26989
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
26404
26990
|
if (properties[keys[i]] != null)
|
|
@@ -26429,6 +27015,14 @@ $root.org = (function() {
|
|
|
26429
27015
|
*/
|
|
26430
27016
|
ContractModerationEntry.prototype.reason = null;
|
|
26431
27017
|
|
|
27018
|
+
/**
|
|
27019
|
+
* ContractModerationEntry warnings.
|
|
27020
|
+
* @member {Array.<org.dash.platform.dapi.v0.IContractWarning>} warnings
|
|
27021
|
+
* @memberof org.dash.platform.dapi.v0.GetContractModerationEntriesResponse.ContractModerationEntry
|
|
27022
|
+
* @instance
|
|
27023
|
+
*/
|
|
27024
|
+
ContractModerationEntry.prototype.warnings = $util.emptyArray;
|
|
27025
|
+
|
|
26432
27026
|
/**
|
|
26433
27027
|
* Creates a new ContractModerationEntry instance using the specified properties.
|
|
26434
27028
|
* @function create
|
|
@@ -26459,6 +27053,9 @@ $root.org = (function() {
|
|
|
26459
27053
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.until);
|
|
26460
27054
|
if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
|
|
26461
27055
|
$root.org.dash.platform.dapi.v0.ContractModerationReason.encode(message.reason, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
27056
|
+
if (message.warnings != null && message.warnings.length)
|
|
27057
|
+
for (var i = 0; i < message.warnings.length; ++i)
|
|
27058
|
+
$root.org.dash.platform.dapi.v0.ContractWarning.encode(message.warnings[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
26462
27059
|
return writer;
|
|
26463
27060
|
};
|
|
26464
27061
|
|
|
@@ -26502,6 +27099,11 @@ $root.org = (function() {
|
|
|
26502
27099
|
case 3:
|
|
26503
27100
|
message.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.decode(reader, reader.uint32());
|
|
26504
27101
|
break;
|
|
27102
|
+
case 4:
|
|
27103
|
+
if (!(message.warnings && message.warnings.length))
|
|
27104
|
+
message.warnings = [];
|
|
27105
|
+
message.warnings.push($root.org.dash.platform.dapi.v0.ContractWarning.decode(reader, reader.uint32()));
|
|
27106
|
+
break;
|
|
26505
27107
|
default:
|
|
26506
27108
|
reader.skipType(tag & 7);
|
|
26507
27109
|
break;
|
|
@@ -26548,6 +27150,15 @@ $root.org = (function() {
|
|
|
26548
27150
|
if (error)
|
|
26549
27151
|
return "reason." + error;
|
|
26550
27152
|
}
|
|
27153
|
+
if (message.warnings != null && message.hasOwnProperty("warnings")) {
|
|
27154
|
+
if (!Array.isArray(message.warnings))
|
|
27155
|
+
return "warnings: array expected";
|
|
27156
|
+
for (var i = 0; i < message.warnings.length; ++i) {
|
|
27157
|
+
var error = $root.org.dash.platform.dapi.v0.ContractWarning.verify(message.warnings[i]);
|
|
27158
|
+
if (error)
|
|
27159
|
+
return "warnings." + error;
|
|
27160
|
+
}
|
|
27161
|
+
}
|
|
26551
27162
|
return null;
|
|
26552
27163
|
};
|
|
26553
27164
|
|
|
@@ -26582,6 +27193,16 @@ $root.org = (function() {
|
|
|
26582
27193
|
throw TypeError(".org.dash.platform.dapi.v0.GetContractModerationEntriesResponse.ContractModerationEntry.reason: object expected");
|
|
26583
27194
|
message.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.fromObject(object.reason);
|
|
26584
27195
|
}
|
|
27196
|
+
if (object.warnings) {
|
|
27197
|
+
if (!Array.isArray(object.warnings))
|
|
27198
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetContractModerationEntriesResponse.ContractModerationEntry.warnings: array expected");
|
|
27199
|
+
message.warnings = [];
|
|
27200
|
+
for (var i = 0; i < object.warnings.length; ++i) {
|
|
27201
|
+
if (typeof object.warnings[i] !== "object")
|
|
27202
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetContractModerationEntriesResponse.ContractModerationEntry.warnings: object expected");
|
|
27203
|
+
message.warnings[i] = $root.org.dash.platform.dapi.v0.ContractWarning.fromObject(object.warnings[i]);
|
|
27204
|
+
}
|
|
27205
|
+
}
|
|
26585
27206
|
return message;
|
|
26586
27207
|
};
|
|
26587
27208
|
|
|
@@ -26598,6 +27219,8 @@ $root.org = (function() {
|
|
|
26598
27219
|
if (!options)
|
|
26599
27220
|
options = {};
|
|
26600
27221
|
var object = {};
|
|
27222
|
+
if (options.arrays || options.defaults)
|
|
27223
|
+
object.warnings = [];
|
|
26601
27224
|
if (options.defaults) {
|
|
26602
27225
|
if (options.bytes === String)
|
|
26603
27226
|
object.identityId = "";
|
|
@@ -26622,6 +27245,11 @@ $root.org = (function() {
|
|
|
26622
27245
|
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;
|
|
26623
27246
|
if (message.reason != null && message.hasOwnProperty("reason"))
|
|
26624
27247
|
object.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.toObject(message.reason, options);
|
|
27248
|
+
if (message.warnings && message.warnings.length) {
|
|
27249
|
+
object.warnings = [];
|
|
27250
|
+
for (var j = 0; j < message.warnings.length; ++j)
|
|
27251
|
+
object.warnings[j] = $root.org.dash.platform.dapi.v0.ContractWarning.toObject(message.warnings[j], options);
|
|
27252
|
+
}
|
|
26625
27253
|
return object;
|
|
26626
27254
|
};
|
|
26627
27255
|
|
|
@@ -28237,57 +28865,290 @@ $root.org = (function() {
|
|
|
28237
28865
|
return null;
|
|
28238
28866
|
};
|
|
28239
28867
|
|
|
28240
|
-
/**
|
|
28241
|
-
* Creates a GetContractDocumentRemovalsResponse message from a plain object. Also converts values to their respective internal types.
|
|
28242
|
-
* @function fromObject
|
|
28243
|
-
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse
|
|
28244
|
-
* @static
|
|
28245
|
-
* @param {Object.<string,*>} object Plain object
|
|
28246
|
-
* @returns {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse} GetContractDocumentRemovalsResponse
|
|
28247
|
-
*/
|
|
28248
|
-
GetContractDocumentRemovalsResponse.fromObject = function fromObject(object) {
|
|
28249
|
-
if (object instanceof $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse)
|
|
28868
|
+
/**
|
|
28869
|
+
* Creates a GetContractDocumentRemovalsResponse message from a plain object. Also converts values to their respective internal types.
|
|
28870
|
+
* @function fromObject
|
|
28871
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse
|
|
28872
|
+
* @static
|
|
28873
|
+
* @param {Object.<string,*>} object Plain object
|
|
28874
|
+
* @returns {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse} GetContractDocumentRemovalsResponse
|
|
28875
|
+
*/
|
|
28876
|
+
GetContractDocumentRemovalsResponse.fromObject = function fromObject(object) {
|
|
28877
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse)
|
|
28878
|
+
return object;
|
|
28879
|
+
var message = new $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse();
|
|
28880
|
+
if (object.v0 != null) {
|
|
28881
|
+
if (typeof object.v0 !== "object")
|
|
28882
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.v0: object expected");
|
|
28883
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.GetContractDocumentRemovalsResponseV0.fromObject(object.v0);
|
|
28884
|
+
}
|
|
28885
|
+
return message;
|
|
28886
|
+
};
|
|
28887
|
+
|
|
28888
|
+
/**
|
|
28889
|
+
* Creates a plain object from a GetContractDocumentRemovalsResponse message. Also converts values to other types if specified.
|
|
28890
|
+
* @function toObject
|
|
28891
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse
|
|
28892
|
+
* @static
|
|
28893
|
+
* @param {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse} message GetContractDocumentRemovalsResponse
|
|
28894
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
28895
|
+
* @returns {Object.<string,*>} Plain object
|
|
28896
|
+
*/
|
|
28897
|
+
GetContractDocumentRemovalsResponse.toObject = function toObject(message, options) {
|
|
28898
|
+
if (!options)
|
|
28899
|
+
options = {};
|
|
28900
|
+
var object = {};
|
|
28901
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
28902
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.GetContractDocumentRemovalsResponseV0.toObject(message.v0, options);
|
|
28903
|
+
if (options.oneofs)
|
|
28904
|
+
object.version = "v0";
|
|
28905
|
+
}
|
|
28906
|
+
return object;
|
|
28907
|
+
};
|
|
28908
|
+
|
|
28909
|
+
/**
|
|
28910
|
+
* Converts this GetContractDocumentRemovalsResponse to JSON.
|
|
28911
|
+
* @function toJSON
|
|
28912
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse
|
|
28913
|
+
* @instance
|
|
28914
|
+
* @returns {Object.<string,*>} JSON object
|
|
28915
|
+
*/
|
|
28916
|
+
GetContractDocumentRemovalsResponse.prototype.toJSON = function toJSON() {
|
|
28917
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
28918
|
+
};
|
|
28919
|
+
|
|
28920
|
+
GetContractDocumentRemovalsResponse.ContractDocumentRestoration = (function() {
|
|
28921
|
+
|
|
28922
|
+
/**
|
|
28923
|
+
* Properties of a ContractDocumentRestoration.
|
|
28924
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse
|
|
28925
|
+
* @interface IContractDocumentRestoration
|
|
28926
|
+
* @property {Uint8Array|null} [moderatorId] ContractDocumentRestoration moderatorId
|
|
28927
|
+
* @property {number|Long|null} [restoredAt] ContractDocumentRestoration restoredAt
|
|
28928
|
+
*/
|
|
28929
|
+
|
|
28930
|
+
/**
|
|
28931
|
+
* Constructs a new ContractDocumentRestoration.
|
|
28932
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse
|
|
28933
|
+
* @classdesc Represents a ContractDocumentRestoration.
|
|
28934
|
+
* @implements IContractDocumentRestoration
|
|
28935
|
+
* @constructor
|
|
28936
|
+
* @param {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.IContractDocumentRestoration=} [properties] Properties to set
|
|
28937
|
+
*/
|
|
28938
|
+
function ContractDocumentRestoration(properties) {
|
|
28939
|
+
if (properties)
|
|
28940
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28941
|
+
if (properties[keys[i]] != null)
|
|
28942
|
+
this[keys[i]] = properties[keys[i]];
|
|
28943
|
+
}
|
|
28944
|
+
|
|
28945
|
+
/**
|
|
28946
|
+
* ContractDocumentRestoration moderatorId.
|
|
28947
|
+
* @member {Uint8Array} moderatorId
|
|
28948
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
|
|
28949
|
+
* @instance
|
|
28950
|
+
*/
|
|
28951
|
+
ContractDocumentRestoration.prototype.moderatorId = $util.newBuffer([]);
|
|
28952
|
+
|
|
28953
|
+
/**
|
|
28954
|
+
* ContractDocumentRestoration restoredAt.
|
|
28955
|
+
* @member {number|Long} restoredAt
|
|
28956
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
|
|
28957
|
+
* @instance
|
|
28958
|
+
*/
|
|
28959
|
+
ContractDocumentRestoration.prototype.restoredAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
28960
|
+
|
|
28961
|
+
/**
|
|
28962
|
+
* Creates a new ContractDocumentRestoration instance using the specified properties.
|
|
28963
|
+
* @function create
|
|
28964
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
|
|
28965
|
+
* @static
|
|
28966
|
+
* @param {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.IContractDocumentRestoration=} [properties] Properties to set
|
|
28967
|
+
* @returns {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration} ContractDocumentRestoration instance
|
|
28968
|
+
*/
|
|
28969
|
+
ContractDocumentRestoration.create = function create(properties) {
|
|
28970
|
+
return new ContractDocumentRestoration(properties);
|
|
28971
|
+
};
|
|
28972
|
+
|
|
28973
|
+
/**
|
|
28974
|
+
* Encodes the specified ContractDocumentRestoration message. Does not implicitly {@link org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration.verify|verify} messages.
|
|
28975
|
+
* @function encode
|
|
28976
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
|
|
28977
|
+
* @static
|
|
28978
|
+
* @param {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.IContractDocumentRestoration} message ContractDocumentRestoration message or plain object to encode
|
|
28979
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28980
|
+
* @returns {$protobuf.Writer} Writer
|
|
28981
|
+
*/
|
|
28982
|
+
ContractDocumentRestoration.encode = function encode(message, writer) {
|
|
28983
|
+
if (!writer)
|
|
28984
|
+
writer = $Writer.create();
|
|
28985
|
+
if (message.moderatorId != null && Object.hasOwnProperty.call(message, "moderatorId"))
|
|
28986
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.moderatorId);
|
|
28987
|
+
if (message.restoredAt != null && Object.hasOwnProperty.call(message, "restoredAt"))
|
|
28988
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.restoredAt);
|
|
28989
|
+
return writer;
|
|
28990
|
+
};
|
|
28991
|
+
|
|
28992
|
+
/**
|
|
28993
|
+
* Encodes the specified ContractDocumentRestoration message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration.verify|verify} messages.
|
|
28994
|
+
* @function encodeDelimited
|
|
28995
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
|
|
28996
|
+
* @static
|
|
28997
|
+
* @param {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.IContractDocumentRestoration} message ContractDocumentRestoration message or plain object to encode
|
|
28998
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28999
|
+
* @returns {$protobuf.Writer} Writer
|
|
29000
|
+
*/
|
|
29001
|
+
ContractDocumentRestoration.encodeDelimited = function encodeDelimited(message, writer) {
|
|
29002
|
+
return this.encode(message, writer).ldelim();
|
|
29003
|
+
};
|
|
29004
|
+
|
|
29005
|
+
/**
|
|
29006
|
+
* Decodes a ContractDocumentRestoration message from the specified reader or buffer.
|
|
29007
|
+
* @function decode
|
|
29008
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
|
|
29009
|
+
* @static
|
|
29010
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29011
|
+
* @param {number} [length] Message length if known beforehand
|
|
29012
|
+
* @returns {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration} ContractDocumentRestoration
|
|
29013
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29014
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29015
|
+
*/
|
|
29016
|
+
ContractDocumentRestoration.decode = function decode(reader, length) {
|
|
29017
|
+
if (!(reader instanceof $Reader))
|
|
29018
|
+
reader = $Reader.create(reader);
|
|
29019
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration();
|
|
29020
|
+
while (reader.pos < end) {
|
|
29021
|
+
var tag = reader.uint32();
|
|
29022
|
+
switch (tag >>> 3) {
|
|
29023
|
+
case 1:
|
|
29024
|
+
message.moderatorId = reader.bytes();
|
|
29025
|
+
break;
|
|
29026
|
+
case 2:
|
|
29027
|
+
message.restoredAt = reader.uint64();
|
|
29028
|
+
break;
|
|
29029
|
+
default:
|
|
29030
|
+
reader.skipType(tag & 7);
|
|
29031
|
+
break;
|
|
29032
|
+
}
|
|
29033
|
+
}
|
|
29034
|
+
return message;
|
|
29035
|
+
};
|
|
29036
|
+
|
|
29037
|
+
/**
|
|
29038
|
+
* Decodes a ContractDocumentRestoration message from the specified reader or buffer, length delimited.
|
|
29039
|
+
* @function decodeDelimited
|
|
29040
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
|
|
29041
|
+
* @static
|
|
29042
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29043
|
+
* @returns {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration} ContractDocumentRestoration
|
|
29044
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29045
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29046
|
+
*/
|
|
29047
|
+
ContractDocumentRestoration.decodeDelimited = function decodeDelimited(reader) {
|
|
29048
|
+
if (!(reader instanceof $Reader))
|
|
29049
|
+
reader = new $Reader(reader);
|
|
29050
|
+
return this.decode(reader, reader.uint32());
|
|
29051
|
+
};
|
|
29052
|
+
|
|
29053
|
+
/**
|
|
29054
|
+
* Verifies a ContractDocumentRestoration message.
|
|
29055
|
+
* @function verify
|
|
29056
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
|
|
29057
|
+
* @static
|
|
29058
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
29059
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
29060
|
+
*/
|
|
29061
|
+
ContractDocumentRestoration.verify = function verify(message) {
|
|
29062
|
+
if (typeof message !== "object" || message === null)
|
|
29063
|
+
return "object expected";
|
|
29064
|
+
if (message.moderatorId != null && message.hasOwnProperty("moderatorId"))
|
|
29065
|
+
if (!(message.moderatorId && typeof message.moderatorId.length === "number" || $util.isString(message.moderatorId)))
|
|
29066
|
+
return "moderatorId: buffer expected";
|
|
29067
|
+
if (message.restoredAt != null && message.hasOwnProperty("restoredAt"))
|
|
29068
|
+
if (!$util.isInteger(message.restoredAt) && !(message.restoredAt && $util.isInteger(message.restoredAt.low) && $util.isInteger(message.restoredAt.high)))
|
|
29069
|
+
return "restoredAt: integer|Long expected";
|
|
29070
|
+
return null;
|
|
29071
|
+
};
|
|
29072
|
+
|
|
29073
|
+
/**
|
|
29074
|
+
* Creates a ContractDocumentRestoration message from a plain object. Also converts values to their respective internal types.
|
|
29075
|
+
* @function fromObject
|
|
29076
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
|
|
29077
|
+
* @static
|
|
29078
|
+
* @param {Object.<string,*>} object Plain object
|
|
29079
|
+
* @returns {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration} ContractDocumentRestoration
|
|
29080
|
+
*/
|
|
29081
|
+
ContractDocumentRestoration.fromObject = function fromObject(object) {
|
|
29082
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration)
|
|
29083
|
+
return object;
|
|
29084
|
+
var message = new $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration();
|
|
29085
|
+
if (object.moderatorId != null)
|
|
29086
|
+
if (typeof object.moderatorId === "string")
|
|
29087
|
+
$util.base64.decode(object.moderatorId, message.moderatorId = $util.newBuffer($util.base64.length(object.moderatorId)), 0);
|
|
29088
|
+
else if (object.moderatorId.length >= 0)
|
|
29089
|
+
message.moderatorId = object.moderatorId;
|
|
29090
|
+
if (object.restoredAt != null)
|
|
29091
|
+
if ($util.Long)
|
|
29092
|
+
(message.restoredAt = $util.Long.fromValue(object.restoredAt)).unsigned = true;
|
|
29093
|
+
else if (typeof object.restoredAt === "string")
|
|
29094
|
+
message.restoredAt = parseInt(object.restoredAt, 10);
|
|
29095
|
+
else if (typeof object.restoredAt === "number")
|
|
29096
|
+
message.restoredAt = object.restoredAt;
|
|
29097
|
+
else if (typeof object.restoredAt === "object")
|
|
29098
|
+
message.restoredAt = new $util.LongBits(object.restoredAt.low >>> 0, object.restoredAt.high >>> 0).toNumber(true);
|
|
29099
|
+
return message;
|
|
29100
|
+
};
|
|
29101
|
+
|
|
29102
|
+
/**
|
|
29103
|
+
* Creates a plain object from a ContractDocumentRestoration message. Also converts values to other types if specified.
|
|
29104
|
+
* @function toObject
|
|
29105
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
|
|
29106
|
+
* @static
|
|
29107
|
+
* @param {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration} message ContractDocumentRestoration
|
|
29108
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
29109
|
+
* @returns {Object.<string,*>} Plain object
|
|
29110
|
+
*/
|
|
29111
|
+
ContractDocumentRestoration.toObject = function toObject(message, options) {
|
|
29112
|
+
if (!options)
|
|
29113
|
+
options = {};
|
|
29114
|
+
var object = {};
|
|
29115
|
+
if (options.defaults) {
|
|
29116
|
+
if (options.bytes === String)
|
|
29117
|
+
object.moderatorId = "";
|
|
29118
|
+
else {
|
|
29119
|
+
object.moderatorId = [];
|
|
29120
|
+
if (options.bytes !== Array)
|
|
29121
|
+
object.moderatorId = $util.newBuffer(object.moderatorId);
|
|
29122
|
+
}
|
|
29123
|
+
if ($util.Long) {
|
|
29124
|
+
var long = new $util.Long(0, 0, true);
|
|
29125
|
+
object.restoredAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
29126
|
+
} else
|
|
29127
|
+
object.restoredAt = options.longs === String ? "0" : 0;
|
|
29128
|
+
}
|
|
29129
|
+
if (message.moderatorId != null && message.hasOwnProperty("moderatorId"))
|
|
29130
|
+
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;
|
|
29131
|
+
if (message.restoredAt != null && message.hasOwnProperty("restoredAt"))
|
|
29132
|
+
if (typeof message.restoredAt === "number")
|
|
29133
|
+
object.restoredAt = options.longs === String ? String(message.restoredAt) : message.restoredAt;
|
|
29134
|
+
else
|
|
29135
|
+
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;
|
|
28250
29136
|
return object;
|
|
28251
|
-
|
|
28252
|
-
if (object.v0 != null) {
|
|
28253
|
-
if (typeof object.v0 !== "object")
|
|
28254
|
-
throw TypeError(".org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.v0: object expected");
|
|
28255
|
-
message.v0 = $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.GetContractDocumentRemovalsResponseV0.fromObject(object.v0);
|
|
28256
|
-
}
|
|
28257
|
-
return message;
|
|
28258
|
-
};
|
|
29137
|
+
};
|
|
28259
29138
|
|
|
28260
|
-
|
|
28261
|
-
|
|
28262
|
-
|
|
28263
|
-
|
|
28264
|
-
|
|
28265
|
-
|
|
28266
|
-
|
|
28267
|
-
|
|
28268
|
-
|
|
28269
|
-
|
|
28270
|
-
if (!options)
|
|
28271
|
-
options = {};
|
|
28272
|
-
var object = {};
|
|
28273
|
-
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
28274
|
-
object.v0 = $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.GetContractDocumentRemovalsResponseV0.toObject(message.v0, options);
|
|
28275
|
-
if (options.oneofs)
|
|
28276
|
-
object.version = "v0";
|
|
28277
|
-
}
|
|
28278
|
-
return object;
|
|
28279
|
-
};
|
|
29139
|
+
/**
|
|
29140
|
+
* Converts this ContractDocumentRestoration to JSON.
|
|
29141
|
+
* @function toJSON
|
|
29142
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration
|
|
29143
|
+
* @instance
|
|
29144
|
+
* @returns {Object.<string,*>} JSON object
|
|
29145
|
+
*/
|
|
29146
|
+
ContractDocumentRestoration.prototype.toJSON = function toJSON() {
|
|
29147
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
29148
|
+
};
|
|
28280
29149
|
|
|
28281
|
-
|
|
28282
|
-
|
|
28283
|
-
* @function toJSON
|
|
28284
|
-
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse
|
|
28285
|
-
* @instance
|
|
28286
|
-
* @returns {Object.<string,*>} JSON object
|
|
28287
|
-
*/
|
|
28288
|
-
GetContractDocumentRemovalsResponse.prototype.toJSON = function toJSON() {
|
|
28289
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
28290
|
-
};
|
|
29150
|
+
return ContractDocumentRestoration;
|
|
29151
|
+
})();
|
|
28291
29152
|
|
|
28292
29153
|
GetContractDocumentRemovalsResponse.ContractDocumentRemoval = (function() {
|
|
28293
29154
|
|
|
@@ -28300,6 +29161,8 @@ $root.org = (function() {
|
|
|
28300
29161
|
* @property {Uint8Array|null} [moderatorId] ContractDocumentRemoval moderatorId
|
|
28301
29162
|
* @property {number|Long|null} [removedAt] ContractDocumentRemoval removedAt
|
|
28302
29163
|
* @property {org.dash.platform.dapi.v0.IContractModerationReason|null} [reason] ContractDocumentRemoval reason
|
|
29164
|
+
* @property {Uint8Array|null} [documentHash] ContractDocumentRemoval documentHash
|
|
29165
|
+
* @property {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.IContractDocumentRestoration|null} [restoration] ContractDocumentRemoval restoration
|
|
28303
29166
|
*/
|
|
28304
29167
|
|
|
28305
29168
|
/**
|
|
@@ -28357,6 +29220,22 @@ $root.org = (function() {
|
|
|
28357
29220
|
*/
|
|
28358
29221
|
ContractDocumentRemoval.prototype.reason = null;
|
|
28359
29222
|
|
|
29223
|
+
/**
|
|
29224
|
+
* ContractDocumentRemoval documentHash.
|
|
29225
|
+
* @member {Uint8Array} documentHash
|
|
29226
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRemoval
|
|
29227
|
+
* @instance
|
|
29228
|
+
*/
|
|
29229
|
+
ContractDocumentRemoval.prototype.documentHash = $util.newBuffer([]);
|
|
29230
|
+
|
|
29231
|
+
/**
|
|
29232
|
+
* ContractDocumentRemoval restoration.
|
|
29233
|
+
* @member {org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.IContractDocumentRestoration|null|undefined} restoration
|
|
29234
|
+
* @memberof org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRemoval
|
|
29235
|
+
* @instance
|
|
29236
|
+
*/
|
|
29237
|
+
ContractDocumentRemoval.prototype.restoration = null;
|
|
29238
|
+
|
|
28360
29239
|
/**
|
|
28361
29240
|
* Creates a new ContractDocumentRemoval instance using the specified properties.
|
|
28362
29241
|
* @function create
|
|
@@ -28391,6 +29270,10 @@ $root.org = (function() {
|
|
|
28391
29270
|
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.removedAt);
|
|
28392
29271
|
if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
|
|
28393
29272
|
$root.org.dash.platform.dapi.v0.ContractModerationReason.encode(message.reason, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
29273
|
+
if (message.documentHash != null && Object.hasOwnProperty.call(message, "documentHash"))
|
|
29274
|
+
writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.documentHash);
|
|
29275
|
+
if (message.restoration != null && Object.hasOwnProperty.call(message, "restoration"))
|
|
29276
|
+
$root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration.encode(message.restoration, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
28394
29277
|
return writer;
|
|
28395
29278
|
};
|
|
28396
29279
|
|
|
@@ -28440,6 +29323,12 @@ $root.org = (function() {
|
|
|
28440
29323
|
case 5:
|
|
28441
29324
|
message.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.decode(reader, reader.uint32());
|
|
28442
29325
|
break;
|
|
29326
|
+
case 6:
|
|
29327
|
+
message.documentHash = reader.bytes();
|
|
29328
|
+
break;
|
|
29329
|
+
case 7:
|
|
29330
|
+
message.restoration = $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration.decode(reader, reader.uint32());
|
|
29331
|
+
break;
|
|
28443
29332
|
default:
|
|
28444
29333
|
reader.skipType(tag & 7);
|
|
28445
29334
|
break;
|
|
@@ -28492,6 +29381,14 @@ $root.org = (function() {
|
|
|
28492
29381
|
if (error)
|
|
28493
29382
|
return "reason." + error;
|
|
28494
29383
|
}
|
|
29384
|
+
if (message.documentHash != null && message.hasOwnProperty("documentHash"))
|
|
29385
|
+
if (!(message.documentHash && typeof message.documentHash.length === "number" || $util.isString(message.documentHash)))
|
|
29386
|
+
return "documentHash: buffer expected";
|
|
29387
|
+
if (message.restoration != null && message.hasOwnProperty("restoration")) {
|
|
29388
|
+
var error = $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration.verify(message.restoration);
|
|
29389
|
+
if (error)
|
|
29390
|
+
return "restoration." + error;
|
|
29391
|
+
}
|
|
28495
29392
|
return null;
|
|
28496
29393
|
};
|
|
28497
29394
|
|
|
@@ -28536,6 +29433,16 @@ $root.org = (function() {
|
|
|
28536
29433
|
throw TypeError(".org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRemoval.reason: object expected");
|
|
28537
29434
|
message.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.fromObject(object.reason);
|
|
28538
29435
|
}
|
|
29436
|
+
if (object.documentHash != null)
|
|
29437
|
+
if (typeof object.documentHash === "string")
|
|
29438
|
+
$util.base64.decode(object.documentHash, message.documentHash = $util.newBuffer($util.base64.length(object.documentHash)), 0);
|
|
29439
|
+
else if (object.documentHash.length >= 0)
|
|
29440
|
+
message.documentHash = object.documentHash;
|
|
29441
|
+
if (object.restoration != null) {
|
|
29442
|
+
if (typeof object.restoration !== "object")
|
|
29443
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRemoval.restoration: object expected");
|
|
29444
|
+
message.restoration = $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration.fromObject(object.restoration);
|
|
29445
|
+
}
|
|
28539
29446
|
return message;
|
|
28540
29447
|
};
|
|
28541
29448
|
|
|
@@ -28580,6 +29487,14 @@ $root.org = (function() {
|
|
|
28580
29487
|
} else
|
|
28581
29488
|
object.removedAt = options.longs === String ? "0" : 0;
|
|
28582
29489
|
object.reason = null;
|
|
29490
|
+
if (options.bytes === String)
|
|
29491
|
+
object.documentHash = "";
|
|
29492
|
+
else {
|
|
29493
|
+
object.documentHash = [];
|
|
29494
|
+
if (options.bytes !== Array)
|
|
29495
|
+
object.documentHash = $util.newBuffer(object.documentHash);
|
|
29496
|
+
}
|
|
29497
|
+
object.restoration = null;
|
|
28583
29498
|
}
|
|
28584
29499
|
if (message.documentId != null && message.hasOwnProperty("documentId"))
|
|
28585
29500
|
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;
|
|
@@ -28594,6 +29509,10 @@ $root.org = (function() {
|
|
|
28594
29509
|
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;
|
|
28595
29510
|
if (message.reason != null && message.hasOwnProperty("reason"))
|
|
28596
29511
|
object.reason = $root.org.dash.platform.dapi.v0.ContractModerationReason.toObject(message.reason, options);
|
|
29512
|
+
if (message.documentHash != null && message.hasOwnProperty("documentHash"))
|
|
29513
|
+
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;
|
|
29514
|
+
if (message.restoration != null && message.hasOwnProperty("restoration"))
|
|
29515
|
+
object.restoration = $root.org.dash.platform.dapi.v0.GetContractDocumentRemovalsResponse.ContractDocumentRestoration.toObject(message.restoration, options);
|
|
28597
29516
|
return object;
|
|
28598
29517
|
};
|
|
28599
29518
|
|
|
@@ -49969,6 +50888,7 @@ $root.org = (function() {
|
|
|
49969
50888
|
* @interface IWaitForStateTransitionResultRequestV0
|
|
49970
50889
|
* @property {Uint8Array|null} [stateTransitionHash] WaitForStateTransitionResultRequestV0 stateTransitionHash
|
|
49971
50890
|
* @property {boolean|null} [prove] WaitForStateTransitionResultRequestV0 prove
|
|
50891
|
+
* @property {boolean|null} [requestUserBalance] WaitForStateTransitionResultRequestV0 requestUserBalance
|
|
49972
50892
|
*/
|
|
49973
50893
|
|
|
49974
50894
|
/**
|
|
@@ -50002,6 +50922,14 @@ $root.org = (function() {
|
|
|
50002
50922
|
*/
|
|
50003
50923
|
WaitForStateTransitionResultRequestV0.prototype.prove = false;
|
|
50004
50924
|
|
|
50925
|
+
/**
|
|
50926
|
+
* WaitForStateTransitionResultRequestV0 requestUserBalance.
|
|
50927
|
+
* @member {boolean} requestUserBalance
|
|
50928
|
+
* @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest.WaitForStateTransitionResultRequestV0
|
|
50929
|
+
* @instance
|
|
50930
|
+
*/
|
|
50931
|
+
WaitForStateTransitionResultRequestV0.prototype.requestUserBalance = false;
|
|
50932
|
+
|
|
50005
50933
|
/**
|
|
50006
50934
|
* Creates a new WaitForStateTransitionResultRequestV0 instance using the specified properties.
|
|
50007
50935
|
* @function create
|
|
@@ -50030,6 +50958,8 @@ $root.org = (function() {
|
|
|
50030
50958
|
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.stateTransitionHash);
|
|
50031
50959
|
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
50032
50960
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
|
|
50961
|
+
if (message.requestUserBalance != null && Object.hasOwnProperty.call(message, "requestUserBalance"))
|
|
50962
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.requestUserBalance);
|
|
50033
50963
|
return writer;
|
|
50034
50964
|
};
|
|
50035
50965
|
|
|
@@ -50070,6 +51000,9 @@ $root.org = (function() {
|
|
|
50070
51000
|
case 2:
|
|
50071
51001
|
message.prove = reader.bool();
|
|
50072
51002
|
break;
|
|
51003
|
+
case 3:
|
|
51004
|
+
message.requestUserBalance = reader.bool();
|
|
51005
|
+
break;
|
|
50073
51006
|
default:
|
|
50074
51007
|
reader.skipType(tag & 7);
|
|
50075
51008
|
break;
|
|
@@ -50111,6 +51044,9 @@ $root.org = (function() {
|
|
|
50111
51044
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
50112
51045
|
if (typeof message.prove !== "boolean")
|
|
50113
51046
|
return "prove: boolean expected";
|
|
51047
|
+
if (message.requestUserBalance != null && message.hasOwnProperty("requestUserBalance"))
|
|
51048
|
+
if (typeof message.requestUserBalance !== "boolean")
|
|
51049
|
+
return "requestUserBalance: boolean expected";
|
|
50114
51050
|
return null;
|
|
50115
51051
|
};
|
|
50116
51052
|
|
|
@@ -50133,6 +51069,8 @@ $root.org = (function() {
|
|
|
50133
51069
|
message.stateTransitionHash = object.stateTransitionHash;
|
|
50134
51070
|
if (object.prove != null)
|
|
50135
51071
|
message.prove = Boolean(object.prove);
|
|
51072
|
+
if (object.requestUserBalance != null)
|
|
51073
|
+
message.requestUserBalance = Boolean(object.requestUserBalance);
|
|
50136
51074
|
return message;
|
|
50137
51075
|
};
|
|
50138
51076
|
|
|
@@ -50158,11 +51096,14 @@ $root.org = (function() {
|
|
|
50158
51096
|
object.stateTransitionHash = $util.newBuffer(object.stateTransitionHash);
|
|
50159
51097
|
}
|
|
50160
51098
|
object.prove = false;
|
|
51099
|
+
object.requestUserBalance = false;
|
|
50161
51100
|
}
|
|
50162
51101
|
if (message.stateTransitionHash != null && message.hasOwnProperty("stateTransitionHash"))
|
|
50163
51102
|
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;
|
|
50164
51103
|
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
50165
51104
|
object.prove = message.prove;
|
|
51105
|
+
if (message.requestUserBalance != null && message.hasOwnProperty("requestUserBalance"))
|
|
51106
|
+
object.requestUserBalance = message.requestUserBalance;
|
|
50166
51107
|
return object;
|
|
50167
51108
|
};
|
|
50168
51109
|
|
|
@@ -50391,6 +51332,207 @@ $root.org = (function() {
|
|
|
50391
51332
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
50392
51333
|
};
|
|
50393
51334
|
|
|
51335
|
+
WaitForStateTransitionResultResponse.SuccessWithOwnerBalance = (function() {
|
|
51336
|
+
|
|
51337
|
+
/**
|
|
51338
|
+
* Properties of a SuccessWithOwnerBalance.
|
|
51339
|
+
* @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse
|
|
51340
|
+
* @interface ISuccessWithOwnerBalance
|
|
51341
|
+
* @property {number|Long|null} [ownerBalance] SuccessWithOwnerBalance ownerBalance
|
|
51342
|
+
*/
|
|
51343
|
+
|
|
51344
|
+
/**
|
|
51345
|
+
* Constructs a new SuccessWithOwnerBalance.
|
|
51346
|
+
* @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse
|
|
51347
|
+
* @classdesc Represents a SuccessWithOwnerBalance.
|
|
51348
|
+
* @implements ISuccessWithOwnerBalance
|
|
51349
|
+
* @constructor
|
|
51350
|
+
* @param {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ISuccessWithOwnerBalance=} [properties] Properties to set
|
|
51351
|
+
*/
|
|
51352
|
+
function SuccessWithOwnerBalance(properties) {
|
|
51353
|
+
if (properties)
|
|
51354
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
51355
|
+
if (properties[keys[i]] != null)
|
|
51356
|
+
this[keys[i]] = properties[keys[i]];
|
|
51357
|
+
}
|
|
51358
|
+
|
|
51359
|
+
/**
|
|
51360
|
+
* SuccessWithOwnerBalance ownerBalance.
|
|
51361
|
+
* @member {number|Long} ownerBalance
|
|
51362
|
+
* @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
|
|
51363
|
+
* @instance
|
|
51364
|
+
*/
|
|
51365
|
+
SuccessWithOwnerBalance.prototype.ownerBalance = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
51366
|
+
|
|
51367
|
+
/**
|
|
51368
|
+
* Creates a new SuccessWithOwnerBalance instance using the specified properties.
|
|
51369
|
+
* @function create
|
|
51370
|
+
* @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
|
|
51371
|
+
* @static
|
|
51372
|
+
* @param {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ISuccessWithOwnerBalance=} [properties] Properties to set
|
|
51373
|
+
* @returns {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance} SuccessWithOwnerBalance instance
|
|
51374
|
+
*/
|
|
51375
|
+
SuccessWithOwnerBalance.create = function create(properties) {
|
|
51376
|
+
return new SuccessWithOwnerBalance(properties);
|
|
51377
|
+
};
|
|
51378
|
+
|
|
51379
|
+
/**
|
|
51380
|
+
* Encodes the specified SuccessWithOwnerBalance message. Does not implicitly {@link org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance.verify|verify} messages.
|
|
51381
|
+
* @function encode
|
|
51382
|
+
* @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
|
|
51383
|
+
* @static
|
|
51384
|
+
* @param {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ISuccessWithOwnerBalance} message SuccessWithOwnerBalance message or plain object to encode
|
|
51385
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51386
|
+
* @returns {$protobuf.Writer} Writer
|
|
51387
|
+
*/
|
|
51388
|
+
SuccessWithOwnerBalance.encode = function encode(message, writer) {
|
|
51389
|
+
if (!writer)
|
|
51390
|
+
writer = $Writer.create();
|
|
51391
|
+
if (message.ownerBalance != null && Object.hasOwnProperty.call(message, "ownerBalance"))
|
|
51392
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ownerBalance);
|
|
51393
|
+
return writer;
|
|
51394
|
+
};
|
|
51395
|
+
|
|
51396
|
+
/**
|
|
51397
|
+
* Encodes the specified SuccessWithOwnerBalance message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance.verify|verify} messages.
|
|
51398
|
+
* @function encodeDelimited
|
|
51399
|
+
* @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
|
|
51400
|
+
* @static
|
|
51401
|
+
* @param {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ISuccessWithOwnerBalance} message SuccessWithOwnerBalance message or plain object to encode
|
|
51402
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51403
|
+
* @returns {$protobuf.Writer} Writer
|
|
51404
|
+
*/
|
|
51405
|
+
SuccessWithOwnerBalance.encodeDelimited = function encodeDelimited(message, writer) {
|
|
51406
|
+
return this.encode(message, writer).ldelim();
|
|
51407
|
+
};
|
|
51408
|
+
|
|
51409
|
+
/**
|
|
51410
|
+
* Decodes a SuccessWithOwnerBalance message from the specified reader or buffer.
|
|
51411
|
+
* @function decode
|
|
51412
|
+
* @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
|
|
51413
|
+
* @static
|
|
51414
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51415
|
+
* @param {number} [length] Message length if known beforehand
|
|
51416
|
+
* @returns {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance} SuccessWithOwnerBalance
|
|
51417
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51418
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51419
|
+
*/
|
|
51420
|
+
SuccessWithOwnerBalance.decode = function decode(reader, length) {
|
|
51421
|
+
if (!(reader instanceof $Reader))
|
|
51422
|
+
reader = $Reader.create(reader);
|
|
51423
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance();
|
|
51424
|
+
while (reader.pos < end) {
|
|
51425
|
+
var tag = reader.uint32();
|
|
51426
|
+
switch (tag >>> 3) {
|
|
51427
|
+
case 1:
|
|
51428
|
+
message.ownerBalance = reader.uint64();
|
|
51429
|
+
break;
|
|
51430
|
+
default:
|
|
51431
|
+
reader.skipType(tag & 7);
|
|
51432
|
+
break;
|
|
51433
|
+
}
|
|
51434
|
+
}
|
|
51435
|
+
return message;
|
|
51436
|
+
};
|
|
51437
|
+
|
|
51438
|
+
/**
|
|
51439
|
+
* Decodes a SuccessWithOwnerBalance message from the specified reader or buffer, length delimited.
|
|
51440
|
+
* @function decodeDelimited
|
|
51441
|
+
* @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
|
|
51442
|
+
* @static
|
|
51443
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51444
|
+
* @returns {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance} SuccessWithOwnerBalance
|
|
51445
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51446
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51447
|
+
*/
|
|
51448
|
+
SuccessWithOwnerBalance.decodeDelimited = function decodeDelimited(reader) {
|
|
51449
|
+
if (!(reader instanceof $Reader))
|
|
51450
|
+
reader = new $Reader(reader);
|
|
51451
|
+
return this.decode(reader, reader.uint32());
|
|
51452
|
+
};
|
|
51453
|
+
|
|
51454
|
+
/**
|
|
51455
|
+
* Verifies a SuccessWithOwnerBalance message.
|
|
51456
|
+
* @function verify
|
|
51457
|
+
* @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
|
|
51458
|
+
* @static
|
|
51459
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
51460
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
51461
|
+
*/
|
|
51462
|
+
SuccessWithOwnerBalance.verify = function verify(message) {
|
|
51463
|
+
if (typeof message !== "object" || message === null)
|
|
51464
|
+
return "object expected";
|
|
51465
|
+
if (message.ownerBalance != null && message.hasOwnProperty("ownerBalance"))
|
|
51466
|
+
if (!$util.isInteger(message.ownerBalance) && !(message.ownerBalance && $util.isInteger(message.ownerBalance.low) && $util.isInteger(message.ownerBalance.high)))
|
|
51467
|
+
return "ownerBalance: integer|Long expected";
|
|
51468
|
+
return null;
|
|
51469
|
+
};
|
|
51470
|
+
|
|
51471
|
+
/**
|
|
51472
|
+
* Creates a SuccessWithOwnerBalance message from a plain object. Also converts values to their respective internal types.
|
|
51473
|
+
* @function fromObject
|
|
51474
|
+
* @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
|
|
51475
|
+
* @static
|
|
51476
|
+
* @param {Object.<string,*>} object Plain object
|
|
51477
|
+
* @returns {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance} SuccessWithOwnerBalance
|
|
51478
|
+
*/
|
|
51479
|
+
SuccessWithOwnerBalance.fromObject = function fromObject(object) {
|
|
51480
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance)
|
|
51481
|
+
return object;
|
|
51482
|
+
var message = new $root.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance();
|
|
51483
|
+
if (object.ownerBalance != null)
|
|
51484
|
+
if ($util.Long)
|
|
51485
|
+
(message.ownerBalance = $util.Long.fromValue(object.ownerBalance)).unsigned = true;
|
|
51486
|
+
else if (typeof object.ownerBalance === "string")
|
|
51487
|
+
message.ownerBalance = parseInt(object.ownerBalance, 10);
|
|
51488
|
+
else if (typeof object.ownerBalance === "number")
|
|
51489
|
+
message.ownerBalance = object.ownerBalance;
|
|
51490
|
+
else if (typeof object.ownerBalance === "object")
|
|
51491
|
+
message.ownerBalance = new $util.LongBits(object.ownerBalance.low >>> 0, object.ownerBalance.high >>> 0).toNumber(true);
|
|
51492
|
+
return message;
|
|
51493
|
+
};
|
|
51494
|
+
|
|
51495
|
+
/**
|
|
51496
|
+
* Creates a plain object from a SuccessWithOwnerBalance message. Also converts values to other types if specified.
|
|
51497
|
+
* @function toObject
|
|
51498
|
+
* @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
|
|
51499
|
+
* @static
|
|
51500
|
+
* @param {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance} message SuccessWithOwnerBalance
|
|
51501
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
51502
|
+
* @returns {Object.<string,*>} Plain object
|
|
51503
|
+
*/
|
|
51504
|
+
SuccessWithOwnerBalance.toObject = function toObject(message, options) {
|
|
51505
|
+
if (!options)
|
|
51506
|
+
options = {};
|
|
51507
|
+
var object = {};
|
|
51508
|
+
if (options.defaults)
|
|
51509
|
+
if ($util.Long) {
|
|
51510
|
+
var long = new $util.Long(0, 0, true);
|
|
51511
|
+
object.ownerBalance = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
51512
|
+
} else
|
|
51513
|
+
object.ownerBalance = options.longs === String ? "0" : 0;
|
|
51514
|
+
if (message.ownerBalance != null && message.hasOwnProperty("ownerBalance"))
|
|
51515
|
+
if (typeof message.ownerBalance === "number")
|
|
51516
|
+
object.ownerBalance = options.longs === String ? String(message.ownerBalance) : message.ownerBalance;
|
|
51517
|
+
else
|
|
51518
|
+
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;
|
|
51519
|
+
return object;
|
|
51520
|
+
};
|
|
51521
|
+
|
|
51522
|
+
/**
|
|
51523
|
+
* Converts this SuccessWithOwnerBalance to JSON.
|
|
51524
|
+
* @function toJSON
|
|
51525
|
+
* @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance
|
|
51526
|
+
* @instance
|
|
51527
|
+
* @returns {Object.<string,*>} JSON object
|
|
51528
|
+
*/
|
|
51529
|
+
SuccessWithOwnerBalance.prototype.toJSON = function toJSON() {
|
|
51530
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
51531
|
+
};
|
|
51532
|
+
|
|
51533
|
+
return SuccessWithOwnerBalance;
|
|
51534
|
+
})();
|
|
51535
|
+
|
|
50394
51536
|
WaitForStateTransitionResultResponse.WaitForStateTransitionResultResponseV0 = (function() {
|
|
50395
51537
|
|
|
50396
51538
|
/**
|
|
@@ -50399,6 +51541,7 @@ $root.org = (function() {
|
|
|
50399
51541
|
* @interface IWaitForStateTransitionResultResponseV0
|
|
50400
51542
|
* @property {org.dash.platform.dapi.v0.IStateTransitionBroadcastError|null} [error] WaitForStateTransitionResultResponseV0 error
|
|
50401
51543
|
* @property {org.dash.platform.dapi.v0.IProof|null} [proof] WaitForStateTransitionResultResponseV0 proof
|
|
51544
|
+
* @property {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ISuccessWithOwnerBalance|null} [successWithOwnerBalance] WaitForStateTransitionResultResponseV0 successWithOwnerBalance
|
|
50402
51545
|
* @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] WaitForStateTransitionResultResponseV0 metadata
|
|
50403
51546
|
*/
|
|
50404
51547
|
|
|
@@ -50433,6 +51576,14 @@ $root.org = (function() {
|
|
|
50433
51576
|
*/
|
|
50434
51577
|
WaitForStateTransitionResultResponseV0.prototype.proof = null;
|
|
50435
51578
|
|
|
51579
|
+
/**
|
|
51580
|
+
* WaitForStateTransitionResultResponseV0 successWithOwnerBalance.
|
|
51581
|
+
* @member {org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ISuccessWithOwnerBalance|null|undefined} successWithOwnerBalance
|
|
51582
|
+
* @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.WaitForStateTransitionResultResponseV0
|
|
51583
|
+
* @instance
|
|
51584
|
+
*/
|
|
51585
|
+
WaitForStateTransitionResultResponseV0.prototype.successWithOwnerBalance = null;
|
|
51586
|
+
|
|
50436
51587
|
/**
|
|
50437
51588
|
* WaitForStateTransitionResultResponseV0 metadata.
|
|
50438
51589
|
* @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
|
|
@@ -50446,12 +51597,12 @@ $root.org = (function() {
|
|
|
50446
51597
|
|
|
50447
51598
|
/**
|
|
50448
51599
|
* WaitForStateTransitionResultResponseV0 result.
|
|
50449
|
-
* @member {"error"|"proof"|undefined} result
|
|
51600
|
+
* @member {"error"|"proof"|"successWithOwnerBalance"|undefined} result
|
|
50450
51601
|
* @memberof org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.WaitForStateTransitionResultResponseV0
|
|
50451
51602
|
* @instance
|
|
50452
51603
|
*/
|
|
50453
51604
|
Object.defineProperty(WaitForStateTransitionResultResponseV0.prototype, "result", {
|
|
50454
|
-
get: $util.oneOfGetter($oneOfFields = ["error", "proof"]),
|
|
51605
|
+
get: $util.oneOfGetter($oneOfFields = ["error", "proof", "successWithOwnerBalance"]),
|
|
50455
51606
|
set: $util.oneOfSetter($oneOfFields)
|
|
50456
51607
|
});
|
|
50457
51608
|
|
|
@@ -50485,6 +51636,8 @@ $root.org = (function() {
|
|
|
50485
51636
|
$root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
50486
51637
|
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
50487
51638
|
$root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
51639
|
+
if (message.successWithOwnerBalance != null && Object.hasOwnProperty.call(message, "successWithOwnerBalance"))
|
|
51640
|
+
$root.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance.encode(message.successWithOwnerBalance, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
50488
51641
|
return writer;
|
|
50489
51642
|
};
|
|
50490
51643
|
|
|
@@ -50525,6 +51678,9 @@ $root.org = (function() {
|
|
|
50525
51678
|
case 2:
|
|
50526
51679
|
message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
|
|
50527
51680
|
break;
|
|
51681
|
+
case 4:
|
|
51682
|
+
message.successWithOwnerBalance = $root.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance.decode(reader, reader.uint32());
|
|
51683
|
+
break;
|
|
50528
51684
|
case 3:
|
|
50529
51685
|
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
|
|
50530
51686
|
break;
|
|
@@ -50582,6 +51738,16 @@ $root.org = (function() {
|
|
|
50582
51738
|
return "proof." + error;
|
|
50583
51739
|
}
|
|
50584
51740
|
}
|
|
51741
|
+
if (message.successWithOwnerBalance != null && message.hasOwnProperty("successWithOwnerBalance")) {
|
|
51742
|
+
if (properties.result === 1)
|
|
51743
|
+
return "result: multiple values";
|
|
51744
|
+
properties.result = 1;
|
|
51745
|
+
{
|
|
51746
|
+
var error = $root.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance.verify(message.successWithOwnerBalance);
|
|
51747
|
+
if (error)
|
|
51748
|
+
return "successWithOwnerBalance." + error;
|
|
51749
|
+
}
|
|
51750
|
+
}
|
|
50585
51751
|
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
50586
51752
|
var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
|
|
50587
51753
|
if (error)
|
|
@@ -50612,6 +51778,11 @@ $root.org = (function() {
|
|
|
50612
51778
|
throw TypeError(".org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.WaitForStateTransitionResultResponseV0.proof: object expected");
|
|
50613
51779
|
message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
|
|
50614
51780
|
}
|
|
51781
|
+
if (object.successWithOwnerBalance != null) {
|
|
51782
|
+
if (typeof object.successWithOwnerBalance !== "object")
|
|
51783
|
+
throw TypeError(".org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.WaitForStateTransitionResultResponseV0.successWithOwnerBalance: object expected");
|
|
51784
|
+
message.successWithOwnerBalance = $root.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance.fromObject(object.successWithOwnerBalance);
|
|
51785
|
+
}
|
|
50615
51786
|
if (object.metadata != null) {
|
|
50616
51787
|
if (typeof object.metadata !== "object")
|
|
50617
51788
|
throw TypeError(".org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.WaitForStateTransitionResultResponseV0.metadata: object expected");
|
|
@@ -50647,6 +51818,11 @@ $root.org = (function() {
|
|
|
50647
51818
|
}
|
|
50648
51819
|
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
50649
51820
|
object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
|
|
51821
|
+
if (message.successWithOwnerBalance != null && message.hasOwnProperty("successWithOwnerBalance")) {
|
|
51822
|
+
object.successWithOwnerBalance = $root.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.SuccessWithOwnerBalance.toObject(message.successWithOwnerBalance, options);
|
|
51823
|
+
if (options.oneofs)
|
|
51824
|
+
object.result = "successWithOwnerBalance";
|
|
51825
|
+
}
|
|
50650
51826
|
return object;
|
|
50651
51827
|
};
|
|
50652
51828
|
|