1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00
metamask-extension/app/scripts/migrations
Dan J Miller 9d70c60c22
Connect Ledger via WebHID (#12411)
* Connect ledger via webhid if that option is available

* Explicitly setting preference for webhid

* Use ledgerTransportType enum instead of booleans for ledger live and webhid preferences

* Use single setLEdgerTransport preference methods and property

* Temp

* Lint fix

* Unit test fix

* Remove async keyword from setLedgerTransportPreference function definition in preferences controller

* Fix ledgelive setting toggle logic

* Migrate useLedgerLive preference property to ledgerTransportType

* Use shared constants for ledger transport type enums

* Use constant for ledger usb vendor id

* Use correct property to check if ledgerLive preference is set when deciding whether to ask for webhid connection

* Update eth-ledger-bridge-keyring to v0.9.0

* Only show ledger live transaction helper messages if using ledger live

* Only show ledger live part of tutorial if ledger live setting is on

* Fix ledger related prop type errors

* Explicitly use u2f enum instead of empty string as a transport type; default transport type to webhid if available; use constants for u2f and webhid

* Cleanup

* Wrap ledger webhid device request in try/catch

* Clean up

* Lint fix

* Ensure user can easily connect their ledger wallet when they need to.

* Fix locales

* Fix/improve locales changes

* Remove unused isFirefox property from confirm-transaction-base.container.js

* Disable transaction and message signing confirmation if ledger webhid requires connection

* Ensure translation keys for ledger connection options in settings dropdown can be properly detected by verify-locales

* Drop .component from ledger-instruction-field file name

* Move renderLedgerLiveStep to module scope

* Remove ledgerLive from function and message names in ledger-instruction-field

* Wrap ledger connection logic in ledger-instruction-field in try catch

* Clean up signature-request.component.js

* Check whether the signing address, and not the selected address, is a ledger account in singature-request.container

* Ensure ledger instructions and webhid connection button are shown on signature-request-original signatures

* Improve webhid selection handling in select-ledger-transport-type onChange handler

* Move metamask redux focused ledger selectors to metamask duck

* Lint fix

* Use async await in checkWebHidStatusRef.current

* Remove unnecessary use of ref in ledger-instruction-field.js

* Lint fix

* Remove unnecessary try/catch in ledger-instruction-field.js

* Check if from address, not selected address, is from a ledger account in confirm-approve

* Move findKeyringForAddress to metamask duck

* Fix typo in function name

* Ensure isEqualCaseInsensitive handles possible differences in address casing

* Fix Learn More link size in advanced settings tab

* Update app/scripts/migrations/066.js

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Update ui/pages/settings/advanced-tab/advanced-tab.component.test.js

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Add jsdoc comments for new selectors

* Use jest.spyOn for mocking navigator in ledger webhid migration tests

* Use LEDGER_TRANSPORT_TYPES values to set proptype of ledgerTransportType

* Use LEDGER_TRANSPORT_TYPES values to set proptype of ledgerTransportType

* Fix font size of link in ledger connection description in advanced settings

* Fix return type in setLedgerTransportPreference comment

* Clean up connectHardware code for webhid connection in actions.js

* Update app/scripts/migrations/066.test.js

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Update ui/ducks/metamask/metamask.js

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Add migration test for when useLedgerLive is true in a browser that supports webhid

* Lint fix

* Fix inline-link size

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-10-21 16:47:03 -02:30
..
002.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
003.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
004.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
005.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
006.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
007.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
008.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
009.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
010.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
011.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
012.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
013.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
014.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
015.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
016.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
017.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
018.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
019.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
020.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
021.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
021.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
022.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
022.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
023.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
023.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
024.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
024.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
025.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
025.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
026.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
026.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
027.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
027.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
028.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
028.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
029.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
029.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
030.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
030.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
031.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
031.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
032.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
033.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
033.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
034.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
034.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
035.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
035.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
036.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
036.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
037.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
037.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
038.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
038.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
039.js use safer toChecksum utility (#11117) 2021-05-17 16:19:39 -05:00
039.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
040.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
040.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
041.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
041.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
042.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
042.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
043.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
043.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
044.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
044.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
045.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
045.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
046.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
046.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
047.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
047.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
048.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
048.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
049.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
049.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
050.js Fix 10036 - Prevent odd localStorage migration error in Firefox (#10884) 2021-04-14 09:24:17 -05:00
050.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
051.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
051.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
052.js key tokens by chainId (#10510) 2021-02-26 09:40:25 -06:00
052.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
053.js Improving handling for non-existent props in state migrations (#11829) 2021-08-17 19:18:53 -07:00
053.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
054.js Fixing incorrectly typed token decimal attribute (#10666) 2021-03-19 10:17:39 -07:00
054.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
055.js make migration more safe (#10689) 2021-03-22 10:21:52 -05:00
055.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
056.js Improving handling for non-existent props in state migrations (#11829) 2021-08-17 19:18:53 -07:00
056.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
057.js Refactor Tx State Manager (#10672) 2021-03-30 09:54:05 -05:00
057.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
058.js Whats new popup (#10583) 2021-04-28 14:21:41 -02:30
058.test.js Jestify continue (#12173) 2021-09-22 08:15:40 -07:00
059.js Migration to remove erroneous tx state (#11107) 2021-05-17 12:44:47 -05:00
059.test.js Jestify continue (#12173) 2021-09-22 08:15:40 -07:00
060.js Removing support survey notification from What's New (#11118) 2021-05-18 10:55:55 -07:00
060.test.js Jestify continue (#12173) 2021-09-22 08:15:40 -07:00
061.js Adding periodic reminder modal for backing up recovery phrase (#11021) 2021-06-04 23:33:58 -07:00
061.test.js Jestify continue (#12173) 2021-09-22 08:15:40 -07:00
062.js Removing obsolete client-side transaction metrics events (#11329) 2021-06-24 15:37:44 -07:00
062.test.js Jestify continue (#12173) 2021-09-22 08:15:40 -07:00
063.js Integrate TokensController (#11552) 2021-09-10 12:37:19 -05:00
063.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
064.js Replace hardcoded sent ether label on confirm screen (#11802) 2021-09-15 16:54:51 -05:00
064.test.js Jestify continue (#12173) 2021-09-22 08:15:40 -07:00
065.js Migrate completedOnboarding and firstTimeFlowType state into onboardingController (#12356) 2021-10-15 13:52:52 -05:00
065.test.js Migrate completedOnboarding and firstTimeFlowType state into onboardingController (#12356) 2021-10-15 13:52:52 -05:00
066.js Connect Ledger via WebHID (#12411) 2021-10-21 16:47:03 -02:30
066.test.js Connect Ledger via WebHID (#12411) 2021-10-21 16:47:03 -02:30
fail-tx.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
index.js Connect Ledger via WebHID (#12411) 2021-10-21 16:47:03 -02:30
migrations.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00
template.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
template.test.js Jestify migrations/ (#12106) 2021-09-21 09:28:13 -07:00