-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: multiple accounts support in ledger #10109
feat: multiple accounts support in ledger #10109
Conversation
…the library with local change. 1. modify the Engine.ts to use new library 2. modify Ledger.ts to use new library will expect some errors during build, will fix this error and unit tests in next commit.
# Conflicts: # ios/MetaMask.xcodeproj/project.pbxproj
# Conflicts: # ios/MetaMask.xcodeproj/project.pbxproj
# Conflicts: # app/core/Engine.ts
…the need of release of library. also fix some issue of missing deviceId in library cause the bluetooth unable to connect.
… Still need to refactory the code to remove unused functions.
… Still need to refactory the code to remove unused functions.
…ksum not match. also improve the unit tests for ledger.ts to cover all functions.
# Conflicts: # app/components/Nav/App/index.js # app/core/Engine.ts # ios/MetaMask.xcodeproj/project.pbxproj # package.json # yarn.lock
# Conflicts: # app/core/Engine.ts # app/core/Ledger/Ledger.test.ts # app/core/Ledger/Ledger.ts # patches/@MetaMask+keyring-controller+9.0.0.patch # yarn.lock
…ocken code. Enhance in BlockingActionModal with smooth animation to provide better user friendly interaction. add code to remove single accounts in actions. Still need to fix unit tests, however because MM mobile team will upgrade keyringController to 15, will start to fix unit tests after rerbase.
# Conflicts: # app/components/Views/ConnectHardware/SelectHardware/index.tsx # app/components/Views/LedgerAccountInfo/index.tsx # app/core/Ledger/Ledger.test.ts # app/core/Ledger/Ledger.ts # package.json # patches/@MetaMask+keyring-controller+13.0.0.patch # yarn.lock
This version will be first version which ledger work after keyring controller 16 upgrade.
hi, @gantunesr i have done the change to |
Bitrise❌❌❌ Commit hash: c1a24b2 Note
|
Bitrise✅✅✅ Commit hash: 90d86ab Note
|
Flows tested on iPhone 13/iOS 17.5.1 and Samsung S21/Android 14 and screen recordings attached below:- Connect Multiple Ledger accounts Forget Multiple Ledger accounts Forget Individual Ledger Account Forget Individual QR Code Wallet Account |
Final |
…t` component to include a close icon, which will minic how the `ConnectQRHardware` component structure. hide the navigation header for `ledger Connect` screen.
Bitrise✅✅✅ Commit hash: df0bd74 Note
|
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
This PR will enable the multiple accounts supports for ledger devices.
Following changes has been made in this PR:
LedgerSelectAccount
component to allow user select multiple accounts from ledger devices. (screen is similiar to QR code select account screen)remove accounts
for all hardware wallet accounts inAccountActions.tsx
file.remove accounts
andconnect accounts
engine.ts
code andledger.ts
to allow intialise the new ledger keyring and its middleware and transport object.BlockingActionModel
to supportonAnimationCompleted
event so that we can have better smooth model animation than before. (very lagging animation when some heavy operations like import multiple accounts happened in the background)Related issues
Fixes:
Manual testing steps
Connect Multiple Ledger accounts
Forget Multiple Ledger accounts
Forget Individual Ledger Account
Forget Individual QR Code Wallet Account
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist