@trustwallet/wallet-core 4.2.7 → 4.2.9

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.
@@ -36366,7 +36366,7 @@ export namespace TW {
36366
36366
  destination?: (string|null);
36367
36367
 
36368
36368
  /** OperationPayment destinationTag */
36369
- destinationTag?: (Long|null);
36369
+ destinationTag?: (number|null);
36370
36370
  }
36371
36371
 
36372
36372
  /** Represents an OperationPayment. */
@@ -36388,7 +36388,7 @@ export namespace TW {
36388
36388
  public destination: string;
36389
36389
 
36390
36390
  /** OperationPayment destinationTag. */
36391
- public destinationTag: Long;
36391
+ public destinationTag: number;
36392
36392
 
36393
36393
  /** OperationPayment amountOneof. */
36394
36394
  public amountOneof?: ("amount"|"currencyAmount");
@@ -36457,13 +36457,13 @@ export namespace TW {
36457
36457
  destination?: (string|null);
36458
36458
 
36459
36459
  /** OperationEscrowCreate destinationTag */
36460
- destinationTag?: (Long|null);
36460
+ destinationTag?: (number|null);
36461
36461
 
36462
36462
  /** OperationEscrowCreate cancelAfter */
36463
- cancelAfter?: (Long|null);
36463
+ cancelAfter?: (number|null);
36464
36464
 
36465
36465
  /** OperationEscrowCreate finishAfter */
36466
- finishAfter?: (Long|null);
36466
+ finishAfter?: (number|null);
36467
36467
 
36468
36468
  /** OperationEscrowCreate condition */
36469
36469
  condition?: (string|null);
@@ -36485,13 +36485,13 @@ export namespace TW {
36485
36485
  public destination: string;
36486
36486
 
36487
36487
  /** OperationEscrowCreate destinationTag. */
36488
- public destinationTag: Long;
36488
+ public destinationTag: number;
36489
36489
 
36490
36490
  /** OperationEscrowCreate cancelAfter. */
36491
- public cancelAfter: Long;
36491
+ public cancelAfter: number;
36492
36492
 
36493
36493
  /** OperationEscrowCreate finishAfter. */
36494
- public finishAfter: Long;
36494
+ public finishAfter: number;
36495
36495
 
36496
36496
  /** OperationEscrowCreate condition. */
36497
36497
  public condition: string;
@@ -36724,7 +36724,7 @@ export namespace TW {
36724
36724
  interface IOperationNFTokenBurn {
36725
36725
 
36726
36726
  /** OperationNFTokenBurn nftokenId */
36727
- nftokenId?: (Uint8Array|null);
36727
+ nftokenId?: (string|null);
36728
36728
  }
36729
36729
 
36730
36730
  /** Represents an OperationNFTokenBurn. */
@@ -36737,7 +36737,7 @@ export namespace TW {
36737
36737
  constructor(properties?: TW.Ripple.Proto.IOperationNFTokenBurn);
36738
36738
 
36739
36739
  /** OperationNFTokenBurn nftokenId. */
36740
- public nftokenId: Uint8Array;
36740
+ public nftokenId: string;
36741
36741
 
36742
36742
  /**
36743
36743
  * Creates a new OperationNFTokenBurn instance using the specified properties.
@@ -36797,7 +36797,7 @@ export namespace TW {
36797
36797
  interface IOperationNFTokenCreateOffer {
36798
36798
 
36799
36799
  /** OperationNFTokenCreateOffer nftokenId */
36800
- nftokenId?: (Uint8Array|null);
36800
+ nftokenId?: (string|null);
36801
36801
 
36802
36802
  /** OperationNFTokenCreateOffer destination */
36803
36803
  destination?: (string|null);
@@ -36813,7 +36813,7 @@ export namespace TW {
36813
36813
  constructor(properties?: TW.Ripple.Proto.IOperationNFTokenCreateOffer);
36814
36814
 
36815
36815
  /** OperationNFTokenCreateOffer nftokenId. */
36816
- public nftokenId: Uint8Array;
36816
+ public nftokenId: string;
36817
36817
 
36818
36818
  /** OperationNFTokenCreateOffer destination. */
36819
36819
  public destination: string;
@@ -36876,7 +36876,7 @@ export namespace TW {
36876
36876
  interface IOperationNFTokenAcceptOffer {
36877
36877
 
36878
36878
  /** OperationNFTokenAcceptOffer sellOffer */
36879
- sellOffer?: (Uint8Array|null);
36879
+ sellOffer?: (string|null);
36880
36880
  }
36881
36881
 
36882
36882
  /** Represents an OperationNFTokenAcceptOffer. */
@@ -36889,7 +36889,7 @@ export namespace TW {
36889
36889
  constructor(properties?: TW.Ripple.Proto.IOperationNFTokenAcceptOffer);
36890
36890
 
36891
36891
  /** OperationNFTokenAcceptOffer sellOffer. */
36892
- public sellOffer: Uint8Array;
36892
+ public sellOffer: string;
36893
36893
 
36894
36894
  /**
36895
36895
  * Creates a new OperationNFTokenAcceptOffer instance using the specified properties.
@@ -36949,7 +36949,7 @@ export namespace TW {
36949
36949
  interface IOperationNFTokenCancelOffer {
36950
36950
 
36951
36951
  /** OperationNFTokenCancelOffer tokenOffers */
36952
- tokenOffers?: (Uint8Array[]|null);
36952
+ tokenOffers?: (string[]|null);
36953
36953
  }
36954
36954
 
36955
36955
  /** Represents an OperationNFTokenCancelOffer. */
@@ -36962,7 +36962,7 @@ export namespace TW {
36962
36962
  constructor(properties?: TW.Ripple.Proto.IOperationNFTokenCancelOffer);
36963
36963
 
36964
36964
  /** OperationNFTokenCancelOffer tokenOffers. */
36965
- public tokenOffers: Uint8Array[];
36965
+ public tokenOffers: string[];
36966
36966
 
36967
36967
  /**
36968
36968
  * Creates a new OperationNFTokenCancelOffer instance using the specified properties.
@@ -37034,7 +37034,7 @@ export namespace TW {
37034
37034
  account?: (string|null);
37035
37035
 
37036
37036
  /** SigningInput flags */
37037
- flags?: (Long|null);
37037
+ flags?: (number|null);
37038
37038
 
37039
37039
  /** SigningInput privateKey */
37040
37040
  privateKey?: (Uint8Array|null);
@@ -37068,6 +37068,9 @@ export namespace TW {
37068
37068
 
37069
37069
  /** SigningInput publicKey */
37070
37070
  publicKey?: (Uint8Array|null);
37071
+
37072
+ /** SigningInput sourceTag */
37073
+ sourceTag?: (number|null);
37071
37074
  }
37072
37075
 
37073
37076
  /** Represents a SigningInput. */
@@ -37092,7 +37095,7 @@ export namespace TW {
37092
37095
  public account: string;
37093
37096
 
37094
37097
  /** SigningInput flags. */
37095
- public flags: Long;
37098
+ public flags: number;
37096
37099
 
37097
37100
  /** SigningInput privateKey. */
37098
37101
  public privateKey: Uint8Array;
@@ -37127,6 +37130,9 @@ export namespace TW {
37127
37130
  /** SigningInput publicKey. */
37128
37131
  public publicKey: Uint8Array;
37129
37132
 
37133
+ /** SigningInput sourceTag. */
37134
+ public sourceTag: number;
37135
+
37130
37136
  /** SigningInput operationOneof. */
37131
37137
  public operationOneof?: ("opTrustSet"|"opPayment"|"opNftokenBurn"|"opNftokenCreateOffer"|"opNftokenAcceptOffer"|"opNftokenCancelOffer"|"opEscrowCreate"|"opEscrowCancel"|"opEscrowFinish");
37132
37138
 
@@ -107507,7 +107507,7 @@
107507
107507
  * @property {Long|null} [amount] OperationPayment amount
107508
107508
  * @property {TW.Ripple.Proto.ICurrencyAmount|null} [currencyAmount] OperationPayment currencyAmount
107509
107509
  * @property {string|null} [destination] OperationPayment destination
107510
- * @property {Long|null} [destinationTag] OperationPayment destinationTag
107510
+ * @property {number|null} [destinationTag] OperationPayment destinationTag
107511
107511
  */
107512
107512
 
107513
107513
  /**
@@ -107551,11 +107551,11 @@
107551
107551
 
107552
107552
  /**
107553
107553
  * OperationPayment destinationTag.
107554
- * @member {Long} destinationTag
107554
+ * @member {number} destinationTag
107555
107555
  * @memberof TW.Ripple.Proto.OperationPayment
107556
107556
  * @instance
107557
107557
  */
107558
- OperationPayment.prototype.destinationTag = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
107558
+ OperationPayment.prototype.destinationTag = 0;
107559
107559
 
107560
107560
  // OneOf field names bound to virtual getters and setters
107561
107561
  var $oneOfFields;
@@ -107602,7 +107602,7 @@
107602
107602
  if (message.destination != null && Object.hasOwnProperty.call(message, "destination"))
107603
107603
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.destination);
107604
107604
  if (message.destinationTag != null && Object.hasOwnProperty.call(message, "destinationTag"))
107605
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.destinationTag);
107605
+ writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.destinationTag);
107606
107606
  return writer;
107607
107607
  };
107608
107608
 
@@ -107634,7 +107634,7 @@
107634
107634
  message.destination = reader.string();
107635
107635
  break;
107636
107636
  case 4:
107637
- message.destinationTag = reader.int64();
107637
+ message.destinationTag = reader.uint32();
107638
107638
  break;
107639
107639
  default:
107640
107640
  reader.skipType(tag & 7);
@@ -107675,8 +107675,8 @@
107675
107675
  if (!$util.isString(message.destination))
107676
107676
  return "destination: string expected";
107677
107677
  if (message.destinationTag != null && message.hasOwnProperty("destinationTag"))
107678
- if (!$util.isInteger(message.destinationTag) && !(message.destinationTag && $util.isInteger(message.destinationTag.low) && $util.isInteger(message.destinationTag.high)))
107679
- return "destinationTag: integer|Long expected";
107678
+ if (!$util.isInteger(message.destinationTag))
107679
+ return "destinationTag: integer expected";
107680
107680
  return null;
107681
107681
  };
107682
107682
 
@@ -107709,14 +107709,7 @@
107709
107709
  if (object.destination != null)
107710
107710
  message.destination = String(object.destination);
107711
107711
  if (object.destinationTag != null)
107712
- if ($util.Long)
107713
- (message.destinationTag = $util.Long.fromValue(object.destinationTag)).unsigned = false;
107714
- else if (typeof object.destinationTag === "string")
107715
- message.destinationTag = parseInt(object.destinationTag, 10);
107716
- else if (typeof object.destinationTag === "number")
107717
- message.destinationTag = object.destinationTag;
107718
- else if (typeof object.destinationTag === "object")
107719
- message.destinationTag = new $util.LongBits(object.destinationTag.low >>> 0, object.destinationTag.high >>> 0).toNumber();
107712
+ message.destinationTag = object.destinationTag >>> 0;
107720
107713
  return message;
107721
107714
  };
107722
107715
 
@@ -107735,11 +107728,7 @@
107735
107728
  var object = {};
107736
107729
  if (options.defaults) {
107737
107730
  object.destination = "";
107738
- if ($util.Long) {
107739
- var long = new $util.Long(0, 0, false);
107740
- object.destinationTag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
107741
- } else
107742
- object.destinationTag = options.longs === String ? "0" : 0;
107731
+ object.destinationTag = 0;
107743
107732
  }
107744
107733
  if (message.amount != null && message.hasOwnProperty("amount")) {
107745
107734
  if (typeof message.amount === "number")
@@ -107757,10 +107746,7 @@
107757
107746
  if (message.destination != null && message.hasOwnProperty("destination"))
107758
107747
  object.destination = message.destination;
107759
107748
  if (message.destinationTag != null && message.hasOwnProperty("destinationTag"))
107760
- if (typeof message.destinationTag === "number")
107761
- object.destinationTag = options.longs === String ? String(message.destinationTag) : message.destinationTag;
107762
- else
107763
- 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() : message.destinationTag;
107749
+ object.destinationTag = message.destinationTag;
107764
107750
  return object;
107765
107751
  };
107766
107752
 
@@ -107786,9 +107772,9 @@
107786
107772
  * @interface IOperationEscrowCreate
107787
107773
  * @property {Long|null} [amount] OperationEscrowCreate amount
107788
107774
  * @property {string|null} [destination] OperationEscrowCreate destination
107789
- * @property {Long|null} [destinationTag] OperationEscrowCreate destinationTag
107790
- * @property {Long|null} [cancelAfter] OperationEscrowCreate cancelAfter
107791
- * @property {Long|null} [finishAfter] OperationEscrowCreate finishAfter
107775
+ * @property {number|null} [destinationTag] OperationEscrowCreate destinationTag
107776
+ * @property {number|null} [cancelAfter] OperationEscrowCreate cancelAfter
107777
+ * @property {number|null} [finishAfter] OperationEscrowCreate finishAfter
107792
107778
  * @property {string|null} [condition] OperationEscrowCreate condition
107793
107779
  */
107794
107780
 
@@ -107825,27 +107811,27 @@
107825
107811
 
107826
107812
  /**
107827
107813
  * OperationEscrowCreate destinationTag.
107828
- * @member {Long} destinationTag
107814
+ * @member {number} destinationTag
107829
107815
  * @memberof TW.Ripple.Proto.OperationEscrowCreate
107830
107816
  * @instance
107831
107817
  */
107832
- OperationEscrowCreate.prototype.destinationTag = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
107818
+ OperationEscrowCreate.prototype.destinationTag = 0;
107833
107819
 
107834
107820
  /**
107835
107821
  * OperationEscrowCreate cancelAfter.
107836
- * @member {Long} cancelAfter
107822
+ * @member {number} cancelAfter
107837
107823
  * @memberof TW.Ripple.Proto.OperationEscrowCreate
107838
107824
  * @instance
107839
107825
  */
107840
- OperationEscrowCreate.prototype.cancelAfter = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
107826
+ OperationEscrowCreate.prototype.cancelAfter = 0;
107841
107827
 
107842
107828
  /**
107843
107829
  * OperationEscrowCreate finishAfter.
107844
- * @member {Long} finishAfter
107830
+ * @member {number} finishAfter
107845
107831
  * @memberof TW.Ripple.Proto.OperationEscrowCreate
107846
107832
  * @instance
107847
107833
  */
107848
- OperationEscrowCreate.prototype.finishAfter = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
107834
+ OperationEscrowCreate.prototype.finishAfter = 0;
107849
107835
 
107850
107836
  /**
107851
107837
  * OperationEscrowCreate condition.
@@ -107884,11 +107870,11 @@
107884
107870
  if (message.destination != null && Object.hasOwnProperty.call(message, "destination"))
107885
107871
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.destination);
107886
107872
  if (message.destinationTag != null && Object.hasOwnProperty.call(message, "destinationTag"))
107887
- writer.uint32(/* id 3, wireType 0 =*/24).int64(message.destinationTag);
107873
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.destinationTag);
107888
107874
  if (message.cancelAfter != null && Object.hasOwnProperty.call(message, "cancelAfter"))
107889
- writer.uint32(/* id 4, wireType 0 =*/32).int64(message.cancelAfter);
107875
+ writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.cancelAfter);
107890
107876
  if (message.finishAfter != null && Object.hasOwnProperty.call(message, "finishAfter"))
107891
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.finishAfter);
107877
+ writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.finishAfter);
107892
107878
  if (message.condition != null && Object.hasOwnProperty.call(message, "condition"))
