@trustwallet/wallet-core 4.2.13 → 4.2.14

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.
@@ -38755,7 +38755,7 @@ export namespace TW {
38755
38755
  destination?: (string|null);
38756
38756
 
38757
38757
  /** OperationPayment destinationTag */
38758
- destinationTag?: (number|null);
38758
+ destinationTag?: (Long|null);
38759
38759
  }
38760
38760
 
38761
38761
  /** Represents an OperationPayment. */
@@ -38777,7 +38777,7 @@ export namespace TW {
38777
38777
  public destination: string;
38778
38778
 
38779
38779
  /** OperationPayment destinationTag. */
38780
- public destinationTag: number;
38780
+ public destinationTag: Long;
38781
38781
 
38782
38782
  /** OperationPayment amountOneof. */
38783
38783
  public amountOneof?: ("amount"|"currencyAmount");
@@ -38846,13 +38846,13 @@ export namespace TW {
38846
38846
  destination?: (string|null);
38847
38847
 
38848
38848
  /** OperationEscrowCreate destinationTag */
38849
- destinationTag?: (number|null);
38849
+ destinationTag?: (Long|null);
38850
38850
 
38851
38851
  /** OperationEscrowCreate cancelAfter */
38852
- cancelAfter?: (number|null);
38852
+ cancelAfter?: (Long|null);
38853
38853
 
38854
38854
  /** OperationEscrowCreate finishAfter */
38855
- finishAfter?: (number|null);
38855
+ finishAfter?: (Long|null);
38856
38856
 
38857
38857
  /** OperationEscrowCreate condition */
38858
38858
  condition?: (string|null);
@@ -38874,13 +38874,13 @@ export namespace TW {
38874
38874
  public destination: string;
38875
38875
 
38876
38876
  /** OperationEscrowCreate destinationTag. */
38877
- public destinationTag: number;
38877
+ public destinationTag: Long;
38878
38878
 
38879
38879
  /** OperationEscrowCreate cancelAfter. */
38880
- public cancelAfter: number;
38880
+ public cancelAfter: Long;
38881
38881
 
38882
38882
  /** OperationEscrowCreate finishAfter. */
38883
- public finishAfter: number;
38883
+ public finishAfter: Long;
38884
38884
 
38885
38885
  /** OperationEscrowCreate condition. */
38886
38886
  public condition: string;
@@ -39423,7 +39423,7 @@ export namespace TW {
39423
39423
  account?: (string|null);
39424
39424
 
39425
39425
  /** SigningInput flags */
39426
- flags?: (number|null);
39426
+ flags?: (Long|null);
39427
39427
 
39428
39428
  /** SigningInput privateKey */
39429
39429
  privateKey?: (Uint8Array|null);
@@ -39462,7 +39462,7 @@ export namespace TW {
39462
39462
  rawJson?: (string|null);
39463
39463
 
39464
39464
  /** SigningInput sourceTag */
39465
- sourceTag?: (number|null);
39465
+ sourceTag?: (Long|null);
39466
39466
  }
39467
39467
 
39468
39468
  /** Represents a SigningInput. */
@@ -39487,7 +39487,7 @@ export namespace TW {
39487
39487
  public account: string;
39488
39488
 
39489
39489
  /** SigningInput flags. */
39490
- public flags: number;
39490
+ public flags: Long;
39491
39491
 
39492
39492
  /** SigningInput privateKey. */
39493
39493
  public privateKey: Uint8Array;
@@ -39526,7 +39526,7 @@ export namespace TW {
39526
39526
  public rawJson: string;
39527
39527
 
39528
39528
  /** SigningInput sourceTag. */
39529
- public sourceTag: number;
39529
+ public sourceTag: Long;
39530
39530
 
39531
39531
  /** SigningInput operationOneof. */
39532
39532
  public operationOneof?: ("opTrustSet"|"opPayment"|"opNftokenBurn"|"opNftokenCreateOffer"|"opNftokenAcceptOffer"|"opNftokenCancelOffer"|"opEscrowCreate"|"opEscrowCancel"|"opEscrowFinish");
@@ -114086,7 +114086,7 @@
114086
114086
  * @property {Long|null} [amount] OperationPayment amount
114087
114087
  * @property {TW.Ripple.Proto.ICurrencyAmount|null} [currencyAmount] OperationPayment currencyAmount
114088
114088
  * @property {string|null} [destination] OperationPayment destination
114089
- * @property {number|null} [destinationTag] OperationPayment destinationTag
114089
+ * @property {Long|null} [destinationTag] OperationPayment destinationTag
114090
114090
  */
114091
114091
 
114092
114092
  /**
@@ -114130,11 +114130,11 @@
114130
114130
 
114131
114131
  /**
114132
114132
  * OperationPayment destinationTag.
114133
- * @member {number} destinationTag
114133
+ * @member {Long} destinationTag
114134
114134
  * @memberof TW.Ripple.Proto.OperationPayment
114135
114135
  * @instance
114136
114136
  */
114137
- OperationPayment.prototype.destinationTag = 0;
114137
+ OperationPayment.prototype.destinationTag = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
114138
114138
 
114139
114139
  // OneOf field names bound to virtual getters and setters
114140
114140
  var $oneOfFields;
@@ -114181,7 +114181,7 @@
114181
114181
  if (message.destination != null && Object.hasOwnProperty.call(message, "destination"))
114182
114182
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.destination);
114183
114183
  if (message.destinationTag != null && Object.hasOwnProperty.call(message, "destinationTag"))
114184
- writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.destinationTag);
114184
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.destinationTag);
114185
114185
  return writer;
114186
114186
  };
114187
114187
 
@@ -114213,7 +114213,7 @@
114213
114213
  message.destination = reader.string();
114214
114214
  break;
114215
114215
  case 4:
114216
- message.destinationTag = reader.uint32();
114216
+ message.destinationTag = reader.uint64();
114217
114217
  break;
114218
114218
  default:
114219
114219
  reader.skipType(tag & 7);
@@ -114254,8 +114254,8 @@
114254
114254
  if (!$util.isString(message.destination))
114255
114255
  return "destination: string expected";
114256
114256
  if (message.destinationTag != null && message.hasOwnProperty("destinationTag"))
114257
- if (!$util.isInteger(message.destinationTag))
114258
- return "destinationTag: integer expected";
114257
+ if (!$util.isInteger(message.destinationTag) && !(message.destinationTag && $util.isInteger(message.destinationTag.low) && $util.isInteger(message.destinationTag.high)))
114258
+ return "destinationTag: integer|Long expected";
114259
114259
  return null;
114260
114260
  };
114261
114261
 
@@ -114288,7 +114288,14 @@
114288
114288
  if (object.destination != null)
114289
114289
  message.destination = String(object.destination);
114290
114290
  if (object.destinationTag != null)
114291
- message.destinationTag = object.destinationTag >>> 0;
114291
+ if ($util.Long)
114292
+ (message.destinationTag = $util.Long.fromValue(object.destinationTag)).unsigned = true;
114293
+ else if (typeof object.destinationTag === "string")
114294
+ message.destinationTag = parseInt(object.destinationTag, 10);
114295
+ else if (typeof object.destinationTag === "number")
114296
+ message.destinationTag = object.destinationTag;
114297
+ else if (typeof object.destinationTag === "object")
114298
+ message.destinationTag = new $util.LongBits(object.destinationTag.low >>> 0, object.destinationTag.high >>> 0).toNumber(true);
114292
114299
  return message;
114293
114300
  };
114294
114301
 
@@ -114307,7 +114314,11 @@
114307
114314
  var object = {};
114308
114315
  if (options.defaults) {
114309
114316
  object.destination = "";
114310
- object.destinationTag = 0;
114317
+ if ($util.Long) {
114318
+ var long = new $util.Long(0, 0, true);
114319
+ object.destinationTag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
114320
+ } else
114321
+ object.destinationTag = options.longs === String ? "0" : 0;
114311
114322
  }
114312
114323
  if (message.amount != null && message.hasOwnProperty("amount")) {
114313
114324
  if (typeof message.amount === "number")
@@ -114325,7 +114336,10 @@
114325
114336
  if (message.destination != null && message.hasOwnProperty("destination"))
114326
114337
  object.destination = message.destination;
114327
114338
  if (message.destinationTag != null && message.hasOwnProperty("destinationTag"))
114328
- object.destinationTag = message.destinationTag;
114339
+ if (typeof message.destinationTag === "number")
114340
+ object.destinationTag = options.longs === String ? String(message.destinationTag) : message.destinationTag;
114341
+ else
114342
+ object.destinationTag = options.longs === String ? $util.Long.prototype.toString.call(message.destinationTag) : options.longs === Number ? new $util.LongBits(message.destinationTag.low >>> 0, message.destinationTag.high >>> 0).toNumber(true) : message.destinationTag;
114329
114343
  return object;
114330
114344
  };
