@trustwallet/wallet-core 4.2.9 → 4.2.10

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.
@@ -37069,6 +37069,9 @@ export namespace TW {
37069
37069
  /** SigningInput publicKey */
37070
37070
  publicKey?: (Uint8Array|null);
37071
37071
 
37072
+ /** SigningInput rawJson */
37073
+ rawJson?: (string|null);
37074
+
37072
37075
  /** SigningInput sourceTag */
37073
37076
  sourceTag?: (number|null);
37074
37077
  }
@@ -37130,6 +37133,9 @@ export namespace TW {
37130
37133
  /** SigningInput publicKey. */
37131
37134
  public publicKey: Uint8Array;
37132
37135
 
37136
+ /** SigningInput rawJson. */
37137
+ public rawJson: string;
37138
+
37133
37139
  /** SigningInput sourceTag. */
37134
37140
  public sourceTag: number;
37135
37141
 
@@ -109146,6 +109146,7 @@
109146
109146
  * @property {TW.Ripple.Proto.IOperationEscrowCancel|null} [opEscrowCancel] SigningInput opEscrowCancel
109147
109147
  * @property {TW.Ripple.Proto.IOperationEscrowFinish|null} [opEscrowFinish] SigningInput opEscrowFinish
109148
109148
  * @property {Uint8Array|null} [publicKey] SigningInput publicKey
109149
+ * @property {string|null} [rawJson] SigningInput rawJson
109149
109150
  * @property {number|null} [sourceTag] SigningInput sourceTag
109150
109151
  */
109151
109152
 
@@ -109292,6 +109293,14 @@
109292
109293
  */
109293
109294
  SigningInput.prototype.publicKey = $util.newBuffer([]);
109294
109295
 
109296
+ /**
109297
+ * SigningInput rawJson.
109298
+ * @member {string} rawJson
109299
+ * @memberof TW.Ripple.Proto.SigningInput
109300
+ * @instance
109301
+ */
109302
+ SigningInput.prototype.rawJson = "";
109303
+
109295
109304
  /**
109296
109305
  * SigningInput sourceTag.
109297
109306
  * @member {number} sourceTag
@@ -109370,6 +109379,8 @@
109370
109379
  $root.TW.Ripple.Proto.OperationEscrowCancel.encode(message.opEscrowCancel, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
109371
109380
  if (message.opEscrowFinish != null && Object.hasOwnProperty.call(message, "opEscrowFinish"))
109372
109381
  $root.TW.Ripple.Proto.OperationEscrowFinish.encode(message.opEscrowFinish, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
109382
+ if (message.rawJson != null && Object.hasOwnProperty.call(message, "rawJson"))
109383
+ writer.uint32(/* id 20, wireType 2 =*/162).string(message.rawJson);
109373
109384
  if (message.sourceTag != null && Object.hasOwnProperty.call(message, "sourceTag"))
109374
109385
  writer.uint32(/* id 25, wireType 0 =*/200).uint32(message.sourceTag);
109375
109386
  return writer;
@@ -109441,6 +109452,9 @@
109441
109452
  case 15:
109442
109453
  message.publicKey = reader.bytes();
109443
109454
  break;
109455
+ case 20:
109456
+ message.rawJson = reader.string();
109457
+ break;
109444
109458
  case 25:
109445
109459
  message.sourceTag = reader.uint32();
109446
109460
  break;
@@ -109573,6 +109587,9 @@
109573
109587
  if (message.publicKey != null && message.hasOwnProperty("publicKey"))
109574
109588
  if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey)))
109575
109589
  return "publicKey: buffer expected";
109590
+ if (message.rawJson != null && message.hasOwnProperty("rawJson"))
109591
+ if (!$util.isString(message.rawJson))
109592
+ return "rawJson: string expected";
109576
109593
  if (message.sourceTag != null && message.hasOwnProperty("sourceTag"))
109577
109594
  if (!$util.isInteger(message.sourceTag))
109578
109595
  return "sourceTag: integer expected";
@@ -109663,6 +109680,8 @@
109663
109680
  $util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0);
109664
109681
  else if (object.publicKey.length)
109665
109682
  message.publicKey = object.publicKey;
109683
+ if (object.rawJson != null)
109684
+ message.rawJson = String(object.rawJson);
109666
109685
  if (object.sourceTag != null)
109667
109686
  message.sourceTag = object.sourceTag >>> 0;
109668
109687
  return message;
@@ -109705,6 +109724,7 @@
109705
109724
  if (options.bytes !== Array)
109706
109725
  object.publicKey = $util.newBuffer(object.publicKey);
109707
109726
  }
109727
+ object.rawJson = "";
109708
109728
  object.sourceTag = 0;
109709
109729
  }
109710
109730
  if (message.fee != null && message.hasOwnProperty("fee"))
@@ -109769,6 +109789,8 @@
109769
109789
  if (options.oneofs)
109770
109790
  object.operationOneof = "opEscrowFinish";
109771
109791
  }
109792
+ if (message.rawJson != null && message.hasOwnProperty("rawJson"))
109793
+ object.rawJson = message.rawJson;
109772
109794
  if (message.sourceTag != null && message.hasOwnProperty("sourceTag"))
109773
109795
  object.sourceTag = message.sourceTag;
109774
109796
  return object;
@@ -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={2157652:()=>{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";}}},2158374:()=>g.fa()};
39
+ var eb={2158612:()=>{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";}}},2159334:()=>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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "4.2.9",
3
+ "version": "4.2.10",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",