107893
107879
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.condition);
107894
107880
  return writer;
@@ -107919,13 +107905,13 @@
107919
107905
  message.destination = reader.string();
107920
107906
  break;
107921
107907
  case 3:
107922
- message.destinationTag = reader.int64();
107908
+ message.destinationTag = reader.uint32();
107923
107909
  break;
107924
107910
  case 4:
107925
- message.cancelAfter = reader.int64();
107911
+ message.cancelAfter = reader.uint32();
107926
107912
  break;
107927
107913
  case 5:
107928
- message.finishAfter = reader.int64();
107914
+ message.finishAfter = reader.uint32();
107929
107915
  break;
107930
107916
  case 6:
107931
107917
  message.condition = reader.string();
@@ -107956,14 +107942,14 @@
107956
107942
  if (!$util.isString(message.destination))
107957
107943
  return "destination: string expected";
107958
107944
  if (message.destinationTag != null && message.hasOwnProperty("destinationTag"))
107959
- if (!$util.isInteger(message.destinationTag) && !(message.destinationTag && $util.isInteger(message.destinationTag.low) && $util.isInteger(message.destinationTag.high)))
107960
- return "destinationTag: integer|Long expected";
107945
+ if (!$util.isInteger(message.destinationTag))
107946
+ return "destinationTag: integer expected";
107961
107947
  if (message.cancelAfter != null && message.hasOwnProperty("cancelAfter"))
