-
Notifications
You must be signed in to change notification settings - Fork 9
chore: remove unused native wallet creation files #2297
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
lealobanov
wants to merge
141
commits into
dev
Choose a base branch
from
cleanup/remove-unused-wallet-create-files
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Saves mnemonic to secure storage using Wallet.store() - Creates EOA Account in AccountManager (no Firebase UID) - Initializes WalletManager with new account - Returns success/error response
- Remove generateRecoveryPhrase() (using TypeScript implementation) - Remove createEOAAccount() stub (replaced by saveMnemonic) - Clean up unused code per code review feedback
- Resolved import conflicts in NativeFRWBridge.kt - Updated build.gradle to read GitHub credentials from local.properties
…cure enclave flow
Resolved conflicts: - AccountExtensions.kt: Accept dev (new wallet architecture) - AccountManager.kt: Accept dev (walletNodes architecture) - EVMWalletManager.kt: Accept dev (simpler architecture) - WalletManager.kt: Accept dev (WalletCreationHelper-based approach) - UserRegisterUtils.kt: Keep ours (registration early return flow) - Utils.kt: Accept dev - WalletListActivity.kt: Accept deletion from dev - NativeFRWBridge.kt: Keep ours (handler-based architecture)
- Remove evmAddressData references (now in walletNodes) - Replace walletAddress() with getFlowWalletAddress() - Replace getEOAAddressCached() with getEOAAddress() - Remove EVMWalletManager.clear()/init() calls - Remove WalletManager.init()/onWalletReady() calls - Remove AccountManager.updateWalletInfo()/updateEVMAddressInfo() calls - Update childAccountList() to return List<ChildAccount> directly
- registerOutblock: Create FlowWallet from createdAddress and add to walletNodes - initWalletWithTxId: Create FlowWallet from createdAddress and add to walletNodes - setupAccountAndWallet (AuthBridgeHandler): Create FlowWallets from walletListData This ensures accounts are immediately usable after registration without waiting for the async WalletDataManager to populate walletNodes from the key indexer (which may have indexing delays for new accounts).
In recovery phrase flow, walletListData.blockchain is null when setupAccountAndWallet is called. The Flow address becomes available later via WalletFetcher. Now we check if FlowWallet is missing after the address is confirmed and add it to walletNodes.
WalletDataManager.updateCurrentAccountData() was overwriting manually-added FlowWallets with just EOAWallet when key indexer hadn't indexed new accounts yet. Now we check if the key indexer found any FlowWallets - if not, we preserve the existing FlowWallets that were added during account creation.
Secure enclave accounts use ECDSA_P256 and should not have an EOA. EOA is only for recovery phrase accounts that use ECDSA_secp256k1. Check signing algorithm to determine account type and skip EOA derivation for P256 accounts in both updateCurrentAccountData and updateNonCurrentAccountData.
… phrase accounts - Add AccountType constants (FULL, HARDWARE) to Account data class - Set accountType during registration for both flows - Use accountType to determine EOA eligibility - Fall back to signature algorithm check for legacy accounts without accountType - Merge with hotfix/3.0.6 EOA detection approach
- Delete WalletCreateActivity and WalletCreateViewModel (no longer launched) - Delete warning/, mnemoniccheck/, pincode/guide/ folders (unused) - Delete individual fragment files: WalletCreateMnemonicFragment, WalletCreatePinCodeFragment, WalletCreatePinCodePresenter, WalletCreateUsernameFragment, WalletCreateUsernamePresenter - Delete model/WalletCreateContentModel and presenter/WalletCreateContentPresenter - Update WalletCreateCloudPwdPresenter to remove WalletCreateViewModel dependency Kept files that are still used by backup/restore/security: - cloudpwd/ (Google Drive backup) - mnemonic adapters/models (backup flows) - pincode widgets (pin code flows) - username models/viewmodels (keystore restore) - Utils.kt (wallet restore)
lmcmz
previously approved these changes
Dec 12, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue
Closes #???
Summary of Changes
Need Regression Testing
Risk Assessment
Additional Notes
Screenshots (if applicable)