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

3998 Commits

Author SHA1 Message Date
Alex Donesky
9f0ec1c18f patch breaking change in signTypeData param validation (#11309) 2021-06-15 11:57:14 -07:00
Dan J Miller
3af174b590 Stringify gas estimate in backend, before it is serialized and sent to ui (#11266)
* Stringify gas estimate in backend, before it is serialized and sent to ui

* Fix send.utils.test.js
2021-06-09 19:57:24 -07:00
ryanml
523c04b47a Fix built-in networks switch-ethereum-chain, Including RPC url in switchEthereumChain requestData (#11268)
* Moving RPC Urls to network constants

* Including RPC url in switchEthereumChain requestData

* Setting project id to var

* Fix built-in networks switch-ethereum-chain

`switch-ethereum-chain` did not work correctly with built-in networks.
It was treating them as custom networks, rather than as built-in
networks. This affected how they were displayed in the network
dropdown, and resulted in slight differences to the network stack used
as well.

The problem was that `updateRpcTarget` was used, which was meant for
custom networks only. Now that `setProviderType` is used in the case of
a built-in network, the behaviour should match the network switcher
exactly.

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-06-09 19:57:10 -07:00
ryanml
ce90b3b8a8 Running verify-locales:fix 2021-06-08 11:57:50 -07:00
ryanml
56fede7ff7 Adding Lionbridge translation updates (#11251)
* Adding Lionbridge translation updates

* Removing the BOMs, running verify-locales:fix
2021-06-08 11:50:51 -07:00
ryanml
10f9912fd5 Supporting existing default networks in switchEthereumChain (#11184) 2021-06-07 10:38:33 -02:30
ryanml
3d13b85213 Adding notification for updated seed phrase wording (#11131)
* Adding notification for updated seed phrase wording

* Updating e2e notification state

* Always displaying image for swaps notification
2021-06-07 10:38:28 -02:30
ryanml
c9a539b5aa Removing support survey notification from What's New (#11118)
* Removing support notification from what's new

* Adding migration for support notification removal

* Expanding test cases, using async/await for storage comparison
2021-06-07 10:33:25 -02:30
Niranjana Binoy
d4cb403d51 Handling custom token decimal fetch failure due to network error (#10956) 2021-06-07 10:33:20 -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
Shane
0cb0f7c2c2 fix metaRPCClientFactory id handling (#11116)
* fix metaRPCClientFactory id handling
2021-06-07 10:30:49 -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
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
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
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
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
640c6d98d3 replacing seed phrase with Secret Recovery Phrase (#10994) 2021-06-07 10:02:39 -02:30
Daniel
92a79904f7 Swaps: Improve hardware wallet UX (#10987) 2021-06-07 10:02:30 -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
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
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
Dan Miller
8d99a7360c Version v9.5.9 2021-06-03 14:06:43 -02:30
Dan Miller
31fb26f196 Version v9.5.8 2021-05-31 17:36:51 -02:30
Dan Miller
ad7b4595ce Revert "Revert "Adding "What's New" notification for Ledger Support Update (#11188)""
This reverts commit 7365f87f9e.
2021-05-31 17:31:23 -02:30
Dan Miller
e3ed26cc24 Revert "Revert "Implement Ledger Live bridge (#10293)""
This reverts commit 56db48a1c3.
2021-05-31 17:30:56 -02:30
Dan Miller
b1ce4022dc Version v9.5.7 2021-05-28 16:29:50 -02:30
Dan Miller
56db48a1c3 Revert "Implement Ledger Live bridge (#10293)"
This reverts commit 397417bf09.
2021-05-28 16:17:17 -02:30
Dan Miller
7365f87f9e Revert "Adding "What's New" notification for Ledger Support Update (#11188)"
This reverts commit 939a34f16c.
2021-05-28 16:16:37 -02:30
MetaMask Bot
0d8b5f00d2 Version v9.5.6 2021-05-26 21:40:16 +00:00
ryanml
939a34f16c Adding "What's New" notification for Ledger Support Update (#11188)
* Adding "What's New" notification for Ledger Support Update

* Using Typography component
2021-05-26 14:38:11 -07:00
David Walsh
397417bf09 Implement Ledger Live bridge (#10293) 2021-05-26 10:33:12 -07:00
MetaMask Bot
143a47ed09 Version v9.5.5 2021-05-24 22:21:13 +00:00
Dan J Miller
452a5e7de6 Add stringified payload to metametrics controller trackEvent error message (#11166)
* Add stringified payload to metametrics controller trackEvent error message

* Don't include full payload when throwing error on missing event or category in trackEvent
2021-05-24 15:17:10 -07:00
Dan J Miller
a137cd1aca Add event property to event sent on tx:status-update in metamask-controller (#11165) 2021-05-24 15:16:57 -07:00
MetaMask Bot
00f141ff9c Version v9.5.4 2021-05-21 16:07:41 +00:00
MetaMask Bot
fb81255f7e Version v9.5.3 2021-05-17 16:12:04 -07:00
Brad Decker
03961715f7 use safer toChecksum utility (#11117) 2021-05-17 15:38:01 -07:00
Brad Decker
001a01e5b2 Migration to remove erroneous tx state (#11107) 2021-05-17 15:34:11 -07:00