107962
- if (!$util.isInteger(message.cancelAfter) && !(message.cancelAfter && $util.isInteger(message.cancelAfter.low) && $util.isInteger(message.cancelAfter.high)))
107963
- return "cancelAfter: integer|Long expected";
107948
+ if (!$util.isInteger(message.cancelAfter))
107949
+ return "cancelAfter: integer expected";
107964
107950
  if (message.finishAfter != null && message.hasOwnProperty("finishAfter"))
107965
- if (!$util.isInteger(message.finishAfter) && !(message.finishAfter && $util.isInteger(message.finishAfter.low) && $util.isInteger(message.finishAfter.high)))
107966
- return "finishAfter: integer|Long expected";
107951
+ if (!$util.isInteger(message.finishAfter))
107952
+ return "finishAfter: integer expected";
107967
107953
  if (message.condition != null && message.hasOwnProperty("condition"))
107968
107954
  if (!$util.isString(message.condition))
107969
107955
  return "condition: string expected";
@@ -107994,32 +107980,11 @@
107994
107980
  if (object.destination != null)
107995
107981
  message.destination = String(object.destination);
107996
107982
  if (object.destinationTag != null)
107997
- if ($util.Long)
107998
- (message.destinationTag = $util.Long.fromValue(object.destinationTag)).unsigned = false;
107999
- else if (typeof object.destinationTag === "string")
108000
- message.destinationTag = parseInt(object.destinationTag, 10);
108001
- else if (typeof object.destinationTag === "number")
108002
- message.destinationTag = object.destinationTag;
108003
- else if (typeof object.destinationTag === "object")
108004
- message.destinationTag = new $util.LongBits(object.destinationTag.low >>> 0, object.destinationTag.high >>> 0).toNumber();
107983
+ message.destinationTag = object.destinationTag >>> 0;
108005
107984
  if (object.cancelAfter != null)
108006
- if ($util.Long)
108007
- (message.cancelAfter = $util.Long.fromValue(object.cancelAfter)).unsigned = false;
108008
- else if (typeof object.cancelAfter === "string")
108009
- message.cancelAfter = parseInt(object.cancelAfter, 10);
108010
- else if (typeof object.cancelAfter === "number")
108011
- message.cancelAfter = object.cancelAfter;
108012
- else if (typeof object.cancelAfter === "object")
108013
- message.cancelAfter = new $util.LongBits(object.cancelAfter.low >>> 0, object.cancelAfter.high >>> 0).toNumber();
107985
+ message.cancelAfter = object.cancelAfter >>> 0;
108014
107986
  if (object.finishAfter != null)
108015
- if ($util.Long)
108016
- (message.finishAfter = $util.Long.fromValue(object.finishAfter)).unsigned = false;
108017
- else if (typeof object.finishAfter === "string")
108018
- message.finishAfter = parseInt(object.finishAfter, 10);
108019
- else if (typeof object.finishAfter === "number")
108020
- message.finishAfter = object.finishAfter;
108021
- else if (typeof object.finishAfter === "object")
108022
- message.finishAfter = new $util.LongBits(object.finishAfter.low >>> 0, object.finishAfter.high >>> 0).toNumber();
107987
+ message.finishAfter = object.finishAfter >>> 0;
108023
107988
  if (object.condition != null)
108024
107989
  message.condition = String(object.condition);
108025
107990
  return message;
