mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-26 13:39:39 +00:00
ce21098e98
* CW-488 minor code cleanup * Add Derivation Path selector for BTC and LTC * CW-488 Initial Passphrase Impl * CW-488 Final Passphrase Impl * Quick Fix of language Service * CW-488 Implement PR Suggestions * CW-488 Implement PR Suggestions * CW-488 Implement Passphrase for Bitcoin Cash * CW-488 Implement Passphrase for Bitcoin Cash * CW-488 Implement Passphrase for Bitcoin Cash * remove monero and wownero support for passphrase until merged [skip ci] * CW-488 Apply requested change * CW-488 Add Passphrase to QR * CW-488 Fix Seed generation * CW-488 Implement Electrum Passphrases * CW-488 Add Seed Length Selector to BIP39 Seeds * CW-488 Minor fix [skip ci] --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
42 lines
1.5 KiB
Dart
42 lines
1.5 KiB
Dart
part of 'bitcoin_cash.dart';
|
|
|
|
class CWBitcoinCash extends BitcoinCash {
|
|
@override
|
|
String getCashAddrFormat(String address) => AddressUtils.getCashAddrFormat(address);
|
|
|
|
@override
|
|
WalletService createBitcoinCashWalletService(
|
|
Box<WalletInfo> walletInfoSource, Box<UnspentCoinsInfo> unspentCoinSource, bool isDirect) {
|
|
return BitcoinCashWalletService(walletInfoSource, unspentCoinSource, isDirect);
|
|
}
|
|
|
|
@override
|
|
WalletCredentials createBitcoinCashNewWalletCredentials({
|
|
required String name,
|
|
WalletInfo? walletInfo,
|
|
String? password,
|
|
String? passphrase,
|
|
}) =>
|
|
BitcoinCashNewWalletCredentials(
|
|
name: name, walletInfo: walletInfo, password: password, passphrase: passphrase);
|
|
|
|
@override
|
|
WalletCredentials createBitcoinCashRestoreWalletFromSeedCredentials(
|
|
{required String name, required String mnemonic, required String password, String? passphrase}) =>
|
|
BitcoinCashRestoreWalletFromSeedCredentials(
|
|
name: name, mnemonic: mnemonic, password: password, passphrase: passphrase);
|
|
|
|
@override
|
|
TransactionPriority deserializeBitcoinCashTransactionPriority(int raw) =>
|
|
BitcoinCashTransactionPriority.deserialize(raw: raw);
|
|
|
|
@override
|
|
TransactionPriority getDefaultTransactionPriority() => BitcoinCashTransactionPriority.medium;
|
|
|
|
@override
|
|
List<TransactionPriority> getTransactionPriorities() => BitcoinCashTransactionPriority.all;
|
|
|
|
@override
|
|
TransactionPriority getBitcoinCashTransactionPrioritySlow() =>
|
|
BitcoinCashTransactionPriority.slow;
|
|
}
|