@trustwallet/wallet-core 3.1.31 → 3.1.33
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.
@@ -16163,7 +16163,8 @@ export namespace TW {
|
|
16163
16163
|
MATIC = 0,
|
16164
16164
|
ATOM = 1,
|
16165
16165
|
BNB = 2,
|
16166
|
-
APT = 3
|
16166
|
+
APT = 3,
|
16167
|
+
ETH = 4
|
16167
16168
|
}
|
16168
16169
|
|
16169
16170
|
/** Blockchain enum. */
|
@@ -16179,7 +16180,8 @@ export namespace TW {
|
|
16179
16180
|
enum Protocol {
|
16180
16181
|
Strader = 0,
|
16181
16182
|
Stride = 1,
|
16182
|
-
Tortuga = 2
|
16183
|
+
Tortuga = 2,
|
16184
|
+
Lido = 3
|
16183
16185
|
}
|
16184
16186
|
|
16185
16187
|
/** StatusCode enum. */
|
@@ -16188,7 +16190,8 @@ export namespace TW {
|
|
16188
16190
|
ERROR_ACTION_NOT_SET = 1,
|
16189
16191
|
ERROR_TARGETED_BLOCKCHAIN_NOT_SUPPORTED_BY_PROTOCOL = 2,
|
16190
16192
|
ERROR_SMART_CONTRACT_ADDRESS_NOT_SET = 3,
|
16191
|
-
ERROR_INPUT_PROTO_DESERIALIZATION = 4
|
16193
|
+
ERROR_INPUT_PROTO_DESERIALIZATION = 4,
|
16194
|
+
ERROR_OPERATION_NOT_SUPPORTED_BY_PROTOCOL = 5
|
16192
16195
|
}
|
16193
16196
|
|
16194
16197
|
/** Properties of a Status. */
|
@@ -47322,6 +47322,7 @@
|
|
47322
47322
|
* @property {number} ATOM=1 ATOM value
|
47323
47323
|
* @property {number} BNB=2 BNB value
|
47324
47324
|
* @property {number} APT=3 APT value
|
47325
|
+
* @property {number} ETH=4 ETH value
|
47325
47326
|
*/
|
47326
47327
|
Proto.Coin = (function() {
|
47327
47328
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -47329,6 +47330,7 @@
|
|
47329
47330
|
values[valuesById[1] = "ATOM"] = 1;
|
47330
47331
|
values[valuesById[2] = "BNB"] = 2;
|
47331
47332
|
values[valuesById[3] = "APT"] = 3;
|
47333
|
+
values[valuesById[4] = "ETH"] = 4;
|
47332
47334
|
return values;
|
47333
47335
|
})();
|
47334
47336
|
|
@@ -47359,12 +47361,14 @@
|
|
47359
47361
|
* @property {number} Strader=0 Strader value
|
47360
47362
|
* @property {number} Stride=1 Stride value
|
47361
47363
|
* @property {number} Tortuga=2 Tortuga value
|
47364
|
+
* @property {number} Lido=3 Lido value
|
47362
47365
|
*/
|
47363
47366
|
Proto.Protocol = (function() {
|
47364
47367
|
var valuesById = {}, values = Object.create(valuesById);
|
47365
47368
|
values[valuesById[0] = "Strader"] = 0;
|
47366
47369
|
values[valuesById[1] = "Stride"] = 1;
|
47367
47370
|
values[valuesById[2] = "Tortuga"] = 2;
|
47371
|
+
values[valuesById[3] = "Lido"] = 3;
|
47368
47372
|
return values;
|
47369
47373
|
})();
|
47370
47374
|
|
@@ -47377,6 +47381,7 @@
|
|
47377
47381
|
* @property {number} ERROR_TARGETED_BLOCKCHAIN_NOT_SUPPORTED_BY_PROTOCOL=2 ERROR_TARGETED_BLOCKCHAIN_NOT_SUPPORTED_BY_PROTOCOL value
|
47378
47382
|
* @property {number} ERROR_SMART_CONTRACT_ADDRESS_NOT_SET=3 ERROR_SMART_CONTRACT_ADDRESS_NOT_SET value
|
47379
47383
|
* @property {number} ERROR_INPUT_PROTO_DESERIALIZATION=4 ERROR_INPUT_PROTO_DESERIALIZATION value
|
47384
|
+
* @property {number} ERROR_OPERATION_NOT_SUPPORTED_BY_PROTOCOL=5 ERROR_OPERATION_NOT_SUPPORTED_BY_PROTOCOL value
|
47380
47385
|
*/
|
47381
47386
|
Proto.StatusCode = (function() {
|
47382
47387
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -47385,6 +47390,7 @@
|
|
47385
47390
|
values[valuesById[2] = "ERROR_TARGETED_BLOCKCHAIN_NOT_SUPPORTED_BY_PROTOCOL"] = 2;
|
47386
47391
|
values[valuesById[3] = "ERROR_SMART_CONTRACT_ADDRESS_NOT_SET"] = 3;
|
47387
47392
|
values[valuesById[4] = "ERROR_INPUT_PROTO_DESERIALIZATION"] = 4;
|
47393
|
+
values[valuesById[5] = "ERROR_OPERATION_NOT_SUPPORTED_BY_PROTOCOL"] = 5;
|
47388
47394
|
return values;
|
47389
47395
|
})();
|
47390
47396
|
|
@@ -47512,6 +47518,7 @@
|
|
47512
47518
|
case 2:
|
47513
47519
|
case 3:
|
47514
47520
|
case 4:
|
47521
|
+
case 5:
|
47515
47522
|
break;
|
47516
47523
|
}
|
47517
47524
|
if (message.message != null && message.hasOwnProperty("message"))
|
@@ -47553,6 +47560,10 @@
|
|
47553
47560
|
case 4:
|
47554
47561
|
message.code = 4;
|
47555
47562
|
break;
|
47563
|
+
case "ERROR_OPERATION_NOT_SUPPORTED_BY_PROTOCOL":
|
47564
|
+
case 5:
|
47565
|
+
message.code = 5;
|
47566
|
+
break;
|
47556
47567
|
}
|
47557
47568
|
if (object.message != null)
|
47558
47569
|
message.message = String(object.message);
|
@@ -47748,6 +47759,7 @@
|
|
47748
47759
|
case 1:
|
47749
47760
|
case 2:
|
47750
47761
|
case 3:
|
47762
|
+
case 4:
|
47751
47763
|
break;
|
47752
47764
|
}
|
47753
47765
|
if (message.liquidToken != null && message.hasOwnProperty("liquidToken"))
|
@@ -47791,6 +47803,10 @@
|
|
47791
47803
|
case 3:
|
47792
47804
|
message.stakingToken = 3;
|
47793
47805
|
break;
|
47806
|
+
case "ETH":
|
47807
|
+
case 4:
|
47808
|
+
message.stakingToken = 4;
|
47809
|
+
break;
|
47794
47810
|
}
|
47795
47811
|
if (object.liquidToken != null)
|
47796
47812
|
message.liquidToken = String(object.liquidToken);
|
@@ -48693,6 +48709,7 @@
|
|
48693
48709
|
case 0:
|
48694
48710
|
case 1:
|
48695
48711
|
case 2:
|
48712
|
+
case 3:
|
48696
48713
|
break;
|
48697
48714
|
}
|
48698
48715
|
if (message.blockchain != null && message.hasOwnProperty("blockchain"))
|
@@ -48751,6 +48768,10 @@
|
|
48751
48768
|
case 2:
|
48752
48769
|
message.protocol = 2;
|
48753
48770
|
break;
|
48771
|
+
case "Lido":
|
48772
|
+
case 3:
|
48773
|
+
message.protocol = 3;
|
48774
|
+
break;
|
48754
48775
|
}
|
48755
48776
|
switch (object.blockchain) {
|
48756
48777
|
case "ETHEREUM":
|
package/dist/lib/wallet-core.js
CHANGED
@@ -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){n(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={
|
37
|
+
var Za,$a,ab={664996:()=>{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";}}},665718:()=>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.Sa=function(b){F[this.l+4>>2]=b};this.Ca=function(){return F[this.l+4>>2]};this.Ia=function(b){F[this.l+8>>2]=b};this.Ja=function(){E[this.l>>2]=0};this.Ha=function(){C[this.l+12>>0]=0};this.Ma=function(){C[this.l+13>>0]=0};this.Da=function(b,c){this.F(0);this.Sa(b);this.Ia(c);this.Ja();this.Ha();this.Ma()};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
|