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

17854 Commits

Author SHA1 Message Date
David Drazic
335d9598a9
Update Snap privacy warning content (#20741)
* Update Snap privacy warning content

* Update unit test

* Remove translations
2023-09-05 19:45:09 +02:00
Frederik Bolding
376ceb216d
Use versioned URL for manageAccounts test (#20739) 2023-09-05 18:46:38 +02:00
Gauthier Petetin
25114997c4
fix(readme): yarn v3 no longer required (#20713)
Modern releases of yarn are not intended to be installed globally or via npm. The good practice now is to use Corepack, a utility included with Node.js by default, that manages Yarn on a per-project basis, based on the version specified by the packageManager property in the project's package.json file.
2023-09-05 09:02:42 -07:00
Danica Shen
8608655886
fix(20548): fix warning levels in migration file (#20737) 2023-09-05 16:57:19 +01:00
Maarten Zuidhoorn
0962e85a1b
Add missing derivation path names (#20735) 2023-09-05 16:48:34 +02:00
MetaMask Bot
519444163c
feat(locale): New Crowdin translations by Github Action (#20563)
* New Crowdin translations by Github Action

* fix(locale): trigger a success pipeline with CLA verified

---------

Co-authored-by: metamaskbot <metamaskbot@users.noreply.github.com>
Co-authored-by: Danica Shen <zhaodanica@gmail.com>
2023-09-05 14:49:07 +01:00
Jyoti Puri
7906f18104
Blockaid validation should be done on ethereum mainnet only (#20709) 2023-09-05 15:43:43 +05:30
Jyoti Puri
997d1359d2
Reverting ppom.js file to old version (#20566) 2023-09-05 05:44:15 +05:30
Jyoti Puri
0e9845f5a0
Added Specification for opBNB as a multilayer network (#20715)
* added configuration for gas calculations for opBNB

* updated configuration for gas calculations of opBNB

* Specify that opBNB is a multilayer network

* fixed prettier issues

* Update

---------

Co-authored-by: RumeelHussainbnb <rumeelhussainbnb@gmail.com>
2023-09-05 05:43:16 +05:30
Matthew Walsh
07adba5926
Use transactions array in frontend (#20523)
Send the entire transactions array to the frontend rather than currentNetworkTxList and unapprovedTxs.
2023-09-04 16:48:25 +01:00
Frederik Bolding
6ee90ac8b2
Add what's new popup for snaps (#20686)
* Add what's new popup for snaps

* Update SVG

* Update copy and link out

* Update SVG and fix lint

* Fix unnecessary space in copy

---------

Co-authored-by: Howard Braham <howrad@gmail.com>
2023-09-04 16:41:06 +02:00
David Drazic
51cdb73a5f
Fix position of a warning triangle icon on Snap Install Warning (#20712) 2023-09-04 16:08:37 +02:00
Mark Stacey
20f654a348
Reduce logging in production builds (#20694)
Our logger middleware can be quite noisy in production, logging all RPC
requests. It has been updated to have more condensed logs in production
builds, but preserving the existing logging for development builds.
2023-09-04 10:35:23 -02:30
Frederik Bolding
52f4936fa1
Add resolution for semver (#20710)
* Add resolution for semver

* Update LavaMoat policies

---------

Co-authored-by: MetaMask Bot <metamaskbot@users.noreply.github.com>
2023-09-04 11:27:33 +02:00
Ariella Vu
3d2de0211d
feat: Update Blockaid copies on What's new modal, Settings, and BannerAlert (#20671)
* feat: update Blockaid What's New copy

* feat: update Blockaid settings description copy

* feat: remove Blockaid more providers copy

* feat: update experimental settings padding

* feat: update Blockaid copy transactions -> transaction

* feat: rm Blockaid select provider copies

* feat: use blockaid BannerAlert "Powered By" copy

* style: add Blockaid toggle padding

* fix: rm unused notifications23DescriptionThree
also remove translactions for notifications23DescriptionOne except en
since it has been updated

* fix: What's New popup notif 23 test
following removal of notifications23DescriptionThree
2023-09-01 10:46:20 -07:00
Monte Lai
907cd8b7d1
add whatsnew popup to drop ledger support for firefox (#19498)
* add whatsnew popup to drop ledger support for firefox

* add missing 21 ui notification

* improved look of notification

* added NOTIFICATION_DROP_LEDGER_FIREFOX to prep for merge with develop

---------

Co-authored-by: Howard Braham <howrad@gmail.com>
2023-09-01 12:38:04 -04:00
Garrett Bear
92f04eb6e8
AvatarIcon prod updates and some deprecated fixes (#20557)
* AvatarIcon prod updates and some deprecated fixes

* fix flex display

* fix iconsize on props

* fix IconSize import

* IconSize

---------

Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-09-01 07:26:29 -07:00
Frederik Bolding
acf386c609
Fix missing property on snap export metric (#20685) 2023-09-01 13:10:42 +02:00
Mark Stacey
32c4559349
Merge pull request #20680 from MetaMask/master-sync
Sync v10.35.1 with `develop`
2023-08-31 21:46:27 -02:30
Mark Stacey
df2d57e5db Merge remote-tracking branch 'origin/develop' into master-sync
* origin/develop: (333 commits)
  Subscribe to event fired by KeyringController on account removal (#20478)
  Updating padding for 'import-token__custom-token-form' to match 'import-token__search-token' in Import Token Modal (#20661)
  [MMI] Adding missing logic to handle custodian approval in token allowance (#20662)
  style: fix Settings pages padding (#20674)
  Fix #20648 - Show Linea ETH fiat value by default (#20672)
  Fix: UnitInput too narrow for small and trailing zeroed numbers (#20666)
  fix(20314): fix window.left negative value causing polifll warning (#20653)
  UX: Create selector for blockie preference (#20577)
  style: update Desktop App settings styles (#20676)
  UX: Nit: Avoid AccountPicker props error (#20645)
  Bump test-dapp to v7.1.0 (#20665)
  use @blockaid/ppom_release vs @blockaid/ppom (#20669)
  Use getEncryptionPublicKey from Core KeyringController (#20646)
  fix/BannerTip to TS (#20538)
  Declared <IconWithFallback/> as deprecated (#20656)
  Bump @metamask/post-message-stream and extension-port-stream core libs (#20659)
  Fix Blockaid and OpenSea BannerAlert placement for Token Allowance, Confirm Pages, SIWE, and Signature V3/V4 pages (#20530)
  Use `verifySeedPhrase` from `KeyringController` (#19817)
  Update network.ts (#20617)
  Declared <TextField/> as deprecated (#20640)
  ...
2023-08-31 15:43:24 -02:30
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
cryptodev-2s
83b1f1714d
Subscribe to event fired by KeyringController on account removal (#20478) 2023-08-31 18:35:34 +01:00
Bra0xit
2180d9c584
Updating padding for 'import-token__custom-token-form' to match 'import-token__search-token' in Import Token Modal (#20661)
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
2023-08-31 21:37:45 +05:30
Albert Olivé
3376ea4e95
[MMI] Adding missing logic to handle custodian approval in token allowance (#20662) 2023-08-31 17:45:07 +02:00
Ariella Vu
ec0a02fe40
style: fix Settings pages padding (#20674) 2023-08-31 08:15:04 -07:00
David Walsh
9b1de22ce9
Fix #20648 - Show Linea ETH fiat value by default (#20672) 2023-08-31 09:31:07 -05:00
Brian Bergeron
1e558af3b6
Fix: UnitInput too narrow for small and trailing zeroed numbers (#20666)
* fix: UnitInput too narrow for small and trailing zeroed numbers

* lint

---------

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-08-31 09:29:29 -05:00
Danica Shen
90a89f3f5b
fix(20314): fix window.left negative value causing polifll warning (#20653)
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-08-31 15:15:09 +01:00
David Walsh
53f585b68e
UX: Create selector for blockie preference (#20577)
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-08-31 08:53:22 -05:00
Ariella Vu
c15226325e
style: update Desktop App settings styles (#20676) 2023-08-31 06:50:21 -07:00
David Walsh
ebf2156573
UX: Nit: Avoid AccountPicker props error (#20645)
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-08-31 08:46:40 -05:00
seaona
e50d94104c
Bump test-dapp to v7.1.0 (#20665)
* Bump test-dapp to v7.1.0

* Update erc721 tests with new dapp layout

---------

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-08-31 12:55:49 +02:00
Brad Decker
92ad4bc35f
use @blockaid/ppom_release vs @blockaid/ppom (#20669)
* use @blockaid/ppom_release vs @blockaid/ppom

* build system file
2023-08-31 06:20:01 +09:00
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
cryptodev-2s
656b7878c2
Use getEncryptionPublicKey from Core KeyringController (#20646) 2023-08-30 18:10:37 +01:00
Dhruv
9d59ec5f61
fix/BannerTip to TS (#20538)
* BannerTip to TS

* removing actionButtonProps control from storybook file

* fixing console errors in storybook

* BannerTip docs fixes, prop fixes and test updates

---------

Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-08-30 10:07:32 -07:00
Subhajit Ghosh
8b93092e0e
Declared <IconWithFallback/> as deprecated (#20656)
* Add the deprecation JSDoc format below to the deprecated code and added deprecation notice to the icon-with-fallback.stories.js

* Declared <IconWithFallback/> as deprecated
2023-08-30 09:47:12 -07:00
weizman
982a1b2c51
Bump @metamask/post-message-stream and extension-port-stream core libs (#20659) 2023-08-30 18:32:17 +03:00
Ariella Vu
3f5bc978dd
Fix Blockaid and OpenSea BannerAlert placement for Token Allowance, Confirm Pages, SIWE, and Signature V3/V4 pages (#20530)
* refactor: add SecurityProviderBannerAlert ...props

* fix: mv security banner alerts on TokenAllowance

* fix: mv security BannerAlert in confirm page
https://github.com/MetaMask/MetaMask-planning/issues/1195

* fix: allow BlockaidBannerAlert null details

* refactor: rm SecurityProviderBannerAlert margin

* fix: SIWE security banner alert placement

* fix: rm extra banner alert padding for sig v3 & v4

* fix: update SecurityProviderBannerAlert snapshot

* fix: update BlockaidBannerAlert snapshot

---------

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-08-30 07:05:53 -07:00
Michele Esposito
e2be27ed01
Use verifySeedPhrase from KeyringController (#19817)
refactor: use verifySeedPhrase from core KeyringController

---------

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
Co-authored-by: cryptodev-2s <109512101+cryptodev-2s@users.noreply.github.com>
2023-08-30 14:59:22 +01:00