Shane
7da6c66ea2
Added getAccounts suppressUnauthorized param ( #14126 )
...
* Added getAccounts suppressUnauthorized param
* Changed getAccounts supresss unauth param name
* Changed getAccounts param to object
* Fixed default empty obj for getAccounts getPermittedAccounts param
* Bump eth-json-rpc-middleware version to 8.0.2
* Fixed lavamoat policy
* Fixed lavamoat policies
* Fixed dedupe issues
* Fixed lavamoat allowscripts
* yarn deduplicate
* Fixed lavamoat policies
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
3 years ago
ryanml
fd3eabf327
Revert "Revert "Dark Mode: What's New Announcement ( #14346 )""
...
This reverts commit 9cea6f57ef
.
3 years ago
Frederik Bolding
1624af2364
snaps-skunkworks@0.11.1 ( #14531 )
...
* snaps-skunkworks@0.11.0
* Update LavaMoat policies
* Fix breaking changes
* Use SnapController:clearSnapState
* Fix fetch properly
* Bump iframe execution environment
* snaps-skunkworks@0.11.1
* Run allow-scripts auto
3 years ago
Guillaume Roux
6309d53650
Dark Mode : Add OS option in theme selection dropdown ( #14379 )
3 years ago
David Walsh
b29b48836e
Update Dark Mode What's New message ( #14535 )
3 years ago
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
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
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
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
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
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
David Walsh
6a06374784
Dark Mode: Implement Metrics ( #14455 )
3 years ago
VSaric
e702da2194
Modify import SRP page ( #14425 )
...
* Modify Import SRP page
3 years ago
David Walsh
bcdd52f55a
Dark Mode: Implement Metrics ( #14455 )
3 years ago
filipsekulic
52b043c4f2
HoldToRevealButton component ( #13785 )
...
* Created 'HoldToRevealButton' component
* Added new line within the .svg files
* Lint fix
* CSS fix according to BEM
* Modified unit test
3 years ago
Ariella Vu
21e54f4717
MetaMetrics: Identify 'number_of_tokens' user trait ( #14427 )
...
* MetaMetrics: identify number_of_tokens
* MetaMetrics: update number_of_tokens
do not filter by unique addresses.
Each token contract x chain id combo is a unique contract
* MetaMetrics: update MetaMetricsTraits @typedef
- add number_of_tokens
* MetaMetrics: clean up number_of_tokens
* MetaMetrics: alphabetize in test
3 years ago
Ariella Vu
e7bb8e2663
MetaMetrics: Identify 'nft_autodetection_enabled' & 'opensea_api_enabled' ( #14367 )
...
* MetaMetrics: alphabetize traits
* MetaMetrics: identify nft_autodetection_enabled
* MetaMetrics: identify opensea_api_enabled
* metametrics.test: alphabetize traits
* metametrics.test: add new traits
- nft_autodetection_enabled
- opensea_api_enabled
* MetaMetrics: @property use string literals
* MetaMetrics.test: update with openSeaEnabled & useCollectibleDetection
* MetaMetrics: alphabetize
* MetaMetrics: update MetaMetricsTraits @typedef
- add nft_autodetection_enabled
- add opensea_api_enabled
3 years ago
Ariella Vu
0c52723885
Update segment instantiation check. Only check if SEGMENT_WRITE_KEY exists ( #14407 )
...
* segment: instantiate w/out SEGMENT_HOST check
If SEGMENT_HOST is null, then the analytics-node library will usea defaulted host
* Segment: rm IN_TEST check for instantiation
3 years ago
kumavis
54ac00027b
unblock ci: update vuln deps + fix npm registry for snaps firefox ( #14437 )
...
* dep-audit-fix for async@2.6.3
* deps - update async for vuln fix and remove patch
* deps/ci-yarn-audit - remove outdated ignored vulns
* deps/lock - deduplicate async@2
* deps/lock - deduplicate async@2 + remove indirectly used dep
* Use regular NPM registry for snaps on Firefox (#14439 )
* Use regular NPM registry for snaps on FF
* Fix linting
* Update app/scripts/metamask-controller.js
Co-authored-by: Shane <jonas.shane@gmail.com>
Co-authored-by: kumavis <kumavis@users.noreply.github.com>
Co-authored-by: Shane <jonas.shane@gmail.com>
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
Co-authored-by: Shane <jonas.shane@gmail.com>
3 years ago
kumavis
0f4417684b
unblock ci: update vuln deps + fix npm registry for snaps firefox ( #14437 )
...
* dep-audit-fix for async@2.6.3
* deps - update async for vuln fix and remove patch
* deps/ci-yarn-audit - remove outdated ignored vulns
* deps/lock - deduplicate async@2
* deps/lock - deduplicate async@2 + remove indirectly used dep
* Use regular NPM registry for snaps on Firefox (#14439 )
* Use regular NPM registry for snaps on FF
* Fix linting
* Update app/scripts/metamask-controller.js
Co-authored-by: Shane <jonas.shane@gmail.com>
Co-authored-by: kumavis <kumavis@users.noreply.github.com>
Co-authored-by: Shane <jonas.shane@gmail.com>
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
Co-authored-by: Shane <jonas.shane@gmail.com>
3 years ago
Brad Decker
922ebd57cb
track address book usage ( #14382 )
...
* track address book usage
* Update app/scripts/controllers/metametrics.js
Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
* Update shared/constants/metametrics.js
Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
3 years ago
Niranjana Binoy
455d4a9825
Update DetectTokenController for token detection V2 ( #14216 )
3 years ago
Dan J Miller
432c88e185
Remove duplicate gas simulation error messages ( #14409 )
...
* Remove duplicate gas simulation error messages
* Fixing locales
* Fixing unit tests
* Fixing e2e
Co-authored-by: ryanml <ryanlanese@gmail.com>
3 years ago
Dan J Miller
e768119dd0
Remove duplicate gas simulation error messages ( #14409 )
...
* Remove duplicate gas simulation error messages
* Fixing locales
* Fixing unit tests
* Fixing e2e
Co-authored-by: ryanml <ryanlanese@gmail.com>
3 years ago
Olusegun Akintayo
9bd391a35f
User trait - number of nft collections ( #14377 )
...
* Add new user trait for 'Number of NFT collections'.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
FIx JS DOC
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
Arrange TRAITS in alphabetical order
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
Unit Tests for allCollectibles traits tracking.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
change cid to chainId
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* invert condition
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* jsdoc - alphabetical order
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* change {string} to the literal {number_of_nft_collections}
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Optimize _getNumberOfNFTs
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
3 years ago
Daniel
2d24a4d643
Swaps timer improvements, optional refresh rates and fix for a notification UI ( #14300 )
...
* Set up correct timer value for fetching new quotes
* Show red timer in Swaps if quotes fetching will happen in less than 10s (previously it was 30s)
* Fix a UI issue with the notification close button
* Make stx refresh rates optional, since not every network supports them
3 years ago
George Marshall
94378c773d
Fix/14302 about fox logo ( #14308 )
3 years ago
George Marshall
36a736d3b5
Fix/14230 dark mode fixes ( #14305 )
...
* Dark mode fixes
* removing unused icon svg
3 years ago
David Walsh
af963d7f7b
Dark Mode: What's New Announcement ( #14346 )
3 years ago
Mark Stacey
831d274a40
Restore `version` missing from certain build steps ( #14344 )
...
Certain build steps accidentally omitted the `version` variable. It has
now been restored to all steps, ensuring that all environment variables
are correctly injected into all bundles.
A check has been added to the Sentry setup module to ensure the release
is not omitted in the future.
3 years ago
Brad Decker
d6df3700f7
track rpc method usage ( #14269 )
3 years ago
Mark Stacey
2d08fe35e5
Restore `version` missing from certain build steps ( #14344 )
...
Certain build steps accidentally omitted the `version` variable. It has
now been restored to all steps, ensuring that all environment variables
are correctly injected into all bundles.
A check has been added to the Sentry setup module to ensure the release
is not omitted in the future.
3 years ago
Frederik Bolding
0556feb142
Add snap version to details page ( #14110 )
...
* Start to add snap version to details page
* Show install date
* Clean up
* Address PR comments
3 years ago
Frederik Bolding
e77ff0bce8
Fix a few Snap state issues ( #14339 )
...
* Fix clearSnapState
* Simplify getSnapState
3 years ago
Daniel
fc17fbe1ad
Swaps timer improvements, optional refresh rates and fix for a notification UI ( #14300 )
...
* Set up correct timer value for fetching new quotes
* Show red timer in Swaps if quotes fetching will happen in less than 10s (previously it was 30s)
* Fix a UI issue with the notification close button
* Make stx refresh rates optional, since not every network supports them
3 years ago
Frederik Bolding
cb963f3c29
snaps-skunkworks@0.10.7 ( #14323 )
...
* snaps-skunkworks@0.10.7
* Bump iframe-execution-environment
3 years ago
George Marshall
e62678464c
Fix/14302 about fox logo ( #14308 )
3 years ago
George Marshall
8edeb9a281
Fix/14230 dark mode fixes ( #14305 )
...
* Dark mode fixes
* removing unused icon svg
3 years ago
Ariella Vu
f088db99a3
MetaMetrics: add segment.identify ( #14195 )
...
* MetaMetrics: add segment.identify
* MetaMetrics: rm non-existent typedef
* MetaMetrics: WIP segment.identify pt. 2
* Revert "MetaMetrics: WIP segment.identify pt. 2"
This reverts commit 8126de4dff9312aab2275cba81d0432bfcdb097b.
* MetaMetrics: add identify tests
* MetaMetricsController: update identify w/ fix
* MetaMetricsController: fix identify tests
* MetaMetricsController#identify: warn instead of throw
* MetaMetrics: transform date into ISO string
* MetaMetricsController: alphabetize test
* MetaMetricsController: restore asset in test
* MetaMetrics: rn traits -> userTraits
* MetaMetrics: restore trackEvent location
* update to follow analytics-node api
* MetaMetricsController: update tests + @link
* MetaMetrics: destimation -> destination
Co-authored-by: brad-decker <bhdecker84@gmail.com>
3 years ago
VSaric
8184b150cb
Redesign screen/page "List of networks" ( #13560 )
...
Co-authored-by: George Marshall <george.marshall@consensys.net>
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
3 years ago
Niranjana Binoy
8174aaa6b5
Adjusting the padding in Alert / error state ( #13819 )
3 years ago
Niranjana Binoy
9f7c4eb658
Enable Token search functionality on supported networks ( #14034 )
3 years ago