@trustwallet/wallet-core 3.1.17 → 3.1.19

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.
@@ -73631,6 +73631,7 @@
73631
73631
  * @memberof TW.Tezos.Proto
73632
73632
  * @interface ISigningInput
73633
73633
  * @property {TW.Tezos.Proto.IOperationList|null} [operationList] SigningInput operationList
73634
+ * @property {Uint8Array|null} [encodedOperations] SigningInput encodedOperations
73634
73635
  * @property {Uint8Array|null} [privateKey] SigningInput privateKey
73635
73636
  */
73636
73637
 
@@ -73657,6 +73658,14 @@
73657
73658
  */
73658
73659
  SigningInput.prototype.operationList = null;
73659
73660
 
73661
+ /**
73662
+ * SigningInput encodedOperations.
73663
+ * @member {Uint8Array} encodedOperations
73664
+ * @memberof TW.Tezos.Proto.SigningInput
73665
+ * @instance
73666
+ */
73667
+ SigningInput.prototype.encodedOperations = $util.newBuffer([]);
73668
+
73660
73669
  /**
73661
73670
  * SigningInput privateKey.
73662
73671
  * @member {Uint8Array} privateKey
@@ -73691,8 +73700,10 @@
73691
73700
  writer = $Writer.create();
73692
73701
  if (message.operationList != null && Object.hasOwnProperty.call(message, "operationList"))
73693
73702
  $root.TW.Tezos.Proto.OperationList.encode(message.operationList, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
73703
+ if (message.encodedOperations != null && Object.hasOwnProperty.call(message, "encodedOperations"))
73704
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encodedOperations);
73694
73705
  if (message.privateKey != null && Object.hasOwnProperty.call(message, "privateKey"))
73695
- writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.privateKey);
73706
+ writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.privateKey);
73696
73707
  return writer;
73697
73708
  };
73698
73709
 
@@ -73718,6 +73729,9 @@
73718
73729
  message.operationList = $root.TW.Tezos.Proto.OperationList.decode(reader, reader.uint32());
73719
73730
  break;
73720
73731
  case 2:
73732
+ message.encodedOperations = reader.bytes();
73733
+ break;
73734
+ case 3:
73721
73735
  message.privateKey = reader.bytes();
73722
73736
  break;
73723
73737
  default:
@@ -73744,6 +73758,9 @@
73744
73758
  if (error)
73745
73759
  return "operationList." + error;
73746
73760
  }
73761
+ if (message.encodedOperations != null && message.hasOwnProperty("encodedOperations"))
73762
+ if (!(message.encodedOperations && typeof message.encodedOperations.length === "number" || $util.isString(message.encodedOperations)))
73763
+ return "encodedOperations: buffer expected";
73747
73764
  if (message.privateKey != null && message.hasOwnProperty("privateKey"))
73748
73765
  if (!(message.privateKey && typeof message.privateKey.length === "number" || $util.isString(message.privateKey)))
73749
73766
  return "privateKey: buffer expected";
@@ -73767,6 +73784,11 @@
73767
73784
  throw TypeError(".TW.Tezos.Proto.SigningInput.operationList: object expected");
73768
73785
  message.operationList = $root.TW.Tezos.Proto.OperationList.fromObject(object.operationList);
73769
73786
  }
73787
+ if (object.encodedOperations != null)
73788
+ if (typeof object.encodedOperations === "string")
73789
+ $util.base64.decode(object.encodedOperations, message.encodedOperations = $util.newBuffer($util.base64.length(object.encodedOperations)), 0);
73790
+ else if (object.encodedOperations.length)
73791
+ message.encodedOperations = object.encodedOperations;
73770
73792
  if (object.privateKey != null)
73771
73793
  if (typeof object.privateKey === "string")
73772
73794
  $util.base64.decode(object.privateKey, message.privateKey = $util.newBuffer($util.base64.length(object.privateKey)), 0);
@@ -73790,6 +73812,13 @@
73790
73812
  var object = {};
73791
73813
  if (options.defaults) {
73792
73814
  object.operationList = null;
73815
+ if (options.bytes === String)
73816
+ object.encodedOperations = "";
73817
+ else {
73818
+ object.encodedOperations = [];
73819
+ if (options.bytes !== Array)
73820
+ object.encodedOperations = $util.newBuffer(object.encodedOperations);
73821
+ }
73793
73822
  if (options.bytes === String)
73794
73823
  object.privateKey = "";
73795
73824
  else {
@@ -73800,6 +73829,8 @@
73800
73829
  }
73801
73830
  if (message.operationList != null && message.hasOwnProperty("operationList"))
73802
73831
  object.operationList = $root.TW.Tezos.Proto.OperationList.toObject(message.operationList, options);
73832
+ if (message.encodedOperations != null && message.hasOwnProperty("encodedOperations"))
73833
+ object.encodedOperations = options.bytes === String ? $util.base64.encode(message.encodedOperations, 0, message.encodedOperations.length) : options.bytes === Array ? Array.prototype.slice.call(message.encodedOperations) : message.encodedOperations;
73803
73834
  if (message.privateKey != null && message.hasOwnProperty("privateKey"))
73804
73835
  object.privateKey = options.bytes === String ? $util.base64.encode(message.privateKey, 0, message.privateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.privateKey) : message.privateKey;
73805
73836
  return object;
@@ -80451,26 +80482,26 @@
80451
80482
  return FreezeBalanceContract;
80452
80483
  })();
80453
80484
 
80454
- Proto.UnfreezeBalanceContract = (function() {
80485
+ Proto.FreezeBalanceV2Contract = (function() {
80455
80486
 
80456
80487
  /**
80457
- * Properties of an UnfreezeBalanceContract.
80488
+ * Properties of a FreezeBalanceV2Contract.
80458
80489
  * @memberof TW.Tron.Proto
80459
- * @interface IUnfreezeBalanceContract
80460
- * @property {string|null} [ownerAddress] UnfreezeBalanceContract ownerAddress
80461
- * @property {string|null} [resource] UnfreezeBalanceContract resource
80462
- * @property {string|null} [receiverAddress] UnfreezeBalanceContract receiverAddress
80490
+ * @interface IFreezeBalanceV2Contract
80491
+ * @property {string|null} [ownerAddress] FreezeBalanceV2Contract ownerAddress
80492
+ * @property {Long|null} [frozenBalance] FreezeBalanceV2Contract frozenBalance
80493
+ * @property {string|null} [resource] FreezeBalanceV2Contract resource
80463
80494
  */
80464
80495
 
80465
80496
  /**
80466
- * Constructs a new UnfreezeBalanceContract.
80497
+ * Constructs a new FreezeBalanceV2Contract.
80467
80498
  * @memberof TW.Tron.Proto
80468
- * @classdesc Represents an UnfreezeBalanceContract.
80469
- * @implements IUnfreezeBalanceContract
80499
+ * @classdesc Represents a FreezeBalanceV2Contract.
80500
+ * @implements IFreezeBalanceV2Contract
80470
80501
  * @constructor
80471
- * @param {TW.Tron.Proto.IUnfreezeBalanceContract=} [properties] Properties to set
80502
+ * @param {TW.Tron.Proto.IFreezeBalanceV2Contract=} [properties] Properties to set
80472
80503
  */
80473
- function UnfreezeBalanceContract(properties) {
80504
+ function FreezeBalanceV2Contract(properties) {
80474
80505
  if (properties)
80475
80506
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
80476
80507
  if (properties[keys[i]] != null)
@@ -80478,88 +80509,88 @@
80478
80509
  }
80479
80510
 
80480
80511
  /**
80481
- * UnfreezeBalanceContract ownerAddress.
80512
+ * FreezeBalanceV2Contract ownerAddress.
80482
80513
  * @member {string} ownerAddress
80483
- * @memberof TW.Tron.Proto.UnfreezeBalanceContract
80514
+ * @memberof TW.Tron.Proto.FreezeBalanceV2Contract
80484
80515
  * @instance
80485
80516
  */
80486
- UnfreezeBalanceContract.prototype.ownerAddress = "";
80517
+ FreezeBalanceV2Contract.prototype.ownerAddress = "";
80487
80518
 
80488
80519
  /**
80489
- * UnfreezeBalanceContract resource.
80490
- * @member {string} resource
80491
- * @memberof TW.Tron.Proto.UnfreezeBalanceContract
80520
+ * FreezeBalanceV2Contract frozenBalance.
80521
+ * @member {Long} frozenBalance
80522
+ * @memberof TW.Tron.Proto.FreezeBalanceV2Contract
80492
80523
  * @instance
80493
80524
  */
80494
- UnfreezeBalanceContract.prototype.resource = "";
80525
+ FreezeBalanceV2Contract.prototype.frozenBalance = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
80495
80526
 
80496
80527
  /**
80497
- * UnfreezeBalanceContract receiverAddress.
80498
- * @member {string} receiverAddress
80499
- * @memberof TW.Tron.Proto.UnfreezeBalanceContract
80528
+ * FreezeBalanceV2Contract resource.
80529
+ * @member {string} resource
80530
+ * @memberof TW.Tron.Proto.FreezeBalanceV2Contract
80500
80531
  * @instance
80501
80532
  */
80502
- UnfreezeBalanceContract.prototype.receiverAddress = "";
80533
+ FreezeBalanceV2Contract.prototype.resource = "";
80503
80534
 
80504
80535
  /**
80505
- * Creates a new UnfreezeBalanceContract instance using the specified properties.
80536
+ * Creates a new FreezeBalanceV2Contract instance using the specified properties.
80506
80537
  * @function create
80507
- * @memberof TW.Tron.Proto.UnfreezeBalanceContract
80538
+ * @memberof TW.Tron.Proto.FreezeBalanceV2Contract
80508
80539
  * @static
80509
- * @param {TW.Tron.Proto.IUnfreezeBalanceContract=} [properties] Properties to set
80510
- * @returns {TW.Tron.Proto.UnfreezeBalanceContract} UnfreezeBalanceContract instance
80540
+ * @param {TW.Tron.Proto.IFreezeBalanceV2Contract=} [properties] Properties to set
80541
+ * @returns {TW.Tron.Proto.FreezeBalanceV2Contract} FreezeBalanceV2Contract instance
80511
80542
  */
80512
- UnfreezeBalanceContract.create = function create(properties) {
80513
- return new UnfreezeBalanceContract(properties);
80543
+ FreezeBalanceV2Contract.create = function create(properties) {
80544
+ return new FreezeBalanceV2Contract(properties);
80514
80545
  };
80515
80546
 
80516
80547
  /**
80517
- * Encodes the specified UnfreezeBalanceContract message. Does not implicitly {@link TW.Tron.Proto.UnfreezeBalanceContract.verify|verify} messages.
80548
+ * Encodes the specified FreezeBalanceV2Contract message. Does not implicitly {@link TW.Tron.Proto.FreezeBalanceV2Contract.verify|verify} messages.
80518
80549
  * @function encode
80519
- * @memberof TW.Tron.Proto.UnfreezeBalanceContract
80550
+ * @memberof TW.Tron.Proto.FreezeBalanceV2Contract
80520
80551
  * @static
80521
- * @param {TW.Tron.Proto.IUnfreezeBalanceContract} message UnfreezeBalanceContract message or plain object to encode
80552
+ * @param {TW.Tron.Proto.IFreezeBalanceV2Contract} message FreezeBalanceV2Contract message or plain object to encode
80522
80553
  * @param {$protobuf.Writer} [writer] Writer to encode to
80523
80554
  * @returns {$protobuf.Writer} Writer
80524
80555
  */
80525
- UnfreezeBalanceContract.encode = function encode(message, writer) {
80556
+ FreezeBalanceV2Contract.encode = function encode(message, writer) {
80526
80557
  if (!writer)
80527
80558
  writer = $Writer.create();
80528
80559
  if (message.ownerAddress != null && Object.hasOwnProperty.call(message, "ownerAddress"))
80529
80560
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.ownerAddress);
80561
+ if (message.frozenBalance != null && Object.hasOwnProperty.call(message, "frozenBalance"))
80562
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.frozenBalance);
80530
80563
  if (message.resource != null && Object.hasOwnProperty.call(message, "resource"))
80531
- writer.uint32(/* id 10, wireType 2 =*/82).string(message.resource);
80532
- if (message.receiverAddress != null && Object.hasOwnProperty.call(message, "receiverAddress"))
80533
- writer.uint32(/* id 15, wireType 2 =*/122).string(message.receiverAddress);
80564
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.resource);
80534
80565
  return writer;
80535
80566
  };
80536
80567
 
80537
80568
  /**
80538
- * Decodes an UnfreezeBalanceContract message from the specified reader or buffer.
80569
+ * Decodes a FreezeBalanceV2Contract message from the specified reader or buffer.
80539
80570
  * @function decode
80540
- * @memberof TW.Tron.Proto.UnfreezeBalanceContract
80571
+ * @memberof TW.Tron.Proto.FreezeBalanceV2Contract
80541
80572
  * @static
80542
80573
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80543
80574
  * @param {number} [length] Message length if known beforehand
80544
- * @returns {TW.Tron.Proto.UnfreezeBalanceContract} UnfreezeBalanceContract
80575
+ * @returns {TW.Tron.Proto.FreezeBalanceV2Contract} FreezeBalanceV2Contract
80545
80576
  * @throws {Error} If the payload is not a reader or valid buffer
80546
80577
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
80547
80578
  */
