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
Mark Stacey f763979bed
Add support for one-click onboarding (#7017)
* Add support for one-click onboarding

MetaMask now allows sites to register as onboarding the user, so that
the user is redirected back to the initiating site after onboarding.
This is accomplished through the use of the `metamask-onboarding`
library and the MetaMask forwarder.

At the end of onboarding, a 'snackbar'-stype component will explain to the
user they are about to be moved back to the originating dapp, and it will
show the origin of that dapp. This is intended to help prevent phishing
attempts, as it highlights that a redirect is taking place to an untrusted
third party.

If the onboarding initiator tab is closed when onboarding is finished,
the user is redirected to the onboarding originator as a fallback.

Closes #6161

* Add onboarding button to contract test dapp

The `contract-test` dapp (run with `yarn dapp`, used in e2e tests) now
uses a `Connect` button instead of connecting automatically. This
button also serves as an onboarding button when a MetaMask installation
is not detected.

* Add new static server for test dapp

The `static-server` library we were using for the `contract-test` dapp
didn't allow referencing files outside the server root. This should
have been possible to work around using symlinks, but there was a bug
that resulted in symlinks crashing the server.

Instead it has been replaced with a simple static file server that
will serve paths starting with `node_modules` from the project root.
This will be useful in testing the onboarding library without vendoring
it.

* Add `@metamask/onboarding` and `@metamask/forwarder`

Both libraries used to test onboarding are now included as dev
dependencies, to help with testing. A few convenience scripts
were added to help with this (`yarn forwarder` and `yarn dapp-forwarder`)
2019-11-22 13:03:51 -04:00
..
002.js Fix linting warnings 2017-04-26 21:05:45 -07:00
003.js Fix linting warnings 2017-04-26 21:05:45 -07:00
004.js Update ESLint rules for curly braces style (#7477) 2019-11-19 20:33:20 -03:30
005.js Fix linting warnings 2017-04-26 21:05:45 -07:00
006.js Fix linting warnings 2017-04-26 21:05:45 -07:00
007.js Fix linting warnings 2017-04-26 21:05:45 -07:00
008.js Fix linting warnings 2017-04-26 21:05:45 -07:00
009.js Fix linting warnings 2017-04-26 21:05:45 -07:00
010.js Fix linting warnings 2017-04-26 21:05:45 -07:00
011.js Fix linting warnings 2017-04-26 21:05:45 -07:00
012.js Fix linting warnings 2017-04-26 21:05:45 -07:00
013.js eslint --fix . 2018-07-02 18:49:33 -04:00
014.js Add a migration for the network controller 2017-05-23 01:55:20 -04:00
015.js Update ESLint rules for curly braces style (#7477) 2019-11-19 20:33:20 -03:30
016.js Update ESLint rules for curly braces style (#7477) 2019-11-19 20:33:20 -03:30
017.js Update ESLint rules for curly braces style (#7477) 2019-11-19 20:33:20 -03:30
018.js Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
019.js Update ESLint rules for curly braces style (#7477) 2019-11-19 20:33:20 -03:30
020.js Fix migration comment 2017-11-29 11:51:27 -08:00
021.js remove RecentBlocks from disk 2018-01-31 10:49:58 -08:00
022.js Update ESLint rules for curly braces style (#7477) 2019-11-19 20:33:20 -03:30
023.js Update ESLint rules for curly braces style (#7477) 2019-11-19 20:33:20 -03:30
024.js Update ESLint rules for curly braces style (#7477) 2019-11-19 20:33:20 -03:30
025.js Update ESLint rules for curly braces style (#7477) 2019-11-19 20:33:20 -03:30
026.js Fix return value of migration 26 when missing KC or PC 2018-06-01 15:46:31 -07:00
027.js migration 27 - remove rejected transactions from state 2018-06-25 11:45:00 -07:00
028.js fix migration 28 2018-08-09 16:15:56 -04:00
029.js Auto fail transactions that have been approved for over 12 hours (#5765) 2018-11-16 21:27:01 -08:00
030.js fix - migration 30 undefinds (#6079) 2019-01-31 10:09:28 -08:00
031.js Add support for one-click onboarding (#7017) 2019-11-22 13:03:51 -04:00
032.js Remove betaUI preference state, replace with completedUiMigration 2019-02-05 08:49:55 -03:30
033.js Remove NoticeController (#6382) 2019-04-01 22:33:54 -02:30
034.js Default Privacy Mode to ON, allow force sharing address (#6904) 2019-08-01 10:54:33 -02:30
035.js Add migration to remove seedWords state (#6937) 2019-08-02 10:28:25 -02:30
036.js Connections settings tab (#7013) 2019-08-15 18:37:18 -02:30
037.js address book entries by chainId (#7205) 2019-09-21 14:36:05 -03:00
038.js Add a/b test for full screen transaction confirmations (#7162) 2019-09-24 17:08:38 -04:00
039.js Add migration notification for users with Sai (#7450) 2019-11-18 18:16:28 -03:30
fail-tx.js Auto fail transactions that have been approved for over 12 hours (#5765) 2018-11-16 21:27:01 -08:00
index.js Add migration notification for users with Sai (#7450) 2019-11-18 18:16:28 -03:30
README.md add READMEs to folders, re #3427 2018-03-14 15:33:22 +02:00
template.js meta - create a migration template 2018-04-05 16:25:13 -07:00

Migrations

Data (user data, config files etc.) is migrated from one version to another.

Migrations are called by {} from {} during {}.