@trustwallet/wallet-core 4.0.28 → 4.0.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.
@@ -5787,6 +5787,79 @@ export namespace TW {
5787
5787
  public toJSON(): { [k: string]: any };
5788
5788
  }
5789
5789
 
5790
+ /** Properties of an OutputIndex. */
5791
+ interface IOutputIndex {
5792
+
5793
+ /** OutputIndex index */
5794
+ index?: (number|null);
5795
+ }
5796
+
5797
+ /** Represents an OutputIndex. */
5798
+ class OutputIndex implements IOutputIndex {
5799
+
5800
+ /**
5801
+ * Constructs a new OutputIndex.
5802
+ * @param [properties] Properties to set
5803
+ */
5804
+ constructor(properties?: TW.Bitcoin.Proto.IOutputIndex);
5805
+
5806
+ /** OutputIndex index. */
5807
+ public index: number;
5808
+
5809
+ /**
5810
+ * Creates a new OutputIndex instance using the specified properties.
5811
+ * @param [properties] Properties to set
5812
+ * @returns OutputIndex instance
5813
+ */
5814
+ public static create(properties?: TW.Bitcoin.Proto.IOutputIndex): TW.Bitcoin.Proto.OutputIndex;
5815
+
5816
+ /**
5817
+ * Encodes the specified OutputIndex message. Does not implicitly {@link TW.Bitcoin.Proto.OutputIndex.verify|verify} messages.
5818
+ * @param message OutputIndex message or plain object to encode
5819
+ * @param [writer] Writer to encode to
5820
+ * @returns Writer
5821
+ */
5822
+ public static encode(message: TW.Bitcoin.Proto.IOutputIndex, writer?: $protobuf.Writer): $protobuf.Writer;
5823
+
5824
+ /**
5825
+ * Decodes an OutputIndex message from the specified reader or buffer.
5826
+ * @param reader Reader or buffer to decode from
5827
+ * @param [length] Message length if known beforehand
5828
+ * @returns OutputIndex
5829
+ * @throws {Error} If the payload is not a reader or valid buffer
5830
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5831
+ */
5832
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Bitcoin.Proto.OutputIndex;
5833
+
5834
+ /**
5835
+ * Verifies an OutputIndex message.
5836
+ * @param message Plain object to verify
5837
+ * @returns `null` if valid, otherwise the reason why it is not
5838
+ */
5839
+ public static verify(message: { [k: string]: any }): (string|null);
5840
+
5841
+ /**
5842
+ * Creates an OutputIndex message from a plain object. Also converts values to their respective internal types.
5843
+ * @param object Plain object
5844
+ * @returns OutputIndex
5845
+ */
5846
+ public static fromObject(object: { [k: string]: any }): TW.Bitcoin.Proto.OutputIndex;
5847
+
5848
+ /**
5849
+ * Creates a plain object from an OutputIndex message. Also converts values to other types if specified.
5850
+ * @param message OutputIndex
5851
+ * @param [options] Conversion options
5852
+ * @returns Plain object
5853
+ */
5854
+ public static toObject(message: TW.Bitcoin.Proto.OutputIndex, options?: $protobuf.IConversionOptions): { [k: string]: any };
5855
+
5856
+ /**
5857
+ * Converts this OutputIndex to JSON.
5858
+ * @returns JSON object
5859
+ */
5860
+ public toJSON(): { [k: string]: any };
5861
+ }
5862
+
5790
5863
  /** Properties of a SigningInput. */
