mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-07 03:19:31 +00:00
62 lines
1.8 KiB
Dart
62 lines
1.8 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,
|
|
bool mempoolAPIEnabled,
|
|
) {
|
|
return BitcoinCashWalletService(
|
|
walletInfoSource,
|
|
unspentCoinSource,
|
|
isDirect,
|
|
mempoolAPIEnabled,
|
|
);
|
|
}
|
|
|
|
@override
|
|
WalletCredentials createBitcoinCashNewWalletCredentials({
|
|
required String name,
|
|
WalletInfo? walletInfo,
|
|
String? password,
|
|
String? passphrase,
|
|
String? mnemonic,
|
|
String? parentAddress,
|
|
}) =>
|
|
BitcoinCashNewWalletCredentials(
|
|
name: name,
|
|
walletInfo: walletInfo,
|
|
password: password,
|
|
passphrase: passphrase,
|
|
parentAddress: parentAddress,
|
|
mnemonic: mnemonic,
|
|
);
|
|
|
|
@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;
|
|
}
|