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
2022-06-01 19:09:13 +02:00
Jyoti Puri
95c230127c
Upgrade @metamask/eth-ledger-bridge-keyring ( #14799 )
2022-06-01 22:04:29 +05:30
Frederik Bolding
7ce4868401
snaps-skunkworks@0.15.0 ( #14772 )
...
* snaps-skunkworks@0.15.0
* Update patch
* Update tofu and LavaMoat policy
2022-06-01 11:26:12 +02:00
Thomas Huang
db6998c66a
Fix proptype errors in network dropdown, tx list item details, and account details modal tests ( #14747 )
2022-05-31 09:46:38 -07:00
Dan J Miller
8961ea5d1b
Ensure transaction type is correctly updated on edit ( #14721 )
...
* updated state on edit
* Update transaction type in updateEditableParams method instead of in the send duck
* Fix unit test
* Fix unit tests
* Fix and improve unit tests
Co-authored-by: dragana8 <dragana.simic@consensys.net>
2022-05-27 14:01:31 -02:30
benlwyre
f6643e853c
Add fiat onboarding for AVAX and MATIC through Wyre ( #14683 )
2022-05-27 11:04:26 -05:00
dependabot[bot]
377c621dd4
Bump @metamask/contract-metadata from 1.33.0 to 1.35.0 ( #14791 )
...
Bumps [@metamask/contract-metadata](https://github.com/MetaMask/contract-metadata ) from 1.33.0 to 1.35.0.
- [Release notes](https://github.com/MetaMask/contract-metadata/releases )
- [Commits](https://github.com/MetaMask/contract-metadata/commits )
---
updated-dependencies:
- dependency-name: "@metamask/contract-metadata"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-27 10:49:22 -02:30
Ariella Vu
b6ade44bc9
Slight cleanup of constants/transactions, useTransactionDisplayData, and TransactionIcon ( #14784 )
...
* TransactionIcon: alphabetize categories
* useTransactionDisplayData: rm repetitive comment
* useTransactionDisplayData: mv signatureTypes
* useTxDisplayData: import transactionGroup @typedef
* userTxDisplayData: just vertical line spacing
2022-05-26 16:26:45 -05:00
Daniel
6dbb2c4ded
Migrate the "estimateGas" API call to "getFees" for STX ( #14767 )
2022-05-26 19:56:28 +02:00
Dan J Miller
0d595df635
Ignore advisory GHSA-wm7h-9275-46v2 ( #14789 )
...
* We can safely ignore this advisory because the affected package is only used in the ipfs cli, which our use of 3box does not use, therefore the vulnerable code is not included in our build.
2022-05-26 14:31:47 -02:30
Jyoti Puri
25082ae272
Adding flag for MV3 ( #14762 )
2022-05-26 10:18:23 +05:30
Brad Decker
51986a4724
Add types to send state ( #14740 )
2022-05-25 15:54:05 -05:00
Frederik Bolding
5b8a69c721
Remove site origin on snap install ( #14752 )
...
* Remove site origin on snap install
* Fix linting + storybook
* Update local snap icon
* Fix storybook build
2022-05-25 18:19:02 +02:00
George Marshall
8fcbebc546
Update design tokens library from 1.5 to 1.6 WIP ( #14732 )
...
* Updating account menu icon color
* Updating design-tokens and making appropriate updates to extension styles
* Adding more deprecated tags to colors
* Adding spinner and removing todo comment
* Remove comment
* Updates
* Updating snapshots
* More color and ui updates
* reverting transition change
2022-05-25 08:35:36 -07:00
Ariella Vu
70bdd9729f
Enables the "Safe Transaction From" copy for safeTransferFrom transactions ( #14769 )
...
* useTransactionDisplayData:support safetransferfrom
* useTransactionDisplayData: update test
2022-05-25 10:13:15 -05:00
Brad Decker
3177c6abbb
remove draft transaction ( #14701 )
2022-05-24 16:05:27 -05:00
VSaric
623fd91d65
Fix currency conversion rate ( #14713 )
2022-05-24 15:16:11 -05:00
Daniel
f6576801d4
Fix an edge case with missing top assets in Swaps ( #14688 )
...
* If there is no array of top assets in a response, use an empty array
* Set a default empty array for 2 functions, remove an unnecessary condition
* Redirect a user from Swaps to the homepage if they switch to a chain that is not supported in Swaps
* Fix errors in the UI Console when it's not a swaps chain
2022-05-24 18:30:46 +02:00
Frederik Bolding
c833e41eee
Restore SiteOrigin chip on permission screen ( #14768 )
...
* Restore SiteOrigin chip on permission screen
* Fix linting
2022-05-24 18:04:07 +02:00
Mark Stacey
8465a3c4aa
Remove module paths from bundle ( #14763 )
...
A patch has been added to ensure lavapack no longer includes the path
for each module as part of each serialized module. This path was
originally added for debugging purposes, and is not used for anything
at runtime. The module path was an absolute path, not a relative one,
so it was an obstacle to having reproducible builds between
environments.
2022-05-24 12:59:21 -02:30
VSaric
e7d1476522
Sign button is enabled after scrolling all the way to the bottom ( #14745 )
2022-05-24 10:28:40 -05:00
Ariella Vu
e06e5599bb
EditGasFeeBtn: Insufficient number of substitutions for key "dappSuggestedTooltip" ( #14734 )
...
* EditGasFeeBtn: support missing origin dappSuggest
* EditGasFeeButton: add tooltip min-width
* EditGasFeeButton: tooltip min-width needs extra px
* EditGasFeeBtb: tooltip min-width add a bit more px
2022-05-23 15:04:54 -05:00
Alex Donesky
634cf70a71
Enhance reusable SiteOrigin component ( #14720 )
...
* extend and reuse SiteOrigin component
2022-05-20 09:35:18 -05:00
dependabot[bot]
3964940156
Bump @metamask/auto-changelog from 2.5.0 to 2.6.0 ( #14741 )
...
Bumps [@metamask/auto-changelog](https://github.com/MetaMask/auto-changelog ) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/MetaMask/auto-changelog/releases )
- [Changelog](https://github.com/MetaMask/auto-changelog/blob/main/CHANGELOG.md )
- [Commits](https://github.com/MetaMask/auto-changelog/compare/v2.5.0...v2.6.0 )
---
updated-dependencies:
- dependency-name: "@metamask/auto-changelog"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
2022-05-19 23:47:56 -07:00
Thomas Huang
11831c6ae5
Add hideEstimatedGasFee prop to sort-list and select-quote-popover tests ( #14725 )
2022-05-19 10:43:31 -07:00
VSaric
a5e07b0f18
Chain ID field use the same color pattern as the currency symbol field warning message below ( #14644 )
2022-05-19 10:52:17 -05:00
Brad Decker
5444474d82
add gas_used to gasParams for conversion ( #14627 )
2022-05-18 16:54:38 -05:00
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
2022-05-18 13:49:26 +02:00
Ariella Vu
9d058007cc
NetworksTab: make footer buttons nowrap ( #14733 )
2022-05-17 19:44:32 -05:00
Dan J Miller
944c22262f
Ensure send logs use current chain currency symbol ( #14726 )
2022-05-17 14:27:23 -02:30
Erik Marks
ca6835a86d
Use enum for test snaps website URL ( #14727 )
...
* Use enum for test snaps website
* Fix confirm snap test
2022-05-17 10:39:55 +02:00
Ariella Vu
7cfa454570
Storybook: add SignatureRequestOriginal ( #14707 )
...
* SB: add SignatureRequestOriginal
* SB:SignatureRequestOriginal: add reusable Template
* SB:SignatureRequestOriginal: add args
missing isRequired args
* SB:SignatureRequestOriginal: add eth_signTypedData
* SB:SignatureRequestOriginal: update README.mdx
* SB:README: update description
* SignatureRequestOriginal: destruct mock value
2022-05-16 17:28:20 -05:00
Ariella Vu
1464ab724f
Storybook: Fix SignatureRequest component ( #14706 )
...
* SB:SignatureRequest: fix control type
* SB:SignatureRequest: fix args
expected by sanitizeMessage
* SignatureRequests: cleanup
2022-05-16 17:24:08 -05:00
Thomas Huang
dbe89049bd
Unit test proptype ( #14564 )
...
* Change import file to root index
* Properly set showFiat proptype to bool
2022-05-16 13:53:47 -07:00
dragana8
d01a2ad7e5
Overall CSS #13441 ( #13902 )
...
* styling updates
Co-authored-by: Alex Donesky <adonesky@gmail.com>
Co-authored-by: George Marshall <george.marshall@consensys.net>
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
2022-05-16 13:38:04 -05:00
dragana8
a0c4febfce
"Cancel/reject all" for signature requests #13201 ( #13786 )
2022-05-16 13:36:19 -05:00
Frederik Bolding
c2cd6f8097
Bump addons-linter
( #14717 )
...
* Bump addons-linter
* Deduplicate yarn.lock
* Rerun yarn install and LavaMoat policy gen
2022-05-16 18:04:25 +02:00
Brad Decker
ae4efef43e
add networks without ticker trait ( #14607 )
...
* add networks without ticker trait
2022-05-13 12:01:29 -05:00
Lachlan Tweedie
eee4cc3100
Add Coinbase Pay as fiat onramp option ( #14648 )
2022-05-12 18:27:49 -05:00
Alex Donesky
23565cac2c
Bump @metamask/controllers version, remove patches ( #14618 )
2022-05-12 18:01:24 -05:00
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
2022-05-12 17:58:37 -04:00
Daniel
d305dcba9d
Change styles for the high price impact notification in Swaps ( #14697 )
2022-05-12 19:57:05 +02:00
Bowen Sanders
77c1100858
create e2e test for manageState snap ( #14699 )
2022-05-12 10:56:55 -07:00
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
2022-05-12 13:36:14 -02:30
Alex Donesky
5e55cf2cf2
add case in useTransactionDisplayData to handle transaction type safeTransferFrom ( #14678 )
...
* add case in useTransactionDisplayData to handle transaction type safeTransferFrom
* add test
2022-05-12 10:02:08 -05:00
kumavis
02d374fde0
deps - patch secp256k1 for fast module init via lazy loading ( #14677 )
2022-05-11 13:21:23 -10:00
Niranjana Binoy
6c757ab5e0
Event tracking for Token Detection V2 ( #14441 )
2022-05-11 16:27:58 -04:00
Erik Marks
4b2cd0ef7a
Fix Snaps view search ( #14693 )
...
Closes #14687
Snap IDs were not properly encoded (and decoded) as URI components in the Snaps view search implementation. This ensures that they are.
2022-05-11 13:14:53 -07:00
Daniel
9a153d2388
Remove gas editing in Swaps ( #14673 )
...
* Remove gas editing in Swaps
* Remove "extraApprovalGas"
2022-05-11 20:30:03 +02:00
Frederik Bolding
b258cbafe7
Remove confirmation for terminated snaps ( #14566 )
2022-05-11 16:15:26 +02:00