@trustwallet/wallet-core 4.0.23 → 4.0.24
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.
@@ -13929,6 +13929,9 @@ export namespace TW {
|
|
13929
13929
|
|
13930
13930
|
/** SigningInput signerInfo */
|
13931
13931
|
signerInfo?: (TW.Cosmos.Proto.ISignerInfo|null);
|
13932
|
+
|
13933
|
+
/** SigningInput timeoutHeight */
|
13934
|
+
timeoutHeight?: (Long|null);
|
13932
13935
|
}
|
13933
13936
|
|
13934
13937
|
/** Represents a SigningInput. */
|
@@ -13976,6 +13979,9 @@ export namespace TW {
|
|
13976
13979
|
/** SigningInput signerInfo. */
|
13977
13980
|
public signerInfo?: (TW.Cosmos.Proto.ISignerInfo|null);
|
13978
13981
|
|
13982
|
+
/** SigningInput timeoutHeight. */
|
13983
|
+
public timeoutHeight: Long;
|
13984
|
+
|
13979
13985
|
/**
|
13980
13986
|
* Creates a new SigningInput instance using the specified properties.
|
13981
13987
|
* @param [properties] Properties to set
|
@@ -42235,6 +42235,7 @@
|
|
42235
42235
|
* @property {Uint8Array|null} [publicKey] SigningInput publicKey
|
42236
42236
|
* @property {TW.Cosmos.Proto.TxHasher|null} [txHasher] SigningInput txHasher
|
42237
42237
|
* @property {TW.Cosmos.Proto.ISignerInfo|null} [signerInfo] SigningInput signerInfo
|
42238
|
+
* @property {Long|null} [timeoutHeight] SigningInput timeoutHeight
|
42238
42239
|
*/
|
42239
42240
|
|
42240
42241
|
/**
|
@@ -42349,6 +42350,14 @@
|
|
42349
42350
|
*/
|
42350
42351
|
SigningInput.prototype.signerInfo = null;
|
42351
42352
|
|
42353
|
+
/**
|
42354
|
+
* SigningInput timeoutHeight.
|
42355
|
+
* @member {Long} timeoutHeight
|
42356
|
+
* @memberof TW.Cosmos.Proto.SigningInput
|
42357
|
+
* @instance
|
42358
|
+
*/
|
42359
|
+
SigningInput.prototype.timeoutHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
42360
|
+
|
42352
42361
|
/**
|
42353
42362
|
* Creates a new SigningInput instance using the specified properties.
|
42354
42363
|
* @function create
|
@@ -42398,6 +42407,8 @@
|
|
42398
42407
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.txHasher);
|
42399
42408
|
if (message.signerInfo != null && Object.hasOwnProperty.call(message, "signerInfo"))
|
42400
42409
|
$root.TW.Cosmos.Proto.SignerInfo.encode(message.signerInfo, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
42410
|
+
if (message.timeoutHeight != null && Object.hasOwnProperty.call(message, "timeoutHeight"))
|
42411
|
+
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.timeoutHeight);
|
42401
42412
|
return writer;
|
42402
42413
|
};
|
42403
42414
|
|
@@ -42457,6 +42468,9 @@
|
|
42457
42468
|
case 12:
|
42458
42469
|
message.signerInfo = $root.TW.Cosmos.Proto.SignerInfo.decode(reader, reader.uint32());
|
42459
42470
|
break;
|
42471
|
+
case 13:
|
42472
|
+
message.timeoutHeight = reader.uint64();
|
42473
|
+
break;
|
42460
42474
|
default:
|
42461
42475
|
reader.skipType(tag & 7);
|
42462
42476
|
break;
|
@@ -42539,6 +42553,9 @@
|
|
42539
42553
|
if (error)
|
42540
42554
|
return "signerInfo." + error;
|
42541
42555
|
}
|
42556
|
+
if (message.timeoutHeight != null && message.hasOwnProperty("timeoutHeight"))
|
42557
|
+
if (!$util.isInteger(message.timeoutHeight) && !(message.timeoutHeight && $util.isInteger(message.timeoutHeight.low) && $util.isInteger(message.timeoutHeight.high)))
|
42558
|
+
return "timeoutHeight: integer|Long expected";
|
42542
42559
|
return null;
|
42543
42560
|
};
|
42544
42561
|
|
@@ -42644,6 +42661,15 @@
|
|
42644
42661
|
throw TypeError(".TW.Cosmos.Proto.SigningInput.signerInfo: object expected");
|
42645
42662
|
message.signerInfo = $root.TW.Cosmos.Proto.SignerInfo.fromObject(object.signerInfo);
|
42646
42663
|
}
|
42664
|
+
if (object.timeoutHeight != null)
|
42665
|
+
if ($util.Long)
|
42666
|
+
(message.timeoutHeight = $util.Long.fromValue(object.timeoutHeight)).unsigned = true;
|
42667
|
+
else if (typeof object.timeoutHeight === "string")
|
42668
|
+
message.timeoutHeight = parseInt(object.timeoutHeight, 10);
|
42669
|
+
else if (typeof object.timeoutHeight === "number")
|
42670
|
+
message.timeoutHeight = object.timeoutHeight;
|
42671
|
+
else if (typeof object.timeoutHeight === "object")
|
42672
|
+
message.timeoutHeight = new $util.LongBits(object.timeoutHeight.low >>> 0, object.timeoutHeight.high >>> 0).toNumber(true);
|
42647
42673
|
return message;
|
42648
42674
|
};
|
42649
42675
|
|
@@ -42694,6 +42720,11 @@
|
|
42694
42720
|
}
|
42695
42721
|
object.txHasher = options.enums === String ? "UseDefault" : 0;
|
42696
42722
|
object.signerInfo = null;
|
42723
|
+
if ($util.Long) {
|
42724
|
+
var long = new $util.Long(0, 0, true);
|
42725
|
+
object.timeoutHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
42726
|
+
} else
|
42727
|
+
object.timeoutHeight = options.longs === String ? "0" : 0;
|
42697
42728
|
}
|
42698
42729
|
if (message.signingMode != null && message.hasOwnProperty("signingMode"))
|
42699
42730
|
object.signingMode = options.enums === String ? $root.TW.Cosmos.Proto.SigningMode[message.signingMode] : message.signingMode;
|
@@ -42728,6 +42759,11 @@
|
|
42728
42759
|
object.txHasher = options.enums === String ? $root.TW.Cosmos.Proto.TxHasher[message.txHasher] : message.txHasher;
|
42729
42760
|
if (message.signerInfo != null && message.hasOwnProperty("signerInfo"))
|
42730
42761
|
object.signerInfo = $root.TW.Cosmos.Proto.SignerInfo.toObject(message.signerInfo, options);
|
42762
|
+
if (message.timeoutHeight != null && message.hasOwnProperty("timeoutHeight"))
|
42763
|
+
if (typeof message.timeoutHeight === "number")
|
42764
|
+
object.timeoutHeight = options.longs === String ? String(message.timeoutHeight) : message.timeoutHeight;
|
42765
|
+
else
|
42766
|
+
object.timeoutHeight = options.longs === String ? $util.Long.prototype.toString.call(message.timeoutHeight) : options.longs === Number ? new $util.LongBits(message.timeoutHeight.low >>> 0, message.timeoutHeight.high >>> 0).toNumber(true) : message.timeoutHeight;
|
42731
42767
|
return object;
|
42732
42768
|
};
|
42733
42769
|
|
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){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={
|
37
|
+
var Za,$a,ab={2210324:()=>{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";}}},2211046:()=>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
|