Mark Stacey
42c8703f3e
Add comments about legacy streams ( #15492 )
...
Two comments have been added to reference a longer explanation of what
the legacy provider streams are, why we still have them, and why we
want to remove them.
2 years ago
Hassan Malik
a7179a6b88
[FLASK] Add update snap UI ( #15143 )
...
* added snap-update folder
* addded update route, snap update component, updated permissions connect components
* added actions and selectors
* updated permissions selectors and updated permissions connect container to have update snap logic
* updated translations, added selector, updated request object
* updated translations, added update snap permission list component
* more fixes
* added CSS, redid some HTML
* lint fixes
* Add missing grantPermissions action
* updated button padding
* fixes
* removed prop type
* fix Update & Install wrapping
* made changes for forthcoming snap controller PR
* removed ununsed imports
* updated css
* re-added padding rule and removed unused translation messages
* addressed comments
* add subtext for new permissions
* lint fix
* removed unused translations
* some more changes
* fix e2e tests
* lint fix
* added in delay for e2e tests
* Revert "added in delay for e2e tests"
This reverts commit 095962a2c0c9de0b0b343d3134bb0787044dd8ce.
* fixed routing logic
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
Co-authored-by: Guillaume Roux <guillaumeroux123@gmail.com>
2 years ago
Brad Decker
c72199a1a6
update prettier ( #15360 )
2 years ago
Dan J Miller
aea5c5824f
Clean up of code introduced with 43f7a44
( #15158 )
2 years ago
Frederik Bolding
8a550ce003
[FLASK] Fix missing snap hook ( #15354 )
2 years ago
Brad Decker
652d631cda
remove exclusions for mismatched object jsdoc type casing ( #15351 )
2 years ago
Brad Decker
1db0ee87ec
Update Eslint and deps ( #15293 )
2 years ago
Alex Donesky
8536c86ed5
Improve `tokenId` parsing and clean up `useAssetDetails` hook ( #15304 )
2 years ago
Hassan Malik
e280204287
[FLASK] Add snap update metrics ( #15206 )
...
* added snap update metrics
* fixed update event
2 years ago
Frederik Bolding
1ec190bd8c
[FLASK] `snaps-skunkworks@0.18.1` ( #15230 )
...
* snaps-skunkworks@0.17.0
* Handle breaking changes
* Fix import
* Fix blocklist implementation
* snaps-skunkworks@0.18.0
* Fix lint
* Update LavaMoat policy
* Update iframe-execution-environment
* snaps-skunkworks@0.18.1
* Bump iframe-execution-environment
* Update LavaMoat policy
2 years ago
Alex Donesky
d92936475a
Fix default currency symbol for `wallet_addEthereumChain` + improve warnings for data that doesn't match our validation expectations ( #15201 )
...
* set more appropriate default for ticker symbol when wallet_addEthereumChain is called
* throw error to dapp when site suggests network with same chainId but different ticker symbol from already added network, instead of showing error and disabled notification to user
2 years ago
Alex Donesky
09164dcabb
Bump controllers v30.0.2 ( #14906 )
...
* bump @metamask/controllers to v30.0.2 and adapt
2 years ago
Alex Donesky
4993d28a8f
Only send the rpc origin to segment when calling trackevent for newly added custom networks ( #15227 )
2 years ago
Filip Sekulic
7246058797
Added metrics for adding a new network ( #15176 )
...
* Added metrics for adding a new network
* Applied requested changes
* Added missed changes
2 years ago
Filip Sekulic
43f7a44c25
Adding popular custom network integration ( #14557 )
...
* Initial push
* Refactored the code
* Additional code
* Removed the unused message
* Added a tooltip
* Fixed tests
* Lint fix
* Added style to a tooltip
* Fix e2e test failure
* Lint fix and code revert
* Fix e2e test
* Fixed paddings
* Fixed paddings
* CSS fix
* Minified svg files
* Applied requested changes
* Fixed theme issue
* Code revert
* Added back overridden code
* Icon problem fixed
* Lint fix
* Replaced H3 with H4
* Added unit test
* Added breadcrumbs
* Added const props for networks
* Lint fix
* Lint fix
* Added toggle button for showing the custom network list and resolved few issues
* Fixed routes
* Refactored a piece of code
* Enabled searching for the newly created option
* Fixed unit test
* Updated theme
2 years ago
Dan Miller
bc6c60cde1
Revert "Merge pull request #15063 from MetaMask/revert-v10.16.0"
...
This reverts commit 4d42715220
, reversing
changes made to f09ab88891
.
2 years ago
Dan Miller
24662963c5
Revert "Merge pull request #15063 from MetaMask/revert-v10.16.0"
...
This reverts commit 4d42715220
, reversing
changes made to f09ab88891
.
2 years ago
Mark Stacey
925a19fa4a
Revert "Merge pull request #14912 from MetaMask/Version-v10.16.0"
...
This reverts commit f09ab88891
, reversing
changes made to effc761e0e
.
This is being temporarily reverted to make it easier to release an
urgent fix for v10.15.1.
2 years ago
Dan J Miller
254e600d07
Destroy ledger keyring when removing last account in ledger keyring ( #14993 )
...
* Destroy ledger keyring when removing last account in ledger keyring
* Update unit tests
2 years ago
Dan J Miller
ac7245b50c
Destroy ledger keyring when removing last account in ledger keyring ( #14993 )
...
* Destroy ledger keyring when removing last account in ledger keyring
* Update unit tests
2 years ago
Frederik Bolding
82645ba516
[FLASK] snaps-skunkworks@0.16.0 ( #14952 )
...
* snaps-skunkworks@0.16.0
* Bump iframe-execution-environment
* Add getAppKey
* Regen LavaMoat policy
* Bump test-snaps
2 years ago
Erik Marks
b491367632
[FLASK] Rename `workerController` to `snapExecutionService` ( #14981 )
...
Renames the `MetaMaskController.workerController` property to `snapExecutionService`, which better matches the naming scheme used throughout the Snaps codebase. No functional changes.
2 years ago
George Marshall
87bba78d1f
Updating all instances of Metamask to MetaMask in content, comments and tests ( #14848 )
3 years ago
Guillaume Roux
b599035a12
Snap notifications integration ( #14605 )
...
* begin controller implentation
* add NotificationController
* create selectors and actions
* update actions tu use forceUpdateMetamaskState
* Basic notification UI
* fix typo and remove console.log
* lint
* more css
* add notifications scroll
* add translations and fix some css
* Fix rebase and edit colors
* add flask tags
* add flask tag to routes component
* add missing flask tags
* add tests
* fix tests
* store notification expiration delay in constant
* address requested changes
* rename to unreadNotificationsCount
* add missing flask tag
3 years ago
Frederik Bolding
7ce4868401
snaps-skunkworks@0.15.0 ( #14772 )
...
* snaps-skunkworks@0.15.0
* Update patch
* Update tofu and LavaMoat policy
3 years ago
Daniel
6dbb2c4ded
Migrate the "estimateGas" API call to "getFees" for STX ( #14767 )
3 years ago
Frederik Bolding
66c049bb35
snaps-skunkworks@0.14.0 ( #14700 )
...
* snaps-skunkworks@0.13.0
* snaps-skunkworks@0.14.0
* Fix test
* Add long-running permission copy and icon
* Run linting
* Fix typo
* Bump E2E version
3 years ago
Mark Stacey
7199d9c567
Use externally hosted phishing warning page
...
An externally hosted phishing warning page is now used rather than the
built-in phishing warning page.The phishing page warning URL is set via
configuration file or environment variable. The default URL is either
the expected production URL or `http://localhost:9999/ ` for e2e testing
environments.
The new external phishing page includes a design change when it is
loaded within an iframe. In that case it now shows a condensed message,
and prompts the user to open the full warning page in a new tab to see
more details or bypass the warning. This is to prevent a clickjacking
attack from safelisting a site without user consent.
The new external phishing page also includes a simple caching service
worker to ensure it continues to work offline (or if our hosting goes
offline), as long as the user has successfully loaded the page at least
once. We also load the page temporarily during the extension startup
process to trigger the service worker installation.
The old phishing page and all related lines have been removed. The
property `web_accessible_resources` has also been removed from the
manifest. The only entry apart from the phishing page was `inpage.js`,
and we don't need that to be web accessible anymore because we inject
the script inline into each page rather than loading the file directly.
New e2e tests have been added to cover more phishing warning page
functionality, including the "safelist" action and the "iframe" case.
3 years ago
Brad Decker
f251ca4ff2
Track send flow history on txMeta ( #14510 )
3 years ago
Dan J Miller
f4094925f0
Ensure ledger keyring message event listener are removed on metamask lock ( #14691 )
...
* Ensure ledger keyring message event listener are removed on metamask lock
* Clean up
3 years ago
Hassan Malik
a3917763d4
Removed onExecutionEnvironmentError ( #14698 )
...
* used correct method to stop snap
* removed dead code, snap controller already subscribes to execution environment errors
* fixed linting error
3 years ago
Dan J Miller
8948018e5a
Ensure ledger keyring message event listener are removed on metamask lock ( #14691 )
...
* Ensure ledger keyring message event listener are removed on metamask lock
* Clean up
3 years ago
Niranjana Binoy
6c757ab5e0
Event tracking for Token Detection V2 ( #14441 )
3 years ago
Frederik Bolding
b258cbafe7
Remove confirmation for terminated snaps ( #14566 )
3 years ago
Frederik Bolding
2dac88cbf4
snaps-skunkworks@0.12.0 ( #14670 )
...
* snaps-skunkworks@0.12.0
* Bump iframe execution environment
* Remove policy override
* Rerun LavaMoat
Co-authored-by: Erik Marks <25517051+rekmarks@users.noreply.github.com>
3 years ago
Frederik Bolding
9e401b14bf
Simplify removeSnap functionality after snaps-skunkworks update ( #14646 )
3 years ago
Alex Donesky
4550a10d32
fix incorrect casing of includeUsdRate option passed to CurrencyRateController ( #14615 )
3 years ago
Brad Decker
564ad2f81b
Track send flow history on txMeta ( #14510 )
3 years ago
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
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
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
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
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
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
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
Niranjana Binoy
455d4a9825
Update DetectTokenController for token detection V2 ( #14216 )
3 years ago
Brad Decker
d6df3700f7
track rpc method usage ( #14269 )
3 years ago
Frederik Bolding
e77ff0bce8
Fix a few Snap state issues ( #14339 )
...
* Fix clearSnapState
* Simplify getSnapState
3 years ago