Skip to content

Commit 1c9ed70

Browse files
committed
Merge branch 'main' into feat/dynamic-parameters
2 parents 5eeae0b + 6b49708 commit 1c9ed70

File tree

530 files changed

+20186
-4656
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

530 files changed

+20186
-4656
lines changed

.github/workflows/main.yml

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ jobs:
336336
runs-on: ubuntu-latest
337337
timeout-minutes: 30
338338
env:
339+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
339340
INFURA_PROJECT_ID: ${{ secrets.INFURA_PROJECT_ID }}
340341
GOOGLE_PROD_CLIENT_ID: 00000000000
341342
APPLE_PROD_CLIENT_ID: 00000000000
@@ -345,7 +346,8 @@ jobs:
345346
APPLE_EXPERIMENTAL_CLIENT_ID: 00000000000
346347
GOOGLE_FLASK_CLIENT_ID: 00000000000
347348
APPLE_FLASK_CLIENT_ID: 00000000000
348-
349+
outputs:
350+
lavamoat-policy-changed: ${{ steps.lavamoat-policy-changed.outputs.lavamoat-policy-changed }}
349351
steps:
350352
- name: Checkout and setup environment
351353
uses: MetaMask/action-checkout-and-setup@v1
@@ -354,15 +356,47 @@ jobs:
354356
skip-allow-scripts: true
355357
use-yarn-hydrate: true
356358

359+
- name: Download changed-files artifact
360+
if: ${{ env.BRANCH != 'main' }}
361+
id: download-changed-files
362+
continue-on-error: true
363+
uses: actions/download-artifact@v4
364+
with:
365+
name: changed-files
366+
path: ./changed-files/
367+
368+
# if the changed-files artifact does not exist, we get the diff
369+
- run: yarn tsx .github/scripts/git-diff-default-branch.ts
370+
if: ${{ steps.download-changed-files.outcome == 'failure' }}
371+
372+
- name: See if lavamoat policy files have changed
373+
id: lavamoat-policy-changed
374+
run: |
375+
# if 'changed-files/changed-files.json' exists, check if it contains any files named policy.json or policy-override.json
376+
if [ -f "changed-files/changed-files.json" ]; then
377+
if grep -q -e 'policy.json' -e 'policy-override.json' changed-files/changed-files.json; then
378+
echo "Lavamoat policy file changes detected."
379+
echo "lavamoat-policy-changed=true" >> "$GITHUB_OUTPUT"
380+
else
381+
echo "No Lavamoat policy file changes detected."
382+
echo "lavamoat-policy-changed=false" >> "$GITHUB_OUTPUT"
383+
fi
384+
else
385+
echo "Cannot find 'changed-files.json', assuming that Lavamoat policy files have changed."
386+
echo "lavamoat-policy-changed=true" >> "$GITHUB_OUTPUT"
387+
fi
388+
357389
- name: Download artifact 'build-dist-browserify'
390+
if: ${{ steps.lavamoat-policy-changed.outputs.lavamoat-policy-changed == 'true' }}
358391
uses: actions/download-artifact@v4
359392
with:
360393
name: build-dist-browserify
361394

362395
- run: ./.github/scripts/create-lavamoat-viz.sh
396+
if: ${{ steps.lavamoat-policy-changed.outputs.lavamoat-policy-changed == 'true' }}
363397

364398
- name: Upload 'build-viz' to S3
365-
if: ${{ vars.AWS_REGION && vars.AWS_IAM_ROLE && vars.AWS_S3_BUCKET }}
399+
if: ${{ steps.lavamoat-policy-changed.outputs.lavamoat-policy-changed == 'true' && vars.AWS_REGION && vars.AWS_IAM_ROLE && vars.AWS_S3_BUCKET }}
366400
uses: metamask/github-tools/.github/actions/upload-s3@1233659b3850eb84824d7375e2e0c58eb237701d
367401
with:
368402
aws-region: ${{ vars.AWS_REGION }}
@@ -372,6 +406,7 @@ jobs:
372406

373407
publish-prerelease:
374408
name: Publish prerelease
409+
if: ${{ github.event_name != 'merge_group' }} # Skip this job for the Merge Queue
375410
needs:
376411
- build-dist-browserify
377412
- build-dist-mv2-browserify
@@ -390,6 +425,8 @@ jobs:
390425
- build-source-map-explorer
391426
- build-lavamoat-viz
392427
uses: ./.github/workflows/publish-prerelease.yml
428+
with:
429+
lavamoat-policy-changed: ${{ needs.build-lavamoat-viz.outputs.lavamoat-policy-changed == 'true' }}
393430
secrets:
394431
PR_COMMENT_TOKEN: ${{ secrets.PR_COMMENT_TOKEN }}
395432

.github/workflows/publish-prerelease.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
secrets:
66
PR_COMMENT_TOKEN:
77
required: true
8+
inputs:
9+
lavamoat-policy-changed:
10+
description: 'Whether the Lavamoat policy files have changed'
11+
required: true
12+
type: boolean
813

914
jobs:
1015
publish-prerelease:
@@ -25,6 +30,7 @@ jobs:
2530
MERGE_BASE_COMMIT_HASH: '' # placeholder so that we have autocomplete and logs
2631
CLOUDFRONT_REPO_URL: ${{ vars.AWS_CLOUDFRONT_URL }}/${{ github.event.repository.name }}
2732
HOST_URL: ${{ vars.AWS_CLOUDFRONT_URL }}/${{ github.event.repository.name }}/${{ github.run_id }}
33+
LAVAMOAT_POLICY_CHANGED: ${{ inputs.lavamoat-policy-changed }}
2834
steps:
2935
- name: Checkout and setup high risk environment
3036
uses: MetaMask/action-checkout-and-setup@v1

