@trustwallet/wallet-core 4.2.8 → 4.2.10
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.
- package/dist/generated/core_proto.d.ts +30 -18
- package/dist/generated/core_proto.js +144 -200
- package/dist/lib/wallet-core.js +1 -1
- package/dist/lib/wallet-core.wasm +0 -0
- package/dist/src/wallet-core.d.ts +0 -10
- package/package.json +1 -1
@@ -36366,7 +36366,7 @@ export namespace TW {
|
|
36366
36366
|
destination?: (string|null);
|
36367
36367
|
|
36368
36368
|
/** OperationPayment destinationTag */
|
36369
|
-
destinationTag?: (
|
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:
|
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?: (
|
36460
|
+
destinationTag?: (number|null);
|
36461
36461
|
|
36462
36462
|
/** OperationEscrowCreate cancelAfter */
|
36463
|
-
cancelAfter?: (
|
36463
|
+
cancelAfter?: (number|null);
|
36464
36464
|
|
36465
36465
|
/** OperationEscrowCreate finishAfter */
|
36466
|
-
finishAfter?: (
|
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:
|
36488
|
+
public destinationTag: number;
|
36489
36489
|
|
36490
36490
|
/** OperationEscrowCreate cancelAfter. */
|
36491
|
-
public cancelAfter:
|
36491
|
+
public cancelAfter: number;
|
36492
36492
|
|
36493
36493
|
/** OperationEscrowCreate finishAfter. */
|
36494
|
-
public finishAfter:
|
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?: (
|
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:
|
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?: (
|
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:
|
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?: (
|
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:
|
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?: (
|
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:
|
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?: (
|
37037
|
+
flags?: (number|null);
|
37038
37038
|
|
37039
37039
|
/** SigningInput privateKey */
|
37040
37040
|
privateKey?: (Uint8Array|null);
|
@@ -37068,6 +37068,12 @@ export namespace TW {
|
|
37068
37068
|
|
37069
37069
|
/** SigningInput publicKey */
|
37070
37070
|
publicKey?: (Uint8Array|null);
|
37071
|
+
|
37072
|
+
/** SigningInput rawJson */
|
37073
|
+
rawJson?: (string|null);
|
37074
|
+
|
37075
|
+
/** SigningInput sourceTag */
|
37076
|
+
sourceTag?: (number|null);
|
37071
37077
|
}
|
37072
37078
|
|
37073
37079
|
/** Represents a SigningInput. */
|
@@ -37092,7 +37098,7 @@ export namespace TW {
|
|
37092
37098
|
public account: string;
|
37093
37099
|
|
37094
37100
|
/** SigningInput flags. */
|
37095
|
-
public flags:
|
37101
|
+
public flags: number;
|
37096
37102
|
|
37097
37103
|
/** SigningInput privateKey. */
|
37098
37104
|
public privateKey: Uint8Array;
|
@@ -37127,6 +37133,12 @@ export namespace TW {
|
|
37127
37133
|
/** SigningInput publicKey. */
|
37128
37134
|
public publicKey: Uint8Array;
|
37129
37135
|
|
37136
|
+
/** SigningInput rawJson. */
|
37137
|
+
public rawJson: string;
|
37138
|
+
|
37139
|
+
/** SigningInput sourceTag. */
|
37140
|
+
public sourceTag: number;
|
37141
|
+
|
37130
37142
|
/** SigningInput operationOneof. */
|
37131
37143
|
public operationOneof?: ("opTrustSet"|"opPayment"|"opNftokenBurn"|"opNftokenCreateOffer"|"opNftokenAcceptOffer"|"opNftokenCancelOffer"|"opEscrowCreate"|"opEscrowCancel"|"opEscrowFinish");
|
37132
37144
|
|
@@ -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 {
|
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 {
|
107554
|
+
* @member {number} destinationTag
|
107555
107555
|
* @memberof TW.Ripple.Proto.OperationPayment
|
107556
107556
|
* @instance
|
107557
107557
|
*/
|
107558
|
-
OperationPayment.prototype.destinationTag =
|
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).
|
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.
|
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)
|
107679
|
-
return "destinationTag: integer
|
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
|
-
|
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
|
-
|
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
|
-
|
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 {
|
107790
|
-
* @property {
|
107791
|
-
* @property {
|
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 {
|
107814
|
+
* @member {number} destinationTag
|
107829
107815
|
* @memberof TW.Ripple.Proto.OperationEscrowCreate
|
107830
107816
|
* @instance
|
107831
107817
|
*/
|
107832
|
-
OperationEscrowCreate.prototype.destinationTag =
|
107818
|
+
OperationEscrowCreate.prototype.destinationTag = 0;
|
107833
107819
|
|
107834
107820
|
/**
|
107835
107821
|
* OperationEscrowCreate cancelAfter.
|
107836
|
-
* @member {
|
107822
|
+
* @member {number} cancelAfter
|
107837
107823
|
* @memberof TW.Ripple.Proto.OperationEscrowCreate
|
107838
107824
|
* @instance
|
107839
107825
|
*/
|
107840
|
-
OperationEscrowCreate.prototype.cancelAfter =
|
107826
|
+
OperationEscrowCreate.prototype.cancelAfter = 0;
|
107841
107827
|
|
107842
107828
|
/**
|
107843
107829
|
* OperationEscrowCreate finishAfter.
|
107844
|
-
* @member {
|
107830
|
+
* @member {number} finishAfter
|
107845
107831
|
* @memberof TW.Ripple.Proto.OperationEscrowCreate
|
107846
107832
|
* @instance
|
107847
107833
|
*/
|
107848
|
-
OperationEscrowCreate.prototype.finishAfter =
|
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).
|
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).
|
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).
|
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.
|
107908
|
+
message.destinationTag = reader.uint32();
|
107923
107909
|
break;
|
107924
107910
|
case 4:
|
107925
|
-
message.cancelAfter = reader.
|
107911
|
+
message.cancelAfter = reader.uint32();
|
107926
107912
|
break;
|
107927
107913
|
case 5:
|
107928
|
-
message.finishAfter = reader.
|
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)
|
107960
|
-
return "destinationTag: integer
|
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)
|
107963
|
-
return "cancelAfter: integer
|
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)
|
107966
|
-
return "finishAfter: integer
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
108049
|
-
|
108050
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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).
|
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.
|
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
|
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).
|
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.
|
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
|
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 {
|
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 {
|
108482
|
+
* @member {string} nftokenId
|
108539
108483
|
* @memberof TW.Ripple.Proto.OperationNFTokenBurn
|
108540
108484
|
* @instance
|
108541
108485
|
*/
|
108542
|
-
OperationNFTokenBurn.prototype.nftokenId =
|
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).
|
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.
|
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 (
|
108615
|
-
return "nftokenId:
|
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
|
-
|
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
|
-
|
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 =
|
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 {
|
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 {
|
108641
|
+
* @member {string} nftokenId
|
108707
108642
|
* @memberof TW.Ripple.Proto.OperationNFTokenCreateOffer
|
108708
108643
|
* @instance
|
108709
108644
|
*/
|
108710
|
-
OperationNFTokenCreateOffer.prototype.nftokenId =
|
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).
|
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.
|
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 (
|
108796
|
-
return "nftokenId:
|
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
|
-
|
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
|
-
|
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 =
|
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 {
|
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 {
|
108821
|
+
* @member {string} sellOffer
|
108896
108822
|
* @memberof TW.Ripple.Proto.OperationNFTokenAcceptOffer
|
108897
108823
|
* @instance
|
108898
108824
|
*/
|
108899
|
-
OperationNFTokenAcceptOffer.prototype.sellOffer =
|
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).
|
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.
|
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 (
|
108972
|
-
return "sellOffer:
|
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
|
-
|
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
|
-
|
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 =
|
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.<
|
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.<
|
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).
|
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.
|
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 (
|
109146
|
-
return "tokenOffers:
|
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
|
-
|
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] =
|
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 {
|
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,8 @@
|
|
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 {string|null} [rawJson] SigningInput rawJson
|
109150
|
+
* @property {number|null} [sourceTag] SigningInput sourceTag
|
109235
109151
|
*/
|
109236
109152
|
|
109237
109153
|
/**
|
@@ -109283,11 +109199,11 @@
|
|
109283
109199
|
|
109284
109200
|
/**
|
109285
109201
|
* SigningInput flags.
|
109286
|
-
* @member {
|
109202
|
+
* @member {number} flags
|
109287
109203
|
* @memberof TW.Ripple.Proto.SigningInput
|
109288
109204
|
* @instance
|
109289
109205
|
*/
|
109290
|
-
SigningInput.prototype.flags =
|
109206
|
+
SigningInput.prototype.flags = 0;
|
109291
109207
|
|
109292
109208
|
/**
|
109293
109209
|
* SigningInput privateKey.
|
@@ -109377,6 +109293,22 @@
|
|
109377
109293
|
*/
|
109378
109294
|
SigningInput.prototype.publicKey = $util.newBuffer([]);
|
109379
109295
|
|
109296
|
+
/**
|
109297
|
+
* SigningInput rawJson.
|
109298
|
+
* @member {string} rawJson
|
109299
|
+
* @memberof TW.Ripple.Proto.SigningInput
|
109300
|
+
* @instance
|
109301
|
+
*/
|
109302
|
+
SigningInput.prototype.rawJson = "";
|
109303
|
+
|
109304
|
+
/**
|
109305
|
+
* SigningInput sourceTag.
|
109306
|
+
* @member {number} sourceTag
|
109307
|
+
* @memberof TW.Ripple.Proto.SigningInput
|
109308
|
+
* @instance
|
109309
|
+
*/
|
109310
|
+
SigningInput.prototype.sourceTag = 0;
|
109311
|
+
|
109380
109312
|
// OneOf field names bound to virtual getters and setters
|
109381
109313
|
var $oneOfFields;
|
109382
109314
|
|
@@ -109418,13 +109350,13 @@
|
|
109418
109350
|
if (message.fee != null && Object.hasOwnProperty.call(message, "fee"))
|
109419
109351
|
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.fee);
|
109420
109352
|
if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence"))
|
109421
|
-
writer.uint32(/* id 2, wireType 0 =*/16).
|
109353
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.sequence);
|
109422
109354
|
if (message.lastLedgerSequence != null && Object.hasOwnProperty.call(message, "lastLedgerSequence"))
|
109423
|
-
writer.uint32(/* id 3, wireType 0 =*/24).
|
109355
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.lastLedgerSequence);
|
109424
109356
|
if (message.account != null && Object.hasOwnProperty.call(message, "account"))
|
109425
109357
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.account);
|
109426
109358
|
if (message.flags != null && Object.hasOwnProperty.call(message, "flags"))
|
109427
|
-
writer.uint32(/* id 5, wireType 0 =*/40).
|
109359
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.flags);
|
109428
109360
|
if (message.privateKey != null && Object.hasOwnProperty.call(message, "privateKey"))
|
109429
109361
|
writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.privateKey);
|
109430
109362
|
if (message.opTrustSet != null && Object.hasOwnProperty.call(message, "opTrustSet"))
|
@@ -109447,6 +109379,10 @@
|
|
109447
109379
|
$root.TW.Ripple.Proto.OperationEscrowCancel.encode(message.opEscrowCancel, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
109448
109380
|
if (message.opEscrowFinish != null && Object.hasOwnProperty.call(message, "opEscrowFinish"))
|
109449
109381
|
$root.TW.Ripple.Proto.OperationEscrowFinish.encode(message.opEscrowFinish, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
109382
|
+
if (message.rawJson != null && Object.hasOwnProperty.call(message, "rawJson"))
|
109383
|
+
writer.uint32(/* id 20, wireType 2 =*/162).string(message.rawJson);
|
109384
|
+
if (message.sourceTag != null && Object.hasOwnProperty.call(message, "sourceTag"))
|
109385
|
+
writer.uint32(/* id 25, wireType 0 =*/200).uint32(message.sourceTag);
|
109450
109386
|
return writer;
|
109451
109387
|
};
|
109452
109388
|
|
@@ -109472,16 +109408,16 @@
|
|
109472
109408
|
message.fee = reader.int64();
|
109473
109409
|
break;
|
109474
109410
|
case 2:
|
109475
|
-
message.sequence = reader.
|
109411
|
+
message.sequence = reader.uint32();
|
109476
109412
|
break;
|
109477
109413
|
case 3:
|
109478
|
-
message.lastLedgerSequence = reader.
|
109414
|
+
message.lastLedgerSequence = reader.uint32();
|
109479
109415
|
break;
|
109480
109416
|
case 4:
|
109481
109417
|
message.account = reader.string();
|
109482
109418
|
break;
|
109483
109419
|
case 5:
|
109484
|
-
message.flags = reader.
|
109420
|
+
message.flags = reader.uint32();
|
109485
109421
|
break;
|
109486
109422
|
case 6:
|
109487
109423
|
message.privateKey = reader.bytes();
|
@@ -109516,6 +109452,12 @@
|
|
109516
109452
|
case 15:
|
109517
109453
|
message.publicKey = reader.bytes();
|
109518
109454
|
break;
|
109455
|
+
case 20:
|
109456
|
+
message.rawJson = reader.string();
|
109457
|
+
break;
|
109458
|
+
case 25:
|
109459
|
+
message.sourceTag = reader.uint32();
|
109460
|
+
break;
|
109519
109461
|
default:
|
109520
109462
|
reader.skipType(tag & 7);
|
109521
109463
|
break;
|
@@ -109549,8 +109491,8 @@
|
|
109549
109491
|
if (!$util.isString(message.account))
|
109550
109492
|
return "account: string expected";
|
109551
109493
|
if (message.flags != null && message.hasOwnProperty("flags"))
|
109552
|
-
if (!$util.isInteger(message.flags)
|
109553
|
-
return "flags: integer
|
109494
|
+
if (!$util.isInteger(message.flags))
|
109495
|
+
return "flags: integer expected";
|
109554
109496
|
if (message.privateKey != null && message.hasOwnProperty("privateKey"))
|
109555
109497
|
if (!(message.privateKey && typeof message.privateKey.length === "number" || $util.isString(message.privateKey)))
|
109556
109498
|
return "privateKey: buffer expected";
|
@@ -109645,6 +109587,12 @@
|
|
109645
109587
|
if (message.publicKey != null && message.hasOwnProperty("publicKey"))
|
109646
109588
|
if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey)))
|
109647
109589
|
return "publicKey: buffer expected";
|
109590
|
+
if (message.rawJson != null && message.hasOwnProperty("rawJson"))
|
109591
|
+
if (!$util.isString(message.rawJson))
|
109592
|
+
return "rawJson: string expected";
|
109593
|
+
if (message.sourceTag != null && message.hasOwnProperty("sourceTag"))
|
109594
|
+
if (!$util.isInteger(message.sourceTag))
|
109595
|
+
return "sourceTag: integer expected";
|
109648
109596
|
return null;
|
109649
109597
|
};
|
109650
109598
|
|
@@ -109670,20 +109618,13 @@
|
|
109670
109618
|
else if (typeof object.fee === "object")
|
109671
109619
|
message.fee = new $util.LongBits(object.fee.low >>> 0, object.fee.high >>> 0).toNumber();
|
109672
109620
|
if (object.sequence != null)
|
109673
|
-
message.sequence = object.sequence
|
109621
|
+
message.sequence = object.sequence >>> 0;
|
109674
109622
|
if (object.lastLedgerSequence != null)
|
109675
|
-
message.lastLedgerSequence = object.lastLedgerSequence
|
109623
|
+
message.lastLedgerSequence = object.lastLedgerSequence >>> 0;
|
109676
109624
|
if (object.account != null)
|
109677
109625
|
message.account = String(object.account);
|
109678
109626
|
if (object.flags != null)
|
109679
|
-
|
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();
|
109627
|
+
message.flags = object.flags >>> 0;
|
109687
109628
|
if (object.privateKey != null)
|
109688
109629
|
if (typeof object.privateKey === "string")
|
109689
109630
|
$util.base64.decode(object.privateKey, message.privateKey = $util.newBuffer($util.base64.length(object.privateKey)), 0);
|
@@ -109739,6 +109680,10 @@
|
|
109739
109680
|
$util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0);
|
109740
109681
|
else if (object.publicKey.length)
|
109741
109682
|
message.publicKey = object.publicKey;
|
109683
|
+
if (object.rawJson != null)
|
109684
|
+
message.rawJson = String(object.rawJson);
|
109685
|
+
if (object.sourceTag != null)
|
109686
|
+
message.sourceTag = object.sourceTag >>> 0;
|
109742
109687
|
return message;
|
109743
109688
|
};
|
109744
109689
|
|
@@ -109764,11 +109709,7 @@
|
|
109764
109709
|
object.sequence = 0;
|
109765
109710
|
object.lastLedgerSequence = 0;
|
109766
109711
|
object.account = "";
|
109767
|
-
|
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;
|
109712
|
+
object.flags = 0;
|
109772
109713
|
if (options.bytes === String)
|
109773
109714
|
object.privateKey = "";
|
109774
109715
|
else {
|
@@ -109783,6 +109724,8 @@
|
|
109783
109724
|
if (options.bytes !== Array)
|
109784
109725
|
object.publicKey = $util.newBuffer(object.publicKey);
|
109785
109726
|
}
|
109727
|
+
object.rawJson = "";
|
109728
|
+
object.sourceTag = 0;
|
109786
109729
|
}
|
109787
109730
|
if (message.fee != null && message.hasOwnProperty("fee"))
|
109788
109731
|
if (typeof message.fee === "number")
|
@@ -109796,10 +109739,7 @@
|
|
109796
109739
|
if (message.account != null && message.hasOwnProperty("account"))
|
109797
109740
|
object.account = message.account;
|
109798
109741
|
if (message.flags != null && message.hasOwnProperty("flags"))
|
109799
|
-
|
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;
|
109742
|
+
object.flags = message.flags;
|
109803
109743
|
if (message.privateKey != null && message.hasOwnProperty("privateKey"))
|
109804
109744
|
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
109745
|
if (message.opTrustSet != null && message.hasOwnProperty("opTrustSet")) {
|
@@ -109849,6 +109789,10 @@
|
|
109849
109789
|
if (options.oneofs)
|
109850
109790
|
object.operationOneof = "opEscrowFinish";
|
109851
109791
|
}
|
109792
|
+
if (message.rawJson != null && message.hasOwnProperty("rawJson"))
|
109793
|
+
object.rawJson = message.rawJson;
|
109794
|
+
if (message.sourceTag != null && message.hasOwnProperty("sourceTag"))
|
109795
|
+
object.sourceTag = message.sourceTag;
|
109852
109796
|
return object;
|
109853
109797
|
};
|
109854
109798
|
|
package/dist/lib/wallet-core.js
CHANGED
@@ -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={
|
39
|
+
var eb={2158612:()=>{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";}}},2159334:()=>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
|
@@ -878,15 +878,6 @@ export class Purpose {
|
|
878
878
|
static bip86: Purpose;
|
879
879
|
static bip1852: Purpose;
|
880
880
|
}
|
881
|
-
export class RippleXAddress {
|
882
|
-
static equal(lhs: RippleXAddress, rhs: RippleXAddress): boolean;
|
883
|
-
static isValidString(string: string): boolean;
|
884
|
-
static createWithString(string: string): RippleXAddress;
|
885
|
-
static createWithPublicKey(publicKey: PublicKey, tag: number): RippleXAddress;
|
886
|
-
description(): string;
|
887
|
-
tag(): number;
|
888
|
-
delete(): void;
|
889
|
-
}
|
890
881
|
export class SegwitAddress {
|
891
882
|
static equal(lhs: SegwitAddress, rhs: SegwitAddress): boolean;
|
892
883
|
static isValidString(string: string): boolean;
|
@@ -1093,7 +1084,6 @@ export interface WalletCore {
|
|
1093
1084
|
PublicKey: typeof PublicKey;
|
1094
1085
|
PublicKeyType: typeof PublicKeyType;
|
1095
1086
|
Purpose: typeof Purpose;
|
1096
|
-
RippleXAddress: typeof RippleXAddress;
|
1097
1087
|
SegwitAddress: typeof SegwitAddress;
|
1098
1088
|
SolanaAddress: typeof SolanaAddress;
|
1099
1089
|
SolanaTransaction: typeof SolanaTransaction;
|