Skip to content

Commit 2614558

Browse files
committed
Merge branch 'main' into feat/atomic-batch-transactions
2 parents a0ecde4 + 2824aef commit 2614558

File tree

88 files changed

+5201
-947
lines changed

Some content is hidden

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

88 files changed

+5201
-947
lines changed

.circleci/config.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ workflows:
159159
requires:
160160
- prep-build-test
161161
- get-changed-files-with-git-diff
162+
- test-api-specs-multichain:
163+
requires:
164+
- prep-build-test-flask
165+
- get-changed-files-with-git-diff
162166
- test-e2e-chrome-multiple-providers:
163167
requires:
164168
- prep-build-test
@@ -703,6 +707,37 @@ jobs:
703707
- store_test_results:
704708
path: test/test-results/e2e
705709

710+
test-api-specs-multichain:
711+
executor: node-browsers-medium-plus
712+
steps:
713+
- run: *shallow-git-clone-and-enable-vnc
714+
- run: sudo corepack enable
715+
- attach_workspace:
716+
at: .
717+
- run:
718+
name: Move test build to dist
719+
command: mv ./dist-test-flask ./dist
720+
- run:
721+
name: Move test zips to builds
722+
command: mv ./builds-test-flask ./builds
723+
- gh/install
724+
- run:
725+
name: test:api-specs-multichain
726+
command: .circleci/scripts/test-run-e2e.sh yarn test:api-specs-multichain
727+
no_output_timeout: 5m
728+
- run:
729+
name: Comment on PR
730+
command: |
731+
if [ -f html-report-multichain/index.html ]; then
732+
gh pr comment "${CIRCLE_PR_NUMBER}" --body ":x: Multichain API Spec Test Failed. View the report [here](https://output.circle-artifacts.com/output/job/${CIRCLE_WORKFLOW_JOB_ID}/artifacts/${CIRCLE_NODE_INDEX}/html-report-multichain/index.html)."
733+
else
734+
echo "Multichain API Spec Report not found!"
735+
fi
736+
when: on_fail
737+
- store_artifacts:
738+
path: html-report-multichain
739+
destination: html-report-multichain
740+
706741
test-api-specs:
707742
executor: node-browsers-medium-plus
708743
steps:

.depcheckrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ ignores:
2323
- '@metamask/forwarder'
2424
- '@metamask/phishing-warning' # statically hosted as part of some e2e tests
2525
- '@metamask/test-dapp'
26+
- '@metamask/test-dapp-multichain'
2627
- '@metamask/design-tokens' # Only imported in index.css
2728
- '@tsconfig/node22' # required dynamically by TS, used in tsconfig.json
2829
- '@sentry/cli' # invoked as `sentry-cli`
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Get release timelines
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
required: true
8+
type: string
9+
description: 'The version of the release'
10+
11+
jobs:
12+
get-release-timelines:
13+
uses: metamask/github-tools/.github/workflows/get-release-timelines.yml@3e0b0204e41b576263b9060945de3b3b9b8c5448
14+
with:
15+
version: ${{ github.event.inputs.version }}
16+
secrets:
17+
RUNWAY_APP_ID: ''
18+
RUNWAY_API_KEY: ''

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,13 @@ lavamoat/**/policy-debug.json
8080
# Attributions
8181
licenseInfos.json
8282

83+
# Branding
84+
/app/images/branding
85+
8386
# API Spec tests
8487
html-report/
88+
html-report-multichain/
8589

86-
/app/images/branding
8790
/changed-files
8891

8992
# UI Integration tests

.yarnrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ npmAuditIgnoreAdvisories:
4949
# was mistakenly originally created to flag all versions as vulnerable
5050
- 1101059
5151

52+
# Issue: axios Requests Vulnerable To Possible SSRF and Credential Leakage via Absolute URL
53+
# URL: https://github.com/advisories/GHSA-jr5f-v2jv-69x6
54+
# We are ignoring this on March 11, 2025 to unblock CI, we will follow with a proper fix or confirmation this does not affect our users
55+
- 1102472
56+
5257
# Temp fix for https://github.com/MetaMask/metamask-extension/pull/16920 for the sake of 11.7.1 hotfix
5358
# This will be removed in this ticket https://github.com/MetaMask/metamask-extension/issues/22299
5459
- 'ts-custom-error (deprecation)'

app/_locales/en/messages.json

Lines changed: 6 additions & 0 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: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build-types/flask/manifest/_base.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
},
1212
"default_title": "MetaMask Flask"
1313
},
14+
"externally_connectable": {
15+
"matches": ["http://*/*", "https://*/*"],
16+
"ids": ["*"]
17+
},
1418
"icons": {
1519
"16": "images/icon-16.png",
1620
"19": "images/icon-19.png",

app/images/MegaETH-logo-testnet.png

129 KB
Loading

app/images/MegaETH-logo-testnet.svg

Lines changed: 0 additions & 44 deletions
This file was deleted.

app/manifest/v2/_barad_dur.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

app/manifest/v3/_barad_dur.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

app/scripts/background.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,10 @@ browser.runtime.onConnectExternal.addListener(async (...args) => {
406406
// Queue up connection attempts here, waiting until after initialization
407407
await isInitialized;
408408
// This is set in `setupController`, which is called as part of initialization
409-
const port = args[0];
410409

411-
if (port.sender.tab?.id && process.env.BARAD_DUR) {
410+
const port = args[0];
411+
const isDappConnecting = port.sender.tab?.id;
412+
if (isDappConnecting && process.env.MULTICHAIN_API) {
412413
connectExternalCaip(...args);
413414
} else {
414415
connectExternalExtension(...args);
@@ -1036,6 +1037,10 @@ export function setupController(
10361037
};
10371038

10381039
connectExternalCaip = async (remotePort) => {
1040+
if (!process.env.MULTICHAIN_API) {
1041+
return;
1042+
}
1043+
10391044
if (metamaskBlockedPorts.includes(remotePort.name)) {
10401045
return;
10411046
}

0 commit comments

Comments
 (0)