80548
- UnfreezeBalanceContract.decode = function decode(reader, length) {
80579
+ FreezeBalanceV2Contract.decode = function decode(reader, length) {
80549
80580
  if (!(reader instanceof $Reader))
80550
80581
  reader = $Reader.create(reader);
80551
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Tron.Proto.UnfreezeBalanceContract();
80582
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Tron.Proto.FreezeBalanceV2Contract();
80552
80583
  while (reader.pos < end) {
80553
80584
  var tag = reader.uint32();
80554
80585
  switch (tag >>> 3) {
80555
80586
  case 1:
80556
80587
  message.ownerAddress = reader.string();
80557
80588
  break;
80558
- case 10:
80559
- message.resource = reader.string();
80589
+ case 2:
80590
+ message.frozenBalance = reader.int64();
80560
80591
  break;
80561
- case 15:
80562
- message.receiverAddress = reader.string();
80592
+ case 3:
80593
+ message.resource = reader.string();
80563
80594
  break;
80564
80595
  default:
80565
80596
  reader.skipType(tag & 7);
@@ -80570,108 +80601,124 @@
80570
80601
  };
80571
80602
 
80572
80603
  /**
80573
- * Verifies an UnfreezeBalanceContract message.
80604
+ * Verifies a FreezeBalanceV2Contract message.
80574
80605
  * @function verify
80575
- * @memberof TW.Tron.Proto.UnfreezeBalanceContract
80606
+ * @memberof TW.Tron.Proto.FreezeBalanceV2Contract
80576
80607
  * @static
80577
80608
  * @param {Object.<string,*>} message Plain object to verify
80578
80609
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
80579
80610
  */
80580
- UnfreezeBalanceContract.verify = function verify(message) {
80611
+ FreezeBalanceV2Contract.verify = function verify(message) {
80581
80612
  if (typeof message !== "object" || message === null)
80582
80613
  return "object expected";
80583
80614
  if (message.ownerAddress != null && message.hasOwnProperty("ownerAddress"))
80584
80615
  if (!$util.isString(message.ownerAddress))
80585
80616
  return "ownerAddress: string expected";
80617
+ if (message.frozenBalance != null && message.hasOwnProperty("frozenBalance"))
80618
+ if (!$util.isInteger(message.frozenBalance) && !(message.frozenBalance && $util.isInteger(message.frozenBalance.low) && $util.isInteger(message.frozenBalance.high)))
80619
+ return "frozenBalance: integer|Long expected";
80586
80620
  if (message.resource != null && message.hasOwnProperty("resource"))
80587
80621
  if (!$util.isString(message.resource))
80588
80622
  return "resource: string expected";
80589
- if (message.receiverAddress != null && message.hasOwnProperty("receiverAddress"))
80590
- if (!$util.isString(message.receiverAddress))
80591
- return "receiverAddress: string expected";
80592
80623
  return null;
80593
80624
  };
80594
80625
 
80595
80626
  /**
80596
- * Creates an UnfreezeBalanceContract message from a plain object. Also converts values to their respective internal types.
80627
+ * Creates a FreezeBalanceV2Contract message from a plain object. Also converts values to their respective internal types.
80597
80628
  * @function fromObject
80598
- * @memberof TW.Tron.Proto.UnfreezeBalanceContract
80629
+ * @memberof TW.Tron.Proto.FreezeBalanceV2Contract
80599
80630
  * @static
80600
80631
  * @param {Object.<string,*>} object Plain object
80601
- * @returns {TW.Tron.Proto.UnfreezeBalanceContract} UnfreezeBalanceContract
80632
+ * @returns {TW.Tron.Proto.FreezeBalanceV2Contract} FreezeBalanceV2Contract
80602
80633
  */
80603
- UnfreezeBalanceContract.fromObject = function fromObject(object) {
80604
- if (object instanceof $root.TW.Tron.Proto.UnfreezeBalanceContract)
80634
+ FreezeBalanceV2Contract.fromObject = function fromObject(object) {
80635
+ if (object instanceof $root.TW.Tron.Proto.FreezeBalanceV2Contract)
80605
80636
  return object;
80606
- var message = new $root.TW.Tron.Proto.UnfreezeBalanceContract();
80637
+ var message = new $root.TW.Tron.Proto.FreezeBalanceV2Contract();
80607
80638
  if (object.ownerAddress != null)
80608
80639
  message.ownerAddress = String(object.ownerAddress);
80640
+ if (object.frozenBalance != null)
80641
+ if ($util.Long)
80642
+ (message.frozenBalance = $util.Long.fromValue(object.frozenBalance)).unsigned = false;
80643
+ else if (typeof object.frozenBalance === "string")
80644
+ message.frozenBalance = parseInt(object.frozenBalance, 10);
80645
+ else if (typeof object.frozenBalance === "number")
80646
+ message.frozenBalance = object.frozenBalance;
80647
+ else if (typeof object.frozenBalance === "object")
80648
+ message.frozenBalance = new $util.LongBits(object.frozenBalance.low >>> 0, object.frozenBalance.high >>> 0).toNumber();
80609
80649
  if (object.resource != null)
80610
80650
  message.resource = String(object.resource);
80611
- if (object.receiverAddress != null)
80612
- message.receiverAddress = String(object.receiverAddress);
80613
80651
  return message;
80614
80652
  };
80615
80653
 
80616
80654
  /**
80617
- * Creates a plain object from an UnfreezeBalanceContract message. Also converts values to other types if specified.
80655
+ * Creates a plain object from a FreezeBalanceV2Contract message. Also converts values to other types if specified.
80618
80656
  * @function toObject
80619
- * @memberof TW.Tron.Proto.UnfreezeBalanceContract
80657
+ * @memberof TW.Tron.Proto.FreezeBalanceV2Contract
80620
80658
  * @static
80621
- * @param {TW.Tron.Proto.UnfreezeBalanceContract} message UnfreezeBalanceContract
80659
+ * @param {TW.Tron.Proto.FreezeBalanceV2Contract} message FreezeBalanceV2Contract
80622
80660
  * @param {$protobuf.IConversionOptions} [options] Conversion options
80623
80661
  * @returns {Object.<string,*>} Plain object
80624
80662
  */
80625
- UnfreezeBalanceContract.toObject = function toObject(message, options) {
80663
+ FreezeBalanceV2Contract.toObject = function toObject(message, options) {
80626
80664
  if (!options)
80627
80665
  options = {};
80628
80666
  var object = {};
80629
80667
  if (options.defaults) {
80630
80668
  object.ownerAddress = "";
80669
+ if ($util.Long) {
80670
+ var long = new $util.Long(0, 0, false);
80671
+ object.frozenBalance = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
80672
+ } else
80673
+ object.frozenBalance = options.longs === String ? "0" : 0;
80631
80674
  object.resource = "";
80632
- object.receiverAddress = "";
80633
80675
  }
80634
80676
  if (message.ownerAddress != null && message.hasOwnProperty("ownerAddress"))
80635
80677
  object.ownerAddress = message.ownerAddress;
80678
+ if (message.frozenBalance != null && message.hasOwnProperty("frozenBalance"))
80679
+ if (typeof message.frozenBalance === "number")
80680
+ object.frozenBalance = options.longs === String ? String(message.frozenBalance) : message.frozenBalance;
80681
+ else
80682
+ object.frozenBalance = options.longs === String ? $util.Long.prototype.toString.call(message.frozenBalance) : options.longs === Number ? new $util.LongBits(message.frozenBalance.low >>> 0, message.frozenBalance.high >>> 0).toNumber() : message.frozenBalance;
80636
80683
  if (message.resource != null && message.hasOwnProperty("resource"))
80637
80684
  object.resource = message.resource;
80638
- if (message.receiverAddress != null && message.hasOwnProperty("receiverAddress"))
80639
- object.receiverAddress = message.receiverAddress;
80640
80685
  return object;
80641
80686
  };
80642
80687
 
80643
80688
  /**
80644
- * Converts this UnfreezeBalanceContract to JSON.
80689
+ * Converts this FreezeBalanceV2Contract to JSON.
80645
80690
  * @function toJSON
80646
- * @memberof TW.Tron.Proto.UnfreezeBalanceContract
80691
+ * @memberof TW.Tron.Proto.FreezeBalanceV2Contract
80647
80692
  * @instance
80648
80693
  * @returns {Object.<string,*>} JSON object
80649
80694
  */
80650
- UnfreezeBalanceContract.prototype.toJSON = function toJSON() {
80695
+ FreezeBalanceV2Contract.prototype.toJSON = function toJSON() {
80651
80696
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
80652
80697
  };
80653
80698
 
80654
- return UnfreezeBalanceContract;
80699
+ return FreezeBalanceV2Contract;
80655
80700
  })();
80656
80701
 
80657
- Proto.UnfreezeAssetContract = (function() {
80702
+ Proto.UnfreezeBalanceV2Contract = (function() {
80658
80703
 
80659
80704
  /**
80660
- * Properties of an UnfreezeAssetContract.
80705
+ * Properties of an UnfreezeBalanceV2Contract.
80661
80706
  * @memberof TW.Tron.Proto
80662
- * @interface IUnfreezeAssetContract
80663
- * @property {string|null} [ownerAddress] UnfreezeAssetContract ownerAddress
80707
+ * @interface IUnfreezeBalanceV2Contract
80708
+ * @property {string|null} [ownerAddress] UnfreezeBalanceV2Contract ownerAddress
80709
+ * @property {Long|null} [unfreezeBalance] UnfreezeBalanceV2Contract unfreezeBalance
80710
+ * @property {string|null} [resource] UnfreezeBalanceV2Contract resource
80664
80711
  */
80665
80712
 
80666
80713
  /**
80667
- * Constructs a new UnfreezeAssetContract.
80714
+ * Constructs a new UnfreezeBalanceV2Contract.
80668
80715
  * @memberof TW.Tron.Proto
80669
- * @classdesc Represents an UnfreezeAssetContract.
80670
- * @implements IUnfreezeAssetContract
80716
+ * @classdesc Represents an UnfreezeBalanceV2Contract.
80717
+ * @implements IUnfreezeBalanceV2Contract
80671
80718
  * @constructor
80672
- * @param {TW.Tron.Proto.IUnfreezeAssetContract=} [properties] Properties to set
80719
+ * @param {TW.Tron.Proto.IUnfreezeBalanceV2Contract=} [properties] Properties to set
80673
80720
  */
80674
- function UnfreezeAssetContract(properties) {
80721
+ function UnfreezeBalanceV2Contract(properties) {
80675
80722
  if (properties)
80676
80723
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
80677
80724
  if (properties[keys[i]] != null)
@@ -80679,63 +80726,89 @@
80679
80726
  }
80680
80727
 
80681
80728
  /**
80682
- * UnfreezeAssetContract ownerAddress.
80729
+ * UnfreezeBalanceV2Contract ownerAddress.
80683
80730
  * @member {string} ownerAddress
80684
- * @memberof TW.Tron.Proto.UnfreezeAssetContract
80731
+ * @memberof TW.Tron.Proto.UnfreezeBalanceV2Contract
80685
80732
  * @instance
80686
80733
  */
80687
- UnfreezeAssetContract.prototype.ownerAddress = "";
80734
+ UnfreezeBalanceV2Contract.prototype.ownerAddress = "";
80688
80735
 
80689
80736
  /**
80690
- * Creates a new UnfreezeAssetContract instance using the specified properties.
80737
+ * UnfreezeBalanceV2Contract unfreezeBalance.
80738
+ * @member {Long} unfreezeBalance
80739
+ * @memberof TW.Tron.Proto.UnfreezeBalanceV2Contract
80740
+ * @instance
80741
+ */
80742
+ UnfreezeBalanceV2Contract.prototype.unfreezeBalance = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
80743
+
80744
+ /**
80745
+ * UnfreezeBalanceV2Contract resource.
80746
+ * @member {string} resource
80747
+ * @memberof TW.Tron.Proto.UnfreezeBalanceV2Contract
80748
+ * @instance
80749
+ */
80750
+ UnfreezeBalanceV2Contract.prototype.resource = "";
80751
+
80752
+ /**
80753
+ * Creates a new UnfreezeBalanceV2Contract instance using the specified properties.
80691
80754
  * @function create
80692
- * @memberof TW.Tron.Proto.UnfreezeAssetContract
80755
+ * @memberof TW.Tron.Proto.UnfreezeBalanceV2Contract
80693
80756
  * @static
80694
- * @param {TW.Tron.Proto.IUnfreezeAssetContract=} [properties] Properties to set
80695
- * @returns {TW.Tron.Proto.UnfreezeAssetContract} UnfreezeAssetContract instance
80757
+ * @param {TW.Tron.Proto.IUnfreezeBalanceV2Contract=} [properties] Properties to set
80758
+ * @returns {TW.Tron.Proto.UnfreezeBalanceV2Contract} UnfreezeBalanceV2Contract instance
80696
80759
  */
80697
- UnfreezeAssetContract.create = function create(properties) {
80698
- return new UnfreezeAssetContract(properties);
80760
+ UnfreezeBalanceV2Contract.create = function create(properties) {
80761
+ return new UnfreezeBalanceV2Contract(properties);
80699
80762
  };
80700
80763
 
80701
80764
  /**
80702
- * Encodes the specified UnfreezeAssetContract message. Does not implicitly {@link TW.Tron.Proto.UnfreezeAssetContract.verify|verify} messages.
80765
+ * Encodes the specified UnfreezeBalanceV2Contract message. Does not implicitly {@link TW.Tron.Proto.UnfreezeBalanceV2Contract.verify|verify} messages.
80703
80766
  * @function encode
80704
- * @memberof TW.Tron.Proto.UnfreezeAssetContract
80767
+ * @memberof TW.Tron.Proto.UnfreezeBalanceV2Contract
80705
80768
  * @static
80706
- * @param {TW.Tron.Proto.IUnfreezeAssetContract} message UnfreezeAssetContract message or plain object to encode
80769
+ * @param {TW.Tron.Proto.IUnfreezeBalanceV2Contract} message UnfreezeBalanceV2Contract message or plain object to encode
80707
80770
  * @param {$protobuf.Writer} [writer] Writer to encode to
80708
80771
  * @returns {$protobuf.Writer} Writer
80709
80772
  */
80710
- UnfreezeAssetContract.encode = function encode(message, writer) {
80773
+ UnfreezeBalanceV2Contract.encode = function encode(message, writer) {
80711
80774
  if (!writer)
80712
80775
  writer = $Writer.create();
80713
80776
  if (message.ownerAddress != null && Object.hasOwnProperty.call(message, "ownerAddress"))
80714
80777
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.ownerAddress);
80778
+ if (message.unfreezeBalance != null && Object.hasOwnProperty.call(message, "unfreezeBalance"))
80779
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.unfreezeBalance);
80780
+ if (message.resource != null && Object.hasOwnProperty.call(message, "resource"))
80781
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.resource);
80715
80782
  return writer;
80716
80783
  };
80717
80784
 
80718
80785
  /**
80719
- * Decodes an UnfreezeAssetContract message from the specified reader or buffer.
80786
+ * Decodes an UnfreezeBalanceV2Contract message from the specified reader or buffer.
80720
80787
  * @function decode
80721
- * @memberof TW.Tron.Proto.UnfreezeAssetContract
80788
+ * @memberof TW.Tron.Proto.UnfreezeBalanceV2Contract
80722
80789
  * @static
80723
80790
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80724
80791
  * @param {number} [length] Message length if known beforehand
80725
- * @returns {TW.Tron.Proto.UnfreezeAssetContract} UnfreezeAssetContract
80792
+ * @returns {TW.Tron.Proto.UnfreezeBalanceV2Contract} UnfreezeBalanceV2Contract
80726
80793
  * @throws {Error} If the payload is not a reader or valid buffer
80727
80794
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
80728
80795
  */
80729
- UnfreezeAssetContract.decode = function decode(reader, length) {
80796
+ UnfreezeBalanceV2Contract.decode = function decode(reader, length) {
80730
80797
  if (!(reader instanceof $Reader))
80731
80798
  reader = $Reader.create(reader);
80732
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Tron.Proto.UnfreezeAssetContract();
80799
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Tron.Proto.UnfreezeBalanceV2Contract();
80733
80800
  while (reader.pos < end) {
80734
80801
  var tag = reader.uint32();
80735
80802
  switch (tag >>> 3) {
80736
80803
  case 1:
80737
80804
  message.ownerAddress = reader.string();
80738
80805
  break;
80806
+ case 2:
80807
+ message.unfreezeBalance = reader.int64();
80808
+ break;
80809
+ case 3:
80810
+ message.resource = reader.string();
80811
+ break;
80739
80812
  default:
80740
80813
  reader.skipType(tag & 7);
80741
80814
  break;
@@ -80745,95 +80818,122 @@
80745
80818
  };
80746
80819
 
80747
80820
  /**
80748
- * Verifies an UnfreezeAssetContract message.
80821
+ * Verifies an UnfreezeBalanceV2Contract message.
80749
80822
  * @function verify
80750
- * @memberof TW.Tron.Proto.UnfreezeAssetContract
80823
+ * @memberof TW.Tron.Proto.UnfreezeBalanceV2Contract
80751
80824
  * @static
80752
80825
  * @param {Object.<string,*>} message Plain object to verify
80753
80826
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
80754
80827
  */
80755
- UnfreezeAssetContract.verify = function verify(message) {
80828
+ UnfreezeBalanceV2Contract.verify = function verify(message) {
80756
80829
  if (typeof message !== "object" || message === null)
80757
80830
  return "object expected";
80758
80831
  if (message.ownerAddress != null && message.hasOwnProperty("ownerAddress"))
80759
80832
  if (!$util.isString(message.ownerAddress))
80760
80833
  return "ownerAddress: string expected";
80834
+ if (message.unfreezeBalance != null && message.hasOwnProperty("unfreezeBalance"))
80835
+ if (!$util.isInteger(message.unfreezeBalance) && !(message.unfreezeBalance && $util.isInteger(message.unfreezeBalance.low) && $util.isInteger(message.unfreezeBalance.high)))
80836
+ return "unfreezeBalance: integer|Long expected";
80837
+ if (message.resource != null && message.hasOwnProperty("resource"))
80838
+ if (!$util.isString(message.resource))
80839
+ return "resource: string expected";
80761
80840
  return null;
80762
80841
  };
80763
80842
 
80764
80843
  /**
80765
- * Creates an UnfreezeAssetContract message from a plain object. Also converts values to their respective internal types.
80844
+ * Creates an UnfreezeBalanceV2Contract message from a plain object. Also converts values to their respective internal types.
80766
80845
  * @function fromObject
80767
- * @memberof TW.Tron.Proto.UnfreezeAssetContract
80846
+ * @memberof TW.Tron.Proto.UnfreezeBalanceV2Contract
80768
80847
  * @static
80769
80848
  * @param {Object.<string,*>} object Plain object
80770
- * @returns {TW.Tron.Proto.UnfreezeAssetContract} UnfreezeAssetContract
80849
+ * @returns {TW.Tron.Proto.UnfreezeBalanceV2Contract} UnfreezeBalanceV2Contract
80771
80850
  */
80772
- UnfreezeAssetContract.fromObject = function fromObject(object) {
80773
- if (object instanceof $root.TW.Tron.Proto.UnfreezeAssetContract)
80851
+ UnfreezeBalanceV2Contract.fromObject = function fromObject(object) {
80852
+ if (object instanceof $root.TW.Tron.Proto.UnfreezeBalanceV2Contract)
80774
80853
  return object;
80775
- var message = new $root.TW.Tron.Proto.UnfreezeAssetContract();
80854
+ var message = new $root.TW.Tron.Proto.UnfreezeBalanceV2Contract();
80776
80855
  if (object.ownerAddress != null)
80777
80856
  message.ownerAddress = String(object.ownerAddress);
80857
+ if (object.unfreezeBalance != null)
80858
+ if ($util.Long)
80859
+ (message.unfreezeBalance = $util.Long.fromValue(object.unfreezeBalance)).unsigned = false;
80860
+ else if (typeof object.unfreezeBalance === "string")
80861
+ message.unfreezeBalance = parseInt(object.unfreezeBalance, 10);
80862
+ else if (typeof object.unfreezeBalance === "number")
80863
+ message.unfreezeBalance = object.unfreezeBalance;
80864
+ else if (typeof object.unfreezeBalance === "object")
80865
+ message.unfreezeBalance = new $util.LongBits(object.unfreezeBalance.low >>> 0, object.unfreezeBalance.high >>> 0).toNumber();
80866
+ if (object.resource != null)
80867
+ message.resource = String(object.resource);
80778
80868
  return message;
80779
80869
  };
80780
80870
 
80781
80871
  /**
80782
- * Creates a plain object from an UnfreezeAssetContract message. Also converts values to other types if specified.
80872
+ * Creates a plain object from an UnfreezeBalanceV2Contract message. Also converts values to other types if specified.
80783
80873
  * @function toObject
80784
- * @memberof TW.Tron.Proto.UnfreezeAssetContract
80874
+ * @memberof TW.Tron.Proto.UnfreezeBalanceV2Contract
80785
80875
  * @static
80786
- * @param {TW.Tron.Proto.UnfreezeAssetContract} message UnfreezeAssetContract
80876
+ * @param {TW.Tron.Proto.UnfreezeBalanceV2Contract} message UnfreezeBalanceV2Contract
80787
80877
  * @param {$protobuf.IConversionOptions} [options] Conversion options
80788
80878
  * @returns {Object.<string,*>} Plain object
80789
80879
  */
80790
- UnfreezeAssetContract.toObject = function toObject(message, options) {
80880
+ UnfreezeBalanceV2Contract.toObject = function toObject(message, options) {
80791
80881
  if (!options)
80792
80882
  options = {};
80793
80883
  var object = {};
80794
- if (options.defaults)
80884
+ if (options.defaults) {
80795
80885
  object.ownerAddress = "";
80886
+ if ($util.Long) {
80887
+ var long = new $util.Long(0, 0, false);
80888
+ object.unfreezeBalance = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
80889
+ } else
80890
+ object.unfreezeBalance = options.longs === String ? "0" : 0;
80891
+ object.resource = "";
80892
+ }
80796
80893
  if (message.ownerAddress != null && message.hasOwnProperty("ownerAddress"))
80797
80894
  object.ownerAddress = message.ownerAddress;
80895
+ if (message.unfreezeBalance != null && message.hasOwnProperty("unfreezeBalance"))
80896
+ if (typeof message.unfreezeBalance === "number")
80897
+ object.unfreezeBalance = options.longs === String ? String(message.unfreezeBalance) : message.unfreezeBalance;
80898
+ else
80899
+ object.unfreezeBalance = options.longs === String ? $util.Long.prototype.toString.call(message.unfreezeBalance) : options.longs === Number ? new $util.LongBits(message.unfreezeBalance.low >>> 0, message.unfreezeBalance.high >>> 0).toNumber() : message.unfreezeBalance;
80900
+ if (message.resource != null && message.hasOwnProperty("resource"))
80901
+ object.resource = message.resource;
80798
80902
  return object;
80799
80903
  };
80800
80904
 
80801
80905
  /**
80802
- * Converts this UnfreezeAssetContract to JSON.
80906
+ * Converts this UnfreezeBalanceV2Contract to JSON.
80803
80907
  * @function toJSON
80804
- * @memberof TW.Tron.Proto.UnfreezeAssetContract
80908
+ * @memberof TW.Tron.Proto.UnfreezeBalanceV2Contract
80805
80909
  * @instance
80806
80910
  * @returns {Object.<string,*>} JSON object
80807
80911
  */
80808
- UnfreezeAssetContract.prototype.toJSON = function toJSON() {
80912
+ UnfreezeBalanceV2Contract.prototype.toJSON = function toJSON() {
80809
80913
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
80810
80914
  };
80811
80915
 
80812
- return UnfreezeAssetContract;
80916
+ return UnfreezeBalanceV2Contract;
80813
80917
  })();
80814
80918
 
80815
- Proto.VoteAssetContract = (function() {
80919
+ Proto.WithdrawExpireUnfreezeContract = (function() {
80816
80920
 
80817
80921
  /**
80818
- * Properties of a VoteAssetContract.
80922
+ * Properties of a WithdrawExpireUnfreezeContract.
80819
80923
  * @memberof TW.Tron.Proto
80820
- * @interface IVoteAssetContract
80821
- * @property {string|null} [ownerAddress] VoteAssetContract ownerAddress
80822
- * @property {Array.<string>|null} [voteAddress] VoteAssetContract voteAddress
80823
- * @property {boolean|null} [support] VoteAssetContract support
80824
- * @property {number|null} [count] VoteAssetContract count
80924
+ * @interface IWithdrawExpireUnfreezeContract
80925
+ * @property {string|null} [ownerAddress] WithdrawExpireUnfreezeContract ownerAddress
80825
80926
  */
80826
80927
 
80827
80928
  /**
80828
- * Constructs a new VoteAssetContract.
80929
+ * Constructs a new WithdrawExpireUnfreezeContract.
80829
80930
  * @memberof TW.Tron.Proto
80830
- * @classdesc Represents a VoteAssetContract.
80831
- * @implements IVoteAssetContract
80931
+ * @classdesc Represents a WithdrawExpireUnfreezeContract.
80932
+ * @implements IWithdrawExpireUnfreezeContract
80832
80933
  * @constructor
80833
- * @param {TW.Tron.Proto.IVoteAssetContract=} [properties] Properties to set
80934
+ * @param {TW.Tron.Proto.IWithdrawExpireUnfreezeContract=} [properties] Properties to set
80834
80935
  */
80835
- function VoteAssetContract(properties) {
80836
- this.voteAddress = [];
80936
+ function WithdrawExpireUnfreezeContract(properties) {
80837
80937
  if (properties)
80838
80938
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
80839
80939
  if (properties[keys[i]] != null)
@@ -80841,98 +80941,1121 @@
80841
80941
  }
80842
80942
 
80843
80943
  /**
80844
- * VoteAssetContract ownerAddress.
80944
+ * WithdrawExpireUnfreezeContract ownerAddress.
80845
80945
  * @member {string} ownerAddress
80846
- * @memberof TW.Tron.Proto.VoteAssetContract
80847
- * @instance
80848
- */
80849
- VoteAssetContract.prototype.ownerAddress = "";
80850
-
80851
- /**
80852
- * VoteAssetContract voteAddress.
80853
- * @member {Array.<string>} voteAddress
80854
- * @memberof TW.Tron.Proto.VoteAssetContract
80855
- * @instance
80856
- */
80857
- VoteAssetContract.prototype.voteAddress = $util.emptyArray;
80858
-
80859
- /**
80860
- * VoteAssetContract support.
80861
- * @member {boolean} support
80862
- * @memberof TW.Tron.Proto.VoteAssetContract
80863
- * @instance
80864
- */
80865
- VoteAssetContract.prototype.support = false;
80866
-
80867
- /**
80868
- * VoteAssetContract count.
80869
- * @member {number} count
80870
- * @memberof TW.Tron.Proto.VoteAssetContract
80946
+ * @memberof TW.Tron.Proto.WithdrawExpireUnfreezeContract
80871
80947
  * @instance
80872
80948
  */
80873
- VoteAssetContract.prototype.count = 0;
80949
+ WithdrawExpireUnfreezeContract.prototype.ownerAddress = "";
80874
80950
 
80875
80951
  /**
80876
- * Creates a new VoteAssetContract instance using the specified properties.
80952
+ * Creates a new WithdrawExpireUnfreezeContract instance using the specified properties.
80877
80953
  * @function create
80878
- * @memberof TW.Tron.Proto.VoteAssetContract
80954
+ * @memberof TW.Tron.Proto.WithdrawExpireUnfreezeContract
80879
80955
  * @static
80880
- * @param {TW.Tron.Proto.IVoteAssetContract=} [properties] Properties to set
80881
- * @returns {TW.Tron.Proto.VoteAssetContract} VoteAssetContract instance
80956
+ * @param {TW.Tron.Proto.IWithdrawExpireUnfreezeContract=} [properties] Properties to set
80957
+ * @returns {TW.Tron.Proto.WithdrawExpireUnfreezeContract} WithdrawExpireUnfreezeContract instance
80882
80958
  */
80883
- VoteAssetContract.create = function create(properties) {
80884
- return new VoteAssetContract(properties);
80959
+ WithdrawExpireUnfreezeContract.create = function create(properties) {
80960
+ return new WithdrawExpireUnfreezeContract(properties);
80885
80961
  };
80886
80962
 
80887
80963
  /**
80888
- * Encodes the specified VoteAssetContract message. Does not implicitly {@link TW.Tron.Proto.VoteAssetContract.verify|verify} messages.
80964
+ * Encodes the specified WithdrawExpireUnfreezeContract message. Does not implicitly {@link TW.Tron.Proto.WithdrawExpireUnfreezeContract.verify|verify} messages.
80889
80965
  * @function encode
80890
- * @memberof TW.Tron.Proto.VoteAssetContract
80966
+ * @memberof TW.Tron.Proto.WithdrawExpireUnfreezeContract
80891
80967
  * @static
80892
- * @param {TW.Tron.Proto.IVoteAssetContract} message VoteAssetContract message or plain object to encode
80968
+ * @param {TW.Tron.Proto.IWithdrawExpireUnfreezeContract} message WithdrawExpireUnfreezeContract message or plain object to encode
80893
80969
  * @param {$protobuf.Writer} [writer] Writer to encode to
80894
80970
  * @returns {$protobuf.Writer} Writer
80895
80971
  */
80896
- VoteAssetContract.encode = function encode(message, writer) {
80972
+ WithdrawExpireUnfreezeContract.encode = function encode(message, writer) {
80897
80973
  if (!writer)
80898
80974
  writer = $Writer.create();
80899
80975
  if (message.ownerAddress != null && Object.hasOwnProperty.call(message, "ownerAddress"))
80900
80976
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.ownerAddress);
80901
- if (message.voteAddress != null && message.voteAddress.length)
80902
- for (var i = 0; i < message.voteAddress.length; ++i)
80903
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.voteAddress[i]);
80904
- if (message.support != null && Object.hasOwnProperty.call(message, "support"))
80905
- writer.uint32(/* id 3, wireType 0 =*/24).bool(message.support);
80906
- if (message.count != null && Object.hasOwnProperty.call(message, "count"))
80907
- writer.uint32(/* id 5, wireType 0 =*/40).int32(message.count);
80908
80977
  return writer;
80909
80978
  };
80910
80979
 
80911
80980
  /**
80912
- * Decodes a VoteAssetContract message from the specified reader or buffer.
80981
+ * Decodes a WithdrawExpireUnfreezeContract message from the specified reader or buffer.
80913
80982
  * @function decode
80914
- * @memberof TW.Tron.Proto.VoteAssetContract
80983
+ * @memberof TW.Tron.Proto.WithdrawExpireUnfreezeContract
80915
80984
  * @static
80916
80985
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80917
80986
  * @param {number} [length] Message length if known beforehand
80918
- * @returns {TW.Tron.Proto.VoteAssetContract} VoteAssetContract
80987
+ * @returns {TW.Tron.Proto.WithdrawExpireUnfreezeContract} WithdrawExpireUnfreezeContract
80919
80988
  * @throws {Error} If the payload is not a reader or valid buffer
80920
80989
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
80921
80990
  */
80922
- VoteAssetContract.decode = function decode(reader, length) {
80991
+ WithdrawExpireUnfreezeContract.decode = function decode(reader, length) {
80923
80992
  if (!(reader instanceof $Reader))
80924
80993
  reader = $Reader.create(reader);
80925
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Tron.Proto.VoteAssetContract();
80994
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Tron.Proto.WithdrawExpireUnfreezeContract();
80926
80995
  while (reader.pos < end) {
80927
80996
  var tag = reader.uint32();
80928
80997
  switch (tag >>> 3) {
80929
80998
  case 1:
80930
80999
  message.ownerAddress = reader.string();
80931
81000
  break;
80932
- case 2:
80933
- if (!(message.voteAddress && message.voteAddress.length))
80934
- message.voteAddress = [];
80935
- message.voteAddress.push(reader.string());
81001
+ default:
81002
+ reader.skipType(tag & 7);
81003
+ break;
81004
+ }
81005
+ }
81006
+ return message;
81007
+ };
81008
+
81009
+ /**
81010
+ * Verifies a WithdrawExpireUnfreezeContract message.
81011
+ * @function verify
81012
+ * @memberof TW.Tron.Proto.WithdrawExpireUnfreezeContract
81013
+ * @static
81014
+ * @param {Object.<string,*>} message Plain object to verify
81015
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
81016
+ */
81017
+ WithdrawExpireUnfreezeContract.verify = function verify(message) {
81018
+ if (typeof message !== "object" || message === null)
81019
+ return "object expected";
81020
+ if (message.ownerAddress != null && message.hasOwnProperty("ownerAddress"))
81021
+ if (!$util.isString(message.ownerAddress))
81022
+ return "ownerAddress: string expected";
81023
+ return null;
81024
+ };
81025
+
81026
+ /**
81027
+ * Creates a WithdrawExpireUnfreezeContract message from a plain object. Also converts values to their respective internal types.
81028
+ * @function fromObject
81029
+ * @memberof TW.Tron.Proto.WithdrawExpireUnfreezeContract
81030
+ * @static
81031
+ * @param {Object.<string,*>} object Plain object
81032
+ * @returns {TW.Tron.Proto.WithdrawExpireUnfreezeContract} WithdrawExpireUnfreezeContract
81033
+ */
81034
+ WithdrawExpireUnfreezeContract.fromObject = function fromObject(object) {
81035
+ if (object instanceof $root.TW.Tron.Proto.WithdrawExpireUnfreezeContract)
81036
+ return object;
81037
+ var message = new $root.TW.Tron.Proto.WithdrawExpireUnfreezeContract();
81038
+ if (object.ownerAddress != null)
81039
+ message.ownerAddress = String(object.ownerAddress);
81040
+ return message;
81041
+ };
81042
+
81043
+ /**
81044
+ * Creates a plain object from a WithdrawExpireUnfreezeContract message. Also converts values to other types if specified.
81045
+ * @function toObject
81046
+ * @memberof TW.Tron.Proto.WithdrawExpireUnfreezeContract
81047
+ * @static
81048
+ * @param {TW.Tron.Proto.WithdrawExpireUnfreezeContract} message WithdrawExpireUnfreezeContract
81049
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
81050
+ * @returns {Object.<string,*>} Plain object
81051
+ */
81052
+ WithdrawExpireUnfreezeContract.toObject = function toObject(message, options) {
81053
+ if (!options)
81054
+ options = {};
81055
+ var object = {};
81056
+ if (options.defaults)
81057
+ object.ownerAddress = "";
81058
+ if (message.ownerAddress != null && message.hasOwnProperty("ownerAddress"))
81059
+ object.ownerAddress = message.ownerAddress;
81060
+ return object;
81061
+ };
81062
+
81063
+ /**
81064
+ * Converts this WithdrawExpireUnfreezeContract to JSON.
81065
+ * @function toJSON
81066
+ * @memberof TW.Tron.Proto.WithdrawExpireUnfreezeContract
81067
+ * @instance
81068
+ * @returns {Object.<string,*>} JSON object
81069
+ */
81070
+ WithdrawExpireUnfreezeContract.prototype.toJSON = function toJSON() {
81071
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
81072
+ };
81073
+
81074
+ return WithdrawExpireUnfreezeContract;
81075
+ })();
81076
+
81077
+ Proto.DelegateResourceContract = (function() {
81078
+
81079
+ /**
81080
+ * Properties of a DelegateResourceContract.
81081
+ * @memberof TW.Tron.Proto
81082
+ * @interface IDelegateResourceContract
81083
+ * @property {string|null} [ownerAddress] DelegateResourceContract ownerAddress
81084
+ * @property {string|null} [resource] DelegateResourceContract resource
81085
+ * @property {Long|null} [balance] DelegateResourceContract balance
81086
+ * @property {string|null} [receiverAddress] DelegateResourceContract receiverAddress
81087
+ * @property {boolean|null} [lock] DelegateResourceContract lock
81088
+ */
81089
+
81090
+ /**
81091
+ * Constructs a new DelegateResourceContract.
81092
+ * @memberof TW.Tron.Proto
81093
+ * @classdesc Represents a DelegateResourceContract.
81094
+ * @implements IDelegateResourceContract
81095
+ * @constructor
81096
+ * @param {TW.Tron.Proto.IDelegateResourceContract=} [properties] Properties to set
81097
+ */
81098
+ function DelegateResourceContract(properties) {
81099
+ if (properties)
81100
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
81101
+ if (properties[keys[i]] != null)
81102
+ this[keys[i]] = properties[keys[i]];
81103
+ }
81104
+
81105
+ /**
81106
+ * DelegateResourceContract ownerAddress.
81107
+ * @member {string} ownerAddress
81108
+ * @memberof TW.Tron.Proto.DelegateResourceContract
81109
+ * @instance
81110
+ */
81111
+ DelegateResourceContract.prototype.ownerAddress = "";
81112
+
81113
+ /**
81114
+ * DelegateResourceContract resource.
81115
+ * @member {string} resource
81116
+ * @memberof TW.Tron.Proto.DelegateResourceContract
81117
+ * @instance
81118
+ */
81119
+ DelegateResourceContract.prototype.resource = "";
81120
+
81121
+ /**
81122
+ * DelegateResourceContract balance.
81123
+ * @member {Long} balance
81124
+ * @memberof TW.Tron.Proto.DelegateResourceContract
81125
+ * @instance
81126
+ */
81127
+ DelegateResourceContract.prototype.balance = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
81128
+
81129
+ /**
81130
+ * DelegateResourceContract receiverAddress.
81131
+ * @member {string} receiverAddress
81132
+ * @memberof TW.Tron.Proto.DelegateResourceContract
81133
+ * @instance
81134
+ */
81135
+ DelegateResourceContract.prototype.receiverAddress = "";
81136
+
81137
+ /**
81138
+ * DelegateResourceContract lock.
81139
+ * @member {boolean} lock
81140
+ * @memberof TW.Tron.Proto.DelegateResourceContract
81141
+ * @instance
81142
+ */
81143
+ DelegateResourceContract.prototype.lock = false;
81144
+
81145
+ /**
81146
+ * Creates a new DelegateResourceContract instance using the specified properties.
81147
+ * @function create
81148
+ * @memberof TW.Tron.Proto.DelegateResourceContract
81149
+ * @static
81150
+ * @param {TW.Tron.Proto.IDelegateResourceContract=} [properties] Properties to set
81151
+ * @returns {TW.Tron.Proto.DelegateResourceContract} DelegateResourceContract instance
81152
+ */
81153
+ DelegateResourceContract.create = function create(properties) {
81154
+ return new DelegateResourceContract(properties);
81155
+ };
81156
+
81157
+ /**
81158
+ * Encodes the specified DelegateResourceContract message. Does not implicitly {@link TW.Tron.Proto.DelegateResourceContract.verify|verify} messages.
81159
+ * @function encode
81160
+ * @memberof TW.Tron.Proto.DelegateResourceContract
81161
+ * @static
81162
+ * @param {TW.Tron.Proto.IDelegateResourceContract} message DelegateResourceContract message or plain object to encode
81163
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81164
+ * @returns {$protobuf.Writer} Writer
81165
+ */
81166
+ DelegateResourceContract.encode = function encode(message, writer) {
81167
+ if (!writer)
81168
+ writer = $Writer.create();
81169
+ if (message.ownerAddress != null && Object.hasOwnProperty.call(message, "ownerAddress"))
81170
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.ownerAddress);
81171
+ if (message.resource != null && Object.hasOwnProperty.call(message, "resource"))
81172
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.resource);
81173
+ if (message.balance != null && Object.hasOwnProperty.call(message, "balance"))
81174
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.balance);
81175
+ if (message.receiverAddress != null && Object.hasOwnProperty.call(message, "receiverAddress"))
81176
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.receiverAddress);
81177
+ if (message.lock != null && Object.hasOwnProperty.call(message, "lock"))
81178
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lock);
81179
+ return writer;
81180
+ };
81181
+
81182
+ /**
81183
+ * Decodes a DelegateResourceContract message from the specified reader or buffer.
81184
+ * @function decode
81185
+ * @memberof TW.Tron.Proto.DelegateResourceContract
81186
+ * @static
81187
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81188
+ * @param {number} [length] Message length if known beforehand
81189
+ * @returns {TW.Tron.Proto.DelegateResourceContract} DelegateResourceContract
81190
+ * @throws {Error} If the payload is not a reader or valid buffer
81191
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81192
+ */
81193
+ DelegateResourceContract.decode = function decode(reader, length) {
81194
+ if (!(reader instanceof $Reader))
81195
+ reader = $Reader.create(reader);
81196
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Tron.Proto.DelegateResourceContract();
81197
+ while (reader.pos < end) {
81198
+ var tag = reader.uint32();
81199
+ switch (tag >>> 3) {
81200
+ case 1:
81201
+ message.ownerAddress = reader.string();
81202
+ break;
81203
+ case 2:
81204
+ message.resource = reader.string();
81205
+ break;
81206
+ case 3:
81207
+ message.balance = reader.int64();
81208
+ break;
81209
+ case 4:
81210
+ message.receiverAddress = reader.string();
81211
+ break;
81212
+ case 5:
81213
+ message.lock = reader.bool();
81214
+ break;
81215
+ default:
81216
+ reader.skipType(tag & 7);
81217
+ break;
81218
+ }
81219
+ }
81220
+ return message;
81221
+ };
81222
+
81223
+ /**
81224
+ * Verifies a DelegateResourceContract message.
81225
+ * @function verify
81226
+ * @memberof TW.Tron.Proto.DelegateResourceContract
81227
+ * @static
81228
+ * @param {Object.<string,*>} message Plain object to verify
81229
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
81230
+ */
81231
+ DelegateResourceContract.verify = function verify(message) {
81232
+ if (typeof message !== "object" || message === null)
81233
+ return "object expected";
81234
+ if (message.ownerAddress != null && message.hasOwnProperty("ownerAddress"))
81235
+ if (!$util.isString(message.ownerAddress))
81236
+ return "ownerAddress: string expected";
81237
+ if (message.resource != null && message.hasOwnProperty("resource"))
81238
+ if (!$util.isString(message.resource))
81239
+ return "resource: string expected";
81240
+ if (message.balance != null && message.hasOwnProperty("balance"))
81241
+ if (!$util.isInteger(message.balance) && !(message.balance && $util.isInteger(message.balance.low) && $util.isInteger(message.balance.high)))
81242
+ return "balance: integer|Long expected";
81243
+ if (message.receiverAddress != null && message.hasOwnProperty("receiverAddress"))
81244
+ if (!$util.isString(message.receiverAddress))
81245
+ return "receiverAddress: string expected";
81246
+ if (message.lock != null && message.hasOwnProperty("lock"))
81247
+ if (typeof message.lock !== "boolean")
81248
+ return "lock: boolean expected";
81249
+ return null;
81250
+ };
81251
+
81252
+ /**
81253
+ * Creates a DelegateResourceContract message from a plain object. Also converts values to their respective internal types.
81254
+ * @function fromObject
81255
+ * @memberof TW.Tron.Proto.DelegateResourceContract
81256
+ * @static
81257
+ * @param {Object.<string,*>} object Plain object
81258
+ * @returns {TW.Tron.Proto.DelegateResourceContract} DelegateResourceContract
81259
+ */
81260
+ DelegateResourceContract.fromObject = function fromObject(object) {
81261
+ if (object instanceof $root.TW.Tron.Proto.DelegateResourceContract)
81262
+ return object;
81263
+ var message = new $root.TW.Tron.Proto.DelegateResourceContract();
81264
+ if (object.ownerAddress != null)
81265
+ message.ownerAddress = String(object.ownerAddress);
81266
+ if (object.resource != null)
81267
+ message.resource = String(object.resource);
81268
+ if (object.balance != null)
81269
+ if ($util.Long)
81270
+ (message.balance = $util.Long.fromValue(object.balance)).unsigned = false;
81271
+ else if (typeof object.balance === "string")
81272
+ message.balance = parseInt(object.balance, 10);
81273
+ else if (typeof object.balance === "number")
81274
+ message.balance = object.balance;
81275
+ else if (typeof object.balance === "object")
81276
+ message.balance = new $util.LongBits(object.balance.low >>> 0, object.balance.high >>> 0).toNumber();
81277
+ if (object.receiverAddress != null)
81278
+ message.receiverAddress = String(object.receiverAddress);
81279
+ if (object.lock != null)
81280
+ message.lock = Boolean(object.lock);
81281
+ return message;
81282
+ };
81283
+
81284
+ /**
81285
+ * Creates a plain object from a DelegateResourceContract message. Also converts values to other types if specified.
81286
+ * @function toObject
81287
+ * @memberof TW.Tron.Proto.DelegateResourceContract
81288
+ * @static
81289
+ * @param {TW.Tron.Proto.DelegateResourceContract} message DelegateResourceContract
81290
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
81291
+ * @returns {Object.<string,*>} Plain object
81292
+ */
81293
+ DelegateResourceContract.toObject = function toObject(message, options) {
81294
+ if (!options)
81295
+ options = {};
81296
+ var object = {};
81297
+ if (options.defaults) {
81298
+ object.ownerAddress = "";
81299
+ object.resource = "";
81300
+ if ($util.Long) {
81301
+ var long = new $util.Long(0, 0, false);
81302
+ object.balance = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
81303
+ } else
81304
+ object.balance = options.longs === String ? "0" : 0;
81305
+ object.receiverAddress = "";
81306
+ object.lock = false;
81307
+ }
81308
+ if (message.ownerAddress != null && message.hasOwnProperty("ownerAddress"))
81309
+ object.ownerAddress = message.ownerAddress;
81310
+ if (message.resource != null && message.hasOwnProperty("resource"))
81311
+ object.resource = message.resource;
81312
+ if (message.balance != null && message.hasOwnProperty("balance"))
81313
+ if (typeof message.balance === "number")
81314
+ object.balance = options.longs === String ? String(message.balance) : message.balance;
81315
+ else
81316
+ object.balance = options.longs === String ? $util.Long.prototype.toString.call(message.balance) : options.longs === Number ? new $util.LongBits(message.balance.low >>> 0, message.balance.high >>> 0).toNumber() : message.balance;
81317
+ if (message.receiverAddress != null && message.hasOwnProperty("receiverAddress"))
81318
+ object.receiverAddress = message.receiverAddress;
81319
+ if (message.lock != null && message.hasOwnProperty("lock"))
81320
+ object.lock = message.lock;
81321
+ return object;
81322
+ };
81323
+
81324
+ /**
81325
+ * Converts this DelegateResourceContract to JSON.
81326
+ * @function toJSON
81327
+ * @memberof TW.Tron.Proto.DelegateResourceContract
81328
+ * @instance
81329
+ * @returns {Object.<string,*>} JSON object
81330
+ */
81331
+ DelegateResourceContract.prototype.toJSON = function toJSON() {
81332
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
81333
+ };
81334
+
81335
+ return DelegateResourceContract;
81336
+ })();
81337
+
81338
+ Proto.UnDelegateResourceContract = (function() {
81339
+
81340
+ /**
81341
+ * Properties of an UnDelegateResourceContract.
81342
+ * @memberof TW.Tron.Proto
81343
+ * @interface IUnDelegateResourceContract
81344
+ * @property {string|null} [ownerAddress] UnDelegateResourceContract ownerAddress
81345
+ * @property {string|null} [resource] UnDelegateResourceContract resource
81346
+ * @property {Long|null} [balance] UnDelegateResourceContract balance
81347
+ * @property {string|null} [receiverAddress] UnDelegateResourceContract receiverAddress
81348
+ */
81349
+
81350
+ /**
81351
+ * Constructs a new UnDelegateResourceContract.
81352
+ * @memberof TW.Tron.Proto
81353
+ * @classdesc Represents an UnDelegateResourceContract.
81354
+ * @implements IUnDelegateResourceContract
81355
+ * @constructor
81356
+ * @param {TW.Tron.Proto.IUnDelegateResourceContract=} [properties] Properties to set
81357
+ */
81358
+ function UnDelegateResourceContract(properties) {
81359
+ if (properties)
81360
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
81361
+ if (properties[keys[i]] != null)
81362
+ this[keys[i]] = properties[keys[i]];
81363
+ }
81364
+
81365
+ /**
81366
+ * UnDelegateResourceContract ownerAddress.
81367
+ * @member {string} ownerAddress
81368
+ * @memberof TW.Tron.Proto.UnDelegateResourceContract
81369
+ * @instance
81370
+ */
81371
+ UnDelegateResourceContract.prototype.ownerAddress = "";
81372
+
81373
+ /**
81374
+ * UnDelegateResourceContract resource.
81375
+ * @member {string} resource
81376
+ * @memberof TW.Tron.Proto.UnDelegateResourceContract
81377
+ * @instance
81378
+ */
81379
+ UnDelegateResourceContract.prototype.resource = "";
81380
+
81381
+ /**
81382
+ * UnDelegateResourceContract balance.
81383
+ * @member {Long} balance
81384
+ * @memberof TW.Tron.Proto.UnDelegateResourceContract
81385
+ * @instance
81386
+ */
81387
+ UnDelegateResourceContract.prototype.balance = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
81388
+
81389
+ /**
81390
+ * UnDelegateResourceContract receiverAddress.
81391
+ * @member {string} receiverAddress
81392
+ * @memberof TW.Tron.Proto.UnDelegateResourceContract
81393
+ * @instance
81394
+ */
81395
+ UnDelegateResourceContract.prototype.receiverAddress = "";
81396
+
81397
+ /**
81398
+ * Creates a new UnDelegateResourceContract instance using the specified properties.
81399
+ * @function create
81400
+ * @memberof TW.Tron.Proto.UnDelegateResourceContract
81401
+ * @static
81402
+ * @param {TW.Tron.Proto.IUnDelegateResourceContract=} [properties] Properties to set
81403
+ * @returns {TW.Tron.Proto.UnDelegateResourceContract} UnDelegateResourceContract instance
81404
+ */
81405
+ UnDelegateResourceContract.create = function create(properties) {
81406
+ return new UnDelegateResourceContract(properties);
81407
+ };
81408
+
81409
+ /**
81410
+ * Encodes the specified UnDelegateResourceContract message. Does not implicitly {@link TW.Tron.Proto.UnDelegateResourceContract.verify|verify} messages.
81411
+ * @function encode
81412
+ * @memberof TW.Tron.Proto.UnDelegateResourceContract
81413
+ * @static
81414
+ * @param {TW.Tron.Proto.IUnDelegateResourceContract} message UnDelegateResourceContract message or plain object to encode
81415
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81416
+ * @returns {$protobuf.Writer} Writer
81417
+ */
81418
+ UnDelegateResourceContract.encode = function encode(message, writer) {
81419
+ if (!writer)
81420
+ writer = $Writer.create();
81421
+ if (message.ownerAddress != null && Object.hasOwnProperty.call(message, "ownerAddress"))
81422
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.ownerAddress);
81423
+ if (message.resource != null && Object.hasOwnProperty.call(message, "resource"))
81424
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.resource);
81425
+ if (message.balance != null && Object.hasOwnProperty.call(message, "balance"))
81426
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.balance);
81427
+ if (message.receiverAddress != null && Object.hasOwnProperty.call(message, "receiverAddress"))
81428
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.receiverAddress);
81429
+ return writer;
81430
+ };
81431
+
81432
+ /**
81433
+ * Decodes an UnDelegateResourceContract message from the specified reader or buffer.
81434
+ * @function decode
81435
+ * @memberof TW.Tron.Proto.UnDelegateResourceContract
81436
+ * @static
81437
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81438
+ * @param {number} [length] Message length if known beforehand
81439
+ * @returns {TW.Tron.Proto.UnDelegateResourceContract} UnDelegateResourceContract
81440
+ * @throws {Error} If the payload is not a reader or valid buffer
81441
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81442
+ */
81443
+ UnDelegateResourceContract.decode = function decode(reader, length) {
81444
+ if (!(reader instanceof $Reader))
81445
+ reader = $Reader.create(reader);
81446
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Tron.Proto.UnDelegateResourceContract();
81447
+ while (reader.pos < end) {
81448
+ var tag = reader.uint32();
81449
+ switch (tag >>> 3) {
81450
+ case 1:
81451
+ message.ownerAddress = reader.string();
81452
+ break;
81453
+ case 2:
81454
+ message.resource = reader.string();
81455
+ break;
81456
+ case 3:
81457
+ message.balance = reader.int64();
81458
+ break;
81459
+ case 4:
81460
+ message.receiverAddress = reader.string();
81461
+ break;
81462
+ default:
81463
+ reader.skipType(tag & 7);
81464
+ break;
81465
+ }
81466
+ }
81467
+ return message;
81468
+ };
81469
+
81470
+ /**
81471
+ * Verifies an UnDelegateResourceContract message.
81472
+ * @function verify
81473
+ * @memberof TW.Tron.Proto.UnDelegateResourceContract
81474
+ * @static
81475
+ * @param {Object.<string,*>} message Plain object to verify
81476
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
81477
+ */
81478
+ UnDelegateResourceContract.verify = function verify(message) {
81479
+ if (typeof message !== "object" || message === null)
81480
+ return "object expected";
81481
+ if (message.ownerAddress != null && message.hasOwnProperty("ownerAddress"))
81482
+ if (!$util.isString(message.ownerAddress))
81483
+ return "ownerAddress: string expected";
81484
+ if (message.resource != null && message.hasOwnProperty("resource"))
81485
+ if (!$util.isString(message.resource))
81486
+ return "resource: string expected";
81487
+ if (message.balance != null && message.hasOwnProperty("balance"))
81488
+ if (!$util.isInteger(message.balance) && !(message.balance && $util.isInteger(message.balance.low) && $util.isInteger(message.balance.high)))
81489
+ return "balance: integer|Long expected";
81490
+ if (message.receiverAddress != null && message.hasOwnProperty("receiverAddress"))
81491
+ if (!$util.isString(message.receiverAddress))
81492
+ return "receiverAddress: string expected";
81493
+ return null;
81494
+ };
81495
+
81496
+ /**
81497
+ * Creates an UnDelegateResourceContract message from a plain object. Also converts values to their respective internal types.
81498
+ * @function fromObject
81499
+ * @memberof TW.Tron.Proto.UnDelegateResourceContract
81500
+ * @static
81501
+ * @param {Object.<string,*>} object Plain object
81502
+ * @returns {TW.Tron.Proto.UnDelegateResourceContract} UnDelegateResourceContract
81503
+ */
81504
+ UnDelegateResourceContract.fromObject = function fromObject(object) {
81505
+ if (object instanceof $root.TW.Tron.Proto.UnDelegateResourceContract)
81506
+ return object;
81507
+ var message = new $root.TW.Tron.Proto.UnDelegateResourceContract();
81508
+ if (object.ownerAddress != null)
81509
+ message.ownerAddress = String(object.ownerAddress);
81510
+ if (object.resource != null)
81511
+ message.resource = String(object.resource);
81512
+ if (object.balance != null)
81513
+ if ($util.Long)
81514
+ (message.balance = $util.Long.fromValue(object.balance)).unsigned = false;
81515
+ else if (typeof object.balance === "string")
81516
+ message.balance = parseInt(object.balance, 10);
81517
+ else if (typeof object.balance === "number")
81518
+ message.balance = object.balance;
81519
+ else if (typeof object.balance === "object")
81520
+ message.balance = new $util.LongBits(object.balance.low >>> 0, object.balance.high >>> 0).toNumber();
81521
+ if (object.receiverAddress != null)
81522
+ message.receiverAddress = String(object.receiverAddress);
81523
+ return message;
81524
+ };
81525
+
81526
+ /**
81527
+ * Creates a plain object from an UnDelegateResourceContract message. Also converts values to other types if specified.
81528
+ * @function toObject
81529
+ * @memberof TW.Tron.Proto.UnDelegateResourceContract
81530
+ * @static
81531
+ * @param {TW.Tron.Proto.UnDelegateResourceContract} message UnDelegateResourceContract
81532
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
81533
+ * @returns {Object.<string,*>} Plain object
81534
+ */
81535
+ UnDelegateResourceContract.toObject = function toObject(message, options) {
81536
+ if (!options)
81537
+ options = {};
81538
+ var object = {};
81539
+ if (options.defaults) {
81540
+ object.ownerAddress = "";
81541
+ object.resource = "";
81542
+ if ($util.Long) {
81543
+ var long = new $util.Long(0, 0, false);
81544
+ object.balance = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
81545
+ } else
81546
+ object.balance = options.longs === String ? "0" : 0;
81547
+ object.receiverAddress = "";
81548
+ }
81549
+ if (message.ownerAddress != null && message.hasOwnProperty("ownerAddress"))
81550
+ object.ownerAddress = message.ownerAddress;
81551
+ if (message.resource != null && message.hasOwnProperty("resource"))
81552
+ object.resource = message.resource;
81553
+ if (message.balance != null && message.hasOwnProperty("balance"))
81554
+ if (typeof message.balance === "number")
81555
+ object.balance = options.longs === String ? String(message.balance) : message.balance;
81556
+ else
81557
+ object.balance = options.longs === String ? $util.Long.prototype.toString.call(message.balance) : options.longs === Number ? new $util.LongBits(message.balance.low >>> 0, message.balance.high >>> 0).toNumber() : message.balance;
81558
+ if (message.receiverAddress != null && message.hasOwnProperty("receiverAddress"))
81559
+ object.receiverAddress = message.receiverAddress;
81560
+ return object;
81561
+ };
81562
+
81563
+ /**
81564
+ * Converts this UnDelegateResourceContract to JSON.
81565
+ * @function toJSON
81566
+ * @memberof TW.Tron.Proto.UnDelegateResourceContract
81567
+ * @instance
81568
+ * @returns {Object.<string,*>} JSON object
81569
+ */
81570
+ UnDelegateResourceContract.prototype.toJSON = function toJSON() {
81571
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
81572
+ };
81573
+
81574
+ return UnDelegateResourceContract;
81575
+ })();
81576
+
81577
+ Proto.UnfreezeBalanceContract = (function() {
81578
+
81579
+ /**
81580
+ * Properties of an UnfreezeBalanceContract.
81581
+ * @memberof TW.Tron.Proto
81582
+ * @interface IUnfreezeBalanceContract
81583
+ * @property {string|null} [ownerAddress] UnfreezeBalanceContract ownerAddress
81584
+ * @property {string|null} [resource] UnfreezeBalanceContract resource
81585
+ * @property {string|null} [receiverAddress] UnfreezeBalanceContract receiverAddress
81586
+ */
81587
+
81588
+ /**
81589
+ * Constructs a new UnfreezeBalanceContract.
81590
+ * @memberof TW.Tron.Proto
81591
+ * @classdesc Represents an UnfreezeBalanceContract.
81592
+ * @implements IUnfreezeBalanceContract
81593
+ * @constructor
81594
+ * @param {TW.Tron.Proto.IUnfreezeBalanceContract=} [properties] Properties to set
81595
+ */
81596
+ function UnfreezeBalanceContract(properties) {
81597
+ if (properties)
81598
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
81599
+ if (properties[keys[i]] != null)
81600
+ this[keys[i]] = properties[keys[i]];
81601
+ }
81602
+
81603
+ /**
81604
+ * UnfreezeBalanceContract ownerAddress.
81605
+ * @member {string} ownerAddress
81606
+ * @memberof TW.Tron.Proto.UnfreezeBalanceContract
81607
+ * @instance
81608
+ */
81609
+ UnfreezeBalanceContract.prototype.ownerAddress = "";
81610
+
81611
+ /**
81612
+ * UnfreezeBalanceContract resource.
81613
+ * @member {string} resource
81614
+ * @memberof TW.Tron.Proto.UnfreezeBalanceContract
81615
+ * @instance
81616
+ */
81617
+ UnfreezeBalanceContract.prototype.resource = "";
81618
+
81619
+ /**
81620
+ * UnfreezeBalanceContract receiverAddress.
81621
+ * @member {string} receiverAddress
81622
+ * @memberof TW.Tron.Proto.UnfreezeBalanceContract
81623
+ * @instance
81624
+ */
81625
+ UnfreezeBalanceContract.prototype.receiverAddress = "";
81626
+
81627
+ /**
81628
+ * Creates a new UnfreezeBalanceContract instance using the specified properties.
81629
+ * @function create
81630
+ * @memberof TW.Tron.Proto.UnfreezeBalanceContract
81631
+ * @static
81632
+ * @param {TW.Tron.Proto.IUnfreezeBalanceContract=} [properties] Properties to set
81633
+ * @returns {TW.Tron.Proto.UnfreezeBalanceContract} UnfreezeBalanceContract instance
81634
+ */
81635
+ UnfreezeBalanceContract.create = function create(properties) {
81636
+ return new UnfreezeBalanceContract(properties);
81637
+ };
81638
+
81639
+ /**
81640
+ * Encodes the specified UnfreezeBalanceContract message. Does not implicitly {@link TW.Tron.Proto.UnfreezeBalanceContract.verify|verify} messages.
81641
+ * @function encode
81642
+ * @memberof TW.Tron.Proto.UnfreezeBalanceContract
81643
+ * @static
81644
+ * @param {TW.Tron.Proto.IUnfreezeBalanceContract} message UnfreezeBalanceContract message or plain object to encode
81645
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81646
+ * @returns {$protobuf.Writer} Writer
81647
+ */
81648
+ UnfreezeBalanceContract.encode = function encode(message, writer) {
81649
+ if (!writer)
81650
+ writer = $Writer.create();
81651
+ if (message.ownerAddress != null && Object.hasOwnProperty.call(message, "ownerAddress"))
81652
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.ownerAddress);
81653
+ if (message.resource != null && Object.hasOwnProperty.call(message, "resource"))
81654
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.resource);
81655
+ if (message.receiverAddress != null && Object.hasOwnProperty.call(message, "receiverAddress"))
81656
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.receiverAddress);
81657
+ return writer;
81658
+ };
81659
+
81660
+ /**
81661
+ * Decodes an UnfreezeBalanceContract message from the specified reader or buffer.
81662
+ * @function decode
81663
+ * @memberof TW.Tron.Proto.UnfreezeBalanceContract
81664
+ * @static
81665
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81666
+ * @param {number} [length] Message length if known beforehand
81667
+ * @returns {TW.Tron.Proto.UnfreezeBalanceContract} UnfreezeBalanceContract
81668
+ * @throws {Error} If the payload is not a reader or valid buffer
81669
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81670
+ */
81671
+ UnfreezeBalanceContract.decode = function decode(reader, length) {
81672
+ if (!(reader instanceof $Reader))
81673
+ reader = $Reader.create(reader);
81674
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Tron.Proto.UnfreezeBalanceContract();
81675
+ while (reader.pos < end) {
81676
+ var tag = reader.uint32();
81677
+ switch (tag >>> 3) {
81678
+ case 1:
81679
+ message.ownerAddress = reader.string();
81680
+ break;
81681
+ case 10:
81682
+ message.resource = reader.string();
81683
+ break;
81684
+ case 15:
81685
+ message.receiverAddress = reader.string();
81686
+ break;
81687
+ default:
81688
+ reader.skipType(tag & 7);
81689
+ break;
81690
+ }
81691
+ }
81692
+ return message;
81693
+ };
81694
+
81695
+ /**
81696
+ * Verifies an UnfreezeBalanceContract message.
81697
+ * @function verify
81698
+ * @memberof TW.Tron.Proto.UnfreezeBalanceContract
81699
+ * @static
81700
+ * @param {Object.<string,*>} message Plain object to verify
81701
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
81702
+ */
81703
+ UnfreezeBalanceContract.verify = function verify(message) {
81704
+ if (typeof message !== "object" || message === null)
81705
+ return "object expected";
81706
+ if (message.ownerAddress != null && message.hasOwnProperty("ownerAddress"))
81707
+ if (!$util.isString(message.ownerAddress))
81708
+ return "ownerAddress: string expected";
81709
+ if (message.resource != null && message.hasOwnProperty("resource"))
81710
+ if (!$util.isString(message.resource))
81711
+ return "resource: string expected";
81712
+ if (message.receiverAddress != null && message.hasOwnProperty("receiverAddress"))
81713
+ if (!$util.isString(message.receiverAddress))
81714
+ return "receiverAddress: string expected";
81715
+ return null;
81716
+ };
81717
+
81718
+ /**
81719
+ * Creates an UnfreezeBalanceContract message from a plain object. Also converts values to their respective internal types.
81720
+ * @function fromObject
81721
+ * @memberof TW.Tron.Proto.UnfreezeBalanceContract
81722
+ * @static
81723
+ * @param {Object.<string,*>} object Plain object
81724
+ * @returns {TW.Tron.Proto.UnfreezeBalanceContract} UnfreezeBalanceContract
81725
+ */
81726
+ UnfreezeBalanceContract.fromObject = function fromObject(object) {
81727
+ if (object instanceof $root.TW.Tron.Proto.UnfreezeBalanceContract)
81728
+ return object;
81729
+ var message = new $root.TW.Tron.Proto.UnfreezeBalanceContract();
81730
+ if (object.ownerAddress != null)
81731
+ message.ownerAddress = String(object.ownerAddress);
81732
+ if (object.resource != null)
81733
+ message.resource = String(object.resource);
81734
+ if (object.receiverAddress != null)
81735
+ message.receiverAddress = String(object.receiverAddress);
81736
+ return message;
81737
+ };
81738
+
81739
+ /**
81740
+ * Creates a plain object from an UnfreezeBalanceContract message. Also converts values to other types if specified.
81741
+ * @function toObject
81742
+ * @memberof TW.Tron.Proto.UnfreezeBalanceContract
81743
+ * @static
81744
+ * @param {TW.Tron.Proto.UnfreezeBalanceContract} message UnfreezeBalanceContract
81745
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
81746
+ * @returns {Object.<string,*>} Plain object
81747
+ */
81748
+ UnfreezeBalanceContract.toObject = function toObject(message, options) {
81749
+ if (!options)
81750
+ options = {};
81751
+ var object = {};
81752
+ if (options.defaults) {
81753
+ object.ownerAddress = "";
81754
+ object.resource = "";
81755
+ object.receiverAddress = "";
81756
+ }
81757
+ if (message.ownerAddress != null && message.hasOwnProperty("ownerAddress"))
81758
+ object.ownerAddress = message.ownerAddress;
81759
+ if (message.resource != null && message.hasOwnProperty("resource"))
81760
+ object.resource = message.resource;
81761
+ if (message.receiverAddress != null && message.hasOwnProperty("receiverAddress"))
81762
+ object.receiverAddress = message.receiverAddress;
81763
+ return object;
81764
+ };
81765
+
81766
+ /**
81767
+ * Converts this UnfreezeBalanceContract to JSON.
81768
+ * @function toJSON
81769
+ * @memberof TW.Tron.Proto.UnfreezeBalanceContract
81770
+ * @instance
81771
+ * @returns {Object.<string,*>} JSON object
81772
+ */
81773
+ UnfreezeBalanceContract.prototype.toJSON = function toJSON() {
81774
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
81775
+ };
81776
+
81777
+ return UnfreezeBalanceContract;
81778
+ })();
81779
+
81780
+ Proto.UnfreezeAssetContract = (function() {
81781
+
81782
+ /**
81783
+ * Properties of an UnfreezeAssetContract.
81784
+ * @memberof TW.Tron.Proto
81785
+ * @interface IUnfreezeAssetContract
81786
+ * @property {string|null} [ownerAddress] UnfreezeAssetContract ownerAddress
81787
+ */
81788
+
81789
+ /**
81790
+ * Constructs a new UnfreezeAssetContract.
81791
+ * @memberof TW.Tron.Proto
81792
+ * @classdesc Represents an UnfreezeAssetContract.
81793
+ * @implements IUnfreezeAssetContract
81794
+ * @constructor
81795
+ * @param {TW.Tron.Proto.IUnfreezeAssetContract=} [properties] Properties to set
81796
+ */
81797
+ function UnfreezeAssetContract(properties) {
81798
+ if (properties)
81799
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
81800
+ if (properties[keys[i]] != null)
81801
+ this[keys[i]] = properties[keys[i]];
81802
+ }
81803
+
81804
+ /**
81805
+ * UnfreezeAssetContract ownerAddress.
81806
+ * @member {string} ownerAddress
81807
+ * @memberof TW.Tron.Proto.UnfreezeAssetContract
81808
+ * @instance
81809
+ */
81810
+ UnfreezeAssetContract.prototype.ownerAddress = "";
81811
+
81812
+ /**
81813
+ * Creates a new UnfreezeAssetContract instance using the specified properties.
81814
+ * @function create
81815
+ * @memberof TW.Tron.Proto.UnfreezeAssetContract
81816
+ * @static
81817
+ * @param {TW.Tron.Proto.IUnfreezeAssetContract=} [properties] Properties to set
81818
+ * @returns {TW.Tron.Proto.UnfreezeAssetContract} UnfreezeAssetContract instance
81819
+ */
81820
+ UnfreezeAssetContract.create = function create(properties) {
81821
+ return new UnfreezeAssetContract(properties);
81822
+ };
81823
+
81824
+ /**
81825
+ * Encodes the specified UnfreezeAssetContract message. Does not implicitly {@link TW.Tron.Proto.UnfreezeAssetContract.verify|verify} messages.
81826
+ * @function encode
81827
+ * @memberof TW.Tron.Proto.UnfreezeAssetContract
81828
+ * @static
81829
+ * @param {TW.Tron.Proto.IUnfreezeAssetContract} message UnfreezeAssetContract message or plain object to encode
81830
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81831
+ * @returns {$protobuf.Writer} Writer
81832
+ */
81833
+ UnfreezeAssetContract.encode = function encode(message, writer) {
81834
+ if (!writer)
81835
+ writer = $Writer.create();
81836
+ if (message.ownerAddress != null && Object.hasOwnProperty.call(message, "ownerAddress"))
81837
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.ownerAddress);
81838
+ return writer;
81839
+ };
81840
+
81841
+ /**
81842
+ * Decodes an UnfreezeAssetContract message from the specified reader or buffer.
81843
+ * @function decode
81844
+ * @memberof TW.Tron.Proto.UnfreezeAssetContract
81845
+ * @static
81846
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81847
+ * @param {number} [length] Message length if known beforehand
81848
+ * @returns {TW.Tron.Proto.UnfreezeAssetContract} UnfreezeAssetContract
81849
+ * @throws {Error} If the payload is not a reader or valid buffer
81850
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81851
+ */
81852
+ UnfreezeAssetContract.decode = function decode(reader, length) {
81853
+ if (!(reader instanceof $Reader))
81854
+ reader = $Reader.create(reader);
81855
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Tron.Proto.UnfreezeAssetContract();
81856
+ while (reader.pos < end) {
81857
+ var tag = reader.uint32();
81858
+ switch (tag >>> 3) {
81859
+ case 1:
81860
+ message.ownerAddress = reader.string();
81861
+ break;
81862
+ default:
81863
+ reader.skipType(tag & 7);
81864
+ break;
81865
+ }
81866
+ }
81867
+ return message;
81868
+ };
81869
+
81870
+ /**
81871
+ * Verifies an UnfreezeAssetContract message.
81872
+ * @function verify
81873
+ * @memberof TW.Tron.Proto.UnfreezeAssetContract
81874
+ * @static
81875
+ * @param {Object.<string,*>} message Plain object to verify
81876
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
81877
+ */
81878
+ UnfreezeAssetContract.verify = function verify(message) {
81879
+ if (typeof message !== "object" || message === null)
81880
+ return "object expected";
81881
+ if (message.ownerAddress != null && message.hasOwnProperty("ownerAddress"))
81882
+ if (!$util.isString(message.ownerAddress))
81883
+ return "ownerAddress: string expected";
81884
+ return null;
81885
+ };
81886
+
81887
+ /**
81888
+ * Creates an UnfreezeAssetContract message from a plain object. Also converts values to their respective internal types.
81889
+ * @function fromObject
81890
+ * @memberof TW.Tron.Proto.UnfreezeAssetContract
81891
+ * @static
81892
+ * @param {Object.<string,*>} object Plain object
81893
+ * @returns {TW.Tron.Proto.UnfreezeAssetContract} UnfreezeAssetContract
81894
+ */
81895
+ UnfreezeAssetContract.fromObject = function fromObject(object) {
81896
+ if (object instanceof $root.TW.Tron.Proto.UnfreezeAssetContract)
81897
+ return object;
81898
+ var message = new $root.TW.Tron.Proto.UnfreezeAssetContract();
81899
+ if (object.ownerAddress != null)
81900
+ message.ownerAddress = String(object.ownerAddress);
81901
+ return message;
81902
+ };
81903
+
81904
+ /**
81905
+ * Creates a plain object from an UnfreezeAssetContract message. Also converts values to other types if specified.
81906
+ * @function toObject
81907
+ * @memberof TW.Tron.Proto.UnfreezeAssetContract
81908
+ * @static
81909
+ * @param {TW.Tron.Proto.UnfreezeAssetContract} message UnfreezeAssetContract
81910
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
81911
+ * @returns {Object.<string,*>} Plain object
81912
+ */
81913
+ UnfreezeAssetContract.toObject = function toObject(message, options) {
81914
+ if (!options)
81915
+ options = {};
81916
+ var object = {};
81917
+ if (options.defaults)
81918
+ object.ownerAddress = "";
81919
+ if (message.ownerAddress != null && message.hasOwnProperty("ownerAddress"))
81920
+ object.ownerAddress = message.ownerAddress;
81921
+ return object;
81922
+ };
81923
+
81924
+ /**
81925
+ * Converts this UnfreezeAssetContract to JSON.
81926
+ * @function toJSON
81927
+ * @memberof TW.Tron.Proto.UnfreezeAssetContract
81928
+ * @instance
81929
+ * @returns {Object.<string,*>} JSON object
81930
+ */
81931
+ UnfreezeAssetContract.prototype.toJSON = function toJSON() {
81932
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
81933
+ };
81934
+
81935
+ return UnfreezeAssetContract;
81936
+ })();
81937
+
81938
+ Proto.VoteAssetContract = (function() {
81939
+
81940
+ /**
81941
+ * Properties of a VoteAssetContract.
81942
+ * @memberof TW.Tron.Proto
81943
+ * @interface IVoteAssetContract
81944
+ * @property {string|null} [ownerAddress] VoteAssetContract ownerAddress
81945
+ * @property {Array.<string>|null} [voteAddress] VoteAssetContract voteAddress
81946
+ * @property {boolean|null} [support] VoteAssetContract support
81947
+ * @property {number|null} [count] VoteAssetContract count
81948
+ */
81949
+
81950
+ /**
81951
+ * Constructs a new VoteAssetContract.
81952
+ * @memberof TW.Tron.Proto
81953
+ * @classdesc Represents a VoteAssetContract.
81954
+ * @implements IVoteAssetContract
81955
+ * @constructor
81956
+ * @param {TW.Tron.Proto.IVoteAssetContract=} [properties] Properties to set
81957
+ */
81958
+ function VoteAssetContract(properties) {
81959
+ this.voteAddress = [];
81960
+ if (properties)
81961
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
81962
+ if (properties[keys[i]] != null)
81963
+ this[keys[i]] = properties[keys[i]];
81964
+ }
81965
+
81966
+ /**
81967
+ * VoteAssetContract ownerAddress.
81968
+ * @member {string} ownerAddress
81969
+ * @memberof TW.Tron.Proto.VoteAssetContract
81970
+ * @instance
81971
+ */
81972
+ VoteAssetContract.prototype.ownerAddress = "";
81973
+
81974
+ /**
81975
+ * VoteAssetContract voteAddress.
81976
+ * @member {Array.<string>} voteAddress
81977
+ * @memberof TW.Tron.Proto.VoteAssetContract
81978
+ * @instance
81979
+ */
81980
+ VoteAssetContract.prototype.voteAddress = $util.emptyArray;
81981
+
81982
+ /**
81983
+ * VoteAssetContract support.
81984
+ * @member {boolean} support
81985
+ * @memberof TW.Tron.Proto.VoteAssetContract
81986
+ * @instance
81987
+ */
81988
+ VoteAssetContract.prototype.support = false;
81989
+
81990
+ /**
81991
+ * VoteAssetContract count.
81992
+ * @member {number} count
81993
+ * @memberof TW.Tron.Proto.VoteAssetContract
81994
+ * @instance
81995
+ */
81996
+ VoteAssetContract.prototype.count = 0;
81997
+
81998
+ /**
81999
+ * Creates a new VoteAssetContract instance using the specified properties.
82000
+ * @function create
82001
+ * @memberof TW.Tron.Proto.VoteAssetContract
82002
+ * @static
82003
+ * @param {TW.Tron.Proto.IVoteAssetContract=} [properties] Properties to set
82004
+ * @returns {TW.Tron.Proto.VoteAssetContract} VoteAssetContract instance
82005
+ */
82006
+ VoteAssetContract.create = function create(properties) {
82007
+ return new VoteAssetContract(properties);
82008
+ };
82009
+
82010
+ /**
82011
+ * Encodes the specified VoteAssetContract message. Does not implicitly {@link TW.Tron.Proto.VoteAssetContract.verify|verify} messages.
82012
+ * @function encode
82013
+ * @memberof TW.Tron.Proto.VoteAssetContract
82014
+ * @static
82015
+ * @param {TW.Tron.Proto.IVoteAssetContract} message VoteAssetContract message or plain object to encode
82016
+ * @param {$protobuf.Writer} [writer] Writer to encode to
82017
+ * @returns {$protobuf.Writer} Writer
82018
+ */
82019
+ VoteAssetContract.encode = function encode(message, writer) {
82020
+ if (!writer)
82021
+ writer = $Writer.create();
82022
+ if (message.ownerAddress != null && Object.hasOwnProperty.call(message, "ownerAddress"))
82023
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.ownerAddress);
82024
+ if (message.voteAddress != null && message.voteAddress.length)
82025
+ for (var i = 0; i < message.voteAddress.length; ++i)
82026
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.voteAddress[i]);
82027
+ if (message.support != null && Object.hasOwnProperty.call(message, "support"))
82028
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.support);
82029
+ if (message.count != null && Object.hasOwnProperty.call(message, "count"))
82030
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.count);
82031
+ return writer;
82032
+ };
82033
+
82034
+ /**
82035
+ * Decodes a VoteAssetContract message from the specified reader or buffer.
82036
+ * @function decode
82037
+ * @memberof TW.Tron.Proto.VoteAssetContract
82038
+ * @static
82039
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
82040
+ * @param {number} [length] Message length if known beforehand
82041
+ * @returns {TW.Tron.Proto.VoteAssetContract} VoteAssetContract
82042
+ * @throws {Error} If the payload is not a reader or valid buffer
82043
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
82044
+ */
82045
+ VoteAssetContract.decode = function decode(reader, length) {
82046
+ if (!(reader instanceof $Reader))
82047
+ reader = $Reader.create(reader);
82048
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Tron.Proto.VoteAssetContract();
82049
+ while (reader.pos < end) {
82050
+ var tag = reader.uint32();
82051
+ switch (tag >>> 3) {
82052
+ case 1:
82053
+ message.ownerAddress = reader.string();
82054
+ break;
82055
+ case 2:
82056
+ if (!(message.voteAddress && message.voteAddress.length))
82057
+ message.voteAddress = [];
82058
+ message.voteAddress.push(reader.string());
80936
82059
  break;
80937
82060
  case 3:
80938
82061
  message.support = reader.bool();
@@ -82296,6 +83419,11 @@
82296
83419
  * @property {TW.Tron.Proto.IVoteWitnessContract|null} [voteWitness] Transaction voteWitness
82297
83420
  * @property {TW.Tron.Proto.ITriggerSmartContract|null} [triggerSmartContract] Transaction triggerSmartContract
82298
83421
  * @property {TW.Tron.Proto.ITransferTRC20Contract|null} [transferTrc20Contract] Transaction transferTrc20Contract
83422
+ * @property {TW.Tron.Proto.IFreezeBalanceV2Contract|null} [freezeBalanceV2] Transaction freezeBalanceV2
83423
+ * @property {TW.Tron.Proto.IUnfreezeBalanceV2Contract|null} [unfreezeBalanceV2] Transaction unfreezeBalanceV2
83424
+ * @property {TW.Tron.Proto.IWithdrawExpireUnfreezeContract|null} [withdrawExpireUnfreeze] Transaction withdrawExpireUnfreeze
83425
+ * @property {TW.Tron.Proto.IDelegateResourceContract|null} [delegateResource] Transaction delegateResource
83426
+ * @property {TW.Tron.Proto.IUnDelegateResourceContract|null} [undelegateResource] Transaction undelegateResource
82299
83427
  */
82300
83428
 
82301
83429
  /**
@@ -82425,17 +83553,57 @@
82425
83553
  */
82426
83554
  Transaction.prototype.transferTrc20Contract = null;
82427
83555
 
83556
+ /**
83557
+ * Transaction freezeBalanceV2.
83558
+ * @member {TW.Tron.Proto.IFreezeBalanceV2Contract|null|undefined} freezeBalanceV2
83559
+ * @memberof TW.Tron.Proto.Transaction
83560
+ * @instance
83561
+ */
83562
+ Transaction.prototype.freezeBalanceV2 = null;
83563
+
83564
+ /**
83565
+ * Transaction unfreezeBalanceV2.
83566
+ * @member {TW.Tron.Proto.IUnfreezeBalanceV2Contract|null|undefined} unfreezeBalanceV2
83567
+ * @memberof TW.Tron.Proto.Transaction
83568
+ * @instance
83569
+ */
83570
+ Transaction.prototype.unfreezeBalanceV2 = null;
83571
+
83572
+ /**
83573
+ * Transaction withdrawExpireUnfreeze.
83574
+ * @member {TW.Tron.Proto.IWithdrawExpireUnfreezeContract|null|undefined} withdrawExpireUnfreeze
83575
+ * @memberof TW.Tron.Proto.Transaction
83576
+ * @instance
83577
+ */
83578
+ Transaction.prototype.withdrawExpireUnfreeze = null;
83579
+
83580
+ /**
83581
+ * Transaction delegateResource.
83582
+ * @member {TW.Tron.Proto.IDelegateResourceContract|null|undefined} delegateResource
83583
+ * @memberof TW.Tron.Proto.Transaction
83584
+ * @instance
83585
+ */
83586
+ Transaction.prototype.delegateResource = null;
83587
+
83588
+ /**
83589
+ * Transaction undelegateResource.
83590
+ * @member {TW.Tron.Proto.IUnDelegateResourceContract|null|undefined} undelegateResource
83591
+ * @memberof TW.Tron.Proto.Transaction
83592
+ * @instance
83593
+ */
83594
+ Transaction.prototype.undelegateResource = null;
83595
+
82428
83596
  // OneOf field names bound to virtual getters and setters
82429
83597
  var $oneOfFields;
82430
83598
 
82431
83599
  /**
82432
83600
  * Transaction contractOneof.
82433
- * @member {"transfer"|"transferAsset"|"freezeBalance"|"unfreezeBalance"|"unfreezeAsset"|"withdrawBalance"|"voteAsset"|"voteWitness"|"triggerSmartContract"|"transferTrc20Contract"|undefined} contractOneof
83601
+ * @member {"transfer"|"transferAsset"|"freezeBalance"|"unfreezeBalance"|"unfreezeAsset"|"withdrawBalance"|"voteAsset"|"voteWitness"|"triggerSmartContract"|"transferTrc20Contract"|"freezeBalanceV2"|"unfreezeBalanceV2"|"withdrawExpireUnfreeze"|"delegateResource"|"undelegateResource"|undefined} contractOneof
82434
83602
  * @memberof TW.Tron.Proto.Transaction
82435
83603
  * @instance
82436
83604
  */
82437
83605
  Object.defineProperty(Transaction.prototype, "contractOneof", {
82438
- get: $util.oneOfGetter($oneOfFields = ["transfer", "transferAsset", "freezeBalance", "unfreezeBalance", "unfreezeAsset", "withdrawBalance", "voteAsset", "voteWitness", "triggerSmartContract", "transferTrc20Contract"]),
83606
+ get: $util.oneOfGetter($oneOfFields = ["transfer", "transferAsset", "freezeBalance", "unfreezeBalance", "unfreezeAsset", "withdrawBalance", "voteAsset", "voteWitness", "triggerSmartContract", "transferTrc20Contract", "freezeBalanceV2", "unfreezeBalanceV2", "withdrawExpireUnfreeze", "delegateResource", "undelegateResource"]),
82439
83607
  set: $util.oneOfSetter($oneOfFields)
82440
83608
  });
82441
83609
 
@@ -82491,6 +83659,16 @@
82491
83659
  $root.TW.Tron.Proto.TriggerSmartContract.encode(message.triggerSmartContract, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
82492
83660
  if (message.transferTrc20Contract != null && Object.hasOwnProperty.call(message, "transferTrc20Contract"))
82493
83661
  $root.TW.Tron.Proto.TransferTRC20Contract.encode(message.transferTrc20Contract, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
83662
+ if (message.freezeBalanceV2 != null && Object.hasOwnProperty.call(message, "freezeBalanceV2"))
83663
+ $root.TW.Tron.Proto.FreezeBalanceV2Contract.encode(message.freezeBalanceV2, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
83664
+ if (message.unfreezeBalanceV2 != null && Object.hasOwnProperty.call(message, "unfreezeBalanceV2"))
83665
+ $root.TW.Tron.Proto.UnfreezeBalanceV2Contract.encode(message.unfreezeBalanceV2, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
83666
+ if (message.withdrawExpireUnfreeze != null && Object.hasOwnProperty.call(message, "withdrawExpireUnfreeze"))
83667
+ $root.TW.Tron.Proto.WithdrawExpireUnfreezeContract.encode(message.withdrawExpireUnfreeze, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
83668
+ if (message.delegateResource != null && Object.hasOwnProperty.call(message, "delegateResource"))
83669
+ $root.TW.Tron.Proto.DelegateResourceContract.encode(message.delegateResource, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
83670
+ if (message.undelegateResource != null && Object.hasOwnProperty.call(message, "undelegateResource"))
83671
+ $root.TW.Tron.Proto.UnDelegateResourceContract.encode(message.undelegateResource, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
82494
83672
  return writer;
82495
83673
  };
82496
83674
 
@@ -82554,6 +83732,21 @@
82554
83732
  case 19:
82555
83733
  message.transferTrc20Contract = $root.TW.Tron.Proto.TransferTRC20Contract.decode(reader, reader.uint32());
82556
83734
  break;
83735
+ case 20:
83736
+ message.freezeBalanceV2 = $root.TW.Tron.Proto.FreezeBalanceV2Contract.decode(reader, reader.uint32());
83737
+ break;
83738
+ case 21:
83739
+ message.unfreezeBalanceV2 = $root.TW.Tron.Proto.UnfreezeBalanceV2Contract.decode(reader, reader.uint32());
83740
+ break;
83741
+ case 23:
83742
+ message.withdrawExpireUnfreeze = $root.TW.Tron.Proto.WithdrawExpireUnfreezeContract.decode(reader, reader.uint32());
83743
+ break;
83744
+ case 24:
83745
+ message.delegateResource = $root.TW.Tron.Proto.DelegateResourceContract.decode(reader, reader.uint32());
83746
+ break;
83747
+ case 25:
83748
+ message.undelegateResource = $root.TW.Tron.Proto.UnDelegateResourceContract.decode(reader, reader.uint32());
83749
+ break;
82557
83750
  default:
82558
83751
  reader.skipType(tag & 7);
82559
83752
  break;
@@ -82686,6 +83879,56 @@
82686
83879
  return "transferTrc20Contract." + error;
82687
83880
  }
82688
83881
  }
83882
+ if (message.freezeBalanceV2 != null && message.hasOwnProperty("freezeBalanceV2")) {
83883
+ if (properties.contractOneof === 1)
83884
+ return "contractOneof: multiple values";
83885
+ properties.contractOneof = 1;
83886
+ {
83887
+ var error = $root.TW.Tron.Proto.FreezeBalanceV2Contract.verify(message.freezeBalanceV2);
83888
+ if (error)
83889
+ return "freezeBalanceV2." + error;
83890
+ }
83891
+ }
83892
+ if (message.unfreezeBalanceV2 != null && message.hasOwnProperty("unfreezeBalanceV2")) {
83893
+ if (properties.contractOneof === 1)
83894
+ return "contractOneof: multiple values";
83895
+ properties.contractOneof = 1;
83896
+ {
83897
+ var error = $root.TW.Tron.Proto.UnfreezeBalanceV2Contract.verify(message.unfreezeBalanceV2);
83898
+ if (error)
83899
+ return "unfreezeBalanceV2." + error;
83900
+ }
83901
+ }
83902
+ if (message.withdrawExpireUnfreeze != null && message.hasOwnProperty("withdrawExpireUnfreeze")) {
83903
+ if (properties.contractOneof === 1)
83904
+ return "contractOneof: multiple values";
83905
+ properties.contractOneof = 1;
83906
+ {
83907
+ var error = $root.TW.Tron.Proto.WithdrawExpireUnfreezeContract.verify(message.withdrawExpireUnfreeze);
83908
+ if (error)
83909
+ return "withdrawExpireUnfreeze." + error;
83910
+ }
83911
+ }
83912
+ if (message.delegateResource != null && message.hasOwnProperty("delegateResource")) {
83913
+ if (properties.contractOneof === 1)
83914
+ return "contractOneof: multiple values";
83915
+ properties.contractOneof = 1;
83916
+ {
83917
+ var error = $root.TW.Tron.Proto.DelegateResourceContract.verify(message.delegateResource);
83918
+ if (error)
83919
+ return "delegateResource." + error;
83920
+ }
83921
+ }
83922
+ if (message.undelegateResource != null && message.hasOwnProperty("undelegateResource")) {
83923
+ if (properties.contractOneof === 1)
83924
+ return "contractOneof: multiple values";
83925
+ properties.contractOneof = 1;
83926
+ {
83927
+ var error = $root.TW.Tron.Proto.UnDelegateResourceContract.verify(message.undelegateResource);
83928
+ if (error)
83929
+ return "undelegateResource." + error;
83930
+ }
83931
+ }
82689
83932
  return null;
82690
83933
  };
82691
83934
 
@@ -82783,6 +84026,31 @@
82783
84026
  throw TypeError(".TW.Tron.Proto.Transaction.transferTrc20Contract: object expected");
82784
84027
  message.transferTrc20Contract = $root.TW.Tron.Proto.TransferTRC20Contract.fromObject(object.transferTrc20Contract);
82785
84028
  }
84029
+ if (object.freezeBalanceV2 != null) {
84030
+ if (typeof object.freezeBalanceV2 !== "object")
84031
+ throw TypeError(".TW.Tron.Proto.Transaction.freezeBalanceV2: object expected");
84032
+ message.freezeBalanceV2 = $root.TW.Tron.Proto.FreezeBalanceV2Contract.fromObject(object.freezeBalanceV2);
84033
+ }
84034
+ if (object.unfreezeBalanceV2 != null) {
84035
+ if (typeof object.unfreezeBalanceV2 !== "object")
84036
+ throw TypeError(".TW.Tron.Proto.Transaction.unfreezeBalanceV2: object expected");
84037
+ message.unfreezeBalanceV2 = $root.TW.Tron.Proto.UnfreezeBalanceV2Contract.fromObject(object.unfreezeBalanceV2);
84038
+ }
84039
+ if (object.withdrawExpireUnfreeze != null) {
84040
+ if (typeof object.withdrawExpireUnfreeze !== "object")
84041
+ throw TypeError(".TW.Tron.Proto.Transaction.withdrawExpireUnfreeze: object expected");
84042
+ message.withdrawExpireUnfreeze = $root.TW.Tron.Proto.WithdrawExpireUnfreezeContract.fromObject(object.withdrawExpireUnfreeze);
84043
+ }
84044
+ if (object.delegateResource != null) {
84045
+ if (typeof object.delegateResource !== "object")
84046
+ throw TypeError(".TW.Tron.Proto.Transaction.delegateResource: object expected");
84047
+ message.delegateResource = $root.TW.Tron.Proto.DelegateResourceContract.fromObject(object.delegateResource);
84048
+ }
84049
+ if (object.undelegateResource != null) {
84050
+ if (typeof object.undelegateResource !== "object")
84051
+ throw TypeError(".TW.Tron.Proto.Transaction.undelegateResource: object expected");
84052
+ message.undelegateResource = $root.TW.Tron.Proto.UnDelegateResourceContract.fromObject(object.undelegateResource);
84053
+ }
82786
84054
  return message;
82787
84055
  };
82788
84056
 
@@ -82884,6 +84152,31 @@
82884
84152
  if (options.oneofs)
82885
84153
  object.contractOneof = "transferTrc20Contract";
82886
84154
  }
84155
+ if (message.freezeBalanceV2 != null && message.hasOwnProperty("freezeBalanceV2")) {
84156
+ object.freezeBalanceV2 = $root.TW.Tron.Proto.FreezeBalanceV2Contract.toObject(message.freezeBalanceV2, options);
84157
+ if (options.oneofs)
84158
+ object.contractOneof = "freezeBalanceV2";
84159
+ }
84160
+ if (message.unfreezeBalanceV2 != null && message.hasOwnProperty("unfreezeBalanceV2")) {
84161
+ object.unfreezeBalanceV2 = $root.TW.Tron.Proto.UnfreezeBalanceV2Contract.toObject(message.unfreezeBalanceV2, options);
84162
+ if (options.oneofs)
84163
+ object.contractOneof = "unfreezeBalanceV2";
84164
+ }
84165
+ if (message.withdrawExpireUnfreeze != null && message.hasOwnProperty("withdrawExpireUnfreeze")) {
84166
+ object.withdrawExpireUnfreeze = $root.TW.Tron.Proto.WithdrawExpireUnfreezeContract.toObject(message.withdrawExpireUnfreeze, options);
84167
+ if (options.oneofs)
84168
+ object.contractOneof = "withdrawExpireUnfreeze";
84169
+ }
84170
+ if (message.delegateResource != null && message.hasOwnProperty("delegateResource")) {
84171
+ object.delegateResource = $root.TW.Tron.Proto.DelegateResourceContract.toObject(message.delegateResource, options);
84172
+ if (options.oneofs)
84173
+ object.contractOneof = "delegateResource";
84174
+ }
84175
+ if (message.undelegateResource != null && message.hasOwnProperty("undelegateResource")) {
84176
+ object.undelegateResource = $root.TW.Tron.Proto.UnDelegateResourceContract.toObject(message.undelegateResource, options);
84177
+ if (options.oneofs)
84178
+ object.contractOneof = "undelegateResource";
84179
+ }
82887
84180
  return object;
82888
84181
  };
82889
84182