mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
* 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>
35 lines
831 B
Dart
35 lines
831 B
Dart
import 'package:cw_core/wallet_type.dart';
|
|
|
|
bool isBIP39Wallet(WalletType walletType) {
|
|
switch (walletType) {
|
|
case WalletType.ethereum:
|
|
case WalletType.polygon:
|
|
case WalletType.solana:
|
|
case WalletType.tron:
|
|
case WalletType.bitcoin:
|
|
case WalletType.litecoin:
|
|
case WalletType.bitcoinCash:
|
|
case WalletType.nano:
|
|
case WalletType.banano:
|
|
case WalletType.monero:
|
|
case WalletType.dogecoin:
|
|
return true;
|
|
case WalletType.wownero:
|
|
case WalletType.haven:
|
|
case WalletType.zano:
|
|
case WalletType.decred:
|
|
case WalletType.none:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
bool isElectrumWallet(WalletType walletType) {
|
|
switch (walletType) {
|
|
case WalletType.bitcoin:
|
|
case WalletType.litecoin:
|
|
case WalletType.bitcoinCash:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
} |