@@ -108045,21 +108010,9 @@
108045
108010
  } else
108046
108011
  object.amount = options.longs === String ? "0" : 0;
108047
108012
  object.destination = "";
108048
- if ($util.Long) {
108049
- var long = new $util.Long(0, 0, false);
108050
- object.destinationTag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
108051
- } else
108052
- object.destinationTag = options.longs === String ? "0" : 0;
108053
- if ($util.Long) {
108054
- var long = new $util.Long(0, 0, false);
108055
- object.cancelAfter = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
108056
- } else
108057
- object.cancelAfter = options.longs === String ? "0" : 0;
108058
- if ($util.Long) {
108059
- var long = new $util.Long(0, 0, false);
108060
- object.finishAfter = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
108061
- } else
108062
- object.finishAfter = options.longs === String ? "0" : 0;
108013
+ object.destinationTag = 0;
108014
+ object.cancelAfter = 0;
108015
+ object.finishAfter = 0;
108063
108016
  object.condition = "";
108064
108017
  }
108065
108018
  if (message.amount != null && message.hasOwnProperty("amount"))
@@ -108070,20 +108023,11 @@
108070
108023
  if (message.destination != null && message.hasOwnProperty("destination"))
108071
108024
  object.destination = message.destination;
108072
108025
  if (message.destinationTag != null && message.hasOwnProperty("destinationTag"))
108073
- if (typeof message.destinationTag === "number")
108074
- object.destinationTag = options.longs === String ? String(message.destinationTag) : message.destinationTag;
108075
- else
108076
- 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() : message.destinationTag;
108026
+ object.destinationTag = message.destinationTag;
108077
108027
  if (message.cancelAfter != null && message.hasOwnProperty("cancelAfter"))
108078
- if (typeof message.cancelAfter === "number")
108079
- object.cancelAfter = options.longs === String ? String(message.cancelAfter) : message.cancelAfter;
108080
- else
108081
- 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() : message.cancelAfter;
108028
+ object.cancelAfter = message.cancelAfter;
108082
108029
  if (message.finishAfter != null && message.hasOwnProperty("finishAfter"))
108083
- if (typeof message.finishAfter === "number")
108084
- object.finishAfter = options.longs === String ? String(message.finishAfter) : message.finishAfter;
108085
- else
108086
- 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() : message.finishAfter;
108030
+ object.finishAfter = message.finishAfter;
108087
108031
  if (message.condition != null && message.hasOwnProperty("condition"))
108088
108032
  object.condition = message.condition;
108089
108033
  return object;
@@ -108171,7 +108115,7 @@
108171
108115
  if (message.owner != null && Object.hasOwnProperty.call(message, "owner"))
108172
108116
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.owner);
108173
108117
  if (message.offerSequence != null && Object.hasOwnProperty.call(message, "offerSequence"))
108174
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.offerSequence);
108118
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.offerSequence);
108175
108119
  return writer;
108176
108120
  };
108177
108121
 
@@ -108197,7 +108141,7 @@
108197
108141
  message.owner = reader.string();
108198
108142
  break;
108199
108143
  case 2:
108200
- message.offerSequence = reader.int32();
108144
+ message.offerSequence = reader.uint32();
108201
108145
  break;
108202
108146
  default:
108203
108147
  reader.skipType(tag & 7);
@@ -108242,7 +108186,7 @@
108242
108186
  if (object.owner != null)
108243
108187
  message.owner = String(object.owner);
108244
108188
  if (object.offerSequence != null)
108245
- message.offerSequence = object.offerSequence | 0;
108189
+ message.offerSequence = object.offerSequence >>> 0;
108246
108190
  return message;
108247
108191
  };
108248
108192
 
@@ -108370,7 +108314,7 @@
108370
108314
  if (message.owner != null && Object.hasOwnProperty.call(message, "owner"))
108371
108315
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.owner);
108372
108316
  if (message.offerSequence != null && Object.hasOwnProperty.call(message, "offerSequence"))
108373
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.offerSequence);
108317
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.offerSequence);
108374
108318
  if (message.condition != null && Object.hasOwnProperty.call(message, "condition"))
108375
108319
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.condition);
108376
108320
  if (message.fulfillment != null && Object.hasOwnProperty.call(message, "fulfillment"))
@@ -108400,7 +108344,7 @@
108400
108344
  message.owner = reader.string();
108401
108345
  break;
108402
108346
  case 2:
108403
- message.offerSequence = reader.int32();
108347
+ message.offerSequence = reader.uint32();
108404
108348
  break;
108405
108349
  case 3:
108406
108350
  message.condition = reader.string();
@@ -108457,7 +108401,7 @@
108457
108401
  if (object.owner != null)
108458
108402
  message.owner = String(object.owner);
108459
108403
  if (object.offerSequence != null)
108460
- message.offerSequence = object.offerSequence | 0;
108404
+ message.offerSequence = object.offerSequence >>> 0;
108461
108405
  if (object.condition != null)
108462
108406
  message.condition = String(object.condition);
108463
108407
  if (object.fulfillment != null)
@@ -108515,7 +108459,7 @@
108515
108459
  * Properties of an OperationNFTokenBurn.
108516
108460
  * @memberof TW.Ripple.Proto
108517
108461
  * @interface IOperationNFTokenBurn
108518
- * @property {Uint8Array|null} [nftokenId] OperationNFTokenBurn nftokenId
108462
+ * @property {string|null} [nftokenId] OperationNFTokenBurn nftokenId
108519
108463
  */
108520
108464
 
108521
108465
  /**
@@ -108535,11 +108479,11 @@
108535
108479
 
108536
108480
  /**
108537
108481
  * OperationNFTokenBurn nftokenId.
108538
- * @member {Uint8Array} nftokenId
108482
+ * @member {string} nftokenId
108539
108483
  * @memberof TW.Ripple.Proto.OperationNFTokenBurn
108540
108484
  * @instance
108541
108485
  */
108542
- OperationNFTokenBurn.prototype.nftokenId = $util.newBuffer([]);
108486
+ OperationNFTokenBurn.prototype.nftokenId = "";
108543
108487
 
