@ocap/proto 1.21.3 → 1.22.0

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
@@ -31,6 +31,7 @@ goog.exportSymbol('proto.ocap.AccountMigrateTx', null, root);
31
31
  goog.exportSymbol('proto.ocap.AcquireAssetV2Tx', null, root);
32
32
  goog.exportSymbol('proto.ocap.AcquireAssetV3Tx', null, root);
33
33
  goog.exportSymbol('proto.ocap.AssetFactoryInput', null, root);
34
+ goog.exportSymbol('proto.ocap.BurnTokenTx', null, root);
34
35
  goog.exportSymbol('proto.ocap.ClaimBlockRewardTx', null, root);
35
36
  goog.exportSymbol('proto.ocap.ClaimStakeTx', null, root);
36
37
  goog.exportSymbol('proto.ocap.CloseRollupTx', null, root);
@@ -39,6 +40,7 @@ goog.exportSymbol('proto.ocap.CreateAssetTx', null, root);
39
40
  goog.exportSymbol('proto.ocap.CreateFactoryTx', null, root);
40
41
  goog.exportSymbol('proto.ocap.CreateRollupBlockTx', null, root);
41
42
  goog.exportSymbol('proto.ocap.CreateRollupTx', null, root);
43
+ goog.exportSymbol('proto.ocap.CreateTokenFactoryTx', null, root);
42
44
  goog.exportSymbol('proto.ocap.CreateTokenTx', null, root);
43
45
  goog.exportSymbol('proto.ocap.DeclareTx', null, root);
44
46
  goog.exportSymbol('proto.ocap.DelegateOp', null, root);
@@ -54,6 +56,7 @@ goog.exportSymbol('proto.ocap.JoinRollupTx', null, root);
54
56
  goog.exportSymbol('proto.ocap.LeaveRollupTx', null, root);
55
57
  goog.exportSymbol('proto.ocap.MigrateRollupTx', null, root);
56
58
  goog.exportSymbol('proto.ocap.MintAssetTx', null, root);
59
+ goog.exportSymbol('proto.ocap.MintTokenTx', null, root);
57
60
  goog.exportSymbol('proto.ocap.PauseRollupTx', null, root);
58
61
  goog.exportSymbol('proto.ocap.ResumeRollupTx', null, root);
59
62
  goog.exportSymbol('proto.ocap.ReturnStakeTx', null, root);
@@ -66,6 +69,7 @@ goog.exportSymbol('proto.ocap.TransferV2Tx', null, root);
66
69
  goog.exportSymbol('proto.ocap.TransferV3Tx', null, root);
67
70
  goog.exportSymbol('proto.ocap.UpdateAssetTx', null, root);
68
71
  goog.exportSymbol('proto.ocap.UpdateRollupTx', null, root);
72
+ goog.exportSymbol('proto.ocap.UpdateTokenFactoryTx', null, root);
69
73
  goog.exportSymbol('proto.ocap.UpgradeNodeTx', null, root);
70
74
  goog.exportSymbol('proto.ocap.WithdrawTokenV2Tx', null, root);
71
75
  /**
@@ -887,6 +891,90 @@ if (goog.DEBUG && !COMPILED) {
887
891
  */
888
892
  proto.ocap.WithdrawTokenV2Tx.displayName = 'proto.ocap.WithdrawTokenV2Tx';
889
893
  }
894
+ /**
895
+ * Generated by JsPbCodeGenerator.
896
+ * @param {Array=} opt_data Optional initial data array, typically from a
897
+ * server response, or constructed directly in Javascript. The array is used
898
+ * in place and becomes part of the constructed object. It is not cloned.
899
+ * If no data is provided, the constructed object will be empty, but still
900
+ * valid.
901
+ * @extends {jspb.Message}
902
+ * @constructor
903
+ */
904
+ proto.ocap.CreateTokenFactoryTx = function(opt_data) {
905
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
906
+ };
907
+ goog.inherits(proto.ocap.CreateTokenFactoryTx, jspb.Message);
908
+ if (goog.DEBUG && !COMPILED) {
909
+ /**
910
+ * @public
911
+ * @override
912
+ */
913
+ proto.ocap.CreateTokenFactoryTx.displayName = 'proto.ocap.CreateTokenFactoryTx';
914
+ }
915
+ /**
916
+ * Generated by JsPbCodeGenerator.
917
+ * @param {Array=} opt_data Optional initial data array, typically from a
918
+ * server response, or constructed directly in Javascript. The array is used
919
+ * in place and becomes part of the constructed object. It is not cloned.
920
+ * If no data is provided, the constructed object will be empty, but still
921
+ * valid.
922
+ * @extends {jspb.Message}
923
+ * @constructor
924
+ */
925
+ proto.ocap.UpdateTokenFactoryTx = function(opt_data) {
926
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
927
+ };
928
+ goog.inherits(proto.ocap.UpdateTokenFactoryTx, jspb.Message);
929
+ if (goog.DEBUG && !COMPILED) {
930
+ /**
931
+ * @public
932
+ * @override
933
+ */
934
+ proto.ocap.UpdateTokenFactoryTx.displayName = 'proto.ocap.UpdateTokenFactoryTx';
935
+ }
936
+ /**
937
+ * Generated by JsPbCodeGenerator.
938
+ * @param {Array=} opt_data Optional initial data array, typically from a
939
+ * server response, or constructed directly in Javascript. The array is used
940
+ * in place and becomes part of the constructed object. It is not cloned.
941
+ * If no data is provided, the constructed object will be empty, but still
942
+ * valid.
943
+ * @extends {jspb.Message}
944
+ * @constructor
945
+ */
946
+ proto.ocap.MintTokenTx = function(opt_data) {
947
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
948
+ };
949
+ goog.inherits(proto.ocap.MintTokenTx, jspb.Message);
950
+ if (goog.DEBUG && !COMPILED) {
951
+ /**
952
+ * @public
953
+ * @override
954
+ */
955
+ proto.ocap.MintTokenTx.displayName = 'proto.ocap.MintTokenTx';
956
+ }
957
+ /**
958
+ * Generated by JsPbCodeGenerator.
959
+ * @param {Array=} opt_data Optional initial data array, typically from a
960
+ * server response, or constructed directly in Javascript. The array is used
961
+ * in place and becomes part of the constructed object. It is not cloned.
962
+ * If no data is provided, the constructed object will be empty, but still
963
+ * valid.
964
+ * @extends {jspb.Message}
965
+ * @constructor
966
+ */
967
+ proto.ocap.BurnTokenTx = function(opt_data) {
968
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
969
+ };
970
+ goog.inherits(proto.ocap.BurnTokenTx, jspb.Message);
971
+ if (goog.DEBUG && !COMPILED) {
972
+ /**
973
+ * @public
974
+ * @override
975
+ */
976
+ proto.ocap.BurnTokenTx.displayName = 'proto.ocap.BurnTokenTx';
977
+ }
890
978
  /**
891
979
  * Generated by JsPbCodeGenerator.
892
980
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -14265,65 +14353,6 @@ proto.ocap.WithdrawTokenV2Tx.prototype.hasData = function() {
14265
14353
 
14266
14354
 
14267
14355
 
14268
- /**
14269
- * Oneof group definitions for this message. Each group defines the field
14270
- * numbers belonging to that group. When of these fields' value is set, all
14271
- * other fields in the group are cleared. During deserialization, if multiple
14272
- * fields are encountered for a group, only the last value seen will be kept.
14273
- * @private {!Array<!Array<number>>}
14274
- * @const
14275
- */
14276
- proto.ocap.ItxStub.oneofGroups_ = [[1,2,3,4,5,6,7,10,12,13,14,15,20,21,22,30,31,32,33,40,41,42,43,44,49,50,51,52,53,54,55,56,57,58,60]];
14277
-
14278
- /**
14279
- * @enum {number}
14280
- */
14281
- proto.ocap.ItxStub.ValueCase = {
14282
- VALUE_NOT_SET: 0,
14283
- DECLARE: 1,
14284
- DELEGATE: 2,
14285
- REVOKE_DELEGATE: 3,
14286
- ACCOUNT_MIGRATE: 4,
14287
- CREATE_ASSET: 5,
14288
- UPDATE_ASSET: 6,
14289
- CONSUME_ASSET: 7,
14290
- EXCHANGE: 10,
14291
- EXCHANGE_V2: 12,
14292
- TRANSFER: 13,
14293
- TRANSFER_V2: 14,
14294
- TRANSFER_V3: 15,
14295
- CREATE_TOKEN: 20,
14296
- DEPOSIT_TOKEN: 21,
14297
- WITHDRAW_TOKEN: 22,
14298
- CREATE_FACTORY: 30,
14299
- ACQUIRE_ASSET_V2: 31,
14300
- ACQUIRE_ASSET_V3: 32,
14301
- MINT_ASSET: 33,
14302
- STAKE: 40,
14303
- REVOKE_STAKE: 41,
14304
- CLAIM_STAKE: 42,
14305
- SLASH_STAKE: 43,
14306
- RETURN_STAKE: 44,
14307
- UPGRADE_NODE: 49,
14308
- CREATE_ROLLUP: 50,
14309
- UPDATE_ROLLUP: 51,
14310
- JOIN_ROLLUP: 52,
14311
- LEAVE_ROLLUP: 53,
14312
- CREATE_ROLLUP_BLOCK: 54,
14313
- CLAIM_BLOCK_REWARD: 55,
14314
- PAUSE_ROLLUP: 56,
14315
- RESUME_ROLLUP: 57,
14316
- MIGRATE_ROLLUP: 58,
14317
- CLOSE_ROLLUP: 60
14318
- };
14319
-
14320
- /**
14321
- * @return {proto.ocap.ItxStub.ValueCase}
14322
- */
14323
- proto.ocap.ItxStub.prototype.getValueCase = function() {
14324
- return /** @type {proto.ocap.ItxStub.ValueCase} */(jspb.Message.computeOneofCase(this, proto.ocap.ItxStub.oneofGroups_[0]));
14325
- };
14326
-
14327
14356
 
14328
14357
 
14329
14358
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -14339,8 +14368,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
14339
14368
  * http://goto/soy-param-migration
14340
14369
  * @return {!Object}
14341
14370
  */
