@trustwallet/wallet-core 4.3.19 → 4.3.21

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.
@@ -36730,6 +36730,9 @@ export namespace TW {
36730
36730
  /** SigningInput multiAddress */
36731
36731
  multiAddress?: (boolean|null);
36732
36732
 
36733
+ /** SigningInput chargeNativeAsAssetTxPayment */
36734
+ chargeNativeAsAssetTxPayment?: (boolean|null);
36735
+
36733
36736
  /** SigningInput balanceCall */
36734
36737
  balanceCall?: (TW.Polkadot.Proto.IBalance|null);
36735
36738
 
@@ -36776,6 +36779,9 @@ export namespace TW {
36776
36779
  /** SigningInput multiAddress. */
36777
36780
  public multiAddress: boolean;
36778
36781
 
36782
+ /** SigningInput chargeNativeAsAssetTxPayment. */
36783
+ public chargeNativeAsAssetTxPayment: boolean;
36784
+
36779
36785
  /** SigningInput balanceCall. */
36780
36786
  public balanceCall?: (TW.Polkadot.Proto.IBalance|null);
36781
36787
 
@@ -108671,6 +108671,7 @@
108671
108671
  * @property {Uint8Array|null} [privateKey] SigningInput privateKey
108672
108672
  * @property {number|null} [network] SigningInput network
108673
108673
  * @property {boolean|null} [multiAddress] SigningInput multiAddress
108674
+ * @property {boolean|null} [chargeNativeAsAssetTxPayment] SigningInput chargeNativeAsAssetTxPayment
108674
108675
  * @property {TW.Polkadot.Proto.IBalance|null} [balanceCall] SigningInput balanceCall
108675
108676
  * @property {TW.Polkadot.Proto.IStaking|null} [stakingCall] SigningInput stakingCall
108676
108677
  */
@@ -108770,6 +108771,14 @@
108770
108771
  */
108771
108772
  SigningInput.prototype.multiAddress = false;
108772
108773
 
108774
+ /**
108775
+ * SigningInput chargeNativeAsAssetTxPayment.
108776
+ * @member {boolean} chargeNativeAsAssetTxPayment
108777
+ * @memberof TW.Polkadot.Proto.SigningInput
108778
+ * @instance
108779
+ */
108780
+ SigningInput.prototype.chargeNativeAsAssetTxPayment = false;
108781
+
108773
108782
  /**
108774
108783
  * SigningInput balanceCall.
108775
108784
  * @member {TW.Polkadot.Proto.IBalance|null|undefined} balanceCall
@@ -108848,6 +108857,8 @@
108848
108857
  $root.TW.Polkadot.Proto.Balance.encode(message.balanceCall, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
108849
108858
  if (message.stakingCall != null && Object.hasOwnProperty.call(message, "stakingCall"))
108850
108859
  $root.TW.Polkadot.Proto.Staking.encode(message.stakingCall, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
108860
+ if (message.chargeNativeAsAssetTxPayment != null && Object.hasOwnProperty.call(message, "chargeNativeAsAssetTxPayment"))
108861
+ writer.uint32(/* id 13, wireType 0 =*/104).bool(message.chargeNativeAsAssetTxPayment);
108851
108862
  return writer;
108852
108863
  };
108853
108864
 
@@ -108899,6 +108910,9 @@
108899
108910
  case 10:
108900
108911
  message.multiAddress = reader.bool();
108901
108912
  break;
108913
+ case 13:
108914
+ message.chargeNativeAsAssetTxPayment = reader.bool();
108915
+ break;
108902
108916
  case 11:
108903
108917
  message.balanceCall = $root.TW.Polkadot.Proto.Balance.decode(reader, reader.uint32());
108904
108918
  break;
@@ -108957,6 +108971,9 @@
108957
108971
  if (message.multiAddress != null && message.hasOwnProperty("multiAddress"))
108958
108972
  if (typeof message.multiAddress !== "boolean")
108959
108973
  return "multiAddress: boolean expected";
