@trustwallet/wallet-core 4.4.5 → 4.5.0
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/generated/core_proto.d.ts +569 -79
- package/dist/generated/core_proto.js +1715 -302
- package/dist/lib/wallet-core.js +1 -1
- package/dist/lib/wallet-core.wasm +0 -0
- package/dist/src/wallet-core.d.ts +5 -0
- package/package.json +1 -1
package/dist/lib/wallet-core.js
CHANGED
|
@@ -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={
|
|
39
|
+
var eb={2214516:()=>{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";}}},2215238:()=>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
|
|
@@ -176,10 +176,14 @@ export class BitcoinSigHashType {
|
|
|
176
176
|
export class Biz {
|
|
177
177
|
static getEncodedHash(chainId: Uint8Array | Buffer, codeAddress: string, codeName: string, codeVersion: string, typeHash: string, domainSeparatorHash: string, sender: string, userOpHash: string): Uint8Array;
|
|
178
178
|
static getSignedHash(hash: string, privateKey: string): Uint8Array;
|
|
179
|
+
static signExecuteWithSignatureCall(input: Uint8Array | Buffer): Uint8Array;
|
|
180
|
+
}
|
|
181
|
+
export class BizPasskeySession {
|
|
179
182
|
static encodeRegisterSessionCall(sessionPasskeyPublicKey: PublicKey, validUntilTimestamp: Uint8Array | Buffer): Uint8Array;
|
|
180
183
|
static encodeRemoveSessionCall(sessionPasskeyPublicKey: PublicKey): Uint8Array;
|
|
181
184
|
static encodePasskeySessionNonce(nonce: Uint8Array | Buffer): Uint8Array;
|
|
182
185
|
static encodeExecuteWithPasskeySessionCall(input: Uint8Array | Buffer): Uint8Array;
|
|
186
|
+
static signExecuteWithSignatureCall(input: Uint8Array | Buffer): Uint8Array;
|
|
183
187
|
}
|
|
184
188
|
export class Blockchain {
|
|
185
189
|
value: number;
|
|
@@ -1084,6 +1088,7 @@ export interface WalletCore {
|
|
|
1084
1088
|
BitcoinScript: typeof BitcoinScript;
|
|
1085
1089
|
BitcoinSigHashType: typeof BitcoinSigHashType;
|
|
1086
1090
|
Biz: typeof Biz;
|
|
1091
|
+
BizPasskeySession: typeof BizPasskeySession;
|
|
1087
1092
|
Blockchain: typeof Blockchain;
|
|
1088
1093
|
Cardano: typeof Cardano;
|
|
1089
1094
|
CoinType: typeof CoinType;
|