@trustwallet/wallet-core 4.2.10 → 4.2.12
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.
@@ -9578,6 +9578,9 @@ export namespace TW {
|
|
9578
9578
|
|
9579
9579
|
/** SigningOutput zcash */
|
9580
9580
|
zcash?: (TW.Zcash.Proto.ITransaction|null);
|
9581
|
+
|
9582
|
+
/** SigningOutput decred */
|
9583
|
+
decred?: (TW.DecredV2.Proto.ITransaction|null);
|
9581
9584
|
}
|
9582
9585
|
|
9583
9586
|
/** Represents a SigningOutput. */
|
@@ -9619,8 +9622,11 @@ export namespace TW {
|
|
9619
9622
|
/** SigningOutput zcash. */
|
9620
9623
|
public zcash?: (TW.Zcash.Proto.ITransaction|null);
|
9621
9624
|
|
9625
|
+
/** SigningOutput decred. */
|
9626
|
+
public decred?: (TW.DecredV2.Proto.ITransaction|null);
|
9627
|
+
|
9622
9628
|
/** SigningOutput transaction. */
|
9623
|
-
public transaction?: ("bitcoin"|"zcash");
|
9629
|
+
public transaction?: ("bitcoin"|"zcash"|"decred");
|
9624
9630
|
|
9625
9631
|
/**
|
9626
9632
|
* Creates a new SigningOutput instance using the specified properties.
|
@@ -9678,6 +9684,390 @@ export namespace TW {
|
|
9678
9684
|
}
|
9679
9685
|
}
|
9680
9686
|
|
9687
|
+
/** Namespace DecredV2. */
|
9688
|
+
namespace DecredV2 {
|
9689
|
+
|
9690
|
+
/** Namespace Proto. */
|
9691
|
+
namespace Proto {
|
9692
|
+
|
9693
|
+
/** Properties of an OutPoint. */
|
9694
|
+
interface IOutPoint {
|
9695
|
+
|
9696
|
+
/** OutPoint hash */
|
9697
|
+
hash?: (Uint8Array|null);
|
9698
|
+
|
9699
|
+
/** OutPoint vout */
|
9700
|
+
vout?: (number|null);
|
9701
|
+
|
9702
|
+
/** OutPoint tree */
|
9703
|
+
tree?: (number|null);
|
9704
|
+
}
|
9705
|
+
|
9706
|
+
/** Represents an OutPoint. */
|
9707
|
+
class OutPoint implements IOutPoint {
|
9708
|
+
|
9709
|
+
/**
|
9710
|
+
* Constructs a new OutPoint.
|
9711
|
+
* @param [properties] Properties to set
|
9712
|
+
*/
|
9713
|
+
constructor(properties?: TW.DecredV2.Proto.IOutPoint);
|
9714
|
+
|
9715
|
+
/** OutPoint hash. */
|
9716
|
+
public hash: Uint8Array;
|
9717
|
+
|
9718
|
+
/** OutPoint vout. */
|
9719
|
+
public vout: number;
|
9720
|
+
|
9721
|
+
/** OutPoint tree. */
|
9722
|
+
public tree: number;
|
9723
|
+
|
9724
|
+
/**
|
9725
|
+
* Creates a new OutPoint instance using the specified properties.
|
9726
|
+
* @param [properties] Properties to set
|
9727
|
+
* @returns OutPoint instance
|
9728
|
+
*/
|
9729
|
+
public static create(properties?: TW.DecredV2.Proto.IOutPoint): TW.DecredV2.Proto.OutPoint;
|
9730
|
+
|
9731
|
+
/**
|
9732
|
+
* Encodes the specified OutPoint message. Does not implicitly {@link TW.DecredV2.Proto.OutPoint.verify|verify} messages.
|
9733
|
+
* @param message OutPoint message or plain object to encode
|
9734
|
+
* @param [writer] Writer to encode to
|
9735
|
+
* @returns Writer
|
9736
|
+
*/
|
9737
|
+
public static encode(message: TW.DecredV2.Proto.IOutPoint, writer?: $protobuf.Writer): $protobuf.Writer;
|
9738
|
+
|
9739
|
+
/**
|
9740
|
+
* Decodes an OutPoint message from the specified reader or buffer.
|
9741
|
+
* @param reader Reader or buffer to decode from
|
9742
|
+
* @param [length] Message length if known beforehand
|
9743
|
+
* @returns OutPoint
|
9744
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
9745
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9746
|
+
*/
|
9747
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.DecredV2.Proto.OutPoint;
|
9748
|
+
|
9749
|
+
/**
|
9750
|
+
* Verifies an OutPoint message.
|
9751
|
+
* @param message Plain object to verify
|
9752
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
9753
|
+
*/
|
9754
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
9755
|
+
|
9756
|
+
/**
|
9757
|
+
* Creates an OutPoint message from a plain object. Also converts values to their respective internal types.
|
9758
|
+
* @param object Plain object
|
9759
|
+
* @returns OutPoint
|
9760
|
+
*/
|
9761
|
+
public static fromObject(object: { [k: string]: any }): TW.DecredV2.Proto.OutPoint;
|
9762
|
+
|
9763
|
+
/**
|
9764
|
+
* Creates a plain object from an OutPoint message. Also converts values to other types if specified.
|
9765
|
+
* @param message OutPoint
|
9766
|
+
* @param [options] Conversion options
|
9767
|
+
* @returns Plain object
|
9768
|
+
*/
|
9769
|
+
public static toObject(message: TW.DecredV2.Proto.OutPoint, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9770
|
+
|
9771
|
+
/**
|
9772
|
+
* Converts this OutPoint to JSON.
|
9773
|
+
* @returns JSON object
|
9774
|
+
*/
|
9775
|
+
public toJSON(): { [k: string]: any };
|
9776
|
+
}
|
9777
|
+
|
9778
|
+
/** Properties of a Transaction. */
|
9779
|
+
interface ITransaction {
|
9780
|
+
|
9781
|
+
/** Transaction serializeType */
|
9782
|
+
serializeType?: (number|null);
|
9783
|
+
|
9784
|
+
/** Transaction version */
|
9785
|
+
version?: (number|null);
|
9786
|
+
|
9787
|
+
/** Transaction inputs */
|
9788
|
+
inputs?: (TW.DecredV2.Proto.ITransactionInput[]|null);
|
9789
|
+
|
9790
|
+
/** Transaction outputs */
|
9791
|
+
outputs?: (TW.DecredV2.Proto.ITransactionOutput[]|null);
|
9792
|
+
|
9793
|
+
/** Transaction lockTime */
|
9794
|
+
lockTime?: (number|null);
|
9795
|
+
|
9796
|
+
/** Transaction expiry */
|
9797
|
+
expiry?: (number|null);
|
9798
|
+
}
|
9799
|
+
|
9800
|
+
/** Represents a Transaction. */
|
9801
|
+
class Transaction implements ITransaction {
|
9802
|
+
|
9803
|
+
/**
|
9804
|
+
* Constructs a new Transaction.
|
9805
|
+
* @param [properties] Properties to set
|
9806
|
+
*/
|
9807
|
+
constructor(properties?: TW.DecredV2.Proto.ITransaction);
|
9808
|
+
|
9809
|
+
/** Transaction serializeType. */
|
9810
|
+
public serializeType: number;
|
9811
|
+
|
9812
|
+
/** Transaction version. */
|
9813
|
+
public version: number;
|
9814
|
+
|
9815
|
+
/** Transaction inputs. */
|
9816
|
+
public inputs: TW.DecredV2.Proto.ITransactionInput[];
|
9817
|
+
|
9818
|
+
/** Transaction outputs. */
|
9819
|
+
public outputs: TW.DecredV2.Proto.ITransactionOutput[];
|
9820
|
+
|
9821
|
+
/** Transaction lockTime. */
|
9822
|
+
public lockTime: number;
|
9823
|
+
|
9824
|
+
/** Transaction expiry. */
|
9825
|
+
public expiry: number;
|
9826
|
+
|
9827
|
+
/**
|
9828
|
+
* Creates a new Transaction instance using the specified properties.
|
9829
|
+
* @param [properties] Properties to set
|
9830
|
+
* @returns Transaction instance
|
9831
|
+
*/
|
9832
|
+
public static create(properties?: TW.DecredV2.Proto.ITransaction): TW.DecredV2.Proto.Transaction;
|
9833
|
+
|
9834
|
+
/**
|
9835
|
+
* Encodes the specified Transaction message. Does not implicitly {@link TW.DecredV2.Proto.Transaction.verify|verify} messages.
|
9836
|
+
* @param message Transaction message or plain object to encode
|
9837
|
+
* @param [writer] Writer to encode to
|
9838
|
+
* @returns Writer
|
9839
|
+
*/
|
9840
|
+
public static encode(message: TW.DecredV2.Proto.ITransaction, writer?: $protobuf.Writer): $protobuf.Writer;
|
9841
|
+
|
9842
|
+
/**
|
9843
|
+
* Decodes a Transaction message from the specified reader or buffer.
|
9844
|
+
* @param reader Reader or buffer to decode from
|
9845
|
+
* @param [length] Message length if known beforehand
|
9846
|
+
* @returns Transaction
|
9847
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
9848
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9849
|
+
*/
|
9850
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.DecredV2.Proto.Transaction;
|
9851
|
+
|
9852
|
+
/**
|
9853
|
+
* Verifies a Transaction message.
|
9854
|
+
* @param message Plain object to verify
|
9855
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
9856
|
+
*/
|
9857
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
9858
|
+
|
9859
|
+
/**
|
9860
|
+
* Creates a Transaction message from a plain object. Also converts values to their respective internal types.
|
9861
|
+
* @param object Plain object
|
9862
|
+
* @returns Transaction
|
9863
|
+
*/
|
9864
|
+
public static fromObject(object: { [k: string]: any }): TW.DecredV2.Proto.Transaction;
|
9865
|
+
|
9866
|
+
/**
|
9867
|
+
* Creates a plain object from a Transaction message. Also converts values to other types if specified.
|
9868
|
+
* @param message Transaction
|
9869
|
+
* @param [options] Conversion options
|
9870
|
+
* @returns Plain object
|
9871
|
+
*/
|
9872
|
+
public static toObject(message: TW.DecredV2.Proto.Transaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9873
|
+
|
9874
|
+
/**
|
9875
|
+
* Converts this Transaction to JSON.
|
9876
|
+
* @returns JSON object
|
9877
|
+
*/
|
9878
|
+
public toJSON(): { [k: string]: any };
|
9879
|
+
}
|
9880
|
+
|
9881
|
+
/** Properties of a TransactionInput. */
|
9882
|
+
interface ITransactionInput {
|
9883
|
+
|
9884
|
+
/** TransactionInput outPoint */
|
9885
|
+
outPoint?: (TW.DecredV2.Proto.IOutPoint|null);
|
9886
|
+
|
9887
|
+
/** TransactionInput sequence */
|
9888
|
+
sequence?: (number|null);
|
9889
|
+
|
9890
|
+
/** TransactionInput value */
|
9891
|
+
value?: (Long|null);
|
9892
|
+
|
9893
|
+
/** TransactionInput blockHeight */
|
9894
|
+
blockHeight?: (number|null);
|
9895
|
+
|
9896
|
+
/** TransactionInput blockIndex */
|
9897
|
+
blockIndex?: (number|null);
|
9898
|
+
|
9899
|
+
/** TransactionInput scriptSig */
|
9900
|
+
scriptSig?: (Uint8Array|null);
|
9901
|
+
}
|
9902
|
+
|
9903
|
+
/** Represents a TransactionInput. */
|
9904
|
+
class TransactionInput implements ITransactionInput {
|
9905
|
+
|
9906
|
+
/**
|
9907
|
+
* Constructs a new TransactionInput.
|
9908
|
+
* @param [properties] Properties to set
|
9909
|
+
*/
|
9910
|
+
constructor(properties?: TW.DecredV2.Proto.ITransactionInput);
|
9911
|
+
|
9912
|
+
/** TransactionInput outPoint. */
|
9913
|
+
public outPoint?: (TW.DecredV2.Proto.IOutPoint|null);
|
9914
|
+
|
9915
|
+
/** TransactionInput sequence. */
|
9916
|
+
public sequence: number;
|
9917
|
+
|
9918
|
+
/** TransactionInput value. */
|
9919
|
+
public value: Long;
|
9920
|
+
|
9921
|
+
/** TransactionInput blockHeight. */
|
9922
|
+
public blockHeight: number;
|
9923
|
+
|
9924
|
+
/** TransactionInput blockIndex. */
|
9925
|
+
public blockIndex: number;
|
9926
|
+
|
9927
|
+
/** TransactionInput scriptSig. */
|
9928
|
+
public scriptSig: Uint8Array;
|
9929
|
+
|
9930
|
+
/**
|
9931
|
+
* Creates a new TransactionInput instance using the specified properties.
|
9932
|
+
* @param [properties] Properties to set
|
9933
|
+
* @returns TransactionInput instance
|
9934
|
+
*/
|
9935
|
+
public static create(properties?: TW.DecredV2.Proto.ITransactionInput): TW.DecredV2.Proto.TransactionInput;
|
9936
|
+
|
9937
|
+
/**
|
9938
|
+
* Encodes the specified TransactionInput message. Does not implicitly {@link TW.DecredV2.Proto.TransactionInput.verify|verify} messages.
|
9939
|
+
* @param message TransactionInput message or plain object to encode
|
9940
|
+
* @param [writer] Writer to encode to
|
9941
|
+
* @returns Writer
|
9942
|
+
*/
|
9943
|
+
public static encode(message: TW.DecredV2.Proto.ITransactionInput, writer?: $protobuf.Writer): $protobuf.Writer;
|
9944
|
+
|
9945
|
+
/**
|
9946
|
+
* Decodes a TransactionInput message from the specified reader or buffer.
|
9947
|
+
* @param reader Reader or buffer to decode from
|
9948
|
+
* @param [length] Message length if known beforehand
|
9949
|
+
* @returns TransactionInput
|
9950
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
9951
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9952
|
+
*/
|
9953
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.DecredV2.Proto.TransactionInput;
|
9954
|
+
|
9955
|
+
/**
|
9956
|
+
* Verifies a TransactionInput message.
|
9957
|
+
* @param message Plain object to verify
|
9958
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
9959
|
+
*/
|
9960
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
9961
|
+
|
9962
|
+
/**
|
9963
|
+
* Creates a TransactionInput message from a plain object. Also converts values to their respective internal types.
|
9964
|
+
* @param object Plain object
|
9965
|
+
* @returns TransactionInput
|
9966
|
+
*/
|
9967
|
+
public static fromObject(object: { [k: string]: any }): TW.DecredV2.Proto.TransactionInput;
|
9968
|
+
|
9969
|
+
/**
|
9970
|
+
* Creates a plain object from a TransactionInput message. Also converts values to other types if specified.
|
9971
|
+
* @param message TransactionInput
|
9972
|
+
* @param [options] Conversion options
|
9973
|
+
* @returns Plain object
|
9974
|
+
*/
|
9975
|
+
public static toObject(message: TW.DecredV2.Proto.TransactionInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
9976
|
+
|
9977
|
+
/**
|
9978
|
+
* Converts this TransactionInput to JSON.
|
9979
|
+
* @returns JSON object
|
9980
|
+
*/
|
9981
|
+
public toJSON(): { [k: string]: any };
|
9982
|
+
}
|
9983
|
+
|
9984
|
+
/** Properties of a TransactionOutput. */
|
9985
|
+
interface ITransactionOutput {
|
9986
|
+
|
9987
|
+
/** TransactionOutput value */
|
9988
|
+
value?: (Long|null);
|
9989
|
+
|
9990
|
+
/** TransactionOutput version */
|
9991
|
+
version?: (number|null);
|
9992
|
+
|
9993
|
+
/** TransactionOutput script */
|
9994
|
+
script?: (Uint8Array|null);
|
9995
|
+
}
|
9996
|
+
|
9997
|
+
/** Represents a TransactionOutput. */
|
9998
|
+
class TransactionOutput implements ITransactionOutput {
|
9999
|
+
|
10000
|
+
/**
|
10001
|
+
* Constructs a new TransactionOutput.
|
10002
|
+
* @param [properties] Properties to set
|
10003
|
+
*/
|
10004
|
+
constructor(properties?: TW.DecredV2.Proto.ITransactionOutput);
|
10005
|
+
|
10006
|
+
/** TransactionOutput value. */
|
10007
|
+
public value: Long;
|
10008
|
+
|
10009
|
+
/** TransactionOutput version. */
|
10010
|
+
public version: number;
|
10011
|
+
|
10012
|
+
/** TransactionOutput script. */
|
10013
|
+
public script: Uint8Array;
|
10014
|
+
|
10015
|
+
/**
|
10016
|
+
* Creates a new TransactionOutput instance using the specified properties.
|
10017
|
+
* @param [properties] Properties to set
|
10018
|
+
* @returns TransactionOutput instance
|
10019
|
+
*/
|
10020
|
+
public static create(properties?: TW.DecredV2.Proto.ITransactionOutput): TW.DecredV2.Proto.TransactionOutput;
|
10021
|
+
|
10022
|
+
/**
|
10023
|
+
* Encodes the specified TransactionOutput message. Does not implicitly {@link TW.DecredV2.Proto.TransactionOutput.verify|verify} messages.
|
10024
|
+
* @param message TransactionOutput message or plain object to encode
|
10025
|
+
* @param [writer] Writer to encode to
|
10026
|
+
* @returns Writer
|
10027
|
+
*/
|
10028
|
+
public static encode(message: TW.DecredV2.Proto.ITransactionOutput, writer?: $protobuf.Writer): $protobuf.Writer;
|
10029
|
+
|
10030
|
+
/**
|
10031
|
+
* Decodes a TransactionOutput message from the specified reader or buffer.
|
10032
|
+
* @param reader Reader or buffer to decode from
|
10033
|
+
* @param [length] Message length if known beforehand
|
10034
|
+
* @returns TransactionOutput
|
10035
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
10036
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10037
|
+
*/
|
10038
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.DecredV2.Proto.TransactionOutput;
|
10039
|
+
|
10040
|
+
/**
|
10041
|
+
* Verifies a TransactionOutput message.
|
10042
|
+
* @param message Plain object to verify
|
10043
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
10044
|
+
*/
|
10045
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
10046
|
+
|
10047
|
+
/**
|
10048
|
+
* Creates a TransactionOutput message from a plain object. Also converts values to their respective internal types.
|
10049
|
+
* @param object Plain object
|
10050
|
+
* @returns TransactionOutput
|
10051
|
+
*/
|
10052
|
+
public static fromObject(object: { [k: string]: any }): TW.DecredV2.Proto.TransactionOutput;
|
10053
|
+
|
10054
|
+
/**
|
10055
|
+
* Creates a plain object from a TransactionOutput message. Also converts values to other types if specified.
|
10056
|
+
* @param message TransactionOutput
|
10057
|
+
* @param [options] Conversion options
|
10058
|
+
* @returns Plain object
|
10059
|
+
*/
|
10060
|
+
public static toObject(message: TW.DecredV2.Proto.TransactionOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
10061
|
+
|
10062
|
+
/**
|
10063
|
+
* Converts this TransactionOutput to JSON.
|
10064
|
+
* @returns JSON object
|
10065
|
+
*/
|
10066
|
+
public toJSON(): { [k: string]: any };
|
10067
|
+
}
|
10068
|
+
}
|
10069
|
+
}
|
10070
|
+
|
9681
10071
|
/** Namespace Utxo. */
|
9682
10072
|
namespace Utxo {
|
9683
10073
|
|
@@ -10920,6 +11310,101 @@ export namespace TW {
|
|
10920
11310
|
public toJSON(): { [k: string]: any };
|
10921
11311
|
}
|
10922
11312
|
|
11313
|
+
/** Properties of a VoteDelegation. */
|
11314
|
+
interface IVoteDelegation {
|
11315
|
+
|
11316
|
+
/** VoteDelegation stakingAddress */
|
11317
|
+
stakingAddress?: (string|null);
|
11318
|
+
|
11319
|
+
/** VoteDelegation drepType */
|
11320
|
+
drepType?: (TW.Cardano.Proto.VoteDelegation.DRepType|null);
|
11321
|
+
|
11322
|
+
/** VoteDelegation drepId */
|
11323
|
+
drepId?: (string|null);
|
11324
|
+
}
|
11325
|
+
|
11326
|
+
/** Represents a VoteDelegation. */
|
11327
|
+
class VoteDelegation implements IVoteDelegation {
|
11328
|
+
|
11329
|
+
/**
|
11330
|
+
* Constructs a new VoteDelegation.
|
11331
|
+
* @param [properties] Properties to set
|
11332
|
+
*/
|
11333
|
+
constructor(properties?: TW.Cardano.Proto.IVoteDelegation);
|
11334
|
+
|
11335
|
+
/** VoteDelegation stakingAddress. */
|
11336
|
+
public stakingAddress: string;
|
11337
|
+
|
11338
|
+
/** VoteDelegation drepType. */
|
11339
|
+
public drepType: TW.Cardano.Proto.VoteDelegation.DRepType;
|
11340
|
+
|
11341
|
+
/** VoteDelegation drepId. */
|
11342
|
+
public drepId: string;
|
11343
|
+
|
11344
|
+
/**
|
11345
|
+
* Creates a new VoteDelegation instance using the specified properties.
|
11346
|
+
* @param [properties] Properties to set
|
11347
|
+
* @returns VoteDelegation instance
|
11348
|
+
*/
|
11349
|
+
public static create(properties?: TW.Cardano.Proto.IVoteDelegation): TW.Cardano.Proto.VoteDelegation;
|
11350
|
+
|
11351
|
+
/**
|
11352
|
+
* Encodes the specified VoteDelegation message. Does not implicitly {@link TW.Cardano.Proto.VoteDelegation.verify|verify} messages.
|
11353
|
+
* @param message VoteDelegation message or plain object to encode
|
11354
|
+
* @param [writer] Writer to encode to
|
11355
|
+
* @returns Writer
|
11356
|
+
*/
|
11357
|
+
public static encode(message: TW.Cardano.Proto.IVoteDelegation, writer?: $protobuf.Writer): $protobuf.Writer;
|
11358
|
+
|
11359
|
+
/**
|
11360
|
+
* Decodes a VoteDelegation message from the specified reader or buffer.
|
11361
|
+
* @param reader Reader or buffer to decode from
|
11362
|
+
* @param [length] Message length if known beforehand
|
11363
|
+
* @returns VoteDelegation
|
11364
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
11365
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11366
|
+
*/
|
11367
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Cardano.Proto.VoteDelegation;
|
11368
|
+
|
11369
|
+
/**
|
11370
|
+
* Verifies a VoteDelegation message.
|
11371
|
+
* @param message Plain object to verify
|
11372
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
11373
|
+
*/
|
11374
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
11375
|
+
|
11376
|
+
/**
|
11377
|
+
* Creates a VoteDelegation message from a plain object. Also converts values to their respective internal types.
|
11378
|
+
* @param object Plain object
|
11379
|
+
* @returns VoteDelegation
|
11380
|
+
*/
|
11381
|
+
public static fromObject(object: { [k: string]: any }): TW.Cardano.Proto.VoteDelegation;
|
11382
|
+
|
11383
|
+
/**
|
11384
|
+
* Creates a plain object from a VoteDelegation message. Also converts values to other types if specified.
|
11385
|
+
* @param message VoteDelegation
|
11386
|
+
* @param [options] Conversion options
|
11387
|
+
* @returns Plain object
|
11388
|
+
*/
|
11389
|
+
public static toObject(message: TW.Cardano.Proto.VoteDelegation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
11390
|
+
|
11391
|
+
/**
|
11392
|
+
* Converts this VoteDelegation to JSON.
|
11393
|
+
* @returns JSON object
|
11394
|
+
*/
|
11395
|
+
public toJSON(): { [k: string]: any };
|
11396
|
+
}
|
11397
|
+
|
11398
|
+
namespace VoteDelegation {
|
11399
|
+
|
11400
|
+
/** DRepType enum. */
|
11401
|
+
enum DRepType {
|
11402
|
+
DREP_ID = 0,
|
11403
|
+
DREP_ALWAYS_ABSTAIN = 2,
|
11404
|
+
DREP_NO_CONFIDENCE = 3
|
11405
|
+
}
|
11406
|
+
}
|
11407
|
+
|
10923
11408
|
/** Properties of a Delegate. */
|
10924
11409
|
interface IDelegate {
|
10925
11410
|
|
@@ -11247,6 +11732,9 @@ export namespace TW {
|
|
11247
11732
|
/** SigningInput deregisterStakingKey */
|
11248
11733
|
deregisterStakingKey?: (TW.Cardano.Proto.IDeregisterStakingKey|null);
|
11249
11734
|
|
11735
|
+
/** SigningInput voteDelegation */
|
11736
|
+
voteDelegation?: (TW.Cardano.Proto.IVoteDelegation|null);
|
11737
|
+
|
11250
11738
|
/** SigningInput ttl */
|
11251
11739
|
ttl?: (Long|null);
|
11252
11740
|
|
@@ -11287,6 +11775,9 @@ export namespace TW {
|
|
11287
11775
|
/** SigningInput deregisterStakingKey. */
|
11288
11776
|
public deregisterStakingKey?: (TW.Cardano.Proto.IDeregisterStakingKey|null);
|
11289
11777
|
|
11778
|
+
/** SigningInput voteDelegation. */
|
11779
|
+
public voteDelegation?: (TW.Cardano.Proto.IVoteDelegation|null);
|
11780
|
+
|
11290
11781
|
/** SigningInput ttl. */
|
11291
11782
|
public ttl: Long;
|
11292
11783
|
|
@@ -14916,6 +15407,9 @@ export namespace TW {
|
|
14916
15407
|
|
14917
15408
|
/** SigningOutput errorMessage */
|
14918
15409
|
errorMessage?: (string|null);
|
15410
|
+
|
15411
|
+
/** SigningOutput signingResultV2 */
|
15412
|
+
signingResultV2?: (TW.BitcoinV2.Proto.ISigningOutput|null);
|
14919
15413
|
}
|
14920
15414
|
|
14921
15415
|
/** Represents a SigningOutput. */
|
@@ -14942,6 +15436,9 @@ export namespace TW {
|
|
14942
15436
|
/** SigningOutput errorMessage. */
|
14943
15437
|
public errorMessage: string;
|
14944
15438
|
|
15439
|
+
/** SigningOutput signingResultV2. */
|
15440
|
+
public signingResultV2?: (TW.BitcoinV2.Proto.ISigningOutput|null);
|
15441
|
+
|
14945
15442
|
/**
|
14946
15443
|
* Creates a new SigningOutput instance using the specified properties.
|
14947
15444
|
* @param [properties] Properties to set
|