@trustwallet/wallet-core 3.1.36 → 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.
@@ -2391,8 +2391,11 @@ export namespace TW {
2391
2391
  /** ContractAddressInput entryPoint */
2392
2392
  entryPoint?: (string|null);
2393
2393
 
2394
- /** ContractAddressInput securityManager */
2395
- securityManager?: (string|null);
2394
+ /** ContractAddressInput diamondLoupeFacet */
2395
+ diamondLoupeFacet?: (string|null);
2396
+
2397
+ /** ContractAddressInput diamondInit */
2398
+ diamondInit?: (string|null);
2396
2399
 
2397
2400
  /** ContractAddressInput facetRegistry */
2398
2401
  facetRegistry?: (string|null);
@@ -2428,8 +2431,11 @@ export namespace TW {
2428
2431
  /** ContractAddressInput entryPoint. */
2429
2432
  public entryPoint: string;
2430
2433
 
2431
- /** ContractAddressInput securityManager. */
2432
- public securityManager: string;
2434
+ /** ContractAddressInput diamondLoupeFacet. */
2435
+ public diamondLoupeFacet: string;
2436
+
2437
+ /** ContractAddressInput diamondInit. */
2438
+ public diamondInit: string;
2433
2439
 
2434
2440
  /** ContractAddressInput facetRegistry. */
2435
2441
  public facetRegistry: string;
@@ -2496,42 +2502,6 @@ export namespace TW {
2496
2502
  }
2497
2503
  }
2498
2504
 
2499
- /** Namespace Common. */
2500
- namespace Common {
2501
-
2502
- /** Namespace Proto. */
2503
- namespace Proto {
2504
-
2505
- /** SigningError enum. */
2506
- enum SigningError {
2507
- OK = 0,
2508
- Error_general = 1,
2509
- Error_internal = 2,
2510
- Error_low_balance = 3,
2511
- Error_zero_amount_requested = 4,
2512
- Error_missing_private_key = 5,
2513
- Error_invalid_private_key = 15,
2514
- Error_invalid_address = 16,
2515
- Error_invalid_utxo = 17,
2516
- Error_invalid_utxo_amount = 18,
2517
- Error_wrong_fee = 6,
2518
- Error_signing = 7,
2519
- Error_tx_too_big = 8,
2520
- Error_missing_input_utxos = 9,
2521
- Error_not_enough_utxos = 10,
2522
- Error_script_redeem = 11,
2523
- Error_script_output = 12,
2524
- Error_script_witness_program = 13,
2525
- Error_invalid_memo = 14,
2526
- Error_input_parse = 19,
2527
- Error_no_support_n2n = 20,
2528
- Error_signatures_count = 21,
2529
- Error_invalid_params = 22,
2530
- Error_invalid_requested_token_amount = 23
2531
- }
2532
- }
2533
- }
2534
-
2535
2505
  /** Namespace Binance. */
2536
2506
  namespace Binance {
2537
2507
 
@@ -5002,6 +4972,42 @@ export namespace TW {
5002
4972
  }
5003
4973
  }
5004
4974
 
4975
+ /** Namespace Common. */
4976
+ namespace Common {
4977
+
4978
+ /** Namespace Proto. */
4979
+ namespace Proto {
4980
+
4981
+ /** SigningError enum. */
4982
+ enum SigningError {
4983
+ OK = 0,
4984
+ Error_general = 1,
4985
+ Error_internal = 2,
4986
+ Error_low_balance = 3,
4987
+ Error_zero_amount_requested = 4,
4988
+ Error_missing_private_key = 5,
4989
+ Error_invalid_private_key = 15,
4990
+ Error_invalid_address = 16,
4991
+ Error_invalid_utxo = 17,
4992
+ Error_invalid_utxo_amount = 18,
4993
+ Error_wrong_fee = 6,
4994
+ Error_signing = 7,
4995
+ Error_tx_too_big = 8,
4996
+ Error_missing_input_utxos = 9,
4997
+ Error_not_enough_utxos = 10,
4998
+ Error_script_redeem = 11,
4999
+ Error_script_output = 12,
5000
+ Error_script_witness_program = 13,
5001
+ Error_invalid_memo = 14,
5002
+ Error_input_parse = 19,
5003
+ Error_no_support_n2n = 20,
5004
+ Error_signatures_count = 21,
5005
+ Error_invalid_params = 22,
5006
+ Error_invalid_requested_token_amount = 23
5007
+ }
5008
+ }
5009
+ }
5010
+
5005
5011
  /** Namespace Bitcoin. */
5006
5012
  namespace Bitcoin {
5007
5013
 
@@ -11136,17 +11142,11 @@ export namespace TW {
11136
11142
  /** UserOperation entryPoint */
11137
11143
  entryPoint?: (string|null);
11138
11144
 
11139
- /** UserOperation accountFactory */
11140
- accountFactory?: (string|null);
11141
-
11142
- /** UserOperation accountLogic */
11143
- accountLogic?: (string|null);
11145
+ /** UserOperation initCode */
11146
+ initCode?: (Uint8Array|null);
11144
11147
 
11145
- /** UserOperation owner */
11146
- owner?: (string|null);
11147
-
11148
- /** UserOperation isAccountDeployed */
11149
- isAccountDeployed?: (boolean|null);
11148
+ /** UserOperation sender */
11149
+ sender?: (string|null);
11150
11150
 
11151
11151
  /** UserOperation preVerificationGas */
11152
11152
  preVerificationGas?: (Uint8Array|null);
@@ -11170,17 +11170,11 @@ export namespace TW {
11170
11170
  /** UserOperation entryPoint. */
11171
11171
  public entryPoint: string;
11172
11172
 
11173
- /** UserOperation accountFactory. */
11174
- public accountFactory: string;
11175
-
11176
- /** UserOperation accountLogic. */
11177
- public accountLogic: string;
11178
-
11179
- /** UserOperation owner. */
11180
- public owner: string;
11173
+ /** UserOperation initCode. */
11174
+ public initCode: Uint8Array;
11181
11175
 
11182
- /** UserOperation isAccountDeployed. */
11183
- public isAccountDeployed: boolean;
11176
+ /** UserOperation sender. */
11177
+ public sender: string;
11184
11178
 
11185
11179
  /** UserOperation preVerificationGas. */
11186
11180
  public preVerificationGas: Uint8Array;
@@ -11401,6 +11395,9 @@ export namespace TW {
11401
11395
 
11402
11396
  /** SigningOutput errorMessage */
11403
11397
  errorMessage?: (string|null);
11398
+
11399
+ /** SigningOutput preHash */
11400
+ preHash?: (Uint8Array|null);
11404
11401
  }
11405
11402
 
11406
11403
  /** Represents a SigningOutput. */
@@ -11433,6 +11430,9 @@ export namespace TW {
11433
11430
  /** SigningOutput errorMessage. */
11434
11431
  public errorMessage: string;
11435
11432
 
11433
+ /** SigningOutput preHash. */
11434
+ public preHash: Uint8Array;
11435
+
11436
11436
  /**
11437
11437
  * Creates a new SigningOutput instance using the specified properties.
11438
11438
  * @param [properties] Properties to set
@@ -18830,6 +18830,97 @@ export namespace TW {
18830
18830
  public toJSON(): { [k: string]: any };
18831
18831
  }
18832
18832
 
18833
+ /** Properties of a TokenTransfer. */
18834
+ interface ITokenTransfer {
18835
+
18836
+ /** TokenTransfer tokenAmount */
18837
+ tokenAmount?: (string|null);
18838
+
18839
+ /** TokenTransfer receiverId */
18840
+ receiverId?: (string|null);
18841
+
18842
+ /** TokenTransfer gas */
18843
+ gas?: (Long|null);
18844
+
18845
+ /** TokenTransfer deposit */
18846
+ deposit?: (Uint8Array|null);
18847
+ }
18848
+
18849
+ /** Represents a TokenTransfer. */
18850
+ class TokenTransfer implements ITokenTransfer {
18851
+
18852
+ /**
18853
+ * Constructs a new TokenTransfer.
18854
+ * @param [properties] Properties to set
18855
+ */
18856
+ constructor(properties?: TW.NEAR.Proto.ITokenTransfer);
18857
+
18858
+ /** TokenTransfer tokenAmount. */
18859
+ public tokenAmount: string;
18860
+
18861
+ /** TokenTransfer receiverId. */
18862
+ public receiverId: string;
18863
+
18864
+ /** TokenTransfer gas. */
18865
+ public gas: Long;
18866
+
18867
+ /** TokenTransfer deposit. */
18868
+ public deposit: Uint8Array;
18869
+
18870
+ /**
18871
+ * Creates a new TokenTransfer instance using the specified properties.
18872
+ * @param [properties] Properties to set
18873
+ * @returns TokenTransfer instance
18874
+ */
18875
+ public static create(properties?: TW.NEAR.Proto.ITokenTransfer): TW.NEAR.Proto.TokenTransfer;
18876
+
18877
+ /**
18878
+ * Encodes the specified TokenTransfer message. Does not implicitly {@link TW.NEAR.Proto.TokenTransfer.verify|verify} messages.
18879
+ * @param message TokenTransfer message or plain object to encode
18880
+ * @param [writer] Writer to encode to
18881
+ * @returns Writer
18882
+ */
18883
+ public static encode(message: TW.NEAR.Proto.ITokenTransfer, writer?: $protobuf.Writer): $protobuf.Writer;
18884
+
18885
+ /**
18886
+ * Decodes a TokenTransfer message from the specified reader or buffer.
18887
+ * @param reader Reader or buffer to decode from
18888
+ * @param [length] Message length if known beforehand
18889
+ * @returns TokenTransfer
18890
+ * @throws {Error} If the payload is not a reader or valid buffer
18891
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18892
+ */
18893
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.NEAR.Proto.TokenTransfer;
18894
+
18895
+ /**
18896
+ * Verifies a TokenTransfer message.
18897
+ * @param message Plain object to verify
18898
+ * @returns `null` if valid, otherwise the reason why it is not
18899
+ */
18900
+ public static verify(message: { [k: string]: any }): (string|null);
18901
+
18902
+ /**
18903
+ * Creates a TokenTransfer message from a plain object. Also converts values to their respective internal types.
18904
+ * @param object Plain object
18905
+ * @returns TokenTransfer
18906
+ */
18907
+ public static fromObject(object: { [k: string]: any }): TW.NEAR.Proto.TokenTransfer;
18908
+
18909
+ /**
18910
+ * Creates a plain object from a TokenTransfer message. Also converts values to other types if specified.
18911
+ * @param message TokenTransfer
18912
+ * @param [options] Conversion options
18913
+ * @returns Plain object
18914
+ */
18915
+ public static toObject(message: TW.NEAR.Proto.TokenTransfer, options?: $protobuf.IConversionOptions): { [k: string]: any };
18916
+
18917
+ /**
18918
+ * Converts this TokenTransfer to JSON.
18919
+ * @returns JSON object
18920
+ */
18921
+ public toJSON(): { [k: string]: any };
18922
+ }
18923
+
18833
18924
  /** Properties of an Action. */
18834
18925
  interface IAction {
18835
18926
 
@@ -18856,6 +18947,9 @@ export namespace TW {
18856
18947
 
18857
18948
  /** Action deleteAccount */
18858
18949
  deleteAccount?: (TW.NEAR.Proto.IDeleteAccount|null);
18950
+
18951
+ /** Action tokenTransfer */
18952
+ tokenTransfer?: (TW.NEAR.Proto.ITokenTransfer|null);
18859
18953
  }
18860
18954
 
18861
18955
  /** Represents an Action. */
@@ -18891,8 +18985,11 @@ export namespace TW {
18891
18985
  /** Action deleteAccount. */
18892
18986
  public deleteAccount?: (TW.NEAR.Proto.IDeleteAccount|null);
18893
18987
 
18988
+ /** Action tokenTransfer. */
18989
+ public tokenTransfer?: (TW.NEAR.Proto.ITokenTransfer|null);
18990
+
18894
18991
  /** Action payload. */
18895
- public payload?: ("createAccount"|"deployContract"|"functionCall"|"transfer"|"stake"|"addKey"|"deleteKey"|"deleteAccount");
18992
+ public payload?: ("createAccount"|"deployContract"|"functionCall"|"transfer"|"stake"|"addKey"|"deleteKey"|"deleteAccount"|"tokenTransfer");
18896
18993
 
18897
18994
  /**
18898
18995
  * Creates a new Action instance using the specified properties.
@@ -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
 
@@ -34,7 +34,7 @@ function Ua(){Qa++;g.monitorRunDependencies&&g.monitorRunDependencies(Qa);assert
34
34
  function Va(){return G.startsWith("data:application/octet-stream;base64,")}function ma(a){return a.startsWith("file://")}function H(a){return function(){var b=g.asm;assert(Oa,"native function `"+a+"` called before runtime initialization");b[a]||assert(b[a],"exported native function `"+a+"` not found");return b[a].apply(null,arguments)}}var G;G="wallet-core.wasm";if(!Va()){var Wa=G;G=g.locateFile?g.locateFile(Wa,w):w+Wa}
35
35
  function Xa(){var a=G;try{if(a==G&&qa)return new Uint8Array(qa);if(ka)return ka(a);throw"both async and sync fetching of the wasm failed";}catch(b){n(b)}}
36
36
  function Ya(){if(!qa&&(ea||fa)){if("function"==typeof fetch&&!ma(G))return fetch(G,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+G+"'";return a.arrayBuffer()}).catch(function(){return Xa()});if(ja)return new Promise(function(a,b){ja(G,function(c){a(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return Xa()})}
37
- var Za,$a,ab={666980:()=>{if(void 0===g.ea)try{var a="object"===typeof window?window:self,b="undefined"!==typeof a.crypto?a.crypto:a.msCrypto;a=function(){var d=new Uint32Array(1);b.getRandomValues(d);return d[0]>>>0};a();g.ea=a}catch(d){try{var c=require("crypto");a=function(){var e=c.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};a();g.ea=a}catch(e){throw"No secure random number generator found";}}},667702:()=>g.ea()};function bb(a){for(;0<a.length;)a.shift()(g)}
37
+ var Za,$a,ab={624484:()=>{if(void 0===g.ea)try{var a="object"===typeof window?window:self,b="undefined"!==typeof a.crypto?a.crypto:a.msCrypto;a=function(){var d=new Uint32Array(1);b.getRandomValues(d);return d[0]>>>0};a();g.ea=a}catch(d){try{var c=require("crypto");a=function(){var e=c.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};a();g.ea=a}catch(e){throw"No secure random number generator found";}}},625206:()=>g.ea()};function bb(a){for(;0<a.length;)a.shift()(g)}
38
38
  function va(a){assert("number"===typeof a);return"0x"+a.toString(16).padStart(8,"0")}function pa(a){cb||(cb={});cb[a]||(cb[a]=1,v&&(a="warning: "+a),y(a))}var cb,db=0;
39
39
  function eb(a){this.l=a-24;this.Sa=function(b){F[this.l+4>>2]=b};this.Ca=function(){return F[this.l+4>>2]};this.Ia=function(b){F[this.l+8>>2]=b};this.Ja=function(){E[this.l>>2]=0};this.Ha=function(){C[this.l+12>>0]=0};this.Ma=function(){C[this.l+13>>0]=0};this.Da=function(b,c){this.F(0);this.Sa(b);this.Ia(c);this.Ja();this.Ha();this.Ma()};this.F=function(b){F[this.l+16>>2]=b}}
40
40
  var fb=0,gb=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},hb=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=gb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},ib=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b},jb=
@@ -156,7 +156,7 @@ var Ha=g._emscripten_stack_get_end=function(){return(Ha=g._emscripten_stack_get_
156
156
  var ee=g.dynCall_jii=H("dynCall_jii");g.dynCall_ji=H("dynCall_ji");g.dynCall_jiiij=H("dynCall_jiiij");g.dynCall_jiij=H("dynCall_jiij");g.dynCall_iiji=H("dynCall_iiji");g.dynCall_iiiji=H("dynCall_iiiji");g.dynCall_jiii=H("dynCall_jiii");g.dynCall_jiiii=H("dynCall_jiiii");g.dynCall_iiij=H("dynCall_iiij");g.dynCall_iiiij=H("dynCall_iiiij");g.dynCall_jijjj=H("dynCall_jijjj");g.dynCall_jij=H("dynCall_jij");g.dynCall_viijii=H("dynCall_viijii");g.dynCall_viiiijijji=H("dynCall_viiiijijji");
157
157
  g.dynCall_iij=H("dynCall_iij");g.dynCall_vij=H("dynCall_vij");var fe=g.dynCall_viiji=H("dynCall_viiji");g.dynCall_jj=H("dynCall_jj");g.dynCall_viji=H("dynCall_viji");g.dynCall_jiji=H("dynCall_jiji");g.dynCall_iiiiij=H("dynCall_iiiiij");g.dynCall_iiiiijj=H("dynCall_iiiiijj");g.dynCall_iiiiiijj=H("dynCall_iiiiiijj");function Yd(a,b,c,d){var e=Y();try{U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function Rd(a,b,c){var d=Y();try{return U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}
158
158
  function $d(a,b,c,d,e,f){var h=Y();try{U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function Xd(a,b,c){var d=Y();try{U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function Zd(a,b,c,d,e){var f=Y();try{U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function Wd(a,b){var c=Y();try{U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function Qd(a,b){var c=Y();try{return U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}
159
- function Sd(a,b,c,d){var e=Y();try{return U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function Vd(a){var b=Y();try{U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function ae(a,b,c,d,e,f,h){var l=Y();try{U(a)(b,c,d,e,f,h)}catch(p){Z(l);if(p!==p+0)throw p;X(1,0)}}function Pd(a){var b=Y();try{return U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function Td(a,b,c,d,e,f){var h=Y();try{return U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}
159
+ function Vd(a){var b=Y();try{U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function ae(a,b,c,d,e,f,h){var l=Y();try{U(a)(b,c,d,e,f,h)}catch(p){Z(l);if(p!==p+0)throw p;X(1,0)}}function Sd(a,b,c,d){var e=Y();try{return U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function Pd(a){var b=Y();try{return U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function Td(a,b,c,d,e,f){var h=Y();try{return U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}
160
160
  function be(a,b,c,d,e,f){var h=Y();try{fe(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function Ud(a,b,c){var d=Y();try{return ee(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}
161
161
  "run UTF8ArrayToString UTF8ToString stringToUTF8Array stringToUTF8 lengthBytesUTF8 addOnPreRun addOnInit addOnPreMain addOnExit addOnPostRun addRunDependency removeRunDependency FS_createFolder FS_createPath FS_createDataFile FS_createPreloadedFile FS_createLazyFile FS_createLink FS_createDevice FS_unlink getLEB getFunctionTables alignFunctionTables registerFunctions prettyPrint getCompilerSetting out err callMain abort keepRuntimeAlive wasmMemory stackAlloc stackSave stackRestore getTempRet0 setTempRet0 writeStackCookie checkStackCookie ptrToString zeroMemory stringToNewUTF8 exitJS getHeapMax emscripten_realloc_buffer ENV ERRNO_CODES ERRNO_MESSAGES setErrNo inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr DNS getHostByName Protocols Sockets getRandomDevice warnOnce traverseStack UNWIND_CACHE convertPCtoSourceLocation readEmAsmArgsArray readEmAsmArgs runEmAsmFunction runMainThreadEmAsm jstoi_q jstoi_s getExecutableName listenOnce autoResumeAudioContext dynCallLegacy getDynCaller dynCall handleException runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit safeSetTimeout asmjsMangle asyncLoad alignMemory mmapAlloc handleAllocator writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromI64 readI53FromU64 convertI32PairToI53 convertI32PairToI53Checked convertU32PairToI53 getCFunc ccall cwrap uleb128Encode sigToWasmTypes generateFuncType convertJsFunctionToWasm freeTableIndexes functionsInTableMap getEmptyTableSlot updateTableMap addFunction removeFunction reallyNegative unSign strLen reSign formatString setValue getValue PATH PATH_FS intArrayFromString intArrayToString AsciiToString stringToAscii UTF16Decoder UTF16ToString stringToUTF16 lengthBytesUTF16 UTF32ToString stringToUTF32 lengthBytesUTF32 allocateUTF8 allocateUTF8OnStack writeStringToMemory writeArrayToMemory writeAsciiToMemory SYSCALLS getSocketFromFD getSocketAddress JSEvents registerKeyEventCallback specialHTMLTargets maybeCStringToJsString findEventTarget findCanvasEventTarget getBoundingClientRect fillMouseEventData registerMouseEventCallback registerWheelEventCallback registerUiEventCallback registerFocusEventCallback fillDeviceOrientationEventData registerDeviceOrientationEventCallback fillDeviceMotionEventData registerDeviceMotionEventCallback screenOrientation fillOrientationChangeEventData registerOrientationChangeEventCallback fillFullscreenChangeEventData registerFullscreenChangeEventCallback JSEvents_requestFullscreen JSEvents_resizeCanvasForFullscreen registerRestoreOldStyle hideEverythingExceptGivenElement restoreHiddenElements setLetterbox currentFullscreenStrategy restoreOldWindowedStyle softFullscreenResizeWebGLRenderTarget doRequestFullscreen fillPointerlockChangeEventData registerPointerlockChangeEventCallback registerPointerlockErrorEventCallback requestPointerLock fillVisibilityChangeEventData registerVisibilityChangeEventCallback registerTouchEventCallback fillGamepadEventData registerGamepadEventCallback registerBeforeUnloadEventCallback fillBatteryEventData battery registerBatteryEventCallback setCanvasElementSize getCanvasElementSize demangle demangleAll jsStackTrace stackTrace ExitStatus getEnvStrings checkWasiClock doReadv doWritev createDyncallWrapper setImmediateWrapped clearImmediateWrapped polyfillSetImmediate promiseMap newNativePromise getPromise uncaughtExceptionCount exceptionLast exceptionCaught ExceptionInfo exception_addRef exception_decRef Browser setMainLoop wget FS MEMFS TTY PIPEFS SOCKFS _setNetworkCallback InternalError BindingError UnboundTypeError PureVirtualError init_embind throwInternalError throwBindingError throwUnboundTypeError ensureOverloadTable exposePublicSymbol replacePublicSymbol extendError createNamedFunction embindRepr registeredInstances getBasestPointer registerInheritedInstance unregisterInheritedInstance getInheritedInstance getInheritedInstanceCount getLiveInheritedInstances registeredTypes awaitingDependencies typeDependencies registeredPointers registerType whenDependentTypesAreResolved embind_charCodes embind_init_charCodes readLatin1String getTypeName heap32VectorToArray requireRegisteredType getShiftFromSize integerReadValueFromPointer enumReadValueFromPointer floatReadValueFromPointer simpleReadValueFromPointer runDestructors new_ craftInvokerFunction embind__requireFunction tupleRegistrations structRegistrations genericPointerToWireType constNoSmartPtrRawPointerToWireType nonConstNoSmartPtrRawPointerToWireType init_RegisteredPointer RegisteredPointer RegisteredPointer_getPointee RegisteredPointer_destructor RegisteredPointer_deleteObject RegisteredPointer_fromWireType runDestructor releaseClassHandle finalizationRegistry detachFinalizer_deps detachFinalizer attachFinalizer makeClassHandle init_ClassHandle ClassHandle ClassHandle_isAliasOf throwInstanceAlreadyDeleted ClassHandle_clone ClassHandle_delete deletionQueue ClassHandle_isDeleted ClassHandle_deleteLater flushPendingDeletes delayFunction setDelayFunction RegisteredClass shallowCopyInternalPointer downcastPointer upcastPointer validateThis char_0 char_9 makeLegalFunctionName emval_handle_array emval_free_list emval_symbols init_emval count_emval_handles get_first_emval getStringOrSymbol Emval emval_newers craftEmvalAllocator emval_get_global emval_lookupTypes emval_allocateDestructors emval_methodCallers emval_addMethodCaller emval_registeredMethods".split(" ").forEach(function(a){Object.getOwnPropertyDescriptor(g,a)||
162
162
  Object.defineProperty(g,a,{configurable:!0,get:function(){var b="'"+a+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)";oa(a)&&(b+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you");n(b)}})});
Binary file
@@ -92,6 +92,8 @@ export class AnyAddress {
92
92
  }
93
93
  export class Barz {
94
94
  static getCounterfactualAddress(input: Uint8Array | Buffer): string;
95
+ static getInitCodeFromPublicKey(factory: string, publicKey: string, verificationFacet: string): Uint8Array;
96
+ static getInitCodeFromAttestationObject(factory: string, attestationObject: string, verificationFacet: string): Uint8Array;
95
97
  }
96
98
  export class Base32 {
97
99
  static decodeWithAlphabet(string: string, alphabet: string): Uint8Array;
@@ -402,7 +404,6 @@ export class DerivationPathIndex {
402
404
  }
403
405
  export class Ethereum {
404
406
  static eip2645GetPath(ethAddress: string, layer: string, application: string, index: string): string;
405
- static eip4337GetDeploymentAddress(factoryAddress: string, logicAddress: string, ownerAddress: string): string;
406
407
  }
407
408
  export class EthereumAbi {
408
409
  static encode(fn: EthereumAbiFunction): Uint8Array;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "3.1.36",
3
+ "version": "3.1.37",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",