mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 10:11:03 +00:00
33 lines
903 B
Dart
33 lines
903 B
Dart
import 'package:stackwallet/exceptions/sw_exception.dart';
|
|
import 'package:stackwallet/wallets/models/tx_data.dart';
|
|
import 'package:stackwallet/wallets/wallet/wallet.dart';
|
|
|
|
class CryptonoteWallet extends Wallet {
|
|
CryptonoteWallet(super.cryptoCurrency);
|
|
|
|
Future<String> getMnemonic() async {
|
|
final mnemonic = await secureStorageInterface.read(
|
|
key: Wallet.mnemonicKey(walletId: walletInfo.walletId),
|
|
);
|
|
|
|
if (mnemonic == null) {
|
|
throw SWException("mnemonic has not been set");
|
|
}
|
|
|
|
return mnemonic;
|
|
}
|
|
|
|
// ========== Overrides ======================================================
|
|
|
|
@override
|
|
Future<TxData> confirmSend({required TxData txData}) {
|
|
// TODO: implement confirmSend
|
|
throw UnimplementedError();
|
|
}
|
|
|
|
@override
|
|
Future<TxData> prepareSend({required TxData txData}) {
|
|
// TODO: implement prepareSend
|
|
throw UnimplementedError();
|
|
}
|
|
}
|