1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
Commit Graph

12337 Commits

Author SHA1 Message Date
Niranjana Binoy
d4cb403d51 Handling custom token decimal fetch failure due to network error (#10956) 2021-06-07 10:33:20 -02:30
Niranjana Binoy
6a73b7c998 Hide basic tab in advanced gas modal for speedup and cancel when on testnets (#11115) 2021-06-07 10:30:50 -02:30
Mark Stacey
5f538f7ab2 Migrate Sentry settings to environment variables (#11085)
Sentry is now configured with environment variables, rather than with
hard-coded values. This makes it easier to test Sentry functionality
using a different Sentry account, as we did recently during QA of
v9.5.1.

The only change for the normal build process is the introduction of the
`SENTRY_DSN_DEV` variable, which can be set via `.metamaskrc` or via an
environment variable. This determines where error reports are sent. It
still defaults to our team Sentry account's `metamask-testing` project.

The `sentry:publish` script now requires SENTRY_ORG and SENTRY_PROJECT
to be set in order to publish release artifacts. The CircleCI
configuration has been updated with these values, so it should act the
same as it did before. Previously we had used a CLI flag to specify the
organization and project, but Sentry already natively supports these
environment variables [1].

[1]: https://docs.sentry.io/product/cli/configuration/#configuration-values
2021-06-07 10:30:50 -02:30
David Walsh
440b013d51 Update eth-ledger-bridge-keyring to v0.5.0 (#11064) 2021-06-07 10:30:50 -02:30
Shane
0cb0f7c2c2 fix metaRPCClientFactory id handling (#11116)
* fix metaRPCClientFactory id handling
2021-06-07 10:30:49 -02:30
Brad Decker
ce67e1bfcd use safer toChecksum utility (#11117) 2021-06-07 10:30:49 -02:30
Brad Decker
19ec45ef35 create safer isValidAddress method (#11089) 2021-06-07 10:30:46 -02:30
Etienne Dusseault
fac258a38a bump allow scripts (#10822) 2021-06-07 10:16:19 -02:30
ryanml
c5f3290cb1 Fixing unlocalized strings (#11102)
* Fixing unlocalized strings

Fixes MetaMask/metamask-extension#11094

* Removing aggregrate bullet from modal

* Updating bullet point keys
2021-06-07 10:16:19 -02:30
ryanml
41fd49cefb Updating translations related to Secret Recovery Phrase (#11093)
Updating the following translation files: es, tl, vi, ru, ko, pt_BR, ja, hi, id
2021-06-07 10:16:19 -02:30
PeterYinusa
c30e41b9ce refactor custom rpc history test to use fixture (#11068)
* refactor custom rpc history test to use fixture

* code formatting

* refactoring to use custom-rpc fixture

* remove delays
2021-06-07 10:15:47 -02:30
ryanml
226d23ee64 Fixing account search results ordering (#11097)
Removing 'shouldSort: false' from fuse.js' options config

Fixes MetaMask/metamask-extension#10991
2021-06-07 10:15:47 -02:30
Daniel
e4ac5eed94 Show a notification about BSC Swaps if a user is on the BSC Mainnet (#11083)
* Add a notification for BSC Swaps

* Add a new logo for BSC sources, update an image for BSC notification

* Mark a BSC notification as seen when a user clicks on “Start swapping”

* Add conditional rendering of notifications

* Remove divider for the last notification

* Remove a divider for the last notification

* Remove !

* Trigger pipeline
2021-06-07 10:15:41 -02:30
Daniel
3f70afb3ff Swaps: Add specific error content if Contract data are not enabled on Ledger (#11088) 2021-06-07 10:07:44 -02:30
Daniel
79e79e9212 Swaps: Add more anonymized tracking for HW wallet and HW wallet type (#11087) 2021-06-07 10:07:44 -02:30
dependabot[bot]
120efc6dab Bump ssri from 6.0.1 to 6.0.2 (#10959)
Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases)
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md)
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-07 10:07:44 -02:30
Erik Marks
2007e73747 @metamask/providers@8.1.1 (#11078)
* @metamask/providers@8.1.1

* Minimize import footprint
2021-06-07 10:07:43 -02:30
ryanml
9303912b7d bumping package.json -> 9.5.2 2021-06-07 10:07:43 -02:30
Daniel
cfe1ea2bea Swaps: Add anonymized tracking for HW wallet and HW wallet type (#11063) 2021-06-07 10:06:18 -02:30
ryanml
3a6966ac8a Fixing changelog, bumping package.json -> 9.5.1 2021-06-07 10:06:18 -02:30
dependabot[bot]
c07e45b5e6 Bump hosted-git-info from 2.5.0 to 2.8.9 (#11034)
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.5.0 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.5.0...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-07 10:04:13 -02:30
Mark Stacey
352dbd8831 Replace uses of hasOwnProperty.call with simpler alternatives (#11009)
Three uses of `hasOwnProperty.call` have been replaced with simpler
alternatives. I did this because I found this convention confusing.

The `ComposableObservableStore` changes required adding a check for
whether the `config` is defined, because the old syntax would allow
iterating over `undefined` as if it was an empty object. Functionally
it should be identical. A new test was added to highlight this
functionality.
2021-06-07 10:04:11 -02:30
Erik Marks
8303e866e2 Fix error behavior of addEthereumChain (#11031) 2021-06-07 10:04:11 -02:30
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