@ocap/proto 1.14.3 → 1.14.7

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/lib/gen/tx_pb.js CHANGED
@@ -448,7 +448,7 @@ if (goog.DEBUG && !COMPILED) {
448
448
  * @constructor
449
449
  */
450
450
  proto.ocap.CreateAssetTx = function(opt_data) {
451
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
451
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.CreateAssetTx.repeatedFields_, null);
452
452
  };
453
453
  goog.inherits(proto.ocap.CreateAssetTx, jspb.Message);
454
454
  if (goog.DEBUG && !COMPILED) {
@@ -5083,7 +5083,7 @@ proto.ocap.AcquireAssetV2Tx.toObject = function(includeInstance, msg) {
5083
5083
  assetsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
5084
5084
  variablesList: jspb.Message.toObjectList(msg.getVariablesList(),
5085
5085
  type_pb.VariableInput.toObject, includeInstance),
5086
- issuer: (f = msg.getIssuer()) && type_pb.AssetIssuer.toObject(includeInstance, f),
5086
+ issuer: (f = msg.getIssuer()) && type_pb.NFTIssuer.toObject(includeInstance, f),
5087
5087
  data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
5088
5088
  };
5089
5089
 
@@ -5139,8 +5139,8 @@ proto.ocap.AcquireAssetV2Tx.deserializeBinaryFromReader = function(msg, reader)
5139
5139
  msg.addVariables(value);
5140
5140
  break;
5141
5141
  case 5:
5142
- var value = new type_pb.AssetIssuer;
5143
- reader.readMessage(value,type_pb.AssetIssuer.deserializeBinaryFromReader);
5142
+ var value = new type_pb.NFTIssuer;
5143
+ reader.readMessage(value,type_pb.NFTIssuer.deserializeBinaryFromReader);
5144
5144
  msg.setIssuer(value);
5145
5145
  break;
5146
5146
  case 15:
@@ -5211,7 +5211,7 @@ proto.ocap.AcquireAssetV2Tx.serializeBinaryToWriter = function(message, writer)
5211
5211
  writer.writeMessage(
5212
5212
  5,
5213
5213
  f,
5214
- type_pb.AssetIssuer.serializeBinaryToWriter
5214
+ type_pb.NFTIssuer.serializeBinaryToWriter
5215
5215
  );
5216
5216
  }
5217
5217
  f = message.getData();
