cake_wallet/cw_bitcoin/lib/electrum_fee_estimate.dart
OmarHatem eb9b45360e Fix conflicts with master
update code to null safety
2022-11-21 16:44:01 +02:00

20 lines
No EOL
764 B
Dart

import 'package:cw_bitcoin/electrum_wallet.dart';
import 'package:cw_core/fee_estimate.dart';
import 'package:cw_core/transaction_priority.dart';
class ElectrumFeeEstimate extends FeeEstimate {
ElectrumFeeEstimate(ElectrumWalletBase wallet)
: _wallet = wallet;
ElectrumWalletBase _wallet;
int get({TransactionPriority? priority, int? amount, int? outputsCount}) {
// Electrum doesn't require an async call to obtain the estimated fee.
// We don't bother caching and just obtain it directly.
return _wallet.calculateEstimatedFee(priority,amount, outputsCount: outputsCount);
}
void update({TransactionPriority? priority, int? amount, int? outputsCount}) {}
void set({TransactionPriority? priority, int? outputsCount, int? fee}) {}
}