@trustwallet/wallet-core 4.3.4 → 4.3.5

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.
@@ -46238,7 +46238,7 @@ export namespace TW {
46238
46238
  dest?: (string|null);
46239
46239
 
46240
46240
  /** Transfer amount */
46241
- amount?: (Long|null);
46241
+ amount?: (Uint8Array|null);
46242
46242
 
46243
46243
  /** Transfer mode */
46244
46244
  mode?: (number|null);
@@ -46272,7 +46272,7 @@ export namespace TW {
46272
46272
  public dest: string;
46273
46273
 
46274
46274
  /** Transfer amount. */
46275
- public amount: Long;
46275
+ public amount: Uint8Array;
46276
46276
 
46277
46277
  /** Transfer mode. */
46278
46278
  public mode: number;
@@ -46356,7 +46356,7 @@ export namespace TW {
46356
46356
  queryId?: (Long|null);
46357
46357
 
46358
46358
  /** JettonTransfer jettonAmount */
46359
- jettonAmount?: (Long|null);
46359
+ jettonAmount?: (Uint8Array|null);
46360
46360
 
46361
46361
  /** JettonTransfer toOwner */
46362
46362
  toOwner?: (string|null);
@@ -46365,7 +46365,7 @@ export namespace TW {
46365
46365
  responseAddress?: (string|null);
46366
46366
 
46367
46367
  /** JettonTransfer forwardAmount */
46368
- forwardAmount?: (Long|null);
46368
+ forwardAmount?: (Uint8Array|null);
46369
46369
 
46370
46370
  /** JettonTransfer customPayload */
46371
46371
  customPayload?: (string|null);
@@ -46384,7 +46384,7 @@ export namespace TW {
46384
46384
  public queryId: Long;
46385
46385
 
46386
46386
  /** JettonTransfer jettonAmount. */
46387
- public jettonAmount: Long;
46387
+ public jettonAmount: Uint8Array;
46388
46388
 
46389
46389
  /** JettonTransfer toOwner. */
46390
46390
  public toOwner: string;
@@ -46393,7 +46393,7 @@ export namespace TW {
46393
46393
  public responseAddress: string;
46394
46394
 
46395
46395
  /** JettonTransfer forwardAmount. */
46396
- public forwardAmount: Long;
46396
+ public forwardAmount: Uint8Array;
46397
46397
 
46398
46398
  /** JettonTransfer customPayload. */
46399
46399
  public customPayload: string;
@@ -135821,7 +135821,7 @@
135821
135821
  * @memberof TW.TheOpenNetwork.Proto
135822
135822
  * @interface ITransfer
135823
135823
  * @property {string|null} [dest] Transfer dest
135824
- * @property {Long|null} [amount] Transfer amount
135824
+ * @property {Uint8Array|null} [amount] Transfer amount
135825
135825
  * @property {number|null} [mode] Transfer mode
135826
135826
  * @property {string|null} [comment] Transfer comment
135827
135827
  * @property {boolean|null} [bounceable] Transfer bounceable
@@ -135855,11 +135855,11 @@
135855
135855
 
135856
135856
  /**
135857
135857
  * Transfer amount.
135858
- * @member {Long} amount
135858
+ * @member {Uint8Array} amount
135859
135859
  * @memberof TW.TheOpenNetwork.Proto.Transfer
135860
135860
  * @instance
135861
135861
  */
135862
- Transfer.prototype.amount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
135862
+ Transfer.prototype.amount = $util.newBuffer([]);
135863
135863
 
135864
135864
  /**
135865
135865
  * Transfer mode.
@@ -135950,7 +135950,7 @@
135950
135950
  if (message.dest != null && Object.hasOwnProperty.call(message, "dest"))
135951
135951
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.dest);
135952
135952
  if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
135953
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.amount);
135953
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.amount);
135954
135954
  if (message.mode != null && Object.hasOwnProperty.call(message, "mode"))
135955
135955
  writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.mode);
135956
135956
  if (message.comment != null && Object.hasOwnProperty.call(message, "comment"))
@@ -135988,7 +135988,7 @@
135988
135988
  message.dest = reader.string();
135989
135989
  break;
135990
135990
  case 2:
135991
- message.amount = reader.uint64();
135991
+ message.amount = reader.bytes();
135992
135992
  break;
135993
135993
  case 3:
135994
135994
  message.mode = reader.uint32();
@@ -136032,8 +136032,8 @@
136032
136032
  if (!$util.isString(message.dest))
136033
136033
  return "dest: string expected";
136034
136034
  if (message.amount != null && message.hasOwnProperty("amount"))
136035
- if (!$util.isInteger(message.amount) && !(message.amount && $util.isInteger(message.amount.low) && $util.isInteger(message.amount.high)))
136036
- return "amount: integer|Long expected";
136035
+ if (!(message.amount && typeof message.amount.length === "number" || $util.isString(message.amount)))
136036
+ return "amount: buffer expected";
136037
136037
  if (message.mode != null && message.hasOwnProperty("mode"))
136038
136038
  if (!$util.isInteger(message.mode))
136039
136039
  return "mode: integer expected";
@@ -136079,14 +136079,10 @@
136079
136079
  if (object.dest != null)
136080
136080
  message.dest = String(object.dest);
136081
136081
  if (object.amount != null)
136082
- if ($util.Long)
136083
- (message.amount = $util.Long.fromValue(object.amount)).unsigned = true;
136084
- else if (typeof object.amount === "string")
136085
- message.amount = parseInt(object.amount, 10);
136086
- else if (typeof object.amount === "number")
136082
+ if (typeof object.amount === "string")
136083
+ $util.base64.decode(object.amount, message.amount = $util.newBuffer($util.base64.length(object.amount)), 0);
136084
+ else if (object.amount.length)
136087
136085
  message.amount = object.amount;
136088
- else if (typeof object.amount === "object")
136089
- message.amount = new $util.LongBits(object.amount.low >>> 0, object.amount.high >>> 0).toNumber(true);
136090
136086
  if (object.mode != null)
136091
136087
  message.mode = object.mode >>> 0;
136092
136088
  if (object.comment != null)
@@ -136120,11 +136116,13 @@
136120
136116
  var object = {};
136121
136117
  if (options.defaults) {
136122
136118
  object.dest = "";
136123
- if ($util.Long) {
136124
- var long = new $util.Long(0, 0, true);
136125
- object.amount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
136126
- } else
136127
- object.amount = options.longs === String ? "0" : 0;
136119
+ if (options.bytes === String)
136120
+ object.amount = "";
136121
+ else {
136122
+ object.amount = [];
136123
+ if (options.bytes !== Array)
136124
+ object.amount = $util.newBuffer(object.amount);
136125
+ }
136128
136126
  object.mode = 0;
136129
136127
  object.comment = "";
136130
136128
  object.bounceable = false;
@@ -136133,10 +136131,7 @@
136133
136131
  if (message.dest != null && message.hasOwnProperty("dest"))
136134
136132
  object.dest = message.dest;
136135
136133
  if (message.amount != null && message.hasOwnProperty("amount"))
136136
- if (typeof message.amount === "number")
136137
- object.amount = options.longs === String ? String(message.amount) : message.amount;
136138
- else
136139
- object.amount = options.longs === String ? $util.Long.prototype.toString.call(message.amount) : options.longs === Number ? new $util.LongBits(message.amount.low >>> 0, message.amount.high >>> 0).toNumber(true) : message.amount;
136134
+ object.amount = options.bytes === String ? $util.base64.encode(message.amount, 0, message.amount.length) : options.bytes === Array ? Array.prototype.slice.call(message.amount) : message.amount;
136140
136135
  if (message.mode != null && message.hasOwnProperty("mode"))
136141
136136
  object.mode = message.mode;
136142
136137
  if (message.comment != null && message.hasOwnProperty("comment"))
@@ -136179,10 +136174,10 @@
136179
136174
  * @memberof TW.TheOpenNetwork.Proto
136180
136175
  * @interface IJettonTransfer
136181
136176
  * @property {Long|null} [queryId] JettonTransfer queryId
136182
- * @property {Long|null} [jettonAmount] JettonTransfer jettonAmount
136177
+ * @property {Uint8Array|null} [jettonAmount] JettonTransfer jettonAmount
136183
136178
  * @property {string|null} [toOwner] JettonTransfer toOwner
136184
136179
  * @property {string|null} [responseAddress] JettonTransfer responseAddress
136185
- * @property {Long|null} [forwardAmount] JettonTransfer forwardAmount
136180
+ * @property {Uint8Array|null} [forwardAmount] JettonTransfer forwardAmount
136186
136181
  * @property {string|null} [customPayload] JettonTransfer customPayload
136187
136182
  */
136188
136183
 
@@ -136211,11 +136206,11 @@
136211
136206
 
136212
136207
  /**
136213
136208
  * JettonTransfer jettonAmount.
136214
- * @member {Long} jettonAmount
136209
+ * @member {Uint8Array} jettonAmount
136215
136210
  * @memberof TW.TheOpenNetwork.Proto.JettonTransfer
136216
136211
  * @instance
136217
136212
  */
136218
- JettonTransfer.prototype.jettonAmount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
136213
+ JettonTransfer.prototype.jettonAmount = $util.newBuffer([]);
136219
136214
 
136220
136215
  /**
136221
136216
  * JettonTransfer toOwner.
@@ -136235,11 +136230,11 @@
136235
136230
 
136236
136231
  /**
136237
136232
  * JettonTransfer forwardAmount.
136238
- * @member {Long} forwardAmount
136233
+ * @member {Uint8Array} forwardAmount
136239
136234
  * @memberof TW.TheOpenNetwork.Proto.JettonTransfer
136240
136235
  * @instance
136241
136236
  */
136242
- JettonTransfer.prototype.forwardAmount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
136237
+ JettonTransfer.prototype.forwardAmount = $util.newBuffer([]);
136243
136238
 
136244
136239
  /**
136245
136240
  * JettonTransfer customPayload.
@@ -136276,13 +136271,13 @@
136276
136271
  if (message.queryId != null && Object.hasOwnProperty.call(message, "queryId"))
136277
136272
  writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.queryId);
136278
136273
  if (message.jettonAmount != null && Object.hasOwnProperty.call(message, "jettonAmount"))
136279
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.jettonAmount);
136274
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.jettonAmount);
136280
136275
  if (message.toOwner != null && Object.hasOwnProperty.call(message, "toOwner"))
136281
136276
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.toOwner);
136282
136277
  if (message.responseAddress != null && Object.hasOwnProperty.call(message, "responseAddress"))
136283
136278
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.responseAddress);
136284
136279
  if (message.forwardAmount != null && Object.hasOwnProperty.call(message, "forwardAmount"))
136285
- writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.forwardAmount);
136280
+ writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.forwardAmount);
136286
136281
  if (message.customPayload != null && Object.hasOwnProperty.call(message, "customPayload"))
136287
136282
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.customPayload);
136288
136283
  return writer;
@@ -136310,7 +136305,7 @@
136310
136305
  message.queryId = reader.uint64();
136311
136306
  break;
136312
136307
  case 2:
136313
- message.jettonAmount = reader.uint64();
136308
+ message.jettonAmount = reader.bytes();
136314
136309
  break;
136315
136310
  case 3:
136316
136311
  message.toOwner = reader.string();
@@ -136319,7 +136314,7 @@
136319
136314
  message.responseAddress = reader.string();
136320
136315
  break;
136321
136316
  case 5:
136322
- message.forwardAmount = reader.uint64();
136317
+ message.forwardAmount = reader.bytes();
136323
136318
  break;
136324
136319
  case 6:
136325
136320
  message.customPayload = reader.string();
@@ -136347,8 +136342,8 @@
136347
136342
  if (!$util.isInteger(message.queryId) && !(message.queryId && $util.isInteger(message.queryId.low) && $util.isInteger(message.queryId.high)))
136348
136343
  return "queryId: integer|Long expected";
136349
136344
  if (message.jettonAmount != null && message.hasOwnProperty("jettonAmount"))
136350
- if (!$util.isInteger(message.jettonAmount) && !(message.jettonAmount && $util.isInteger(message.jettonAmount.low) && $util.isInteger(message.jettonAmount.high)))
136351
- return "jettonAmount: integer|Long expected";
136345
+ if (!(message.jettonAmount && typeof message.jettonAmount.length === "number" || $util.isString(message.jettonAmount)))
136346
+ return "jettonAmount: buffer expected";
136352
136347
  if (message.toOwner != null && message.hasOwnProperty("toOwner"))
136353
136348
  if (!$util.isString(message.toOwner))
136354
136349
  return "toOwner: string expected";
@@ -136356,8 +136351,8 @@
136356
136351
  if (!$util.isString(message.responseAddress))
136357
136352
  return "responseAddress: string expected";
136358
136353
  if (message.forwardAmount != null && message.hasOwnProperty("forwardAmount"))
136359
- if (!$util.isInteger(message.forwardAmount) && !(message.forwardAmount && $util.isInteger(message.forwardAmount.low) && $util.isInteger(message.forwardAmount.high)))
136360
- return "forwardAmount: integer|Long expected";
136354
+ if (!(message.forwardAmount && typeof message.forwardAmount.length === "number" || $util.isString(message.forwardAmount)))
136355
+ return "forwardAmount: buffer expected";
136361
136356
  if (message.customPayload != null && message.hasOwnProperty("customPayload"))
136362
136357
  if (!$util.isString(message.customPayload))
136363
136358
  return "customPayload: string expected";
@@ -136386,27 +136381,19 @@
136386
136381
  else if (typeof object.queryId === "object")
136387
136382
  message.queryId = new $util.LongBits(object.queryId.low >>> 0, object.queryId.high >>> 0).toNumber(true);
136388
136383
  if (object.jettonAmount != null)
136389
- if ($util.Long)
136390
- (message.jettonAmount = $util.Long.fromValue(object.jettonAmount)).unsigned = true;
136391
- else if (typeof object.jettonAmount === "string")
136392
- message.jettonAmount = parseInt(object.jettonAmount, 10);
136393
- else if (typeof object.jettonAmount === "number")
136384
+ if (typeof object.jettonAmount === "string")
136385
+ $util.base64.decode(object.jettonAmount, message.jettonAmount = $util.newBuffer($util.base64.length(object.jettonAmount)), 0);
136386
+ else if (object.jettonAmount.length)
136394
136387
  message.jettonAmount = object.jettonAmount;
136395
- else if (typeof object.jettonAmount === "object")
136396
- message.jettonAmount = new $util.LongBits(object.jettonAmount.low >>> 0, object.jettonAmount.high >>> 0).toNumber(true);
136397
136388
  if (object.toOwner != null)
136398
136389
  message.toOwner = String(object.toOwner);
136399
136390
  if (object.responseAddress != null)
136400
136391
  message.responseAddress = String(object.responseAddress);
136401
136392
  if (object.forwardAmount != null)
136402
- if ($util.Long)
136403
- (message.forwardAmount = $util.Long.fromValue(object.forwardAmount)).unsigned = true;
136404
- else if (typeof object.forwardAmount === "string")
136405
- message.forwardAmount = parseInt(object.forwardAmount, 10);
136406
- else if (typeof object.forwardAmount === "number")
136393
+ if (typeof object.forwardAmount === "string")
136394
+ $util.base64.decode(object.forwardAmount, message.forwardAmount = $util.newBuffer($util.base64.length(object.forwardAmount)), 0);
136395
+ else if (object.forwardAmount.length)
136407
136396
  message.forwardAmount = object.forwardAmount;
136408
- else if (typeof object.forwardAmount === "object")
136409
- message.forwardAmount = new $util.LongBits(object.forwardAmount.low >>> 0, object.forwardAmount.high >>> 0).toNumber(true);
136410
136397
  if (object.customPayload != null)
136411
136398
  message.customPayload = String(object.customPayload);
136412
136399
  return message;
@@ -136431,18 +136418,22 @@
136431
136418
  object.queryId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
136432
136419
  } else
136433
136420
  object.queryId = options.longs === String ? "0" : 0;
136434
- if ($util.Long) {
136435
- var long = new $util.Long(0, 0, true);
136436
- object.jettonAmount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
136437
- } else
136438
- object.jettonAmount = options.longs === String ? "0" : 0;
136421
+ if (options.bytes === String)
136422
+ object.jettonAmount = "";
136423
+ else {
136424
+ object.jettonAmount = [];
136425
+ if (options.bytes !== Array)
136426
+ object.jettonAmount = $util.newBuffer(object.jettonAmount);
136427
+ }
136439
136428
  object.toOwner = "";
136440
136429
  object.responseAddress = "";
136441
- if ($util.Long) {
136442
- var long = new $util.Long(0, 0, true);
136443
- object.forwardAmount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
136444
- } else
136445
- object.forwardAmount = options.longs === String ? "0" : 0;
136430
+ if (options.bytes === String)
136431
+ object.forwardAmount = "";
136432
+ else {
136433
+ object.forwardAmount = [];
136434
+ if (options.bytes !== Array)
136435
+ object.forwardAmount = $util.newBuffer(object.forwardAmount);
136436
+ }
136446
136437
  object.customPayload = "";
136447
136438
  }
136448
136439
  if (message.queryId != null && message.hasOwnProperty("queryId"))
@@ -136451,19 +136442,13 @@
136451
136442
  else
136452
136443
  object.queryId = options.longs === String ? $util.Long.prototype.toString.call(message.queryId) : options.longs === Number ? new $util.LongBits(message.queryId.low >>> 0, message.queryId.high >>> 0).toNumber(true) : message.queryId;
136453
136444
  if (message.jettonAmount != null && message.hasOwnProperty("jettonAmount"))
136454
- if (typeof message.jettonAmount === "number")
136455
- object.jettonAmount = options.longs === String ? String(message.jettonAmount) : message.jettonAmount;
136456
- else
136457
- object.jettonAmount = options.longs === String ? $util.Long.prototype.toString.call(message.jettonAmount) : options.longs === Number ? new $util.LongBits(message.jettonAmount.low >>> 0, message.jettonAmount.high >>> 0).toNumber(true) : message.jettonAmount;
136445
+ object.jettonAmount = options.bytes === String ? $util.base64.encode(message.jettonAmount, 0, message.jettonAmount.length) : options.bytes === Array ? Array.prototype.slice.call(message.jettonAmount) : message.jettonAmount;
136458
136446
  if (message.toOwner != null && message.hasOwnProperty("toOwner"))
136459
136447
  object.toOwner = message.toOwner;
136460
136448
  if (message.responseAddress != null && message.hasOwnProperty("responseAddress"))
136461
136449
  object.responseAddress = message.responseAddress;
136462
136450
  if (message.forwardAmount != null && message.hasOwnProperty("forwardAmount"))
136463
- if (typeof message.forwardAmount === "number")
136464
- object.forwardAmount = options.longs === String ? String(message.forwardAmount) : message.forwardAmount;
136465
- else
136466
- object.forwardAmount = options.longs === String ? $util.Long.prototype.toString.call(message.forwardAmount) : options.longs === Number ? new $util.LongBits(message.forwardAmount.low >>> 0, message.forwardAmount.high >>> 0).toNumber(true) : message.forwardAmount;
136451
+ object.forwardAmount = options.bytes === String ? $util.base64.encode(message.forwardAmount, 0, message.forwardAmount.length) : options.bytes === Array ? Array.prototype.slice.call(message.forwardAmount) : message.forwardAmount;
136467
136452
  if (message.customPayload != null && message.hasOwnProperty("customPayload"))
136468
136453
  object.customPayload = message.customPayload;
136469
136454
  return object;
@@ -36,7 +36,7 @@ function $a(a,b){var c=M;return sa||"function"!=typeof WebAssembly.instantiateSt
36
36
  function z(a,b){Object.getOwnPropertyDescriptor(g,a)||Object.defineProperty(g,a,{configurable:!0,get:function(){n("Module."+a+" has been replaced with plain "+b+" (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}})}
37
37
  function cb(a){return"FS_createPath"===a||"FS_createDataFile"===a||"FS_createPreloadedFile"===a||"FS_unlink"===a||"addRunDependency"===a||"FS_createLazyFile"===a||"FS_createDevice"===a||"removeRunDependency"===a}(function(a,b){"undefined"!==typeof globalThis&&Object.defineProperty(globalThis,a,{configurable:!0,get:function(){ya("`"+a+"` is not longer defined by emscripten. "+b)}})})("buffer","Please use HEAP8.buffer or wasmMemory.buffer");
38
38
  function db(a){Object.getOwnPropertyDescriptor(g,a)||Object.defineProperty(g,a,{configurable:!0,get:function(){var b="'"+a+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)";cb(a)&&(b+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you");n(b)}})}
39
- var eb={2185716:()=>{if(void 0===g.fa)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.fa=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.fa=a}catch(e){throw"No secure random number generator found";}}},2186438:()=>g.fa()};
39
+ var eb={2185908:()=>{if(void 0===g.fa)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.fa=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.fa=a}catch(e){throw"No secure random number generator found";}}},2186630:()=>g.fa()};
40
40
  function qa(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}function fb(a){for(;0<a.length;)a.shift()(g)}function za(a){assert("number"===typeof a);return"0x"+a.toString(16).padStart(8,"0")}function ya(a){gb||(gb={});gb[a]||(gb[a]=1,w&&(a="warning: "+a),y(a))}var gb,hb=[];function ib(a){var b=hb[a];b||(a>=hb.length&&(hb.length=a+1),hb[a]=b=Ha.get(a));assert(Ha.get(a)==b,"JavaScript-side Wasm function table mirror is out of date!");return b}
41
41
  function jb(a){this.l=a-24;this.Oa=function(b){G[this.l+4>>2]=b};this.Ja=function(b){G[this.l+8>>2]=b};this.Ka=function(){F[this.l>>2]=0};this.Ea=function(){D[this.l+12>>0]=0};this.La=function(){D[this.l+13>>0]=0};this.I=function(b,c){this.Da();this.Oa(b);this.Ja(c);this.Ka();this.Ea();this.La()};this.Da=function(){G[this.l+16>>2]=0}}
42
42
  var kb=0,lb=(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},mb=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=lb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},nb=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},ob=
Binary file
@@ -911,7 +911,7 @@ export class SolanaTransaction {
911
911
  static setComputeUnitPrice(encodedTx: string, price: string): string;
912
912
  static setComputeUnitLimit(encodedTx: string, limit: string): string;
913
913
  static setFeePayer(encodedTx: string, feePayer: string): string;
914
- static addInstruction(encodedTx: string, instruction: string): string;
914
+ static insertInstruction(encodedTx: string, insertAt: number, instruction: string): string;
915
915
  }
916
916
  export class StarkExMessageSigner {
917
917
  static signMessage(privateKey: PrivateKey, message: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "4.3.4",
3
+ "version": "4.3.5",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",