@@ -5337,17 +5337,17 @@ proto.ocap.AcquireAssetV2Tx.prototype.clearVariablesList = function() {
5337
5337
 
5338
5338
 
5339
5339
  /**
5340
- * optional AssetIssuer issuer = 5;
5341
- * @return {?proto.ocap.AssetIssuer}
5340
+ * optional NFTIssuer issuer = 5;
5341
+ * @return {?proto.ocap.NFTIssuer}
5342
5342
  */
5343
5343
  proto.ocap.AcquireAssetV2Tx.prototype.getIssuer = function() {
5344
- return /** @type{?proto.ocap.AssetIssuer} */ (
5345
- jspb.Message.getWrapperField(this, type_pb.AssetIssuer, 5));
5344
+ return /** @type{?proto.ocap.NFTIssuer} */ (
5345
+ jspb.Message.getWrapperField(this, type_pb.NFTIssuer, 5));
5346
5346
  };
5347
5347
 
5348
5348
 
5349
5349
  /**
5350
- * @param {?proto.ocap.AssetIssuer|undefined} value
5350
+ * @param {?proto.ocap.NFTIssuer|undefined} value
5351
5351
  * @return {!proto.ocap.AcquireAssetV2Tx} returns this
5352
5352
  */
5353
5353
  proto.ocap.AcquireAssetV2Tx.prototype.setIssuer = function(value) {
@@ -5456,7 +5456,7 @@ proto.ocap.AcquireAssetV3Tx.toObject = function(includeInstance, msg) {
5456
5456
  owner: jspb.Message.getFieldWithDefault(msg, 4, ""),
5457
5457
  variablesList: jspb.Message.toObjectList(msg.getVariablesList(),
5458
5458
  type_pb.VariableInput.toObject, includeInstance),
5459
- issuer: (f = msg.getIssuer()) && type_pb.AssetIssuer.toObject(includeInstance, f),
5459
+ issuer: (f = msg.getIssuer()) && type_pb.NFTIssuer.toObject(includeInstance, f),
5460
5460
  data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
5461
5461
  };
5462
5462
 
@@ -5517,8 +5517,8 @@ proto.ocap.AcquireAssetV3Tx.deserializeBinaryFromReader = function(msg, reader)
5517
5517
  msg.addVariables(value);
5518
5518
  break;
5519
5519
  case 6:
5520
- var value = new type_pb.AssetIssuer;
5521
- reader.readMessage(value,type_pb.AssetIssuer.deserializeBinaryFromReader);
5520
+ var value = new type_pb.NFTIssuer;
5521
+ reader.readMessage(value,type_pb.NFTIssuer.deserializeBinaryFromReader);
5522
5522
  msg.setIssuer(value);
5523
5523
  break;
5524
5524
  case 15:
@@ -5597,7 +5597,7 @@ proto.ocap.AcquireAssetV3Tx.serializeBinaryToWriter = function(message, writer)
5597
5597
  writer.writeMessage(
5598
5598
  6,
5599
5599
  f,
5600
- type_pb.AssetIssuer.serializeBinaryToWriter
5600
+ type_pb.NFTIssuer.serializeBinaryToWriter
5601
5601
  );
5602
5602
  }
5603
5603
  f = message.getData();
@@ -5742,17 +5742,17 @@ proto.ocap.AcquireAssetV3Tx.prototype.clearVariablesList = function() {
5742
5742
 
5743
5743
 
5744
5744
  /**
5745
- * optional AssetIssuer issuer = 6;
5746
- * @return {?proto.ocap.AssetIssuer}
5745
+ * optional NFTIssuer issuer = 6;
5746
+ * @return {?proto.ocap.NFTIssuer}
5747
5747
  */
5748
5748
  proto.ocap.AcquireAssetV3Tx.prototype.getIssuer = function() {
5749
- return /** @type{?proto.ocap.AssetIssuer} */ (
5750
- jspb.Message.getWrapperField(this, type_pb.AssetIssuer, 6));
5749
+ return /** @type{?proto.ocap.NFTIssuer} */ (
5750
+ jspb.Message.getWrapperField(this, type_pb.NFTIssuer, 6));
5751
5751
  };
5752
5752
 
5753
5753
 
5754
5754
  /**
5755
- * @param {?proto.ocap.AssetIssuer|undefined} value
5755
+ * @param {?proto.ocap.NFTIssuer|undefined} value
5756
5756
  * @return {!proto.ocap.AcquireAssetV3Tx} returns this
5757
5757
  */
5758
5758
  proto.ocap.AcquireAssetV3Tx.prototype.setIssuer = function(value) {
@@ -6166,6 +6166,13 @@ proto.ocap.MintAssetTx.prototype.hasData = function() {
6166
6166
 
6167
6167
 
6168
6168
 
6169
+ /**
6170
+ * List of repeated fields within this message type.
6171
+ * @private {!Array<number>}
6172
+ * @const
6173
+ */
6174
+ proto.ocap.CreateAssetTx.repeatedFields_ = [11];
6175
+
6169
6176
 
6170
6177
 
6171
6178
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -6204,7 +6211,10 @@ proto.ocap.CreateAssetTx.toObject = function(includeInstance, msg) {
6204
6211
  ttl: jspb.Message.getFieldWithDefault(msg, 5, 0),
6205
6212
  parent: jspb.Message.getFieldWithDefault(msg, 6, ""),
6206
6213
  address: jspb.Message.getFieldWithDefault(msg, 7, ""),
6207
- issuer: jspb.Message.getFieldWithDefault(msg, 8, "")
6214
+ issuer: jspb.Message.getFieldWithDefault(msg, 8, ""),
6215
+ endpoint: (f = msg.getEndpoint()) && type_pb.NFTEndpoint.toObject(includeInstance, f),
6216
+ display: (f = msg.getDisplay()) && type_pb.NFTDisplay.toObject(includeInstance, f),
6217
+ tagsList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f
6208
6218
  };
6209
6219
 
6210
6220
  if (includeInstance) {
@@ -6274,6 +6284,20 @@ proto.ocap.CreateAssetTx.deserializeBinaryFromReader = function(msg, reader) {
6274
6284
  var value = /** @type {string} */ (reader.readString());
6275
6285
  msg.setIssuer(value);
6276
6286
  break;
6287
+ case 9:
6288
+ var value = new type_pb.NFTEndpoint;
6289
+ reader.readMessage(value,type_pb.NFTEndpoint.deserializeBinaryFromReader);
6290
+ msg.setEndpoint(value);
6291
+ break;
6292
+ case 10:
6293
+ var value = new type_pb.NFTDisplay;
6294
+ reader.readMessage(value,type_pb.NFTDisplay.deserializeBinaryFromReader);
6295
+ msg.setDisplay(value);
6296
+ break;
6297
+ case 11:
6298
+ var value = /** @type {string} */ (reader.readString());
6299
+ msg.addTags(value);
6300
+ break;
6277
6301
  default:
6278
6302
  reader.skipField();
6279
6303
  break;
@@ -6360,6 +6384,29 @@ proto.ocap.CreateAssetTx.serializeBinaryToWriter = function(message, writer) {
6360
6384
  f
6361
6385
  );
6362
6386
  }
6387
+ f = message.getEndpoint();
6388
+ if (f != null) {
6389
+ writer.writeMessage(
6390
+ 9,
6391
+ f,
6392
+ type_pb.NFTEndpoint.serializeBinaryToWriter
6393
+ );
6394
+ }
6395
+ f = message.getDisplay();
6396
+ if (f != null) {
6397
+ writer.writeMessage(
6398
+ 10,
6399
+ f,
6400
+ type_pb.NFTDisplay.serializeBinaryToWriter
6401
+ );
6402
+ }
6403
+ f = message.getTagsList();
6404
+ if (f.length > 0) {
6405
+ writer.writeRepeatedString(
6406
+ 11,
6407
+ f
6408
+ );
6409
+ }
6363
6410
  };
6364
6411
 
6365
6412
 
@@ -6526,6 +6573,117 @@ proto.ocap.CreateAssetTx.prototype.setIssuer = function(value) {
6526
6573
  };
6527
6574
 
6528
6575
 
6576
+ /**
6577
+ * optional NFTEndpoint endpoint = 9;
6578
+ * @return {?proto.ocap.NFTEndpoint}
6579
+ */
6580
+ proto.ocap.CreateAssetTx.prototype.getEndpoint = function() {
6581
+ return /** @type{?proto.ocap.NFTEndpoint} */ (
6582
+ jspb.Message.getWrapperField(this, type_pb.NFTEndpoint, 9));
6583
+ };
6584
+
6585
+
6586
+ /**
6587
+ * @param {?proto.ocap.NFTEndpoint|undefined} value
6588
+ * @return {!proto.ocap.CreateAssetTx} returns this
6589
+ */
6590
+ proto.ocap.CreateAssetTx.prototype.setEndpoint = function(value) {
6591
+ return jspb.Message.setWrapperField(this, 9, value);
6592
+ };
6593
+
6594
+
6595
+ /**
6596
+ * Clears the message field making it undefined.
6597
+ * @return {!proto.ocap.CreateAssetTx} returns this
6598
+ */
6599
+ proto.ocap.CreateAssetTx.prototype.clearEndpoint = function() {
6600
+ return this.setEndpoint(undefined);
6601
+ };
6602
+
6603
+
6604
+ /**
6605
+ * Returns whether this field is set.
6606
+ * @return {boolean}
6607
+ */
6608
+ proto.ocap.CreateAssetTx.prototype.hasEndpoint = function() {
6609
+ return jspb.Message.getField(this, 9) != null;
6610
+ };
6611
+
6612
+
6613
+ /**
6614
+ * optional NFTDisplay display = 10;
6615
+ * @return {?proto.ocap.NFTDisplay}
6616
+ */
6617
+ proto.ocap.CreateAssetTx.prototype.getDisplay = function() {
6618
+ return /** @type{?proto.ocap.NFTDisplay} */ (
6619
+ jspb.Message.getWrapperField(this, type_pb.NFTDisplay, 10));
6620
+ };
6621
+
6622
+
6623
+ /**
6624
+ * @param {?proto.ocap.NFTDisplay|undefined} value
6625
+ * @return {!proto.ocap.CreateAssetTx} returns this
6626
+ */
6627
+ proto.ocap.CreateAssetTx.prototype.setDisplay = function(value) {
6628
+ return jspb.Message.setWrapperField(this, 10, value);
6629
+ };
6630
+
6631
+
6632
+ /**
6633
+ * Clears the message field making it undefined.
6634
+ * @return {!proto.ocap.CreateAssetTx} returns this
6635
+ */
6636
+ proto.ocap.CreateAssetTx.prototype.clearDisplay = function() {
6637
+ return this.setDisplay(undefined);
6638
+ };
6639
+
6640
+
6641
+ /**
6642
+ * Returns whether this field is set.
6643
+ * @return {boolean}
6644
+ */
6645
+ proto.ocap.CreateAssetTx.prototype.hasDisplay = function() {
6646
+ return jspb.Message.getField(this, 10) != null;
6647
+ };
6648
+
6649
+
6650
+ /**
6651
+ * repeated string tags = 11;
6652
+ * @return {!Array<string>}
6653
+ */
6654
+ proto.ocap.CreateAssetTx.prototype.getTagsList = function() {
6655
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 11));
6656
+ };
6657
+
6658
+
6659
+ /**
6660
+ * @param {!Array<string>} value
6661
+ * @return {!proto.ocap.CreateAssetTx} returns this
6662
+ */
6663
+ proto.ocap.CreateAssetTx.prototype.setTagsList = function(value) {
6664
+ return jspb.Message.setField(this, 11, value || []);
6665
+ };
6666
+
6667
+
6668
+ /**
6669
+ * @param {string} value
6670
+ * @param {number=} opt_index
6671
+ * @return {!proto.ocap.CreateAssetTx} returns this
6672
+ */
6673
+ proto.ocap.CreateAssetTx.prototype.addTags = function(value, opt_index) {
6674
+ return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
6675
+ };
6676
+
6677
+
6678
+ /**
6679
+ * Clears the list making it empty but non-null.
6680
+ * @return {!proto.ocap.CreateAssetTx} returns this
6681
+ */
6682
+ proto.ocap.CreateAssetTx.prototype.clearTagsList = function() {
6683
+ return this.setTagsList([]);
6684
+ };
6685
+
6686
+
6529
6687
 
6530
6688
 
6531
6689
 
@@ -6786,7 +6944,7 @@ proto.ocap.CreateFactoryTx.toObject = function(includeInstance, msg) {
6786
6944
  hooksList: jspb.Message.toObjectList(msg.getHooksList(),
6787
6945
  type_pb.AssetFactoryHook.toObject, includeInstance),
6788
6946
  address: jspb.Message.getFieldWithDefault(msg, 9, ""),
6789
- display: (f = msg.getDisplay()) && type_pb.AssetDisplay.toObject(includeInstance, f),
6947
+ display: (f = msg.getDisplay()) && type_pb.NFTDisplay.toObject(includeInstance, f),
6790
6948
  data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
6791
6949
  };
6792
6950
 
@@ -6864,8 +7022,8 @@ proto.ocap.CreateFactoryTx.deserializeBinaryFromReader = function(msg, reader) {
6864
7022
  msg.setAddress(value);
6865
7023
  break;
6866
7024
  case 10:
6867
- var value = new type_pb.AssetDisplay;
6868
- reader.readMessage(value,type_pb.AssetDisplay.deserializeBinaryFromReader);
7025
+ var value = new type_pb.NFTDisplay;
7026
+ reader.readMessage(value,type_pb.NFTDisplay.deserializeBinaryFromReader);
6869
7027
  msg.setDisplay(value);
6870
7028
  break;
6871
7029
  case 15:
@@ -6973,7 +7131,7 @@ proto.ocap.CreateFactoryTx.serializeBinaryToWriter = function(message, writer) {
6973
7131
  writer.writeMessage(
6974
7132
  10,
6975
7133
  f,
6976
- type_pb.AssetDisplay.serializeBinaryToWriter
7134
+ type_pb.NFTDisplay.serializeBinaryToWriter
6977
7135
  );
6978
7136
  }
6979
7137
  f = message.getData();
@@ -7227,17 +7385,17 @@ proto.ocap.CreateFactoryTx.prototype.setAddress = function(value) {
7227
7385
 
7228
7386
 
7229
7387
  /**
7230
- * optional AssetDisplay display = 10;
7231
- * @return {?proto.ocap.AssetDisplay}
7388
+ * optional NFTDisplay display = 10;
7389
+ * @return {?proto.ocap.NFTDisplay}
7232
7390
  */
7233
7391
  proto.ocap.CreateFactoryTx.prototype.getDisplay = function() {
7234
- return /** @type{?proto.ocap.AssetDisplay} */ (
7235
- jspb.Message.getWrapperField(this, type_pb.AssetDisplay, 10));
7392
+ return /** @type{?proto.ocap.NFTDisplay} */ (
7393
+ jspb.Message.getWrapperField(this, type_pb.NFTDisplay, 10));
7236
7394
  };
7237
7395
 
7238
7396
 
7239
7397
  /**
7240
- * @param {?proto.ocap.AssetDisplay|undefined} value
7398
+ * @param {?proto.ocap.NFTDisplay|undefined} value
7241
7399
  * @return {!proto.ocap.CreateFactoryTx} returns this
7242
7400
  */
7243
7401
  proto.ocap.CreateFactoryTx.prototype.setDisplay = function(value) {