@trustwallet/wallet-core 4.6.5 → 4.6.7
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.
|
@@ -249,7 +249,8 @@ export namespace TW {
|
|
|
249
249
|
Error_invalid_params = 22,
|
|
250
250
|
Error_invalid_requested_token_amount = 23,
|
|
251
251
|
Error_not_supported = 24,
|
|
252
|
-
Error_dust_amount_requested = 25
|
|
252
|
+
Error_dust_amount_requested = 25,
|
|
253
|
+
Error_tx_hash_mismatch = 26
|
|
253
254
|
}
|
|
254
255
|
}
|
|
255
256
|
}
|
|
@@ -8819,6 +8820,9 @@ export namespace TW {
|
|
|
8819
8820
|
|
|
8820
8821
|
/** TransactionBuilder zcashExtraData */
|
|
8821
8822
|
zcashExtraData?: (TW.Zcash.Proto.ITransactionBuilderExtraData|null);
|
|
8823
|
+
|
|
8824
|
+
/** TransactionBuilder decredExtraData */
|
|
8825
|
+
decredExtraData?: (TW.DecredV2.Proto.ITransactionBuilderExtraData|null);
|
|
8822
8826
|
}
|
|
8823
8827
|
|
|
8824
8828
|
/** Represents a TransactionBuilder. */
|
|
@@ -8860,11 +8864,14 @@ export namespace TW {
|
|
|
8860
8864
|
/** TransactionBuilder zcashExtraData. */
|
|
8861
8865
|
public zcashExtraData?: (TW.Zcash.Proto.ITransactionBuilderExtraData|null);
|
|
8862
8866
|
|
|
8867
|
+
/** TransactionBuilder decredExtraData. */
|
|
8868
|
+
public decredExtraData?: (TW.DecredV2.Proto.ITransactionBuilderExtraData|null);
|
|
8869
|
+
|
|
8863
8870
|
/** TransactionBuilder dustPolicy. */
|
|
8864
8871
|
public dustPolicy?: "fixedDustThreshold";
|
|
8865
8872
|
|
|
8866
8873
|
/** TransactionBuilder chainSpecific. */
|
|
8867
|
-
public chainSpecific?: "zcashExtraData";
|
|
8874
|
+
public chainSpecific?: ("zcashExtraData"|"decredExtraData");
|
|
8868
8875
|
|
|
8869
8876
|
/**
|
|
8870
8877
|
* Creates a new TransactionBuilder instance using the specified properties.
|
|
@@ -9998,6 +10005,79 @@ export namespace TW {
|
|
|
9998
10005
|
*/
|
|
9999
10006
|
public toJSON(): { [k: string]: any };
|
|
10000
10007
|
}
|
|
10008
|
+
|
|
10009
|
+
/** Properties of a TransactionBuilderExtraData. */
|
|
10010
|
+
interface ITransactionBuilderExtraData {
|
|
10011
|
+
|
|
10012
|
+
/** TransactionBuilderExtraData expiryHeight */
|
|
10013
|
+
expiryHeight?: (number|null);
|
|
10014
|
+
}
|
|
10015
|
+
|
|
10016
|
+
/** Represents a TransactionBuilderExtraData. */
|
|
10017
|
+
class TransactionBuilderExtraData implements ITransactionBuilderExtraData {
|
|
10018
|
+
|
|
10019
|
+
/**
|
|
10020
|
+
* Constructs a new TransactionBuilderExtraData.
|
|
10021
|
+
* @param [properties] Properties to set
|
|
10022
|
+
*/
|
|
10023
|
+
constructor(properties?: TW.DecredV2.Proto.ITransactionBuilderExtraData);
|
|
10024
|
+
|
|
10025
|
+
/** TransactionBuilderExtraData expiryHeight. */
|
|
10026
|
+
public expiryHeight: number;
|
|
10027
|
+
|
|
10028
|
+
/**
|
|
10029
|
+
* Creates a new TransactionBuilderExtraData instance using the specified properties.
|
|
10030
|
+
* @param [properties] Properties to set
|
|
10031
|
+
* @returns TransactionBuilderExtraData instance
|
|
10032
|
+
*/
|
|
10033
|
+
public static create(properties?: TW.DecredV2.Proto.ITransactionBuilderExtraData): TW.DecredV2.Proto.TransactionBuilderExtraData;
|
|
10034
|
+
|
|
10035
|
+
/**
|
|
10036
|
+
* Encodes the specified TransactionBuilderExtraData message. Does not implicitly {@link TW.DecredV2.Proto.TransactionBuilderExtraData.verify|verify} messages.
|
|
10037
|
+
* @param message TransactionBuilderExtraData message or plain object to encode
|
|
10038
|
+
* @param [writer] Writer to encode to
|
|
10039
|
+
* @returns Writer
|
|
10040
|
+
*/
|
|
10041
|
+
public static encode(message: TW.DecredV2.Proto.ITransactionBuilderExtraData, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10042
|
+
|
|
10043
|
+
/**
|
|
10044
|
+
* Decodes a TransactionBuilderExtraData message from the specified reader or buffer.
|
|
10045
|
+
* @param reader Reader or buffer to decode from
|
|
10046
|
+
* @param [length] Message length if known beforehand
|
|
10047
|
+
* @returns TransactionBuilderExtraData
|
|
10048
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10049
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10050
|
+
*/
|
|
10051
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.DecredV2.Proto.TransactionBuilderExtraData;
|
|
10052
|
+
|
|
10053
|
+
/**
|
|
10054
|
+
* Verifies a TransactionBuilderExtraData message.
|
|
10055
|
+
* @param message Plain object to verify
|
|
10056
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
10057
|
+
*/
|
|
10058
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
10059
|
+
|
|
10060
|
+
/**
|
|
10061
|
+
* Creates a TransactionBuilderExtraData message from a plain object. Also converts values to their respective internal types.
|
|
10062
|
+
* @param object Plain object
|
|
10063
|
+
* @returns TransactionBuilderExtraData
|
|
10064
|
+
*/
|
|
10065
|
+
public static fromObject(object: { [k: string]: any }): TW.DecredV2.Proto.TransactionBuilderExtraData;
|
|
10066
|
+
|
|
10067
|
+
/**
|
|
10068
|
+
* Creates a plain object from a TransactionBuilderExtraData message. Also converts values to other types if specified.
|
|
10069
|
+
* @param message TransactionBuilderExtraData
|
|
10070
|
+
* @param [options] Conversion options
|
|
10071
|
+
* @returns Plain object
|
|
10072
|
+
*/
|
|
10073
|
+
public static toObject(message: TW.DecredV2.Proto.TransactionBuilderExtraData, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
10074
|
+
|
|
10075
|
+
/**
|
|
10076
|
+
* Converts this TransactionBuilderExtraData to JSON.
|
|
10077
|
+
* @returns JSON object
|
|
10078
|
+
*/
|
|
10079
|
+
public toJSON(): { [k: string]: any };
|
|
10080
|
+
}
|
|
10001
10081
|
}
|
|
10002
10082
|
}
|
|
10003
10083
|
|
|
@@ -50085,9 +50165,6 @@ export namespace TW {
|
|
|
50085
50165
|
/** SigningInput privateKey */
|
|
50086
50166
|
privateKey?: (Uint8Array|null);
|
|
50087
50167
|
|
|
50088
|
-
/** SigningInput txId */
|
|
50089
|
-
txId?: (string|null);
|
|
50090
|
-
|
|
50091
50168
|
/** SigningInput rawJson */
|
|
50092
50169
|
rawJson?: (string|null);
|
|
50093
50170
|
}
|
|
@@ -50107,9 +50184,6 @@ export namespace TW {
|
|
|
50107
50184
|
/** SigningInput privateKey. */
|
|
50108
50185
|
public privateKey: Uint8Array;
|
|
50109
50186
|
|
|
50110
|
-
/** SigningInput txId. */
|
|
50111
|
-
public txId: string;
|
|
50112
|
-
|
|
50113
50187
|
/** SigningInput rawJson. */
|
|
50114
50188
|
public rawJson: string;
|
|
50115
50189
|
|