@trustwallet/wallet-core 4.0.23 → 4.0.25

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
@@ -40264,16 +40270,16 @@ export namespace TW {
40264
40270
  /** Recipient address */
40265
40271
  toAddress?: (string|null);
40266
40272
 
40267
- /** Theta token amount to send in wei (uint256, serialized little endian) */
40273
+ /** Theta token amount to send in wei (uint256, serialized big endian) */
40268
40274
  thetaAmount?: (Uint8Array|null);
40269
40275
 
40270
- /** TFuel token amount to send in wei (uint256, serialized little endian) */
40276
+ /** TFuel token amount to send in wei (uint256, serialized big endian) */
40271
40277
  tfuelAmount?: (Uint8Array|null);
40272
40278
 
40273
40279
  /** Sequence number of the transaction for the sender address */
40274
40280
  sequence?: (Long|null);
40275
40281
 
40276
- /** Fee amount in TFuel wei for the transaction (uint256, serialized little endian) */
40282
+ /** Fee amount in TFuel wei for the transaction (uint256, serialized big endian) */
40277
40283
  fee?: (Uint8Array|null);
40278
40284
 
40279
40285
  /** The secret private key used for signing (32 bytes). */
@@ -40298,16 +40304,16 @@ export namespace TW {
40298
40304
  /** Recipient address */
40299
40305
  public toAddress: string;
40300
40306
 
40301
- /** Theta token amount to send in wei (uint256, serialized little endian) */
40307
+ /** Theta token amount to send in wei (uint256, serialized big endian) */
40302
40308
  public thetaAmount: Uint8Array;
40303
40309
 
40304
- /** TFuel token amount to send in wei (uint256, serialized little endian) */
40310
+ /** TFuel token amount to send in wei (uint256, serialized big endian) */
40305
40311
  public tfuelAmount: Uint8Array;
40306
40312
 
40307
40313
  /** Sequence number of the transaction for the sender address */
40308
40314
  public sequence: Long;
40309
40315
 
40310
- /** Fee amount in TFuel wei for the transaction (uint256, serialized little endian) */
40316
+ /** Fee amount in TFuel wei for the transaction (uint256, serialized big endian) */
40311
40317
  public fee: Uint8Array;
40312
40318
 
40313
40319
  /** The secret private key used for signing (32 bytes). */
@@ -42985,7 +42991,7 @@ export namespace TW {
42985
42991
  /** Recipient address. */
42986
42992
  to?: (string|null);
42987
42993
 
42988
- /** Transaction amount (uint256, serialized little endian) */
42994
+ /** Transaction amount (uint256, serialized big endian) */
42989
42995
  value?: (Uint8Array|null);
42990
42996
 
42991
42997
  /** Payload data. */
@@ -43004,7 +43010,7 @@ export namespace TW {
43004
43010
  /** Recipient address. */
43005
43011
  public to: string;
43006
43012
 
43007
- /** Transaction amount (uint256, serialized little endian) */
43013
+ /** Transaction amount (uint256, serialized big endian) */
43008
43014
  public value: Uint8Array;
43009
43015
 
43010
43016
  /** Payload data. */
@@ -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
 
@@ -119494,10 +119530,10 @@
119494
119530
  * @interface ISigningInput
119495
119531
  * @property {string|null} [chainId] Chain ID string, mainnet, testnet and privatenet
119496
119532
  * @property {string|null} [toAddress] Recipient address
119497
- * @property {Uint8Array|null} [thetaAmount] Theta token amount to send in wei (uint256, serialized little endian)
119498
- * @property {Uint8Array|null} [tfuelAmount] TFuel token amount to send in wei (uint256, serialized little endian)
119533
+ * @property {Uint8Array|null} [thetaAmount] Theta token amount to send in wei (uint256, serialized big endian)
119534
+ * @property {Uint8Array|null} [tfuelAmount] TFuel token amount to send in wei (uint256, serialized big endian)
119499
119535
  * @property {Long|null} [sequence] Sequence number of the transaction for the sender address
119500
- * @property {Uint8Array|null} [fee] Fee amount in TFuel wei for the transaction (uint256, serialized little endian)
119536
+ * @property {Uint8Array|null} [fee] Fee amount in TFuel wei for the transaction (uint256, serialized big endian)
119501
119537
  * @property {Uint8Array|null} [privateKey] The secret private key used for signing (32 bytes).
119502
119538
  * @property {Uint8Array|null} [publicKey] Public key
119503
119539
  */
@@ -119534,7 +119570,7 @@
119534
119570
  SigningInput.prototype.toAddress = "";
119535
119571
 
119536
119572
  /**
119537
- * Theta token amount to send in wei (uint256, serialized little endian)
119573
+ * Theta token amount to send in wei (uint256, serialized big endian)
119538
119574
  * @member {Uint8Array} thetaAmount
119539
119575
  * @memberof TW.Theta.Proto.SigningInput
119540
119576
  * @instance
@@ -119542,7 +119578,7 @@
119542
119578
  SigningInput.prototype.thetaAmount = $util.newBuffer([]);
119543
119579
 
119544
119580
  /**
119545
- * TFuel token amount to send in wei (uint256, serialized little endian)
119581
+ * TFuel token amount to send in wei (uint256, serialized big endian)
119546
119582
  * @member {Uint8Array} tfuelAmount
119547
119583
  * @memberof TW.Theta.Proto.SigningInput
119548
119584
  * @instance
@@ -119558,7 +119594,7 @@
119558
119594
  SigningInput.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
119559
119595
 
119560
119596
  /**
119561
- * Fee amount in TFuel wei for the transaction (uint256, serialized little endian)
119597
+ * Fee amount in TFuel wei for the transaction (uint256, serialized big endian)
119562
119598
  * @member {Uint8Array} fee
119563
119599
  * @memberof TW.Theta.Proto.SigningInput
119564
119600
  * @instance
@@ -127691,7 +127727,7 @@
127691
127727
  * @memberof TW.VeChain.Proto
127692
127728
  * @interface IClause
127693
127729
  * @property {string|null} [to] Recipient address.
127694
- * @property {Uint8Array|null} [value] Transaction amount (uint256, serialized little endian)
127730
+ * @property {Uint8Array|null} [value] Transaction amount (uint256, serialized big endian)
127695
127731
  * @property {Uint8Array|null} [data] Payload data.
127696
127732
  */
127697
127733
 
@@ -127719,7 +127755,7 @@
127719
127755
  Clause.prototype.to = "";
127720
127756
 
127721
127757
  /**
127722
- * Transaction amount (uint256, serialized little endian)
127758
+ * Transaction amount (uint256, serialized big endian)
127723
127759
  * @member {Uint8Array} value
127724
127760
  * @memberof TW.VeChain.Proto.Clause
127725
127761
  * @instance
@@ -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={2210196:()=>{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";}}},2210918:()=>g.ea()};function bb(a){for(;0<a.length;)a.shift()(g)}
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "4.0.23",
3
+ "version": "4.0.25",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",