Skip to content

CW-1099-Add-Doge-coin-to-Cake-Wallet #2396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

Serhii-Borodenko
Copy link
Contributor

@Serhii-Borodenko Serhii-Borodenko commented Jul 17, 2025

Issue Number (if Applicable): Fixes #

Description

Please include a summary of the changes and which issue is fixed / feature is added.

Pull Request - Checklist

  • Initial Manual Tests Passed
  • Double check modified code and verify it with the feature/task requirements
  • Format code
  • Look for code duplication
  • Clear naming for variables and methods
  • Manual tests in accessibility mode (TalkBack on Android) passed

@@ -489,6 +494,9 @@ abstract class ElectrumWalletAddressesBase extends WalletAddresses with Store {
case WalletType.bitcoinCash:
addBitcoinCashAddressTypes();
break;
case WalletType.dogecoin:
addBitcoinCashAddressTypes();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would prefer if we rename the function to addP2PKHAddressTypes then

@@ -44,6 +44,7 @@ abstract class AdvancedPrivacySettingsViewModelBase with Store {

case WalletType.bitcoin:
case WalletType.litecoin:
case WalletType.dogecoin:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should always be true like bitcoincash as this won't have electrum seed type

@@ -252,6 +253,8 @@ abstract class WalletKeysViewModelBase with Store {
return 'zano-wallet';
case WalletType.decred:
return 'decred-wallet';
case WalletType.dogecoin:
return 'dogecoin-wallet';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be added in info.plistBase

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about other platforms? macos, windows and linux

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be in gitignore

required Box<UnspentCoinsInfo> unspentCoinsInfo,
required Uint8List seedBytes,
required EncryptionFileUtils encryptionFileUtils,
String derivationPath = "m/44'/3'/0'",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

Suggested change
String derivationPath = "m/44'/3'/0'",

Comment on lines +139 to +159
initialAddresses: snp?.addresses.map((addr) {
try {
return BitcoinAddressRecord(
addr.address,
index: addr.index,
isHidden: addr.isHidden,
name: addr.name,
type: P2pkhAddressType.p2pkh,
network: DogecoinNetwork.mainnet,
);
} catch (_) {
return BitcoinAddressRecord(
addr.address,
index: addr.index,
isHidden: addr.isHidden,
name: addr.name,
type: P2pkhAddressType.p2pkh,
network: DogecoinNetwork.mainnet,
);
}
}).toList(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was for bitcoin cash for a reason, but here I believe it can be just snp?.addresses like litecoin, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants