Files
hash-wallet/lib/dogecoin/cw_dogecoin.dart
T
b6244cdd44 CW-1099-Add-Doge-coin-to-Cake-Wallet (#2396)
* add wallet create, restore and server integration

* update transaction fee calculation

* Updated tool/configure.dart

* Add dogecoin support to app_config

* minor fix [skip ci]

* Update model_generator.sh

* remove cw_bitcoin import from  lib/ directory

* update bitcoin base

* update default node

* add passphrase an QR restore option

* add Dogecoin support for message signing

* add Dogecoin support across wallet features

* fix edit subaddress

Updated the isElectrum getter to include WalletType.dogecoin, ensuring Dogecoin wallets are correctly identified as Electrum-compatible.

* Update configure.dart

* fix: address label not saved

* remove unused derivationPath

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>

* address review comments

* fix generateInitialAddresses type

* enable auto switching for Dogecoin nodes

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2025-08-07 22:07:20 +03:00

49 lines
1.5 KiB
Dart

part of 'dogecoin.dart';
class CWDogeCoin extends DogeCoin {
@override
WalletService createDogeCoinWalletService(
Box<WalletInfo> walletInfoSource, Box<UnspentCoinsInfo> unspentCoinSource, bool isDirect) {
return DogeCoinWalletService(walletInfoSource, unspentCoinSource, isDirect);
}
@override
WalletCredentials createDogeCoinNewWalletCredentials({
required String name,
WalletInfo? walletInfo,
String? password,
String? passphrase,
String? mnemonic,
}) =>
DogeCoinNewWalletCredentials(
name: name,
walletInfo: walletInfo,
password: password,
passphrase: passphrase,
mnemonic: mnemonic,
);
@override
WalletCredentials createDogeCoinRestoreWalletFromSeedCredentials({
required String name,
required String mnemonic,
required String password,
String? passphrase,
}) =>
DogeCoinRestoreWalletFromSeedCredentials(
name: name, mnemonic: mnemonic, password: password, passphrase: passphrase);
@override
TransactionPriority deserializeDogeCoinTransactionPriority(int raw) =>
DogecoinTransactionPriority.deserialize(raw: raw);
@override
TransactionPriority getDefaultTransactionPriority() => DogecoinTransactionPriority.medium;
@override
List<TransactionPriority> getTransactionPriorities() => DogecoinTransactionPriority.all;
@override
TransactionPriority getDogeCoinTransactionPrioritySlow() => DogecoinTransactionPriority.slow;
}