.github/workflows/run-benchmarks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
1515
jobs:
1616
benchmarks:
17+
if: ${{ github.event_name != 'merge_group' }} # Skip this job for the Merge Queue
1718
runs-on: ubuntu-22.04
1819
timeout-minutes: 30
1920
strategy:

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
use-yarn-hydrate: true
7474

7575
- name: test:integration:coverage
76-
run: yarn test:integration:coverage
76+
run: yarn test:integration:coverage --silent
7777

7878
- name: Rename coverage
7979
run: mv coverage/integration/coverage-final.json coverage/integration/coverage-integration.json

.storybook/test-data.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,7 @@ const state = {
690690
],
691691
accountsAssets: {},
692692
assetsMetadata: {},
693+
allIgnoredAssets: {},
693694
balances: {},
694695
conversionRates: {},
695696
networkConfigurationsByChainId: {},

CHANGELOG.md

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,58 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [13.7.0]
11+
12+
### Added
13+
14+
- Fix Transaction Shield membership banner on light mode (#37162)
15+
- Cached last used subscription payment method (& token), so that user won't need to re-select on navigations. (#37144)
16+
- Return tx hashes asap from the submitBatch hook (#37113)
17+
- Show wallet name in bridge quote recipient field (#37083)
18+
- Adds Billing Start Date in shield-subscription confirmation screen. (#37103)
19+
- Handle crypto approval in shield settings update payment method (#37057)
20+
- Update shield-controller to `v0.4.0`. (#37071)
21+
- Use SSE to stream swap quotes (#36481)
22+
- Adds network and native token logos for Injective network. (#36923)
23+
- Add `auxiliaryFunds` + `requiredAssets` support defined under [ERC-7682](https://eips.ethereum.org/EIPS/eip-7682) (#36061)
24+
- Add bitcoin ff to main build (#36940)
25+
- Improves user experience in permission confirmation dialogs. (#36490)
26+
- Adapted the payload of request `signRewardsMessage` for improved performance (#36921)
27+
(https://github.com/MetaMask/snap-solana-wallet/pull/554)
28+
Improved speed when looking up the state for accounts
29+
by id (https://github.com/MetaMask/snap-solana-wallet/pull/550)
30+
Fixed a serialization issue causing the snap to try
31+
rendering bigints
32+
(https://github.com/MetaMask/snap-solana-wallet/pull/551)
33+
Fixed incorrect token icon URL building
34+
(https://github.com/MetaMask/snap-solana-wallet/pull/548)
35+
Fixed the send flow to support token account recipients
36+
(https://github.com/MetaMask/snap-solana-wallet/pull/547)
37+
- Enables watch only accounts on experimental builds (#37051)
38+
39+
### Fixed
40+
41+
- Toast avatar icon (#37124)
42+
- Shield subscription default payment method crypto if available (#37101)
43+
- Fix a bug when multiple confirmation exist but navigation fails to when approving (#36990)
44+
- Fix coverage status not showing (#37097)
45+
- Fix recipient icon when recipient is ENS domain (#37043)
46+
- Fixed a bug where the wallet would not prompt the user for unlock and would silently drop `personal_sign` requests when the (#36963)
47+
wallet was locked and the user was opted into MetaMetrics
48+
- Prevent unresponsive UI in the case where the user has more than 64MB of state; the trade off is that we now allow state (#35308)
49+
size to increase until the memory the browser has allotted for the
50+
extension process runs out (and crashes).
51+
- Fixed missing `Bearer` in the shield-gateway proxy Authorization Header. (#36985)
52+
- Remove unneccesary callback and dependencies (#36974)
53+
- Fixed a bug that was causing the token list to show "No conversion rate available" once the user connects to testnet from a (#36685)
54+
dapp.
55+
- Improves gator permissions page loading performance with cache-first strategy. (#36833)
56+
- Removes extra transactions call to improve performance (#36968)
57+
- Prevents quick reconnection when websocket connection is misbehaving (#37118)
58+
- Fixes the incorrect USDC address for SEI (#37221)
59+
- Only triggers onActive and onInactive Snap lifecycle hooks when client is unlocked (#37222)
60+
- Fixes a bug where the Authentication API was called infinitely in useCarouselManagement (#37334)
61+
1062
## [13.6.0]
1163

1264
### Added
@@ -957,7 +1009,8 @@ authorized by the user.` error until the user fully revoked dapp
9571009
- This changelog was split off with 12.22.0
9581010
- All older changes can be found in [docs/CHANGELOG_older.md](https://github.com/MetaMask/metamask-extension/blob/main/docs/CHANGELOG_older.md)
9591011

960-
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v13.6.0...HEAD
1012+
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v13.7.0...HEAD
1013+
[13.7.0]: https://github.com/MetaMask/metamask-extension/compare/v13.6.0...v13.7.0
9611014
[13.6.0]: https://github.com/MetaMask/metamask-extension/compare/v13.5.0...v13.6.0
9621015
[13.5.0]: https://github.com/MetaMask/metamask-extension/compare/v13.4.3...v13.5.0
9631016
[13.4.3]: https://github.com/MetaMask/metamask-extension/compare/v13.4.2...v13.4.3

app/_locales/en/messages.json

Lines changed: 17 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/_locales/en_GB/messages.json

Lines changed: 17 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)