import 'package:isar/isar.dart'; import 'package:stackwallet/models/paymint/fee_object_model.dart'; import 'package:stackwallet/pages/settings_views/global_settings_view/manage_nodes_views/add_edit_node_view.dart'; import 'package:stackwallet/utilities/amount/amount.dart'; import 'package:stackwallet/utilities/logger.dart'; import 'package:stackwallet/utilities/test_epic_box_connection.dart'; import 'package:stackwallet/wallets/crypto_currency/coins/epiccash.dart'; import 'package:stackwallet/wallets/models/tx_data.dart'; import 'package:stackwallet/wallets/wallet/intermediate/bip39_wallet.dart'; class EpiccashWallet extends Bip39Wallet { EpiccashWallet(Epiccash cryptoCurrency) : super(cryptoCurrency); @override FilterOperation? get changeAddressFilterOperation => FilterGroup.and(standardChangeAddressFilters); @override FilterOperation? get receivingAddressFilterOperation => FilterGroup.and(standardReceivingAddressFilters); @override Future confirmSend({required TxData txData}) { // TODO: implement confirmSend throw UnimplementedError(); } @override Future prepareSend({required TxData txData}) { // TODO: implement prepareSend throw UnimplementedError(); } @override Future recover({required bool isRescan}) { // TODO: implement recover throw UnimplementedError(); } @override Future refresh() { // TODO: implement refresh throw UnimplementedError(); } @override Future updateBalance() { // TODO: implement updateBalance throw UnimplementedError(); } @override Future updateTransactions() { // TODO: implement updateTransactions throw UnimplementedError(); } @override Future updateUTXOs() { // TODO: implement updateUTXOs throw UnimplementedError(); } @override Future updateNode() { // TODO: implement updateNode throw UnimplementedError(); } @override Future pingCheck() async { try { final node = nodeService.getPrimaryNodeFor(coin: cryptoCurrency.coin); // force unwrap optional as we want connection test to fail if wallet // wasn't initialized or epicbox node was set to null return await testEpicNodeConnection( NodeFormData() ..host = node!.host ..useSSL = node.useSSL ..port = node.port, ) != null; } catch (e, s) { Logging.instance.log("$e\n$s", level: LogLevel.Info); return false; } } @override Future updateChainHeight() async { // final height = await fetchChainHeight(); // await walletInfo.updateCachedChainHeight( // newHeight: height, // isar: mainDB.isar, // ); } @override Future estimateFeeFor(Amount amount, int feeRate) { // TODO: implement estimateFeeFor throw UnimplementedError(); } @override // TODO: implement fees Future get fees => throw UnimplementedError(); }