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

15943 Commits

Author SHA1 Message Date
Alaa Hadad
174d3dbcf0
soft disable onramp provider wyre (#17102) 2023-01-09 13:44:13 -03:30
seaona
c33b0a83a9 run lavamoat:auto 2023-01-09 16:24:50 +01:00
PeterYinusa
2f7b63e9f4 Remove fast-json-patch exclusion 2023-01-09 14:24:50 +00:00
PeterYinusa
cae0fcf17b policy updates 2023-01-09 13:47:24 +00:00
PeterYinusa
5672f24c9f fix audit failure (#17079) 2023-01-09 08:03:49 -03:30
ryanml
7ea827565c
Fix 'Back' navigation from Restore Vault page when accessed from popup window (#17095) 2023-01-09 04:19:53 -07:00
PeterYinusa
94b0d7fb91 Update policies 2023-01-09 07:39:02 -03:30
amerkadicE
5964ece8d3
Ensure that protect your funds popover is displayed above tooltip (#17084) 2023-01-08 16:45:14 -06:00
MetaMask Bot
2dc8cb7136 Version v10.23.3 2023-01-06 20:08:14 +00:00
David Walsh
dc3a09de16
Dark Mode: Set to default based on user preferred scheme (#15870) 2023-01-06 14:07:47 -06:00
Mark Stacey
87ce653c86
Move MetaMask middleware out of network controller (#16863)
The "MetaMask middleware" is the set of middleware for handling methods that
we don't send to the network. This includes signing, encryption, `getAccounts`,
and methods that rely on pending transaction state.

Previously this middleware was setup as part of the network client, despite
having nothing to do with the network. They have been moved into the main RPC
pipeline established in `metamask-controller.js` instead.

This is a pure refactor, and should have no functional changes. The middleware
are still run in exactly the same order with the same arguments.
2023-01-06 13:44:50 -03:30
Zachary Belford
cd2249f193
Add tests for custom JSON-RPC network client (#16337)
Previously we had written tests for `createInfuraClient`, which creates a middleware stack designed to connect to an Infura provider. These tests exercise various RPC methods that relate to the behavior that the middleware provides (mainly around caching). 

Now we need to write the same tests but for `createJsonRpcClient`, which creates a middleware stack designed to connect to a non-Infura RPC endpoint. To do this, we had to:

- Consolidate the tests for both types of RPC client into a single test file.
- Add conditions around tests or assertions in tests to account for differences in behavior between the two sets of middleware stacks.
- Relocate code in `createJsonRpcClient` which slows down `eth_estimateGas` calls just for tests so that this behavior can be disabled in the network client tests.

Eventually, as we unify the network controllers in this repo and in the core repo, we will move these tests into the core repo.

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
2023-01-06 10:10:17 -07:00
amerkadicE
6ace8955d3
Make username mandatory when adding to address book (#17044) 2023-01-06 10:36:32 -06:00
Nidhi Kumari
be227705d0
added padding/margin inline, inline-start and inline-end support to Box Component (#17085)
* added padding/margin inline-start and inline-end support

* updated story for margin
2023-01-06 12:10:28 +05:30
ryanml
e8809cffaf
Onboarding V2: Fix 'Securing my Wallet' when coming from backup reminder after account recovery (#17088) 2023-01-05 23:14:32 -07:00
Michal
b1254843ac
determine tx type using normalized txparams (#17055)
Co-authored-by: ryanml <ryanlanese@gmail.com>
2023-01-05 17:37:50 -07:00
Nidhi Kumari
a1c5224997
housekeeping for picker-network (#16982)
* updated test in picker-network

* fixed import order in README

* fixed global import path

* fixed formatting
2023-01-05 15:30:42 -08:00
Nidhi Kumari
c9ddee9155
updated colors for typography component (#17009)
* updated colors for typography

* updated valid colors
2023-01-05 13:04:48 -08:00
Mark Stacey
50037b790e
Merge pull request #17086 from MetaMask/master-sync
Master sync (v10.23.2)
2023-01-05 17:24:03 -03:30
Dan J Miller
84de060edf Merge remote-tracking branch 'origin/develop' into master-sync 2023-01-05 16:03:50 -03:30
Brad Decker
123ac70a80
update contract-metadata to 2.1.0 (#16904) 2023-01-05 10:32:11 -06:00
Adnan Sahovic
fbbc1df853
Display large and small numbers as decimals instead of scientific notation on token allowance confirmation screens (#16676)
Co-authored-by: VSaric <vladimir.saric@consensys.net>
Co-authored-by: Vladimir Saric <92527393+VSaric@users.noreply.github.com>
2023-01-05 08:58:16 -06:00
Brad Decker
f586f142be
add an extra identifier on anonymized duplicate events (#17080) 2023-01-05 08:49:55 -06:00
PeterYinusa
e71b664bef fix audit failure (#17079) 2023-01-05 11:41:59 +00:00
PeterYinusa
bd7c0a58ae Update CHANGELOG.md 2023-01-05 11:07:33 +00:00
PeterYinusa
eb3aab4033 Merge remote-tracking branch 'origin/master' into Version-v10.24.0 2023-01-05 11:02:15 +00:00
Filip Sekulic
e6038d542a
Update UI for transaction security check in settings (#16830) 2023-01-04 15:59:48 -06:00
Vladimir Saric
dd728b07db Align custom spending cap Max button in approve screen for multiple languages (#16927)
* Align custom spending cap Max button in approve screen for multiple languages

* Modify some css styles and adding Box props

* Using ButtonLink component instead of <button/>

Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-01-04 21:48:47 +00:00
Frederik Bolding
3d1b5062fe Improve SignatureRequest performance (#17052)
* Improve SignatureRequestData performance

* Memoize more selectors
2023-01-04 21:48:20 +00:00
Mark Stacey
8d28fbccc5
Stop block tracker after each network controller unit test (#17032)
The network controller unit tests have been updated to stop the block
tracker after each test. This was accomplished with a new `destroy`
method.
2023-01-04 17:46:22 -03:30
MetaMask Bot
5456ec1bf1
New Crowdin translations by Github Action (#15999)
Co-authored-by: metamaskbot <metamaskbot@users.noreply.github.com>
2023-01-04 14:22:06 -05:00
Brad Decker
35e3b7e82e
fix audit failure (#17079) 2023-01-04 11:29:37 -06:00
Vladimir Saric
4d12c36cf8
Align custom spending cap Max button in approve screen for multiple languages (#16927)
* Align custom spending cap Max button in approve screen for multiple languages

* Modify some css styles and adding Box props

* Using ButtonLink component instead of <button/>

Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-01-04 22:31:52 +05:30
Adnan Sahovic
54cbc66120
Improve transaction complete popup (#16300)
* modified transaction complete popup

deleted upperCase function

deleted replaceAll

fixed lint

* resolved conflicts

* modified view const

Co-authored-by: Vladimir Saric <92527393+VSaric@users.noreply.github.com>
2023-01-04 09:40:42 -06:00
Vladimir Saric
23653f4c08
Added unit tests and story for SignatureRequestData component (#16759) 2023-01-04 09:31:23 -06:00
Brad Decker
14a004c623
Merge pull request #17057 from MetaMask/Version-v10.23.2 2022-12-22 17:47:13 -05:00
Dan J Miller
754c637052 Update changelog for v10.23.2 2022-12-22 16:50:47 -03:30
Frederik Bolding
784ad66d16 Improve SignatureRequest performance (#17052)
* Improve SignatureRequestData performance

* Memoize more selectors
2022-12-22 16:48:14 -03:30
MetaMask Bot
01634752eb Version v10.23.2 2022-12-22 20:13:54 +00:00
Frederik Bolding
05d50eee73
Improve SignatureRequest performance (#17052)
* Improve SignatureRequestData performance

* Memoize more selectors
2022-12-22 16:37:51 -03:30
seaona
c99d345b5b Add explanation for user facing changes on design tokens and remove controllers entry on Changelog 2022-12-22 20:04:38 +01:00
HowardBraham
b9d9112b97
Prevent account name collisions (#16752)
* dealt with most of the problems in the Create Account dialog

* Fixed "newAccountNumberName" localizations

* In another language, don't allow accounts named, for instance, Cuenta 3

* Editing an account name later now follows the same rules

* Fixing lint errors

* Responding to the review by @adonesky1

* Worked with @montelaidev to alter the RegExp, in order to catch spaces before and after the account name

* Fixed line breaks for eslint
2022-12-22 11:27:31 -06:00
seaona
57fbc94643 Added Changelog entry for cherry-picked PR 2022-12-22 18:11:41 +01:00
weizman
3cf5ef642f
Revert "Integrate new LavaMoat scuttling protection feature (#16994)" (#17043) 2022-12-22 17:26:53 +02:00
Mark Stacey
b0959e221b
Add codefi.network host permission (#17029)
This host permission bypasses cross-origin restrictions for our
internal APIs (see here for details on host permissions and CORs [1]).
This acts as a safeguard, ensuring that if CORs is misconfigured on
these endpoints, everything will still work.

[1]: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions#host_permissions
2022-12-22 09:56:33 -03:30
chloeYue
d66db28ae6
Add e2e test for reset account (#16996)
* add test for reset account
2022-12-22 14:16:09 +01:00
amerkadicE
30a5208be7 Track when token balance is changed to update value on approval screen (#16964)
* Track when token balance is changed to update value on approval screen

* Code refactor

* Fix unit test

* Fix sign approval balance

* Refactor code
2022-12-22 12:04:23 +01:00
Ariella Vu
8f3451396f i18n: fix missing locale for "en" error (#17014)
on locale change
2022-12-22 12:02:48 +01:00
Mark Stacey
d222f652c3
Upgrade prettier-plugin-sort-json to v1 (#17026)
This upgrade includes no changes relevant to our usage of this plugin.
2022-12-21 19:17:45 -03:30
Daniel
2832f8a97e
Update quote selection for Optimism (#16998) 2022-12-21 20:59:34 +01:00