1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
Commit Graph

4562 Commits

Author SHA1 Message Date
ryanml
1739ed9710 conflict fixes 2021-06-10 14:42:59 -07:00
ryanml
f1403f4849 Bumping package version -> 9.6.0 2021-06-10 14:29:29 -07:00
ryanml
2bfc3a093f
Using values from shared/constants/time to represent timing values (#11241) 2021-06-10 12:27:03 -07:00
Brad Decker
9e509d0c9d
Relocate send state into send duck from metamask duck (#11252) 2021-06-10 12:53:15 -05:00
ryanml
5afd1c9fa6
Using native network currency for encryption public key requests (#11257)
Fixes MetaMask/metamask-extension#11247
2021-06-10 10:49:14 -07:00
Dan J Miller
3af174b590 Stringify gas estimate in backend, before it is serialized and sent to ui (#11266)
* Stringify gas estimate in backend, before it is serialized and sent to ui

* Fix send.utils.test.js
2021-06-09 19:57:24 -07:00
ryanml
523c04b47a Fix built-in networks switch-ethereum-chain, Including RPC url in switchEthereumChain requestData (#11268)
* Moving RPC Urls to network constants

* Including RPC url in switchEthereumChain requestData

* Setting project id to var

* Fix built-in networks switch-ethereum-chain

`switch-ethereum-chain` did not work correctly with built-in networks.
It was treating them as custom networks, rather than as built-in
networks. This affected how they were displayed in the network
dropdown, and resulted in slight differences to the network stack used
as well.

The problem was that `updateRpcTarget` was used, which was meant for
custom networks only. Now that `setProviderType` is used in the case of
a built-in network, the behaviour should match the network switcher
exactly.

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-06-09 19:57:10 -07:00
Dan J Miller
6124a221e4 Use verifyPassword instead of submitPassword in exportAccounts in actions.js (#11265) 2021-06-09 19:56:59 -07:00
Dan J Miller
432d6508ba
Stringify gas estimate in backend, before it is serialized and sent to ui (#11266)
* Stringify gas estimate in backend, before it is serialized and sent to ui

* Fix send.utils.test.js
2021-06-09 22:18:05 -02:30
ryanml
a75092762f
Fix built-in networks switch-ethereum-chain, Including RPC url in switchEthereumChain requestData (#11268)
* Moving RPC Urls to network constants

* Including RPC url in switchEthereumChain requestData

* Setting project id to var

* Fix built-in networks switch-ethereum-chain

`switch-ethereum-chain` did not work correctly with built-in networks.
It was treating them as custom networks, rather than as built-in
networks. This affected how they were displayed in the network
dropdown, and resulted in slight differences to the network stack used
as well.

The problem was that `updateRpcTarget` was used, which was meant for
custom networks only. Now that `setProviderType` is used in the case of
a built-in network, the behaviour should match the network switcher
exactly.

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-06-09 15:18:38 -07:00
Dan J Miller
003b6365c0
Use verifyPassword instead of submitPassword in exportAccounts in actions.js (#11265) 2021-06-09 13:42:25 -07:00
ryanml
b0f90f13da Adding back button to reveal seed phrase view (#11246)
Reveal seed phrase button placement fixes

Localizing uses of the word "Back"
2021-06-08 11:50:43 -07:00
ryanml
1080319b33
Adding back button to reveal seed phrase view (#11246)
Reveal seed phrase button placement fixes

Localizing uses of the word "Back"
2021-06-08 10:02:34 -07:00
Brad Decker
b073b04789
move metamask state selectors out of send (#11249) 2021-06-08 11:03:59 -05:00
Brad Decker
df9bc52e9f
Add gas constants (#11248) 2021-06-08 10:25:48 -05:00
Dan Miller
36b15c489d Lint fix 2021-06-07 11:03:33 -02:30
ryanml
10f9912fd5 Supporting existing default networks in switchEthereumChain (#11184) 2021-06-07 10:38:33 -02:30
ryanml
f35bc1052a Fixing ever-present scrollbar issue on Swaps view (#11182)
* Fixing ever-present scrollbar issue on Swaps view

* Updating max-height
2021-06-07 10:38:33 -02:30
ryanml
3d13b85213 Adding notification for updated seed phrase wording (#11131)
* Adding notification for updated seed phrase wording

* Updating e2e notification state

* Always displaying image for swaps notification
2021-06-07 10:38:28 -02:30
Daniel
207cde27a5 Fix a condition for checking if a token should be added (#11127) 2021-06-07 10:33:25 -02:30
Niranjana Binoy
d4cb403d51 Handling custom token decimal fetch failure due to network error (#10956) 2021-06-07 10:33:20 -02:30
Niranjana Binoy
6a73b7c998 Hide basic tab in advanced gas modal for speedup and cancel when on testnets (#11115) 2021-06-07 10:30:50 -02:30
Brad Decker
ce67e1bfcd use safer toChecksum utility (#11117) 2021-06-07 10:30:49 -02:30
Brad Decker
19ec45ef35 create safer isValidAddress method (#11089) 2021-06-07 10:30:46 -02:30
ryanml
c5f3290cb1 Fixing unlocalized strings (#11102)
* Fixing unlocalized strings

Fixes MetaMask/metamask-extension#11094

* Removing aggregrate bullet from modal

* Updating bullet point keys
2021-06-07 10:16:19 -02:30
ryanml
226d23ee64 Fixing account search results ordering (#11097)
Removing 'shouldSort: false' from fuse.js' options config

Fixes MetaMask/metamask-extension#10991
2021-06-07 10:15:47 -02:30
Daniel
e4ac5eed94 Show a notification about BSC Swaps if a user is on the BSC Mainnet (#11083)
* Add a notification for BSC Swaps

* Add a new logo for BSC sources, update an image for BSC notification

* Mark a BSC notification as seen when a user clicks on “Start swapping”

* Add conditional rendering of notifications

* Remove divider for the last notification

* Remove a divider for the last notification

* Remove !

* Trigger pipeline
2021-06-07 10:15:41 -02:30
Daniel
3f70afb3ff Swaps: Add specific error content if Contract data are not enabled on Ledger (#11088) 2021-06-07 10:07:44 -02:30
Daniel
79e79e9212 Swaps: Add more anonymized tracking for HW wallet and HW wallet type (#11087) 2021-06-07 10:07:44 -02:30
Daniel
cfe1ea2bea Swaps: Add anonymized tracking for HW wallet and HW wallet type (#11063) 2021-06-07 10:06:18 -02:30
Daniel
da1720a9ec Fix redirection to the build quotes page from the swaps failed page (#11025) 2021-06-07 10:02:42 -02:30
David Walsh
e69a6d6dee Prevent signature request component from canceling hardware wallet signing (#11013) 2021-06-07 10:02:39 -02:30
ryanml
cfdfe0fcc6 Removing unused prop from TransactionActivityLog (#11014) 2021-06-07 10:02:39 -02:30
Mark Stacey
9d002cbff0 Remove SET_CURRENT_FIAT action (#11003)
The `SET_CURRENT_FIAT` action has been removed. It has been replaced
by a call to `forceUpdateMetamaskState`. The only purpose of this
action was to eagerly update the current fiat currency settings before
the next state update. Forcing a state update instead is simpler and
safer.

The `setCurrentCurrency` function in the background has been updated to
no longer return the state, now that it's no longer needed.
2021-06-07 10:02:39 -02:30
Niranjana Binoy
e906bd8d0e adding condition to check for non-mainnet network and test env (#11007) 2021-06-07 10:02:39 -02:30
Niranjana Binoy
640c6d98d3 replacing seed phrase with Secret Recovery Phrase (#10994) 2021-06-07 10:02:39 -02:30
Daniel
92a79904f7 Swaps: Improve hardware wallet UX (#10987) 2021-06-07 10:02:30 -02:30
ryanml
4016bb535b Re-validating chain id when rpc url changes [custom network form] (#10982) 2021-06-07 10:02:30 -02:30
ryanml
d421e593a2 Allowing for scroll overflow when swaps content is too tall (#10988)
Fixes MetaMask/metamask-extension#10957
2021-06-07 10:00:16 -02:30
ryanml
b8d385be62 Revert "Revert "Adding recovery phrase video to onboarding process (#10717)""
This reverts commit 68c5defcdbb7cf3745c14c0023a1d3c37e657992.
2021-06-07 10:00:11 -02:30
Daniel
91601ebe5e Allow 0% slippage, show a warning for 0 < slippage <= 1, disable "Review Swap" button for negative slippage (#10936)
* Allow 0% slippage, show a warning for 0 < slippage <= 1, disable “Review Swap” button for negative slippage

* Update a translation key, use both new and old key until it’s translated everywhere

* Keep an old key for `en`: swapSlippageTooLow

* Fix an ESLint issue

* Only use swapSlippageNegative, remove swapSlippageTooLow
2021-06-07 09:58:45 -02:30
Alex Donesky
ce8b173f56 add setting to dismiss seed phrase backup reminder (#10967) 2021-06-07 09:58:45 -02:30
Alex Donesky
fbe1da81a5 send user to activity after transaction complete (#10946) 2021-06-07 09:58:45 -02:30
ryanml
6fddd7f548 Removing gray background from contact address input (#10971) 2021-06-07 09:58:45 -02:30
David Walsh
f8e400f51c Fix #10173 - Prevent lag in external monitors when using Mac + Chrome (#10952) 2021-06-07 09:58:45 -02:30
Brad Decker
29742b9519 remove the ui/app and ui/lib folders (#10911) 2021-06-06 12:45:27 -02:30
Niranjana Binoy
ffbd8e2c2f Handling gas price fetch failure (#10767) 2021-06-06 12:10:08 -02:30
ryanml
9932c40651
Adding periodic reminder modal for backing up recovery phrase (#11021)
* Adding recurring recovery phrase reminder modal

* Refactoring per PR feedback
2021-06-04 23:33:58 -07:00
Alex Donesky
e76762548c
Warn users when they attempt to add a network that is already configured (#11179)
* warn users when they attempt to add a network that is already configured

* clean up validation logic

* fixing up e2e tests

* Update test/e2e/helpers.js

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-06-04 08:52:07 -05:00
Dan J Miller
a6b1444b4d Improve detection of whether a whats new notification was 'seen' (#11225) 2021-06-03 14:01:51 -02:30