14342
- proto.ocap.ItxStub.prototype.toObject = function(opt_includeInstance) {
14343
- return proto.ocap.ItxStub.toObject(opt_includeInstance, this);
14371
+ proto.ocap.CreateTokenFactoryTx.prototype.toObject = function(opt_includeInstance) {
14372
+ return proto.ocap.CreateTokenFactoryTx.toObject(opt_includeInstance, this);
14344
14373
  };
14345
14374
 
14346
14375
 
@@ -14349,47 +14378,18 @@ proto.ocap.ItxStub.prototype.toObject = function(opt_includeInstance) {
14349
14378
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14350
14379
  * the JSPB instance for transitional soy proto support:
14351
14380
  * http://goto/soy-param-migration
14352
- * @param {!proto.ocap.ItxStub} msg The msg instance to transform.
14381
+ * @param {!proto.ocap.CreateTokenFactoryTx} msg The msg instance to transform.
14353
14382
  * @return {!Object}
14354
14383
  * @suppress {unusedLocalVariables} f is only used for nested messages
14355
14384
  */
14356
- proto.ocap.ItxStub.toObject = function(includeInstance, msg) {
14385
+ proto.ocap.CreateTokenFactoryTx.toObject = function(includeInstance, msg) {
14357
14386
  var f, obj = {
14358
- declare: (f = msg.getDeclare()) && proto.ocap.DeclareTx.toObject(includeInstance, f),
14359
- delegate: (f = msg.getDelegate()) && proto.ocap.DelegateTx.toObject(includeInstance, f),
14360
- revokeDelegate: (f = msg.getRevokeDelegate()) && proto.ocap.RevokeDelegateTx.toObject(includeInstance, f),
14361
- accountMigrate: (f = msg.getAccountMigrate()) && proto.ocap.AccountMigrateTx.toObject(includeInstance, f),
14362
- createAsset: (f = msg.getCreateAsset()) && proto.ocap.CreateAssetTx.toObject(includeInstance, f),
14363
- updateAsset: (f = msg.getUpdateAsset()) && proto.ocap.UpdateAssetTx.toObject(includeInstance, f),
14364
- consumeAsset: (f = msg.getConsumeAsset()) && proto.ocap.ConsumeAssetTx.toObject(includeInstance, f),
14365
- exchange: (f = msg.getExchange()) && proto.ocap.ExchangeTx.toObject(includeInstance, f),
14366
- exchangeV2: (f = msg.getExchangeV2()) && proto.ocap.ExchangeV2Tx.toObject(includeInstance, f),
14367
- transfer: (f = msg.getTransfer()) && proto.ocap.TransferTx.toObject(includeInstance, f),
14368
- transferV2: (f = msg.getTransferV2()) && proto.ocap.TransferV2Tx.toObject(includeInstance, f),
14369
- transferV3: (f = msg.getTransferV3()) && proto.ocap.TransferV3Tx.toObject(includeInstance, f),
14370
- createToken: (f = msg.getCreateToken()) && proto.ocap.CreateTokenTx.toObject(includeInstance, f),
14371
- depositToken: (f = msg.getDepositToken()) && proto.ocap.DepositTokenV2Tx.toObject(includeInstance, f),
14372
- withdrawToken: (f = msg.getWithdrawToken()) && proto.ocap.WithdrawTokenV2Tx.toObject(includeInstance, f),
14373
- createFactory: (f = msg.getCreateFactory()) && proto.ocap.CreateFactoryTx.toObject(includeInstance, f),
14374
- acquireAssetV2: (f = msg.getAcquireAssetV2()) && proto.ocap.AcquireAssetV2Tx.toObject(includeInstance, f),
14375
- acquireAssetV3: (f = msg.getAcquireAssetV3()) && proto.ocap.AcquireAssetV3Tx.toObject(includeInstance, f),
14376
- mintAsset: (f = msg.getMintAsset()) && proto.ocap.MintAssetTx.toObject(includeInstance, f),
14377
- stake: (f = msg.getStake()) && proto.ocap.StakeTx.toObject(includeInstance, f),
14378
- revokeStake: (f = msg.getRevokeStake()) && proto.ocap.RevokeStakeTx.toObject(includeInstance, f),
14379
- claimStake: (f = msg.getClaimStake()) && proto.ocap.ClaimStakeTx.toObject(includeInstance, f),
14380
- slashStake: (f = msg.getSlashStake()) && proto.ocap.SlashStakeTx.toObject(includeInstance, f),
14381
- returnStake: (f = msg.getReturnStake()) && proto.ocap.ReturnStakeTx.toObject(includeInstance, f),
14382
- upgradeNode: (f = msg.getUpgradeNode()) && proto.ocap.UpgradeNodeTx.toObject(includeInstance, f),
14383
- createRollup: (f = msg.getCreateRollup()) && proto.ocap.CreateRollupTx.toObject(includeInstance, f),
14384
- updateRollup: (f = msg.getUpdateRollup()) && proto.ocap.UpdateRollupTx.toObject(includeInstance, f),
14385
- joinRollup: (f = msg.getJoinRollup()) && proto.ocap.JoinRollupTx.toObject(includeInstance, f),
14386
- leaveRollup: (f = msg.getLeaveRollup()) && proto.ocap.LeaveRollupTx.toObject(includeInstance, f),
14387
- createRollupBlock: (f = msg.getCreateRollupBlock()) && proto.ocap.CreateRollupBlockTx.toObject(includeInstance, f),
14388
- claimBlockReward: (f = msg.getClaimBlockReward()) && proto.ocap.ClaimBlockRewardTx.toObject(includeInstance, f),
14389
- pauseRollup: (f = msg.getPauseRollup()) && proto.ocap.PauseRollupTx.toObject(includeInstance, f),
14390
- resumeRollup: (f = msg.getResumeRollup()) && proto.ocap.ResumeRollupTx.toObject(includeInstance, f),
14391
- migrateRollup: (f = msg.getMigrateRollup()) && proto.ocap.MigrateRollupTx.toObject(includeInstance, f),
14392
- closeRollup: (f = msg.getCloseRollup()) && proto.ocap.CloseRollupTx.toObject(includeInstance, f)
14387
+ address: jspb.Message.getFieldWithDefault(msg, 1, ""),
14388
+ feeRate: jspb.Message.getFieldWithDefault(msg, 2, 0),
14389
+ token: (f = msg.getToken()) && type_pb.TokenSymbol.toObject(includeInstance, f),
14390
+ reserveAddress: jspb.Message.getFieldWithDefault(msg, 4, ""),
14391
+ curve: (f = msg.getCurve()) && type_pb.CurveConfig.toObject(includeInstance, f),
14392
+ data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
14393
14393
  };
14394
14394
 
14395
14395
  if (includeInstance) {
@@ -14403,23 +14403,23 @@ proto.ocap.ItxStub.toObject = function(includeInstance, msg) {
14403
14403
  /**
14404
14404
  * Deserializes binary data (in protobuf wire format).
14405
14405
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
14406
- * @return {!proto.ocap.ItxStub}
14406
+ * @return {!proto.ocap.CreateTokenFactoryTx}
14407
14407
  */
14408
- proto.ocap.ItxStub.deserializeBinary = function(bytes) {
14408
+ proto.ocap.CreateTokenFactoryTx.deserializeBinary = function(bytes) {
14409
14409
  var reader = new jspb.BinaryReader(bytes);
14410
- var msg = new proto.ocap.ItxStub;
14411
- return proto.ocap.ItxStub.deserializeBinaryFromReader(msg, reader);
14410
+ var msg = new proto.ocap.CreateTokenFactoryTx;
14411
+ return proto.ocap.CreateTokenFactoryTx.deserializeBinaryFromReader(msg, reader);
14412
14412
  };
14413
14413
 
14414
14414
 
14415
14415
  /**
14416
14416
  * Deserializes binary data (in protobuf wire format) from the
14417
14417
  * given reader into the given message object.
14418
- * @param {!proto.ocap.ItxStub} msg The message object to deserialize into.
14418
+ * @param {!proto.ocap.CreateTokenFactoryTx} msg The message object to deserialize into.
14419
14419
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14420
- * @return {!proto.ocap.ItxStub}
14420
+ * @return {!proto.ocap.CreateTokenFactoryTx}
14421
14421
  */
14422
- proto.ocap.ItxStub.deserializeBinaryFromReader = function(msg, reader) {
14422
+ proto.ocap.CreateTokenFactoryTx.deserializeBinaryFromReader = function(msg, reader) {
14423
14423
  while (reader.nextField()) {
14424
14424
  if (reader.isEndGroup()) {
14425
14425
  break;
@@ -14427,84 +14427,1296 @@ proto.ocap.ItxStub.deserializeBinaryFromReader = function(msg, reader) {
14427
14427
  var field = reader.getFieldNumber();
14428
14428
  switch (field) {
14429
14429
  case 1:
14430
- var value = new proto.ocap.DeclareTx;
14431
- reader.readMessage(value,proto.ocap.DeclareTx.deserializeBinaryFromReader);
14432
- msg.setDeclare(value);
14430
+ var value = /** @type {string} */ (reader.readString());
14431
+ msg.setAddress(value);
14433
14432
  break;
14434
14433
  case 2:
14435
- var value = new proto.ocap.DelegateTx;
14436
- reader.readMessage(value,proto.ocap.DelegateTx.deserializeBinaryFromReader);
14437
- msg.setDelegate(value);
14434
+ var value = /** @type {number} */ (reader.readUint32());
14435
+ msg.setFeeRate(value);
14438
14436
  break;
14439
14437
  case 3:
14440
- var value = new proto.ocap.RevokeDelegateTx;
14441
- reader.readMessage(value,proto.ocap.RevokeDelegateTx.deserializeBinaryFromReader);
14442
- msg.setRevokeDelegate(value);
14438
+ var value = new type_pb.TokenSymbol;
14439
+ reader.readMessage(value,type_pb.TokenSymbol.deserializeBinaryFromReader);
14440
+ msg.setToken(value);
14443
14441
  break;
14444
14442
  case 4:
14445
- var value = new proto.ocap.AccountMigrateTx;
14446
- reader.readMessage(value,proto.ocap.AccountMigrateTx.deserializeBinaryFromReader);
14447
- msg.setAccountMigrate(value);
14443
+ var value = /** @type {string} */ (reader.readString());
14444
+ msg.setReserveAddress(value);
14448
14445
  break;
14449
14446
  case 5:
14450
- var value = new proto.ocap.CreateAssetTx;
14451
- reader.readMessage(value,proto.ocap.CreateAssetTx.deserializeBinaryFromReader);
14452
- msg.setCreateAsset(value);
14453
- break;
14454
- case 6:
14455
- var value = new proto.ocap.UpdateAssetTx;
14456
- reader.readMessage(value,proto.ocap.UpdateAssetTx.deserializeBinaryFromReader);
14457
- msg.setUpdateAsset(value);
14458
- break;
14459
- case 7:
14460
- var value = new proto.ocap.ConsumeAssetTx;
14461
- reader.readMessage(value,proto.ocap.ConsumeAssetTx.deserializeBinaryFromReader);
14462
- msg.setConsumeAsset(value);
14463
- break;
14464
- case 10:
14465
- var value = new proto.ocap.ExchangeTx;
14466
- reader.readMessage(value,proto.ocap.ExchangeTx.deserializeBinaryFromReader);
14467
- msg.setExchange(value);
14468
- break;
14469
- case 12:
14470
- var value = new proto.ocap.ExchangeV2Tx;
14471
- reader.readMessage(value,proto.ocap.ExchangeV2Tx.deserializeBinaryFromReader);
14472
- msg.setExchangeV2(value);
14473
- break;
14474
- case 13:
14475
- var value = new proto.ocap.TransferTx;
14476
- reader.readMessage(value,proto.ocap.TransferTx.deserializeBinaryFromReader);
14477
- msg.setTransfer(value);
14478
- break;
14479
- case 14:
14480
- var value = new proto.ocap.TransferV2Tx;
14481
- reader.readMessage(value,proto.ocap.TransferV2Tx.deserializeBinaryFromReader);
14482
- msg.setTransferV2(value);
14483
- break;
14484
- case 15:
14485
- var value = new proto.ocap.TransferV3Tx;
14486
- reader.readMessage(value,proto.ocap.TransferV3Tx.deserializeBinaryFromReader);
14487
- msg.setTransferV3(value);
14488
- break;
14489
- case 20:
14490
- var value = new proto.ocap.CreateTokenTx;
14491
- reader.readMessage(value,proto.ocap.CreateTokenTx.deserializeBinaryFromReader);
14492
- msg.setCreateToken(value);
14447
+ var value = new type_pb.CurveConfig;
14448
+ reader.readMessage(value,type_pb.CurveConfig.deserializeBinaryFromReader);
14449
+ msg.setCurve(value);
14493
14450
  break;
14494
- case 21:
14495
- var value = new proto.ocap.DepositTokenV2Tx;
14496
- reader.readMessage(value,proto.ocap.DepositTokenV2Tx.deserializeBinaryFromReader);
14497
- msg.setDepositToken(value);
14451
+ case 50:
14452
+ var value = new google_protobuf_any_pb.Any;
14453
+ reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
14454
+ msg.setData(value);
14498
14455
  break;
14499
- case 22:
14500
- var value = new proto.ocap.WithdrawTokenV2Tx;
14501
- reader.readMessage(value,proto.ocap.WithdrawTokenV2Tx.deserializeBinaryFromReader);
14502
- msg.setWithdrawToken(value);
14456
+ default:
14457
+ reader.skipField();
14503
14458
  break;
14504
- case 30:
14505
- var value = new proto.ocap.CreateFactoryTx;
14506
- reader.readMessage(value,proto.ocap.CreateFactoryTx.deserializeBinaryFromReader);
14507
- msg.setCreateFactory(value);
14459
+ }
14460
+ }
14461
+ return msg;
14462
+ };
14463
+
14464
+
14465
+ /**
14466
+ * Serializes the message to binary data (in protobuf wire format).
14467
+ * @return {!Uint8Array}
14468
+ */
14469
+ proto.ocap.CreateTokenFactoryTx.prototype.serializeBinary = function() {
14470
+ var writer = new jspb.BinaryWriter();
14471
+ proto.ocap.CreateTokenFactoryTx.serializeBinaryToWriter(this, writer);
14472
+ return writer.getResultBuffer();
14473
+ };
14474
+
14475
+
14476
+ /**
14477
+ * Serializes the given message to binary data (in protobuf wire
14478
+ * format), writing to the given BinaryWriter.
14479
+ * @param {!proto.ocap.CreateTokenFactoryTx} message
14480
+ * @param {!jspb.BinaryWriter} writer
14481
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14482
+ */
14483
+ proto.ocap.CreateTokenFactoryTx.serializeBinaryToWriter = function(message, writer) {
14484
+ var f = undefined;
14485
+ f = message.getAddress();
14486
+ if (f.length > 0) {
14487
+ writer.writeString(
14488
+ 1,
14489
+ f
14490
+ );
14491
+ }
14492
+ f = message.getFeeRate();
14493
+ if (f !== 0) {
14494
+ writer.writeUint32(
14495
+ 2,
14496
+ f
14497
+ );
14498
+ }
14499
+ f = message.getToken();
14500
+ if (f != null) {
14501
+ writer.writeMessage(
14502
+ 3,
14503
+ f,
14504
+ type_pb.TokenSymbol.serializeBinaryToWriter
14505
+ );
14506
+ }
14507
+ f = message.getReserveAddress();
14508
+ if (f.length > 0) {
14509
+ writer.writeString(
14510
+ 4,
14511
+ f
14512
+ );
14513
+ }
14514
+ f = message.getCurve();
14515
+ if (f != null) {
14516
+ writer.writeMessage(
14517
+ 5,
14518
+ f,
14519
+ type_pb.CurveConfig.serializeBinaryToWriter
14520
+ );
14521
+ }
14522
+ f = message.getData();
14523
+ if (f != null) {
14524
+ writer.writeMessage(
14525
+ 50,
14526
+ f,
14527
+ google_protobuf_any_pb.Any.serializeBinaryToWriter
14528
+ );
14529
+ }
14530
+ };
14531
+
14532
+
14533
+ /**
14534
+ * optional string address = 1;
14535
+ * @return {string}
14536
+ */
14537
+ proto.ocap.CreateTokenFactoryTx.prototype.getAddress = function() {
14538
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
14539
+ };
14540
+
14541
+
14542
+ /**
14543
+ * @param {string} value
14544
+ * @return {!proto.ocap.CreateTokenFactoryTx} returns this
14545
+ */
14546
+ proto.ocap.CreateTokenFactoryTx.prototype.setAddress = function(value) {
14547
+ return jspb.Message.setProto3StringField(this, 1, value);
14548
+ };
14549
+
14550
+
14551
+ /**
14552
+ * optional uint32 fee_rate = 2;
14553
+ * @return {number}
14554
+ */
14555
+ proto.ocap.CreateTokenFactoryTx.prototype.getFeeRate = function() {
14556
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
14557
+ };
14558
+
14559
+
14560
+ /**
14561
+ * @param {number} value
14562
+ * @return {!proto.ocap.CreateTokenFactoryTx} returns this
14563
+ */
14564
+ proto.ocap.CreateTokenFactoryTx.prototype.setFeeRate = function(value) {
14565
+ return jspb.Message.setProto3IntField(this, 2, value);
14566
+ };
14567
+
14568
+
14569
+ /**
14570
+ * optional TokenSymbol token = 3;
14571
+ * @return {?proto.ocap.TokenSymbol}
14572
+ */
14573
+ proto.ocap.CreateTokenFactoryTx.prototype.getToken = function() {
14574
+ return /** @type{?proto.ocap.TokenSymbol} */ (
14575
+ jspb.Message.getWrapperField(this, type_pb.TokenSymbol, 3));
14576
+ };
14577
+
14578
+
14579
+ /**
14580
+ * @param {?proto.ocap.TokenSymbol|undefined} value
14581
+ * @return {!proto.ocap.CreateTokenFactoryTx} returns this
14582
+ */
14583
+ proto.ocap.CreateTokenFactoryTx.prototype.setToken = function(value) {
14584
+ return jspb.Message.setWrapperField(this, 3, value);
14585
+ };
14586
+
14587
+
14588
+ /**
14589
+ * Clears the message field making it undefined.
14590
+ * @return {!proto.ocap.CreateTokenFactoryTx} returns this
14591
+ */
14592
+ proto.ocap.CreateTokenFactoryTx.prototype.clearToken = function() {
14593
+ return this.setToken(undefined);
14594
+ };
14595
+
14596
+
14597
+ /**
14598
+ * Returns whether this field is set.
14599
+ * @return {boolean}
14600
+ */
14601
+ proto.ocap.CreateTokenFactoryTx.prototype.hasToken = function() {
14602
+ return jspb.Message.getField(this, 3) != null;
14603
+ };
14604
+
14605
+
14606
+ /**
14607
+ * optional string reserve_address = 4;
14608
+ * @return {string}
14609
+ */
14610
+ proto.ocap.CreateTokenFactoryTx.prototype.getReserveAddress = function() {
14611
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
14612
+ };
14613
+
14614
+
14615
+ /**
14616
+ * @param {string} value
14617
+ * @return {!proto.ocap.CreateTokenFactoryTx} returns this
14618
+ */
14619
+ proto.ocap.CreateTokenFactoryTx.prototype.setReserveAddress = function(value) {
14620
+ return jspb.Message.setProto3StringField(this, 4, value);
14621
+ };
14622
+
14623
+
14624
+ /**
14625
+ * optional CurveConfig curve = 5;
14626
+ * @return {?proto.ocap.CurveConfig}
14627
+ */
14628
+ proto.ocap.CreateTokenFactoryTx.prototype.getCurve = function() {
14629
+ return /** @type{?proto.ocap.CurveConfig} */ (
14630
+ jspb.Message.getWrapperField(this, type_pb.CurveConfig, 5));
14631
+ };
14632
+
14633
+
14634
+ /**
14635
+ * @param {?proto.ocap.CurveConfig|undefined} value
14636
+ * @return {!proto.ocap.CreateTokenFactoryTx} returns this
14637
+ */
14638
+ proto.ocap.CreateTokenFactoryTx.prototype.setCurve = function(value) {
14639
+ return jspb.Message.setWrapperField(this, 5, value);
14640
+ };
14641
+
14642
+
14643
+ /**
14644
+ * Clears the message field making it undefined.
14645
+ * @return {!proto.ocap.CreateTokenFactoryTx} returns this
14646
+ */
14647
+ proto.ocap.CreateTokenFactoryTx.prototype.clearCurve = function() {
14648
+ return this.setCurve(undefined);
14649
+ };
14650
+
14651
+
14652
+ /**
14653
+ * Returns whether this field is set.
14654
+ * @return {boolean}
14655
+ */
14656
+ proto.ocap.CreateTokenFactoryTx.prototype.hasCurve = function() {
14657
+ return jspb.Message.getField(this, 5) != null;
14658
+ };
14659
+
14660
+
14661
+ /**
14662
+ * optional google.protobuf.Any data = 50;
14663
+ * @return {?proto.google.protobuf.Any}
14664
+ */
14665
+ proto.ocap.CreateTokenFactoryTx.prototype.getData = function() {
14666
+ return /** @type{?proto.google.protobuf.Any} */ (
14667
+ jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 50));
14668
+ };
14669
+
14670
+
14671
+ /**
14672
+ * @param {?proto.google.protobuf.Any|undefined} value
14673
+ * @return {!proto.ocap.CreateTokenFactoryTx} returns this
14674
+ */
14675
+ proto.ocap.CreateTokenFactoryTx.prototype.setData = function(value) {
14676
+ return jspb.Message.setWrapperField(this, 50, value);
14677
+ };
14678
+
14679
+
14680
+ /**
14681
+ * Clears the message field making it undefined.
14682
+ * @return {!proto.ocap.CreateTokenFactoryTx} returns this
14683
+ */
14684
+ proto.ocap.CreateTokenFactoryTx.prototype.clearData = function() {
14685
+ return this.setData(undefined);
14686
+ };
14687
+
14688
+
14689
+ /**
14690
+ * Returns whether this field is set.
14691
+ * @return {boolean}
14692
+ */
14693
+ proto.ocap.CreateTokenFactoryTx.prototype.hasData = function() {
14694
+ return jspb.Message.getField(this, 50) != null;
14695
+ };
14696
+
14697
+
14698
+
14699
+
14700
+
14701
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14702
+ /**
14703
+ * Creates an object representation of this proto.
14704
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14705
+ * Optional fields that are not set will be set to undefined.
14706
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14707
+ * For the list of reserved names please see:
14708
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14709
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14710
+ * JSPB instance for transitional soy proto support:
14711
+ * http://goto/soy-param-migration
14712
+ * @return {!Object}
14713
+ */
14714
+ proto.ocap.UpdateTokenFactoryTx.prototype.toObject = function(opt_includeInstance) {
14715
+ return proto.ocap.UpdateTokenFactoryTx.toObject(opt_includeInstance, this);
14716
+ };
14717
+
14718
+
14719
+ /**
14720
+ * Static version of the {@see toObject} method.
14721
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14722
+ * the JSPB instance for transitional soy proto support:
14723
+ * http://goto/soy-param-migration
14724
+ * @param {!proto.ocap.UpdateTokenFactoryTx} msg The msg instance to transform.
14725
+ * @return {!Object}
14726
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14727
+ */
14728
+ proto.ocap.UpdateTokenFactoryTx.toObject = function(includeInstance, msg) {
14729
+ var f, obj = {
14730
+ address: jspb.Message.getFieldWithDefault(msg, 1, ""),
14731
+ feeRate: jspb.Message.getFieldWithDefault(msg, 2, 0),
14732
+ data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
14733
+ };
14734
+
14735
+ if (includeInstance) {
14736
+ obj.$jspbMessageInstance = msg;
14737
+ }
14738
+ return obj;
14739
+ };
14740
+ }
14741
+
14742
+
14743
+ /**
14744
+ * Deserializes binary data (in protobuf wire format).
14745
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
14746
+ * @return {!proto.ocap.UpdateTokenFactoryTx}
14747
+ */
14748
+ proto.ocap.UpdateTokenFactoryTx.deserializeBinary = function(bytes) {
14749
+ var reader = new jspb.BinaryReader(bytes);
14750
+ var msg = new proto.ocap.UpdateTokenFactoryTx;
14751
+ return proto.ocap.UpdateTokenFactoryTx.deserializeBinaryFromReader(msg, reader);
14752
+ };
14753
+
14754
+
14755
+ /**
14756
+ * Deserializes binary data (in protobuf wire format) from the
14757
+ * given reader into the given message object.
14758
+ * @param {!proto.ocap.UpdateTokenFactoryTx} msg The message object to deserialize into.
14759
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14760
+ * @return {!proto.ocap.UpdateTokenFactoryTx}
14761
+ */
14762
+ proto.ocap.UpdateTokenFactoryTx.deserializeBinaryFromReader = function(msg, reader) {
14763
+ while (reader.nextField()) {
14764
+ if (reader.isEndGroup()) {
14765
+ break;
14766
+ }
14767
+ var field = reader.getFieldNumber();
14768
+ switch (field) {
14769
+ case 1:
14770
+ var value = /** @type {string} */ (reader.readString());
14771
+ msg.setAddress(value);
14772
+ break;
14773
+ case 2:
14774
+ var value = /** @type {number} */ (reader.readUint32());
14775
+ msg.setFeeRate(value);
14776
+ break;
14777
+ case 50:
14778
+ var value = new google_protobuf_any_pb.Any;
14779
+ reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
14780
+ msg.setData(value);
14781
+ break;
14782
+ default:
14783
+ reader.skipField();
14784
+ break;
14785
+ }
14786
+ }
14787
+ return msg;
14788
+ };
14789
+
14790
+
14791
+ /**
14792
+ * Serializes the message to binary data (in protobuf wire format).
14793
+ * @return {!Uint8Array}
14794
+ */
14795
+ proto.ocap.UpdateTokenFactoryTx.prototype.serializeBinary = function() {
14796
+ var writer = new jspb.BinaryWriter();
14797
+ proto.ocap.UpdateTokenFactoryTx.serializeBinaryToWriter(this, writer);
14798
+ return writer.getResultBuffer();
14799
+ };
14800
+
14801
+
14802
+ /**
14803
+ * Serializes the given message to binary data (in protobuf wire
14804
+ * format), writing to the given BinaryWriter.
14805
+ * @param {!proto.ocap.UpdateTokenFactoryTx} message
14806
+ * @param {!jspb.BinaryWriter} writer
14807
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14808
+ */
14809
+ proto.ocap.UpdateTokenFactoryTx.serializeBinaryToWriter = function(message, writer) {
14810
+ var f = undefined;
14811
+ f = message.getAddress();
14812
+ if (f.length > 0) {
14813
+ writer.writeString(
14814
+ 1,
14815
+ f
14816
+ );
14817
+ }
14818
+ f = message.getFeeRate();
14819
+ if (f !== 0) {
14820
+ writer.writeUint32(
14821
+ 2,
14822
+ f
14823
+ );
14824
+ }
14825
+ f = message.getData();
14826
+ if (f != null) {
14827
+ writer.writeMessage(
14828
+ 50,
14829
+ f,
14830
+ google_protobuf_any_pb.Any.serializeBinaryToWriter
14831
+ );
14832
+ }
14833
+ };
14834
+
14835
+
14836
+ /**
14837
+ * optional string address = 1;
14838
+ * @return {string}
14839
+ */
14840
+ proto.ocap.UpdateTokenFactoryTx.prototype.getAddress = function() {
14841
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
14842
+ };
14843
+
14844
+
14845
+ /**
14846
+ * @param {string} value
14847
+ * @return {!proto.ocap.UpdateTokenFactoryTx} returns this
14848
+ */
14849
+ proto.ocap.UpdateTokenFactoryTx.prototype.setAddress = function(value) {
14850
+ return jspb.Message.setProto3StringField(this, 1, value);
14851
+ };
14852
+
14853
+
14854
+ /**
14855
+ * optional uint32 fee_rate = 2;
14856
+ * @return {number}
14857
+ */
14858
+ proto.ocap.UpdateTokenFactoryTx.prototype.getFeeRate = function() {
14859
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
14860
+ };
14861
+
14862
+
14863
+ /**
14864
+ * @param {number} value
14865
+ * @return {!proto.ocap.UpdateTokenFactoryTx} returns this
14866
+ */
14867
+ proto.ocap.UpdateTokenFactoryTx.prototype.setFeeRate = function(value) {
14868
+ return jspb.Message.setProto3IntField(this, 2, value);
14869
+ };
14870
+
14871
+
14872
+ /**
14873
+ * optional google.protobuf.Any data = 50;
14874
+ * @return {?proto.google.protobuf.Any}
14875
+ */
14876
+ proto.ocap.UpdateTokenFactoryTx.prototype.getData = function() {
14877
+ return /** @type{?proto.google.protobuf.Any} */ (
14878
+ jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 50));
14879
+ };
14880
+
14881
+
14882
+ /**
14883
+ * @param {?proto.google.protobuf.Any|undefined} value
14884
+ * @return {!proto.ocap.UpdateTokenFactoryTx} returns this
14885
+ */
14886
+ proto.ocap.UpdateTokenFactoryTx.prototype.setData = function(value) {
14887
+ return jspb.Message.setWrapperField(this, 50, value);
14888
+ };
14889
+
14890
+
14891
+ /**
14892
+ * Clears the message field making it undefined.
14893
+ * @return {!proto.ocap.UpdateTokenFactoryTx} returns this
14894
+ */
14895
+ proto.ocap.UpdateTokenFactoryTx.prototype.clearData = function() {
14896
+ return this.setData(undefined);
14897
+ };
14898
+
14899
+
14900
+ /**
14901
+ * Returns whether this field is set.
14902
+ * @return {boolean}
14903
+ */
14904
+ proto.ocap.UpdateTokenFactoryTx.prototype.hasData = function() {
14905
+ return jspb.Message.getField(this, 50) != null;
14906
+ };
14907
+
14908
+
14909
+
14910
+
14911
+
14912
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14913
+ /**
14914
+ * Creates an object representation of this proto.
14915
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14916
+ * Optional fields that are not set will be set to undefined.
14917
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14918
+ * For the list of reserved names please see:
14919
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14920
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14921
+ * JSPB instance for transitional soy proto support:
14922
+ * http://goto/soy-param-migration
14923
+ * @return {!Object}
14924
+ */
14925
+ proto.ocap.MintTokenTx.prototype.toObject = function(opt_includeInstance) {
14926
+ return proto.ocap.MintTokenTx.toObject(opt_includeInstance, this);
14927
+ };
14928
+
14929
+
14930
+ /**
14931
+ * Static version of the {@see toObject} method.
14932
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14933
+ * the JSPB instance for transitional soy proto support:
14934
+ * http://goto/soy-param-migration
14935
+ * @param {!proto.ocap.MintTokenTx} msg The msg instance to transform.
14936
+ * @return {!Object}
14937
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14938
+ */
14939
+ proto.ocap.MintTokenTx.toObject = function(includeInstance, msg) {
14940
+ var f, obj = {
14941
+ tokenFactory: jspb.Message.getFieldWithDefault(msg, 1, ""),
14942
+ amount: jspb.Message.getFieldWithDefault(msg, 2, ""),
14943
+ maxReserve: jspb.Message.getFieldWithDefault(msg, 3, ""),
14944
+ receiver: jspb.Message.getFieldWithDefault(msg, 4, ""),
14945
+ data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
14946
+ };
14947
+
14948
+ if (includeInstance) {
14949
+ obj.$jspbMessageInstance = msg;
14950
+ }
14951
+ return obj;
14952
+ };
14953
+ }
14954
+
14955
+
14956
+ /**
14957
+ * Deserializes binary data (in protobuf wire format).
14958
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
14959
+ * @return {!proto.ocap.MintTokenTx}
14960
+ */
14961
+ proto.ocap.MintTokenTx.deserializeBinary = function(bytes) {
14962
+ var reader = new jspb.BinaryReader(bytes);
14963
+ var msg = new proto.ocap.MintTokenTx;
14964
+ return proto.ocap.MintTokenTx.deserializeBinaryFromReader(msg, reader);
14965
+ };
14966
+
14967
+
14968
+ /**
14969
+ * Deserializes binary data (in protobuf wire format) from the
14970
+ * given reader into the given message object.
14971
+ * @param {!proto.ocap.MintTokenTx} msg The message object to deserialize into.
14972
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14973
+ * @return {!proto.ocap.MintTokenTx}
14974
+ */
14975
+ proto.ocap.MintTokenTx.deserializeBinaryFromReader = function(msg, reader) {
14976
+ while (reader.nextField()) {
14977
+ if (reader.isEndGroup()) {
14978
+ break;
14979
+ }
14980
+ var field = reader.getFieldNumber();
14981
+ switch (field) {
14982
+ case 1:
14983
+ var value = /** @type {string} */ (reader.readString());
14984
+ msg.setTokenFactory(value);
14985
+ break;
14986
+ case 2:
14987
+ var value = /** @type {string} */ (reader.readString());
14988
+ msg.setAmount(value);
14989
+ break;
14990
+ case 3:
14991
+ var value = /** @type {string} */ (reader.readString());
14992
+ msg.setMaxReserve(value);
14993
+ break;
14994
+ case 4:
14995
+ var value = /** @type {string} */ (reader.readString());
14996
+ msg.setReceiver(value);
14997
+ break;
14998
+ case 50:
14999
+ var value = new google_protobuf_any_pb.Any;
15000
+ reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
15001
+ msg.setData(value);
15002
+ break;
15003
+ default:
15004
+ reader.skipField();
15005
+ break;
15006
+ }
15007
+ }
15008
+ return msg;
15009
+ };
15010
+
15011
+
15012
+ /**
15013
+ * Serializes the message to binary data (in protobuf wire format).
15014
+ * @return {!Uint8Array}
15015
+ */
15016
+ proto.ocap.MintTokenTx.prototype.serializeBinary = function() {
15017
+ var writer = new jspb.BinaryWriter();
15018
+ proto.ocap.MintTokenTx.serializeBinaryToWriter(this, writer);
15019
+ return writer.getResultBuffer();
15020
+ };
15021
+
15022
+
15023
+ /**
15024
+ * Serializes the given message to binary data (in protobuf wire
15025
+ * format), writing to the given BinaryWriter.
15026
+ * @param {!proto.ocap.MintTokenTx} message
15027
+ * @param {!jspb.BinaryWriter} writer
15028
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15029
+ */
15030
+ proto.ocap.MintTokenTx.serializeBinaryToWriter = function(message, writer) {
15031
+ var f = undefined;
15032
+ f = message.getTokenFactory();
15033
+ if (f.length > 0) {
15034
+ writer.writeString(
15035
+ 1,
15036
+ f
15037
+ );
15038
+ }
15039
+ f = message.getAmount();
15040
+ if (f.length > 0) {
15041
+ writer.writeString(
15042
+ 2,
15043
+ f
15044
+ );
15045
+ }
15046
+ f = message.getMaxReserve();
15047
+ if (f.length > 0) {
15048
+ writer.writeString(
15049
+ 3,
15050
+ f
15051
+ );
15052
+ }
15053
+ f = message.getReceiver();
15054
+ if (f.length > 0) {
15055
+ writer.writeString(
15056
+ 4,
15057
+ f
15058
+ );
15059
+ }
15060
+ f = message.getData();
15061
+ if (f != null) {
15062
+ writer.writeMessage(
15063
+ 50,
15064
+ f,
15065
+ google_protobuf_any_pb.Any.serializeBinaryToWriter
15066
+ );
15067
+ }
15068
+ };
15069
+
15070
+
15071
+ /**
15072
+ * optional string token_factory = 1;
15073
+ * @return {string}
15074
+ */
15075
+ proto.ocap.MintTokenTx.prototype.getTokenFactory = function() {
15076
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15077
+ };
15078
+
15079
+
15080
+ /**
15081
+ * @param {string} value
15082
+ * @return {!proto.ocap.MintTokenTx} returns this
15083
+ */
15084
+ proto.ocap.MintTokenTx.prototype.setTokenFactory = function(value) {
15085
+ return jspb.Message.setProto3StringField(this, 1, value);
15086
+ };
15087
+
15088
+
15089
+ /**
15090
+ * optional string amount = 2;
15091
+ * @return {string}
15092
+ */
15093
+ proto.ocap.MintTokenTx.prototype.getAmount = function() {
15094
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
15095
+ };
15096
+
15097
+
15098
+ /**
15099
+ * @param {string} value
15100
+ * @return {!proto.ocap.MintTokenTx} returns this
15101
+ */
15102
+ proto.ocap.MintTokenTx.prototype.setAmount = function(value) {
15103
+ return jspb.Message.setProto3StringField(this, 2, value);
15104
+ };
15105
+
15106
+
15107
+ /**
15108
+ * optional string max_reserve = 3;
15109
+ * @return {string}
15110
+ */
15111
+ proto.ocap.MintTokenTx.prototype.getMaxReserve = function() {
15112
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
15113
+ };
15114
+
15115
+
15116
+ /**
15117
+ * @param {string} value
15118
+ * @return {!proto.ocap.MintTokenTx} returns this
15119
+ */
15120
+ proto.ocap.MintTokenTx.prototype.setMaxReserve = function(value) {
15121
+ return jspb.Message.setProto3StringField(this, 3, value);
15122
+ };
15123
+
15124
+
15125
+ /**
15126
+ * optional string receiver = 4;
15127
+ * @return {string}
15128
+ */
15129
+ proto.ocap.MintTokenTx.prototype.getReceiver = function() {
15130
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
15131
+ };
15132
+
15133
+
15134
+ /**
15135
+ * @param {string} value
15136
+ * @return {!proto.ocap.MintTokenTx} returns this
15137
+ */
15138
+ proto.ocap.MintTokenTx.prototype.setReceiver = function(value) {
15139
+ return jspb.Message.setProto3StringField(this, 4, value);
15140
+ };
15141
+
15142
+
15143
+ /**
15144
+ * optional google.protobuf.Any data = 50;
15145
+ * @return {?proto.google.protobuf.Any}
15146
+ */
15147
+ proto.ocap.MintTokenTx.prototype.getData = function() {
15148
+ return /** @type{?proto.google.protobuf.Any} */ (
15149
+ jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 50));
15150
+ };
15151
+
15152
+
15153
+ /**
15154
+ * @param {?proto.google.protobuf.Any|undefined} value
15155
+ * @return {!proto.ocap.MintTokenTx} returns this
15156
+ */
15157
+ proto.ocap.MintTokenTx.prototype.setData = function(value) {
15158
+ return jspb.Message.setWrapperField(this, 50, value);
15159
+ };
15160
+
15161
+
15162
+ /**
15163
+ * Clears the message field making it undefined.
15164
+ * @return {!proto.ocap.MintTokenTx} returns this
15165
+ */
15166
+ proto.ocap.MintTokenTx.prototype.clearData = function() {
15167
+ return this.setData(undefined);
15168
+ };
15169
+
15170
+
15171
+ /**
15172
+ * Returns whether this field is set.
15173
+ * @return {boolean}
15174
+ */
15175
+ proto.ocap.MintTokenTx.prototype.hasData = function() {
15176
+ return jspb.Message.getField(this, 50) != null;
15177
+ };
15178
+
15179
+
15180
+
15181
+
15182
+
15183
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15184
+ /**
15185
+ * Creates an object representation of this proto.
15186
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15187
+ * Optional fields that are not set will be set to undefined.
15188
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15189
+ * For the list of reserved names please see:
15190
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15191
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15192
+ * JSPB instance for transitional soy proto support:
15193
+ * http://goto/soy-param-migration
15194
+ * @return {!Object}
15195
+ */
15196
+ proto.ocap.BurnTokenTx.prototype.toObject = function(opt_includeInstance) {
15197
+ return proto.ocap.BurnTokenTx.toObject(opt_includeInstance, this);
15198
+ };
15199
+
15200
+
15201
+ /**
15202
+ * Static version of the {@see toObject} method.
15203
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15204
+ * the JSPB instance for transitional soy proto support:
15205
+ * http://goto/soy-param-migration
15206
+ * @param {!proto.ocap.BurnTokenTx} msg The msg instance to transform.
15207
+ * @return {!Object}
15208
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15209
+ */
15210
+ proto.ocap.BurnTokenTx.toObject = function(includeInstance, msg) {
15211
+ var f, obj = {
15212
+ tokenFactory: jspb.Message.getFieldWithDefault(msg, 1, ""),
15213
+ amount: jspb.Message.getFieldWithDefault(msg, 2, ""),
15214
+ minReserve: jspb.Message.getFieldWithDefault(msg, 3, ""),
15215
+ receiver: jspb.Message.getFieldWithDefault(msg, 4, ""),
15216
+ data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
15217
+ };
15218
+
15219
+ if (includeInstance) {
15220
+ obj.$jspbMessageInstance = msg;
15221
+ }
15222
+ return obj;
15223
+ };
15224
+ }
15225
+
15226
+
15227
+ /**
15228
+ * Deserializes binary data (in protobuf wire format).
15229
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15230
+ * @return {!proto.ocap.BurnTokenTx}
15231
+ */
15232
+ proto.ocap.BurnTokenTx.deserializeBinary = function(bytes) {
15233
+ var reader = new jspb.BinaryReader(bytes);
15234
+ var msg = new proto.ocap.BurnTokenTx;
15235
+ return proto.ocap.BurnTokenTx.deserializeBinaryFromReader(msg, reader);
15236
+ };
15237
+
15238
+
15239
+ /**
15240
+ * Deserializes binary data (in protobuf wire format) from the
15241
+ * given reader into the given message object.
15242
+ * @param {!proto.ocap.BurnTokenTx} msg The message object to deserialize into.
15243
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15244
+ * @return {!proto.ocap.BurnTokenTx}
15245
+ */
15246
+ proto.ocap.BurnTokenTx.deserializeBinaryFromReader = function(msg, reader) {
15247
+ while (reader.nextField()) {
15248
+ if (reader.isEndGroup()) {
15249
+ break;
15250
+ }
15251
+ var field = reader.getFieldNumber();
15252
+ switch (field) {
15253
+ case 1:
15254
+ var value = /** @type {string} */ (reader.readString());
15255
+ msg.setTokenFactory(value);
15256
+ break;
15257
+ case 2:
15258
+ var value = /** @type {string} */ (reader.readString());
15259
+ msg.setAmount(value);
15260
+ break;
15261
+ case 3:
15262
+ var value = /** @type {string} */ (reader.readString());
15263
+ msg.setMinReserve(value);
15264
+ break;
15265
+ case 4:
15266
+ var value = /** @type {string} */ (reader.readString());
15267
+ msg.setReceiver(value);
15268
+ break;
15269
+ case 50:
15270
+ var value = new google_protobuf_any_pb.Any;
15271
+ reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
15272
+ msg.setData(value);
15273
+ break;
15274
+ default:
15275
+ reader.skipField();
15276
+ break;
15277
+ }
15278
+ }
15279
+ return msg;
15280
+ };
15281
+
15282
+
15283
+ /**
15284
+ * Serializes the message to binary data (in protobuf wire format).
15285
+ * @return {!Uint8Array}
15286
+ */
15287
+ proto.ocap.BurnTokenTx.prototype.serializeBinary = function() {
15288
+ var writer = new jspb.BinaryWriter();
15289
+ proto.ocap.BurnTokenTx.serializeBinaryToWriter(this, writer);
15290
+ return writer.getResultBuffer();
15291
+ };
15292
+
15293
+
15294
+ /**
15295
+ * Serializes the given message to binary data (in protobuf wire
15296
+ * format), writing to the given BinaryWriter.
15297
+ * @param {!proto.ocap.BurnTokenTx} message
15298
+ * @param {!jspb.BinaryWriter} writer
15299
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15300
+ */
15301
+ proto.ocap.BurnTokenTx.serializeBinaryToWriter = function(message, writer) {
15302
+ var f = undefined;
15303
+ f = message.getTokenFactory();
15304
+ if (f.length > 0) {
15305
+ writer.writeString(
15306
+ 1,
15307
+ f
15308
+ );
15309
+ }
15310
+ f = message.getAmount();
15311
+ if (f.length > 0) {
15312
+ writer.writeString(
15313
+ 2,
15314
+ f
15315
+ );
15316
+ }
15317
+ f = message.getMinReserve();
15318
+ if (f.length > 0) {
15319
+ writer.writeString(
15320
+ 3,
15321
+ f
15322
+ );
15323
+ }
15324
+ f = message.getReceiver();
15325
+ if (f.length > 0) {
15326
+ writer.writeString(
15327
+ 4,
15328
+ f
15329
+ );
15330
+ }
15331
+ f = message.getData();
15332
+ if (f != null) {
15333
+ writer.writeMessage(
15334
+ 50,
15335
+ f,
15336
+ google_protobuf_any_pb.Any.serializeBinaryToWriter
15337
+ );
15338
+ }
15339
+ };
15340
+
15341
+
15342
+ /**
15343
+ * optional string token_factory = 1;
15344
+ * @return {string}
15345
+ */
15346
+ proto.ocap.BurnTokenTx.prototype.getTokenFactory = function() {
15347
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15348
+ };
15349
+
15350
+
15351
+ /**
15352
+ * @param {string} value
15353
+ * @return {!proto.ocap.BurnTokenTx} returns this
15354
+ */
15355
+ proto.ocap.BurnTokenTx.prototype.setTokenFactory = function(value) {
15356
+ return jspb.Message.setProto3StringField(this, 1, value);
15357
+ };
15358
+
15359
+
15360
+ /**
15361
+ * optional string amount = 2;
15362
+ * @return {string}
15363
+ */
15364
+ proto.ocap.BurnTokenTx.prototype.getAmount = function() {
15365
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
15366
+ };
15367
+
15368
+
15369
+ /**
15370
+ * @param {string} value
15371
+ * @return {!proto.ocap.BurnTokenTx} returns this
15372
+ */
15373
+ proto.ocap.BurnTokenTx.prototype.setAmount = function(value) {
15374
+ return jspb.Message.setProto3StringField(this, 2, value);
15375
+ };
15376
+
15377
+
15378
+ /**
15379
+ * optional string min_reserve = 3;
15380
+ * @return {string}
15381
+ */
15382
+ proto.ocap.BurnTokenTx.prototype.getMinReserve = function() {
15383
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
15384
+ };
15385
+
15386
+
15387
+ /**
15388
+ * @param {string} value
15389
+ * @return {!proto.ocap.BurnTokenTx} returns this
15390
+ */
15391
+ proto.ocap.BurnTokenTx.prototype.setMinReserve = function(value) {
15392
+ return jspb.Message.setProto3StringField(this, 3, value);
15393
+ };
15394
+
15395
+
15396
+ /**
15397
+ * optional string receiver = 4;
15398
+ * @return {string}
15399
+ */
15400
+ proto.ocap.BurnTokenTx.prototype.getReceiver = function() {
15401
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
15402
+ };
15403
+
15404
+
15405
+ /**
15406
+ * @param {string} value
15407
+ * @return {!proto.ocap.BurnTokenTx} returns this
15408
+ */
15409
+ proto.ocap.BurnTokenTx.prototype.setReceiver = function(value) {
15410
+ return jspb.Message.setProto3StringField(this, 4, value);
15411
+ };
15412
+
15413
+
15414
+ /**
15415
+ * optional google.protobuf.Any data = 50;
15416
+ * @return {?proto.google.protobuf.Any}
15417
+ */
15418
+ proto.ocap.BurnTokenTx.prototype.getData = function() {
15419
+ return /** @type{?proto.google.protobuf.Any} */ (
15420
+ jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 50));
15421
+ };
15422
+
15423
+
15424
+ /**
15425
+ * @param {?proto.google.protobuf.Any|undefined} value
15426
+ * @return {!proto.ocap.BurnTokenTx} returns this
15427
+ */
15428
+ proto.ocap.BurnTokenTx.prototype.setData = function(value) {
15429
+ return jspb.Message.setWrapperField(this, 50, value);
15430
+ };
15431
+
15432
+
15433
+ /**
15434
+ * Clears the message field making it undefined.
15435
+ * @return {!proto.ocap.BurnTokenTx} returns this
15436
+ */
15437
+ proto.ocap.BurnTokenTx.prototype.clearData = function() {
15438
+ return this.setData(undefined);
15439
+ };
15440
+
15441
+
15442
+ /**
15443
+ * Returns whether this field is set.
15444
+ * @return {boolean}
15445
+ */
15446
+ proto.ocap.BurnTokenTx.prototype.hasData = function() {
15447
+ return jspb.Message.getField(this, 50) != null;
15448
+ };
15449
+
15450
+
15451
+
15452
+ /**
15453
+ * Oneof group definitions for this message. Each group defines the field
15454
+ * numbers belonging to that group. When of these fields' value is set, all
15455
+ * other fields in the group are cleared. During deserialization, if multiple
15456
+ * fields are encountered for a group, only the last value seen will be kept.
15457
+ * @private {!Array<!Array<number>>}
15458
+ * @const
15459
+ */
15460
+ proto.ocap.ItxStub.oneofGroups_ = [[1,2,3,4,5,6,7,10,12,13,14,15,20,21,22,23,24,25,26,30,31,32,33,40,41,42,43,44,49,50,51,52,53,54,55,56,57,58,60]];
15461
+
15462
+ /**
15463
+ * @enum {number}
15464
+ */
15465
+ proto.ocap.ItxStub.ValueCase = {
15466
+ VALUE_NOT_SET: 0,
15467
+ DECLARE: 1,
15468
+ DELEGATE: 2,
15469
+ REVOKE_DELEGATE: 3,
15470
+ ACCOUNT_MIGRATE: 4,
15471
+ CREATE_ASSET: 5,
15472
+ UPDATE_ASSET: 6,
15473
+ CONSUME_ASSET: 7,
15474
+ EXCHANGE: 10,
15475
+ EXCHANGE_V2: 12,
15476
+ TRANSFER: 13,
15477
+ TRANSFER_V2: 14,
15478
+ TRANSFER_V3: 15,
15479
+ CREATE_TOKEN: 20,
15480
+ DEPOSIT_TOKEN: 21,
15481
+ WITHDRAW_TOKEN: 22,
15482
+ CREATE_TOKEN_FACTORY: 23,
15483
+ UPDATE_TOKEN_FACTORY: 24,
15484
+ MINT_TOKEN: 25,
15485
+ BURN_TOKEN: 26,
15486
+ CREATE_FACTORY: 30,
15487
+ ACQUIRE_ASSET_V2: 31,
15488
+ ACQUIRE_ASSET_V3: 32,
15489
+ MINT_ASSET: 33,
15490
+ STAKE: 40,
15491
+ REVOKE_STAKE: 41,
15492
+ CLAIM_STAKE: 42,
15493
+ SLASH_STAKE: 43,
15494
+ RETURN_STAKE: 44,
15495
+ UPGRADE_NODE: 49,
15496
+ CREATE_ROLLUP: 50,
15497
+ UPDATE_ROLLUP: 51,
15498
+ JOIN_ROLLUP: 52,
15499
+ LEAVE_ROLLUP: 53,
15500
+ CREATE_ROLLUP_BLOCK: 54,
15501
+ CLAIM_BLOCK_REWARD: 55,
15502
+ PAUSE_ROLLUP: 56,
15503
+ RESUME_ROLLUP: 57,
15504
+ MIGRATE_ROLLUP: 58,
15505
+ CLOSE_ROLLUP: 60
15506
+ };
15507
+
15508
+ /**
15509
+ * @return {proto.ocap.ItxStub.ValueCase}
15510
+ */
15511
+ proto.ocap.ItxStub.prototype.getValueCase = function() {
15512
+ return /** @type {proto.ocap.ItxStub.ValueCase} */(jspb.Message.computeOneofCase(this, proto.ocap.ItxStub.oneofGroups_[0]));
15513
+ };
15514
+
15515
+
15516
+
15517
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15518
+ /**
15519
+ * Creates an object representation of this proto.
15520
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15521
+ * Optional fields that are not set will be set to undefined.
15522
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15523
+ * For the list of reserved names please see:
15524
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15525
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15526
+ * JSPB instance for transitional soy proto support:
15527
+ * http://goto/soy-param-migration
15528
+ * @return {!Object}
15529
+ */
15530
+ proto.ocap.ItxStub.prototype.toObject = function(opt_includeInstance) {
15531
+ return proto.ocap.ItxStub.toObject(opt_includeInstance, this);
15532
+ };
15533
+
15534
+
15535
+ /**
15536
+ * Static version of the {@see toObject} method.
15537
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15538
+ * the JSPB instance for transitional soy proto support:
15539
+ * http://goto/soy-param-migration
15540
+ * @param {!proto.ocap.ItxStub} msg The msg instance to transform.
15541
+ * @return {!Object}
15542
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15543
+ */
15544
+ proto.ocap.ItxStub.toObject = function(includeInstance, msg) {
15545
+ var f, obj = {
15546
+ declare: (f = msg.getDeclare()) && proto.ocap.DeclareTx.toObject(includeInstance, f),
15547
+ delegate: (f = msg.getDelegate()) && proto.ocap.DelegateTx.toObject(includeInstance, f),
15548
+ revokeDelegate: (f = msg.getRevokeDelegate()) && proto.ocap.RevokeDelegateTx.toObject(includeInstance, f),
15549
+ accountMigrate: (f = msg.getAccountMigrate()) && proto.ocap.AccountMigrateTx.toObject(includeInstance, f),
15550
+ createAsset: (f = msg.getCreateAsset()) && proto.ocap.CreateAssetTx.toObject(includeInstance, f),
15551
+ updateAsset: (f = msg.getUpdateAsset()) && proto.ocap.UpdateAssetTx.toObject(includeInstance, f),
15552
+ consumeAsset: (f = msg.getConsumeAsset()) && proto.ocap.ConsumeAssetTx.toObject(includeInstance, f),
15553
+ exchange: (f = msg.getExchange()) && proto.ocap.ExchangeTx.toObject(includeInstance, f),
15554
+ exchangeV2: (f = msg.getExchangeV2()) && proto.ocap.ExchangeV2Tx.toObject(includeInstance, f),
15555
+ transfer: (f = msg.getTransfer()) && proto.ocap.TransferTx.toObject(includeInstance, f),
15556
+ transferV2: (f = msg.getTransferV2()) && proto.ocap.TransferV2Tx.toObject(includeInstance, f),
15557
+ transferV3: (f = msg.getTransferV3()) && proto.ocap.TransferV3Tx.toObject(includeInstance, f),
15558
+ createToken: (f = msg.getCreateToken()) && proto.ocap.CreateTokenTx.toObject(includeInstance, f),
15559
+ depositToken: (f = msg.getDepositToken()) && proto.ocap.DepositTokenV2Tx.toObject(includeInstance, f),
15560
+ withdrawToken: (f = msg.getWithdrawToken()) && proto.ocap.WithdrawTokenV2Tx.toObject(includeInstance, f),
15561
+ createTokenFactory: (f = msg.getCreateTokenFactory()) && proto.ocap.CreateTokenFactoryTx.toObject(includeInstance, f),
15562
+ updateTokenFactory: (f = msg.getUpdateTokenFactory()) && proto.ocap.UpdateTokenFactoryTx.toObject(includeInstance, f),
15563
+ mintToken: (f = msg.getMintToken()) && proto.ocap.MintTokenTx.toObject(includeInstance, f),
15564
+ burnToken: (f = msg.getBurnToken()) && proto.ocap.BurnTokenTx.toObject(includeInstance, f),
15565
+ createFactory: (f = msg.getCreateFactory()) && proto.ocap.CreateFactoryTx.toObject(includeInstance, f),
15566
+ acquireAssetV2: (f = msg.getAcquireAssetV2()) && proto.ocap.AcquireAssetV2Tx.toObject(includeInstance, f),
15567
+ acquireAssetV3: (f = msg.getAcquireAssetV3()) && proto.ocap.AcquireAssetV3Tx.toObject(includeInstance, f),
15568
+ mintAsset: (f = msg.getMintAsset()) && proto.ocap.MintAssetTx.toObject(includeInstance, f),
15569
+ stake: (f = msg.getStake()) && proto.ocap.StakeTx.toObject(includeInstance, f),
15570
+ revokeStake: (f = msg.getRevokeStake()) && proto.ocap.RevokeStakeTx.toObject(includeInstance, f),
15571
+ claimStake: (f = msg.getClaimStake()) && proto.ocap.ClaimStakeTx.toObject(includeInstance, f),
15572
+ slashStake: (f = msg.getSlashStake()) && proto.ocap.SlashStakeTx.toObject(includeInstance, f),
15573
+ returnStake: (f = msg.getReturnStake()) && proto.ocap.ReturnStakeTx.toObject(includeInstance, f),
15574
+ upgradeNode: (f = msg.getUpgradeNode()) && proto.ocap.UpgradeNodeTx.toObject(includeInstance, f),
15575
+ createRollup: (f = msg.getCreateRollup()) && proto.ocap.CreateRollupTx.toObject(includeInstance, f),
15576
+ updateRollup: (f = msg.getUpdateRollup()) && proto.ocap.UpdateRollupTx.toObject(includeInstance, f),
15577
+ joinRollup: (f = msg.getJoinRollup()) && proto.ocap.JoinRollupTx.toObject(includeInstance, f),
15578
+ leaveRollup: (f = msg.getLeaveRollup()) && proto.ocap.LeaveRollupTx.toObject(includeInstance, f),
15579
+ createRollupBlock: (f = msg.getCreateRollupBlock()) && proto.ocap.CreateRollupBlockTx.toObject(includeInstance, f),
15580
+ claimBlockReward: (f = msg.getClaimBlockReward()) && proto.ocap.ClaimBlockRewardTx.toObject(includeInstance, f),
15581
+ pauseRollup: (f = msg.getPauseRollup()) && proto.ocap.PauseRollupTx.toObject(includeInstance, f),
15582
+ resumeRollup: (f = msg.getResumeRollup()) && proto.ocap.ResumeRollupTx.toObject(includeInstance, f),
15583
+ migrateRollup: (f = msg.getMigrateRollup()) && proto.ocap.MigrateRollupTx.toObject(includeInstance, f),
15584
+ closeRollup: (f = msg.getCloseRollup()) && proto.ocap.CloseRollupTx.toObject(includeInstance, f)
15585
+ };
15586
+
15587
+ if (includeInstance) {
15588
+ obj.$jspbMessageInstance = msg;
15589
+ }
15590
+ return obj;
15591
+ };
15592
+ }
15593
+
15594
+
15595
+ /**
15596
+ * Deserializes binary data (in protobuf wire format).
15597
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15598
+ * @return {!proto.ocap.ItxStub}
15599
+ */
15600
+ proto.ocap.ItxStub.deserializeBinary = function(bytes) {
15601
+ var reader = new jspb.BinaryReader(bytes);
15602
+ var msg = new proto.ocap.ItxStub;
15603
+ return proto.ocap.ItxStub.deserializeBinaryFromReader(msg, reader);
15604
+ };
15605
+
15606
+
15607
+ /**
15608
+ * Deserializes binary data (in protobuf wire format) from the
15609
+ * given reader into the given message object.
15610
+ * @param {!proto.ocap.ItxStub} msg The message object to deserialize into.
15611
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15612
+ * @return {!proto.ocap.ItxStub}
15613
+ */
15614
+ proto.ocap.ItxStub.deserializeBinaryFromReader = function(msg, reader) {
15615
+ while (reader.nextField()) {
15616
+ if (reader.isEndGroup()) {
15617
+ break;
15618
+ }
15619
+ var field = reader.getFieldNumber();
15620
+ switch (field) {
15621
+ case 1:
15622
+ var value = new proto.ocap.DeclareTx;
15623
+ reader.readMessage(value,proto.ocap.DeclareTx.deserializeBinaryFromReader);
15624
+ msg.setDeclare(value);
15625
+ break;
15626
+ case 2:
15627
+ var value = new proto.ocap.DelegateTx;
15628
+ reader.readMessage(value,proto.ocap.DelegateTx.deserializeBinaryFromReader);
15629
+ msg.setDelegate(value);
15630
+ break;
15631
+ case 3:
15632
+ var value = new proto.ocap.RevokeDelegateTx;
15633
+ reader.readMessage(value,proto.ocap.RevokeDelegateTx.deserializeBinaryFromReader);
15634
+ msg.setRevokeDelegate(value);
15635
+ break;
15636
+ case 4:
15637
+ var value = new proto.ocap.AccountMigrateTx;
15638
+ reader.readMessage(value,proto.ocap.AccountMigrateTx.deserializeBinaryFromReader);
15639
+ msg.setAccountMigrate(value);
15640
+ break;
15641
+ case 5:
15642
+ var value = new proto.ocap.CreateAssetTx;
15643
+ reader.readMessage(value,proto.ocap.CreateAssetTx.deserializeBinaryFromReader);
15644
+ msg.setCreateAsset(value);
15645
+ break;
15646
+ case 6:
15647
+ var value = new proto.ocap.UpdateAssetTx;
15648
+ reader.readMessage(value,proto.ocap.UpdateAssetTx.deserializeBinaryFromReader);
15649
+ msg.setUpdateAsset(value);
15650
+ break;
15651
+ case 7:
15652
+ var value = new proto.ocap.ConsumeAssetTx;
15653
+ reader.readMessage(value,proto.ocap.ConsumeAssetTx.deserializeBinaryFromReader);
15654
+ msg.setConsumeAsset(value);
15655
+ break;
15656
+ case 10:
15657
+ var value = new proto.ocap.ExchangeTx;
15658
+ reader.readMessage(value,proto.ocap.ExchangeTx.deserializeBinaryFromReader);
15659
+ msg.setExchange(value);
15660
+ break;
15661
+ case 12:
15662
+ var value = new proto.ocap.ExchangeV2Tx;
15663
+ reader.readMessage(value,proto.ocap.ExchangeV2Tx.deserializeBinaryFromReader);
15664
+ msg.setExchangeV2(value);
15665
+ break;
15666
+ case 13:
15667
+ var value = new proto.ocap.TransferTx;
15668
+ reader.readMessage(value,proto.ocap.TransferTx.deserializeBinaryFromReader);
15669
+ msg.setTransfer(value);
15670
+ break;
15671
+ case 14:
15672
+ var value = new proto.ocap.TransferV2Tx;
15673
+ reader.readMessage(value,proto.ocap.TransferV2Tx.deserializeBinaryFromReader);
15674
+ msg.setTransferV2(value);
15675
+ break;
15676
+ case 15:
15677
+ var value = new proto.ocap.TransferV3Tx;
15678
+ reader.readMessage(value,proto.ocap.TransferV3Tx.deserializeBinaryFromReader);
15679
+ msg.setTransferV3(value);
15680
+ break;
15681
+ case 20:
15682
+ var value = new proto.ocap.CreateTokenTx;
15683
+ reader.readMessage(value,proto.ocap.CreateTokenTx.deserializeBinaryFromReader);
15684
+ msg.setCreateToken(value);
15685
+ break;
15686
+ case 21:
15687
+ var value = new proto.ocap.DepositTokenV2Tx;
15688
+ reader.readMessage(value,proto.ocap.DepositTokenV2Tx.deserializeBinaryFromReader);
15689
+ msg.setDepositToken(value);
15690
+ break;
15691
+ case 22:
15692
+ var value = new proto.ocap.WithdrawTokenV2Tx;
15693
+ reader.readMessage(value,proto.ocap.WithdrawTokenV2Tx.deserializeBinaryFromReader);
15694
+ msg.setWithdrawToken(value);
15695
+ break;
15696
+ case 23:
15697
+ var value = new proto.ocap.CreateTokenFactoryTx;
15698
+ reader.readMessage(value,proto.ocap.CreateTokenFactoryTx.deserializeBinaryFromReader);
15699
+ msg.setCreateTokenFactory(value);
15700
+ break;
15701
+ case 24:
15702
+ var value = new proto.ocap.UpdateTokenFactoryTx;
15703
+ reader.readMessage(value,proto.ocap.UpdateTokenFactoryTx.deserializeBinaryFromReader);
15704
+ msg.setUpdateTokenFactory(value);
15705
+ break;
15706
+ case 25:
15707
+ var value = new proto.ocap.MintTokenTx;
15708
+ reader.readMessage(value,proto.ocap.MintTokenTx.deserializeBinaryFromReader);
15709
+ msg.setMintToken(value);
15710
+ break;
15711
+ case 26:
15712
+ var value = new proto.ocap.BurnTokenTx;
15713
+ reader.readMessage(value,proto.ocap.BurnTokenTx.deserializeBinaryFromReader);
15714
+ msg.setBurnToken(value);
15715
+ break;
15716
+ case 30:
15717
+ var value = new proto.ocap.CreateFactoryTx;
15718
+ reader.readMessage(value,proto.ocap.CreateFactoryTx.deserializeBinaryFromReader);
15719
+ msg.setCreateFactory(value);
14508
15720
  break;
14509
15721
  case 31:
14510
15722
  var value = new proto.ocap.AcquireAssetV2Tx;
@@ -14750,6 +15962,38 @@ proto.ocap.ItxStub.serializeBinaryToWriter = function(message, writer) {
14750
15962
  proto.ocap.WithdrawTokenV2Tx.serializeBinaryToWriter
14751
15963
  );
14752
15964
  }
15965
+ f = message.getCreateTokenFactory();
15966
+ if (f != null) {
15967
+ writer.writeMessage(
15968
+ 23,
15969
+ f,
15970
+ proto.ocap.CreateTokenFactoryTx.serializeBinaryToWriter
15971
+ );
15972
+ }
15973
+ f = message.getUpdateTokenFactory();
15974
+ if (f != null) {
15975
+ writer.writeMessage(
15976
+ 24,
15977
+ f,
15978
+ proto.ocap.UpdateTokenFactoryTx.serializeBinaryToWriter
15979
+ );
15980
+ }
15981
+ f = message.getMintToken();
15982
+ if (f != null) {
15983
+ writer.writeMessage(
15984
+ 25,
15985
+ f,
15986
+ proto.ocap.MintTokenTx.serializeBinaryToWriter
15987
+ );
15988
+ }
15989
+ f = message.getBurnToken();
15990
+ if (f != null) {
15991
+ writer.writeMessage(
15992
+ 26,
15993
+ f,
15994
+ proto.ocap.BurnTokenTx.serializeBinaryToWriter
15995
+ );
15996
+ }
14753
15997
  f = message.getCreateFactory();
14754
15998
  if (f != null) {
14755
15999
  writer.writeMessage(
@@ -15468,6 +16712,154 @@ proto.ocap.ItxStub.prototype.hasWithdrawToken = function() {
15468
16712
  };
15469
16713
 
15470
16714
 
16715
+ /**
16716
+ * optional CreateTokenFactoryTx create_token_factory = 23;
16717
+ * @return {?proto.ocap.CreateTokenFactoryTx}
16718
+ */
16719
+ proto.ocap.ItxStub.prototype.getCreateTokenFactory = function() {
16720
+ return /** @type{?proto.ocap.CreateTokenFactoryTx} */ (
16721
+ jspb.Message.getWrapperField(this, proto.ocap.CreateTokenFactoryTx, 23));
16722
+ };
16723
+
16724
+
16725
+ /**
16726
+ * @param {?proto.ocap.CreateTokenFactoryTx|undefined} value
16727
+ * @return {!proto.ocap.ItxStub} returns this
16728
+ */
16729
+ proto.ocap.ItxStub.prototype.setCreateTokenFactory = function(value) {
16730
+ return jspb.Message.setOneofWrapperField(this, 23, proto.ocap.ItxStub.oneofGroups_[0], value);
16731
+ };
16732
+
16733
+
16734
+ /**
16735
+ * Clears the message field making it undefined.
16736
+ * @return {!proto.ocap.ItxStub} returns this
16737
+ */
16738
+ proto.ocap.ItxStub.prototype.clearCreateTokenFactory = function() {
16739
+ return this.setCreateTokenFactory(undefined);
16740
+ };
16741
+
16742
+
16743
+ /**
16744
+ * Returns whether this field is set.
16745
+ * @return {boolean}
16746
+ */
16747
+ proto.ocap.ItxStub.prototype.hasCreateTokenFactory = function() {
16748
+ return jspb.Message.getField(this, 23) != null;
16749
+ };
16750
+
16751
+
16752
+ /**
16753
+ * optional UpdateTokenFactoryTx update_token_factory = 24;
16754
+ * @return {?proto.ocap.UpdateTokenFactoryTx}
16755
+ */
16756
+ proto.ocap.ItxStub.prototype.getUpdateTokenFactory = function() {
16757
+ return /** @type{?proto.ocap.UpdateTokenFactoryTx} */ (
16758
+ jspb.Message.getWrapperField(this, proto.ocap.UpdateTokenFactoryTx, 24));
16759
+ };
16760
+
16761
+
16762
+ /**
16763
+ * @param {?proto.ocap.UpdateTokenFactoryTx|undefined} value
16764
+ * @return {!proto.ocap.ItxStub} returns this
16765
+ */
16766
+ proto.ocap.ItxStub.prototype.setUpdateTokenFactory = function(value) {
16767
+ return jspb.Message.setOneofWrapperField(this, 24, proto.ocap.ItxStub.oneofGroups_[0], value);
16768
+ };
16769
+
16770
+
16771
+ /**
16772
+ * Clears the message field making it undefined.
16773
+ * @return {!proto.ocap.ItxStub} returns this
16774
+ */
16775
+ proto.ocap.ItxStub.prototype.clearUpdateTokenFactory = function() {
16776
+ return this.setUpdateTokenFactory(undefined);
16777
+ };
16778
+
16779
+
16780
+ /**
16781
+ * Returns whether this field is set.
16782
+ * @return {boolean}
16783
+ */
16784
+ proto.ocap.ItxStub.prototype.hasUpdateTokenFactory = function() {
16785
+ return jspb.Message.getField(this, 24) != null;
16786
+ };
16787
+
16788
+
16789
+ /**
16790
+ * optional MintTokenTx mint_token = 25;
16791
+ * @return {?proto.ocap.MintTokenTx}
16792
+ */
16793
+ proto.ocap.ItxStub.prototype.getMintToken = function() {
16794
+ return /** @type{?proto.ocap.MintTokenTx} */ (
16795
+ jspb.Message.getWrapperField(this, proto.ocap.MintTokenTx, 25));
16796
+ };
16797
+
16798
+
16799
+ /**
16800
+ * @param {?proto.ocap.MintTokenTx|undefined} value
16801
+ * @return {!proto.ocap.ItxStub} returns this
16802
+ */
16803
+ proto.ocap.ItxStub.prototype.setMintToken = function(value) {
16804
+ return jspb.Message.setOneofWrapperField(this, 25, proto.ocap.ItxStub.oneofGroups_[0], value);
16805
+ };
16806
+
16807
+
16808
+ /**
16809
+ * Clears the message field making it undefined.
16810
+ * @return {!proto.ocap.ItxStub} returns this
16811
+ */
16812
+ proto.ocap.ItxStub.prototype.clearMintToken = function() {
16813
+ return this.setMintToken(undefined);
16814
+ };
16815
+
16816
+
16817
+ /**
16818
+ * Returns whether this field is set.
16819
+ * @return {boolean}
16820
+ */
16821
+ proto.ocap.ItxStub.prototype.hasMintToken = function() {
16822
+ return jspb.Message.getField(this, 25) != null;
16823
+ };
16824
+
16825
+
16826
+ /**
16827
+ * optional BurnTokenTx burn_token = 26;
16828
+ * @return {?proto.ocap.BurnTokenTx}
16829
+ */
16830
+ proto.ocap.ItxStub.prototype.getBurnToken = function() {
16831
+ return /** @type{?proto.ocap.BurnTokenTx} */ (
16832
+ jspb.Message.getWrapperField(this, proto.ocap.BurnTokenTx, 26));
16833
+ };
16834
+
16835
+
16836
+ /**
16837
+ * @param {?proto.ocap.BurnTokenTx|undefined} value
16838
+ * @return {!proto.ocap.ItxStub} returns this
16839
+ */
16840
+ proto.ocap.ItxStub.prototype.setBurnToken = function(value) {
16841
+ return jspb.Message.setOneofWrapperField(this, 26, proto.ocap.ItxStub.oneofGroups_[0], value);
16842
+ };
16843
+
16844
+
16845
+ /**
16846
+ * Clears the message field making it undefined.
16847
+ * @return {!proto.ocap.ItxStub} returns this
16848
+ */
16849
+ proto.ocap.ItxStub.prototype.clearBurnToken = function() {
16850
+ return this.setBurnToken(undefined);
16851
+ };
16852
+
16853
+
16854
+ /**
16855
+ * Returns whether this field is set.
16856
+ * @return {boolean}
16857
+ */
16858
+ proto.ocap.ItxStub.prototype.hasBurnToken = function() {
16859
+ return jspb.Message.getField(this, 26) != null;
16860
+ };
16861
+
16862
+
15471
16863
  /**
15472
16864
  * optional CreateFactoryTx create_factory = 30;
15473
16865
  * @return {?proto.ocap.CreateFactoryTx}