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

15221 Commits

Author SHA1 Message Date
Mark Stacey
f9d468fc4b Merge pull request #16036 from MetaMask/Version-v10.21.0
Version v10.21.0
2022-10-28 22:42:19 -02:30
seaona
3374718f75 lavamoat 2022-10-28 12:47:42 +02:00
Maarten Zuidhoorn
7c90fe56a0 Update Jest config to avoid transpiling dependencies (#16068)
* Use stable version of Jest

* Update Jest config
2022-10-28 11:23:02 +02:00
seaona
f75672ef1f lavamoat 2022-10-27 22:13:06 +02:00
seaona
661b2bc50e Remove duplicate RC entry 10.20.0 2022-10-27 20:40:03 +02:00
seaona
7404c6b2dd Remove empty files 2022-10-27 20:27:18 +02:00
seaona
2bbc0096d9 [e2e] Fix Dapp interactions flaky test on chrome (#16282) 2022-10-27 20:27:18 +02:00
seaona
b6d5afbae8 Changelog last updates with cherry-picked PRs (#16287)
* Last changelog updates with recently added PRs

* Remove snaps-skunkworks from Changelog

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>

* Fix snaps issue that request eth_accounts permission

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>

* Move flask PR to fixed section

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2022-10-27 20:27:18 +02:00
ryanml
005d2aff39 Enable "Add Popular Network" feature by default for all users (#16172)
* Enable "Add Popular Network" feature by default

* Fixing e2e tests

* Attempt to fix e2e tests

* Revert "Attempt to fix e2e tests"

This reverts commit d88e8944b8df8f7c3075753f8d8b3480439f8e30.

* Get e2e tests passing

Co-authored-by: Dan J Miller <danjm.com@gmail.com>
2022-10-27 20:27:18 +02:00
ryanml
de0e87e2b2 Fixing forgot password action after wallet creation (#16156) 2022-10-27 20:27:18 +02:00
ryanml
9ed708cc86 Remove ETH badge from NetworkAccountBalanceHeader when on non-ETH net… (#16102)
* Remove ETH badge from NetworkAccountBalanceHeader when on non-ETH networks

* Network specific icons, or fallback, in the network-account-balance-header

* Update snapshots

* Code cleanup

Co-authored-by: Dan Miller <danjm.com@gmail.com>
2022-10-27 20:27:18 +02:00
ryanml
e8c43ffed4 Fixing Identicon import paths (#16101) 2022-10-27 20:27:18 +02:00
Jyoti Puri
6b2bfd03fc Updating controller dependency (#16033)
* Updating controller dependency

* fix

* fix

* fix

* fix

* fixes

* Lavamoat auto

* Update URLs for phishing detection testcase

* update lavamoat files

* call phishingController.test synchronously again

* bump @metamask/controllers to v32.0.1

* lint

* update policy files

* bump controllers version again

* modify update phishing list strategy

* revert back to use isOutOfDate, but without blocking substream

* possible way to fix e2e tests?

* enable testing

* Remove promise return from setupController in background.js, as it is no longer used

* Ensure updatePhishingLists is called in MM contrller constructer, so that phishing lists are updated right away

Co-authored-by: seaona <mariona@gmx.es>
Co-authored-by: Alex <adonesky@gmail.com>
Co-authored-by: Dan Miller <danjm.com@gmail.com>
2022-10-27 20:27:18 +02:00
Dan J Miller
c6be223781 Fix inputs that should allow decimals (#16254)
* Fix inputs that should allow decimals

* Update e2e test to cover inputting of decimals in advanced fields

* Update e2e test to cover inputting of decimals in advanced fields

* Fix e2e tests
2022-10-27 20:27:18 +02:00
Frederik Bolding
5fa841aa46 [FLASK] Fix wrong action name for wallet_getSnaps hook (#16125) 2022-10-27 20:27:18 +02:00
Frederik Bolding
88e3367d41 [FLASK] snaps-monorepo@0.22.2 (#16161)
* snaps-monorepo@0.22.2

* Update LavaMoat policies

* Fix eth_accounts permission for Snaps

* Update iframe execution environment

* Dedupe yarn.lock and rerun LavaMoat policy gen

* Add policy override for nanoid
2022-10-27 20:27:18 +02:00
Jyoti Puri
37d53fdcb3 Update provider (#16131) 2022-10-27 20:27:18 +02:00
Mark Stacey
e7007ff3d5 Update eth-json-rpc-middleware to v9.0.1 (#16096)
This update includes fixes for our `block-ref` and `retry-on-empty`
middleware.

The `block-ref` middleware resolves the block reference `latest` to a
specific block number, the latest one we are aware of. This is meant to
protect against situations where the network gives inconsistent answers
for what the latest block number is due to some nodes being out-of-sync
with each other (this was a frequent problem years ago with Infura).

It was broken in that the `latest` resolution was failing, and we were
submitting an additional redundant request to Infura for each request.

The `retry-on-empty` middleware is meant to retry certain methods
when they return an empty response. This was also meant to deal with
network synchronization issues that were more common years ago. This
middleware works by making a "child" request over and over until either
a retry limit is reached, or a non-empty response is received.

It was broken in that the final response recieved was thrown away, so
it's as though the middleware was not used. Except that it did result
in additional redundant network requests.

As a result of this update we should see that the extension is more
resilient to certain network synchronization issues. But this is
difficult to test, and these issues may not happen in production
anymore today.

We should see a reduction in requests to Infura as well. This should
be easier to test.
2022-10-27 20:27:17 +02:00
Frederik Bolding
305574703d [FLASK] snaps-skunkworks@0.22.0 (#16069)
* snaps-skunkworks@0.22.0

* Update LavaMoat policies

* Bump execution environment and fix a breaking change

* Fix caveat and permissions

* Fix test

* Exclude keyring endowment for now

* Fix test

* Fix snap_confirm missing title
2022-10-27 20:27:17 +02:00
Dan J Miller
742fc1a1c6 Ensure that portfolio tooltip does not show if new custom network popup is shown (#16090)
Co-authored-by: Jyoti Puri <jyotipuri@gmail.com>
2022-10-27 20:27:17 +02:00
seaona
17b664b0b6 10.21.0 Changelog (#16106)
* Raw changelog 10.21.0

* Changelog Cleanup

* Flask - support blocking Snaps

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>

* Flask - snap_getBip32PublicKey

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>

* Flask - transaction insights

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>

* Remove bump keystone entry from changelog

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2022-10-27 20:27:17 +02:00
Dan J Miller
ebf1ab2c9d Sort add network list alphabetically (#16089)
Co-authored-by: ryanml <ryanlanese@gmail.com>
2022-10-27 20:27:17 +02:00
Garrett Bear
e7749470ae 16083: Fix deposit eth popover layout (#16100)
* 16083: Fix deposit eth popover layout

* adding responsive padding updates

* classname fix

* Add custom classname option
2022-10-27 20:27:17 +02:00
Mark Stacey
dd1b5cdf2a Use current version of the phishing warning page (#16123)
We now use the `latest` tag for the phishing warning page, we now use
the version that matches what we have in our manifest. This ensures
that our phishing warning e2e tests match the behaviour of the
production build, and it ensures that breaking changes to the phishing
warning page don't impact users in production.
2022-10-27 20:27:17 +02:00
Alex Donesky
737fbeed39 patch ethereumjs-util stripHexPrefix (#16094) 2022-10-27 20:27:17 +02:00
ryanml
fd3fa4d8c2 Fix typo in French translation for "removeAccount" (#16095) 2022-10-27 20:27:17 +02:00
Dan J Miller
b69dcdf7c2 Fix: show whats new to users who created, not imported, a new wallet,… (#16042)
* Fix: show whats new to users who created, not imported, a new wallet, but not on their first session

* Fix tests

Hide `Improved token detection is here` & `Scam and security risks`  whats new

* Fix unit test

Co-authored-by: PeterYinusa <peter.yinusa@consensys.net>
2022-10-27 20:27:17 +02:00
Alex Jupiter
efd1c4d806 Hardware wallet copy updates, referral and tutorial buttons (#14738)
Co-authored-by: ryanml <ryanlanese@gmail.com>
Co-authored-by: Alex Donesky <adonesky@gmail.com>
2022-10-27 20:27:17 +02:00
seaona
5b042e0a9a 20.21.0 RC cut 2022-10-27 20:27:03 +02:00
ryanml
d8300712ac
Merge pull request #16054 from MetaMask/master-sync
Sync `master` with `develop`
2022-10-03 10:53:48 -07:00
ryanml
6d86914c94 Merge fixes 2022-10-02 21:06:14 -07:00
ryanml
10d6cfd03d Merge remote-tracking branch 'origin/develop' into master-sync 2022-10-02 20:59:15 -07:00
Dan J Miller
a18f93a44f
Merge pull request #16010 from MetaMask/Version-v10.20.0
Version v10.20.0
2022-09-30 17:26:14 -02:30
Frederik Bolding
9b6f72c3ca Fix vm2 audit failure (#16025) 2022-09-30 17:16:59 +01:00
Frederik Bolding
7a79206fd6 Fix @hapi/hoek audit failure (#16034) 2022-09-30 13:21:27 -02:30
ryanml
67aeb64581 Deprecating the Rinkeby, Ropsten, and Kovan test networks (#15989)
* Deprecating Rinkeby, setting default debug network to Goerli

* Deprecating Ropsten and Kovan

* Conflict fix

* Remove unused localization, test fixes

* Add migration for moving used deprecated testnets to custom networks

* Fix migrator test

* Add more unit tests

* Migration updates provider type to rpc if deprecated network is selected

* Migration fully and correctly updates the provider if selected network is a deprecated testnet

* Continue to show deprecation warning on each of rinkeby, ropsten and kovan

* Add rpcUrl deprecation message to loading screen

* Removing mayBeFauceting prop

Co-authored-by: Dan Miller <danjm.com@gmail.com>
2022-09-30 13:20:06 -02:30
Jyoti Puri
300cb6e7c5
Revert "Fix permissions in MV3 manifest (#15980)" (#16021)
This reverts commit 67eb2f9f27.
2022-09-30 20:00:59 +05:30
Frederik Bolding
6a0dcf41b6
Fix @hapi/hoek audit failure (#16034) 2022-09-30 09:10:01 -05:00
seaona
b11f6c1bf9
Changelog for 10.20.0 (#16011)
* Run update changelog script

* Rinkeby, Ropsten and Kovan deprecation

* Fix Changelog lint
2022-09-29 21:58:37 +02:00
Elliot Winkler
d7a812f42f
Add remaining tests for createInfuraClient (#15717)
Add tests for the `block-tracker-inspector` middleware — which makes
sure that the block tracker never has a reference to the latest block
which is less than a block number that shows up in an RPC method's
response — and the Infura middleware — which takes care of sending the
request to Infura, and will retry the request up to 5 times if Infura
sends back a certain type of error.

Note that the `retry-on-empty` middleware is not tested because it
currently has a [bug][1] which is making it ineffective.

[1]: https://github.com/MetaMask/eth-json-rpc-middleware/issues/139
2022-09-29 10:39:35 -06:00
Nicolas Ferro
f3465c9485
Deprecate snake case from feature flags (#15994) 2022-09-29 11:03:38 -05:00
Garrett Bear
455735c5ce
add icons auto size (#16027)
Update ui/components/component-library/icon/README.mdx

Co-authored-by: George Marshall <george.marshall@consensys.net>

Update ui/components/component-library/icon/icon.stories.js

Co-authored-by: George Marshall <george.marshall@consensys.net>

Update ui/helpers/constants/design-system.js

Co-authored-by: George Marshall <george.marshall@consensys.net>

story fix

font size comment

update auto demo and fix inline style
2022-09-29 08:33:34 -07:00
Nicolas Ferro
47f136380f
Ability to buy native currency and tokens on Optimism and Arbitrum, using Transak (#16031) 2022-09-29 09:47:41 -05:00
Harry
21c9fe2de9
Change endpoint to always use latest build of the phishing warning (#16026)
Co-authored-by: ryanml <ryanlanese@gmail.com>
2022-09-28 22:38:23 -07:00
Olusegun Akintayo
7b94ac5eca
Fix 3box replacement for MV3 (#15851)
* refactor backup controller to return the data to be backed up
    and do the actual backup in the UI.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Move export-utils to ui/helpers as it's only used in the UI now.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* use context to call event tracker.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Don't make backup function inline.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
2022-09-29 07:34:20 +04:00
ryanml
0bc1eeaf37
Deprecating the Rinkeby, Ropsten, and Kovan test networks (#15989)
* Deprecating Rinkeby, setting default debug network to Goerli

* Deprecating Ropsten and Kovan

* Conflict fix

* Remove unused localization, test fixes

* Add migration for moving used deprecated testnets to custom networks

* Fix migrator test

* Add more unit tests

* Migration updates provider type to rpc if deprecated network is selected

* Migration fully and correctly updates the provider if selected network is a deprecated testnet

* Continue to show deprecation warning on each of rinkeby, ropsten and kovan

* Add rpcUrl deprecation message to loading screen

* Removing mayBeFauceting prop

Co-authored-by: Dan Miller <danjm.com@gmail.com>
2022-09-28 20:26:01 -07:00
Brad Decker
99808eb02c
remove customize-gas modal and related code that is no longer used (#16004) 2022-09-28 15:00:57 -05:00
VSaric
8e736e39d8
Created a custom spending cap component (#15522) 2022-09-28 14:46:29 -05:00
Frederik Bolding
947f5299f8
Fix vm2 audit failure (#16025) 2022-09-28 20:22:04 +02:00
Thomas Huang
19a88f7aee
Continue converting tests from enzyme to @testing-library/react (#15996) 2022-09-28 09:43:13 -05:00