mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
* Integrate SwapsXYZ * Remove print * enhance SwapsXyz EVM token swap handling * Disable fixed rate support in SwapsXyz provider * enable fixed rate swap * fix timestamp parsing * remove sender and recipient address from fetchRate * Improve SwapsXYZ trade approval logic * fix trade ID overflow * add Base chain support for swaps xyz * Update lib/view_model/exchange/exchange_trade_view_model.dart Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com> * add missing support for Base --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
24 lines
492 B
Dart
24 lines
492 B
Dart
class PendingChange {
|
|
final String address;
|
|
final String amount;
|
|
|
|
PendingChange(this.address, this.amount);
|
|
}
|
|
|
|
mixin PendingTransaction {
|
|
String get id;
|
|
String get amountFormatted;
|
|
String get feeFormatted;
|
|
String get feeFormattedValue;
|
|
String? feeRate;
|
|
String get hex;
|
|
String? get evmTxHashFromRawHex => null;
|
|
int? get outputCount => null;
|
|
PendingChange? change;
|
|
|
|
bool shouldCommitUR() => false;
|
|
|
|
Future<void> commit();
|
|
Future<Map<String, String>> commitUR();
|
|
}
|