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

12246 Commits

Author SHA1 Message Date
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
dependabot[bot]
ad7e64ad91
Bump trim-newlines from 3.0.0 to 3.0.1 (#11260)
Bumps [trim-newlines](https://github.com/sindresorhus/trim-newlines) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/sindresorhus/trim-newlines/releases)
- [Commits](https://github.com/sindresorhus/trim-newlines/commits)

---
updated-dependencies:
- dependency-name: trim-newlines
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-09 15:17:09 -02:30
Brad Decker
94a69443f5
fix jsconfig woes (#11253) 2021-06-09 12:26:16 -05:00
ryanml
282665dd96
Fixing normalize-url audit vulnerability (#11258)
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: Brad Decker <git@braddecker.dev>
2021-06-09 12:26:04 -05:00
ryanml
d7c8186040
Bringing recovery phrase text notification to the top (#11259) 2021-06-09 04:32:59 -07:00
Brad Decker
bd9762e35b
fix issue with importing ui module space inside shared (#11254) 2021-06-08 15:15:28 -05: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
ryanml
64e6935558
Adding Lionbridge translation updates (#11251)
* Adding Lionbridge translation updates

* Removing the BOMs, running verify-locales:fix
2021-06-07 20:19:32 -07:00
Mark Stacey
fae857d1c0
Fix CLA Signature bot workflow (#11250)
In a recent PR (#11240) the workflow was updated to explicitly add the
required permissions. Unfortunately the "pull-requests" permission was
added with a space instead of a dash, which apparently breaks the
workflow. It now has a dash, as shown in the example in the docs [1].

[1]: https://docs.github.com/en/actions/reference/authentication-in-a-workflow#example-1-passing-the-github_token-as-an-input
2021-06-07 18:13:31 -02:30
Mark Stacey
a58c66af1f
Restore CLA bot permissions (#11240)
The CLA bot had its write permissions revoked recently when our
organization-wide settings were updated to restrict actions to read
access by default. This PR restores write access to PRs and to the
repository itself for the CLA bot. It needs PR write access to leave
comments, and needs write access to the repo itself to commit new
signatures.
2021-06-07 11:27:15 -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
Mark Stacey
a8196c2b21
Merge pull request #11233 from MetaMask/master-sync
Sync `master` with `develop`
2021-06-04 10:01:42 -02:30
ricky
10c600589b
Feature/use zeroAddress (#11205)
* update ethereumjs-util

* Use zeroAddress
2021-06-03 20:56:04 -04:00
Dan Miller
e6df48af74 Changelog lint fix for v9.5.9 master to develop sync 2021-06-03 21:38:44 -02:30
Dan Miller
9d79246f9c Merge branch 'develop' into master-sync 2021-06-03 16:29:51 -02:30
Dan J Miller
d23db62ba0
Merge pull request #11232 from MetaMask/Version-v9.5.9
Version v9.5.9
2021-06-03 15:53:45 -02:30
Dan J Miller
5d566a483a Resolve ws dependency to version ^7.4.6 to fix security vulnerability (#11229) 2021-06-03 14:07:17 -02:30
Dan Miller
8d99a7360c Version v9.5.9 2021-06-03 14:06:43 -02:30
Dan Miller
e632076b20 Changelog lint fix for v9.5.8 2021-06-03 14:05:01 -02:30
Dan J Miller
a6b1444b4d Improve detection of whether a whats new notification was 'seen' (#11225) 2021-06-03 14:01:51 -02:30
Dan J Miller
6dae3bbe57
Improve detection of whether a whats new notification was 'seen' (#11225) 2021-06-03 13:58:04 -02:30
Daniel
c3b79bb358
Show custom tokens in Swaps, add a custom token in Swaps (#11200)
* Show custom tokens in Swaps

* Add messages for adding a custom token in Swaps

* Add the first version of importing custom tokens in swaps

* Fix lint rules

* Create a new component: ImportToken

* Remove a pointer cursor from regular heading

* Fix a CSS issue for tokens with long names

* Update a comment

* Don’t return a custom token if it doesn’t have symbol or decimals

* Only search by contract address if nothing was found

* Track “Token Imported” event

* Fix unit tests

* Import tracking for “Token Imported”, increase token icon font size

* Disable token import for Source Token

* Update logic and content for notifications, update tests

* Do not hide a dropdown placeholder on click, so a user can click on a link

* Update a key name

* Update styling for the “danger” type notification in Swaps

* Show either a warning or danger notification based on token verification occurences

* Remove testnets from SWAPS_CHAINID_DEFAULT_BLOCK_EXPLORER_URL_MAP

* Use the “shouldSearchForImports” prop

* Create a new function for handling token import: “onOpenImportTokenModalClick”

* Filter token duplicities before iterating over tokens

* Use “address” instead of “symbol” for checking uniqueness

* Trigger Build

* Use a new API (/token) to get token data for importing in Swaps

* Temporarily decrese Jest threshold for functions
2021-06-03 13:38:37 -02:30
Mark Stacey
6700c460fd
Merge pull request #11221 from MetaMask/master-sync
Sync master with develop
2021-06-03 13:07:32 -02:30
Dan Miller
92a10d595e Changelog lint fix for v9.5.8 2021-06-03 12:20:21 -02:30
Dan Miller
a194fa92c3 Merge branch 'develop' 2021-06-03 12:02:57 -02:30
Dan J Miller
6040c6ebbb
Resolve ws dependency to version ^7.4.6 to fix security vulnerability (#11229) 2021-06-03 10:56:52 -02:30
Dan J Miller
0a9aee19f4
Merge pull request #11216 from MetaMask/Version-v9.5.8
Version v9.5.8
2021-06-01 15:04:21 -02:30
ricky
c87f8547a0
Update config.yml (#11217)
Use `community.metamask.io` for "Request a new feature"
2021-06-01 12:22:51 -04:00
Shane T
c65ccf60e5
Fix proptype validation in TransactionIcon component (#11198) 2021-05-31 21:49:23 -02:30
dependabot[bot]
0dc459e073
Bump @metamask/auto-changelog from 2.2.0 to 2.3.0 (#11213)
Bumps [@metamask/auto-changelog](https://github.com/MetaMask/auto-changelog) from 2.2.0 to 2.3.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/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-31 21:31:10 -02:30
Dan Miller
31fb26f196 Version v9.5.8 2021-05-31 17:36:51 -02:30
Dan J Miller
6131d10d4b Fix notification locale format (#11207) 2021-05-31 17:33:09 -02:30
Dan Miller
517daba1af Revert "Revert "lint fix""
This reverts commit 02b442aace.
2021-05-31 17:31:35 -02:30
Dan Miller
ad7b4595ce Revert "Revert "Adding "What's New" notification for Ledger Support Update (#11188)""
This reverts commit 7365f87f9e.
2021-05-31 17:31:23 -02:30
Dan Miller
c68a858688 Revert "Revert "Disable Ledger Live toggle for Firefox users (#11169)""
This reverts commit 6e0da428ac.
2021-05-31 17:31:11 -02:30
Dan Miller
e3ed26cc24 Revert "Revert "Implement Ledger Live bridge (#10293)""
This reverts commit 56db48a1c3.
2021-05-31 17:30:56 -02:30
Dan J Miller
9e92ab41ee
Sync master with develop (#11215)
* Revert "lint fix"

This reverts commit 6dfab2e3c6.

* Revert "Adding "What's New" notification for Ledger Support Update (#11188)"

This reverts commit 939a34f16c.

* Revert "Disable Ledger Live toggle for Firefox users (#11169)"

This reverts commit dec34fa4c6.

* Revert "Implement Ledger Live bridge (#10293)"

This reverts commit 397417bf09.

* Version v9.5.7

* Update CHANGELOG.md

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

* Revert "Revert "Implement Ledger Live bridge (#10293)""

This reverts commit 56db48a1c3.

* Revert "Revert "Disable Ledger Live toggle for Firefox users (#11169)""

This reverts commit 6e0da428ac.

* Revert "Revert "Adding "What's New" notification for Ledger Support Update (#11188)""

This reverts commit 7365f87f9e.

* Revert "Revert "lint fix""

This reverts commit 02b442aace.

* Track version in correct place (i.e. package.json) for master to develop sync for v9.5.7

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-05-31 15:38:52 -02:30
Dan J Miller
96ab804193
Merge pull request #11209 from MetaMask/Version-v9.5.7
Version v9.5.7
2021-05-28 20:05:12 -02:30
Dan J Miller
36ac2a92fd
Update CHANGELOG.md
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-05-28 19:36:18 -02:30
Dan Miller
b1ce4022dc Version v9.5.7 2021-05-28 16:29:50 -02:30
Dan Miller
56db48a1c3 Revert "Implement Ledger Live bridge (#10293)"
This reverts commit 397417bf09.
2021-05-28 16:17:17 -02:30
Dan Miller
6e0da428ac Revert "Disable Ledger Live toggle for Firefox users (#11169)"
This reverts commit dec34fa4c6.
2021-05-28 16:16:49 -02:30
Dan Miller
7365f87f9e Revert "Adding "What's New" notification for Ledger Support Update (#11188)"
This reverts commit 939a34f16c.
2021-05-28 16:16:37 -02:30
Dan Miller
02b442aace Revert "lint fix"
This reverts commit 6dfab2e3c6.
2021-05-28 16:16:25 -02:30
Dan J Miller
3fc29bf4f2
Fix notification locale format (#11207) 2021-05-28 16:11:11 -02:30
dependabot[bot]
6f49ff6b64
Bump @metamask/auto-changelog from 2.1.0 to 2.2.0 (#11196)
Bumps [@metamask/auto-changelog](https://github.com/MetaMask/auto-changelog) from 2.1.0 to 2.2.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.1.0...v2.2.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-28 11:37:12 -02:30