Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version v10.21.0 RC #16036

Merged
merged 157 commits into from
Oct 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
8c8539d
Making addPermittedAccount and removePermittedAccount methods idempot…
jpuri Sep 6, 2022
4de0f86
Fix storybook by shimming MV3 method (#15749)
darkwing Sep 6, 2022
100fbbf
Upgrading storybook from 6.3 to 6.5 fixing shell-quote vulnerability …
georgewrmarshall Sep 6, 2022
527fbe0
Update Arbitrum symbol (#15747)
gzeoneth Sep 7, 2022
c825a48
Adding custom component props to FormField component (#15679)
georgewrmarshall Sep 7, 2022
838cd5b
converted Jazzicon component to functional component and added story …
NidhiKJha Sep 8, 2022
a7ff659
ConfirmPage: update setApprovalForAll dialog copy (#15744)
digiwand Sep 8, 2022
2dbabac
warning for deprecated Rinkeby, Ropsten and Kovan test networks (#15725)
adnansahovic Sep 8, 2022
fe10c35
Preserve search query for "Swap from" and "Swap to" form fields, upda…
dan437 Sep 8, 2022
f94bc07
Fix: french typos (#15735)
omahs Sep 8, 2022
c2218ad
Continue rm enzyme, unit tests. (#15730)
tmashuang Sep 8, 2022
82cf63f
Ensuring Blockies Icon is used in nickname popup when enabled (#15768)
ryanml Sep 8, 2022
216f766
Make cancel transaction idempotent (#15675)
jpuri Sep 9, 2022
9cf401b
Expand error details before taking screenshot (#15779)
seaona Sep 9, 2022
e8232aa
Only render tooltip component if swap network is disabled (#15733)
darkwing Sep 9, 2022
34e2faa
Replace Rinkeby with Goerli for dev testing (#15781)
dan437 Sep 12, 2022
e7c72bc
Fixing lint issues (#15782)
georgewrmarshall Sep 12, 2022
45916b9
fix issue where signing a message sometimes doesn't allow you to scro…
tayvano Sep 12, 2022
398b93c
[FLASK] Fix crash with certain permissions on the snap settings page …
FrederikBolding Sep 12, 2022
7aa2a8a
Replace web3js package with ethersjs package (#15386)
amerkadicE Sep 12, 2022
ea947ed
Resolve inconsistency between browsers (#15800)
Gudahtt Sep 12, 2022
6cd18ea
[FLASK] Fix crash when uninstalling snap (#15799)
FrederikBolding Sep 13, 2022
0b1744d
Make createSpeedUpTransaction action idempotent (#15688)
jpuri Sep 13, 2022
dcfe80c
Add entry point for metalabs dapp into metamask home page (#15407)
meppsilon Sep 13, 2022
4483ed5
Update token detection whats new message: token detection is off by d…
danjm Sep 13, 2022
a08de88
Update whats new dates (#15804)
danjm Sep 13, 2022
d322c89
Updating Chromedriver to the last version (#15798)
seaona Sep 13, 2022
93c609b
Update reset.scss to revive <b> element font-weight (#15784)
digiwand Sep 13, 2022
99761b5
MV3: Migrate permissions (#15777)
digiwand Sep 13, 2022
8391949
Bump @metamask/auto-changelog from 2.6.0 to 2.6.1 (#15001)
dependabot[bot] Sep 13, 2022
453340d
Show 3box deprecation message in whats new (#15763)
segun Sep 13, 2022
d3c7b9f
MV3: contentscript.js - re-activate streams when Service Worker termi…
digiwand Sep 13, 2022
0b9424a
Properly handle JSON errors when restoring data in advanced settings …
danjm Sep 14, 2022
506d1e7
[e2e] Refactor send-hex-address spec using Ganache seeder (#15604)
seaona Sep 14, 2022
c87980b
migrate network constants to typescript (#15610)
brad-decker Sep 14, 2022
fc65ca6
Ensure approval warning for setApprovalForAll is not shown when revok…
danjm Sep 14, 2022
487440f
Hide DetectedTokenAggregators if token.aggregators lists are empty (#…
danjm Sep 14, 2022
ba3a584
Move updateBackgroundConnection call in ui/index.js to before the act…
danjm Sep 14, 2022
b359844
Ensure that 'tokens found in this account' message is only shown when…
danjm Sep 14, 2022
17855b5
Ensure chainId is defined in validateRecipientUserInput in send-duck …
danjm Sep 14, 2022
e5da675
Ensure network info popup only displays on networks where the user ha…
danjm Sep 14, 2022
eb176c7
Case insensitive modifier for Firefox (#15831)
PeterYinusa Sep 14, 2022
7b04bf8
Adding Sepolia as a default test network (#15787)
ryanml Sep 14, 2022
0026966
Skip searching 4byte directory if we don't have a full 4 bytes of dat…
adonesky1 Sep 14, 2022
d0adb5f
Update MV3 CSP to fix build (#15833)
darkwing Sep 14, 2022
3a25733
Add notification about the merge (#15846)
danjm Sep 15, 2022
32aa47d
Displaying the aggregators from tokenList in Detected token popover (…
NiranjanaBinoy Sep 15, 2022
b802e25
Fix sepolia network id (#15847)
danjm Sep 15, 2022
929a1a0
Update `eth-json-rpc-infura` (#15845)
Gudahtt Sep 15, 2022
5bfc2f3
Fix portfolio URL configuration (#15849)
Gudahtt Sep 16, 2022
d91eabf
Add initial provider API tests for Infura client (#15556)
mcmire Sep 16, 2022
441e894
Graph improvements (#15793)
jpuri Sep 16, 2022
f465089
Make environment variables higher precedence than config (#15858)
Gudahtt Sep 16, 2022
c2b7690
Make metrics related actions idempotent (#15737)
jpuri Sep 16, 2022
6e13524
Remove related UI code from the app dir (#15384)
filipsekulic Sep 16, 2022
789c06a
Correct when setApprovalForAll message is shown (#15863)
danjm Sep 16, 2022
dd660f8
Add test insights on circle ci for test-unit job (#15839)
seaona Sep 19, 2022
075a6fb
Properly configure ethereumjs Common for Sepolia network (#15871)
danjm Sep 19, 2022
1b56318
Ability to buy tokens with Coinbase Pay and Transak (#15551)
nikoferro Sep 19, 2022
9e1cbe2
Get ether from faucet fix message (#15875)
seaona Sep 19, 2022
b5049a1
Ensure New Network Info popup doesn't show when switching to testnets…
danjm Sep 19, 2022
c8935c6
Fixing hex address display bug when editing transaction (#15873)
ryanml Sep 19, 2022
d38ba20
Don't display DetectedTokenSelectionPopover if there are no detected …
danjm Sep 19, 2022
17b7b72
Ensure the seed phrase reminder is displayed with precedence over the…
danjm Sep 19, 2022
5b91744
Revert "Ensure that 'tokens found in this account' message is only sh…
danjm Sep 19, 2022
c0065b4
Bump @metamask/etherscan-link from 2.1.0 to 2.2.0 (#15881)
ryanml Sep 19, 2022
8fcdea7
updating the copy and title on token dettection toggle in advanced se…
NiranjanaBinoy Sep 19, 2022
d054175
[FLASK] Fix an issue with installing and updating snaps with 0 permis…
FrederikBolding Sep 20, 2022
8b56300
[German] Fix some spelling errors and messages that don't make sense …
protortyp Sep 20, 2022
c9dc59e
[FLASK] Snaps Insight (#15814)
GuillaumeRx Sep 20, 2022
abfa990
Fixing ENS input styling for confusable chars (#15893)
ryanml Sep 20, 2022
e69e207
Adding Icon component and removing BaseIcon component (#15772)
georgewrmarshall Sep 20, 2022
e422c6b
Show correct base asset in Decrypt Request view (#15885)
ryanml Sep 20, 2022
d98c094
Fixing PR display links in the changelog (#15883)
ryanml Sep 20, 2022
10915d3
Merge remote-tracking branch 'origin/develop' into master-sync
ryanml Sep 20, 2022
6d9355c
Merge pull request #15908 from MetaMask/master-sync
Gudahtt Sep 21, 2022
2ba6e68
NFT Approval and SetApprovalForAll confirmation screens header update…
filipsekulic Sep 21, 2022
12c0a8d
Fix display of edit button on confirm screen when sending tx with dat…
danjm Sep 21, 2022
da0e2f9
Continue converting tests from enzyme to @testing-library/react. (#15…
tmashuang Sep 21, 2022
2623fed
Using NETWORK_TYPES constants where applicable (Refactor) (#15930)
ryanml Sep 21, 2022
1370f19
Portfolio site e2e (#15921)
PeterYinusa Sep 22, 2022
6638e53
[i18n] Fix typo in locale key (#13186)
bengeois Sep 22, 2022
d01eeaf
Fix broken error message UI on incorrect private key format (#15940)
ryanml Sep 22, 2022
d3bd5b0
Bump keystone package versions to latest (#15878)
adonesky1 Sep 22, 2022
4eb8e50
[FLASK] `[email protected]` (#15889)
FrederikBolding Sep 23, 2022
9efdf87
Fix typo in README (#15950)
brendankirby Sep 23, 2022
aff2d82
Continue converting tests from enzyme to @testing-library/react. (#15…
tmashuang Sep 23, 2022
7ea31b3
Add documentation on how to fork ganache for local testing (#15944)
danjm Sep 23, 2022
c83a307
update email in license (#15948)
brad-decker Sep 23, 2022
d468c9d
Dark Mode: Elevate the theme dropdown from experimental to regular se…
darkwing Sep 23, 2022
d520fc5
Update crowdin.yml (#15910)
Andrulko Sep 23, 2022
3f801e3
Ability to buy tokens with Moonpay (#15924)
nikoferro Sep 23, 2022
2754f7e
Add changes to support blocking Snaps by source shasum (#15830)
david0xd Sep 23, 2022
e74614d
Fixes double account creation when using keyboard controls (#15077)
ryanml Sep 23, 2022
c836f2f
Replacing setTimeout in auto-lock time limit with chrome alarm (#15931)
NiranjanaBinoy Sep 24, 2022
e4798b2
Use "gasEstimateWithRefund" instead of "gasEstimate" (#15968)
dan437 Sep 26, 2022
24a3156
Use modern stylesheet selector (#15962)
darkwing Sep 26, 2022
d9dda82
Send message to inpage when extension revives (#15958)
jpuri Sep 27, 2022
2a5922d
Optimize account name check (#15985)
darkwing Sep 27, 2022
362ef79
Fix/remove mistake script (#15983)
georgewrmarshall Sep 27, 2022
0bbcbe6
Continue converting tests from enzyme to @testing-library/react (#15956)
tmashuang Sep 27, 2022
bec2d0c
New Crowdin translations by Github Action (#15411)
metamaskbot Sep 27, 2022
1295fab
[E2E]: Revoke nft approval (#15995)
PeterYinusa Sep 27, 2022
a64f82e
Avoid using indexes to reference first item in array (#15732)
darkwing Sep 27, 2022
a8189ba
MV3: catch "Duplicate script ID 'inpage'" error (#15973)
digiwand Sep 27, 2022
34fe201
bump smart-transactions-controller verion (#15818)
adonesky1 Sep 27, 2022
67eb2f9
Fix permissions in MV3 manifest (#15980)
jpuri Sep 27, 2022
8622e61
Create snaps E2E test for update function (#15979)
bowensanders Sep 27, 2022
9e86597
Simplfy _buildEventFragmentProperties so that necessary objects and d…
danjm Sep 28, 2022
5d9246d
Add segment and portfolio urls on build:test:mv3 script (#15943)
seaona Sep 28, 2022
a223212
Fixing icon paths to work in github pages (#16005)
georgewrmarshall Sep 28, 2022
b0baa89
Bump @metamask/contract-metadata from 1.35.0 to 1.36.0 (#15597)
dependabot[bot] Sep 28, 2022
18ca016
Ability to buy tokens with Wyre (#15992)
nikoferro Sep 28, 2022
19a88f7
Continue converting tests from enzyme to @testing-library/react (#15996)
tmashuang Sep 28, 2022
947f529
Fix `vm2` audit failure (#16025)
FrederikBolding Sep 28, 2022
8e736e3
Created a custom spending cap component (#15522)
VSaric Sep 28, 2022
99808eb
remove customize-gas modal and related code that is no longer used (#…
brad-decker Sep 28, 2022
0bc1eea
Deprecating the Rinkeby, Ropsten, and Kovan test networks (#15989)
ryanml Sep 29, 2022
7b94ac5
Fix 3box replacement for MV3 (#15851)
segun Sep 29, 2022
21c9fe2
Change endpoint to always use latest build of the phishing warning (#…
409H Sep 29, 2022
47f1363
Ability to buy native currency and tokens on Optimism and Arbitrum, u…
nikoferro Sep 29, 2022
455735c
add icons auto size (#16027)
garrettbear Sep 29, 2022
f3465c9
Deprecate snake case from feature flags (#15994)
nikoferro Sep 29, 2022
d7a812f
Add remaining tests for createInfuraClient (#15717)
mcmire Sep 29, 2022
6a0dcf4
Fix `@hapi/hoek` audit failure (#16034)
FrederikBolding Sep 30, 2022
300cb6e
Revert "Fix permissions in MV3 manifest (#15980)" (#16021)
jpuri Sep 30, 2022
10d6cfd
Merge remote-tracking branch 'origin/develop' into master-sync
ryanml Oct 3, 2022
6d86914
Merge fixes
ryanml Oct 3, 2022
d830071
Merge pull request #16054 from MetaMask/master-sync
ryanml Oct 3, 2022
5b042e0
20.21.0 RC cut
seaona Sep 29, 2022
efd1c4d
Hardware wallet copy updates, referral and tutorial buttons (#14738)
AlexJupiter Oct 4, 2022
b69dcdf
Fix: show whats new to users who created, not imported, a new wallet,…
danjm Oct 4, 2022
fd3fa4d
Fix typo in French translation for "removeAccount" (#16095)
ryanml Oct 5, 2022
737fbee
patch ethereumjs-util stripHexPrefix (#16094)
adonesky1 Oct 7, 2022
dd1b5cd
Use current version of the phishing warning page (#16123)
Gudahtt Oct 7, 2022
e774947
16083: Fix deposit eth popover layout (#16100)
garrettbear Oct 12, 2022
ebf1ab2
Sort add network list alphabetically (#16089)
danjm Oct 14, 2022
17b664b
10.21.0 Changelog (#16106)
seaona Oct 14, 2022
742fc1a
Ensure that portfolio tooltip does not show if new custom network pop…
danjm Oct 14, 2022
3055747
[FLASK] `[email protected]` (#16069)
FrederikBolding Oct 7, 2022
e7007ff
Update `eth-json-rpc-middleware` to v9.0.1 (#16096)
Gudahtt Oct 10, 2022
37d53fd
Update provider (#16131)
jpuri Oct 11, 2022
88e3367
[FLASK] `[email protected]` (#16161)
FrederikBolding Oct 11, 2022
5fa841a
[FLASK] Fix wrong action name for `wallet_getSnaps` hook (#16125)
FrederikBolding Oct 7, 2022
c6be223
Fix inputs that should allow decimals (#16254)
danjm Oct 25, 2022
6b2bfd0
Updating controller dependency (#16033)
jpuri Oct 25, 2022
e8c43ff
Fixing Identicon import paths (#16101)
ryanml Oct 6, 2022
9ed708c
Remove ETH badge from NetworkAccountBalanceHeader when on non-ETH net…
ryanml Oct 25, 2022
de0e87e
Fixing forgot password action after wallet creation (#16156)
ryanml Oct 11, 2022
005d2af
Enable "Add Popular Network" feature by default for all users (#16172)
ryanml Oct 27, 2022
b6d5afb
Changelog last updates with cherry-picked PRs (#16287)
seaona Oct 27, 2022
2bbc009
[e2e] Fix Dapp interactions flaky test on chrome (#16282)
seaona Oct 26, 2022
7404c6b
Remove empty files
seaona Oct 27, 2022
661b2bc
Remove duplicate RC entry 10.20.0
seaona Oct 27, 2022
f75672e
lavamoat
seaona Oct 27, 2022
7c90fe5
Update Jest config to avoid transpiling dependencies (#16068)
Mrtenz Oct 4, 2022
3374718
lavamoat
seaona Oct 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,8 @@ jobs:
- .nyc_output
- coverage
- jest-coverage
- store_test_results:
path: test/test-results/junit.xml
test-unit-global:
executor: node-browsers
steps:
Expand Down
20 changes: 8 additions & 12 deletions .circleci/scripts/bundle-stats-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,21 @@ git config --global user.name "MetaMask Bot"

git clone [email protected]:MetaMask/extension_bundlesize_stats.git temp

if [[ -f "temp/stats/bundle_size_stats-${CIRCLE_SHA1}.json" ]]
then
printf 'Bundle size of the commit is already recorded'
cd ..
rm -rf temp
exit 0
fi

cp -R test-artifacts/chrome/mv3/bundle_size_stats.json temp/stats
{
echo " '${CIRCLE_SHA1}': ";
cat test-artifacts/chrome/mv3/bundle_size_stats.json;
echo ", ";
} >> temp/stats/bundle_size_data.temp.js

echo " bundle_size_stats-${CIRCLE_SHA1}.json" >> temp/stats/fileList.txt
cp temp/stats/bundle_size_data.temp.js temp/stats/bundle_size_data.js

mv temp/stats/bundle_size_stats.json "temp/stats/bundle_size_stats-${CIRCLE_SHA1}.json"
echo " }" >> temp/stats/bundle_size_data.js

cd temp

git add .

git commit --message "Bundle size at commit: ${CIRCLE_SHA1}"
git commit --message "Adding bundle size at commit: ${CIRCLE_SHA1}"

repo_slug="$CIRCLE_PROJECT_USERNAME/extension_bundlesize_stats"
git push "https://$GITHUB_TOKEN_USER:[email protected]/$repo_slug" main
Expand Down
4 changes: 2 additions & 2 deletions .circleci/scripts/chrome-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ set -u
set -o pipefail

# To get the latest version, see <https://www.ubuntuupdates.org/ppa/google_chrome?dist=stable>
CHROME_VERSION='103.0.5060.53-1'
CHROME_VERSION='105.0.5195.102-1'
CHROME_BINARY="google-chrome-stable_${CHROME_VERSION}_amd64.deb"
CHROME_BINARY_URL="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/${CHROME_BINARY}"

# To retrieve this checksum, run the `wget` and `shasum` commands below
CHROME_BINARY_SHA512SUM='36f4e79f46cb71c1431dccf1489f5f8e89d35204a717a4618c7f6f638123ddc2b37bd5cbd00498be8f84c7713149f2faa447cb6da3518be1cb9703e99d110e1a'
CHROME_BINARY_SHA512SUM='3a1f2267ae009424ee8c623c3f78760d969dc1f3acb490e103e667d11e52cf0d955f201aeb3892dd41f33e68625af77ca5a20244b5be718f794eccb07a4c0413'

wget -O "${CHROME_BINARY}" -t 5 "${CHROME_BINARY_URL}"

Expand Down
46 changes: 36 additions & 10 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
const path = require('path');

const { version: reactVersion } = require('react/package.json');

module.exports = {
root: true,
// Suggested addition from the storybook 6.5 update
extends: ['plugin:storybook/recommended'],
// Ignore files which are also in .prettierignore
ignorePatterns: [
'app/vendor/**',
Expand All @@ -12,6 +15,7 @@ module.exports = {
'development/ts-migration-dashboard/build/**',
'dist/**/*',
'node_modules/**/*',
'jest-coverage/**/*',
],
overrides: [
/**
Expand All @@ -22,7 +26,6 @@ module.exports = {
* because we do not allow a file to use two different styles for specifying
* imports and exports (however theoretically possible it may be).
*/

{
/**
* Modules (CommonJS module syntax)
Expand Down Expand Up @@ -128,11 +131,9 @@ module.exports = {
'import/namespace': 'off',
'import/default': 'off',
'import/no-named-as-default-member': 'off',

// Disabled due to incompatibility with Record<string, unknown>.
// See: <https://github.com/Microsoft/TypeScript/issues/15300#issuecomment-702872440>
'@typescript-eslint/consistent-type-definitions': 'off',

// Modified to include the 'ignoreRestSiblings' option.
// TODO: Migrate this rule change back into `@metamask/eslint-config`
'@typescript-eslint/no-unused-vars': [
Expand Down Expand Up @@ -165,7 +166,6 @@ module.exports = {
sourceType: 'script',
},
},

/**
* == Everything else ==
*
Expand Down Expand Up @@ -198,7 +198,10 @@ module.exports = {
'react/jsx-boolean-value': 'error',
'react/jsx-curly-brace-presence': [
'error',
{ props: 'never', children: 'never' },
{
props: 'never',
children: 'never',
},
],
'react/no-deprecated': 'error',
'react/default-props-match-prop-types': 'error',
Expand Down Expand Up @@ -256,16 +259,18 @@ module.exports = {
files: [
'**/__snapshots__/*.snap',
'app/scripts/controllers/network/**/*.test.js',
'app/scripts/controllers/network/provider-api-tests/*.js',
'app/scripts/controllers/permissions/**/*.test.js',
'app/scripts/lib/**/*.test.js',
'app/scripts/migrations/*.test.js',
'app/scripts/platforms/*.test.js',
'development/**/*.test.js',
'shared/**/*.test.js',
'test/jest/*.js',
'test/helpers/*.js',
'test/jest/*.js',
'ui/**/*.test.js',
'ui/__mocks__/*.js',
'shared/lib/error-utils.test.js',
],
extends: ['@metamask/eslint-config-jest'],
parserOptions: {
Expand All @@ -276,23 +281,33 @@ module.exports = {
'import/named': 'off',
'jest/no-large-snapshots': [
'error',
{ maxSize: 50, inlineMaxSize: 50 },
{
maxSize: 50,
inlineMaxSize: 50,
},
],
'jest/no-restricted-matchers': 'off',

/**
* jest/prefer-to-be is a new rule that was disabled to reduce churn
* when upgrading eslint. It should be considered for use and enabled
* in a future PR if agreeable.
*/
'jest/prefer-to-be': 'off',

/**
* jest/lowercase-name was renamed to jest/prefer-lowercase-title this
* change was made to essentially retain the same state as the original
* eslint-config-jest until it is updated. At which point the following
* two lines can be deleted.
*/
'jest/lowercase-name': 'off',
'jest/prefer-lowercase-title': ['error', { ignore: ['describe'] }],
'jest/prefer-lowercase-title': [
'error',
{
ignore: ['describe'],
},
],
},
},
/**
Expand All @@ -301,7 +316,12 @@ module.exports = {
{
files: ['app/scripts/migrations/*.js', '**/*.stories.js'],
rules: {
'import/no-anonymous-default-export': ['error', { allowObject: true }],
'import/no-anonymous-default-export': [
'error',
{
allowObject: true,
},
],
},
},
/**
Expand Down Expand Up @@ -347,7 +367,13 @@ module.exports = {
{
files: ['ui/pages/settings/*.js'],
rules: {
'sort-keys': ['error', 'asc', { natural: true }],
'sort-keys': [
'error',
'asc',
{
natural: true,
},
],
},
},
],
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ notes.txt

# TypeScript
tsout/

# Test results
test-results/
1 change: 1 addition & 0 deletions .mocharc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
'./app/scripts/platforms/*.test.js',
'./app/scripts/controllers/network/**/*.test.js',
'./app/scripts/controllers/permissions/**/*.test.js',
'./app/scripts/constants/error-utils.test.js',
],
recursive: true,
require: ['test/env.js', 'test/setup.js'],
Expand Down
8 changes: 6 additions & 2 deletions .storybook/__mocks__/webextension-polyfill.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module.exports = {
runtime: {},
};
runtime: {
getManifest: () => {
return { manifest_version: 2 };
}
},
};

15 changes: 14 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ const path = require('path');

const CopyWebpackPlugin = require('copy-webpack-plugin');

const { generateIconNames } = require('../development/generate-icon-names');

module.exports = {
stories: [
'../ui/**/*.stories.js',
Expand All @@ -16,14 +18,25 @@ module.exports = {
'./i18n-party-addon/register.js',
'storybook-dark-mode',
],
staticDirs: ['../app', './images'],
// Uses babel.config.js settings and prevents "Missing class properties transform" error
babel: async (options) => ({ overrides: options.overrides }),
// Sets env variables https://storybook.js.org/docs/react/configure/environment-variables/
env: async (config) => {
return {
...config,
// Creates the icon names environment variable for the component-library/icon/icon.js component
ICON_NAMES: await generateIconNames(),
};
},
webpackFinal: async (config) => {
config.context = process.cwd();
config.node = {
__filename: true,
};
config.resolve.alias['webextension-polyfill'] = require.resolve('./__mocks__/webextension-polyfill.js')
config.resolve.alias['webextension-polyfill'] = require.resolve(
'./__mocks__/webextension-polyfill.js',
);
config.module.strictExportPresence = true;
config.module.rules.push({
test: /\.scss$/,
Expand Down
60 changes: 56 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,57 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [10.21.0]
### Added
- Add functionality for buying native currency and tokens on Optimism and Arbitrum, using Transak ([#16031](https://github.com/MetaMask/metamask-extension/pull/16031))
- Add functionality for buying tokens with Wyre ([#15992](https://github.com/MetaMask/metamask-extension/pull/15992))
- Add functionality for buying tokens with Moonpay ([#15924](https://github.com/MetaMask/metamask-extension/pull/15924))
- Add functionality for buying tokens with Coinbase Pay and Transak ([#15551](https://github.com/MetaMask/metamask-extension/pull/15551))
- Add new translations for DE, EL, ES, FR, HI, ID, JA, KO, PT, RU, TL TR, VI and ZH_CN ([#15411](https://github.com/MetaMask/metamask-extension/pull/15411))
- Add Hardware wallet Buy and Tutorial buttons and update copies ([#14738](https://github.com/MetaMask/metamask-extension/pull/14738))
- [FLASK] Add support for blocking Snaps by source shasum ([#15830](https://github.com/MetaMask/metamask-extension/pull/15830))
- [FLASK] Add transaction insights via Snaps ([#15814](https://github.com/MetaMask/metamask-extension/pull/15814))

### Changed
- Dark Mode: elevate the Theme functionality from Experimental to General Settings ([#15865](https://github.com/MetaMask/metamask-extension/pull/15865))
- Update Arbitrum symbol from `AETH` to `ETH` ([#15747](https://github.com/MetaMask/metamask-extension/pull/15747))
- Update warning dialog copy on SetApprovalForAll Confirmation page ([#15744](https://github.com/MetaMask/metamask-extension/pull/15744))
- Update header display on NFT Approval and SetApprovalForAll Confirmation pages ([#15727](https://github.com/MetaMask/metamask-extension/pull/15727))
- Bump `@metamask/contract-metadata` from `1.35.0` to `1.36.0` ([#15597](https://github.com/MetaMask/metamask-extension/pull/15597))
- Add tokens: ZKP, GTON, PRVG, XCHF, XHT, OGV, veOFV, wOUSD and SUSHI
- Fix SVG icons for sETH and sUSD tokens
- Add the top NFT contracts on Opensea
- Enable Add Popular Networks by default for all users ([#16172](https://github.com/MetaMask/metamask-extension/pull/16172))
- Update `@metamask/controllers` to v31.2.0 ([#16033](https://github.com/MetaMask/metamask-extension/pull/16033))
- Swaps: replace Rinkeby with Goerli for performing swaps on a testnet ([#15781](https://github.com/MetaMask/metamask-extension/pull/15781))
- Swaps: only render tooltip component if swap network is disabled ([#15733](https://github.com/MetaMask/metamask-extension/pull/15733))
- Swaps: use `gasEstimateWithRefund` instead of `gasEstimate` for more precise estimations ([#15968](https://github.com/MetaMask/metamask-extension/pull/15968))
- Swaps: improve Build Quote page ([#15758](https://github.com/MetaMask/metamask-extension/pull/15758))
- Preserve search query for the `Swap from` and `Swap to` form fields
- Update placeholder text on `Swap to` and `Swap from` search fields
- Update copy on slippage tolerance tooltip
- [FLASK] `Add snap_getBip32PublicKey` RPC method ([#15889](https://github.com/MetaMask/metamask-extension/pull/15889))
- **[FLASK] BREAKING:** Remove deprecated snap_getBip44Entropy_* method ([#15889](https://github.com/MetaMask/metamask-extension/pull/15889))
- [FLASK] Miscellaneous fixes to the Snaps platform ([#15889](https://github.com/MetaMask/metamask-extension/pull/15889))

### Fixed
- Fix double account creation when using keyboard controls on New Account page ([#15077](https://github.com/MetaMask/metamask-extension/pull/15077))
- Fix error message getting cut when introducing wrong private key format on Import Account page ([#15940](https://github.com/MetaMask/metamask-extension/pull/15940))
- Fix edit button not being displayed when sending tx with hex data to a contract on Confirm tx page ([#15812](https://github.com/MetaMask/metamask-extension/pull/15812))
- Fix incorrect balance asset on Encrypt and Decrypt Request pages ([#15885](https://github.com/MetaMask/metamask-extension/pull/15885))
- Fix spelling errors and improve grammar for German translation ([#15592](https://github.com/MetaMask/metamask-extension/pull/15592))
- Fix typos for French translation ([#15735](https://github.com/MetaMask/metamask-extension/pull/15735))
- Fix incorrect identicon type for Account, by ensuring Blockies is displayed everywhere when enabled instead of Jazzicon ([#15768](https://github.com/MetaMask/metamask-extension/pull/15768))
- Fix query verification for signatures, by ensuring we skip searching 4byte directory if we don't have a full 4 bytes of data ([#15473](https://github.com/MetaMask/metamask-extension/pull/15473))
- Fix address resolution to Account name, when editing a tx instead of displaying the hex address ([#15873](https://github.com/MetaMask/metamask-extension/pull/15873))
- Fix "Get ether from faucet" message, by including the end of the sentence and a full stop ([#15875](https://github.com/MetaMask/metamask-extension/pull/15875))
- Fix font weight of the `<b>` element, by restoring the `b` style ([#15784](https://github.com/MetaMask/metamask-extension/pull/15784))
- Fix ETH badge being displayed to networks where ETH is not the primary currency ([#16102](https://github.com/MetaMask/metamask-extension/pull/16102))
- Fix overlapping Portfolio tooltip with Network popup, when a custom network is added ([#16090](https://github.com/MetaMask/metamask-extension/pull/16090))
- Fix typo in French translation for "removeAccount" ([#16095](https://github.com/MetaMask/metamask-extension/pull/16095))
- Fix What's New notification not displayed to users who created a new wallet ([#16042](https://github.com/MetaMask/metamask-extension/pull/16042))
- [FLASK] Fix an issue with installing snaps that request the `eth_accounts` permission ([#16161](https://github.com/MetaMask/metamask-extension/pull/16161))

## [10.20.0]
### Changed
- Deprecate Rinkeby, Ropsten and Kovan test networks and define Goerli as the default network in test mode ([#15989](https://github.com/MetaMask/metamask-extension/pull/15989))
Expand Down Expand Up @@ -698,7 +749,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#12230](https://github.com/MetaMask/metamask-extension/pull/12230): Fix gas control flicker on send screen when switching between EIP-1559 networks
- [#12186](https://github.com/MetaMask/metamask-extension/pull/12186): Fix grammatical issue with "Not connected to this site" message
- [#12381](https://github.com/MetaMask/metamask-extension/pull/12381): Fix width and padding of the hide token modal while in the popup view
- [#12339](https://github.com/MetaMask/metamask-extension/pull/11996): Fix 'BigNumber' app error when '0x' is supplied as the transaction value
- [#11996](https://github.com/MetaMask/metamask-extension/pull/11996): Fix 'BigNumber' app error when '0x' is supplied as the transaction value
- [#12339](https://github.com/MetaMask/metamask-extension/pull/12339): Correctly notify the inpage provider of current selected account on "unlock" events
- [#12405](https://github.com/MetaMask/metamask-extension/pull/12405): Fix allowance issue with WETH -> ETH Swaps

Expand Down Expand Up @@ -1759,7 +1810,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [7.0.0] - 2019-08-07
### Uncategorized
- Capitalized speed up label to match rest of UI ([#6828](https://github.com/MetaMask/metamask-extension/pull/6828))
- Allows skipping of seed phrase challenge during onboarding, and completing it at a later time ([#6874](https://github.com/MetaMask/metamask-extension/pull/6928))
- Allows skipping of seed phrase challenge during onboarding, and completing it at a later time ([#6874](https://github.com/MetaMask/metamask-extension/pull/6874))
- Prevent opening of asset dropdown if no tokens in account ([#6900](https://github.com/MetaMask/metamask-extension/pull/6900))
- Set privacy mode as default ([#6904](https://github.com/MetaMask/metamask-extension/pull/6904))
- Adds Address Book feature ([#6914](https://github.com/MetaMask/metamask-extension/pull/6914))
Expand Down Expand Up @@ -1945,7 +1996,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [5.3.5] - 2019-02-04
### Uncategorized
- Privacy mode fixes ([#6084](https://github.com/MetaMask/metamask-extension/pull/6087))
- Privacy mode fixes ([#6087](https://github.com/MetaMask/metamask-extension/pull/6087))

## [5.3.4] - 2019-01-31
### Uncategorized
Expand Down Expand Up @@ -3198,7 +3249,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Uncategorized
- Added the ability to restore accounts from seed words.

[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v10.20.0...HEAD
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v10.21.0...HEAD
[10.21.0]: https://github.com/MetaMask/metamask-extension/compare/v10.20.0...v10.21.0
[10.20.0]: https://github.com/MetaMask/metamask-extension/compare/v10.19.0...v10.20.0
[10.19.0]: https://github.com/MetaMask/metamask-extension/compare/v10.18.4...v10.19.0
[10.18.4]: https://github.com/MetaMask/metamask-extension/compare/v10.18.3...v10.18.4
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ You are granted a non-exclusive, non-transferable, non-sublicensable license to

You will not use any trade mark, service mark, trade name, logo of ConsenSys or any other company or organization in a way that is likely or intended to cause confusion about the owner or authorized user of such marks, names or logos.

If you have any questions, comments or interest in pursuing any other use cases, please reach out to us at metamask.[email protected].
If you have any questions, comments or interest in pursuing any other use cases, please reach out to us at communications@metamask.io.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Whenever you change dependencies (adding, removing, or updating, either in `pack

## Architecture

- [Visual of the controller heirarchy and dependencies as of summer 2022.](https://gist.github.com/rekmarks/8dba6306695dcd44967cce4b6a94ae33)
- [Visual of the controller hierarchy and dependencies as of summer 2022.](https://gist.github.com/rekmarks/8dba6306695dcd44967cce4b6a94ae33)
- [Visual of the entire codebase.](https://mango-dune-07a8b7110.1.azurestaticapps.net/?repo=metamask%2Fmetamask-extension)

[![Architecture Diagram](./docs/architecture.png)][1]
Expand Down
Loading