mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-31 15:06:04 +00:00
2b808ad50a
* change cw_decred from package to plugin * add libdcrwallet dependency and link library for android, ios and macos * remove spvwallet, make some libdcrwallet fns async, light refactor * libdcrwallet: use json payload returns * use specific libwallet commit hash * decred: fix Rename wallet. --------- Co-authored-by: JoeGruff <joegruffins@gmail.com>
32 lines
713 B
Dart
32 lines
713 B
Dart
import 'package:cw_core/pending_transaction.dart';
|
|
import 'package:cw_decred/amount_format.dart';
|
|
|
|
class DecredPendingTransaction with PendingTransaction {
|
|
DecredPendingTransaction(
|
|
{required this.txid,
|
|
required this.amount,
|
|
required this.fee,
|
|
required this.rawHex});
|
|
|
|
final int amount;
|
|
final int fee;
|
|
final String txid;
|
|
final String rawHex;
|
|
|
|
@override
|
|
String get id => txid;
|
|
|
|
@override
|
|
String get amountFormatted => decredAmountToString(amount: amount);
|
|
|
|
@override
|
|
String get feeFormatted => decredAmountToString(amount: fee);
|
|
|
|
@override
|
|
String get hex => rawHex;
|
|
|
|
@override
|
|
Future<void> commit() async {
|
|
// TODO: Submit rawHex using libdcrwallet.
|
|
}
|
|
}
|