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

17520 Commits

Author SHA1 Message Date
Frederik Bolding
10ccbfc68d
Fix v11 RC issues following merge (#20690)
* Update LavaMoat policies

* Update sentry mask

* Update snapshots
2023-09-01 15:51:40 +02:00
Frederik Bolding
7cb69ceb95
Merge branch 'master' into Version-v11.0.0 2023-09-01 14:03:30 +02:00
Frederik Bolding
01786ad199 Fix missing property on snap export metric (#20685) 2023-09-01 13:56:04 +02:00
Mark Stacey
a7b4c20f32
Merge pull request #20588 from MetaMask/Version-v10.35.1
Version 10.35.1
2023-08-31 15:11:34 -02:30
Mark Stacey
6c644c5793 Update changelog to remove #20168 2023-08-30 16:21:06 -02:30
Pedro Figueiredo
e5ad6ef2b7 feat: Add more state props from controllers to Sentry mask (#20595)
* feat: update sentry mask adding  controller props to improve error monitoring

* fix:remove changes in chrome-driver dependency

* Remove properties from mask

* Add more values to mask

* Sort the mask alphabetically

* Add termsOfUseLastAgreed to mask

* Fix test imports

* Update policy gap test to compare UI mask

* Reorganize tests under one describe block

* Update snapshots

* Mask another timestamp in state snapshots

* Mask browser environment properties

* Add missing UI field mask, and refactor field masking/removal

* Eliminate remaining policy gaps

* Simplify ganache options

* Eliminate extra mask properties

* Update mask to capture dynamic keys

The mask now supports dynamic keys. This lets set more fine-grained rules
for which data to include within dynamic data structures.

The mask has been updated to include just top-level keys for various
token-related data collections in state. This lets us see the chain IDs
that users have tokens on. This will be useful in debugging Sentry
reports of invalid keys in these data structures.

* Add additional 'expected missing state' entries

* Remove unnecessary properties from state snapshot

* Add providerConfig.chainId to state snapshot

* Update error state snapshots

---------

Co-authored-by: Danica Shen <zhaodanica@gmail.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2023-08-30 16:21:06 -02:30
Mark Stacey
052e90ec7c Update changelog for v10.35.1 (#20650) 2023-08-30 16:21:06 -02:30
Brad Decker
6d2cc98b81 Add whats new popup for changes to advanced gas fee (#20632)
* Add whats new popup for changes to advanced gas fee

* Update shared/notifications/index.js

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

* updated text

* verified working, changed order of init

* use first renderer for formatting issue

---------

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-08-30 16:21:06 -02:30
Mark Stacey
ec23b00fc6 Update protobufjs checksum 2023-08-30 16:21:06 -02:30
Brad Decker
e801714992 fix weird lockfile irregularities (#20333)
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2023-08-30 16:21:06 -02:30
Mark Stacey
180ac559b8 Remove snapshot update from release process (#20546)
The Sentry e2e state snapshots now mask the application version and
migration version, ensuring that the snapshots don't need a extra
update in each release candidate branch and post-release sync branch.

The values are masked rather than removed so that the test still shows
they are present in error reports, where they can be quite useful for
diagnostic purposes.
2023-08-30 16:21:06 -02:30
Pedro Figueiredo
19b6baefb4 fix: Remove obsolete network controller state properties (#20586)
* fix: remove obsolete network controller state properties

* address comments

* address comments

* address comments

* Add additional precautions for data mutation in migration tests

---------

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2023-08-30 16:21:06 -02:30
Brad Decker
e2c4816394 split advancedGasFee by network and erase previous options (#20576)
* Split out advanced gas fees by network and delete old values

* use arrow functions in preferences test

* changes

* added back priorityFeeProperCase to en messages

* update types

* remove case change
2023-08-30 16:21:06 -02:30
Mark Stacey
b684c094cb Fix account selectors when balances are missing (#20385)
* Fix account selectors when balances are missing

Some of the account selectors we use would return an empty set of
accounts if the `AccountTracker` state was missing. This resulted in UI
crashes when trying to access the current selected account.

The selectors have been updated to use the `identities` as the source-
of-truth for the full set of accounts. This ensures that even if the
balances are missing, each account will at least be represented by an
empty object.

* Fix unit test

* Fix another unit test

* Fix another unit test

* Fix another unit test

* Fix more unit tests

---------

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-08-30 16:21:06 -02:30
OGPoyraz
d5de0dd67e Fix infinite rerender on network change while active signature request (#20473) 2023-08-30 16:21:06 -02:30
Frederik Bolding
ebae98d301 Bump snaps packages to 1.0.2 (#20643) 2023-08-29 15:45:41 +02:00
Frederik Bolding
a1ae305711 Track snap uninstalls (#20624)
* Track snap uninstalls

* Change order of execution
2023-08-28 15:29:43 +02:00
Maarten Zuidhoorn
a292158324 Always show connected accounts permissions if they exist (#20600)
* Show connected accounts permissions if they exist

* Add optional chaining
2023-08-28 09:58:18 +02:00
Maarten Zuidhoorn
8d63fabc4e Update snaps-related copy (#20601)
* Update snaps-related copy

* Update test
2023-08-28 09:58:15 +02:00
ryanml
d847272f93 Fixing Dapp link on NFT import screen (#19799) 2023-08-27 16:25:39 -02:30
ryanml
9323701f9b Fixing 'View on Opensea' link for main and testnet NFTs (#19797) 2023-08-27 16:25:30 -02:30
Dan J Miller
d0e7bfddfc Ensure chainId comparison in switchEthereumChain handler is case insensitive (#20149) 2023-08-27 16:25:21 -02:30
Nicholas Ellul
63dd03e6e7 Enforce user preferences in incoming transactions controller (#19982)
* Enforce user preferences in incoming transactions controller

* Combine various conditions to determine tx lookup

* Update tests to not use private methods
2023-08-27 16:25:13 -02:30
Mark Stacey
e045476ce7 Version 10.35.1 2023-08-24 11:24:55 -02:30
Frederik Bolding
1e0edaa080 Update snaps URLs (#20582) 2023-08-24 10:45:02 +02:00
Frederik Bolding
ad6f7aa563
Merge branch 'master' into Version-v11.0.0 2023-08-23 15:56:57 +02:00
Mark Stacey
391294d0d4
Merge pull request #20075 from MetaMask/Version-v10.35.0
Version v10.35.0 RC
2023-08-23 11:18:46 -02:30
Frederik Bolding
2db86c8ae2 Update derivation paths used by snaps (#20558)
* Update derivation paths used by snaps

* Update testnets
2023-08-23 15:22:31 +02:00
Frederik Bolding
67ee8aa9ba
Update v11 changelog (#20553) 2023-08-22 11:07:40 +02:00
Mark Stacey
ace2138a94 Remove unnecessary change entry
The bug fix in #20536 wasn't necessary to include because the bug it
fixes was never in production. it was introduced in this release as
part of #17945.
2023-08-21 18:39:15 -02:30
Mark Stacey
7f3ea4b906 Update changelog to include last two commits 2023-08-21 12:27:52 -02:30
Danyal Prout
88f294664f Specify that Base is a multilayer network (#20097) 2023-08-21 11:26:21 -02:30
Dan J Miller
838c8e1aa7 Use primary transaction to get token value in useTransactionDisplayData (#20536)
Co-authored-by: Jyoti Puri <jyotipuri@gmail.com>
2023-08-21 11:26:09 -02:30
Maarten Zuidhoorn
01a4b698ff [FLASK] Fix regression in transaction confirmation tabs (#20267)
* Fix regression in transaction confirmation tabs

* Fix transaction insights e2e test
2023-08-21 13:14:09 +02:00
Frederik Bolding
f104facd35
Fix v11 RC build issues (#20540)
* Fix snaps checksums on RC

* Update protobufjs

* Update E2E snapshots

* Fix changelog lint
2023-08-21 11:20:31 +02:00
Dan J Miller
8a05475d37 Run yarn lavamoat:auto on v11.0.0 2023-08-19 08:22:05 -02:30
Dan J Miller
c43c29b4ed Run yarn on Version-v11.0.0 after rebase 2023-08-19 08:07:36 -02:30
Frederik Bolding
832e0b1cf2 Track usage of snap exports (#20503)
* Track usage of snap exports

* Fix fencing

* Small change to event name

* Use MetaMetricsEventName
2023-08-19 08:03:26 -02:30
Frederik Bolding
e9c641dfcd Enable snaps in stable (#19134)
* Enable Snaps feature flag in stable

* Run snaps E2Es in stable

* Fix CI config indentation

* Fix CI paths

* Update LavaMoat policies

* Update iframe URL

* Exclude some tests from running in stable e2e

* Disable another test on stable

* Bump to 1.0.1

* Fix config.yml issue due to staleness

* Stop running newly added test

* Update snapshots used for E2E

* Use shallow-git-clone
2023-08-19 08:01:24 -02:30
Bowen Sanders
5505bc19e2 [FLASK] Create new E2E test for snaps lifecycle-hooks (#20352) 2023-08-19 07:48:06 -02:30
Frederik Bolding
86987d18cf snaps@1.0.0 (#20450) 2023-08-19 07:48:04 -02:30
Frederik Bolding
d71ead322c [FLASK] snaps@0.38.1-flask.1 (#20420) 2023-08-19 07:07:15 -02:30
David Walsh
829901a9ff UX: Snaps: Make Notifications Font Consistent with Other Global Items (#20356)
* UX: Snaps: Make Notifications Font Consistent with Other Global Items

* Fix E2E
2023-08-19 07:07:15 -02:30
Guillaume Roux
c8f2e8e82d Check for blocked snaps on extension startup (#20336)
* allow `SnapController` to call `SnapsRegistry:update`

* call `SnapController:updateBlockedSnaps` on extension startup

* only check if at least one snap is installed
2023-08-19 07:07:15 -02:30
Maarten Zuidhoorn
7447fe14a9 [FLASK] Bump Snaps packages (#20230)
* Bump Snaps packages

* Add endowment:lifecycle-hooks permission

* Run yarn lint:fix

* Fix unit test

* Update LavaMoat policies

---------

Co-authored-by: MetaMask Bot <metamaskbot@users.noreply.github.com>
2023-08-19 07:07:13 -02:30
Maarten Zuidhoorn
8e24c2130c Remove Snaps execution environment override (#20173) 2023-08-19 07:05:38 -02:30
Frederik Bolding
388e19495c Filter out snaps source code and state from UI state (#20136) 2023-08-19 07:05:38 -02:30
Bowen Sanders
04d14e2e16 Fix snaps E2Es to be compatible with new monorepo-based test-snaps (#20005)
* initial fixes to E2Es

* changed test website

* final E2E fixes

* fixed getentropy test

* missing scroll fix

* scrollfix for bip44 firefox

* added new function and edited tests
2023-08-19 07:05:38 -02:30
Frederik Bolding
b0ac8f179f [FLASK] Unblock personal_sign for snaps (#19998)
* Add snap legacy authorship header

* Add legacy snap header to personal_sign

* Disable SIWE for snaps

* Add comment
2023-08-19 07:05:38 -02:30
Frederik Bolding
d40306f295 [FLASK] snaps@0.37.1-flask.1 (#20069)
* snaps@0.37.0-flask.1

* Update LavaMoat policies

* Add support for disabling markdown

* Update execution env URL

* Bump patch version
2023-08-19 07:05:37 -02:30