114331
114345
 
@@ -114351,9 +114365,9 @@
114351
114365
  * @interface IOperationEscrowCreate
114352
114366
  * @property {Long|null} [amount] OperationEscrowCreate amount
114353
114367
  * @property {string|null} [destination] OperationEscrowCreate destination
114354
- * @property {number|null} [destinationTag] OperationEscrowCreate destinationTag
114355
- * @property {number|null} [cancelAfter] OperationEscrowCreate cancelAfter
114356
- * @property {number|null} [finishAfter] OperationEscrowCreate finishAfter
114368
+ * @property {Long|null} [destinationTag] OperationEscrowCreate destinationTag
114369
+ * @property {Long|null} [cancelAfter] OperationEscrowCreate cancelAfter
114370
+ * @property {Long|null} [finishAfter] OperationEscrowCreate finishAfter
114357
114371
  * @property {string|null} [condition] OperationEscrowCreate condition
114358
114372
  */
114359
114373
 
@@ -114390,27 +114404,27 @@
114390
114404
 
114391
114405
  /**
114392
114406
  * OperationEscrowCreate destinationTag.
114393
- * @member {number} destinationTag
114407
+ * @member {Long} destinationTag
114394
114408
  * @memberof TW.Ripple.Proto.OperationEscrowCreate
114395
114409
  * @instance
114396
114410
  */
114397
- OperationEscrowCreate.prototype.destinationTag = 0;
114411
+ OperationEscrowCreate.prototype.destinationTag = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
114398
114412
 
114399
114413
  /**
114400
114414
  * OperationEscrowCreate cancelAfter.
114401
- * @member {number} cancelAfter
114415
+ * @member {Long} cancelAfter
114402
114416
  * @memberof TW.Ripple.Proto.OperationEscrowCreate
114403
114417
  * @instance
114404
114418
  */
114405
- OperationEscrowCreate.prototype.cancelAfter = 0;
114419
+ OperationEscrowCreate.prototype.cancelAfter = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
114406
114420
 
114407
114421
  /**
114408
114422
  * OperationEscrowCreate finishAfter.
114409
- * @member {number} finishAfter
114423
+ * @member {Long} finishAfter
114410
114424
  * @memberof TW.Ripple.Proto.OperationEscrowCreate
114411
114425
  * @instance
114412
114426
  */
114413
- OperationEscrowCreate.prototype.finishAfter = 0;
114427
+ OperationEscrowCreate.prototype.finishAfter = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
114414
114428
 