5791
5864
  interface ISigningInput {
5792
5865
 
@@ -5829,6 +5902,9 @@ export namespace TW {
5829
5902
  /** SigningInput outputOpReturn */
5830
5903
  outputOpReturn?: (Uint8Array|null);
5831
5904
 
5905
+ /** SigningInput outputOpReturnIndex */
5906
+ outputOpReturnIndex?: (TW.Bitcoin.Proto.IOutputIndex|null);
5907
+
5832
5908
  /** SigningInput extraOutputs */
5833
5909
  extraOutputs?: (TW.Bitcoin.Proto.IOutputAddress[]|null);
5834
5910
 
@@ -5902,6 +5978,9 @@ export namespace TW {
5902
5978
  /** SigningInput outputOpReturn. */
5903
5979
  public outputOpReturn: Uint8Array;
5904
5980
 
5981
+ /** SigningInput outputOpReturnIndex. */
5982
+ public outputOpReturnIndex?: (TW.Bitcoin.Proto.IOutputIndex|null);
5983
+
5905
5984
  /** SigningInput extraOutputs. */
5906
5985
  public extraOutputs: TW.Bitcoin.Proto.IOutputAddress[];
5907
5986
 
@@ -6010,6 +6089,9 @@ export namespace TW {
6010
6089
  /** TransactionPlan outputOpReturn */
6011
6090
  outputOpReturn?: (Uint8Array|null);
6012
6091
 
6092
+ /** TransactionPlan outputOpReturnIndex */
6093
+ outputOpReturnIndex?: (TW.Bitcoin.Proto.IOutputIndex|null);
6094
+
6013
6095
  /** TransactionPlan preblockhash */
6014
6096
  preblockhash?: (Uint8Array|null);
6015
6097
 
@@ -6053,6 +6135,9 @@ export namespace TW {
6053
6135
  /** TransactionPlan outputOpReturn. */
6054
6136
  public outputOpReturn: Uint8Array;
6055
6137
 
6138
+ /** TransactionPlan outputOpReturnIndex. */
6139
+ public outputOpReturnIndex?: (TW.Bitcoin.Proto.IOutputIndex|null);
6140
+
6056
6141
  /** TransactionPlan preblockhash. */
6057
6142
  public preblockhash: Uint8Array;
6058
6143
 
@@ -17131,6 +17131,164 @@
17131
17131
  return OutputAddress;
17132
17132
  })();
17133
17133
 
17134
+ Proto.OutputIndex = (function() {
17135
+
17136
+ /**
17137
+ * Properties of an OutputIndex.
17138
+ * @memberof TW.Bitcoin.Proto
17139
+ * @interface IOutputIndex
17140
+ * @property {number|null} [index] OutputIndex index
17141
+ */
17142
+
17143
+ /**
17144
+ * Constructs a new OutputIndex.
17145
+ * @memberof TW.Bitcoin.Proto
17146
+ * @classdesc Represents an OutputIndex.
17147
+ * @implements IOutputIndex
17148
+ * @constructor
17149
+ * @param {TW.Bitcoin.Proto.IOutputIndex=} [properties] Properties to set
17150
+ */
17151
+ function OutputIndex(properties) {
17152
+ if (properties)
17153
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17154
+ if (properties[keys[i]] != null)
17155
+ this[keys[i]] = properties[keys[i]];
17156
+ }
17157
+
17158
+ /**
17159
+ * OutputIndex index.
17160
+ * @member {number} index
17161
+ * @memberof TW.Bitcoin.Proto.OutputIndex
17162
+ * @instance
17163
+ */
17164
+ OutputIndex.prototype.index = 0;
17165
+
17166
+ /**
17167
+ * Creates a new OutputIndex instance using the specified properties.
17168
+ * @function create
17169
+ * @memberof TW.Bitcoin.Proto.OutputIndex
17170
+ * @static
17171
+ * @param {TW.Bitcoin.Proto.IOutputIndex=} [properties] Properties to set
17172
+ * @returns {TW.Bitcoin.Proto.OutputIndex} OutputIndex instance
17173
+ */
17174
+ OutputIndex.create = function create(properties) {
17175
+ return new OutputIndex(properties);
17176
+ };
17177
+
17178
+ /**
17179
+ * Encodes the specified OutputIndex message. Does not implicitly {@link TW.Bitcoin.Proto.OutputIndex.verify|verify} messages.
17180
+ * @function encode
17181
+ * @memberof TW.Bitcoin.Proto.OutputIndex
17182
+ * @static
17183
+ * @param {TW.Bitcoin.Proto.IOutputIndex} message OutputIndex message or plain object to encode
17184
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17185
+ * @returns {$protobuf.Writer} Writer
17186
+ */
17187
+ OutputIndex.encode = function encode(message, writer) {
17188
+ if (!writer)
17189
+ writer = $Writer.create();
17190
+ if (message.index != null && Object.hasOwnProperty.call(message, "index"))
17191
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.index);
17192
+ return writer;
17193
+ };
17194
+
17195
+ /**
17196
+ * Decodes an OutputIndex message from the specified reader or buffer.
17197
+ * @function decode
17198
+ * @memberof TW.Bitcoin.Proto.OutputIndex
17199
+ * @static
17200
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17201
+ * @param {number} [length] Message length if known beforehand
17202
+ * @returns {TW.Bitcoin.Proto.OutputIndex} OutputIndex
17203
+ * @throws {Error} If the payload is not a reader or valid buffer
17204
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17205
+ */
17206
+ OutputIndex.decode = function decode(reader, length) {
17207
+ if (!(reader instanceof $Reader))
17208
+ reader = $Reader.create(reader);
17209
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Bitcoin.Proto.OutputIndex();
17210
+ while (reader.pos < end) {
17211
+ var tag = reader.uint32();
17212
+ switch (tag >>> 3) {
17213
+ case 1:
17214
+ message.index = reader.uint32();
17215
+ break;
17216
+ default:
17217
+ reader.skipType(tag & 7);
17218
+ break;
17219
+ }
17220
+ }
17221
+ return message;
17222
+ };
17223
+
17224
+ /**
17225
+ * Verifies an OutputIndex message.
17226
+ * @function verify
17227
+ * @memberof TW.Bitcoin.Proto.OutputIndex
17228
+ * @static
17229
+ * @param {Object.<string,*>} message Plain object to verify
17230
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17231
+ */
17232
+ OutputIndex.verify = function verify(message) {
17233
+ if (typeof message !== "object" || message === null)
17234
+ return "object expected";
17235
+ if (message.index != null && message.hasOwnProperty("index"))
17236
+ if (!$util.isInteger(message.index))
17237
+ return "index: integer expected";
17238
+ return null;
17239
+ };
17240
+
17241
+ /**
17242
+ * Creates an OutputIndex message from a plain object. Also converts values to their respective internal types.
17243
+ * @function fromObject
17244
+ * @memberof TW.Bitcoin.Proto.OutputIndex
17245
+ * @static
17246
+ * @param {Object.<string,*>} object Plain object
17247
+ * @returns {TW.Bitcoin.Proto.OutputIndex} OutputIndex
17248
+ */
17249
+ OutputIndex.fromObject = function fromObject(object) {
17250
+ if (object instanceof $root.TW.Bitcoin.Proto.OutputIndex)
17251
+ return object;
17252
+ var message = new $root.TW.Bitcoin.Proto.OutputIndex();
17253
+ if (object.index != null)
17254
+ message.index = object.index >>> 0;
17255
+ return message;
17256
+ };
17257
+
17258
+ /**
17259
+ * Creates a plain object from an OutputIndex message. Also converts values to other types if specified.
17260
+ * @function toObject
17261
+ * @memberof TW.Bitcoin.Proto.OutputIndex
17262
+ * @static
17263
+ * @param {TW.Bitcoin.Proto.OutputIndex} message OutputIndex
17264
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17265
+ * @returns {Object.<string,*>} Plain object
17266
+ */
17267
+ OutputIndex.toObject = function toObject(message, options) {
17268
+ if (!options)
17269
+ options = {};
17270
+ var object = {};
17271
+ if (options.defaults)
17272
+ object.index = 0;
17273
+ if (message.index != null && message.hasOwnProperty("index"))
17274
+ object.index = message.index;
17275
+ return object;
17276
+ };
17277
+
17278
+ /**
17279
+ * Converts this OutputIndex to JSON.
17280
+ * @function toJSON
17281
+ * @memberof TW.Bitcoin.Proto.OutputIndex
17282
+ * @instance
17283
+ * @returns {Object.<string,*>} JSON object
17284
+ */
17285
+ OutputIndex.prototype.toJSON = function toJSON() {
17286
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17287
+ };
17288
+
17289
+ return OutputIndex;
17290
+ })();
17291
+
17134
17292
  Proto.SigningInput = (function() {
17135
17293
 
17136
17294
  /**
@@ -17150,6 +17308,7 @@
17150
17308
  * @property {TW.Bitcoin.Proto.ITransactionPlan|null} [plan] SigningInput plan
17151
17309
  * @property {number|null} [lockTime] SigningInput lockTime
17152
17310
  * @property {Uint8Array|null} [outputOpReturn] SigningInput outputOpReturn
17311
+ * @property {TW.Bitcoin.Proto.IOutputIndex|null} [outputOpReturnIndex] SigningInput outputOpReturnIndex
17153
17312
  * @property {Array.<TW.Bitcoin.Proto.IOutputAddress>|null} [extraOutputs] SigningInput extraOutputs
17154
17313
  * @property {boolean|null} [useMaxUtxo] SigningInput useMaxUtxo
17155
17314
  * @property {boolean|null} [disableDustFilter] SigningInput disableDustFilter
@@ -17283,6 +17442,14 @@
17283
17442
  */
17284
17443
  SigningInput.prototype.outputOpReturn = $util.newBuffer([]);
17285
17444
 
17445
+ /**
17446
+ * SigningInput outputOpReturnIndex.
17447
+ * @member {TW.Bitcoin.Proto.IOutputIndex|null|undefined} outputOpReturnIndex
17448
+ * @memberof TW.Bitcoin.Proto.SigningInput
17449
+ * @instance
17450
+ */
17451
+ SigningInput.prototype.outputOpReturnIndex = null;
17452
+
17286
17453
  /**
17287
17454
  * SigningInput extraOutputs.
17288
17455
  * @member {Array.<TW.Bitcoin.Proto.IOutputAddress>} extraOutputs
@@ -17431,6 +17598,8 @@
17431
17598
  $root.TW.BitcoinV2.Proto.SigningInput.encode(message.signingV2, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
17432
17599
  if (message.fixedDustThreshold != null && Object.hasOwnProperty.call(message, "fixedDustThreshold"))
17433
17600
  writer.uint32(/* id 24, wireType 0 =*/192).int64(message.fixedDustThreshold);
17601
+ if (message.outputOpReturnIndex != null && Object.hasOwnProperty.call(message, "outputOpReturnIndex"))
17602
+ $root.TW.Bitcoin.Proto.OutputIndex.encode(message.outputOpReturnIndex, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
17434
17603
  return writer;
17435
17604
  };
17436
17605
 
@@ -17514,6 +17683,9 @@
17514
17683
  case 13:
17515
17684
  message.outputOpReturn = reader.bytes();
17516
17685
  break;
17686
+ case 26:
17687
+ message.outputOpReturnIndex = $root.TW.Bitcoin.Proto.OutputIndex.decode(reader, reader.uint32());
17688
+ break;
17517
17689
  case 14:
17518
17690
  if (!(message.extraOutputs && message.extraOutputs.length))
17519
17691
  message.extraOutputs = [];
@@ -17616,6 +17788,11 @@
17616
17788
  if (message.outputOpReturn != null && message.hasOwnProperty("outputOpReturn"))
17617
17789
  if (!(message.outputOpReturn && typeof message.outputOpReturn.length === "number" || $util.isString(message.outputOpReturn)))
17618
17790
  return "outputOpReturn: buffer expected";
17791
+ if (message.outputOpReturnIndex != null && message.hasOwnProperty("outputOpReturnIndex")) {
17792
+ var error = $root.TW.Bitcoin.Proto.OutputIndex.verify(message.outputOpReturnIndex);
17793
+ if (error)
17794
+ return "outputOpReturnIndex." + error;
17795
+ }
17619
17796
  if (message.extraOutputs != null && message.hasOwnProperty("extraOutputs")) {
17620
17797
  if (!Array.isArray(message.extraOutputs))
17621
17798
  return "extraOutputs: array expected";
@@ -17737,6 +17914,11 @@
17737
17914
  $util.base64.decode(object.outputOpReturn, message.outputOpReturn = $util.newBuffer($util.base64.length(object.outputOpReturn)), 0);
17738
17915
  else if (object.outputOpReturn.length)
17739
17916
  message.outputOpReturn = object.outputOpReturn;
17917
+ if (object.outputOpReturnIndex != null) {
17918
+ if (typeof object.outputOpReturnIndex !== "object")
17919
+ throw TypeError(".TW.Bitcoin.Proto.SigningInput.outputOpReturnIndex: object expected");
17920
+ message.outputOpReturnIndex = $root.TW.Bitcoin.Proto.OutputIndex.fromObject(object.outputOpReturnIndex);
17921
+ }
17740
17922
  if (object.extraOutputs) {
17741
17923
  if (!Array.isArray(object.extraOutputs))
17742
17924
  throw TypeError(".TW.Bitcoin.Proto.SigningInput.extraOutputs: array expected");
@@ -17828,6 +18010,7 @@
17828
18010
  object.isItBrcOperation = false;
17829
18011
  object.planningV2 = null;
17830
18012
  object.signingV2 = null;
18013
+ object.outputOpReturnIndex = null;
17831
18014
  }
17832
18015
  if (message.hashType != null && message.hasOwnProperty("hashType"))
17833
18016
  object.hashType = message.hashType;
@@ -17896,6 +18079,8 @@
17896
18079
  if (options.oneofs)
17897
18080
  object.dustPolicy = "fixedDustThreshold";
17898
18081
  }
18082
+ if (message.outputOpReturnIndex != null && message.hasOwnProperty("outputOpReturnIndex"))
18083
+ object.outputOpReturnIndex = $root.TW.Bitcoin.Proto.OutputIndex.toObject(message.outputOpReturnIndex, options);
17899
18084
  return object;
17900
18085
  };
17901
18086
 
@@ -17927,6 +18112,7 @@
17927
18112
  * @property {Uint8Array|null} [branchId] TransactionPlan branchId
17928
18113
  * @property {TW.Common.Proto.SigningError|null} [error] TransactionPlan error
17929
18114
  * @property {Uint8Array|null} [outputOpReturn] TransactionPlan outputOpReturn
18115
+ * @property {TW.Bitcoin.Proto.IOutputIndex|null} [outputOpReturnIndex] TransactionPlan outputOpReturnIndex
17930
18116
  * @property {Uint8Array|null} [preblockhash] TransactionPlan preblockhash
17931
18117
  * @property {Long|null} [preblockheight] TransactionPlan preblockheight
17932
18118
  * @property {TW.BitcoinV2.Proto.ITransactionPlan|null} [planningResultV2] TransactionPlan planningResultV2
@@ -18012,6 +18198,14 @@
18012
18198
  */
18013
18199
  TransactionPlan.prototype.outputOpReturn = $util.newBuffer([]);
18014
18200
 
18201
+ /**
18202
+ * TransactionPlan outputOpReturnIndex.
18203
+ * @member {TW.Bitcoin.Proto.IOutputIndex|null|undefined} outputOpReturnIndex
18204
+ * @memberof TW.Bitcoin.Proto.TransactionPlan
18205
+ * @instance
18206
+ */
18207
+ TransactionPlan.prototype.outputOpReturnIndex = null;
18208
+
18015
18209
  /**
18016
18210
  * TransactionPlan preblockhash.
18017
18211
  * @member {Uint8Array} preblockhash
@@ -18083,6 +18277,8 @@
18083
18277
  writer.uint32(/* id 10, wireType 0 =*/80).int64(message.preblockheight);
18084
18278
  if (message.planningResultV2 != null && Object.hasOwnProperty.call(message, "planningResultV2"))
18085
18279
  $root.TW.BitcoinV2.Proto.TransactionPlan.encode(message.planningResultV2, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
18280
+ if (message.outputOpReturnIndex != null && Object.hasOwnProperty.call(message, "outputOpReturnIndex"))
18281
+ $root.TW.Bitcoin.Proto.OutputIndex.encode(message.outputOpReturnIndex, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
18086
18282
  return writer;
18087
18283
  };
18088
18284
 
@@ -18130,6 +18326,9 @@
18130
18326
  case 8:
18131
18327
  message.outputOpReturn = reader.bytes();
18132
18328
  break;
18329
+ case 14:
18330
+ message.outputOpReturnIndex = $root.TW.Bitcoin.Proto.OutputIndex.decode(reader, reader.uint32());
18331
+ break;
18133
18332
  case 9:
18134
18333
  message.preblockhash = reader.bytes();
18135
18334
  break;
@@ -18217,6 +18416,11 @@
18217
18416
  if (message.outputOpReturn != null && message.hasOwnProperty("outputOpReturn"))
18218
18417
  if (!(message.outputOpReturn && typeof message.outputOpReturn.length === "number" || $util.isString(message.outputOpReturn)))
18219
18418
  return "outputOpReturn: buffer expected";
18419
+ if (message.outputOpReturnIndex != null && message.hasOwnProperty("outputOpReturnIndex")) {
18420
+ var error = $root.TW.Bitcoin.Proto.OutputIndex.verify(message.outputOpReturnIndex);
18421
+ if (error)
18422
+ return "outputOpReturnIndex." + error;
18423
+ }
18220
18424
  if (message.preblockhash != null && message.hasOwnProperty("preblockhash"))
18221
18425
  if (!(message.preblockhash && typeof message.preblockhash.length === "number" || $util.isString(message.preblockhash)))
18222
18426
  return "preblockhash: buffer expected";
@@ -18405,6 +18609,11 @@
18405
18609
  $util.base64.decode(object.outputOpReturn, message.outputOpReturn = $util.newBuffer($util.base64.length(object.outputOpReturn)), 0);
18406
18610
  else if (object.outputOpReturn.length)
18407
18611
  message.outputOpReturn = object.outputOpReturn;
18612
+ if (object.outputOpReturnIndex != null) {
18613
+ if (typeof object.outputOpReturnIndex !== "object")
18614
+ throw TypeError(".TW.Bitcoin.Proto.TransactionPlan.outputOpReturnIndex: object expected");
18615
+ message.outputOpReturnIndex = $root.TW.Bitcoin.Proto.OutputIndex.fromObject(object.outputOpReturnIndex);
18616
+ }
18408
18617
  if (object.preblockhash != null)
18409
18618
  if (typeof object.preblockhash === "string")
18410
18619
  $util.base64.decode(object.preblockhash, message.preblockhash = $util.newBuffer($util.base64.length(object.preblockhash)), 0);
@@ -18491,6 +18700,7 @@
18491
18700
  } else
18492
18701
  object.preblockheight = options.longs === String ? "0" : 0;
18493
18702
  object.planningResultV2 = null;
18703
+ object.outputOpReturnIndex = null;
18494
18704
  }
