@trustwallet/wallet-core 3.1.35 → 3.1.37

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.
@@ -6587,7 +6587,8 @@
6587
6587
  * @property {string|null} [accountFacet] ContractAddressInput accountFacet
6588
6588
  * @property {string|null} [verificationFacet] ContractAddressInput verificationFacet
6589
6589
  * @property {string|null} [entryPoint] ContractAddressInput entryPoint
6590
- * @property {string|null} [securityManager] ContractAddressInput securityManager
6590
+ * @property {string|null} [diamondLoupeFacet] ContractAddressInput diamondLoupeFacet
6591
+ * @property {string|null} [diamondInit] ContractAddressInput diamondInit
6591
6592
  * @property {string|null} [facetRegistry] ContractAddressInput facetRegistry
6592
6593
  * @property {string|null} [bytecode] ContractAddressInput bytecode
6593
6594
  * @property {TW.Barz.Proto.IContractOwner|null} [owner] ContractAddressInput owner
@@ -6649,12 +6650,20 @@
6649
6650
  ContractAddressInput.prototype.entryPoint = "";
6650
6651
 
6651
6652
  /**
6652
- * ContractAddressInput securityManager.
6653
- * @member {string} securityManager
6653
+ * ContractAddressInput diamondLoupeFacet.
6654
+ * @member {string} diamondLoupeFacet
6654
6655
  * @memberof TW.Barz.Proto.ContractAddressInput
6655
6656
  * @instance
6656
6657
  */
6657
- ContractAddressInput.prototype.securityManager = "";
6658
+ ContractAddressInput.prototype.diamondLoupeFacet = "";
6659
+
6660
+ /**
6661
+ * ContractAddressInput diamondInit.
6662
+ * @member {string} diamondInit
6663
+ * @memberof TW.Barz.Proto.ContractAddressInput
6664
+ * @instance
6665
+ */
6666
+ ContractAddressInput.prototype.diamondInit = "";
6658
6667
 
6659
6668
  /**
6660
6669
  * ContractAddressInput facetRegistry.
@@ -6714,14 +6723,16 @@
6714
6723
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.verificationFacet);
6715
6724
  if (message.entryPoint != null && Object.hasOwnProperty.call(message, "entryPoint"))
6716
6725
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.entryPoint);
6717
- if (message.securityManager != null && Object.hasOwnProperty.call(message, "securityManager"))
6718
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.securityManager);
6726
+ if (message.diamondLoupeFacet != null && Object.hasOwnProperty.call(message, "diamondLoupeFacet"))
6727
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.diamondLoupeFacet);
6728
+ if (message.diamondInit != null && Object.hasOwnProperty.call(message, "diamondInit"))
6729
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.diamondInit);
6719
6730
  if (message.facetRegistry != null && Object.hasOwnProperty.call(message, "facetRegistry"))
6720
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.facetRegistry);
6731
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.facetRegistry);
6721
6732
  if (message.bytecode != null && Object.hasOwnProperty.call(message, "bytecode"))
6722
- writer.uint32(/* id 8, wireType 2 =*/66).string(message.bytecode);
6733
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.bytecode);
6723
6734
  if (message.owner != null && Object.hasOwnProperty.call(message, "owner"))
6724
- $root.TW.Barz.Proto.ContractOwner.encode(message.owner, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
6735
+ $root.TW.Barz.Proto.ContractOwner.encode(message.owner, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
6725
6736
  return writer;
6726
6737
  };
6727
6738
 
@@ -6759,15 +6770,18 @@
6759
6770
  message.entryPoint = reader.string();
6760
6771
  break;
6761
6772
  case 6:
6762
- message.securityManager = reader.string();
6773
+ message.diamondLoupeFacet = reader.string();
6763
6774
  break;
6764
6775
  case 7:
6765
- message.facetRegistry = reader.string();
6776
+ message.diamondInit = reader.string();
6766
6777
  break;
6767
6778
  case 8:
6768
- message.bytecode = reader.string();
6779
+ message.facetRegistry = reader.string();
6769
6780
  break;
6770
6781
  case 9:
6782
+ message.bytecode = reader.string();
6783
+ break;
6784
+ case 10:
6771
6785
  message.owner = $root.TW.Barz.Proto.ContractOwner.decode(reader, reader.uint32());
6772
6786
  break;
6773
6787
  default:
@@ -6804,9 +6818,12 @@
6804
6818
  if (message.entryPoint != null && message.hasOwnProperty("entryPoint"))
6805
6819
  if (!$util.isString(message.entryPoint))
6806
6820
  return "entryPoint: string expected";
6807
- if (message.securityManager != null && message.hasOwnProperty("securityManager"))
6808
- if (!$util.isString(message.securityManager))
6809
- return "securityManager: string expected";
6821
+ if (message.diamondLoupeFacet != null && message.hasOwnProperty("diamondLoupeFacet"))
6822
+ if (!$util.isString(message.diamondLoupeFacet))
6823
+ return "diamondLoupeFacet: string expected";
6824
+ if (message.diamondInit != null && message.hasOwnProperty("diamondInit"))
6825
+ if (!$util.isString(message.diamondInit))
6826
+ return "diamondInit: string expected";
6810
6827
  if (message.facetRegistry != null && message.hasOwnProperty("facetRegistry"))
6811
6828
  if (!$util.isString(message.facetRegistry))
6812
6829
  return "facetRegistry: string expected";
@@ -6843,8 +6860,10 @@
6843
6860
  message.verificationFacet = String(object.verificationFacet);
6844
6861
  if (object.entryPoint != null)
6845
6862
  message.entryPoint = String(object.entryPoint);
6846
- if (object.securityManager != null)
6847
- message.securityManager = String(object.securityManager);
6863
+ if (object.diamondLoupeFacet != null)
6864
+ message.diamondLoupeFacet = String(object.diamondLoupeFacet);
6865
+ if (object.diamondInit != null)
6866
+ message.diamondInit = String(object.diamondInit);
6848
6867
  if (object.facetRegistry != null)
6849
6868
  message.facetRegistry = String(object.facetRegistry);
6850
6869
  if (object.bytecode != null)
@@ -6876,7 +6895,8 @@
6876
6895
  object.accountFacet = "";
6877
6896
  object.verificationFacet = "";
6878
6897
  object.entryPoint = "";
6879
- object.securityManager = "";
6898
+ object.diamondLoupeFacet = "";
6899
+ object.diamondInit = "";
6880
6900
  object.facetRegistry = "";
6881
6901
  object.bytecode = "";
6882
6902
  object.owner = null;
@@ -6891,8 +6911,10 @@
6891
6911
  object.verificationFacet = message.verificationFacet;
6892
6912
  if (message.entryPoint != null && message.hasOwnProperty("entryPoint"))
6893
6913
  object.entryPoint = message.entryPoint;
6894
- if (message.securityManager != null && message.hasOwnProperty("securityManager"))
6895
- object.securityManager = message.securityManager;
6914
+ if (message.diamondLoupeFacet != null && message.hasOwnProperty("diamondLoupeFacet"))
6915
+ object.diamondLoupeFacet = message.diamondLoupeFacet;
6916
+ if (message.diamondInit != null && message.hasOwnProperty("diamondInit"))
6917
+ object.diamondInit = message.diamondInit;
6896
6918
  if (message.facetRegistry != null && message.hasOwnProperty("facetRegistry"))
6897
6919
  object.facetRegistry = message.facetRegistry;
6898
6920
  if (message.bytecode != null && message.hasOwnProperty("bytecode"))
@@ -6922,88 +6944,6 @@
6922
6944
  return Barz;
6923
6945
  })();