108544
108488
  /**
108545
108489
  * Creates a new OperationNFTokenBurn instance using the specified properties.
@@ -108566,7 +108510,7 @@
108566
108510
  if (!writer)
108567
108511
  writer = $Writer.create();
108568
108512
  if (message.nftokenId != null && Object.hasOwnProperty.call(message, "nftokenId"))
108569
- writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.nftokenId);
108513
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.nftokenId);
108570
108514
  return writer;
108571
108515
  };
108572
108516
 
@@ -108589,7 +108533,7 @@
108589
108533
  var tag = reader.uint32();
108590
108534
  switch (tag >>> 3) {
108591
108535
  case 1:
108592
- message.nftokenId = reader.bytes();
108536
+ message.nftokenId = reader.string();
108593
108537
  break;
108594
108538
  default:
108595
108539
  reader.skipType(tag & 7);
@@ -108611,8 +108555,8 @@
108611
108555
  if (typeof message !== "object" || message === null)
108612
108556
  return "object expected";
108613
108557
  if (message.nftokenId != null && message.hasOwnProperty("nftokenId"))
108614
- if (!(message.nftokenId && typeof message.nftokenId.length === "number" || $util.isString(message.nftokenId)))
108615
- return "nftokenId: buffer expected";
108558
+ if (!$util.isString(message.nftokenId))
108559
+ return "nftokenId: string expected";
108616
108560
  return null;
108617
108561
  };
108618
108562
 
@@ -108629,10 +108573,7 @@
108629
108573
  return object;
108630
108574
  var message = new $root.TW.Ripple.Proto.OperationNFTokenBurn();
108631
108575
  if (object.nftokenId != null)
108632
- if (typeof object.nftokenId === "string")
108633
- $util.base64.decode(object.nftokenId, message.nftokenId = $util.newBuffer($util.base64.length(object.nftokenId)), 0);
108634
- else if (object.nftokenId.length)
108635
- message.nftokenId = object.nftokenId;
108576
+ message.nftokenId = String(object.nftokenId);
108636
108577
  return message;
108637
108578
  };
108638
108579
 
@@ -108650,15 +108591,9 @@
108650
108591
  options = {};
108651
108592
  var object = {};
108652
108593
  if (options.defaults)
108653
- if (options.bytes === String)
108654
- object.nftokenId = "";
108655
- else {
108656
- object.nftokenId = [];
108657
- if (options.bytes !== Array)
108658
- object.nftokenId = $util.newBuffer(object.nftokenId);
108659
- }
108594
+ object.nftokenId = "";
108660
108595
  if (message.nftokenId != null && message.hasOwnProperty("nftokenId"))
108661
- object.nftokenId = options.bytes === String ? $util.base64.encode(message.nftokenId, 0, message.nftokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.nftokenId) : message.nftokenId;
108596
+ object.nftokenId = message.nftokenId;
108662
108597
  return object;
108663
108598
  };
108664
108599
 
@@ -108682,7 +108617,7 @@
108682
108617
  * Properties of an OperationNFTokenCreateOffer.
108683
108618
  * @memberof TW.Ripple.Proto
108684
108619
  * @interface IOperationNFTokenCreateOffer
108685
- * @property {Uint8Array|null} [nftokenId] OperationNFTokenCreateOffer nftokenId
108620
+ * @property {string|null} [nftokenId] OperationNFTokenCreateOffer nftokenId
108686
108621
  * @property {string|null} [destination] OperationNFTokenCreateOffer destination
108687
108622
  */
108688
108623
 
@@ -108703,11 +108638,11 @@
108703
108638
 
108704
108639
  /**
108705
108640
  * OperationNFTokenCreateOffer nftokenId.
108706
- * @member {Uint8Array} nftokenId
108641
+ * @member {string} nftokenId
108707
108642
  * @memberof TW.Ripple.Proto.OperationNFTokenCreateOffer
108708
108643
  * @instance
108709
108644
  */
108710
- OperationNFTokenCreateOffer.prototype.nftokenId = $util.newBuffer([]);
108645
+ OperationNFTokenCreateOffer.prototype.nftokenId = "";
108711
108646
 
108712
108647
  /**
108713
108648
  * OperationNFTokenCreateOffer destination.
@@ -108742,7 +108677,7 @@
108742
108677
  if (!writer)
108743
108678
  writer = $Writer.create();
108744
108679
  if (message.nftokenId != null && Object.hasOwnProperty.call(message, "nftokenId"))
108745
- writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.nftokenId);
108680
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.nftokenId);
108746
108681
  if (message.destination != null && Object.hasOwnProperty.call(message, "destination"))
108747
108682
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.destination);
108748
108683
  return writer;
@@ -108767,7 +108702,7 @@
108767
108702
  var tag = reader.uint32();
108768
108703
  switch (tag >>> 3) {
108769
108704
  case 1:
108770
- message.nftokenId = reader.bytes();
108705
+ message.nftokenId = reader.string();
108771
108706
  break;
108772
108707
  case 2:
108773
108708
  message.destination = reader.string();
@@ -108792,8 +108727,8 @@
108792
108727
  if (typeof message !== "object" || message === null)
108793
108728
  return "object expected";
108794
108729
  if (message.nftokenId != null && message.hasOwnProperty("nftokenId"))
108795
- if (!(message.nftokenId && typeof message.nftokenId.length === "number" || $util.isString(message.nftokenId)))
108796
- return "nftokenId: buffer expected";
108730
+ if (!$util.isString(message.nftokenId))
108731
+ return "nftokenId: string expected";
108797
108732
  if (message.destination != null && message.hasOwnProperty("destination"))
108798
108733
  if (!$util.isString(message.destination))
108799
108734
  return "destination: string expected";
@@ -108813,10 +108748,7 @@
108813
108748
  return object;
108814
108749
  var message = new $root.TW.Ripple.Proto.OperationNFTokenCreateOffer();
108815
108750
  if (object.nftokenId != null)
108816
- if (typeof object.nftokenId === "string")
108817
- $util.base64.decode(object.nftokenId, message.nftokenId = $util.newBuffer($util.base64.length(object.nftokenId)), 0);
108818
- else if (object.nftokenId.length)
108819
- message.nftokenId = object.nftokenId;
108751
+ message.nftokenId = String(object.nftokenId);
108820
108752
  if (object.destination != null)
108821
108753
  message.destination = String(object.destination);
108822
108754
  return message;
@@ -108836,17 +108768,11 @@
108836
108768
  options = {};
108837
108769
  var object = {};
108838
108770
  if (options.defaults) {
108839
- if (options.bytes === String)
108840
- object.nftokenId = "";
108841
- else {
108842
- object.nftokenId = [];
108843
- if (options.bytes !== Array)
108844
- object.nftokenId = $util.newBuffer(object.nftokenId);
108845
- }
108771
+ object.nftokenId = "";
108846
108772
  object.destination = "";
108847
108773
  }
108848
108774
  if (message.nftokenId != null && message.hasOwnProperty("nftokenId"))
108849
- object.nftokenId = options.bytes === String ? $util.base64.encode(message.nftokenId, 0, message.nftokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.nftokenId) : message.nftokenId;
108775
+ object.nftokenId = message.nftokenId;
108850
108776
  if (message.destination != null && message.hasOwnProperty("destination"))
108851
108777
  object.destination = message.destination;
108852
108778
  return object;
@@ -108872,7 +108798,7 @@
108872
108798
  * Properties of an OperationNFTokenAcceptOffer.
108873
108799
  * @memberof TW.Ripple.Proto
108874
108800
  * @interface IOperationNFTokenAcceptOffer
108875
- * @property {Uint8Array|null} [sellOffer] OperationNFTokenAcceptOffer sellOffer
108801
+ * @property {string|null} [sellOffer] OperationNFTokenAcceptOffer sellOffer
108876
108802
  */
