1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts/migrations
Dan J Miller d09f375b2c Fix migration 77 ()
* Handle the case where tokensChainsCache data is undefined in migration 77

* Delete parts of state that should have been removed in migrations 82,84,86 and 88

* Create 077-supplements.md

* Update 077-supplements.md

* Update 077-supplements/*.js code comments

* Fix types and jsdoc

* Type/lint fix

* Cleanup

* Add 'should set data to an empty object if it is null' test case to 077.test.js

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

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

* Modify deletion criteria so that all decimal chain id proprties are deleted in migration 88 supplement

* Readme.md

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

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

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

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

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

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

* Lint fix

* Only delete decimal chain id keyed-entries in migration 88 supplement if there are hexadecimal keyed entries as well

* Remove redundant test

* Add 'does not delete' cases for nftcontroller related tests in 077.test.js

---------

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2023-07-31 20:01:15 -02:30
..
077-supplements Fix migration 77 () 2023-07-31 20:01:15 -02:30
002.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
003.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
004.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
005.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
006.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
007.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
008.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
009.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
010.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
011.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
012.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
013.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
014.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
015.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
016.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
017.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
018.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
019.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
020.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
021.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
021.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
022.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
022.test.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
023.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
023.test.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
024.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
024.test.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
025.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
025.test.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
026.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
026.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
027.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
027.test.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
028.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
028.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
029.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
029.test.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
030.js update prettier () 2022-07-31 13:26:40 -05:00
030.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
031.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
031.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
032.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
033.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
033.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
034.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
034.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
035.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
035.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
036.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
036.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
037.js Migrate to new controller packages () 2022-11-24 16:29:07 -03:30
037.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
038.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
038.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
039.js use safer toChecksum utility () 2021-05-17 16:19:39 -05:00
039.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
040.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
040.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
041.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
041.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
042.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
042.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
043.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
043.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
044.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
044.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
045.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
045.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
046.js @metamask/eslint config@5.0.0 () 2021-02-04 10:15:23 -08:00
046.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
047.js update prettier () 2022-07-31 13:26:40 -05:00
047.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
048.js remove exclusions for mismatched object jsdoc type casing () 2022-07-27 08:28:05 -05:00
048.test.js Update ESLint config to v8 () 2021-12-09 15:36:24 -03:30
049.js update prettier () 2022-07-31 13:26:40 -05:00
049.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
050.js Fix 10036 - Prevent odd localStorage migration error in Firefox () 2021-04-14 09:24:17 -05:00
050.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
051.js migrate network constants to typescript () 2022-09-14 09:55:31 -05:00
051.test.js migrate network constants to typescript () 2022-09-14 09:55:31 -05:00
052.js Deprecating the Rinkeby, Ropsten, and Kovan test networks () 2022-09-28 20:26:01 -07:00
052.test.js Deprecating the Rinkeby, Ropsten, and Kovan test networks () 2022-09-28 20:26:01 -07:00
053.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
053.test.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
054.js Fixing incorrectly typed token decimal attribute () 2021-03-19 10:17:39 -07:00
054.test.js Deprecating the Rinkeby, Ropsten, and Kovan test networks () 2022-09-28 20:26:01 -07:00
055.js Deprecating the Rinkeby, Ropsten, and Kovan test networks () 2022-09-28 20:26:01 -07:00
055.test.js Deprecating the Rinkeby, Ropsten, and Kovan test networks () 2022-09-28 20:26:01 -07:00
056.js update prettier () 2022-07-31 13:26:40 -05:00
056.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
057.js Refactor Tx State Manager () 2021-03-30 09:54:05 -05:00
057.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
058.js Whats new popup () 2021-04-28 14:21:41 -02:30
058.test.js Jestify continue () 2021-09-22 08:15:40 -07:00
059.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
059.test.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
060.js Removing support survey notification from What's New () 2021-05-18 10:55:55 -07:00
060.test.js Jestify continue () 2021-09-22 08:15:40 -07:00
061.js Adding periodic reminder modal for backing up recovery phrase () 2021-06-04 23:33:58 -07:00
061.test.js Jestify continue () 2021-09-22 08:15:40 -07:00
062.js Removing obsolete client-side transaction metrics events () 2021-06-24 15:37:44 -07:00
062.test.js Jestify continue () 2021-09-22 08:15:40 -07:00
063.js Integrate TokensController () 2021-09-10 12:37:19 -05:00
063.test.js Jestify migrations/ () 2021-09-21 09:28:13 -07:00
064.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
064.test.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
065.js update prettier () 2022-07-31 13:26:40 -05:00
065.test.js Migrate completedOnboarding and firstTimeFlowType state into onboardingController () 2021-10-15 13:52:52 -05:00
066.js Convert shared/constants/hardware-wallets.js -> Typescript () 2023-01-20 09:14:40 -06:00
066.test.js Convert shared/constants/hardware-wallets.js -> Typescript () 2023-01-20 09:14:40 -06:00
067.js update prettier () 2022-07-31 13:26:40 -05:00
067.test.js Add migration to set showTestNetworks to true if there is evidence of testnet use () 2021-11-15 15:50:33 -03:30
068.js update prettier () 2022-07-31 13:26:40 -05:00
068.test.js update prettier () 2022-07-31 13:26:40 -05:00
069.js Move subject type enum to @metamask/subject-metadata-controller () 2023-01-24 16:03:01 +01:00
069.test.js Move subject type enum to @metamask/subject-metadata-controller () 2023-01-24 16:03:01 +01:00
070.js Stop storing request and response objects in the permission activity log () 2022-04-21 08:44:15 -07:00
070.test.js Stop storing request and response objects in the permission activity log () 2022-04-21 08:44:15 -07:00
071.js Rename NotificationController to AnnouncementController () 2022-04-27 10:36:32 +02:00
071.test.js Rename NotificationController to AnnouncementController () 2022-04-27 10:36:32 +02:00
072.js Increase likelyhood of valid method signatures being returned by getMethodData () 2022-06-17 23:11:09 +02:00
072.test.js Increase likelyhood of valid method signatures being returned by getMethodData () 2022-06-17 23:11:09 +02:00
073.js Remove decentralized 4byte function signature registry since it contains incorrect signatures and we can't algorithmically check for best option when 4byte.directory is down () 2022-07-26 12:01:14 -05:00
073.test.js Remove decentralized 4byte function signature registry since it contains incorrect signatures and we can't algorithmically check for best option when 4byte.directory is down () 2022-07-26 12:01:14 -05:00
074.js Deprecating the Rinkeby, Ropsten, and Kovan test networks () 2022-09-28 20:26:01 -07:00
074.test.js Deprecating the Rinkeby, Ropsten, and Kovan test networks () 2022-09-28 20:26:01 -07:00
075.js Remove 3box feature and delete ThreeBoxController () 2022-10-31 13:50:50 -02:30
075.test.js Remove 3box feature and delete ThreeBoxController () 2022-10-31 13:50:50 -02:30
076.js Update @metamask/controllers to v33 () 2022-11-15 15:19:42 -03:30
076.test.js Update @metamask/controllers to v33 () 2022-11-15 15:19:42 -03:30
077.js Fix migration 77 () 2023-07-31 20:01:15 -02:30
077.test.js Fix migration 77 () 2023-07-31 20:01:15 -02:30
078.test.js Change migration 78 version to 79, 79 to 80 and 80 to 78 (so that the… () 2023-03-06 10:06:01 -03:30
078.ts Change migration 78 version to 79, 79 to 80 and 80 to 78 (so that the… () 2023-03-06 10:06:01 -03:30
079.js Change migration 78 version to 79, 79 to 80 and 80 to 78 (so that the… () 2023-03-06 10:06:01 -03:30
079.test.js Change migration 78 version to 79, 79 to 80 and 80 to 78 (so that the… () 2023-03-06 10:06:01 -03:30
080.js Change migration 78 version to 79, 79 to 80 and 80 to 78 (so that the… () 2023-03-06 10:06:01 -03:30
080.test.js Change migration 78 version to 79, 79 to 80 and 80 to 78 (so that the… () 2023-03-06 10:06:01 -03:30
081.test.js [FLASK] BREAKING - snaps-monorepo@0.30.0 () 2023-03-08 13:29:23 -05:00
081.ts [FLASK] BREAKING - snaps-monorepo@0.30.0 () 2023-03-08 13:29:23 -05:00
082.test.js Migrate network configurations (previously frequentRpcListDetail) from PreferencesController to NetworkController () 2023-03-09 15:00:28 -06:00
082.ts Migrate network configurations (previously frequentRpcListDetail) from PreferencesController to NetworkController () 2023-03-09 15:00:28 -06:00
083.test.js Rename migration 83 to 84 and rename migration 84 to 83 () 2023-04-19 11:38:16 -02:30
083.ts Rename migration 83 to 84 and rename migration 84 to 83 () 2023-04-19 11:38:16 -02:30
084.test.js Rename migration 83 to 84 and rename migration 84 to 83 () 2023-04-19 11:38:16 -02:30
084.ts Rename migration 83 to 84 and rename migration 84 to 83 () 2023-04-19 11:38:16 -02:30
085.test.js Remove the network controller previousProviderStore () 2023-04-14 16:24:57 -02:30
085.ts Remove the network controller previousProviderStore () 2023-04-14 16:24:57 -02:30
086.test.js Rename provider to providerConfig () 2023-05-02 13:23:20 -02:30
086.ts Rename provider to providerConfig () 2023-05-02 13:23:20 -02:30
087.test.js Handle watch asset accept and reject using ApprovalController only () 2023-06-05 21:13:22 +01:00
087.ts Handle watch asset accept and reject using ApprovalController only () 2023-06-05 21:13:22 +01:00
088.test.ts Upgrade assets-controllers to v9 () 2023-06-09 15:48:48 -05:00
088.ts Upgrade assets-controllers to v9 () 2023-06-09 15:48:48 -05:00
089.test.ts Migration 89: ensure providerConfig in state has an id property () 2023-07-25 21:18:40 -02:30
089.ts Migration 89: ensure providerConfig in state has an id property () 2023-07-25 21:18:40 -02:30
090.test.js Update @metamask/phishing-controller to v4.0.0 () 2023-07-31 17:55:48 -02:30
090.ts Update @metamask/phishing-controller to v4.0.0 () 2023-07-31 17:55:48 -02:30
fail-tx.js Convert Transaction constants to typescript () 2023-01-18 08:47:29 -06:00
index.js Update @metamask/phishing-controller to v4.0.0 () 2023-07-31 17:55:48 -02:30
migrations.test.js Deprecating the Rinkeby, Ropsten, and Kovan test networks () 2022-09-28 20:26:01 -07:00
template.test.js Convert the migration template to TypeScript () 2023-02-27 15:16:22 -03:30
template.ts Convert the migration template to TypeScript () 2023-02-27 15:16:22 -03:30