@trustwallet/wallet-core 4.0.16 → 4.0.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.
package/dist/index.js CHANGED
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- // Copyright © 2017-2022 Trust Wallet.
2
+ // SPDX-License-Identifier: Apache-2.0
3
3
  //
4
- // This file is part of Trust. The full Trust copyright notice, including
5
- // terms governing use, modification, and redistribution, is contained in the
6
- // file LICENSE at the root of the source code distribution tree.
4
+ // Copyright © 2017 Trust Wallet.
7
5
  Object.defineProperty(exports, "__esModule", { value: true });
8
6
  exports.KeyStore = exports.TW = exports.initWasm = void 0;
9
7
  var Loader = require("./lib/wallet-core");
@@ -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){p(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={2154452:()=>{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";}}},2155174:()=>g.ea()};function bb(a){for(;0<a.length;)a.shift()(g)}
37
+ var Za,$a,ab={2154324:()=>{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";}}},2155046:()=>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.Ta=function(b){F[this.l+4>>2]=b};this.Da=function(){return F[this.l+4>>2]};this.Ja=function(b){F[this.l+8>>2]=b};this.Ka=function(){D[this.l>>2]=0};this.Ia=function(){B[this.l+12>>0]=0};this.Na=function(){B[this.l+13>>0]=0};this.Ea=function(b,c){this.F(0);this.Ta(b);this.Ja(c);this.Ka();this.Ia();this.Na()};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=
Binary file
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- // Copyright © 2017-2022 Trust Wallet.
2
+ // SPDX-License-Identifier: Apache-2.0
3
3
  //
4
- // This file is part of Trust. The full Trust copyright notice, including
5
- // terms governing use, modification, and redistribution, is contained in the
6
- // file LICENSE at the root of the source code distribution tree.
4
+ // Copyright © 2017 Trust Wallet.
7
5
  Object.defineProperty(exports, "__esModule", { value: true });
8
6
  exports.Default = void 0;
9
7
  var Types = require("./types");
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- // Copyright © 2017-2022 Trust Wallet.
2
+ // SPDX-License-Identifier: Apache-2.0
3
3
  //
4
- // This file is part of Trust. The full Trust copyright notice, including
5
- // terms governing use, modification, and redistribution, is contained in the
6
- // file LICENSE at the root of the source code distribution tree.
4
+ // Copyright © 2017 Trust Wallet.
7
5
  Object.defineProperty(exports, "__esModule", { value: true });
8
6
  exports.ExtensionStorage = void 0;
9
7
  var Types = require("./types");
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- // Copyright © 2017-2022 Trust Wallet.
2
+ // SPDX-License-Identifier: Apache-2.0
3
3
  //
4
- // This file is part of Trust. The full Trust copyright notice, including
5
- // terms governing use, modification, and redistribution, is contained in the
6
- // file LICENSE at the root of the source code distribution tree.
4
+ // Copyright © 2017 Trust Wallet.
7
5
  Object.defineProperty(exports, "__esModule", { value: true });
8
6
  exports.FileSystemStorage = void 0;
9
7
  var fs = require("fs/promises");
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- // Copyright © 2017-2022 Trust Wallet.
2
+ // SPDX-License-Identifier: Apache-2.0
3
3
  //
4
- // This file is part of Trust. The full Trust copyright notice, including
5
- // terms governing use, modification, and redistribution, is contained in the
6
- // file LICENSE at the root of the source code distribution tree.
4
+ // Copyright © 2017 Trust Wallet.
7
5
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
6
  if (k2 === undefined) k2 = k;
9
7
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- // Copyright © 2017-2022 Trust Wallet.
2
+ // SPDX-License-Identifier: Apache-2.0
3
3
  //
4
- // This file is part of Trust. The full Trust copyright notice, including
5
- // terms governing use, modification, and redistribution, is contained in the
6
- // file LICENSE at the root of the source code distribution tree.
4
+ // Copyright © 2017 Trust Wallet.
7
5
  Object.defineProperty(exports, "__esModule", { value: true });
8
6
  exports.Error = exports.WalletType = void 0;
9
7
  var WalletType;
@@ -1,8 +1,6 @@
1
- // Copyright © 2017-2023 Trust Wallet.
1
+ // SPDX-License-Identifier: Apache-2.0
2
2
  //
3
- // This file is part of Trust. The full Trust copyright notice, including
4
- // terms governing use, modification, and redistribution, is contained in the
5
- // file LICENSE at the root of the source code distribution tree.
3
+ // Copyright © 2017 Trust Wallet.
6
4
  //
7
5
  // This is a GENERATED FILE, changes made here WILL BE LOST.
8
6
  //
@@ -15,11 +13,9 @@ export namespace HexCoding {
15
13
  export function decode(hex: string): Uint8Array;
16
14
  export function encode(buffer: Uint8Array | Buffer): string;
17
15
  }
18
- // Copyright © 2017-2023 Trust Wallet.
16
+ // SPDX-License-Identifier: Apache-2.0
19
17
  //
20
- // This file is part of Trust. The full Trust copyright notice, including
21
- // terms governing use, modification, and redistribution, is contained in the
22
- // file LICENSE at the root of the source code distribution tree.
18
+ // Copyright © 2017 Trust Wallet.
23
19
 
24
20
  export class BitcoinSigHashTypeExt {
25
21
  static isSingle(type: BitcoinSigHashType): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "4.0.16",
3
+ "version": "4.0.17",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",