108877
108803
 
108878
108804
  /**
@@ -108892,11 +108818,11 @@
108892
108818
 
108893
108819
  /**
108894
108820
  * OperationNFTokenAcceptOffer sellOffer.
108895
- * @member {Uint8Array} sellOffer
108821
+ * @member {string} sellOffer
108896
108822
  * @memberof TW.Ripple.Proto.OperationNFTokenAcceptOffer
108897
108823
  * @instance
108898
108824
  */
108899
- OperationNFTokenAcceptOffer.prototype.sellOffer = $util.newBuffer([]);
108825
+ OperationNFTokenAcceptOffer.prototype.sellOffer = "";
108900
108826
 
108901
108827
  /**
108902
108828
  * Creates a new OperationNFTokenAcceptOffer instance using the specified properties.
@@ -108923,7 +108849,7 @@
108923
108849
  if (!writer)
108924
108850
  writer = $Writer.create();
108925
108851
  if (message.sellOffer != null && Object.hasOwnProperty.call(message, "sellOffer"))
108926
- writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sellOffer);
108852
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.sellOffer);
108927
108853
  return writer;
108928
108854
  };
108929
108855
 
@@ -108946,7 +108872,7 @@
108946
108872
  var tag = reader.uint32();
108947
108873
  switch (tag >>> 3) {
108948
108874
  case 1:
108949
- message.sellOffer = reader.bytes();
108875
+ message.sellOffer = reader.string();
108950
108876
  break;
108951
108877
  default:
108952
108878
  reader.skipType(tag & 7);
@@ -108968,8 +108894,8 @@
108968
108894
  if (typeof message !== "object" || message === null)
108969
108895
  return "object expected";
108970
108896
  if (message.sellOffer != null && message.hasOwnProperty("sellOffer"))
108971
- if (!(message.sellOffer && typeof message.sellOffer.length === "number" || $util.isString(message.sellOffer)))
108972
- return "sellOffer: buffer expected";
108897
+ if (!$util.isString(message.sellOffer))
108898
+ return "sellOffer: string expected";
108973
108899
  return null;
108974
108900
  };
108975
108901
 
@@ -108986,10 +108912,7 @@
108986
108912
  return object;
108987
108913
  var message = new $root.TW.Ripple.Proto.OperationNFTokenAcceptOffer();
108988
108914
  if (object.sellOffer != null)
108989
- if (typeof object.sellOffer === "string")
108990
- $util.base64.decode(object.sellOffer, message.sellOffer = $util.newBuffer($util.base64.length(object.sellOffer)), 0);
108991
- else if (object.sellOffer.length)
108992
- message.sellOffer = object.sellOffer;
108915
+ message.sellOffer = String(object.sellOffer);
108993
108916
  return message;
108994
108917
  };
108995
108918
 
@@ -109007,15 +108930,9 @@
109007
108930
  options = {};
109008
108931
  var object = {};
109009
108932
  if (options.defaults)
109010
- if (options.bytes === String)
109011
- object.sellOffer = "";
109012
- else {
109013
- object.sellOffer = [];
109014
- if (options.bytes !== Array)
109015
- object.sellOffer = $util.newBuffer(object.sellOffer);
109016
- }
108933
+ object.sellOffer = "";
109017
108934
  if (message.sellOffer != null && message.hasOwnProperty("sellOffer"))
109018
- object.sellOffer = options.bytes === String ? $util.base64.encode(message.sellOffer, 0, message.sellOffer.length) : options.bytes === Array ? Array.prototype.slice.call(message.sellOffer) : message.sellOffer;
108935
+ object.sellOffer = message.sellOffer;
109019
108936
  return object;
109020
108937
  };
109021
108938
 
@@ -109039,7 +108956,7 @@
109039
108956
  * Properties of an OperationNFTokenCancelOffer.
109040
108957
  * @memberof TW.Ripple.Proto
109041
108958
  * @interface IOperationNFTokenCancelOffer
109042
- * @property {Array.<Uint8Array>|null} [tokenOffers] OperationNFTokenCancelOffer tokenOffers
108959
+ * @property {Array.<string>|null} [tokenOffers] OperationNFTokenCancelOffer tokenOffers
109043
108960
  */
109044
108961
 
109045
108962
  /**
@@ -109060,7 +108977,7 @@
109060
108977
 
109061
108978
  /**
109062
108979
  * OperationNFTokenCancelOffer tokenOffers.
109063
- * @member {Array.<Uint8Array>} tokenOffers
108980
+ * @member {Array.<string>} tokenOffers
109064
108981
  * @memberof TW.Ripple.Proto.OperationNFTokenCancelOffer
109065
108982
  * @instance
109066
108983
  */
@@ -109092,7 +109009,7 @@
109092
109009
  writer = $Writer.create();
109093
109010
  if (message.tokenOffers != null && message.tokenOffers.length)
109094
109011
  for (var i = 0; i < message.tokenOffers.length; ++i)
109095
- writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.tokenOffers[i]);
109012
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.tokenOffers[i]);
109096
109013
  return writer;
109097
109014
  };
109098
109015
 
@@ -109117,7 +109034,7 @@
109117
109034
  case 1:
109118
109035
  if (!(message.tokenOffers && message.tokenOffers.length))
109119
109036
  message.tokenOffers = [];
109120
- message.tokenOffers.push(reader.bytes());
109037
+ message.tokenOffers.push(reader.string());
109121
109038
  break;
109122
109039
  default:
109123
109040
  reader.skipType(tag & 7);
@@ -109142,8 +109059,8 @@
109142
109059
  if (!Array.isArray(message.tokenOffers))
109143
109060
  return "tokenOffers: array expected";
109144
109061
  for (var i = 0; i < message.tokenOffers.length; ++i)
109145
- if (!(message.tokenOffers[i] && typeof message.tokenOffers[i].length === "number" || $util.isString(message.tokenOffers[i])))
109146
- return "tokenOffers: buffer[] expected";
109062
+ if (!$util.isString(message.tokenOffers[i]))
109063
+ return "tokenOffers: string[] expected";
109147
109064
  }
109148
109065
  return null;
109149
109066
  };
@@ -109165,10 +109082,7 @@
109165
109082
  throw TypeError(".TW.Ripple.Proto.OperationNFTokenCancelOffer.tokenOffers: array expected");
109166
109083
  message.tokenOffers = [];
109167
109084
  for (var i = 0; i < object.tokenOffers.length; ++i)
109168
- if (typeof object.tokenOffers[i] === "string")
109169
- $util.base64.decode(object.tokenOffers[i], message.tokenOffers[i] = $util.newBuffer($util.base64.length(object.tokenOffers[i])), 0);
109170
- else if (object.tokenOffers[i].length)
109171
- message.tokenOffers[i] = object.tokenOffers[i];
109085
+ message.tokenOffers[i] = String(object.tokenOffers[i]);
109172
109086
  }