114415
114429
  /**
114416
114430
  * OperationEscrowCreate condition.
@@ -114449,11 +114463,11 @@
114449
114463
  if (message.destination != null && Object.hasOwnProperty.call(message, "destination"))
114450
114464
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.destination);
114451
114465
  if (message.destinationTag != null && Object.hasOwnProperty.call(message, "destinationTag"))
114452
- writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.destinationTag);
114466
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.destinationTag);
114453
114467
  if (message.cancelAfter != null && Object.hasOwnProperty.call(message, "cancelAfter"))
114454
- writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.cancelAfter);
114468
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.cancelAfter);
114455
114469
  if (message.finishAfter != null && Object.hasOwnProperty.call(message, "finishAfter"))
114456
- writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.finishAfter);
114470
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.finishAfter);
114457
114471
  if (message.condition != null && Object.hasOwnProperty.call(message, "condition"))
114458
114472
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.condition);
114459
114473
  return writer;
@@ -114484,13 +114498,13 @@
114484
114498
  message.destination = reader.string();
114485
114499
  break;
114486
114500
  case 3:
114487
- message.destinationTag = reader.uint32();
114501
+ message.destinationTag = reader.uint64();
114488
114502
  break;
114489
114503
  case 4:
114490
- message.cancelAfter = reader.uint32();
114504
+ message.cancelAfter = reader.uint64();
114491
114505
  break;
114492
114506
  case 5:
114493
- message.finishAfter = reader.uint32();
114507
+ message.finishAfter = reader.uint64();
114494
114508
  break;
114495
114509
  case 6:
114496
114510
  message.condition = reader.string();
@@ -114521,14 +114535,14 @@
114521
114535
  if (!$util.isString(message.destination))
114522
114536
  return "destination: string expected";
114523
114537
  if (message.destinationTag != null && message.hasOwnProperty("destinationTag"))
114524
- if (!$util.isInteger(message.destinationTag))
114525
- return "destinationTag: integer expected";
114538
+ if (!$util.isInteger(message.destinationTag) && !(message.destinationTag && $util.isInteger(message.destinationTag.low) && $util.isInteger(message.destinationTag.high)))
114539
+ return "destinationTag: integer|Long expected";
114526
114540
  if (message.cancelAfter != null && message.hasOwnProperty("cancelAfter"))
114527
- if (!$util.isInteger(message.cancelAfter))
114528
- return "cancelAfter: integer expected";
114541
+ if (!$util.isInteger(message.cancelAfter) && !(message.cancelAfter && $util.isInteger(message.cancelAfter.low) && $util.isInteger(message.cancelAfter.high)))
114542
+ return "cancelAfter: integer|Long expected";
114529
114543
  if (message.finishAfter != null && message.hasOwnProperty("finishAfter"))
114530
- if (!$util.isInteger(message.finishAfter))
114531
- return "finishAfter: integer expected";
114544
+ if (!$util.isInteger(message.finishAfter) && !(message.finishAfter && $util.isInteger(message.finishAfter.low) && $util.isInteger(message.finishAfter.high)))
114545
+ return "finishAfter: integer|Long expected";
114532
114546
  if (message.condition != null && message.hasOwnProperty("condition"))
114533
114547
  if (!$util.isString(message.condition))
114534
114548
  return "condition: string expected";
@@ -114559,11 +114573,32 @@
114559
114573
  if (object.destination != null)
114560
114574
  message.destination = String(object.destination);
114561
114575
  if (object.destinationTag != null)
114562
- message.destinationTag = object.destinationTag >>> 0;
114576
+ if ($util.Long)
114577
+ (message.destinationTag = $util.Long.fromValue(object.destinationTag)).unsigned = true;
114578
+ else if (typeof object.destinationTag === "string")
114579
+ message.destinationTag = parseInt(object.destinationTag, 10);
114580
+ else if (typeof object.destinationTag === "number")
114581
+ message.destinationTag = object.destinationTag;
114582
+ else if (typeof object.destinationTag === "object")
114583
+ message.destinationTag = new $util.LongBits(object.destinationTag.low >>> 0, object.destinationTag.high >>> 0).toNumber(true);
114563
114584
  if (object.cancelAfter != null)
114564
- message.cancelAfter = object.cancelAfter >>> 0;
114585
+ if ($util.Long)
114586
+ (message.cancelAfter = $util.Long.fromValue(object.cancelAfter)).unsigned = true;
114587
+ else if (typeof object.cancelAfter === "string")
114588
+ message.cancelAfter = parseInt(object.cancelAfter, 10);
114589
+ else if (typeof object.cancelAfter === "number")
114590
+ message.cancelAfter = object.cancelAfter;
114591
+ else if (typeof object.cancelAfter === "object")
114592
+ message.cancelAfter = new $util.LongBits(object.cancelAfter.low >>> 0, object.cancelAfter.high >>> 0).toNumber(true);
114565
114593
  if (object.finishAfter != null)
114566
- message.finishAfter = object.finishAfter >>> 0;
114594
+ if ($util.Long)
114595
+ (message.finishAfter = $util.Long.fromValue(object.finishAfter)).unsigned = true;
114596
+ else if (typeof object.finishAfter === "string")
114597
+ message.finishAfter = parseInt(object.finishAfter, 10);
114598
+ else if (typeof object.finishAfter === "number")
114599
+ message.finishAfter = object.finishAfter;
114600
+ else if (typeof object.finishAfter === "object")
114601
+ message.finishAfter = new $util.LongBits(object.finishAfter.low >>> 0, object.finishAfter.high >>> 0).toNumber(true);
114567
114602
  if (object.condition != null)
114568
114603
  message.condition = String(object.condition);
114569
114604
  return message;
@@ -114589,9 +114624,21 @@
114589
114624
  } else
114590
114625
  object.amount = options.longs === String ? "0" : 0;
114591
114626
  object.destination = "";
114592
- object.destinationTag = 0;
114593
- object.cancelAfter = 0;
114594
- object.finishAfter = 0;
114627
+ if ($util.Long) {
114628
+ var long = new $util.Long(0, 0, true);
114629
+ object.destinationTag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
114630
+ } else
114631
+ object.destinationTag = options.longs === String ? "0" : 0;
114632
+ if ($util.Long) {
114633
+ var long = new $util.Long(0, 0, true);
114634
+ object.cancelAfter = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
114635
+ } else
114636
+ object.cancelAfter = options.longs === String ? "0" : 0;
114637
+ if ($util.Long) {
114638
+ var long = new $util.Long(0, 0, true);
114639
+ object.finishAfter = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
114640
+ } else
114641
+ object.finishAfter = options.longs === String ? "0" : 0;
114595
114642
  object.condition = "";
114596
114643
  }
114597
114644
  if (message.amount != null && message.hasOwnProperty("amount"))
@@ -114602,11 +114649,20 @@
114602
114649
  if (message.destination != null && message.hasOwnProperty("destination"))
114603
114650
  object.destination = message.destination;
114604
114651
  if (message.destinationTag != null && message.hasOwnProperty("destinationTag"))
114605
- object.destinationTag = message.destinationTag;
114652
+ if (typeof message.destinationTag === "number")
114653
+ object.destinationTag = options.longs === String ? String(message.destinationTag) : message.destinationTag;
114654
+ else
114655
+ object.destinationTag = options.longs === String ? $util.Long.prototype.toString.call(message.destinationTag) : options.longs === Number ? new $util.LongBits(message.destinationTag.low >>> 0, message.destinationTag.high >>> 0).toNumber(true) : message.destinationTag;
114606
114656
  if (message.cancelAfter != null && message.hasOwnProperty("cancelAfter"))
114607
- object.cancelAfter = message.cancelAfter;
114657
+ if (typeof message.cancelAfter === "number")
114658
+ object.cancelAfter = options.longs === String ? String(message.cancelAfter) : message.cancelAfter;
114659
+ else
114660
+ object.cancelAfter = options.longs === String ? $util.Long.prototype.toString.call(message.cancelAfter) : options.longs === Number ? new $util.LongBits(message.cancelAfter.low >>> 0, message.cancelAfter.high >>> 0).toNumber(true) : message.cancelAfter;
114608
114661
  if (message.finishAfter != null && message.hasOwnProperty("finishAfter"))
114609
- object.finishAfter = message.finishAfter;
114662
+ if (typeof message.finishAfter === "number")
114663
+ object.finishAfter = options.longs === String ? String(message.finishAfter) : message.finishAfter;
114664
+ else
114665
+ object.finishAfter = options.longs === String ? $util.Long.prototype.toString.call(message.finishAfter) : options.longs === Number ? new $util.LongBits(message.finishAfter.low >>> 0, message.finishAfter.high >>> 0).toNumber(true) : message.finishAfter;
114610
114666
  if (message.condition != null && message.hasOwnProperty("condition"))
114611
114667
  object.condition = message.condition;
114612
114668
  return object;
@@ -115713,7 +115769,7 @@
115713
115769
  * @property {number|null} [sequence] SigningInput sequence
115714
115770
  * @property {number|null} [lastLedgerSequence] SigningInput lastLedgerSequence
115715
115771
  * @property {string|null} [account] SigningInput account
115716
- * @property {number|null} [flags] SigningInput flags
115772
+ * @property {Long|null} [flags] SigningInput flags
115717
115773
  * @property {Uint8Array|null} [privateKey] SigningInput privateKey
115718
115774
  * @property {TW.Ripple.Proto.IOperationTrustSet|null} [opTrustSet] SigningInput opTrustSet
115719
115775
  * @property {TW.Ripple.Proto.IOperationPayment|null} [opPayment] SigningInput opPayment
@@ -115726,7 +115782,7 @@
115726
115782
  * @property {TW.Ripple.Proto.IOperationEscrowFinish|null} [opEscrowFinish] SigningInput opEscrowFinish
115727
115783
  * @property {Uint8Array|null} [publicKey] SigningInput publicKey
115728
115784
  * @property {string|null} [rawJson] SigningInput rawJson
115729
- * @property {number|null} [sourceTag] SigningInput sourceTag
115785
+ * @property {Long|null} [sourceTag] SigningInput sourceTag
115730
115786
  */
