| 1 | part of 'bitcoin_cash.dart'; |
| 2 | |
| 3 | class CWBitcoinCash extends BitcoinCash { |
| 4 | @override |
| 5 | String getCashAddrFormat(String address) => AddressUtils.getCashAddrFormat(address); |
| 6 | |
| 7 | @override |
| 8 | WalletService createBitcoinCashWalletService( |
| 9 | Box<UnspentCoinsInfo> unspentCoinSource, bool isDirect) { |
| 10 | return BitcoinCashWalletService(unspentCoinSource, isDirect); |
| 11 | } |
| 12 | |
| 13 | @override |
| 14 | WalletCredentials createBitcoinCashNewWalletCredentials({ |
| 15 | required String name, |
| 16 | WalletInfo? walletInfo, |
| 17 | String? password, |
| 18 | String? passphrase, |
| 19 | String? mnemonic, |
| 20 | }) => |
| 21 | BitcoinCashNewWalletCredentials( |
| 22 | name: name, |
| 23 | walletInfo: walletInfo, |
| 24 | password: password, |
| 25 | passphrase: passphrase, |
| 26 | mnemonic: mnemonic, |
| 27 | ); |
| 28 | |
| 29 | @override |
| 30 | WalletCredentials createBitcoinCashRestoreWalletFromSeedCredentials( |
| 31 | {required String name, |
| 32 | required String mnemonic, |
| 33 | required String password, |
| 34 | String? passphrase}) => |
| 35 | BitcoinCashRestoreWalletFromSeedCredentials( |
| 36 | name: name, mnemonic: mnemonic, password: password, passphrase: passphrase); |
| 37 | |
| 38 | @override |
| 39 | TransactionPriority deserializeBitcoinCashTransactionPriority(int raw) => |
| 40 | BitcoinCashTransactionPriority.deserialize(raw: raw); |
| 41 | |
| 42 | @override |
| 43 | TransactionPriority getDefaultTransactionPriority() => BitcoinCashTransactionPriority.medium; |
| 44 | |
| 45 | @override |
| 46 | List<TransactionPriority> getTransactionPriorities() => BitcoinCashTransactionPriority.all; |
| 47 | |
| 48 | @override |
| 49 | TransactionPriority getBitcoinCashTransactionPrioritySlow() => |
| 50 | BitcoinCashTransactionPriority.slow; |
| 51 | } |