109173
109087
  return message;
109174
109088
  };
@@ -109191,7 +109105,7 @@
109191
109105
  if (message.tokenOffers && message.tokenOffers.length) {
109192
109106
  object.tokenOffers = [];
109193
109107
  for (var j = 0; j < message.tokenOffers.length; ++j)
109194
- object.tokenOffers[j] = options.bytes === String ? $util.base64.encode(message.tokenOffers[j], 0, message.tokenOffers[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenOffers[j]) : message.tokenOffers[j];
109108
+ object.tokenOffers[j] = message.tokenOffers[j];
109195
109109
  }
109196
109110
  return object;
109197
109111
  };
@@ -109220,7 +109134,7 @@
109220
109134
  * @property {number|null} [sequence] SigningInput sequence
109221
109135
  * @property {number|null} [lastLedgerSequence] SigningInput lastLedgerSequence
109222
109136
  * @property {string|null} [account] SigningInput account
109223
- * @property {Long|null} [flags] SigningInput flags
109137
+ * @property {number|null} [flags] SigningInput flags
109224
109138
  * @property {Uint8Array|null} [privateKey] SigningInput privateKey
109225
109139
  * @property {TW.Ripple.Proto.IOperationTrustSet|null} [opTrustSet] SigningInput opTrustSet
109226
109140
  * @property {TW.Ripple.Proto.IOperationPayment|null} [opPayment] SigningInput opPayment
@@ -109232,6 +109146,7 @@
109232
109146
  * @property {TW.Ripple.Proto.IOperationEscrowCancel|null} [opEscrowCancel] SigningInput opEscrowCancel
109233
109147
  * @property {TW.Ripple.Proto.IOperationEscrowFinish|null} [opEscrowFinish] SigningInput opEscrowFinish
109234
109148
  * @property {Uint8Array|null} [publicKey] SigningInput publicKey
109149
+ * @property {number|null} [sourceTag] SigningInput sourceTag
109235
109150
  */
109236
109151
 
109237
109152
  /**
@@ -109283,11 +109198,11 @@
109283
109198
 
109284
109199
  /**
109285
109200
  * SigningInput flags.
109286
- * @member {Long} flags
109201
+ * @member {number} flags
109287
109202
  * @memberof TW.Ripple.Proto.SigningInput
109288
109203
  * @instance
109289
109204
  */
109290
- SigningInput.prototype.flags = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
109205
+ SigningInput.prototype.flags = 0;
109291
109206
 
109292
109207
  /**
109293
109208
  * SigningInput privateKey.
@@ -109377,6 +109292,14 @@
109377
109292
  */
109378
109293
  SigningInput.prototype.publicKey = $util.newBuffer([]);
109379
109294
 
109295
+ /**
109296
+ * SigningInput sourceTag.
109297
+ * @member {number} sourceTag
109298
+ * @memberof TW.Ripple.Proto.SigningInput
109299
+ * @instance
109300
+ */
109301
+ SigningInput.prototype.sourceTag = 0;
109302
+
109380
109303
  // OneOf field names bound to virtual getters and setters
109381
109304
  var $oneOfFields;
109382
109305
 
@@ -109418,13 +109341,13 @@
109418
109341
  if (message.fee != null && Object.hasOwnProperty.call(message, "fee"))
109419
109342
  writer.uint32(/* id 1, wireType 0 =*/8).int64(message.fee);
109420
109343
  if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence"))
109421
- writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sequence);
109344
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.sequence);
109422
109345
  if (message.lastLedgerSequence != null && Object.hasOwnProperty.call(message, "lastLedgerSequence"))
109423
- writer.uint32(/* id 3, wireType 0 =*/24).int32(message.lastLedgerSequence);
109346
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.lastLedgerSequence);
109424
109347
  if (message.account != null && Object.hasOwnProperty.call(message, "account"))
109425
109348
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.account);
109426
109349
  if (message.flags != null && Object.hasOwnProperty.call(message, "flags"))
109427
- writer.uint32(/* id 5, wireType 0 =*/40).int64(message.flags);
109350
+ writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.flags);
109428
109351
  if (message.privateKey != null && Object.hasOwnProperty.call(message, "privateKey"))
109429
109352
  writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.privateKey);
109430
109353
  if (message.opTrustSet != null && Object.hasOwnProperty.call(message, "opTrustSet"))
@@ -109447,6 +109370,8 @@
109447
109370
  $root.TW.Ripple.Proto.OperationEscrowCancel.encode(message.opEscrowCancel, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
109448
109371
  if (message.opEscrowFinish != null && Object.hasOwnProperty.call(message, "opEscrowFinish"))
109449
109372
  $root.TW.Ripple.Proto.OperationEscrowFinish.encode(message.opEscrowFinish, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
109373
+ if (message.sourceTag != null && Object.hasOwnProperty.call(message, "sourceTag"))
109374
+ writer.uint32(/* id 25, wireType 0 =*/200).uint32(message.sourceTag);
109450
109375
  return writer;
109451
109376
  };
109452
109377
 
@@ -109472,16 +109397,16 @@
109472
109397
  message.fee = reader.int64();
109473
109398
  break;
109474
109399
  case 2:
109475
- message.sequence = reader.int32();
109400
+ message.sequence = reader.uint32();
109476
109401
  break;
109477
109402
  case 3:
109478
- message.lastLedgerSequence = reader.int32();
109403
+ message.lastLedgerSequence = reader.uint32();
109479
109404
  break;
109480
109405
  case 4:
109481
109406
  message.account = reader.string();
109482
109407
  break;
109483
109408
  case 5:
109484
- message.flags = reader.int64();
109409
+ message.flags = reader.uint32();
109485
109410
  break;
109486
109411
  case 6:
109487
109412
  message.privateKey = reader.bytes();
@@ -109516,6 +109441,9 @@
109516
109441
  case 15:
109517
109442
  message.publicKey = reader.bytes();
109518
109443
  break;
109444
+ case 25:
109445
+ message.sourceTag = reader.uint32();
109446
+ break;
109519
109447
  default:
109520
109448
  reader.skipType(tag & 7);
109521
109449
  break;
@@ -109549,8 +109477,8 @@
109549
109477
  if (!$util.isString(message.account))
109550
109478
  return "account: string expected";
109551
109479
  if (message.flags != null && message.hasOwnProperty("flags"))
109552
- if (!$util.isInteger(message.flags) && !(message.flags && $util.isInteger(message.flags.low) && $util.isInteger(message.flags.high)))
109553
- return "flags: integer|Long expected";
109480
+ if (!$util.isInteger(message.flags))
109481
+ return "flags: integer expected";
109554
109482
  if (message.privateKey != null && message.hasOwnProperty("privateKey"))
109555
109483
  if (!(message.privateKey && typeof message.privateKey.length === "number" || $util.isString(message.privateKey)))
109556
109484
  return "privateKey: buffer expected";
@@ -109645,6 +109573,9 @@
109645
109573
  if (message.publicKey != null && message.hasOwnProperty("publicKey"))
109646
109574
  if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey)))