115731
115787
 
115732
115788
  /**
@@ -115778,11 +115834,11 @@
115778
115834
 
115779
115835
  /**
115780
115836
  * SigningInput flags.
115781
- * @member {number} flags
115837
+ * @member {Long} flags
115782
115838
  * @memberof TW.Ripple.Proto.SigningInput
115783
115839
  * @instance
115784
115840
  */
115785
- SigningInput.prototype.flags = 0;
115841
+ SigningInput.prototype.flags = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
115786
115842
 
115787
115843
  /**
115788
115844
  * SigningInput privateKey.
@@ -115882,11 +115938,11 @@
115882
115938
 
115883
115939
  /**
115884
115940
  * SigningInput sourceTag.
115885
- * @member {number} sourceTag
115941
+ * @member {Long} sourceTag
115886
115942
  * @memberof TW.Ripple.Proto.SigningInput
115887
115943
  * @instance
115888
115944
  */
115889
- SigningInput.prototype.sourceTag = 0;
115945
+ SigningInput.prototype.sourceTag = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
115890
115946
 
115891
115947
  // OneOf field names bound to virtual getters and setters
115892
115948
  var $oneOfFields;
@@ -115935,7 +115991,7 @@
115935
115991
  if (message.account != null && Object.hasOwnProperty.call(message, "account"))
