2023-08-13 16:17:33 +00:00
|
|
|
part of 'bitcoin_cash.dart';
|
|
|
|
|
|
|
|
class CWBitcoinCash extends BitcoinCash {
|
|
|
|
@override
|
|
|
|
String getMnemonic(int? strength) => Mnemonic.generate();
|
|
|
|
|
|
|
|
@override
|
|
|
|
Uint8List getSeedFromMnemonic(String seed) => Mnemonic.toSeed(seed);
|
|
|
|
|
|
|
|
@override
|
|
|
|
WalletService createBitcoinCashWalletService(
|
|
|
|
Box<WalletInfo> walletInfoSource, Box<UnspentCoinsInfo> unspentCoinSource) {
|
|
|
|
return BitcoinCashWalletService(walletInfoSource, unspentCoinSource);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
WalletCredentials createBitcoinCashNewWalletCredentials({
|
|
|
|
required String name,
|
|
|
|
WalletInfo? walletInfo,
|
|
|
|
}) =>
|
|
|
|
BitcoinCashNewWalletCredentials(name: name, walletInfo: walletInfo);
|
|
|
|
|
2023-08-14 10:36:25 +00:00
|
|
|
@override
|
|
|
|
WalletCredentials createBitcoinCashRestoreWalletFromSeedCredentials(
|
|
|
|
{required String name, required String mnemonic, required String password}) =>
|
|
|
|
BitcoinCashRestoreWalletFromSeedCredentials(
|
|
|
|
name: name, mnemonic: mnemonic, password: password);
|
|
|
|
|
|
|
|
@override
|
|
|
|
TransactionPriority deserializeBitcoinCashTransactionPriority(int raw) =>
|
2023-08-20 18:46:09 +00:00
|
|
|
BitcoinTransactionPriority.deserialize(raw: raw);
|
2023-08-14 10:36:25 +00:00
|
|
|
|
|
|
|
@override
|
2023-08-20 18:46:09 +00:00
|
|
|
TransactionPriority getDefaultTransactionPriority() => BitcoinTransactionPriority.medium;
|
2023-08-14 16:00:38 +00:00
|
|
|
|
|
|
|
@override
|
2023-08-20 18:46:09 +00:00
|
|
|
List<TransactionPriority> getTransactionPriorities() => BitcoinTransactionPriority.all;
|
2023-08-13 16:17:33 +00:00
|
|
|
}
|