18495
18705
  if (message.amount != null && message.hasOwnProperty("amount"))
18496
18706
  if (typeof message.amount === "number")
@@ -18532,6 +18742,8 @@
18532
18742
  object.preblockheight = options.longs === String ? $util.Long.prototype.toString.call(message.preblockheight) : options.longs === Number ? new $util.LongBits(message.preblockheight.low >>> 0, message.preblockheight.high >>> 0).toNumber() : message.preblockheight;
18533
18743
  if (message.planningResultV2 != null && message.hasOwnProperty("planningResultV2"))
18534
18744
  object.planningResultV2 = $root.TW.BitcoinV2.Proto.TransactionPlan.toObject(message.planningResultV2, options);
18745
+ if (message.outputOpReturnIndex != null && message.hasOwnProperty("outputOpReturnIndex"))
18746
+ object.outputOpReturnIndex = $root.TW.Bitcoin.Proto.OutputIndex.toObject(message.outputOpReturnIndex, options);
18535
18747
  return object;
18536
18748
  };
18537
18749
 
@@ -34,7 +34,7 @@ function Ra(){H++;g.monitorRunDependencies&&g.monitorRunDependencies(H);assert(!
34
34
  function Sa(){return K.startsWith("data:application/octet-stream;base64,")}function ma(a){return a.startsWith("file://")}function M(a){return function(){var b=g.asm;assert(Na,"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 K;K="wallet-core.wasm";if(!Sa()){var Ta=K;K=g.locateFile?g.locateFile(Ta,x):x+Ta}
35
35
  function Ua(){var a=K;try{if(a==K&&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 Va(){if(!qa&&(ea||fa)){if("function"==typeof fetch&&!ma(K))return fetch(K,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+K+"'";return a.arrayBuffer()}).catch(function(){return Ua()});if(ja)return new Promise(function(a,b){ja(K,function(c){a(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return Ua()})}
37
- var Wa,Xa,Ya={2045396:()=>{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";}}},2046118:()=>g.ea()};function Za(a){for(;0<a.length;)a.shift()(g)}
37
+ var Wa,Xa,Ya={2045844:()=>{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";}}},2046566:()=>g.ea()};function Za(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){$a||($a={});$a[a]||($a[a]=1,v&&(a="warning: "+a),y(a))}var $a;function ab(a){this.l=a-24;this.Na=function(b){G[this.l+4>>2]=b};this.Ia=function(b){G[this.l+8>>2]=b};this.Ja=function(){F[this.l>>2]=0};this.Ea=function(){D[this.l+12>>0]=0};this.Ka=function(){D[this.l+13>>0]=0};this.I=function(b,c){this.Da();this.Na(b);this.Ia(c);this.Ja();this.Ea();this.Ka()};this.Da=function(){G[this.l+16>>2]=0}}
39
39
  var bb=0,cb=(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},db=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=cb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},eb=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},fb=
40
40
  a=>{if("/"===a)return"/";a=db(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)};
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "4.0.28",
3
+ "version": "4.0.29",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",