Hennadii Ivtushok
72d2977e72
Warn about multiple MetaMask instances running ( #13836 )
...
* Add text warning on startup page
* Try to detect extensions with browser API
* Setup messaging between different versions of extension
* Cleanup
* Cleanup
* Simplify check for multiple instances running
* Fix a doc string + use webextension-polyfill
* Fix test
* Mock webextension-polyfill
* Mock correctly
* Catch error and show warning in both extensions
* Mock as promise
* Address comments
* Rename build ids
* Run detection code only if Chrome
* Add Firefox warnings
* Cleanup imports
* Update connection ids
* Run detection code for Firefox
* Add test
* Add missing await
* Update tests
* Cleanup
* Cleanup
* Improve testing
* Improve tests
* Log errors from sendMessage
* Cleanup
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
3 years ago
Shane
74b5401302
Fixed API for watchAsset ( #14545 )
...
* Fixed API for watchAsset
* Fixed boolean return value for watchAsset
3 years ago
Frederik Bolding
27ad7279cd
Rename NotificationController to AnnouncementController ( #14389 )
...
* Rename NotificationController to AnnouncementController
* Fix test
* Add test for missing NotificationController state
* Bump controllers
* Move test to correct file
* Rename config key
* Add migration 71 to list of migrations
* Fix selector after migration
3 years ago
ryanml
5568558554
Adjust package version to 10.13.0 ( #14540 )
3 years ago
ryanml
22df2afcb2
Updating changelog
3 years ago
Guillaume Roux
71d0873ded
Add token standard to custom token details ( #14506 )
...
* use getTokenStandardAndDetails to get token standard
* remove console.log and fix test
* remove console.log
3 years ago
Guillaume Roux
7a9662b88e
Add token standard to custom token details ( #14506 )
...
* use getTokenStandardAndDetails to get token standard
* remove console.log and fix test
* remove console.log
3 years ago
kumavis
223124a561
lavamoat@6 - update to secure package naming ( #14488 )
3 years ago
ryanml
0c49bc14d4
Fixing 'Learn more' casing on import token screen ( #14529 )
3 years ago
Brad Decker
193c22588e
call controller methods directly in send duck ( #14465 )
3 years ago
ryanml
9cea6f57ef
Revert "Dark Mode: What's New Announcement ( #14346 )"
...
This reverts commit af963d7f7b
.
3 years ago
Alex Donesky
cf2c6a3164
show token approval details on confirm approve screen by default ( #14523 )
3 years ago
kumavis
37272ad923
i18n - remove unused locale strings ( #14527 )
3 years ago
Brad Decker
f567a3fe86
Do not show failed off-chain transactions details when grouped with another valid transaction of same nonce ( #14497 )
...
* fix failed off chain tx mismatch with next confirmed transaction
* dont drop failed txs when tx in confirmed
* add comment for reassigning logic
* resolve change requests
3 years ago
amerkadicE
ef6fb86f50
Update for a new Add network page ( #13866 )
3 years ago
amerkadicE
8fef9fd8df
Update display of switching current network ( #13450 )
...
Co-authored-by: Amer Kadic <amerkadic@Amers-MacBook-Pro.local>
Co-authored-by: George Marshall <george.marshall@consensys.net>
3 years ago
Dan J Miller
16fe8744a6
Ensure network name in confirm page container is defined ( #14520 )
3 years ago
Dan J Miller
284bab1cbc
Ensure network name in confirm page container is defined ( #14520 )
3 years ago
MetaMask Bot
f8e850bbfa
New Crowdin translations by Github Action ( #13556 )
...
Co-authored-by: metamaskbot <metamaskbot@users.noreply.github.com>
Co-authored-by: ricky <ricky.miller@gmail.com>
3 years ago
Ariella Vu
78f4684b2a
MetaMetrics: Add EVENT.CATEGORIES const ( #14474 )
...
* MetaMetrics: add EVENT.CATEGORIES const
* MetaMetrics: add EVENT.CATEGORIES.INPAGE_PROVIDER
* MetaMetrics: add EVENT.CATEGORIES.AUTH
* MetaMetrics: add EVENT.CATEGORIES.ACCOUNTS pt. 1
* MetaMetrics: add EVENT.CATEGORIES.ACCOUNTS pt. 2
confirm we want to use 'Accounts' instead of 'Account'
* MetaMetrics: add EVENT.CATEGORIES.MESSAGES
* MetaMetrics: add EVENT.CATEGORIES.RETENTION const
* MetaMetrics: add EVENT.CATEGORIES.SETTINGS
* MetaMask: add missing EVENT.CATEGORIES.SNAPS
* MetaMetrics: add EVENT.CATEGORIES.WALLET const
* MetaMetrics: add EVENT.CATEGORIES.ONBOARDING const
* MetaMetrics: add EVENT.CATEGORIES.ONBOARDING
& EVENT.CATEGORIES.TRANSACTIONS consts
* MetaMetrics: use EVENT.CATEGORIES
* ducks/swaps: revert slice name
* MetaMetrics: add missing EVENT.CATEGORIES.NETWORK
3 years ago
Thomas Huang
34d43e66ca
Update tx data for simpleSends and add isBestQuote to swaps data ( #14496 )
3 years ago
ricky
0fd1cea1fe
Feature/remove bitmask ( #14489 )
...
* remove bitmask
* add --fail-on-missing-exclusions
* add .iyarc
3 years ago
Ariella Vu
d0ed2c1afc
MetaMetrics: add 'number_of_nfts' user trait ( #14495 )
...
* MetaMetrics: add number_of_nfts trait
* MetaMetrics: memoize _getAllNFTAddresses
* MetaMetrics: fix lint / update JSDoc comments
* MetaMetrics: update nft trait logic
- https://github.com/MetaMask/metamask-extension/pull/14495#discussion_r855450898
* MetaMetrics: rn _getAllNFTs > _getAllNFTsFlattened
3 years ago
ryanml
c9b00541cd
Updating lavamoat policies
3 years ago
Alex Donesky
fbeae57247
Add testnet name as prefix for native currency of preloaded testnets ( #14454 )
...
* add testnet name as prefix for native currency of preloaded testnets
3 years ago
Elliot Winkler
c25c0432ed
Fix ESLint config around files w/ CommonJS imports ( #14380 )
...
The `parserOptions.sourceType` config option in `.eslintrc.js` is used
to distinguish files that use ESM imports vs. files that do not.
The `import` plugin, specifically the `import/ambiguous` rule behaves
differently depending on this value. If a file is marked with
`sourceType` of `"module"`, then this rule will attempt to ensure that
the file does indeed have ESM imports and/or exports; otherwise it does
nothing.
In other words, files that use CJS imports are *not* "modules" according
to this setting, and therefore should not be marked with a `sourceType`
of `"module"`. This means we do not have to turn off the
`import/ambiguous` rule, as it will no longer trip up on these types of
files.
3 years ago
Olusegun Akintayo
095cc94ed0
Add new token added event (duplicating the existing event structure) when collectible is manually added ( #14279 )
...
* Add new token added event (duplicating the existing event structure) when auto detection occurs for NFTs
Set source property to detected on the new token added event,
3 years ago
Brad Decker
8f47c19b9d
increase test coverage of nonce sorted transaction selector ( #14486 )
3 years ago
Dan J Miller
5b0d465d30
Fix the alerts toggles in settings ( #14498 )
3 years ago
Dan J Miller
617b7828a5
Disable swaps whenever the environment is not development or testing, so that behaviour follows production for QA purposes ( #14499 )
3 years ago
Dan J Miller
3ecc04e42d
Fix the alerts toggles in settings ( #14498 )
3 years ago
Dan J Miller
b1df04c253
Disable swaps whenever the environment is not development or testing, so that behaviour follows production for QA purposes ( #14499 )
3 years ago
PeterYinusa
f947e5721a
E2e test timeout ( #14483 )
...
* e2e test timeout threshold
* enable logging for single test
* more logging
* remove redundant step in test
3 years ago
Erik Marks
cef95f8733
Stop storing request and response objects in the permission activity log ( #14485 )
...
We currently store the JSON-RPC request and response objects in the permission activity log. The utility of doing this was always rather dubious, but never problematic. Until now.
In Flask, as the restricted methods have expanded in number, user secrets may be included on JSON-RPC message objects. This PR removes these properties from the permission activity log, and adds a migration which does the same to existing log objects. We don't interact with the log objects anywhere in our codebase, but we don't want unexpected properties to cause errors in the future should any log objects be retained.
This PR also updates relevant tests and test data. It makes a minor functional change to how a request is designated as a success or failure, but this should not change any behavior in practice.
3 years ago
Brad Decker
488d64ae8b
increase test coverage of nonce sorted transaction selector ( #14479 )
3 years ago
ryanml
ce77be6402
[skip e2e] Updating changelog for v10.14.0 ( #14487 )
3 years ago
ricky
eb241ae68f
bump crowdin/github-action ( #14475 )
3 years ago
seaona
f32a651ad4
E2e readme docs ( #14434 )
...
* Updated README with improvements
* Fix table spacing
* remove argument from flag
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
* Rephrased chrome version sentence
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
3 years ago
PeterYinusa
dd0b34c050
E2e connected state ( #14444 )
...
* Update contract-interactions.spec.js
* Update failing-contract.spec.js
* Update send-eth.spec.js
* Update navigate-transactions.spec.js
3 years ago
MetaMask Bot
210578635f
Version v10.14.0
3 years ago
ryanml
fb42b48d31
Merge pull request #14477 from MetaMask/master-sync
...
Sync `develop` with `master`
3 years ago
ryanml
741f623338
Merge remote-tracking branch 'origin/develop' into master-sync
3 years ago
ryanml
16bcd0c0eb
Merge pull request #14254 from MetaMask/Version-v10.13.0
...
Version v10.13.0 RC
3 years ago
ryanml
6420db3e7f
Lint fix
3 years ago
Dan J Miller
f4a00872d9
Run main, flask and beta in sequence in generate-lavamoat-policies.sh ( #14470 )
3 years ago
David Walsh
6a06374784
Dark Mode: Implement Metrics ( #14455 )
3 years ago
PeterYinusa
273c1dedb7
Docs - segment metrics ( #14435 )
...
* expand docs for metrics
* link to docs
* link to docs
* remove obsolete docs
* fix broken link
3 years ago
Hassan Malik
308c6e4fe3
Add snaps view search ( #14419 )
...
* add snaps view search
* add snaps view search
* fix to add in settings constants
* removed spread
* remove unused import
* add fencing
* more fencing
* ternary refactor, updated settings tests
* refactor
3 years ago
Dan J Miller
073a6e0613
Run main, flask and beta in sequence in generate-lavamoat-policies.sh ( #14470 )
3 years ago
David Walsh
458d4c55d4
Dark Mode: Fix colors in toggle button ( #14280 )
3 years ago