@trustwallet/wallet-core 4.2.16-rc2 → 4.2.17

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.
@@ -16909,6 +16909,12 @@ export namespace TW {
16909
16909
  public toJSON(): { [k: string]: any };
16910
16910
  }
16911
16911
 
16912
+ /** SCAccountType enum. */
16913
+ enum SCAccountType {
16914
+ SimpleAccount = 0,
16915
+ Biz4337 = 1
16916
+ }
16917
+
16912
16918
  /** Properties of a SigningInput. */
16913
16919
  interface ISigningInput {
16914
16920
 
@@ -16950,6 +16956,9 @@ export namespace TW {
16950
16956
 
16951
16957
  /** SigningInput accessList */
16952
16958
  accessList?: (TW.Ethereum.Proto.IAccess[]|null);
16959
+
16960
+ /** SigningInput userOperationMode */
16961
+ userOperationMode?: (TW.Ethereum.Proto.SCAccountType|null);
16953
16962
  }
16954
16963
 
16955
16964
  /** Represents a SigningInput. */
@@ -17000,6 +17009,9 @@ export namespace TW {
17000
17009
  /** SigningInput accessList. */
17001
17010
  public accessList: TW.Ethereum.Proto.IAccess[];
17002
17011
 
17012
+ /** SigningInput userOperationMode. */
17013
+ public userOperationMode: TW.Ethereum.Proto.SCAccountType;
17014
+
17003
17015
  /** SigningInput userOperationOneof. */
17004
17016
  public userOperationOneof?: ("userOperation"|"userOperationV0_7");
17005
17017
 
@@ -50185,6 +50185,20 @@
50185
50185
  return Access;
50186
50186
  })();
50187
50187
 
50188
+ /**
50189
+ * SCAccountType enum.
50190
+ * @name TW.Ethereum.Proto.SCAccountType
50191
+ * @enum {number}
50192
+ * @property {number} SimpleAccount=0 SimpleAccount value
50193
+ * @property {number} Biz4337=1 Biz4337 value
50194
+ */
50195
+ Proto.SCAccountType = (function() {
50196
+ var valuesById = {}, values = Object.create(valuesById);
50197
+ values[valuesById[0] = "SimpleAccount"] = 0;
50198
+ values[valuesById[1] = "Biz4337"] = 1;
50199
+ return values;
50200
+ })();
50201
+
50188
50202
  Proto.SigningInput = (function() {
50189
50203
 
50190
50204
  /**
@@ -50204,6 +50218,7 @@
50204
50218
  * @property {TW.Ethereum.Proto.IUserOperation|null} [userOperation] SigningInput userOperation
50205
50219
  * @property {TW.Ethereum.Proto.IUserOperationV0_7|null} [userOperationV0_7] SigningInput userOperationV0_7
50206
50220
  * @property {Array.<TW.Ethereum.Proto.IAccess>|null} [accessList] SigningInput accessList
50221
+ * @property {TW.Ethereum.Proto.SCAccountType|null} [userOperationMode] SigningInput userOperationMode
50207
50222
  */
50208
50223
 
50209
50224
  /**
@@ -50326,6 +50341,14 @@
50326
50341
  */
50327
50342
  SigningInput.prototype.accessList = $util.emptyArray;
50328
50343
 
50344
+ /**
50345
+ * SigningInput userOperationMode.
50346
+ * @member {TW.Ethereum.Proto.SCAccountType} userOperationMode
50347
+ * @memberof TW.Ethereum.Proto.SigningInput
50348
+ * @instance
50349
+ */
50350
+ SigningInput.prototype.userOperationMode = 0;
50351
+
50329
50352
  // OneOf field names bound to virtual getters and setters
50330
50353
  var $oneOfFields;
50331
50354
 
@@ -50391,6 +50414,8 @@
50391
50414
  $root.TW.Ethereum.Proto.Access.encode(message.accessList[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
50392
50415
  if (message.userOperationV0_7 != null && Object.hasOwnProperty.call(message, "userOperationV0_7"))
50393
50416
  $root.TW.Ethereum.Proto.UserOperationV0_7.encode(message.userOperationV0_7, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
50417
+ if (message.userOperationMode != null && Object.hasOwnProperty.call(message, "userOperationMode"))
50418
+ writer.uint32(/* id 14, wireType 0 =*/112).int32(message.userOperationMode);
50394
50419
  return writer;
50395
50420
  };
50396
50421
 
@@ -50453,6 +50478,9 @@
50453
50478
  message.accessList = [];
50454
50479
  message.accessList.push($root.TW.Ethereum.Proto.Access.decode(reader, reader.uint32()));
50455
50480
  break;
50481
+ case 14:
50482
+ message.userOperationMode = reader.int32();
50483
+ break;
50456
50484
  default:
50457
50485
  reader.skipType(tag & 7);
50458
50486
  break;
@@ -50538,6 +50566,14 @@
50538
50566
  return "accessList." + error;
50539
50567
  }
50540
50568
  }
50569
+ if (message.userOperationMode != null && message.hasOwnProperty("userOperationMode"))
50570
+ switch (message.userOperationMode) {
50571
+ default:
50572
+ return "userOperationMode: enum value expected";
50573
+ case 0:
50574
+ case 1:
50575
+ break;
50576
+ }
50541
50577
  return null;
50542
50578
  };
50543
50579
 
@@ -50629,6 +50665,16 @@
50629
50665
  message.accessList[i] = $root.TW.Ethereum.Proto.Access.fromObject(object.accessList[i]);
50630
50666
  }
50631
50667
  }
50668
+ switch (object.userOperationMode) {
50669
+ case "SimpleAccount":
50670
+ case 0:
50671
+ message.userOperationMode = 0;
50672
+ break;
50673
+ case "Biz4337":
50674
+ case 1:
50675
+ message.userOperationMode = 1;
50676
+ break;
50677
+ }
50632
50678
  return message;
50633
50679
  };
50634
50680
 
@@ -50700,6 +50746,7 @@
50700
50746
  object.privateKey = $util.newBuffer(object.privateKey);
50701
50747
  }
50702
50748
  object.transaction = null;
50749
+ object.userOperationMode = options.enums === String ? "SimpleAccount" : 0;
50703
50750
  }
50704
50751
  if (message.chainId != null && message.hasOwnProperty("chainId"))
50705
50752
  object.chainId = options.bytes === String ? $util.base64.encode(message.chainId, 0, message.chainId.length) : options.bytes === Array ? Array.prototype.slice.call(message.chainId) : message.chainId;
@@ -50736,6 +50783,8 @@
50736
50783
  if (options.oneofs)
50737
50784
  object.userOperationOneof = "userOperationV0_7";
50738
50785
  }
50786
+ if (message.userOperationMode != null && message.hasOwnProperty("userOperationMode"))
50787
+ object.userOperationMode = options.enums === String ? $root.TW.Ethereum.Proto.SCAccountType[message.userOperationMode] : message.userOperationMode;
50739
50788
  return object;
50740
50789
  };
50741
50790
 
@@ -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={2166292:()=>{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";}}},2167014:()=>g.fa()};
39
+ var eb={2180436:()=>{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";}}},2181158:()=>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.16-rc2",
3
+ "version": "4.2.17",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",