6924
6946
 
6925
- TW.Common = (function() {
6926
-
6927
- /**
6928
- * Namespace Common.
6929
- * @memberof TW
6930
- * @namespace
6931
- */
6932
- var Common = {};
6933
-
6934
- Common.Proto = (function() {
6935
-
6936
- /**
6937
- * Namespace Proto.
6938
- * @memberof TW.Common
6939
- * @namespace
6940
- */
6941
- var Proto = {};
6942
-
6943
- /**
6944
- * SigningError enum.
6945
- * @name TW.Common.Proto.SigningError
6946
- * @enum {number}
6947
- * @property {number} OK=0 OK value
6948
- * @property {number} Error_general=1 Error_general value
6949
- * @property {number} Error_internal=2 Error_internal value
6950
- * @property {number} Error_low_balance=3 Error_low_balance value
6951
- * @property {number} Error_zero_amount_requested=4 Error_zero_amount_requested value
6952
- * @property {number} Error_missing_private_key=5 Error_missing_private_key value
6953
- * @property {number} Error_invalid_private_key=15 Error_invalid_private_key value
6954
- * @property {number} Error_invalid_address=16 Error_invalid_address value
6955
- * @property {number} Error_invalid_utxo=17 Error_invalid_utxo value
6956
- * @property {number} Error_invalid_utxo_amount=18 Error_invalid_utxo_amount value
6957
- * @property {number} Error_wrong_fee=6 Error_wrong_fee value
6958
- * @property {number} Error_signing=7 Error_signing value
6959
- * @property {number} Error_tx_too_big=8 Error_tx_too_big value
6960
- * @property {number} Error_missing_input_utxos=9 Error_missing_input_utxos value
6961
- * @property {number} Error_not_enough_utxos=10 Error_not_enough_utxos value
6962
- * @property {number} Error_script_redeem=11 Error_script_redeem value
6963
- * @property {number} Error_script_output=12 Error_script_output value
6964
- * @property {number} Error_script_witness_program=13 Error_script_witness_program value
6965
- * @property {number} Error_invalid_memo=14 Error_invalid_memo value
6966
- * @property {number} Error_input_parse=19 Error_input_parse value
6967
- * @property {number} Error_no_support_n2n=20 Error_no_support_n2n value
6968
- * @property {number} Error_signatures_count=21 Error_signatures_count value
6969
- * @property {number} Error_invalid_params=22 Error_invalid_params value
6970
- * @property {number} Error_invalid_requested_token_amount=23 Error_invalid_requested_token_amount value
6971
- */
6972
- Proto.SigningError = (function() {
6973
- var valuesById = {}, values = Object.create(valuesById);
6974
- values[valuesById[0] = "OK"] = 0;
6975
- values[valuesById[1] = "Error_general"] = 1;
6976
- values[valuesById[2] = "Error_internal"] = 2;
6977
- values[valuesById[3] = "Error_low_balance"] = 3;
6978
- values[valuesById[4] = "Error_zero_amount_requested"] = 4;
6979
- values[valuesById[5] = "Error_missing_private_key"] = 5;
6980
- values[valuesById[15] = "Error_invalid_private_key"] = 15;
6981
- values[valuesById[16] = "Error_invalid_address"] = 16;
6982
- values[valuesById[17] = "Error_invalid_utxo"] = 17;
6983
- values[valuesById[18] = "Error_invalid_utxo_amount"] = 18;
6984
- values[valuesById[6] = "Error_wrong_fee"] = 6;
6985
- values[valuesById[7] = "Error_signing"] = 7;
6986
- values[valuesById[8] = "Error_tx_too_big"] = 8;
6987
- values[valuesById[9] = "Error_missing_input_utxos"] = 9;
6988
- values[valuesById[10] = "Error_not_enough_utxos"] = 10;
6989
- values[valuesById[11] = "Error_script_redeem"] = 11;
6990
- values[valuesById[12] = "Error_script_output"] = 12;
6991
- values[valuesById[13] = "Error_script_witness_program"] = 13;
6992
- values[valuesById[14] = "Error_invalid_memo"] = 14;
6993
- values[valuesById[19] = "Error_input_parse"] = 19;
6994
- values[valuesById[20] = "Error_no_support_n2n"] = 20;
6995
- values[valuesById[21] = "Error_signatures_count"] = 21;
6996
- values[valuesById[22] = "Error_invalid_params"] = 22;
6997
- values[valuesById[23] = "Error_invalid_requested_token_amount"] = 23;
6998
- return values;
6999
- })();
7000
-
7001
- return Proto;
7002
- })();
7003
-
7004
- return Common;
7005
- })();
7006
-
7007
6947
  TW.Binance = (function() {
7008
6948
 
7009
6949
  /**
@@ -14464,6 +14404,88 @@
14464
14404
  return Binance;
14465
14405
  })();
14466
14406
 
14407
+ TW.Common = (function() {
14408
+
14409
+ /**
14410
+ * Namespace Common.
14411
+ * @memberof TW
14412
+ * @namespace
14413
+ */
14414
+ var Common = {};
14415
+
14416
+ Common.Proto = (function() {
14417
+
14418
+ /**
14419
+ * Namespace Proto.
14420
+ * @memberof TW.Common
14421
+ * @namespace
14422
+ */
14423
+ var Proto = {};
14424
+
14425
+ /**
14426
+ * SigningError enum.
14427
+ * @name TW.Common.Proto.SigningError
14428
+ * @enum {number}
14429
+ * @property {number} OK=0 OK value
14430
+ * @property {number} Error_general=1 Error_general value
14431
+ * @property {number} Error_internal=2 Error_internal value
14432
+ * @property {number} Error_low_balance=3 Error_low_balance value
14433
+ * @property {number} Error_zero_amount_requested=4 Error_zero_amount_requested value
14434
+ * @property {number} Error_missing_private_key=5 Error_missing_private_key value
14435
+ * @property {number} Error_invalid_private_key=15 Error_invalid_private_key value
14436
+ * @property {number} Error_invalid_address=16 Error_invalid_address value
14437
+ * @property {number} Error_invalid_utxo=17 Error_invalid_utxo value
14438
+ * @property {number} Error_invalid_utxo_amount=18 Error_invalid_utxo_amount value
14439
+ * @property {number} Error_wrong_fee=6 Error_wrong_fee value
14440
+ * @property {number} Error_signing=7 Error_signing value
14441
+ * @property {number} Error_tx_too_big=8 Error_tx_too_big value
14442
+ * @property {number} Error_missing_input_utxos=9 Error_missing_input_utxos value
14443
+ * @property {number} Error_not_enough_utxos=10 Error_not_enough_utxos value
14444
+ * @property {number} Error_script_redeem=11 Error_script_redeem value
14445
+ * @property {number} Error_script_output=12 Error_script_output value
14446
+ * @property {number} Error_script_witness_program=13 Error_script_witness_program value
14447
+ * @property {number} Error_invalid_memo=14 Error_invalid_memo value
14448
+ * @property {number} Error_input_parse=19 Error_input_parse value
14449
+ * @property {number} Error_no_support_n2n=20 Error_no_support_n2n value
14450
+ * @property {number} Error_signatures_count=21 Error_signatures_count value
14451
+ * @property {number} Error_invalid_params=22 Error_invalid_params value
14452
+ * @property {number} Error_invalid_requested_token_amount=23 Error_invalid_requested_token_amount value
14453
+ */
14454
+ Proto.SigningError = (function() {
14455
+ var valuesById = {}, values = Object.create(valuesById);
14456
+ values[valuesById[0] = "OK"] = 0;
14457
+ values[valuesById[1] = "Error_general"] = 1;
14458
+ values[valuesById[2] = "Error_internal"] = 2;
14459
+ values[valuesById[3] = "Error_low_balance"] = 3;
14460
+ values[valuesById[4] = "Error_zero_amount_requested"] = 4;
14461
+ values[valuesById[5] = "Error_missing_private_key"] = 5;
14462
+ values[valuesById[15] = "Error_invalid_private_key"] = 15;
14463
+ values[valuesById[16] = "Error_invalid_address"] = 16;
14464
+ values[valuesById[17] = "Error_invalid_utxo"] = 17;
14465
+ values[valuesById[18] = "Error_invalid_utxo_amount"] = 18;
14466
+ values[valuesById[6] = "Error_wrong_fee"] = 6;
14467
+ values[valuesById[7] = "Error_signing"] = 7;
14468
+ values[valuesById[8] = "Error_tx_too_big"] = 8;
14469
+ values[valuesById[9] = "Error_missing_input_utxos"] = 9;
14470
+ values[valuesById[10] = "Error_not_enough_utxos"] = 10;
14471
+ values[valuesById[11] = "Error_script_redeem"] = 11;
14472
+ values[valuesById[12] = "Error_script_output"] = 12;
14473
+ values[valuesById[13] = "Error_script_witness_program"] = 13;
14474
+ values[valuesById[14] = "Error_invalid_memo"] = 14;
14475
+ values[valuesById[19] = "Error_input_parse"] = 19;
14476
+ values[valuesById[20] = "Error_no_support_n2n"] = 20;
14477
+ values[valuesById[21] = "Error_signatures_count"] = 21;
14478
+ values[valuesById[22] = "Error_invalid_params"] = 22;
14479
+ values[valuesById[23] = "Error_invalid_requested_token_amount"] = 23;
14480
+ return values;
14481
+ })();
14482
+
14483
+ return Proto;
14484
+ })();
14485
+
14486
+ return Common;
14487
+ })();
14488
+
14467
14489
  TW.Bitcoin = (function() {
14468
14490
 
14469
14491
  /**
@@ -32619,10 +32641,8 @@
32619
32641
  * @memberof TW.Ethereum.Proto
32620
32642
  * @interface IUserOperation
32621
32643
  * @property {string|null} [entryPoint] UserOperation entryPoint
32622
- * @property {string|null} [accountFactory] UserOperation accountFactory
32623
- * @property {string|null} [accountLogic] UserOperation accountLogic
32624
- * @property {string|null} [owner] UserOperation owner
32625
- * @property {boolean|null} [isAccountDeployed] UserOperation isAccountDeployed
32644
+ * @property {Uint8Array|null} [initCode] UserOperation initCode
32645
+ * @property {string|null} [sender] UserOperation sender
32626
32646
  * @property {Uint8Array|null} [preVerificationGas] UserOperation preVerificationGas
32627
32647
  * @property {Uint8Array|null} [verificationGasLimit] UserOperation verificationGasLimit
32628
32648
  * @property {Uint8Array|null} [paymasterAndData] UserOperation paymasterAndData
@@ -32652,36 +32672,20 @@
32652
32672
  UserOperation.prototype.entryPoint = "";
32653
32673
 
32654
32674
  /**
32655
- * UserOperation accountFactory.
32656
- * @member {string} accountFactory
32657
- * @memberof TW.Ethereum.Proto.UserOperation
32658
- * @instance
32659
- */
32660
- UserOperation.prototype.accountFactory = "";
32661
-
32662
- /**
32663
- * UserOperation accountLogic.
32664
- * @member {string} accountLogic
32665
- * @memberof TW.Ethereum.Proto.UserOperation
32666
- * @instance
32667
- */
32668
- UserOperation.prototype.accountLogic = "";
32669
-
32670
- /**
32671
- * UserOperation owner.
32672
- * @member {string} owner
32675
+ * UserOperation initCode.
32676
+ * @member {Uint8Array} initCode
32673
32677
  * @memberof TW.Ethereum.Proto.UserOperation
32674
32678
  * @instance
32675
32679
  */
32676
- UserOperation.prototype.owner = "";
32680
+ UserOperation.prototype.initCode = $util.newBuffer([]);
32677
32681
 
32678
32682
  /**
32679
- * UserOperation isAccountDeployed.
32680
- * @member {boolean} isAccountDeployed
32683
+ * UserOperation sender.
32684
+ * @member {string} sender
32681
32685
  * @memberof TW.Ethereum.Proto.UserOperation
32682
32686
  * @instance
32683
32687
  */
32684
- UserOperation.prototype.isAccountDeployed = false;
32688
+ UserOperation.prototype.sender = "";
32685
32689
 
32686
32690
  /**
32687
32691
  * UserOperation preVerificationGas.
@@ -32733,20 +32737,16 @@
32733
32737
  writer = $Writer.create();
32734
32738
  if (message.entryPoint != null && Object.hasOwnProperty.call(message, "entryPoint"))
32735
32739
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.entryPoint);
32736
- if (message.accountFactory != null && Object.hasOwnProperty.call(message, "accountFactory"))
32737
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.accountFactory);
32738
- if (message.accountLogic != null && Object.hasOwnProperty.call(message, "accountLogic"))
32739
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.accountLogic);
32740
- if (message.owner != null && Object.hasOwnProperty.call(message, "owner"))
32741
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.owner);
32742
- if (message.isAccountDeployed != null && Object.hasOwnProperty.call(message, "isAccountDeployed"))
32743
- writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isAccountDeployed);
32740
+ if (message.initCode != null && Object.hasOwnProperty.call(message, "initCode"))
32741
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.initCode);
32742
+ if (message.sender != null && Object.hasOwnProperty.call(message, "sender"))
32743
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.sender);
32744
32744
  if (message.preVerificationGas != null && Object.hasOwnProperty.call(message, "preVerificationGas"))
32745
- writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.preVerificationGas);
32745
+ writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.preVerificationGas);
32746
32746
  if (message.verificationGasLimit != null && Object.hasOwnProperty.call(message, "verificationGasLimit"))
32747
- writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.verificationGasLimit);
32747
+ writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.verificationGasLimit);
32748
32748
  if (message.paymasterAndData != null && Object.hasOwnProperty.call(message, "paymasterAndData"))
32749
- writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.paymasterAndData);
32749
+ writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.paymasterAndData);
32750
32750
  return writer;
32751
32751
  };
32752
32752
 
@@ -32772,24 +32772,18 @@
32772
32772
  message.entryPoint = reader.string();
32773
32773
  break;
32774
32774
  case 2:
32775
- message.accountFactory = reader.string();
32775
+ message.initCode = reader.bytes();
32776
32776
  break;
32777
32777
  case 3:
32778
- message.accountLogic = reader.string();
32778
+ message.sender = reader.string();
32779
32779
  break;
32780
32780
  case 4:
32781
- message.owner = reader.string();
32782
- break;
32783
- case 5:
32784
- message.isAccountDeployed = reader.bool();
32785
- break;
32786
- case 6:
32787
32781
  message.preVerificationGas = reader.bytes();
32788
32782
  break;
32789
- case 7:
32783
+ case 5:
32790
32784
  message.verificationGasLimit = reader.bytes();
32791
32785
  break;
32792
- case 8:
32786
+ case 6:
32793
32787
  message.paymasterAndData = reader.bytes();
32794
32788
  break;
32795
32789
  default:
@@ -32814,18 +32808,12 @@
32814
32808
  if (message.entryPoint != null && message.hasOwnProperty("entryPoint"))
32815
32809
  if (!$util.isString(message.entryPoint))
32816
32810
  return "entryPoint: string expected";
32817
- if (message.accountFactory != null && message.hasOwnProperty("accountFactory"))
32818
- if (!$util.isString(message.accountFactory))
32819
- return "accountFactory: string expected";
32820
- if (message.accountLogic != null && message.hasOwnProperty("accountLogic"))
32821
- if (!$util.isString(message.accountLogic))
32822
- return "accountLogic: string expected";
32823
- if (message.owner != null && message.hasOwnProperty("owner"))
32824
- if (!$util.isString(message.owner))
32825
- return "owner: string expected";
32826
- if (message.isAccountDeployed != null && message.hasOwnProperty("isAccountDeployed"))
32827
- if (typeof message.isAccountDeployed !== "boolean")
32828
- return "isAccountDeployed: boolean expected";
32811
+ if (message.initCode != null && message.hasOwnProperty("initCode"))
32812
+ if (!(message.initCode && typeof message.initCode.length === "number" || $util.isString(message.initCode)))
32813
+ return "initCode: buffer expected";
32814
+ if (message.sender != null && message.hasOwnProperty("sender"))
32815
+ if (!$util.isString(message.sender))
32816
+ return "sender: string expected";
32829
32817
  if (message.preVerificationGas != null && message.hasOwnProperty("preVerificationGas"))
32830
32818
  if (!(message.preVerificationGas && typeof message.preVerificationGas.length === "number" || $util.isString(message.preVerificationGas)))
32831
32819
  return "preVerificationGas: buffer expected";
@@ -32852,14 +32840,13 @@
32852
32840
  var message = new $root.TW.Ethereum.Proto.UserOperation();
32853
32841
  if (object.entryPoint != null)
32854
32842
  message.entryPoint = String(object.entryPoint);
32855
- if (object.accountFactory != null)
32856
- message.accountFactory = String(object.accountFactory);
32857
- if (object.accountLogic != null)
32858
- message.accountLogic = String(object.accountLogic);
32859
- if (object.owner != null)
32860
- message.owner = String(object.owner);
32861
- if (object.isAccountDeployed != null)
32862
- message.isAccountDeployed = Boolean(object.isAccountDeployed);
32843
+ if (object.initCode != null)
32844
+ if (typeof object.initCode === "string")
32845
+ $util.base64.decode(object.initCode, message.initCode = $util.newBuffer($util.base64.length(object.initCode)), 0);
32846
+ else if (object.initCode.length)
32847
+ message.initCode = object.initCode;
32848
+ if (object.sender != null)
32849
+ message.sender = String(object.sender);
32863
32850
  if (object.preVerificationGas != null)
32864
32851
  if (typeof object.preVerificationGas === "string")
32865
32852
  $util.base64.decode(object.preVerificationGas, message.preVerificationGas = $util.newBuffer($util.base64.length(object.preVerificationGas)), 0);
@@ -32893,10 +32880,14 @@
32893
32880
  var object = {};
32894
32881
  if (options.defaults) {
32895
32882
  object.entryPoint = "";
32896
- object.accountFactory = "";
32897
- object.accountLogic = "";
32898
- object.owner = "";
32899
- object.isAccountDeployed = false;
32883
+ if (options.bytes === String)
32884
+ object.initCode = "";
32885
+ else {
32886
+ object.initCode = [];
32887
+ if (options.bytes !== Array)
32888
+ object.initCode = $util.newBuffer(object.initCode);
32889
+ }
32890
+ object.sender = "";
32900
32891
  if (options.bytes === String)
32901
32892
  object.preVerificationGas = "";
32902
32893
  else {
@@ -32921,14 +32912,10 @@
32921
32912
  }
32922
32913
  if (message.entryPoint != null && message.hasOwnProperty("entryPoint"))
32923
32914
  object.entryPoint = message.entryPoint;
32924
- if (message.accountFactory != null && message.hasOwnProperty("accountFactory"))
32925
- object.accountFactory = message.accountFactory;
32926
- if (message.accountLogic != null && message.hasOwnProperty("accountLogic"))
32927
- object.accountLogic = message.accountLogic;
32928
- if (message.owner != null && message.hasOwnProperty("owner"))
32929
- object.owner = message.owner;
32930
- if (message.isAccountDeployed != null && message.hasOwnProperty("isAccountDeployed"))
32931
- object.isAccountDeployed = message.isAccountDeployed;
32915
+ if (message.initCode != null && message.hasOwnProperty("initCode"))
32916
+ object.initCode = options.bytes === String ? $util.base64.encode(message.initCode, 0, message.initCode.length) : options.bytes === Array ? Array.prototype.slice.call(message.initCode) : message.initCode;
32917
+ if (message.sender != null && message.hasOwnProperty("sender"))
32918
+ object.sender = message.sender;
32932
32919
  if (message.preVerificationGas != null && message.hasOwnProperty("preVerificationGas"))
32933
32920
  object.preVerificationGas = options.bytes === String ? $util.base64.encode(message.preVerificationGas, 0, message.preVerificationGas.length) : options.bytes === Array ? Array.prototype.slice.call(message.preVerificationGas) : message.preVerificationGas;
32934
32921
  if (message.verificationGasLimit != null && message.hasOwnProperty("verificationGasLimit"))
@@ -33435,6 +33422,7 @@
33435
33422
  * @property {Uint8Array|null} [data] SigningOutput data
33436
33423
  * @property {TW.Common.Proto.SigningError|null} [error] SigningOutput error
33437
33424
  * @property {string|null} [errorMessage] SigningOutput errorMessage
33425
+ * @property {Uint8Array|null} [preHash] SigningOutput preHash
33438
33426
  */
33439
33427
 
33440
33428
  /**
@@ -33508,6 +33496,14 @@
33508
33496
  */
33509
33497
  SigningOutput.prototype.errorMessage = "";
33510
33498
 
33499
+ /**
33500
+ * SigningOutput preHash.
33501
+ * @member {Uint8Array} preHash
33502
+ * @memberof TW.Ethereum.Proto.SigningOutput
33503
+ * @instance
33504
+ */
33505
+ SigningOutput.prototype.preHash = $util.newBuffer([]);
33506
+
33511
33507
  /**
33512
33508
  * Creates a new SigningOutput instance using the specified properties.
33513
33509
  * @function create
@@ -33546,6 +33542,8 @@
33546
33542
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.error);
33547
33543
  if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage"))
33548
33544
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.errorMessage);
33545
+ if (message.preHash != null && Object.hasOwnProperty.call(message, "preHash"))
33546
+ writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.preHash);
33549
33547
  return writer;
33550
33548
  };
33551
33549
 
@@ -33588,6 +33586,9 @@
33588
33586
  case 7:
33589
33587
  message.errorMessage = reader.string();
33590
33588
  break;
33589
+ case 8:
33590
+ message.preHash = reader.bytes();
33591
+ break;
33591
33592
  default:
33592
33593
  reader.skipType(tag & 7);
33593
33594
  break;
@@ -33655,6 +33656,9 @@
33655
33656
  if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
33656
33657
  if (!$util.isString(message.errorMessage))
33657
33658
  return "errorMessage: string expected";
33659
+ if (message.preHash != null && message.hasOwnProperty("preHash"))
33660
+ if (!(message.preHash && typeof message.preHash.length === "number" || $util.isString(message.preHash)))
33661
+ return "preHash: buffer expected";
33658
33662
  return null;
33659
33663
  };
33660
33664
 
@@ -33795,6 +33799,11 @@
33795
33799
  }
33796
33800
  if (object.errorMessage != null)
33797
33801
  message.errorMessage = String(object.errorMessage);
33802
+ if (object.preHash != null)
33803
+ if (typeof object.preHash === "string")
33804
+ $util.base64.decode(object.preHash, message.preHash = $util.newBuffer($util.base64.length(object.preHash)), 0);
33805
+ else if (object.preHash.length)
33806
+ message.preHash = object.preHash;
33798
33807
  return message;
33799
33808
  };
33800
33809
 
@@ -33849,6 +33858,13 @@
33849
33858
  }
33850
33859
  object.error = options.enums === String ? "OK" : 0;
33851
33860
  object.errorMessage = "";
33861
+ if (options.bytes === String)
33862
+ object.preHash = "";
33863
+ else {
33864
+ object.preHash = [];
33865
+ if (options.bytes !== Array)
33866
+ object.preHash = $util.newBuffer(object.preHash);
33867
+ }
33852
33868
  }
33853
33869
  if (message.encoded != null && message.hasOwnProperty("encoded"))
33854
33870
  object.encoded = options.bytes === String ? $util.base64.encode(message.encoded, 0, message.encoded.length) : options.bytes === Array ? Array.prototype.slice.call(message.encoded) : message.encoded;
@@ -33864,6 +33880,8 @@
33864
33880
  object.error = options.enums === String ? $root.TW.Common.Proto.SigningError[message.error] : message.error;
33865
33881
  if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
33866
33882
  object.errorMessage = message.errorMessage;
33883
+ if (message.preHash != null && message.hasOwnProperty("preHash"))
33884
+ object.preHash = options.bytes === String ? $util.base64.encode(message.preHash, 0, message.preHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.preHash) : message.preHash;
33867
33885
  return object;
33868
33886
  };
33869
33887
 
@@ -54327,6 +54345,254 @@
54327
54345
  return DeleteAccount;
54328
54346
  })();
54329
54347
 
54348
+ Proto.TokenTransfer = (function() {
54349
+
54350
+ /**
54351
+ * Properties of a TokenTransfer.
54352
+ * @memberof TW.NEAR.Proto
54353
+ * @interface ITokenTransfer
54354
+ * @property {string|null} [tokenAmount] TokenTransfer tokenAmount
54355
+ * @property {string|null} [receiverId] TokenTransfer receiverId
54356
+ * @property {Long|null} [gas] TokenTransfer gas
54357
+ * @property {Uint8Array|null} [deposit] TokenTransfer deposit
54358
+ */
54359
+
54360
+ /**
54361
+ * Constructs a new TokenTransfer.
54362
+ * @memberof TW.NEAR.Proto
54363
+ * @classdesc Represents a TokenTransfer.
54364
+ * @implements ITokenTransfer
54365
+ * @constructor
54366
+ * @param {TW.NEAR.Proto.ITokenTransfer=} [properties] Properties to set
54367
+ */
54368
+ function TokenTransfer(properties) {
54369
+ if (properties)
54370
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
54371
+ if (properties[keys[i]] != null)
54372
+ this[keys[i]] = properties[keys[i]];
54373
+ }
54374
+
54375
+ /**
54376
+ * TokenTransfer tokenAmount.
54377
+ * @member {string} tokenAmount
54378
+ * @memberof TW.NEAR.Proto.TokenTransfer
54379
+ * @instance
54380
+ */
54381
+ TokenTransfer.prototype.tokenAmount = "";
54382
+
54383
+ /**
54384
+ * TokenTransfer receiverId.
54385
+ * @member {string} receiverId
54386
+ * @memberof TW.NEAR.Proto.TokenTransfer
54387
+ * @instance
54388
+ */
54389
+ TokenTransfer.prototype.receiverId = "";
54390
+
54391
+ /**
54392
+ * TokenTransfer gas.
54393
+ * @member {Long} gas
54394
+ * @memberof TW.NEAR.Proto.TokenTransfer
54395
+ * @instance
54396
+ */
54397
+ TokenTransfer.prototype.gas = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
54398
+
54399
+ /**
54400
+ * TokenTransfer deposit.
54401
+ * @member {Uint8Array} deposit
54402
+ * @memberof TW.NEAR.Proto.TokenTransfer
54403
+ * @instance
54404
+ */
54405
+ TokenTransfer.prototype.deposit = $util.newBuffer([]);
54406
+
54407
+ /**
54408
+ * Creates a new TokenTransfer instance using the specified properties.
54409
+ * @function create
54410
+ * @memberof TW.NEAR.Proto.TokenTransfer
54411
+ * @static
54412
+ * @param {TW.NEAR.Proto.ITokenTransfer=} [properties] Properties to set
54413
+ * @returns {TW.NEAR.Proto.TokenTransfer} TokenTransfer instance
54414
+ */
54415
+ TokenTransfer.create = function create(properties) {
54416
+ return new TokenTransfer(properties);
54417
+ };
54418
+
54419
+ /**
54420
+ * Encodes the specified TokenTransfer message. Does not implicitly {@link TW.NEAR.Proto.TokenTransfer.verify|verify} messages.
54421
+ * @function encode
54422
+ * @memberof TW.NEAR.Proto.TokenTransfer
54423
+ * @static
54424
+ * @param {TW.NEAR.Proto.ITokenTransfer} message TokenTransfer message or plain object to encode
54425
+ * @param {$protobuf.Writer} [writer] Writer to encode to
54426
+ * @returns {$protobuf.Writer} Writer
54427
+ */
54428
+ TokenTransfer.encode = function encode(message, writer) {
54429
+ if (!writer)
54430
+ writer = $Writer.create();
54431
+ if (message.tokenAmount != null && Object.hasOwnProperty.call(message, "tokenAmount"))
54432
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.tokenAmount);
54433
+ if (message.receiverId != null && Object.hasOwnProperty.call(message, "receiverId"))
54434
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.receiverId);
54435
+ if (message.gas != null && Object.hasOwnProperty.call(message, "gas"))
54436
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.gas);
54437
+ if (message.deposit != null && Object.hasOwnProperty.call(message, "deposit"))
54438
+ writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.deposit);
54439
+ return writer;
54440
+ };
54441
+
54442
+ /**
54443
+ * Decodes a TokenTransfer message from the specified reader or buffer.
54444
+ * @function decode
54445
+ * @memberof TW.NEAR.Proto.TokenTransfer
54446
+ * @static
54447
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
54448
+ * @param {number} [length] Message length if known beforehand
54449
+ * @returns {TW.NEAR.Proto.TokenTransfer} TokenTransfer
54450
+ * @throws {Error} If the payload is not a reader or valid buffer
54451
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
54452
+ */
54453
+ TokenTransfer.decode = function decode(reader, length) {
54454
+ if (!(reader instanceof $Reader))
54455
+ reader = $Reader.create(reader);
54456
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.NEAR.Proto.TokenTransfer();
54457
+ while (reader.pos < end) {
54458
+ var tag = reader.uint32();
54459
+ switch (tag >>> 3) {
54460
+ case 1:
54461
+ message.tokenAmount = reader.string();
54462
+ break;
54463
+ case 2:
54464
+ message.receiverId = reader.string();
54465
+ break;
54466
+ case 3:
54467
+ message.gas = reader.uint64();
54468
+ break;
54469
+ case 4:
54470
+ message.deposit = reader.bytes();
54471
+ break;
54472
+ default:
54473
+ reader.skipType(tag & 7);
54474
+ break;
54475
+ }
54476
+ }
54477
+ return message;
54478
+ };
54479
+
54480
+ /**
54481
+ * Verifies a TokenTransfer message.
54482
+ * @function verify
54483
+ * @memberof TW.NEAR.Proto.TokenTransfer
54484
+ * @static
54485
+ * @param {Object.<string,*>} message Plain object to verify
54486
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
54487
+ */
54488
+ TokenTransfer.verify = function verify(message) {
54489
+ if (typeof message !== "object" || message === null)
54490
+ return "object expected";
54491
+ if (message.tokenAmount != null && message.hasOwnProperty("tokenAmount"))
54492
+ if (!$util.isString(message.tokenAmount))
54493
+ return "tokenAmount: string expected";
54494
+ if (message.receiverId != null && message.hasOwnProperty("receiverId"))
54495
+ if (!$util.isString(message.receiverId))
54496
+ return "receiverId: string expected";
54497
+ if (message.gas != null && message.hasOwnProperty("gas"))
54498
+ if (!$util.isInteger(message.gas) && !(message.gas && $util.isInteger(message.gas.low) && $util.isInteger(message.gas.high)))
54499
+ return "gas: integer|Long expected";
54500
+ if (message.deposit != null && message.hasOwnProperty("deposit"))
54501
+ if (!(message.deposit && typeof message.deposit.length === "number" || $util.isString(message.deposit)))
54502
+ return "deposit: buffer expected";
54503
+ return null;
54504
+ };
54505
+
54506
+ /**
54507
+ * Creates a TokenTransfer message from a plain object. Also converts values to their respective internal types.
54508
+ * @function fromObject
54509
+ * @memberof TW.NEAR.Proto.TokenTransfer
54510
+ * @static
54511
+ * @param {Object.<string,*>} object Plain object
54512
+ * @returns {TW.NEAR.Proto.TokenTransfer} TokenTransfer
54513
+ */
54514
+ TokenTransfer.fromObject = function fromObject(object) {
54515
+ if (object instanceof $root.TW.NEAR.Proto.TokenTransfer)
54516
+ return object;
54517
+ var message = new $root.TW.NEAR.Proto.TokenTransfer();
54518
+ if (object.tokenAmount != null)
54519
+ message.tokenAmount = String(object.tokenAmount);
54520
+ if (object.receiverId != null)
54521
+ message.receiverId = String(object.receiverId);
54522
+ if (object.gas != null)
54523
+ if ($util.Long)
54524
+ (message.gas = $util.Long.fromValue(object.gas)).unsigned = true;
54525
+ else if (typeof object.gas === "string")
54526
+ message.gas = parseInt(object.gas, 10);
54527
+ else if (typeof object.gas === "number")
54528
+ message.gas = object.gas;
54529
+ else if (typeof object.gas === "object")
54530
+ message.gas = new $util.LongBits(object.gas.low >>> 0, object.gas.high >>> 0).toNumber(true);
54531
+ if (object.deposit != null)
54532
+ if (typeof object.deposit === "string")
54533
+ $util.base64.decode(object.deposit, message.deposit = $util.newBuffer($util.base64.length(object.deposit)), 0);
54534
+ else if (object.deposit.length)
54535
+ message.deposit = object.deposit;
54536
+ return message;
54537
+ };
54538
+
54539
+ /**
54540
+ * Creates a plain object from a TokenTransfer message. Also converts values to other types if specified.
54541
+ * @function toObject
54542
+ * @memberof TW.NEAR.Proto.TokenTransfer
54543
+ * @static
54544
+ * @param {TW.NEAR.Proto.TokenTransfer} message TokenTransfer
54545
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
54546
+ * @returns {Object.<string,*>} Plain object
54547
+ */
54548
+ TokenTransfer.toObject = function toObject(message, options) {
54549
+ if (!options)
54550
+ options = {};
54551
+ var object = {};
54552
+ if (options.defaults) {
54553
+ object.tokenAmount = "";
54554
+ object.receiverId = "";
54555
+ if ($util.Long) {
54556
+ var long = new $util.Long(0, 0, true);
54557
+ object.gas = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
54558
+ } else
54559
+ object.gas = options.longs === String ? "0" : 0;
54560
+ if (options.bytes === String)
54561
+ object.deposit = "";
54562
+ else {
54563
+ object.deposit = [];
54564
+ if (options.bytes !== Array)
54565
+ object.deposit = $util.newBuffer(object.deposit);
54566
+ }
54567
+ }
54568
+ if (message.tokenAmount != null && message.hasOwnProperty("tokenAmount"))
54569
+ object.tokenAmount = message.tokenAmount;
54570
+ if (message.receiverId != null && message.hasOwnProperty("receiverId"))
54571
+ object.receiverId = message.receiverId;
54572
+ if (message.gas != null && message.hasOwnProperty("gas"))
54573
+ if (typeof message.gas === "number")
54574
+ object.gas = options.longs === String ? String(message.gas) : message.gas;
54575
+ else
54576
+ object.gas = options.longs === String ? $util.Long.prototype.toString.call(message.gas) : options.longs === Number ? new $util.LongBits(message.gas.low >>> 0, message.gas.high >>> 0).toNumber(true) : message.gas;
54577
+ if (message.deposit != null && message.hasOwnProperty("deposit"))
54578
+ object.deposit = options.bytes === String ? $util.base64.encode(message.deposit, 0, message.deposit.length) : options.bytes === Array ? Array.prototype.slice.call(message.deposit) : message.deposit;
54579
+ return object;
54580
+ };
54581
+
54582
+ /**
54583
+ * Converts this TokenTransfer to JSON.
54584
+ * @function toJSON
54585
+ * @memberof TW.NEAR.Proto.TokenTransfer
54586
+ * @instance
54587
+ * @returns {Object.<string,*>} JSON object
54588
+ */
54589
+ TokenTransfer.prototype.toJSON = function toJSON() {
54590
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
54591
+ };
54592
+
54593
+ return TokenTransfer;
54594
+ })();
54595
+
54330
54596
  Proto.Action = (function() {
54331
54597
 
54332
54598
  /**
@@ -54341,6 +54607,7 @@
54341
54607
  * @property {TW.NEAR.Proto.IAddKey|null} [addKey] Action addKey
54342
54608
  * @property {TW.NEAR.Proto.IDeleteKey|null} [deleteKey] Action deleteKey
54343
54609
  * @property {TW.NEAR.Proto.IDeleteAccount|null} [deleteAccount] Action deleteAccount
54610
+ * @property {TW.NEAR.Proto.ITokenTransfer|null} [tokenTransfer] Action tokenTransfer
54344
54611
  */
54345
54612
 
54346
54613
  /**
@@ -54422,17 +54689,25 @@
54422
54689
  */
54423
54690
  Action.prototype.deleteAccount = null;
54424
54691
 
54692
+ /**
54693
+ * Action tokenTransfer.
54694
+ * @member {TW.NEAR.Proto.ITokenTransfer|null|undefined} tokenTransfer
54695
+ * @memberof TW.NEAR.Proto.Action
54696
+ * @instance
54697
+ */
54698
+ Action.prototype.tokenTransfer = null;
54699
+
54425
54700
  // OneOf field names bound to virtual getters and setters
54426
54701
  var $oneOfFields;
54427
54702
 
54428
54703
  /**
54429
54704
  * Action payload.
54430
- * @member {"createAccount"|"deployContract"|"functionCall"|"transfer"|"stake"|"addKey"|"deleteKey"|"deleteAccount"|undefined} payload
54705
+ * @member {"createAccount"|"deployContract"|"functionCall"|"transfer"|"stake"|"addKey"|"deleteKey"|"deleteAccount"|"tokenTransfer"|undefined} payload
54431
54706
  * @memberof TW.NEAR.Proto.Action
54432
54707
  * @instance
54433
54708
  */
54434
54709
  Object.defineProperty(Action.prototype, "payload", {
54435
- get: $util.oneOfGetter($oneOfFields = ["createAccount", "deployContract", "functionCall", "transfer", "stake", "addKey", "deleteKey", "deleteAccount"]),
54710
+ get: $util.oneOfGetter($oneOfFields = ["createAccount", "deployContract", "functionCall", "transfer", "stake", "addKey", "deleteKey", "deleteAccount", "tokenTransfer"]),
54436
54711
  set: $util.oneOfSetter($oneOfFields)
54437
54712
  });
54438
54713
 
@@ -54476,6 +54751,8 @@
54476
54751
  $root.TW.NEAR.Proto.DeleteKey.encode(message.deleteKey, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
54477
54752
  if (message.deleteAccount != null && Object.hasOwnProperty.call(message, "deleteAccount"))
54478
54753
  $root.TW.NEAR.Proto.DeleteAccount.encode(message.deleteAccount, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
54754
+ if (message.tokenTransfer != null && Object.hasOwnProperty.call(message, "tokenTransfer"))
54755
+ $root.TW.NEAR.Proto.TokenTransfer.encode(message.tokenTransfer, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
54479
54756
  return writer;
54480
54757
  };
54481
54758
 
@@ -54521,6 +54798,9 @@
54521
54798
  case 8:
54522
54799
  message.deleteAccount = $root.TW.NEAR.Proto.DeleteAccount.decode(reader, reader.uint32());
54523
54800
  break;
54801
+ case 13:
54802
+ message.tokenTransfer = $root.TW.NEAR.Proto.TokenTransfer.decode(reader, reader.uint32());
54803
+ break;
54524
54804
  default:
54525
54805
  reader.skipType(tag & 7);
54526
54806
  break;
@@ -54619,6 +54899,16 @@
54619
54899
  return "deleteAccount." + error;
54620
54900
  }
54621
54901
  }
54902
+ if (message.tokenTransfer != null && message.hasOwnProperty("tokenTransfer")) {
54903
+ if (properties.payload === 1)
54904
+ return "payload: multiple values";
54905
+ properties.payload = 1;
54906
+ {
54907
+ var error = $root.TW.NEAR.Proto.TokenTransfer.verify(message.tokenTransfer);
54908
+ if (error)
54909
+ return "tokenTransfer." + error;
54910
+ }
54911
+ }
54622
54912
  return null;
54623
54913
  };
54624
54914
 
@@ -54674,6 +54964,11 @@
54674
54964
  throw TypeError(".TW.NEAR.Proto.Action.deleteAccount: object expected");
54675
54965
  message.deleteAccount = $root.TW.NEAR.Proto.DeleteAccount.fromObject(object.deleteAccount);
54676
54966
  }
54967
+ if (object.tokenTransfer != null) {
54968
+ if (typeof object.tokenTransfer !== "object")
54969
+ throw TypeError(".TW.NEAR.Proto.Action.tokenTransfer: object expected");
54970
+ message.tokenTransfer = $root.TW.NEAR.Proto.TokenTransfer.fromObject(object.tokenTransfer);
54971
+ }
54677
54972
  return message;
54678
54973
  };
54679
54974
 
@@ -54730,6 +55025,11 @@
54730
55025
  if (options.oneofs)
54731
55026
  object.payload = "deleteAccount";
54732
55027
  }
55028
+ if (message.tokenTransfer != null && message.hasOwnProperty("tokenTransfer")) {
55029
+ object.tokenTransfer = $root.TW.NEAR.Proto.TokenTransfer.toObject(message.tokenTransfer, options);
55030
+ if (options.oneofs)
55031
+ object.payload = "tokenTransfer";
55032
+ }
54733
55033
  return object;
54734
55034
  };
54735
55035