115936
115992
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.account);
115937
115993
  if (message.flags != null && Object.hasOwnProperty.call(message, "flags"))
115938
- writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.flags);
115994
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.flags);
115939
115995
  if (message.privateKey != null && Object.hasOwnProperty.call(message, "privateKey"))
115940
115996
  writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.privateKey);
115941
115997
  if (message.opTrustSet != null && Object.hasOwnProperty.call(message, "opTrustSet"))
@@ -115961,7 +116017,7 @@
115961
116017
  if (message.rawJson != null && Object.hasOwnProperty.call(message, "rawJson"))
115962
116018
  writer.uint32(/* id 20, wireType 2 =*/162).string(message.rawJson);
115963
116019
  if (message.sourceTag != null && Object.hasOwnProperty.call(message, "sourceTag"))
115964
- writer.uint32(/* id 25, wireType 0 =*/200).uint32(message.sourceTag);
116020
+ writer.uint32(/* id 25, wireType 0 =*/200).uint64(message.sourceTag);
115965
116021
  return writer;
115966
116022
  };
115967
116023
 
@@ -115996,7 +116052,7 @@
115996
116052
  message.account = reader.string();
115997
116053
  break;
115998
116054
  case 5:
115999
- message.flags = reader.uint32();
116055
+ message.flags = reader.uint64();
116000
116056
  break;