109647
109575
  return "publicKey: buffer expected";
109576
+ if (message.sourceTag != null && message.hasOwnProperty("sourceTag"))
109577
+ if (!$util.isInteger(message.sourceTag))
109578
+ return "sourceTag: integer expected";
109648
109579
  return null;
109649
109580
  };
109650
109581
 
@@ -109670,20 +109601,13 @@
109670
109601
  else if (typeof object.fee === "object")
109671
109602
  message.fee = new $util.LongBits(object.fee.low >>> 0, object.fee.high >>> 0).toNumber();
109672
109603
  if (object.sequence != null)
109673
- message.sequence = object.sequence | 0;
109604
+ message.sequence = object.sequence >>> 0;
109674
109605
  if (object.lastLedgerSequence != null)
109675
- message.lastLedgerSequence = object.lastLedgerSequence | 0;
109606
+ message.lastLedgerSequence = object.lastLedgerSequence >>> 0;
109676
109607
  if (object.account != null)
109677
109608
  message.account = String(object.account);
109678
109609
  if (object.flags != null)
109679
- if ($util.Long)
109680
- (message.flags = $util.Long.fromValue(object.flags)).unsigned = false;
109681
- else if (typeof object.flags === "string")
109682
- message.flags = parseInt(object.flags, 10);
109683
- else if (typeof object.flags === "number")
109684
- message.flags = object.flags;
109685
- else if (typeof object.flags === "object")
109686
- message.flags = new $util.LongBits(object.flags.low >>> 0, object.flags.high >>> 0).toNumber();
109610
+ message.flags = object.flags >>> 0;
109687
109611
  if (object.privateKey != null)
109688
109612
  if (typeof object.privateKey === "string")
109689
109613
  $util.base64.decode(object.privateKey, message.privateKey = $util.newBuffer($util.base64.length(object.privateKey)), 0);
@@ -109739,6 +109663,8 @@
109739
109663
  $util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0);
109740
109664
  else if (object.publicKey.length)
109741
109665
  message.publicKey = object.publicKey;
109666
+ if (object.sourceTag != null)
109667
+ message.sourceTag = object.sourceTag >>> 0;
109742
109668
  return message;
109743
109669
  };
109744
109670
 
@@ -109764,11 +109690,7 @@
109764
109690
  object.sequence = 0;
109765
109691
  object.lastLedgerSequence = 0;
109766
109692
  object.account = "";
109767
- if ($util.Long) {
109768
- var long = new $util.Long(0, 0, false);
109769
- object.flags = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
109770
- } else
109771
- object.flags = options.longs === String ? "0" : 0;
109693
+ object.flags = 0;
109772
109694
  if (options.bytes === String)
109773
109695
  object.privateKey = "";
109774
109696
  else {
@@ -109783,6 +109705,7 @@
109783
109705
  if (options.bytes !== Array)
109784
109706
  object.publicKey = $util.newBuffer(object.publicKey);
109785
109707
  }
109708
+ object.sourceTag = 0;
109786
109709
  }
109787
109710
  if (message.fee != null && message.hasOwnProperty("fee"))
109788
109711
  if (typeof message.fee === "number")
@@ -109796,10 +109719,7 @@
109796
109719
  if (message.account != null && message.hasOwnProperty("account"))
109797
109720
  object.account = message.account;
109798
109721
  if (message.flags != null && message.hasOwnProperty("flags"))
109799
- if (typeof message.flags === "number")
109800
- object.flags = options.longs === String ? String(message.flags) : message.flags;
109801
- else
109802
- 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() : message.flags;
109722
+ object.flags = message.flags;
109803
109723
  if (message.privateKey != null && message.hasOwnProperty("privateKey"))
109804
109724
  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;
109805
109725
  if (message.opTrustSet != null && message.hasOwnProperty("opTrustSet")) {
@@ -109849,6 +109769,8 @@
109849
109769
  if (options.oneofs)
109850
109770
  object.operationOneof = "opEscrowFinish";
109851
109771
  }
109772
+ if (message.sourceTag != null && message.hasOwnProperty("sourceTag"))
109773
+ object.sourceTag = message.sourceTag;
109852
109774
  return object;
109853
109775
  };
109854
109776
 
@@ -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={2092628:()=>{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";}}},2093350:()=>g.fa()};
39
+ var eb={2157652:()=>{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";}}},2158374:()=>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
@@ -313,6 +313,7 @@ export class CoinType {
313
313
  static optimism: CoinType;
314
314
  static zksync: CoinType;
315
315
  static arbitrum: CoinType;
316
+ static ecochain: CoinType;
316
317
  static avalancheCChain: CoinType;
317
318
  static xdai: CoinType;
318
319
  static fantom: CoinType;
@@ -593,6 +594,7 @@ export class EthereumChainID {
593
594
  static boba: EthereumChainID;
594
595
  static kcc: EthereumChainID;
595
596
  static zksync: EthereumChainID;
597
+ static heco: EthereumChainID;
596
598
  static acalaevm: EthereumChainID;
597
599
  static metis: EthereumChainID;
598
600
  static polygonzkevm: EthereumChainID;
@@ -876,15 +878,6 @@ export class Purpose {
876
878
  static bip86: Purpose;
877
879
  static bip1852: Purpose;
878
880
  }
879
- export class RippleXAddress {
880
- static equal(lhs: RippleXAddress, rhs: RippleXAddress): boolean;
881
- static isValidString(string: string): boolean;
882
- static createWithString(string: string): RippleXAddress;
883
- static createWithPublicKey(publicKey: PublicKey, tag: number): RippleXAddress;
884
- description(): string;
885
- tag(): number;
886
- delete(): void;
887
- }
888
881
  export class SegwitAddress {
889
882
  static equal(lhs: SegwitAddress, rhs: SegwitAddress): boolean;
890
883
  static isValidString(string: string): boolean;
@@ -1091,7 +1084,6 @@ export interface WalletCore {
1091
1084
  PublicKey: typeof PublicKey;
1092
1085
  PublicKeyType: typeof PublicKeyType;
1093
1086
  Purpose: typeof Purpose;
1094
- RippleXAddress: typeof RippleXAddress;
1095
1087
  SegwitAddress: typeof SegwitAddress;
1096
1088
  SolanaAddress: typeof SolanaAddress;
1097
1089
  SolanaTransaction: typeof SolanaTransaction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustwallet/wallet-core",
3
- "version": "4.2.7",
3
+ "version": "4.2.9",
4
4
  "description": "wallet core wasm and protobuf models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",