1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 18:41:38 +01:00
Commit Graph

12514 Commits

Author SHA1 Message Date
Erik Marks
434249f171 Update switchEthereumChain unrecognized chain error (#11030) 2021-06-07 10:03:15 -02:30
Mark Stacey
4ced29e3a2 Migrate version from _base manifest to package.json (#11029)
The version field is now stored in the main `package.json` file rather
than in the base manifest. It is built into the final manifest during
the build script.

This makes it easier to communicate what the current version should be
to our `auto-changelog` script. It's also generally a more conventional
place to keep track of the version, even considering that we're not
publishing to npm.
2021-06-07 10:03:09 -02:30
Brad Decker
cfc0a868a4 rough in switchEthereumChain (#10905) 2021-06-07 10:02:42 -02:30
Daniel
da1720a9ec Fix redirection to the build quotes page from the swaps failed page (#11025) 2021-06-07 10:02:42 -02:30
Erik Marks
e466206040 Update jsconfig excludes array (#11011) 2021-06-07 10:02:42 -02:30
David Walsh
e69a6d6dee Prevent signature request component from canceling hardware wallet signing (#11013) 2021-06-07 10:02:39 -02:30
ryanml
cfdfe0fcc6 Removing unused prop from TransactionActivityLog (#11014) 2021-06-07 10:02:39 -02:30
Mark Stacey
3ba3b330f6 Use strict assertion mode everywhere (#11012)
The `assert` module has two modes: "Legacy" and "strict". When using
strict mode, the "strict" version of each assertion method is implied.
Whereas in legacy mode, by default it will use the deprecated, "loose"
version of each assertion.

We now use strict mode everywhere. A few tests required updates where
they were asserting the wrong thing, and it was passing beforehand due
to the loose matching.
2021-06-07 10:02:39 -02:30
Mark Stacey
9d002cbff0 Remove SET_CURRENT_FIAT action (#11003)
The `SET_CURRENT_FIAT` action has been removed. It has been replaced
by a call to `forceUpdateMetamaskState`. The only purpose of this
action was to eagerly update the current fiat currency settings before
the next state update. Forcing a state update instead is simpler and
safer.

The `setCurrentCurrency` function in the background has been updated to
no longer return the state, now that it's no longer needed.
2021-06-07 10:02:39 -02:30
Niranjana Binoy
e906bd8d0e adding condition to check for non-mainnet network and test env (#11007) 2021-06-07 10:02:39 -02:30
Niranjana Binoy
640c6d98d3 replacing seed phrase with Secret Recovery Phrase (#10994) 2021-06-07 10:02:39 -02:30
Mark Stacey
119693fe05 Update @metamask/controllers to v8 (#11000)
Update `@metamask/controllers` from v6 to v8. The breaking changes were
all in controllers that aren't used by the extension, so no changes
were required.
2021-06-07 10:02:39 -02:30
Mark Stacey
dfe758d7ac Add changelog validation (#10999)
Add changelog validation to CI, ensuring that the changelog follows the
KeepAChangelog format. Additionally, this will also ensure that all of
the auto-generated "Uncategorized" changelog entries on release
branches get categorized.
2021-06-07 10:02:39 -02:30
Mark Stacey
e6fcd3d867 Replace auto-changelog script (#10993)
The `auto-changelog` script has been replaced with the package
`@metamask/auto-changelog`. This package includes a script that has
an `update` command that is roughly equivalent to the old
`auto-changelog.js` script, except better. The script also has a
`validate` command.

The `repository` field was added to `package.json` because it's
utilized by the `auto-changelog` script, and this was easier than
specifying the repository URL with a CLI argument.
2021-06-07 10:02:30 -02:30
Daniel
92a79904f7 Swaps: Improve hardware wallet UX (#10987) 2021-06-07 10:02:30 -02:30
ryanml
4016bb535b Re-validating chain id when rpc url changes [custom network form] (#10982) 2021-06-07 10:02:30 -02:30
ryanml
5f1a0f7a69 Fixing changelog 2021-06-07 10:02:25 -02:30
Erik Marks
88d85d43bd @metamask/post-message-stream@4.0.0 (#10989) 2021-06-07 10:00:17 -02:30
ryanml
d421e593a2 Allowing for scroll overflow when swaps content is too tall (#10988)
Fixes MetaMask/metamask-extension#10957
2021-06-07 10:00:16 -02:30
ryanml
c63ff8f315 Revert "Remove tests that are only needed for the commit reverted in 68c5defc"
This reverts commit 08b401b4e0aa284cfe6c39e16adfc6ee5f74ef33.
2021-06-07 10:00:16 -02:30
ryanml
2dd26f9249 Revert "Removing recovery video entry from changelog"
This reverts commit 38d30a0ab2ff013d5ca2505df8490940f33c8e73.
2021-06-07 10:00:16 -02:30
ryanml
b8d385be62 Revert "Revert "Adding recovery phrase video to onboarding process (#10717)""
This reverts commit 68c5defcdbb7cf3745c14c0023a1d3c37e657992.
2021-06-07 10:00:11 -02:30
Daniel
91601ebe5e Allow 0% slippage, show a warning for 0 < slippage <= 1, disable "Review Swap" button for negative slippage (#10936)
* Allow 0% slippage, show a warning for 0 < slippage <= 1, disable “Review Swap” button for negative slippage

* Update a translation key, use both new and old key until it’s translated everywhere

* Keep an old key for `en`: swapSlippageTooLow

* Fix an ESLint issue

* Only use swapSlippageNegative, remove swapSlippageTooLow
2021-06-07 09:58:45 -02:30
Alex Donesky
ce8b173f56 add setting to dismiss seed phrase backup reminder (#10967) 2021-06-07 09:58:45 -02:30
Alex Donesky
fbe1da81a5 send user to activity after transaction complete (#10946) 2021-06-07 09:58:45 -02:30
ryanml
6fddd7f548 Removing gray background from contact address input (#10971) 2021-06-07 09:58:45 -02:30
Mark Stacey
024095f090 Migrate check for GITHUB_TOKEN (#10958)
The check for the GITHUB_TOKEN environment variable was being done in
the wrong release script. It has been migrated to the relevant script.

A second check for the username has also been added, as it is also
required.
2021-06-07 09:58:45 -02:30
Mark Stacey
4f8ac95887 Update deploy key used for Storybook (#10966)
The SSH key used for Storybook deployments to `metamask-storybook` has
been updated. This new key is associated with `metamaskbot` rather than
a specific team member.
2021-06-07 09:58:45 -02:30
David Walsh
f8e400f51c Fix #10173 - Prevent lag in external monitors when using Mac + Chrome (#10952) 2021-06-07 09:58:45 -02:30
Brad Decker
29742b9519 remove the ui/app and ui/lib folders (#10911) 2021-06-06 12:45:27 -02:30
Niranjana Binoy
ffbd8e2c2f Handling gas price fetch failure (#10767) 2021-06-06 12:10:08 -02:30
ryanml
9932c40651
Adding periodic reminder modal for backing up recovery phrase (#11021)
* Adding recurring recovery phrase reminder modal

* Refactoring per PR feedback
2021-06-04 23:33:58 -07:00
Alex Donesky
e76762548c
Warn users when they attempt to add a network that is already configured (#11179)
* warn users when they attempt to add a network that is already configured

* clean up validation logic

* fixing up e2e tests

* Update test/e2e/helpers.js

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

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-06-04 08:52:07 -05:00
Mark Stacey
a8196c2b21
Merge pull request #11233 from MetaMask/master-sync
Sync `master` with `develop`
2021-06-04 10:01:42 -02:30
ricky
10c600589b
Feature/use zeroAddress (#11205)
* update ethereumjs-util

* Use zeroAddress
2021-06-03 20:56:04 -04:00
Dan Miller
e6df48af74 Changelog lint fix for v9.5.9 master to develop sync 2021-06-03 21:38:44 -02:30
Dan Miller
9d79246f9c Merge branch 'develop' into master-sync 2021-06-03 16:29:51 -02:30
Dan J Miller
d23db62ba0
Merge pull request #11232 from MetaMask/Version-v9.5.9
Version v9.5.9
2021-06-03 15:53:45 -02:30
Dan J Miller
5d566a483a Resolve ws dependency to version ^7.4.6 to fix security vulnerability (#11229) 2021-06-03 14:07:17 -02:30
Dan Miller
8d99a7360c Version v9.5.9 2021-06-03 14:06:43 -02:30
Dan Miller
e632076b20 Changelog lint fix for v9.5.8 2021-06-03 14:05:01 -02:30
Dan J Miller
a6b1444b4d Improve detection of whether a whats new notification was 'seen' (#11225) 2021-06-03 14:01:51 -02:30
Dan J Miller
6dae3bbe57
Improve detection of whether a whats new notification was 'seen' (#11225) 2021-06-03 13:58:04 -02:30
Daniel
c3b79bb358
Show custom tokens in Swaps, add a custom token in Swaps (#11200)
* Show custom tokens in Swaps

* Add messages for adding a custom token in Swaps

* Add the first version of importing custom tokens in swaps

* Fix lint rules

* Create a new component: ImportToken

* Remove a pointer cursor from regular heading

* Fix a CSS issue for tokens with long names

* Update a comment

* Don’t return a custom token if it doesn’t have symbol or decimals

* Only search by contract address if nothing was found

* Track “Token Imported” event

* Fix unit tests

* Import tracking for “Token Imported”, increase token icon font size

* Disable token import for Source Token

* Update logic and content for notifications, update tests

* Do not hide a dropdown placeholder on click, so a user can click on a link

* Update a key name

* Update styling for the “danger” type notification in Swaps

* Show either a warning or danger notification based on token verification occurences

* Remove testnets from SWAPS_CHAINID_DEFAULT_BLOCK_EXPLORER_URL_MAP

* Use the “shouldSearchForImports” prop

* Create a new function for handling token import: “onOpenImportTokenModalClick”

* Filter token duplicities before iterating over tokens

* Use “address” instead of “symbol” for checking uniqueness

* Trigger Build

* Use a new API (/token) to get token data for importing in Swaps

* Temporarily decrese Jest threshold for functions
2021-06-03 13:38:37 -02:30
Mark Stacey
6700c460fd
Merge pull request #11221 from MetaMask/master-sync
Sync master with develop
2021-06-03 13:07:32 -02:30
Dan Miller
92a10d595e Changelog lint fix for v9.5.8 2021-06-03 12:20:21 -02:30
Dan Miller
a194fa92c3 Merge branch 'develop' 2021-06-03 12:02:57 -02:30
Dan J Miller
6040c6ebbb
Resolve ws dependency to version ^7.4.6 to fix security vulnerability (#11229) 2021-06-03 10:56:52 -02:30
Dan J Miller
0a9aee19f4
Merge pull request #11216 from MetaMask/Version-v9.5.8
Version v9.5.8
2021-06-01 15:04:21 -02:30
ricky
c87f8547a0
Update config.yml (#11217)
Use `community.metamask.io` for "Request a new feature"
2021-06-01 12:22:51 -04:00