@trustwallet/wallet-core 3.1.28 → 3.1.29
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.
@@ -16017,6 +16017,9 @@ export namespace TW {
|
|
16017
16017
|
|
16018
16018
|
/** Withdraw amount */
|
16019
16019
|
amount?: (string|null);
|
16020
|
+
|
16021
|
+
/** Withdraw idx */
|
16022
|
+
idx?: (string|null);
|
16020
16023
|
}
|
16021
16024
|
|
16022
16025
|
/** Represents a Withdraw. */
|
@@ -16034,6 +16037,9 @@ export namespace TW {
|
|
16034
16037
|
/** Withdraw amount. */
|
16035
16038
|
public amount: string;
|
16036
16039
|
|
16040
|
+
/** Withdraw idx. */
|
16041
|
+
public idx: string;
|
16042
|
+
|
16037
16043
|
/**
|
16038
16044
|
* Creates a new Withdraw instance using the specified properties.
|
16039
16045
|
* @param [properties] Properties to set
|
@@ -27341,6 +27347,9 @@ export namespace TW {
|
|
27341
27347
|
|
27342
27348
|
/** Transfer comment */
|
27343
27349
|
comment?: (string|null);
|
27350
|
+
|
27351
|
+
/** Transfer bounceable */
|
27352
|
+
bounceable?: (boolean|null);
|
27344
27353
|
}
|
27345
27354
|
|
27346
27355
|
/** Represents a Transfer. */
|
@@ -27373,6 +27382,9 @@ export namespace TW {
|
|
27373
27382
|
/** Transfer comment. */
|
27374
27383
|
public comment: string;
|
27375
27384
|
|
27385
|
+
/** Transfer bounceable. */
|
27386
|
+
public bounceable: boolean;
|
27387
|
+
|
27376
27388
|
/**
|
27377
27389
|
* Creates a new Transfer instance using the specified properties.
|
27378
27390
|
* @param [properties] Properties to set
|
@@ -46895,6 +46895,7 @@
|
|
46895
46895
|
* @interface IWithdraw
|
46896
46896
|
* @property {TW.LiquidStaking.Proto.IAsset|null} [asset] Withdraw asset
|
46897
46897
|
* @property {string|null} [amount] Withdraw amount
|
46898
|
+
* @property {string|null} [idx] Withdraw idx
|
46898
46899
|
*/
|
46899
46900
|
|
46900
46901
|
/**
|
@@ -46928,6 +46929,14 @@
|
|
46928
46929
|
*/
|
46929
46930
|
Withdraw.prototype.amount = "";
|
46930
46931
|
|
46932
|
+
/**
|
46933
|
+
* Withdraw idx.
|
46934
|
+
* @member {string} idx
|
46935
|
+
* @memberof TW.LiquidStaking.Proto.Withdraw
|
46936
|
+
* @instance
|
46937
|
+
*/
|
46938
|
+
Withdraw.prototype.idx = "";
|
46939
|
+
|
46931
46940
|
/**
|
46932
46941
|
* Creates a new Withdraw instance using the specified properties.
|
46933
46942
|
* @function create
|
@@ -46956,6 +46965,8 @@
|
|
46956
46965
|
$root.TW.LiquidStaking.Proto.Asset.encode(message.asset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
46957
46966
|
if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
|
46958
46967
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount);
|
46968
|
+
if (message.idx != null && Object.hasOwnProperty.call(message, "idx"))
|
46969
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.idx);
|
46959
46970
|
return writer;
|
46960
46971
|
};
|
46961
46972
|
|
@@ -46983,6 +46994,9 @@
|
|
46983
46994
|
case 2:
|
46984
46995
|
message.amount = reader.string();
|
46985
46996
|
break;
|
46997
|
+
case 3:
|
46998
|
+
message.idx = reader.string();
|
46999
|
+
break;
|
46986
47000
|
default:
|
46987
47001
|
reader.skipType(tag & 7);
|
46988
47002
|
break;
|
@@ -47010,6 +47024,9 @@
|
|
47010
47024
|
if (message.amount != null && message.hasOwnProperty("amount"))
|
47011
47025
|
if (!$util.isString(message.amount))
|
47012
47026
|
return "amount: string expected";
|
47027
|
+
if (message.idx != null && message.hasOwnProperty("idx"))
|
47028
|
+
if (!$util.isString(message.idx))
|
47029
|
+
return "idx: string expected";
|
47013
47030
|
return null;
|
47014
47031
|
};
|
47015
47032
|
|
@@ -47032,6 +47049,8 @@
|
|
47032
47049
|
}
|
47033
47050
|
if (object.amount != null)
|
47034
47051
|
message.amount = String(object.amount);
|
47052
|
+
if (object.idx != null)
|
47053
|
+
message.idx = String(object.idx);
|
47035
47054
|
return message;
|
47036
47055
|
};
|
47037
47056
|
|
@@ -47051,11 +47070,14 @@
|
|
47051
47070
|
if (options.defaults) {
|
47052
47071
|
object.asset = null;
|
47053
47072
|
object.amount = "";
|
47073
|
+
object.idx = "";
|
47054
47074
|
}
|
47055
47075
|
if (message.asset != null && message.hasOwnProperty("asset"))
|
47056
47076
|
object.asset = $root.TW.LiquidStaking.Proto.Asset.toObject(message.asset, options);
|
47057
47077
|
if (message.amount != null && message.hasOwnProperty("amount"))
|
47058
47078
|
object.amount = message.amount;
|
47079
|
+
if (message.idx != null && message.hasOwnProperty("idx"))
|
47080
|
+
object.idx = message.idx;
|
47059
47081
|
return object;
|
47060
47082
|
};
|
47061
47083
|
|
@@ -78218,6 +78240,7 @@
|
|
78218
78240
|
* @property {number|null} [mode] Transfer mode
|
78219
78241
|
* @property {number|null} [expireAt] Transfer expireAt
|
78220
78242
|
* @property {string|null} [comment] Transfer comment
|
78243
|
+
* @property {boolean|null} [bounceable] Transfer bounceable
|
78221
78244
|
*/
|
78222
78245
|
|
78223
78246
|
/**
|
@@ -78291,6 +78314,14 @@
|
|
78291
78314
|
*/
|
78292
78315
|
Transfer.prototype.comment = "";
|
78293
78316
|
|
78317
|
+
/**
|
78318
|
+
* Transfer bounceable.
|
78319
|
+
* @member {boolean} bounceable
|
78320
|
+
* @memberof TW.TheOpenNetwork.Proto.Transfer
|
78321
|
+
* @instance
|
78322
|
+
*/
|
78323
|
+
Transfer.prototype.bounceable = false;
|
78324
|
+
|
78294
78325
|
/**
|
78295
78326
|
* Creates a new Transfer instance using the specified properties.
|
78296
78327
|
* @function create
|
@@ -78329,6 +78360,8 @@
|
|
78329
78360
|
writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.expireAt);
|
78330
78361
|
if (message.comment != null && Object.hasOwnProperty.call(message, "comment"))
|
78331
78362
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.comment);
|
78363
|
+
if (message.bounceable != null && Object.hasOwnProperty.call(message, "bounceable"))
|
78364
|
+
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.bounceable);
|
78332
78365
|
return writer;
|
78333
78366
|
};
|
78334
78367
|
|
@@ -78371,6 +78404,9 @@
|
|
78371
78404
|
case 7:
|
78372
78405
|
message.comment = reader.string();
|
78373
78406
|
break;
|
78407
|
+
case 8:
|
78408
|
+
message.bounceable = reader.bool();
|
78409
|
+
break;
|
78374
78410
|
default:
|
78375
78411
|
reader.skipType(tag & 7);
|
78376
78412
|
break;
|
@@ -78417,6 +78453,9 @@
|
|
78417
78453
|
if (message.comment != null && message.hasOwnProperty("comment"))
|
78418
78454
|
if (!$util.isString(message.comment))
|
78419
78455
|
return "comment: string expected";
|
78456
|
+
if (message.bounceable != null && message.hasOwnProperty("bounceable"))
|
78457
|
+
if (typeof message.bounceable !== "boolean")
|
78458
|
+
return "bounceable: boolean expected";
|
78420
78459
|
return null;
|
78421
78460
|
};
|
78422
78461
|
|
@@ -78465,6 +78504,8 @@
|
|
78465
78504
|
message.expireAt = object.expireAt >>> 0;
|
78466
78505
|
if (object.comment != null)
|
78467
78506
|
message.comment = String(object.comment);
|
78507
|
+
if (object.bounceable != null)
|
78508
|
+
message.bounceable = Boolean(object.bounceable);
|
78468
78509
|
return message;
|
78469
78510
|
};
|
78470
78511
|
|
@@ -78493,6 +78534,7 @@
|
|
78493
78534
|
object.mode = 0;
|
78494
78535
|
object.expireAt = 0;
|
78495
78536
|
object.comment = "";
|
78537
|
+
object.bounceable = false;
|
78496
78538
|
}
|
78497
78539
|
if (message.walletVersion != null && message.hasOwnProperty("walletVersion"))
|
78498
78540
|
object.walletVersion = options.enums === String ? $root.TW.TheOpenNetwork.Proto.WalletVersion[message.walletVersion] : message.walletVersion;
|
@@ -78511,6 +78553,8 @@
|
|
78511
78553
|
object.expireAt = message.expireAt;
|
78512
78554
|
if (message.comment != null && message.hasOwnProperty("comment"))
|
78513
78555
|
object.comment = message.comment;
|
78556
|
+
if (message.bounceable != null && message.hasOwnProperty("bounceable"))
|
78557
|
+
object.bounceable = message.bounceable;
|
78514
78558
|
return object;
|
78515
78559
|
};
|
78516
78560
|
|
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={660516:()=>{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";}}},661238:()=>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
|