@trustwallet/wallet-core 4.5.1 → 4.6.2

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.
@@ -131,6 +131,12 @@ export namespace TW {
131
131
 
132
132
  /** SigningOutput signature */
133
133
  signature?: (string|null);
134
+
135
+ /** SigningOutput error */
136
+ error?: (TW.Common.Proto.SigningError|null);
137
+
138
+ /** SigningOutput errorMessage */
139
+ errorMessage?: (string|null);
134
140
  }
135
141
 
136
142
  /** Represents a SigningOutput. */
@@ -148,6 +154,12 @@ export namespace TW {
148
154
  /** SigningOutput signature. */
149
155
  public signature: string;
150
156
 
157
+ /** SigningOutput error. */
158
+ public error: TW.Common.Proto.SigningError;
159
+
160
+ /** SigningOutput errorMessage. */
161
+ public errorMessage: string;
162
+
151
163
  /**
152
164
  * Creates a new SigningOutput instance using the specified properties.
153
165
  * @param [properties] Properties to set
@@ -204,6 +216,44 @@ export namespace TW {
204
216
  }
205
217
  }
206
218
 
219
+ /** Namespace Common. */
220
+ namespace Common {
221
+
222
+ /** Namespace Proto. */
223
+ namespace Proto {
224
+
225
+ /** SigningError enum. */
226
+ enum SigningError {
227
+ OK = 0,
228
+ Error_general = 1,
229
+ Error_internal = 2,
230
+ Error_low_balance = 3,
231
+ Error_zero_amount_requested = 4,
232
+ Error_missing_private_key = 5,
233
+ Error_invalid_private_key = 15,
234
+ Error_invalid_address = 16,
235
+ Error_invalid_utxo = 17,
236
+ Error_invalid_utxo_amount = 18,
237
+ Error_wrong_fee = 6,
238
+ Error_signing = 7,
239
+ Error_tx_too_big = 8,
240
+ Error_missing_input_utxos = 9,
241
+ Error_not_enough_utxos = 10,
242
+ Error_script_redeem = 11,
243
+ Error_script_output = 12,
244
+ Error_script_witness_program = 13,
245
+ Error_invalid_memo = 14,
246
+ Error_input_parse = 19,
247
+ Error_no_support_n2n = 20,
248
+ Error_signatures_count = 21,
249
+ Error_invalid_params = 22,
250
+ Error_invalid_requested_token_amount = 23,
251
+ Error_not_supported = 24,
252
+ Error_dust_amount_requested = 25
253
+ }
254
+ }
255
+ }
256
+
207
257
  /** Namespace Aion. */
208
258
  namespace Aion {
209
259
 
@@ -418,44 +468,6 @@ export namespace TW {
418
468
  }
419
469
  }
420
470
 
421
- /** Namespace Common. */
422
- namespace Common {
423
-
424
- /** Namespace Proto. */
425
- namespace Proto {
426
-
427
- /** SigningError enum. */
428
- enum SigningError {
429
- OK = 0,
430
- Error_general = 1,
431
- Error_internal = 2,
432
- Error_low_balance = 3,
433
- Error_zero_amount_requested = 4,
434
- Error_missing_private_key = 5,
435
- Error_invalid_private_key = 15,
436
- Error_invalid_address = 16,
437
- Error_invalid_utxo = 17,
438
- Error_invalid_utxo_amount = 18,
439
- Error_wrong_fee = 6,
440
- Error_signing = 7,
441
- Error_tx_too_big = 8,
442
- Error_missing_input_utxos = 9,
443
- Error_not_enough_utxos = 10,
444
- Error_script_redeem = 11,
445
- Error_script_output = 12,
446
- Error_script_witness_program = 13,
447
- Error_invalid_memo = 14,
448
- Error_input_parse = 19,
449
- Error_no_support_n2n = 20,
450
- Error_signatures_count = 21,
451
- Error_invalid_params = 22,
452
- Error_invalid_requested_token_amount = 23,
453
- Error_not_supported = 24,
454
- Error_dust_amount_requested = 25
455
- }
456
- }
457
- }
458
-
459
471
  /** Namespace Algorand. */
460
472
  namespace Algorand {
461
473
 
@@ -21135,6 +21147,12 @@ export namespace TW {
21135
21147
 
21136
21148
  /** SigningOutput encoded */
21137
21149
  encoded?: (string|null);
21150
+
21151
+ /** SigningOutput error */
21152
+ error?: (TW.Common.Proto.SigningError|null);
21153
+
21154
+ /** SigningOutput errorMessage */
21155
+ errorMessage?: (string|null);
21138
21156
  }
21139
21157
 
21140
21158
  /** Represents a SigningOutput. */
@@ -21149,6 +21167,12 @@ export namespace TW {
21149
21167
  /** SigningOutput encoded. */
21150
21168
  public encoded: string;
21151
21169
 
21170
+ /** SigningOutput error. */
21171
+ public error: TW.Common.Proto.SigningError;
21172
+
21173
+ /** SigningOutput errorMessage. */
21174
+ public errorMessage: string;
21175
+
21152
21176
  /**
21153
21177
  * Creates a new SigningOutput instance using the specified properties.
21154
21178
  * @param [properties] Properties to set
@@ -25021,6 +25045,12 @@ export namespace TW {
25021
25045
 
25022
25046
  /** SigningOutput encoded */
25023
25047
  encoded?: (Uint8Array|null);
25048
+
25049
+ /** SigningOutput error */
25050
+ error?: (TW.Common.Proto.SigningError|null);
25051
+
25052
+ /** SigningOutput errorMessage */
25053
+ errorMessage?: (string|null);
25024
25054
  }
25025
25055
 
25026
25056
  /** Represents a SigningOutput. */
@@ -25035,6 +25065,12 @@ export namespace TW {
25035
25065
  /** SigningOutput encoded. */
25036
25066
  public encoded: Uint8Array;
25037
25067
 
25068
+ /** SigningOutput error. */
25069
+ public error: TW.Common.Proto.SigningError;
25070
+
25071
+ /** SigningOutput errorMessage. */
25072
+ public errorMessage: string;
25073
+
25038
25074
  /**
25039
25075
  * Creates a new SigningOutput instance using the specified properties.
25040
25076
  * @param [properties] Properties to set
@@ -30946,6 +30982,12 @@ export namespace TW {
30946
30982
 
30947
30983
  /** SigningOutput raw */
30948
30984
  raw?: (string|null);
30985
+
30986
+ /** SigningOutput error */
30987
+ error?: (TW.Common.Proto.SigningError|null);
30988
+
30989
+ /** SigningOutput errorMessage */
30990
+ errorMessage?: (string|null);
30949
30991
  }
30950
30992
 
30951
30993
  /** Represents a SigningOutput. */
@@ -30966,6 +31008,12 @@ export namespace TW {
30966
31008
  /** SigningOutput raw. */
30967
31009
  public raw: string;
30968
31010
 
31011
+ /** SigningOutput error. */
31012
+ public error: TW.Common.Proto.SigningError;
31013
+
31014
+ /** SigningOutput errorMessage. */
31015
+ public errorMessage: string;
31016
+
30969
31017
  /**
30970
31018
  * Creates a new SigningOutput instance using the specified properties.
30971
31019
  * @param [properties] Properties to set
@@ -33594,6 +33642,12 @@ export namespace TW {
33594
33642
 
33595
33643
  /** SigningOutput encoded */
33596
33644
  encoded?: (Uint8Array|null);
33645
+
33646
+ /** SigningOutput error */
33647
+ error?: (TW.Common.Proto.SigningError|null);
33648
+
33649
+ /** SigningOutput errorMessage */
33650
+ errorMessage?: (string|null);
33597
33651
  }
33598
33652
 
33599
33653
  /** Represents a SigningOutput. */
@@ -33608,6 +33662,12 @@ export namespace TW {
33608
33662
  /** SigningOutput encoded. */
33609
33663
  public encoded: Uint8Array;
33610
33664
 
33665
+ /** SigningOutput error. */
33666
+ public error: TW.Common.Proto.SigningError;
33667
+
33668
+ /** SigningOutput errorMessage. */
33669
+ public errorMessage: string;
33670
+
33611
33671
  /**
33612
33672
  * Creates a new SigningOutput instance using the specified properties.
33613
33673
  * @param [properties] Properties to set
@@ -51103,6 +51163,12 @@ export namespace TW {
51103
51163
 
51104
51164
  /** SigningOutput json */
51105
51165
  json?: (string|null);
51166
+
51167
+ /** SigningOutput error */
51168
+ error?: (TW.Common.Proto.SigningError|null);
51169
+
51170
+ /** SigningOutput errorMessage */
51171
+ errorMessage?: (string|null);
51106
51172
  }
51107
51173
 
51108
51174
  /** Represents a SigningOutput. */
@@ -51120,6 +51186,12 @@ export namespace TW {
51120
51186
  /** SigningOutput json. */
51121
51187
  public json: string;
51122
51188
 
51189
+ /** SigningOutput error. */
51190
+ public error: TW.Common.Proto.SigningError;
51191
+
51192
+ /** SigningOutput errorMessage. */
51193
+ public errorMessage: string;
51194
+
51123
51195
  /**
51124
51196
  * Creates a new SigningOutput instance using the specified properties.
51125
51197
  * @param [properties] Properties to set
@@ -51542,6 +51614,12 @@ export namespace TW {
51542
51614
 
51543
51615
  /** SigningOutput json */
51544
51616
  json?: (string|null);
51617
+
51618
+ /** SigningOutput error */
51619
+ error?: (TW.Common.Proto.SigningError|null);
51620
+
51621
+ /** SigningOutput errorMessage */
51622
+ errorMessage?: (string|null);
51545
51623
  }
51546
51624
 
51547
51625
  /** Represents a SigningOutput. */
@@ -51559,6 +51637,12 @@ export namespace TW {
51559
51637
  /** SigningOutput json. */
51560
51638
  public json: string;
51561
51639
 
51640
+ /** SigningOutput error. */
51641
+ public error: TW.Common.Proto.SigningError;
51642
+
51643
+ /** SigningOutput errorMessage. */
51644
+ public errorMessage: string;
51645
+
51562
51646
  /**
51563
51647
  * Creates a new SigningOutput instance using the specified properties.
51564
51648
  * @param [properties] Properties to set