108974
+ if (message.chargeNativeAsAssetTxPayment != null && message.hasOwnProperty("chargeNativeAsAssetTxPayment"))
108975
+ if (typeof message.chargeNativeAsAssetTxPayment !== "boolean")
108976
+ return "chargeNativeAsAssetTxPayment: boolean expected";
108960
108977
  if (message.balanceCall != null && message.hasOwnProperty("balanceCall")) {
108961
108978
  properties.messageOneof = 1;
108962
108979
  {
@@ -109032,6 +109049,8 @@
109032
109049
  message.network = object.network >>> 0;
109033
109050
  if (object.multiAddress != null)
109034
109051
  message.multiAddress = Boolean(object.multiAddress);
109052
+ if (object.chargeNativeAsAssetTxPayment != null)
109053
+ message.chargeNativeAsAssetTxPayment = Boolean(object.chargeNativeAsAssetTxPayment);
109035
109054
  if (object.balanceCall != null) {
109036
109055
  if (typeof object.balanceCall !== "object")
109037
109056
  throw TypeError(".TW.Polkadot.Proto.SigningInput.balanceCall: object expected");
@@ -109097,6 +109116,7 @@
109097
109116
  }
109098
109117
  object.network = 0;
109099
109118
  object.multiAddress = false;
109119
+ object.chargeNativeAsAssetTxPayment = false;
109100
109120
  }
109101
109121
  if (message.blockHash != null && message.hasOwnProperty("blockHash"))
109102
109122
  object.blockHash = options.bytes === String ? $util.base64.encode(message.blockHash, 0, message.blockHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.blockHash) : message.blockHash;
@@ -109131,6 +109151,8 @@
109131
109151
  if (options.oneofs)
109132
109152
  object.messageOneof = "stakingCall";
109133
109153
  }
109154
+ if (message.chargeNativeAsAssetTxPayment != null && message.hasOwnProperty("chargeNativeAsAssetTxPayment"))
109155
+ object.chargeNativeAsAssetTxPayment = message.chargeNativeAsAssetTxPayment;
109134
109156
  return object;
109135
109157
  };
109136
109158
 
@@ -36,7 +36,7 @@ function $a(a,b){var c=M;return sa||"function"!=typeof WebAssembly.instantiateSt
36
36
  function z(a,b){Object.getOwnPropertyDescriptor(g,a)||Object.defineProperty(g,a,{configurable:!0,get:function(){n("Module."+a+" has been replaced with plain "+b+" (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}})}
37
37
  function cb(a){return"FS_createPath"===a||"FS_createDataFile"===a||"FS_createPreloadedFile"===a||"FS_unlink"===a||"addRunDependency"===a||"FS_createLazyFile"===a||"FS_createDevice"===a||"removeRunDependency"===a}(function(a,b){"undefined"!==typeof globalThis&&Object.defineProperty(globalThis,a,{configurable:!0,get:function(){ya("`"+a+"` is not longer defined by emscripten. "+b)}})})("buffer","Please use HEAP8.buffer or wasmMemory.buffer");
38
38
  function db(a){Object.getOwnPropertyDescriptor(g,a)||Object.defineProperty(g,a,{configurable:!0,get:function(){var b="'"+a+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)";cb(a)&&(b+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you");n(b)}})}
39
- var eb={2211956:()=>{if(void 0===g.fa)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.fa=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.fa=a}catch(e){throw"No secure random number generator found";}}},2212678:()=>g.fa()};
39
+ var eb={2212852:()=>{if(void 0===g.fa)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.fa=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.fa=a}catch(e){throw"No secure random number generator found";}}},2213574:()=>g.fa()};
40
40
  function qa(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}function fb(a){for(;0<a.length;)a.shift()(g)}function za(a){assert("number"===typeof a);return"0x"+a.toString(16).padStart(8,"0")}function ya(a){gb||(gb={});gb[a]||(gb[a]=1,w&&(a="warning: "+a),y(a))}var gb,hb=[];function ib(a){var b=hb[a];b||(a>=hb.length&&(hb.length=a+1),hb[a]=b=Ha.get(a));assert(Ha.get(a)==b,"JavaScript-side Wasm function table mirror is out of date!");return b}
41
41
  function jb(a){this.l=a-24;this.Oa=function(b){G[this.l+4>>2]=b};this.Ja=function(b){G[this.l+8>>2]=b};this.Ka=function(){F[this.l>>2]=0};this.Ea=function(){D[this.l+12>>0]=0};this.La=function(){D[this.l+13>>0]=0};this.I=function(b,c){this.Da();this.Oa(b);this.Ja(c);this.Ka();this.Ea();this.La()};this.Da=function(){G[this.l+16>>2]=0}}
42
42
  var kb=0,lb=(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},mb=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=lb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},nb=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},ob=
Binary file
@@ -412,6 +412,7 @@ export class CoinType {
412
412
  static sonic: CoinType;
413
413
  static polymesh: CoinType;
414
414
  static plasma: CoinType;
415
+ static monad: CoinType;
415
416
  }
416
417
  export class CoinTypeConfiguration {
417
418
  static getSymbol(type: CoinType): string;
@@ -599,6 +600,7 @@ export class EthereumChainID {
599
600
  static zeneon: EthereumChainID;
600
601
  static base: EthereumChainID;
601
602
  static plasma: EthereumChainID;
603
+ static monad: EthereumChainID;
602
604
  static meter: EthereumChainID;
603
605
  static celo: EthereumChainID;
604
606
  static linea: EthereumChainID;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "4.3.19",
3
+ "version": "4.3.21",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",