116001
116057
  case 6:
116002
116058
  message.privateKey = reader.bytes();
@@ -116035,7 +116091,7 @@
116035
116091
  message.rawJson = reader.string();
116036
116092
  break;
116037
116093
  case 25:
116038
- message.sourceTag = reader.uint32();
116094
+ message.sourceTag = reader.uint64();
116039
116095
  break;
116040
116096
  default:
116041
116097
  reader.skipType(tag & 7);
@@ -116070,8 +116126,8 @@
116070
116126
  if (!$util.isString(message.account))
116071
116127
  return "account: string expected";
116072
116128
  if (message.flags != null && message.hasOwnProperty("flags"))
116073
- if (!$util.isInteger(message.flags))
116074
- return "flags: integer expected";
116129
+ if (!$util.isInteger(message.flags) && !(message.flags && $util.isInteger(message.flags.low) && $util.isInteger(message.flags.high)))
116130
+ return "flags: integer|Long expected";
116075
116131
  if (message.privateKey != null && message.hasOwnProperty("privateKey"))
116076
116132
  if (!(message.privateKey && typeof message.privateKey.length === "number" || $util.isString(message.privateKey)))
116077
116133
  return "privateKey: buffer expected";
@@ -116170,8 +116226,8 @@
116170
116226
  if (!$util.isString(message.rawJson))
116171
116227
  return "rawJson: string expected";
116172
116228
  if (message.sourceTag != null && message.hasOwnProperty("sourceTag"))
116173
- if (!$util.isInteger(message.sourceTag))
116174
- return "sourceTag: integer expected";
116229
+ if (!$util.isInteger(message.sourceTag) && !(message.sourceTag && $util.isInteger(message.sourceTag.low) && $util.isInteger(message.sourceTag.high)))
116230
+ return "sourceTag: integer|Long expected";
116175
116231
  return null;
116176
116232
  };
116177
116233
 
@@ -116203,7 +116259,14 @@
116203
116259
  if (object.account != null)
116204
116260
  message.account = String(object.account);
116205
116261
  if (object.flags != null)
116206
- message.flags = object.flags >>> 0;
116262
+ if ($util.Long)
116263
+ (message.flags = $util.Long.fromValue(object.flags)).unsigned = true;
116264
+ else if (typeof object.flags === "string")
116265
+ message.flags = parseInt(object.flags, 10);
116266
+ else if (typeof object.flags === "number")
116267
+ message.flags = object.flags;
116268
+ else if (typeof object.flags === "object")
116269
+ message.flags = new $util.LongBits(object.flags.low >>> 0, object.flags.high >>> 0).toNumber(true);
116207
116270
  if (object.privateKey != null)
116208
116271
  if (typeof object.privateKey === "string")
116209
116272
  $util.base64.decode(object.privateKey, message.privateKey = $util.newBuffer($util.base64.length(object.privateKey)), 0);
@@ -116262,7 +116325,14 @@
116262
116325
  if (object.rawJson != null)
116263
116326
  message.rawJson = String(object.rawJson);
116264
116327
  if (object.sourceTag != null)
