@trustwallet/wallet-core 4.0.10 → 4.0.13
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.
@@ -34781,6 +34781,279 @@ export namespace TW {
|
|
34781
34781
|
public toJSON(): { [k: string]: any };
|
34782
34782
|
}
|
34783
34783
|
|
34784
|
+
/** Properties of an OperationEscrowCreate. */
|
34785
|
+
interface IOperationEscrowCreate {
|
34786
|
+
|
34787
|
+
/** OperationEscrowCreate amount */
|
34788
|
+
amount?: (Long|null);
|
34789
|
+
|
34790
|
+
/** OperationEscrowCreate destination */
|
34791
|
+
destination?: (string|null);
|
34792
|
+
|
34793
|
+
/** OperationEscrowCreate destinationTag */
|
34794
|
+
destinationTag?: (Long|null);
|
34795
|
+
|
34796
|
+
/** OperationEscrowCreate cancelAfter */
|
34797
|
+
cancelAfter?: (Long|null);
|
34798
|
+
|
34799
|
+
/** OperationEscrowCreate finishAfter */
|
34800
|
+
finishAfter?: (Long|null);
|
34801
|
+
|
34802
|
+
/** OperationEscrowCreate condition */
|
34803
|
+
condition?: (string|null);
|
34804
|
+
}
|
34805
|
+
|
34806
|
+
/** Represents an OperationEscrowCreate. */
|
34807
|
+
class OperationEscrowCreate implements IOperationEscrowCreate {
|
34808
|
+
|
34809
|
+
/**
|
34810
|
+
* Constructs a new OperationEscrowCreate.
|
34811
|
+
* @param [properties] Properties to set
|
34812
|
+
*/
|
34813
|
+
constructor(properties?: TW.Ripple.Proto.IOperationEscrowCreate);
|
34814
|
+
|
34815
|
+
/** OperationEscrowCreate amount. */
|
34816
|
+
public amount: Long;
|
34817
|
+
|
34818
|
+
/** OperationEscrowCreate destination. */
|
34819
|
+
public destination: string;
|
34820
|
+
|
34821
|
+
/** OperationEscrowCreate destinationTag. */
|
34822
|
+
public destinationTag: Long;
|
34823
|
+
|
34824
|
+
/** OperationEscrowCreate cancelAfter. */
|
34825
|
+
public cancelAfter: Long;
|
34826
|
+
|
34827
|
+
/** OperationEscrowCreate finishAfter. */
|
34828
|
+
public finishAfter: Long;
|
34829
|
+
|
34830
|
+
/** OperationEscrowCreate condition. */
|
34831
|
+
public condition: string;
|
34832
|
+
|
34833
|
+
/**
|
34834
|
+
* Creates a new OperationEscrowCreate instance using the specified properties.
|
34835
|
+
* @param [properties] Properties to set
|
34836
|
+
* @returns OperationEscrowCreate instance
|
34837
|
+
*/
|
34838
|
+
public static create(properties?: TW.Ripple.Proto.IOperationEscrowCreate): TW.Ripple.Proto.OperationEscrowCreate;
|
34839
|
+
|
34840
|
+
/**
|
34841
|
+
* Encodes the specified OperationEscrowCreate message. Does not implicitly {@link TW.Ripple.Proto.OperationEscrowCreate.verify|verify} messages.
|
34842
|
+
* @param message OperationEscrowCreate message or plain object to encode
|
34843
|
+
* @param [writer] Writer to encode to
|
34844
|
+
* @returns Writer
|
34845
|
+
*/
|
34846
|
+
public static encode(message: TW.Ripple.Proto.IOperationEscrowCreate, writer?: $protobuf.Writer): $protobuf.Writer;
|
34847
|
+
|
34848
|
+
/**
|
34849
|
+
* Decodes an OperationEscrowCreate message from the specified reader or buffer.
|
34850
|
+
* @param reader Reader or buffer to decode from
|
34851
|
+
* @param [length] Message length if known beforehand
|
34852
|
+
* @returns OperationEscrowCreate
|
34853
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
34854
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
34855
|
+
*/
|
34856
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Ripple.Proto.OperationEscrowCreate;
|
34857
|
+
|
34858
|
+
/**
|
34859
|
+
* Verifies an OperationEscrowCreate message.
|
34860
|
+
* @param message Plain object to verify
|
34861
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
34862
|
+
*/
|
34863
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
34864
|
+
|
34865
|
+
/**
|
34866
|
+
* Creates an OperationEscrowCreate message from a plain object. Also converts values to their respective internal types.
|
34867
|
+
* @param object Plain object
|
34868
|
+
* @returns OperationEscrowCreate
|
34869
|
+
*/
|
34870
|
+
public static fromObject(object: { [k: string]: any }): TW.Ripple.Proto.OperationEscrowCreate;
|
34871
|
+
|
34872
|
+
/**
|
34873
|
+
* Creates a plain object from an OperationEscrowCreate message. Also converts values to other types if specified.
|
34874
|
+
* @param message OperationEscrowCreate
|
34875
|
+
* @param [options] Conversion options
|
34876
|
+
* @returns Plain object
|
34877
|
+
*/
|
34878
|
+
public static toObject(message: TW.Ripple.Proto.OperationEscrowCreate, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
34879
|
+
|
34880
|
+
/**
|
34881
|
+
* Converts this OperationEscrowCreate to JSON.
|
34882
|
+
* @returns JSON object
|
34883
|
+
*/
|
34884
|
+
public toJSON(): { [k: string]: any };
|
34885
|
+
}
|
34886
|
+
|
34887
|
+
/** Properties of an OperationEscrowCancel. */
|
34888
|
+
interface IOperationEscrowCancel {
|
34889
|
+
|
34890
|
+
/** OperationEscrowCancel owner */
|
34891
|
+
owner?: (string|null);
|
34892
|
+
|
34893
|
+
/** OperationEscrowCancel offerSequence */
|
34894
|
+
offerSequence?: (number|null);
|
34895
|
+
}
|
34896
|
+
|
34897
|
+
/** Represents an OperationEscrowCancel. */
|
34898
|
+
class OperationEscrowCancel implements IOperationEscrowCancel {
|
34899
|
+
|
34900
|
+
/**
|
34901
|
+
* Constructs a new OperationEscrowCancel.
|
34902
|
+
* @param [properties] Properties to set
|
34903
|
+
*/
|
34904
|
+
constructor(properties?: TW.Ripple.Proto.IOperationEscrowCancel);
|
34905
|
+
|
34906
|
+
/** OperationEscrowCancel owner. */
|
34907
|
+
public owner: string;
|
34908
|
+
|
34909
|
+
/** OperationEscrowCancel offerSequence. */
|
34910
|
+
public offerSequence: number;
|
34911
|
+
|
34912
|
+
/**
|
34913
|
+
* Creates a new OperationEscrowCancel instance using the specified properties.
|
34914
|
+
* @param [properties] Properties to set
|
34915
|
+
* @returns OperationEscrowCancel instance
|
34916
|
+
*/
|
34917
|
+
public static create(properties?: TW.Ripple.Proto.IOperationEscrowCancel): TW.Ripple.Proto.OperationEscrowCancel;
|
34918
|
+
|
34919
|
+
/**
|
34920
|
+
* Encodes the specified OperationEscrowCancel message. Does not implicitly {@link TW.Ripple.Proto.OperationEscrowCancel.verify|verify} messages.
|
34921
|
+
* @param message OperationEscrowCancel message or plain object to encode
|
34922
|
+
* @param [writer] Writer to encode to
|
34923
|
+
* @returns Writer
|
34924
|
+
*/
|
34925
|
+
public static encode(message: TW.Ripple.Proto.IOperationEscrowCancel, writer?: $protobuf.Writer): $protobuf.Writer;
|
34926
|
+
|
34927
|
+
/**
|
34928
|
+
* Decodes an OperationEscrowCancel message from the specified reader or buffer.
|
34929
|
+
* @param reader Reader or buffer to decode from
|
34930
|
+
* @param [length] Message length if known beforehand
|
34931
|
+
* @returns OperationEscrowCancel
|
34932
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
34933
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
34934
|
+
*/
|
34935
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Ripple.Proto.OperationEscrowCancel;
|
34936
|
+
|
34937
|
+
/**
|
34938
|
+
* Verifies an OperationEscrowCancel message.
|
34939
|
+
* @param message Plain object to verify
|
34940
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
34941
|
+
*/
|
34942
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
34943
|
+
|
34944
|
+
/**
|
34945
|
+
* Creates an OperationEscrowCancel message from a plain object. Also converts values to their respective internal types.
|
34946
|
+
* @param object Plain object
|
34947
|
+
* @returns OperationEscrowCancel
|
34948
|
+
*/
|
34949
|
+
public static fromObject(object: { [k: string]: any }): TW.Ripple.Proto.OperationEscrowCancel;
|
34950
|
+
|
34951
|
+
/**
|
34952
|
+
* Creates a plain object from an OperationEscrowCancel message. Also converts values to other types if specified.
|
34953
|
+
* @param message OperationEscrowCancel
|
34954
|
+
* @param [options] Conversion options
|
34955
|
+
* @returns Plain object
|
34956
|
+
*/
|
34957
|
+
public static toObject(message: TW.Ripple.Proto.OperationEscrowCancel, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
34958
|
+
|
34959
|
+
/**
|
34960
|
+
* Converts this OperationEscrowCancel to JSON.
|
34961
|
+
* @returns JSON object
|
34962
|
+
*/
|
34963
|
+
public toJSON(): { [k: string]: any };
|
34964
|
+
}
|
34965
|
+
|
34966
|
+
/** Properties of an OperationEscrowFinish. */
|
34967
|
+
interface IOperationEscrowFinish {
|
34968
|
+
|
34969
|
+
/** OperationEscrowFinish owner */
|
34970
|
+
owner?: (string|null);
|
34971
|
+
|
34972
|
+
/** OperationEscrowFinish offerSequence */
|
34973
|
+
offerSequence?: (number|null);
|
34974
|
+
|
34975
|
+
/** OperationEscrowFinish condition */
|
34976
|
+
condition?: (string|null);
|
34977
|
+
|
34978
|
+
/** OperationEscrowFinish fulfillment */
|
34979
|
+
fulfillment?: (string|null);
|
34980
|
+
}
|
34981
|
+
|
34982
|
+
/** Represents an OperationEscrowFinish. */
|
34983
|
+
class OperationEscrowFinish implements IOperationEscrowFinish {
|
34984
|
+
|
34985
|
+
/**
|
34986
|
+
* Constructs a new OperationEscrowFinish.
|
34987
|
+
* @param [properties] Properties to set
|
34988
|
+
*/
|
34989
|
+
constructor(properties?: TW.Ripple.Proto.IOperationEscrowFinish);
|
34990
|
+
|
34991
|
+
/** OperationEscrowFinish owner. */
|
34992
|
+
public owner: string;
|
34993
|
+
|
34994
|
+
/** OperationEscrowFinish offerSequence. */
|
34995
|
+
public offerSequence: number;
|
34996
|
+
|
34997
|
+
/** OperationEscrowFinish condition. */
|
34998
|
+
public condition: string;
|
34999
|
+
|
35000
|
+
/** OperationEscrowFinish fulfillment. */
|
35001
|
+
public fulfillment: string;
|
35002
|
+
|
35003
|
+
/**
|
35004
|
+
* Creates a new OperationEscrowFinish instance using the specified properties.
|
35005
|
+
* @param [properties] Properties to set
|
35006
|
+
* @returns OperationEscrowFinish instance
|
35007
|
+
*/
|
35008
|
+
public static create(properties?: TW.Ripple.Proto.IOperationEscrowFinish): TW.Ripple.Proto.OperationEscrowFinish;
|
35009
|
+
|
35010
|
+
/**
|
35011
|
+
* Encodes the specified OperationEscrowFinish message. Does not implicitly {@link TW.Ripple.Proto.OperationEscrowFinish.verify|verify} messages.
|
35012
|
+
* @param message OperationEscrowFinish message or plain object to encode
|
35013
|
+
* @param [writer] Writer to encode to
|
35014
|
+
* @returns Writer
|
35015
|
+
*/
|
35016
|
+
public static encode(message: TW.Ripple.Proto.IOperationEscrowFinish, writer?: $protobuf.Writer): $protobuf.Writer;
|
35017
|
+
|
35018
|
+
/**
|
35019
|
+
* Decodes an OperationEscrowFinish message from the specified reader or buffer.
|
35020
|
+
* @param reader Reader or buffer to decode from
|
35021
|
+
* @param [length] Message length if known beforehand
|
35022
|
+
* @returns OperationEscrowFinish
|
35023
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
35024
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
35025
|
+
*/
|
35026
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Ripple.Proto.OperationEscrowFinish;
|
35027
|
+
|
35028
|
+
/**
|
35029
|
+
* Verifies an OperationEscrowFinish message.
|
35030
|
+
* @param message Plain object to verify
|
35031
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
35032
|
+
*/
|
35033
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
35034
|
+
|
35035
|
+
/**
|
35036
|
+
* Creates an OperationEscrowFinish message from a plain object. Also converts values to their respective internal types.
|
35037
|
+
* @param object Plain object
|
35038
|
+
* @returns OperationEscrowFinish
|
35039
|
+
*/
|
35040
|
+
public static fromObject(object: { [k: string]: any }): TW.Ripple.Proto.OperationEscrowFinish;
|
35041
|
+
|
35042
|
+
/**
|
35043
|
+
* Creates a plain object from an OperationEscrowFinish message. Also converts values to other types if specified.
|
35044
|
+
* @param message OperationEscrowFinish
|
35045
|
+
* @param [options] Conversion options
|
35046
|
+
* @returns Plain object
|
35047
|
+
*/
|
35048
|
+
public static toObject(message: TW.Ripple.Proto.OperationEscrowFinish, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
35049
|
+
|
35050
|
+
/**
|
35051
|
+
* Converts this OperationEscrowFinish to JSON.
|
35052
|
+
* @returns JSON object
|
35053
|
+
*/
|
35054
|
+
public toJSON(): { [k: string]: any };
|
35055
|
+
}
|
35056
|
+
|
34784
35057
|
/** Properties of an OperationNFTokenBurn. */
|
34785
35058
|
interface IOperationNFTokenBurn {
|
34786
35059
|
|
@@ -35118,6 +35391,15 @@ export namespace TW {
|
|
35118
35391
|
/** SigningInput opNftokenCancelOffer */
|
35119
35392
|
opNftokenCancelOffer?: (TW.Ripple.Proto.IOperationNFTokenCancelOffer|null);
|
35120
35393
|
|
35394
|
+
/** SigningInput opEscrowCreate */
|
35395
|
+
opEscrowCreate?: (TW.Ripple.Proto.IOperationEscrowCreate|null);
|
35396
|
+
|
35397
|
+
/** SigningInput opEscrowCancel */
|
35398
|
+
opEscrowCancel?: (TW.Ripple.Proto.IOperationEscrowCancel|null);
|
35399
|
+
|
35400
|
+
/** SigningInput opEscrowFinish */
|
35401
|
+
opEscrowFinish?: (TW.Ripple.Proto.IOperationEscrowFinish|null);
|
35402
|
+
|
35121
35403
|
/** SigningInput publicKey */
|
35122
35404
|
publicKey?: (Uint8Array|null);
|
35123
35405
|
}
|
@@ -35167,11 +35449,20 @@ export namespace TW {
|
|
35167
35449
|
/** SigningInput opNftokenCancelOffer. */
|
35168
35450
|
public opNftokenCancelOffer?: (TW.Ripple.Proto.IOperationNFTokenCancelOffer|null);
|
35169
35451
|
|
35452
|
+
/** SigningInput opEscrowCreate. */
|
35453
|
+
public opEscrowCreate?: (TW.Ripple.Proto.IOperationEscrowCreate|null);
|
35454
|
+
|
35455
|
+
/** SigningInput opEscrowCancel. */
|
35456
|
+
public opEscrowCancel?: (TW.Ripple.Proto.IOperationEscrowCancel|null);
|
35457
|
+
|
35458
|
+
/** SigningInput opEscrowFinish. */
|
35459
|
+
public opEscrowFinish?: (TW.Ripple.Proto.IOperationEscrowFinish|null);
|
35460
|
+
|
35170
35461
|
/** SigningInput publicKey. */
|
35171
35462
|
public publicKey: Uint8Array;
|
35172
35463
|
|
35173
35464
|
/** SigningInput operationOneof. */
|
35174
|
-
public operationOneof?: ("opTrustSet"|"opPayment"|"opNftokenBurn"|"opNftokenCreateOffer"|"opNftokenAcceptOffer"|"opNftokenCancelOffer");
|
35465
|
+
public operationOneof?: ("opTrustSet"|"opPayment"|"opNftokenBurn"|"opNftokenCreateOffer"|"opNftokenAcceptOffer"|"opNftokenCancelOffer"|"opEscrowCreate"|"opEscrowCancel"|"opEscrowFinish");
|
35175
35466
|
|
35176
35467
|
/**
|
35177
35468
|
* Creates a new SigningInput instance using the specified properties.
|
@@ -103649,6 +103649,737 @@
|
|
103649
103649
|
return OperationPayment;
|
103650
103650
|
})();
|
103651
103651
|
|
103652
|
+
Proto.OperationEscrowCreate = (function() {
|
103653
|
+
|
103654
|
+
/**
|
103655
|
+
* Properties of an OperationEscrowCreate.
|
103656
|
+
* @memberof TW.Ripple.Proto
|
103657
|
+
* @interface IOperationEscrowCreate
|
103658
|
+
* @property {Long|null} [amount] OperationEscrowCreate amount
|
103659
|
+
* @property {string|null} [destination] OperationEscrowCreate destination
|
103660
|
+
* @property {Long|null} [destinationTag] OperationEscrowCreate destinationTag
|
103661
|
+
* @property {Long|null} [cancelAfter] OperationEscrowCreate cancelAfter
|
103662
|
+
* @property {Long|null} [finishAfter] OperationEscrowCreate finishAfter
|
103663
|
+
* @property {string|null} [condition] OperationEscrowCreate condition
|
103664
|
+
*/
|
103665
|
+
|
103666
|
+
/**
|
103667
|
+
* Constructs a new OperationEscrowCreate.
|
103668
|
+
* @memberof TW.Ripple.Proto
|
103669
|
+
* @classdesc Represents an OperationEscrowCreate.
|
103670
|
+
* @implements IOperationEscrowCreate
|
103671
|
+
* @constructor
|
103672
|
+
* @param {TW.Ripple.Proto.IOperationEscrowCreate=} [properties] Properties to set
|
103673
|
+
*/
|
103674
|
+
function OperationEscrowCreate(properties) {
|
103675
|
+
if (properties)
|
103676
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
103677
|
+
if (properties[keys[i]] != null)
|
103678
|
+
this[keys[i]] = properties[keys[i]];
|
103679
|
+
}
|
103680
|
+
|
103681
|
+
/**
|
103682
|
+
* OperationEscrowCreate amount.
|
103683
|
+
* @member {Long} amount
|
103684
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCreate
|
103685
|
+
* @instance
|
103686
|
+
*/
|
103687
|
+
OperationEscrowCreate.prototype.amount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
103688
|
+
|
103689
|
+
/**
|
103690
|
+
* OperationEscrowCreate destination.
|
103691
|
+
* @member {string} destination
|
103692
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCreate
|
103693
|
+
* @instance
|
103694
|
+
*/
|
103695
|
+
OperationEscrowCreate.prototype.destination = "";
|
103696
|
+
|
103697
|
+
/**
|
103698
|
+
* OperationEscrowCreate destinationTag.
|
103699
|
+
* @member {Long} destinationTag
|
103700
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCreate
|
103701
|
+
* @instance
|
103702
|
+
*/
|
103703
|
+
OperationEscrowCreate.prototype.destinationTag = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
103704
|
+
|
103705
|
+
/**
|
103706
|
+
* OperationEscrowCreate cancelAfter.
|
103707
|
+
* @member {Long} cancelAfter
|
103708
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCreate
|
103709
|
+
* @instance
|
103710
|
+
*/
|
103711
|
+
OperationEscrowCreate.prototype.cancelAfter = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
103712
|
+
|
103713
|
+
/**
|
103714
|
+
* OperationEscrowCreate finishAfter.
|
103715
|
+
* @member {Long} finishAfter
|
103716
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCreate
|
103717
|
+
* @instance
|
103718
|
+
*/
|
103719
|
+
OperationEscrowCreate.prototype.finishAfter = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
103720
|
+
|
103721
|
+
/**
|
103722
|
+
* OperationEscrowCreate condition.
|
103723
|
+
* @member {string} condition
|
103724
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCreate
|
103725
|
+
* @instance
|
103726
|
+
*/
|
103727
|
+
OperationEscrowCreate.prototype.condition = "";
|
103728
|
+
|
103729
|
+
/**
|
103730
|
+
* Creates a new OperationEscrowCreate instance using the specified properties.
|
103731
|
+
* @function create
|
103732
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCreate
|
103733
|
+
* @static
|
103734
|
+
* @param {TW.Ripple.Proto.IOperationEscrowCreate=} [properties] Properties to set
|
103735
|
+
* @returns {TW.Ripple.Proto.OperationEscrowCreate} OperationEscrowCreate instance
|
103736
|
+
*/
|
103737
|
+
OperationEscrowCreate.create = function create(properties) {
|
103738
|
+
return new OperationEscrowCreate(properties);
|
103739
|
+
};
|
103740
|
+
|
103741
|
+
/**
|
103742
|
+
* Encodes the specified OperationEscrowCreate message. Does not implicitly {@link TW.Ripple.Proto.OperationEscrowCreate.verify|verify} messages.
|
103743
|
+
* @function encode
|
103744
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCreate
|
103745
|
+
* @static
|
103746
|
+
* @param {TW.Ripple.Proto.IOperationEscrowCreate} message OperationEscrowCreate message or plain object to encode
|
103747
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
103748
|
+
* @returns {$protobuf.Writer} Writer
|
103749
|
+
*/
|
103750
|
+
OperationEscrowCreate.encode = function encode(message, writer) {
|
103751
|
+
if (!writer)
|
103752
|
+
writer = $Writer.create();
|
103753
|
+
if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
|
103754
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.amount);
|
103755
|
+
if (message.destination != null && Object.hasOwnProperty.call(message, "destination"))
|
103756
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.destination);
|
103757
|
+
if (message.destinationTag != null && Object.hasOwnProperty.call(message, "destinationTag"))
|
103758
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int64(message.destinationTag);
|
103759
|
+
if (message.cancelAfter != null && Object.hasOwnProperty.call(message, "cancelAfter"))
|
103760
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int64(message.cancelAfter);
|
103761
|
+
if (message.finishAfter != null && Object.hasOwnProperty.call(message, "finishAfter"))
|
103762
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int64(message.finishAfter);
|
103763
|
+
if (message.condition != null && Object.hasOwnProperty.call(message, "condition"))
|
103764
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.condition);
|
103765
|
+
return writer;
|
103766
|
+
};
|
103767
|
+
|
103768
|
+
/**
|
103769
|
+
* Decodes an OperationEscrowCreate message from the specified reader or buffer.
|
103770
|
+
* @function decode
|
103771
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCreate
|
103772
|
+
* @static
|
103773
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
103774
|
+
* @param {number} [length] Message length if known beforehand
|
103775
|
+
* @returns {TW.Ripple.Proto.OperationEscrowCreate} OperationEscrowCreate
|
103776
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
103777
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
103778
|
+
*/
|
103779
|
+
OperationEscrowCreate.decode = function decode(reader, length) {
|
103780
|
+
if (!(reader instanceof $Reader))
|
103781
|
+
reader = $Reader.create(reader);
|
103782
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Ripple.Proto.OperationEscrowCreate();
|
103783
|
+
while (reader.pos < end) {
|
103784
|
+
var tag = reader.uint32();
|
103785
|
+
switch (tag >>> 3) {
|
103786
|
+
case 1:
|
103787
|
+
message.amount = reader.int64();
|
103788
|
+
break;
|
103789
|
+
case 2:
|
103790
|
+
message.destination = reader.string();
|
103791
|
+
break;
|
103792
|
+
case 3:
|
103793
|
+
message.destinationTag = reader.int64();
|
103794
|
+
break;
|
103795
|
+
case 4:
|
103796
|
+
message.cancelAfter = reader.int64();
|
103797
|
+
break;
|
103798
|
+
case 5:
|
103799
|
+
message.finishAfter = reader.int64();
|
103800
|
+
break;
|
103801
|
+
case 6:
|
103802
|
+
message.condition = reader.string();
|
103803
|
+
break;
|
103804
|
+
default:
|
103805
|
+
reader.skipType(tag & 7);
|
103806
|
+
break;
|
103807
|
+
}
|
103808
|
+
}
|
103809
|
+
return message;
|
103810
|
+
};
|
103811
|
+
|
103812
|
+
/**
|
103813
|
+
* Verifies an OperationEscrowCreate message.
|
103814
|
+
* @function verify
|
103815
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCreate
|
103816
|
+
* @static
|
103817
|
+
* @param {Object.<string,*>} message Plain object to verify
|
103818
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
103819
|
+
*/
|
103820
|
+
OperationEscrowCreate.verify = function verify(message) {
|
103821
|
+
if (typeof message !== "object" || message === null)
|
103822
|
+
return "object expected";
|
103823
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
103824
|
+
if (!$util.isInteger(message.amount) && !(message.amount && $util.isInteger(message.amount.low) && $util.isInteger(message.amount.high)))
|
103825
|
+
return "amount: integer|Long expected";
|
103826
|
+
if (message.destination != null && message.hasOwnProperty("destination"))
|
103827
|
+
if (!$util.isString(message.destination))
|
103828
|
+
return "destination: string expected";
|
103829
|
+
if (message.destinationTag != null && message.hasOwnProperty("destinationTag"))
|
103830
|
+
if (!$util.isInteger(message.destinationTag) && !(message.destinationTag && $util.isInteger(message.destinationTag.low) && $util.isInteger(message.destinationTag.high)))
|
103831
|
+
return "destinationTag: integer|Long expected";
|
103832
|
+
if (message.cancelAfter != null && message.hasOwnProperty("cancelAfter"))
|
103833
|
+
if (!$util.isInteger(message.cancelAfter) && !(message.cancelAfter && $util.isInteger(message.cancelAfter.low) && $util.isInteger(message.cancelAfter.high)))
|
103834
|
+
return "cancelAfter: integer|Long expected";
|
103835
|
+
if (message.finishAfter != null && message.hasOwnProperty("finishAfter"))
|
103836
|
+
if (!$util.isInteger(message.finishAfter) && !(message.finishAfter && $util.isInteger(message.finishAfter.low) && $util.isInteger(message.finishAfter.high)))
|
103837
|
+
return "finishAfter: integer|Long expected";
|
103838
|
+
if (message.condition != null && message.hasOwnProperty("condition"))
|
103839
|
+
if (!$util.isString(message.condition))
|
103840
|
+
return "condition: string expected";
|
103841
|
+
return null;
|
103842
|
+
};
|
103843
|
+
|
103844
|
+
/**
|
103845
|
+
* Creates an OperationEscrowCreate message from a plain object. Also converts values to their respective internal types.
|
103846
|
+
* @function fromObject
|
103847
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCreate
|
103848
|
+
* @static
|
103849
|
+
* @param {Object.<string,*>} object Plain object
|
103850
|
+
* @returns {TW.Ripple.Proto.OperationEscrowCreate} OperationEscrowCreate
|
103851
|
+
*/
|
103852
|
+
OperationEscrowCreate.fromObject = function fromObject(object) {
|
103853
|
+
if (object instanceof $root.TW.Ripple.Proto.OperationEscrowCreate)
|
103854
|
+
return object;
|
103855
|
+
var message = new $root.TW.Ripple.Proto.OperationEscrowCreate();
|
103856
|
+
if (object.amount != null)
|
103857
|
+
if ($util.Long)
|
103858
|
+
(message.amount = $util.Long.fromValue(object.amount)).unsigned = false;
|
103859
|
+
else if (typeof object.amount === "string")
|
103860
|
+
message.amount = parseInt(object.amount, 10);
|
103861
|
+
else if (typeof object.amount === "number")
|
103862
|
+
message.amount = object.amount;
|
103863
|
+
else if (typeof object.amount === "object")
|
103864
|
+
message.amount = new $util.LongBits(object.amount.low >>> 0, object.amount.high >>> 0).toNumber();
|
103865
|
+
if (object.destination != null)
|
103866
|
+
message.destination = String(object.destination);
|
103867
|
+
if (object.destinationTag != null)
|
103868
|
+
if ($util.Long)
|
103869
|
+
(message.destinationTag = $util.Long.fromValue(object.destinationTag)).unsigned = false;
|
103870
|
+
else if (typeof object.destinationTag === "string")
|
103871
|
+
message.destinationTag = parseInt(object.destinationTag, 10);
|
103872
|
+
else if (typeof object.destinationTag === "number")
|
103873
|
+
message.destinationTag = object.destinationTag;
|
103874
|
+
else if (typeof object.destinationTag === "object")
|
103875
|
+
message.destinationTag = new $util.LongBits(object.destinationTag.low >>> 0, object.destinationTag.high >>> 0).toNumber();
|
103876
|
+
if (object.cancelAfter != null)
|
103877
|
+
if ($util.Long)
|
103878
|
+
(message.cancelAfter = $util.Long.fromValue(object.cancelAfter)).unsigned = false;
|
103879
|
+
else if (typeof object.cancelAfter === "string")
|
103880
|
+
message.cancelAfter = parseInt(object.cancelAfter, 10);
|
103881
|
+
else if (typeof object.cancelAfter === "number")
|
103882
|
+
message.cancelAfter = object.cancelAfter;
|
103883
|
+
else if (typeof object.cancelAfter === "object")
|
103884
|
+
message.cancelAfter = new $util.LongBits(object.cancelAfter.low >>> 0, object.cancelAfter.high >>> 0).toNumber();
|
103885
|
+
if (object.finishAfter != null)
|
103886
|
+
if ($util.Long)
|
103887
|
+
(message.finishAfter = $util.Long.fromValue(object.finishAfter)).unsigned = false;
|
103888
|
+
else if (typeof object.finishAfter === "string")
|
103889
|
+
message.finishAfter = parseInt(object.finishAfter, 10);
|
103890
|
+
else if (typeof object.finishAfter === "number")
|
103891
|
+
message.finishAfter = object.finishAfter;
|
103892
|
+
else if (typeof object.finishAfter === "object")
|
103893
|
+
message.finishAfter = new $util.LongBits(object.finishAfter.low >>> 0, object.finishAfter.high >>> 0).toNumber();
|
103894
|
+
if (object.condition != null)
|
103895
|
+
message.condition = String(object.condition);
|
103896
|
+
return message;
|
103897
|
+
};
|
103898
|
+
|
103899
|
+
/**
|
103900
|
+
* Creates a plain object from an OperationEscrowCreate message. Also converts values to other types if specified.
|
103901
|
+
* @function toObject
|
103902
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCreate
|
103903
|
+
* @static
|
103904
|
+
* @param {TW.Ripple.Proto.OperationEscrowCreate} message OperationEscrowCreate
|
103905
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
103906
|
+
* @returns {Object.<string,*>} Plain object
|
103907
|
+
*/
|
103908
|
+
OperationEscrowCreate.toObject = function toObject(message, options) {
|
103909
|
+
if (!options)
|
103910
|
+
options = {};
|
103911
|
+
var object = {};
|
103912
|
+
if (options.defaults) {
|
103913
|
+
if ($util.Long) {
|
103914
|
+
var long = new $util.Long(0, 0, false);
|
103915
|
+
object.amount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
103916
|
+
} else
|
103917
|
+
object.amount = options.longs === String ? "0" : 0;
|
103918
|
+
object.destination = "";
|
103919
|
+
if ($util.Long) {
|
103920
|
+
var long = new $util.Long(0, 0, false);
|
103921
|
+
object.destinationTag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
103922
|
+
} else
|
103923
|
+
object.destinationTag = options.longs === String ? "0" : 0;
|
103924
|
+
if ($util.Long) {
|
103925
|
+
var long = new $util.Long(0, 0, false);
|
103926
|
+
object.cancelAfter = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
103927
|
+
} else
|
103928
|
+
object.cancelAfter = options.longs === String ? "0" : 0;
|
103929
|
+
if ($util.Long) {
|
103930
|
+
var long = new $util.Long(0, 0, false);
|
103931
|
+
object.finishAfter = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
103932
|
+
} else
|
103933
|
+
object.finishAfter = options.longs === String ? "0" : 0;
|
103934
|
+
object.condition = "";
|
103935
|
+
}
|
103936
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
103937
|
+
if (typeof message.amount === "number")
|
103938
|
+
object.amount = options.longs === String ? String(message.amount) : message.amount;
|
103939
|
+
else
|
103940
|
+
object.amount = options.longs === String ? $util.Long.prototype.toString.call(message.amount) : options.longs === Number ? new $util.LongBits(message.amount.low >>> 0, message.amount.high >>> 0).toNumber() : message.amount;
|
103941
|
+
if (message.destination != null && message.hasOwnProperty("destination"))
|
103942
|
+
object.destination = message.destination;
|
103943
|
+
if (message.destinationTag != null && message.hasOwnProperty("destinationTag"))
|
103944
|
+
if (typeof message.destinationTag === "number")
|
103945
|
+
object.destinationTag = options.longs === String ? String(message.destinationTag) : message.destinationTag;
|
103946
|
+
else
|
103947
|
+
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;
|
103948
|
+
if (message.cancelAfter != null && message.hasOwnProperty("cancelAfter"))
|
103949
|
+
if (typeof message.cancelAfter === "number")
|
103950
|
+
object.cancelAfter = options.longs === String ? String(message.cancelAfter) : message.cancelAfter;
|
103951
|
+
else
|
103952
|
+
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;
|
103953
|
+
if (message.finishAfter != null && message.hasOwnProperty("finishAfter"))
|
103954
|
+
if (typeof message.finishAfter === "number")
|
103955
|
+
object.finishAfter = options.longs === String ? String(message.finishAfter) : message.finishAfter;
|
103956
|
+
else
|
103957
|
+
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;
|
103958
|
+
if (message.condition != null && message.hasOwnProperty("condition"))
|
103959
|
+
object.condition = message.condition;
|
103960
|
+
return object;
|
103961
|
+
};
|
103962
|
+
|
103963
|
+
/**
|
103964
|
+
* Converts this OperationEscrowCreate to JSON.
|
103965
|
+
* @function toJSON
|
103966
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCreate
|
103967
|
+
* @instance
|
103968
|
+
* @returns {Object.<string,*>} JSON object
|
103969
|
+
*/
|
103970
|
+
OperationEscrowCreate.prototype.toJSON = function toJSON() {
|
103971
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
103972
|
+
};
|
103973
|
+
|
103974
|
+
return OperationEscrowCreate;
|
103975
|
+
})();
|
103976
|
+
|
103977
|
+
Proto.OperationEscrowCancel = (function() {
|
103978
|
+
|
103979
|
+
/**
|
103980
|
+
* Properties of an OperationEscrowCancel.
|
103981
|
+
* @memberof TW.Ripple.Proto
|
103982
|
+
* @interface IOperationEscrowCancel
|
103983
|
+
* @property {string|null} [owner] OperationEscrowCancel owner
|
103984
|
+
* @property {number|null} [offerSequence] OperationEscrowCancel offerSequence
|
103985
|
+
*/
|
103986
|
+
|
103987
|
+
/**
|
103988
|
+
* Constructs a new OperationEscrowCancel.
|
103989
|
+
* @memberof TW.Ripple.Proto
|
103990
|
+
* @classdesc Represents an OperationEscrowCancel.
|
103991
|
+
* @implements IOperationEscrowCancel
|
103992
|
+
* @constructor
|
103993
|
+
* @param {TW.Ripple.Proto.IOperationEscrowCancel=} [properties] Properties to set
|
103994
|
+
*/
|
103995
|
+
function OperationEscrowCancel(properties) {
|
103996
|
+
if (properties)
|
103997
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
103998
|
+
if (properties[keys[i]] != null)
|
103999
|
+
this[keys[i]] = properties[keys[i]];
|
104000
|
+
}
|
104001
|
+
|
104002
|
+
/**
|
104003
|
+
* OperationEscrowCancel owner.
|
104004
|
+
* @member {string} owner
|
104005
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCancel
|
104006
|
+
* @instance
|
104007
|
+
*/
|
104008
|
+
OperationEscrowCancel.prototype.owner = "";
|
104009
|
+
|
104010
|
+
/**
|
104011
|
+
* OperationEscrowCancel offerSequence.
|
104012
|
+
* @member {number} offerSequence
|
104013
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCancel
|
104014
|
+
* @instance
|
104015
|
+
*/
|
104016
|
+
OperationEscrowCancel.prototype.offerSequence = 0;
|
104017
|
+
|
104018
|
+
/**
|
104019
|
+
* Creates a new OperationEscrowCancel instance using the specified properties.
|
104020
|
+
* @function create
|
104021
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCancel
|
104022
|
+
* @static
|
104023
|
+
* @param {TW.Ripple.Proto.IOperationEscrowCancel=} [properties] Properties to set
|
104024
|
+
* @returns {TW.Ripple.Proto.OperationEscrowCancel} OperationEscrowCancel instance
|
104025
|
+
*/
|
104026
|
+
OperationEscrowCancel.create = function create(properties) {
|
104027
|
+
return new OperationEscrowCancel(properties);
|
104028
|
+
};
|
104029
|
+
|
104030
|
+
/**
|
104031
|
+
* Encodes the specified OperationEscrowCancel message. Does not implicitly {@link TW.Ripple.Proto.OperationEscrowCancel.verify|verify} messages.
|
104032
|
+
* @function encode
|
104033
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCancel
|
104034
|
+
* @static
|
104035
|
+
* @param {TW.Ripple.Proto.IOperationEscrowCancel} message OperationEscrowCancel message or plain object to encode
|
104036
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
104037
|
+
* @returns {$protobuf.Writer} Writer
|
104038
|
+
*/
|
104039
|
+
OperationEscrowCancel.encode = function encode(message, writer) {
|
104040
|
+
if (!writer)
|
104041
|
+
writer = $Writer.create();
|
104042
|
+
if (message.owner != null && Object.hasOwnProperty.call(message, "owner"))
|
104043
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.owner);
|
104044
|
+
if (message.offerSequence != null && Object.hasOwnProperty.call(message, "offerSequence"))
|
104045
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.offerSequence);
|
104046
|
+
return writer;
|
104047
|
+
};
|
104048
|
+
|
104049
|
+
/**
|
104050
|
+
* Decodes an OperationEscrowCancel message from the specified reader or buffer.
|
104051
|
+
* @function decode
|
104052
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCancel
|
104053
|
+
* @static
|
104054
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
104055
|
+
* @param {number} [length] Message length if known beforehand
|
104056
|
+
* @returns {TW.Ripple.Proto.OperationEscrowCancel} OperationEscrowCancel
|
104057
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
104058
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
104059
|
+
*/
|
104060
|
+
OperationEscrowCancel.decode = function decode(reader, length) {
|
104061
|
+
if (!(reader instanceof $Reader))
|
104062
|
+
reader = $Reader.create(reader);
|
104063
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Ripple.Proto.OperationEscrowCancel();
|
104064
|
+
while (reader.pos < end) {
|
104065
|
+
var tag = reader.uint32();
|
104066
|
+
switch (tag >>> 3) {
|
104067
|
+
case 1:
|
104068
|
+
message.owner = reader.string();
|
104069
|
+
break;
|
104070
|
+
case 2:
|
104071
|
+
message.offerSequence = reader.int32();
|
104072
|
+
break;
|
104073
|
+
default:
|
104074
|
+
reader.skipType(tag & 7);
|
104075
|
+
break;
|
104076
|
+
}
|
104077
|
+
}
|
104078
|
+
return message;
|
104079
|
+
};
|
104080
|
+
|
104081
|
+
/**
|
104082
|
+
* Verifies an OperationEscrowCancel message.
|
104083
|
+
* @function verify
|
104084
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCancel
|
104085
|
+
* @static
|
104086
|
+
* @param {Object.<string,*>} message Plain object to verify
|
104087
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
104088
|
+
*/
|
104089
|
+
OperationEscrowCancel.verify = function verify(message) {
|
104090
|
+
if (typeof message !== "object" || message === null)
|
104091
|
+
return "object expected";
|
104092
|
+
if (message.owner != null && message.hasOwnProperty("owner"))
|
104093
|
+
if (!$util.isString(message.owner))
|
104094
|
+
return "owner: string expected";
|
104095
|
+
if (message.offerSequence != null && message.hasOwnProperty("offerSequence"))
|
104096
|
+
if (!$util.isInteger(message.offerSequence))
|
104097
|
+
return "offerSequence: integer expected";
|
104098
|
+
return null;
|
104099
|
+
};
|
104100
|
+
|
104101
|
+
/**
|
104102
|
+
* Creates an OperationEscrowCancel message from a plain object. Also converts values to their respective internal types.
|
104103
|
+
* @function fromObject
|
104104
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCancel
|
104105
|
+
* @static
|
104106
|
+
* @param {Object.<string,*>} object Plain object
|
104107
|
+
* @returns {TW.Ripple.Proto.OperationEscrowCancel} OperationEscrowCancel
|
104108
|
+
*/
|
104109
|
+
OperationEscrowCancel.fromObject = function fromObject(object) {
|
104110
|
+
if (object instanceof $root.TW.Ripple.Proto.OperationEscrowCancel)
|
104111
|
+
return object;
|
104112
|
+
var message = new $root.TW.Ripple.Proto.OperationEscrowCancel();
|
104113
|
+
if (object.owner != null)
|
104114
|
+
message.owner = String(object.owner);
|
104115
|
+
if (object.offerSequence != null)
|
104116
|
+
message.offerSequence = object.offerSequence | 0;
|
104117
|
+
return message;
|
104118
|
+
};
|
104119
|
+
|
104120
|
+
/**
|
104121
|
+
* Creates a plain object from an OperationEscrowCancel message. Also converts values to other types if specified.
|
104122
|
+
* @function toObject
|
104123
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCancel
|
104124
|
+
* @static
|
104125
|
+
* @param {TW.Ripple.Proto.OperationEscrowCancel} message OperationEscrowCancel
|
104126
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
104127
|
+
* @returns {Object.<string,*>} Plain object
|
104128
|
+
*/
|
104129
|
+
OperationEscrowCancel.toObject = function toObject(message, options) {
|
104130
|
+
if (!options)
|
104131
|
+
options = {};
|
104132
|
+
var object = {};
|
104133
|
+
if (options.defaults) {
|
104134
|
+
object.owner = "";
|
104135
|
+
object.offerSequence = 0;
|
104136
|
+
}
|
104137
|
+
if (message.owner != null && message.hasOwnProperty("owner"))
|
104138
|
+
object.owner = message.owner;
|
104139
|
+
if (message.offerSequence != null && message.hasOwnProperty("offerSequence"))
|
104140
|
+
object.offerSequence = message.offerSequence;
|
104141
|
+
return object;
|
104142
|
+
};
|
104143
|
+
|
104144
|
+
/**
|
104145
|
+
* Converts this OperationEscrowCancel to JSON.
|
104146
|
+
* @function toJSON
|
104147
|
+
* @memberof TW.Ripple.Proto.OperationEscrowCancel
|
104148
|
+
* @instance
|
104149
|
+
* @returns {Object.<string,*>} JSON object
|
104150
|
+
*/
|
104151
|
+
OperationEscrowCancel.prototype.toJSON = function toJSON() {
|
104152
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
104153
|
+
};
|
104154
|
+
|
104155
|
+
return OperationEscrowCancel;
|
104156
|
+
})();
|
104157
|
+
|
104158
|
+
Proto.OperationEscrowFinish = (function() {
|
104159
|
+
|
104160
|
+
/**
|
104161
|
+
* Properties of an OperationEscrowFinish.
|
104162
|
+
* @memberof TW.Ripple.Proto
|
104163
|
+
* @interface IOperationEscrowFinish
|
104164
|
+
* @property {string|null} [owner] OperationEscrowFinish owner
|
104165
|
+
* @property {number|null} [offerSequence] OperationEscrowFinish offerSequence
|
104166
|
+
* @property {string|null} [condition] OperationEscrowFinish condition
|
104167
|
+
* @property {string|null} [fulfillment] OperationEscrowFinish fulfillment
|
104168
|
+
*/
|
104169
|
+
|
104170
|
+
/**
|
104171
|
+
* Constructs a new OperationEscrowFinish.
|
104172
|
+
* @memberof TW.Ripple.Proto
|
104173
|
+
* @classdesc Represents an OperationEscrowFinish.
|
104174
|
+
* @implements IOperationEscrowFinish
|
104175
|
+
* @constructor
|
104176
|
+
* @param {TW.Ripple.Proto.IOperationEscrowFinish=} [properties] Properties to set
|
104177
|
+
*/
|
104178
|
+
function OperationEscrowFinish(properties) {
|
104179
|
+
if (properties)
|
104180
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
104181
|
+
if (properties[keys[i]] != null)
|
104182
|
+
this[keys[i]] = properties[keys[i]];
|
104183
|
+
}
|
104184
|
+
|
104185
|
+
/**
|
104186
|
+
* OperationEscrowFinish owner.
|
104187
|
+
* @member {string} owner
|
104188
|
+
* @memberof TW.Ripple.Proto.OperationEscrowFinish
|
104189
|
+
* @instance
|
104190
|
+
*/
|
104191
|
+
OperationEscrowFinish.prototype.owner = "";
|
104192
|
+
|
104193
|
+
/**
|
104194
|
+
* OperationEscrowFinish offerSequence.
|
104195
|
+
* @member {number} offerSequence
|
104196
|
+
* @memberof TW.Ripple.Proto.OperationEscrowFinish
|
104197
|
+
* @instance
|
104198
|
+
*/
|
104199
|
+
OperationEscrowFinish.prototype.offerSequence = 0;
|
104200
|
+
|
104201
|
+
/**
|
104202
|
+
* OperationEscrowFinish condition.
|
104203
|
+
* @member {string} condition
|
104204
|
+
* @memberof TW.Ripple.Proto.OperationEscrowFinish
|
104205
|
+
* @instance
|
104206
|
+
*/
|
104207
|
+
OperationEscrowFinish.prototype.condition = "";
|
104208
|
+
|
104209
|
+
/**
|
104210
|
+
* OperationEscrowFinish fulfillment.
|
104211
|
+
* @member {string} fulfillment
|
104212
|
+
* @memberof TW.Ripple.Proto.OperationEscrowFinish
|
104213
|
+
* @instance
|
104214
|
+
*/
|
104215
|
+
OperationEscrowFinish.prototype.fulfillment = "";
|
104216
|
+
|
104217
|
+
/**
|
104218
|
+
* Creates a new OperationEscrowFinish instance using the specified properties.
|
104219
|
+
* @function create
|
104220
|
+
* @memberof TW.Ripple.Proto.OperationEscrowFinish
|
104221
|
+
* @static
|
104222
|
+
* @param {TW.Ripple.Proto.IOperationEscrowFinish=} [properties] Properties to set
|
104223
|
+
* @returns {TW.Ripple.Proto.OperationEscrowFinish} OperationEscrowFinish instance
|
104224
|
+
*/
|
104225
|
+
OperationEscrowFinish.create = function create(properties) {
|
104226
|
+
return new OperationEscrowFinish(properties);
|
104227
|
+
};
|
104228
|
+
|
104229
|
+
/**
|
104230
|
+
* Encodes the specified OperationEscrowFinish message. Does not implicitly {@link TW.Ripple.Proto.OperationEscrowFinish.verify|verify} messages.
|
104231
|
+
* @function encode
|
104232
|
+
* @memberof TW.Ripple.Proto.OperationEscrowFinish
|
104233
|
+
* @static
|
104234
|
+
* @param {TW.Ripple.Proto.IOperationEscrowFinish} message OperationEscrowFinish message or plain object to encode
|
104235
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
104236
|
+
* @returns {$protobuf.Writer} Writer
|
104237
|
+
*/
|
104238
|
+
OperationEscrowFinish.encode = function encode(message, writer) {
|
104239
|
+
if (!writer)
|
104240
|
+
writer = $Writer.create();
|
104241
|
+
if (message.owner != null && Object.hasOwnProperty.call(message, "owner"))
|
104242
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.owner);
|
104243
|
+
if (message.offerSequence != null && Object.hasOwnProperty.call(message, "offerSequence"))
|
104244
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.offerSequence);
|
104245
|
+
if (message.condition != null && Object.hasOwnProperty.call(message, "condition"))
|
104246
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.condition);
|
104247
|
+
if (message.fulfillment != null && Object.hasOwnProperty.call(message, "fulfillment"))
|
104248
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.fulfillment);
|
104249
|
+
return writer;
|
104250
|
+
};
|
104251
|
+
|
104252
|
+
/**
|
104253
|
+
* Decodes an OperationEscrowFinish message from the specified reader or buffer.
|
104254
|
+
* @function decode
|
104255
|
+
* @memberof TW.Ripple.Proto.OperationEscrowFinish
|
104256
|
+
* @static
|
104257
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
104258
|
+
* @param {number} [length] Message length if known beforehand
|
104259
|
+
* @returns {TW.Ripple.Proto.OperationEscrowFinish} OperationEscrowFinish
|
104260
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
104261
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
104262
|
+
*/
|
104263
|
+
OperationEscrowFinish.decode = function decode(reader, length) {
|
104264
|
+
if (!(reader instanceof $Reader))
|
104265
|
+
reader = $Reader.create(reader);
|
104266
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Ripple.Proto.OperationEscrowFinish();
|
104267
|
+
while (reader.pos < end) {
|
104268
|
+
var tag = reader.uint32();
|
104269
|
+
switch (tag >>> 3) {
|
104270
|
+
case 1:
|
104271
|
+
message.owner = reader.string();
|
104272
|
+
break;
|
104273
|
+
case 2:
|
104274
|
+
message.offerSequence = reader.int32();
|
104275
|
+
break;
|
104276
|
+
case 3:
|
104277
|
+
message.condition = reader.string();
|
104278
|
+
break;
|
104279
|
+
case 4:
|
104280
|
+
message.fulfillment = reader.string();
|
104281
|
+
break;
|
104282
|
+
default:
|
104283
|
+
reader.skipType(tag & 7);
|
104284
|
+
break;
|
104285
|
+
}
|
104286
|
+
}
|
104287
|
+
return message;
|
104288
|
+
};
|
104289
|
+
|
104290
|
+
/**
|
104291
|
+
* Verifies an OperationEscrowFinish message.
|
104292
|
+
* @function verify
|
104293
|
+
* @memberof TW.Ripple.Proto.OperationEscrowFinish
|
104294
|
+
* @static
|
104295
|
+
* @param {Object.<string,*>} message Plain object to verify
|
104296
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
104297
|
+
*/
|
104298
|
+
OperationEscrowFinish.verify = function verify(message) {
|
104299
|
+
if (typeof message !== "object" || message === null)
|
104300
|
+
return "object expected";
|
104301
|
+
if (message.owner != null && message.hasOwnProperty("owner"))
|
104302
|
+
if (!$util.isString(message.owner))
|
104303
|
+
return "owner: string expected";
|
104304
|
+
if (message.offerSequence != null && message.hasOwnProperty("offerSequence"))
|
104305
|
+
if (!$util.isInteger(message.offerSequence))
|
104306
|
+
return "offerSequence: integer expected";
|
104307
|
+
if (message.condition != null && message.hasOwnProperty("condition"))
|
104308
|
+
if (!$util.isString(message.condition))
|
104309
|
+
return "condition: string expected";
|
104310
|
+
if (message.fulfillment != null && message.hasOwnProperty("fulfillment"))
|
104311
|
+
if (!$util.isString(message.fulfillment))
|
104312
|
+
return "fulfillment: string expected";
|
104313
|
+
return null;
|
104314
|
+
};
|
104315
|
+
|
104316
|
+
/**
|
104317
|
+
* Creates an OperationEscrowFinish message from a plain object. Also converts values to their respective internal types.
|
104318
|
+
* @function fromObject
|
104319
|
+
* @memberof TW.Ripple.Proto.OperationEscrowFinish
|
104320
|
+
* @static
|
104321
|
+
* @param {Object.<string,*>} object Plain object
|
104322
|
+
* @returns {TW.Ripple.Proto.OperationEscrowFinish} OperationEscrowFinish
|
104323
|
+
*/
|
104324
|
+
OperationEscrowFinish.fromObject = function fromObject(object) {
|
104325
|
+
if (object instanceof $root.TW.Ripple.Proto.OperationEscrowFinish)
|
104326
|
+
return object;
|
104327
|
+
var message = new $root.TW.Ripple.Proto.OperationEscrowFinish();
|
104328
|
+
if (object.owner != null)
|
104329
|
+
message.owner = String(object.owner);
|
104330
|
+
if (object.offerSequence != null)
|
104331
|
+
message.offerSequence = object.offerSequence | 0;
|
104332
|
+
if (object.condition != null)
|
104333
|
+
message.condition = String(object.condition);
|
104334
|
+
if (object.fulfillment != null)
|
104335
|
+
message.fulfillment = String(object.fulfillment);
|
104336
|
+
return message;
|
104337
|
+
};
|
104338
|
+
|
104339
|
+
/**
|
104340
|
+
* Creates a plain object from an OperationEscrowFinish message. Also converts values to other types if specified.
|
104341
|
+
* @function toObject
|
104342
|
+
* @memberof TW.Ripple.Proto.OperationEscrowFinish
|
104343
|
+
* @static
|
104344
|
+
* @param {TW.Ripple.Proto.OperationEscrowFinish} message OperationEscrowFinish
|
104345
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
104346
|
+
* @returns {Object.<string,*>} Plain object
|
104347
|
+
*/
|
104348
|
+
OperationEscrowFinish.toObject = function toObject(message, options) {
|
104349
|
+
if (!options)
|
104350
|
+
options = {};
|
104351
|
+
var object = {};
|
104352
|
+
if (options.defaults) {
|
104353
|
+
object.owner = "";
|
104354
|
+
object.offerSequence = 0;
|
104355
|
+
object.condition = "";
|
104356
|
+
object.fulfillment = "";
|
104357
|
+
}
|
104358
|
+
if (message.owner != null && message.hasOwnProperty("owner"))
|
104359
|
+
object.owner = message.owner;
|
104360
|
+
if (message.offerSequence != null && message.hasOwnProperty("offerSequence"))
|
104361
|
+
object.offerSequence = message.offerSequence;
|
104362
|
+
if (message.condition != null && message.hasOwnProperty("condition"))
|
104363
|
+
object.condition = message.condition;
|
104364
|
+
if (message.fulfillment != null && message.hasOwnProperty("fulfillment"))
|
104365
|
+
object.fulfillment = message.fulfillment;
|
104366
|
+
return object;
|
104367
|
+
};
|
104368
|
+
|
104369
|
+
/**
|
104370
|
+
* Converts this OperationEscrowFinish to JSON.
|
104371
|
+
* @function toJSON
|
104372
|
+
* @memberof TW.Ripple.Proto.OperationEscrowFinish
|
104373
|
+
* @instance
|
104374
|
+
* @returns {Object.<string,*>} JSON object
|
104375
|
+
*/
|
104376
|
+
OperationEscrowFinish.prototype.toJSON = function toJSON() {
|
104377
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
104378
|
+
};
|
104379
|
+
|
104380
|
+
return OperationEscrowFinish;
|
104381
|
+
})();
|
104382
|
+
|
103652
104383
|
Proto.OperationNFTokenBurn = (function() {
|
103653
104384
|
|
103654
104385
|
/**
|
@@ -104368,6 +105099,9 @@
|
|
104368
105099
|
* @property {TW.Ripple.Proto.IOperationNFTokenCreateOffer|null} [opNftokenCreateOffer] SigningInput opNftokenCreateOffer
|
104369
105100
|
* @property {TW.Ripple.Proto.IOperationNFTokenAcceptOffer|null} [opNftokenAcceptOffer] SigningInput opNftokenAcceptOffer
|
104370
105101
|
* @property {TW.Ripple.Proto.IOperationNFTokenCancelOffer|null} [opNftokenCancelOffer] SigningInput opNftokenCancelOffer
|
105102
|
+
* @property {TW.Ripple.Proto.IOperationEscrowCreate|null} [opEscrowCreate] SigningInput opEscrowCreate
|
105103
|
+
* @property {TW.Ripple.Proto.IOperationEscrowCancel|null} [opEscrowCancel] SigningInput opEscrowCancel
|
105104
|
+
* @property {TW.Ripple.Proto.IOperationEscrowFinish|null} [opEscrowFinish] SigningInput opEscrowFinish
|
104371
105105
|
* @property {Uint8Array|null} [publicKey] SigningInput publicKey
|
104372
105106
|
*/
|
104373
105107
|
|
@@ -104482,6 +105216,30 @@
|
|
104482
105216
|
*/
|
104483
105217
|
SigningInput.prototype.opNftokenCancelOffer = null;
|
104484
105218
|
|
105219
|
+
/**
|
105220
|
+
* SigningInput opEscrowCreate.
|
105221
|
+
* @member {TW.Ripple.Proto.IOperationEscrowCreate|null|undefined} opEscrowCreate
|
105222
|
+
* @memberof TW.Ripple.Proto.SigningInput
|
105223
|
+
* @instance
|
105224
|
+
*/
|
105225
|
+
SigningInput.prototype.opEscrowCreate = null;
|
105226
|
+
|
105227
|
+
/**
|
105228
|
+
* SigningInput opEscrowCancel.
|
105229
|
+
* @member {TW.Ripple.Proto.IOperationEscrowCancel|null|undefined} opEscrowCancel
|
105230
|
+
* @memberof TW.Ripple.Proto.SigningInput
|
105231
|
+
* @instance
|
105232
|
+
*/
|
105233
|
+
SigningInput.prototype.opEscrowCancel = null;
|
105234
|
+
|
105235
|
+
/**
|
105236
|
+
* SigningInput opEscrowFinish.
|
105237
|
+
* @member {TW.Ripple.Proto.IOperationEscrowFinish|null|undefined} opEscrowFinish
|
105238
|
+
* @memberof TW.Ripple.Proto.SigningInput
|
105239
|
+
* @instance
|
105240
|
+
*/
|
105241
|
+
SigningInput.prototype.opEscrowFinish = null;
|
105242
|
+
|
104485
105243
|
/**
|
104486
105244
|
* SigningInput publicKey.
|
104487
105245
|
* @member {Uint8Array} publicKey
|
@@ -104495,12 +105253,12 @@
|
|
104495
105253
|
|
104496
105254
|
/**
|
104497
105255
|
* SigningInput operationOneof.
|
104498
|
-
* @member {"opTrustSet"|"opPayment"|"opNftokenBurn"|"opNftokenCreateOffer"|"opNftokenAcceptOffer"|"opNftokenCancelOffer"|undefined} operationOneof
|
105256
|
+
* @member {"opTrustSet"|"opPayment"|"opNftokenBurn"|"opNftokenCreateOffer"|"opNftokenAcceptOffer"|"opNftokenCancelOffer"|"opEscrowCreate"|"opEscrowCancel"|"opEscrowFinish"|undefined} operationOneof
|
104499
105257
|
* @memberof TW.Ripple.Proto.SigningInput
|
104500
105258
|
* @instance
|
104501
105259
|
*/
|
104502
105260
|
Object.defineProperty(SigningInput.prototype, "operationOneof", {
|
104503
|
-
get: $util.oneOfGetter($oneOfFields = ["opTrustSet", "opPayment", "opNftokenBurn", "opNftokenCreateOffer", "opNftokenAcceptOffer", "opNftokenCancelOffer"]),
|
105261
|
+
get: $util.oneOfGetter($oneOfFields = ["opTrustSet", "opPayment", "opNftokenBurn", "opNftokenCreateOffer", "opNftokenAcceptOffer", "opNftokenCancelOffer", "opEscrowCreate", "opEscrowCancel", "opEscrowFinish"]),
|
104504
105262
|
set: $util.oneOfSetter($oneOfFields)
|
104505
105263
|
});
|
104506
105264
|
|
@@ -104554,6 +105312,12 @@
|
|
104554
105312
|
$root.TW.Ripple.Proto.OperationNFTokenCancelOffer.encode(message.opNftokenCancelOffer, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
104555
105313
|
if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey"))
|
104556
105314
|
writer.uint32(/* id 15, wireType 2 =*/122).bytes(message.publicKey);
|
105315
|
+
if (message.opEscrowCreate != null && Object.hasOwnProperty.call(message, "opEscrowCreate"))
|
105316
|
+
$root.TW.Ripple.Proto.OperationEscrowCreate.encode(message.opEscrowCreate, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
105317
|
+
if (message.opEscrowCancel != null && Object.hasOwnProperty.call(message, "opEscrowCancel"))
|
105318
|
+
$root.TW.Ripple.Proto.OperationEscrowCancel.encode(message.opEscrowCancel, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
105319
|
+
if (message.opEscrowFinish != null && Object.hasOwnProperty.call(message, "opEscrowFinish"))
|
105320
|
+
$root.TW.Ripple.Proto.OperationEscrowFinish.encode(message.opEscrowFinish, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
104557
105321
|
return writer;
|
104558
105322
|
};
|
104559
105323
|
|
@@ -104611,6 +105375,15 @@
|
|
104611
105375
|
case 12:
|
104612
105376
|
message.opNftokenCancelOffer = $root.TW.Ripple.Proto.OperationNFTokenCancelOffer.decode(reader, reader.uint32());
|
104613
105377
|
break;
|
105378
|
+
case 16:
|
105379
|
+
message.opEscrowCreate = $root.TW.Ripple.Proto.OperationEscrowCreate.decode(reader, reader.uint32());
|
105380
|
+
break;
|
105381
|
+
case 17:
|
105382
|
+
message.opEscrowCancel = $root.TW.Ripple.Proto.OperationEscrowCancel.decode(reader, reader.uint32());
|
105383
|
+
break;
|
105384
|
+
case 18:
|
105385
|
+
message.opEscrowFinish = $root.TW.Ripple.Proto.OperationEscrowFinish.decode(reader, reader.uint32());
|
105386
|
+
break;
|
104614
105387
|
case 15:
|
104615
105388
|
message.publicKey = reader.bytes();
|
104616
105389
|
break;
|
@@ -104710,6 +105483,36 @@
|
|
104710
105483
|
return "opNftokenCancelOffer." + error;
|
104711
105484
|
}
|
104712
105485
|
}
|
105486
|
+
if (message.opEscrowCreate != null && message.hasOwnProperty("opEscrowCreate")) {
|
105487
|
+
if (properties.operationOneof === 1)
|
105488
|
+
return "operationOneof: multiple values";
|
105489
|
+
properties.operationOneof = 1;
|
105490
|
+
{
|
105491
|
+
var error = $root.TW.Ripple.Proto.OperationEscrowCreate.verify(message.opEscrowCreate);
|
105492
|
+
if (error)
|
105493
|
+
return "opEscrowCreate." + error;
|
105494
|
+
}
|
105495
|
+
}
|
105496
|
+
if (message.opEscrowCancel != null && message.hasOwnProperty("opEscrowCancel")) {
|
105497
|
+
if (properties.operationOneof === 1)
|
105498
|
+
return "operationOneof: multiple values";
|
105499
|
+
properties.operationOneof = 1;
|
105500
|
+
{
|
105501
|
+
var error = $root.TW.Ripple.Proto.OperationEscrowCancel.verify(message.opEscrowCancel);
|
105502
|
+
if (error)
|
105503
|
+
return "opEscrowCancel." + error;
|
105504
|
+
}
|
105505
|
+
}
|
105506
|
+
if (message.opEscrowFinish != null && message.hasOwnProperty("opEscrowFinish")) {
|
105507
|
+
if (properties.operationOneof === 1)
|
105508
|
+
return "operationOneof: multiple values";
|
105509
|
+
properties.operationOneof = 1;
|
105510
|
+
{
|
105511
|
+
var error = $root.TW.Ripple.Proto.OperationEscrowFinish.verify(message.opEscrowFinish);
|
105512
|
+
if (error)
|
105513
|
+
return "opEscrowFinish." + error;
|
105514
|
+
}
|
105515
|
+
}
|
104713
105516
|
if (message.publicKey != null && message.hasOwnProperty("publicKey"))
|
104714
105517
|
if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey)))
|
104715
105518
|
return "publicKey: buffer expected";
|
@@ -104787,6 +105590,21 @@
|
|
104787
105590
|
throw TypeError(".TW.Ripple.Proto.SigningInput.opNftokenCancelOffer: object expected");
|
104788
105591
|
message.opNftokenCancelOffer = $root.TW.Ripple.Proto.OperationNFTokenCancelOffer.fromObject(object.opNftokenCancelOffer);
|
104789
105592
|
}
|
105593
|
+
if (object.opEscrowCreate != null) {
|
105594
|
+
if (typeof object.opEscrowCreate !== "object")
|
105595
|
+
throw TypeError(".TW.Ripple.Proto.SigningInput.opEscrowCreate: object expected");
|
105596
|
+
message.opEscrowCreate = $root.TW.Ripple.Proto.OperationEscrowCreate.fromObject(object.opEscrowCreate);
|
105597
|
+
}
|
105598
|
+
if (object.opEscrowCancel != null) {
|
105599
|
+
if (typeof object.opEscrowCancel !== "object")
|
105600
|
+
throw TypeError(".TW.Ripple.Proto.SigningInput.opEscrowCancel: object expected");
|
105601
|
+
message.opEscrowCancel = $root.TW.Ripple.Proto.OperationEscrowCancel.fromObject(object.opEscrowCancel);
|
105602
|
+
}
|
105603
|
+
if (object.opEscrowFinish != null) {
|
105604
|
+
if (typeof object.opEscrowFinish !== "object")
|
105605
|
+
throw TypeError(".TW.Ripple.Proto.SigningInput.opEscrowFinish: object expected");
|
105606
|
+
message.opEscrowFinish = $root.TW.Ripple.Proto.OperationEscrowFinish.fromObject(object.opEscrowFinish);
|
105607
|
+
}
|
104790
105608
|
if (object.publicKey != null)
|
104791
105609
|
if (typeof object.publicKey === "string")
|
104792
105610
|
$util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0);
|
@@ -104887,6 +105705,21 @@
|
|
104887
105705
|
}
|
104888
105706
|
if (message.publicKey != null && message.hasOwnProperty("publicKey"))
|
104889
105707
|
object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey;
|
105708
|
+
if (message.opEscrowCreate != null && message.hasOwnProperty("opEscrowCreate")) {
|
105709
|
+
object.opEscrowCreate = $root.TW.Ripple.Proto.OperationEscrowCreate.toObject(message.opEscrowCreate, options);
|
105710
|
+
if (options.oneofs)
|
105711
|
+
object.operationOneof = "opEscrowCreate";
|
105712
|
+
}
|
105713
|
+
if (message.opEscrowCancel != null && message.hasOwnProperty("opEscrowCancel")) {
|
105714
|
+
object.opEscrowCancel = $root.TW.Ripple.Proto.OperationEscrowCancel.toObject(message.opEscrowCancel, options);
|
105715
|
+
if (options.oneofs)
|
105716
|
+
object.operationOneof = "opEscrowCancel";
|
105717
|
+
}
|
105718
|
+
if (message.opEscrowFinish != null && message.hasOwnProperty("opEscrowFinish")) {
|
105719
|
+
object.opEscrowFinish = $root.TW.Ripple.Proto.OperationEscrowFinish.toObject(message.opEscrowFinish, options);
|
105720
|
+
if (options.oneofs)
|
105721
|
+
object.operationOneof = "opEscrowFinish";
|
105722
|
+
}
|
104890
105723
|
return object;
|
104891
105724
|
};
|
104892
105725
|
|
package/dist/lib/wallet-core.js
CHANGED
@@ -34,7 +34,7 @@ function Ua(){Qa++;g.monitorRunDependencies&&g.monitorRunDependencies(Qa);assert
|
|
34
34
|
function Va(){return G.startsWith("data:application/octet-stream;base64,")}function ma(a){return a.startsWith("file://")}function H(a){return function(){var b=g.asm;assert(Oa,"native function `"+a+"` called before runtime initialization");b[a]||assert(b[a],"exported native function `"+a+"` not found");return b[a].apply(null,arguments)}}var G;G="wallet-core.wasm";if(!Va()){var Wa=G;G=g.locateFile?g.locateFile(Wa,w):w+Wa}
|
35
35
|
function Xa(){var a=G;try{if(a==G&&qa)return new Uint8Array(qa);if(ka)return ka(a);throw"both async and sync fetching of the wasm failed";}catch(b){p(b)}}
|
36
36
|
function Ya(){if(!qa&&(ea||fa)){if("function"==typeof fetch&&!ma(G))return fetch(G,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+G+"'";return a.arrayBuffer()}).catch(function(){return Xa()});if(ja)return new Promise(function(a,b){ja(G,function(c){a(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return Xa()})}
|
37
|
-
var Za,$a,ab={
|
37
|
+
var Za,$a,ab={2159508:()=>{if(void 0===g.ea)try{var a="object"===typeof window?window:self,b="undefined"!==typeof a.crypto?a.crypto:a.msCrypto;a=function(){var d=new Uint32Array(1);b.getRandomValues(d);return d[0]>>>0};a();g.ea=a}catch(d){try{var c=require("crypto");a=function(){var e=c.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};a();g.ea=a}catch(e){throw"No secure random number generator found";}}},2160230:()=>g.ea()};function bb(a){for(;0<a.length;)a.shift()(g)}
|
38
38
|
function va(a){assert("number"===typeof a);return"0x"+a.toString(16).padStart(8,"0")}function pa(a){cb||(cb={});cb[a]||(cb[a]=1,v&&(a="warning: "+a),y(a))}var cb,db=0;
|
39
39
|
function eb(a){this.l=a-24;this.Ta=function(b){F[this.l+4>>2]=b};this.Da=function(){return F[this.l+4>>2]};this.Ja=function(b){F[this.l+8>>2]=b};this.Ka=function(){D[this.l>>2]=0};this.Ia=function(){B[this.l+12>>0]=0};this.Na=function(){B[this.l+13>>0]=0};this.Ea=function(b,c){this.F(0);this.Ta(b);this.Ja(c);this.Ka();this.Ia();this.Na()};this.F=function(b){F[this.l+16>>2]=b}}
|
40
40
|
var fb=0,gb=(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},hb=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=gb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},ib=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},jb=
|
@@ -155,13 +155,13 @@ var zd=g._malloc=H("malloc"),Pd=g.___errno_location=H("__errno_location"),V=g._f
|
|
155
155
|
var X=g._setThrew=H("setThrew"),Nd=g.setTempRet0=H("setTempRet0"),re=g._emscripten_stack_init=function(){return(re=g._emscripten_stack_init=g.asm.emscripten_stack_init).apply(null,arguments)};g._emscripten_stack_get_free=function(){return(g._emscripten_stack_get_free=g.asm.emscripten_stack_get_free).apply(null,arguments)};g._emscripten_stack_get_base=function(){return(g._emscripten_stack_get_base=g.asm.emscripten_stack_get_base).apply(null,arguments)};
|
156
156
|
var Ha=g._emscripten_stack_get_end=function(){return(Ha=g._emscripten_stack_get_end=g.asm.emscripten_stack_get_end).apply(null,arguments)},Y=g.stackSave=H("stackSave"),Z=g.stackRestore=H("stackRestore");g.stackAlloc=H("stackAlloc");g._emscripten_stack_get_current=function(){return(g._emscripten_stack_get_current=g.asm.emscripten_stack_get_current).apply(null,arguments)};g.___cxa_free_exception=H("__cxa_free_exception");var Od=g.___cxa_can_catch=H("__cxa_can_catch");g.___cxa_is_pointer_type=H("__cxa_is_pointer_type");
|
157
157
|
g.dynCall_iiiiij=H("dynCall_iiiiij");g.dynCall_iiiij=H("dynCall_iiiij");var se=g.dynCall_jii=H("dynCall_jii");g.dynCall_ji=H("dynCall_ji");g.dynCall_iiji=H("dynCall_iiji");g.dynCall_iiiji=H("dynCall_iiiji");var te=g.dynCall_jiii=H("dynCall_jiii");g.dynCall_jiiii=H("dynCall_jiiii");g.dynCall_iiij=H("dynCall_iiij");g.dynCall_jijjj=H("dynCall_jijjj");g.dynCall_jij=H("dynCall_jij");var ue=g.dynCall_viijii=H("dynCall_viijii");g.dynCall_viiiijijji=H("dynCall_viiiijijji");
|
158
|
-
var ve=g.dynCall_jj=H("dynCall_jj"),we=g.dynCall_vij=H("dynCall_vij"),xe=g.
|
158
|
+
var ve=g.dynCall_jj=H("dynCall_jj"),we=g.dynCall_vij=H("dynCall_vij"),xe=g.dynCall_viiij=H("dynCall_viiij"),ye=g.dynCall_iijj=H("dynCall_iijj"),ze=g.dynCall_viiiiiji=H("dynCall_viiiiiji"),Ae=g.dynCall_viijj=H("dynCall_viijj"),Be=g.dynCall_viiijii=H("dynCall_viiijii"),Ce=g.dynCall_viij=H("dynCall_viij");g.dynCall_iij=H("dynCall_iij");g.dynCall_viji=H("dynCall_viji");g.dynCall_jiji=H("dynCall_jiji");g.dynCall_iiiiijj=H("dynCall_iiiiijj");g.dynCall_iiiiiijj=H("dynCall_iiiiiijj");
|
159
159
|
function ce(a,b,c){var d=Y();try{U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function be(a,b){var c=Y();try{U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function de(a,b,c,d){var e=Y();try{U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function fe(a,b,c,d,e,f){var h=Y();try{U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function Sd(a,b,c){var d=Y();try{return U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}
|
160
|
-
function ee(a,b,c,d,e){var f=Y();try{U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function Qd(a){var b=Y();try{return U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function Rd(a,b){var c=Y();try{return U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function ae(a){var b=Y();try{U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function
|
161
|
-
function
|
160
|
+
function ee(a,b,c,d,e){var f=Y();try{U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function Qd(a){var b=Y();try{return U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function Rd(a,b){var c=Y();try{return U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function ae(a){var b=Y();try{U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function Ud(a,b,c,d,e){var f=Y();try{return U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}
|
161
|
+
function Td(a,b,c,d){var e=Y();try{return U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function ge(a,b,c,d,e,f,h){var l=Y();try{U(a)(b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function Vd(a,b,c,d,e,f){var h=Y();try{return U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function he(a,b,c,d,e,f,h,l){var n=Y();try{U(a)(b,c,d,e,f,h,l)}catch(m){Z(n);if(m!==m+0)throw m;X(1,0)}}
|
162
162
|
function Wd(a,b,c,d,e,f,h){var l=Y();try{return U(a)(b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function ie(a,b,c,d,e,f,h,l,n){var m=Y();try{U(a)(b,c,d,e,f,h,l,n)}catch(q){Z(m);if(q!==q+0)throw q;X(1,0)}}function $d(a,b,c){var d=Y();try{return ve(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function pe(a,b,c,d){var e=Y();try{we(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function Yd(a,b,c){var d=Y();try{return se(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}
|
163
|
-
function
|
164
|
-
function
|
163
|
+
function ke(a,b,c,d,e,f){var h=Y();try{xe(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function Xd(a,b,c,d,e,f){var h=Y();try{return ye(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function je(a,b,c,d,e,f,h,l,n){var m=Y();try{ze(a,b,c,d,e,f,h,l,n)}catch(q){Z(m);if(q!==q+0)throw q;X(1,0)}}function Zd(a,b,c,d){var e=Y();try{return te(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}
|
164
|
+
function ne(a,b,c,d,e,f,h){var l=Y();try{ue(a,b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function oe(a,b,c,d,e,f,h){var l=Y();try{Ae(a,b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function le(a,b,c,d,e,f,h,l){var n=Y();try{Be(a,b,c,d,e,f,h,l)}catch(m){Z(n);if(m!==m+0)throw m;X(1,0)}}function me(a,b,c,d,e){var f=Y();try{Ce(a,b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}
|
165
165
|
"run UTF8ArrayToString UTF8ToString stringToUTF8Array stringToUTF8 lengthBytesUTF8 addOnPreRun addOnInit addOnPreMain addOnExit addOnPostRun addRunDependency removeRunDependency FS_createFolder FS_createPath FS_createDataFile FS_createPreloadedFile FS_createLazyFile FS_createLink FS_createDevice FS_unlink getLEB getFunctionTables alignFunctionTables registerFunctions prettyPrint getCompilerSetting out err callMain abort keepRuntimeAlive wasmMemory stackAlloc stackSave stackRestore getTempRet0 setTempRet0 writeStackCookie checkStackCookie ptrToString zeroMemory stringToNewUTF8 exitJS getHeapMax emscripten_realloc_buffer ENV ERRNO_CODES ERRNO_MESSAGES setErrNo inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr DNS getHostByName Protocols Sockets getRandomDevice warnOnce traverseStack UNWIND_CACHE convertPCtoSourceLocation readEmAsmArgsArray readEmAsmArgs runEmAsmFunction runMainThreadEmAsm jstoi_q jstoi_s getExecutableName listenOnce autoResumeAudioContext dynCallLegacy getDynCaller dynCall handleException runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit safeSetTimeout asmjsMangle asyncLoad alignMemory mmapAlloc handleAllocator writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromI64 readI53FromU64 convertI32PairToI53 convertI32PairToI53Checked convertU32PairToI53 getCFunc ccall cwrap uleb128Encode sigToWasmTypes generateFuncType convertJsFunctionToWasm freeTableIndexes functionsInTableMap getEmptyTableSlot updateTableMap addFunction removeFunction reallyNegative unSign strLen reSign formatString setValue getValue PATH PATH_FS intArrayFromString intArrayToString AsciiToString stringToAscii UTF16Decoder UTF16ToString stringToUTF16 lengthBytesUTF16 UTF32ToString stringToUTF32 lengthBytesUTF32 allocateUTF8 allocateUTF8OnStack writeStringToMemory writeArrayToMemory writeAsciiToMemory SYSCALLS getSocketFromFD getSocketAddress JSEvents registerKeyEventCallback specialHTMLTargets maybeCStringToJsString findEventTarget findCanvasEventTarget getBoundingClientRect fillMouseEventData registerMouseEventCallback registerWheelEventCallback registerUiEventCallback registerFocusEventCallback fillDeviceOrientationEventData registerDeviceOrientationEventCallback fillDeviceMotionEventData registerDeviceMotionEventCallback screenOrientation fillOrientationChangeEventData registerOrientationChangeEventCallback fillFullscreenChangeEventData registerFullscreenChangeEventCallback JSEvents_requestFullscreen JSEvents_resizeCanvasForFullscreen registerRestoreOldStyle hideEverythingExceptGivenElement restoreHiddenElements setLetterbox currentFullscreenStrategy restoreOldWindowedStyle softFullscreenResizeWebGLRenderTarget doRequestFullscreen fillPointerlockChangeEventData registerPointerlockChangeEventCallback registerPointerlockErrorEventCallback requestPointerLock fillVisibilityChangeEventData registerVisibilityChangeEventCallback registerTouchEventCallback fillGamepadEventData registerGamepadEventCallback registerBeforeUnloadEventCallback fillBatteryEventData battery registerBatteryEventCallback setCanvasElementSize getCanvasElementSize demangle demangleAll jsStackTrace stackTrace ExitStatus getEnvStrings checkWasiClock doReadv doWritev createDyncallWrapper setImmediateWrapped clearImmediateWrapped polyfillSetImmediate promiseMap newNativePromise getPromise uncaughtExceptionCount exceptionLast exceptionCaught ExceptionInfo exception_addRef exception_decRef Browser setMainLoop wget FS MEMFS TTY PIPEFS SOCKFS _setNetworkCallback InternalError BindingError UnboundTypeError PureVirtualError init_embind throwInternalError throwBindingError throwUnboundTypeError ensureOverloadTable exposePublicSymbol replacePublicSymbol extendError createNamedFunction embindRepr registeredInstances getBasestPointer registerInheritedInstance unregisterInheritedInstance getInheritedInstance getInheritedInstanceCount getLiveInheritedInstances registeredTypes awaitingDependencies typeDependencies registeredPointers registerType whenDependentTypesAreResolved embind_charCodes embind_init_charCodes readLatin1String getTypeName heap32VectorToArray requireRegisteredType getShiftFromSize integerReadValueFromPointer enumReadValueFromPointer floatReadValueFromPointer simpleReadValueFromPointer runDestructors new_ craftInvokerFunction embind__requireFunction tupleRegistrations structRegistrations genericPointerToWireType constNoSmartPtrRawPointerToWireType nonConstNoSmartPtrRawPointerToWireType init_RegisteredPointer RegisteredPointer RegisteredPointer_getPointee RegisteredPointer_destructor RegisteredPointer_deleteObject RegisteredPointer_fromWireType runDestructor releaseClassHandle finalizationRegistry detachFinalizer_deps detachFinalizer attachFinalizer makeClassHandle init_ClassHandle ClassHandle ClassHandle_isAliasOf throwInstanceAlreadyDeleted ClassHandle_clone ClassHandle_delete deletionQueue ClassHandle_isDeleted ClassHandle_deleteLater flushPendingDeletes delayFunction setDelayFunction RegisteredClass shallowCopyInternalPointer downcastPointer upcastPointer validateThis char_0 char_9 makeLegalFunctionName emval_handle_array emval_free_list emval_symbols init_emval count_emval_handles get_first_emval getStringOrSymbol Emval emval_newers craftEmvalAllocator emval_get_global emval_lookupTypes emval_allocateDestructors emval_methodCallers emval_addMethodCaller emval_registeredMethods".split(" ").forEach(function(a){Object.getOwnPropertyDescriptor(g,a)||
|
166
166
|
Object.defineProperty(g,a,{configurable:!0,get:function(){var b="'"+a+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)";oa(a)&&(b+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you");p(b)}})});
|
167
167
|
"stringToNewUTF8 exitJS inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr getHostByName traverseStack convertPCtoSourceLocation runMainThreadEmAsm jstoi_q jstoi_s listenOnce autoResumeAudioContext handleException runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit safeSetTimeout asmjsMangle handleAllocator writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromU64 convertI32PairToI53 convertU32PairToI53 getCFunc ccall cwrap uleb128Encode sigToWasmTypes generateFuncType convertJsFunctionToWasm getEmptyTableSlot updateTableMap addFunction removeFunction reallyNegative unSign strLen reSign formatString intArrayToString AsciiToString stringToAscii allocateUTF8OnStack writeStringToMemory getSocketFromFD getSocketAddress registerKeyEventCallback maybeCStringToJsString findEventTarget findCanvasEventTarget getBoundingClientRect fillMouseEventData registerMouseEventCallback registerWheelEventCallback registerUiEventCallback registerFocusEventCallback fillDeviceOrientationEventData registerDeviceOrientationEventCallback fillDeviceMotionEventData registerDeviceMotionEventCallback screenOrientation fillOrientationChangeEventData registerOrientationChangeEventCallback fillFullscreenChangeEventData registerFullscreenChangeEventCallback JSEvents_requestFullscreen JSEvents_resizeCanvasForFullscreen registerRestoreOldStyle hideEverythingExceptGivenElement restoreHiddenElements setLetterbox softFullscreenResizeWebGLRenderTarget doRequestFullscreen fillPointerlockChangeEventData registerPointerlockChangeEventCallback registerPointerlockErrorEventCallback requestPointerLock fillVisibilityChangeEventData registerVisibilityChangeEventCallback registerTouchEventCallback fillGamepadEventData registerGamepadEventCallback registerBeforeUnloadEventCallback fillBatteryEventData battery registerBatteryEventCallback setCanvasElementSize getCanvasElementSize jsStackTrace stackTrace checkWasiClock createDyncallWrapper setImmediateWrapped clearImmediateWrapped polyfillSetImmediate newNativePromise getPromise exception_addRef exception_decRef setMainLoop _setNetworkCallback registerInheritedInstance unregisterInheritedInstance validateThis".split(" ").forEach(function(a){"undefined"===typeof globalThis||
|
Binary file
|
@@ -939,7 +939,6 @@ export class TezosMessageSigner {
|
|
939
939
|
static verifyMessage(pubKey: PublicKey, message: string, signature: string): boolean;
|
940
940
|
}
|
941
941
|
export class TransactionCompiler {
|
942
|
-
static buildInput(coinType: CoinType, from: string, to: string, amount: string, asset: string, memo: string, chainId: string): Uint8Array;
|
943
942
|
static preImageHashes(coinType: CoinType, txInputData: Uint8Array | Buffer): Uint8Array;
|
944
943
|
static compileWithSignatures(coinType: CoinType, txInputData: Uint8Array | Buffer, signatures: DataVector, publicKeys: DataVector): Uint8Array;
|
945
944
|
static compileWithSignaturesAndPubKeyType(coinType: CoinType, txInputData: Uint8Array | Buffer, signatures: DataVector, publicKeys: DataVector, pubKeyType: PublicKeyType): Uint8Array;
|