116265
- message.sourceTag = object.sourceTag >>> 0;
116328
+ if ($util.Long)
116329
+ (message.sourceTag = $util.Long.fromValue(object.sourceTag)).unsigned = true;
116330
+ else if (typeof object.sourceTag === "string")
116331
+ message.sourceTag = parseInt(object.sourceTag, 10);
116332
+ else if (typeof object.sourceTag === "number")
116333
+ message.sourceTag = object.sourceTag;
116334
+ else if (typeof object.sourceTag === "object")
116335
+ message.sourceTag = new $util.LongBits(object.sourceTag.low >>> 0, object.sourceTag.high >>> 0).toNumber(true);
116266
116336
  return message;
116267
116337
  };
116268
116338
 
@@ -116288,7 +116358,11 @@
116288
116358
  object.sequence = 0;
116289
116359
  object.lastLedgerSequence = 0;
116290
116360
  object.account = "";
116291
- object.flags = 0;
116361
+ if ($util.Long) {
116362
+ var long = new $util.Long(0, 0, true);
116363
+ object.flags = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
116364
+ } else
116365
+ object.flags = options.longs === String ? "0" : 0;
116292
116366
  if (options.bytes === String)
116293
116367
  object.privateKey = "";
116294
116368
  else {
@@ -116304,7 +116378,11 @@
116304
116378
  object.publicKey = $util.newBuffer(object.publicKey);
116305
116379
  }
116306
116380
  object.rawJson = "";
116307
- object.sourceTag = 0;
116381
+ if ($util.Long) {
116382
+ var long = new $util.Long(0, 0, true);
116383
+ object.sourceTag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
116384
+ } else
116385
+ object.sourceTag = options.longs === String ? "0" : 0;
116308
116386
  }
116309
116387
  if (message.fee != null && message.hasOwnProperty("fee"))
116310
116388
  if (typeof message.fee === "number")
@@ -116318,7 +116396,10 @@
116318
116396
  if (message.account != null && message.hasOwnProperty("account"))
116319
116397
  object.account = message.account;
116320
116398
  if (message.flags != null && message.hasOwnProperty("flags"))
116321
- object.flags = message.flags;
116399
+ if (typeof message.flags === "number")
116400
+ object.flags = options.longs === String ? String(message.flags) : message.flags;
116401
+ else
116402
+ object.flags = options.longs === String ? $util.Long.prototype.toString.call(message.flags) : options.longs === Number ? new $util.LongBits(message.flags.low >>> 0, message.flags.high >>> 0).toNumber(true) : message.flags;
116322
116403
  if (message.privateKey != null && message.hasOwnProperty("privateKey"))
116323
116404
  object.privateKey = options.bytes === String ? $util.base64.encode(message.privateKey, 0, message.privateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.privateKey) : message.privateKey;
116324
116405
  if (message.opTrustSet != null && message.hasOwnProperty("opTrustSet")) {
@@ -116371,7 +116452,10 @@
116371
116452
  if (message.rawJson != null && message.hasOwnProperty("rawJson"))
116372
116453
  object.rawJson = message.rawJson;
116373
116454
  if (message.sourceTag != null && message.hasOwnProperty("sourceTag"))
116374
- object.sourceTag = message.sourceTag;
116455
+ if (typeof message.sourceTag === "number")
116456
+ object.sourceTag = options.longs === String ? String(message.sourceTag) : message.sourceTag;
116457
+ else
116458
+ object.sourceTag = options.longs === String ? $util.Long.prototype.toString.call(message.sourceTag) : options.longs === Number ? new $util.LongBits(message.sourceTag.low >>> 0, message.sourceTag.high >>> 0).toNumber(true) : message.sourceTag;
116375
116459
  return object;
116376
116460
  };
116377
116461
 
@@ -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={2164756:()=>{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";}}},2165478:()=>g.fa()};
39
+ var eb={2164884:()=>{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";}}},2165606:()=>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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "4.2.13",
3
+ "version": "4.2.14",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",