Skip to content

chore: add @metamask/multichain-network-controller#30309

Closed
gantunesr wants to merge 60 commits intomainfrom
chore/add-mc-network-controller
Closed

chore: add @metamask/multichain-network-controller#30309
gantunesr wants to merge 60 commits intomainfrom
chore/add-mc-network-controller

Conversation

@gantunesr
Copy link
Copy Markdown
Member

@gantunesr gantunesr commented Feb 13, 2025

Description

Adds a new controller to manage non-EVM networks (@metamask/multichain-network-controller).

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/accounts-planning/issues/810

Manual testing steps

  1. Unlock the wallet
  2. Select different network and verify that the behaviour has not changed
  3. Add a new couple of networks and verify that the behaviour has not changed

Screenshots/Recordings

Not applicable

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@metamaskbot metamaskbot added the team-accounts-framework Accounts team label Feb 13, 2025
@gantunesr
Copy link
Copy Markdown
Member Author

@metamaskbot update-policies

@metamaskbot
Copy link
Copy Markdown
Collaborator

Policies updated.
👀 Please review the diff for suspicious new powers.

🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff

@gantunesr gantunesr marked this pull request as ready for review February 17, 2025 11:13
@gantunesr gantunesr requested review from a team as code owners February 17, 2025 11:13
@gantunesr gantunesr requested a review from a team as a code owner February 18, 2025 17:33
},
};

export const MOCK_ACCOUNT_SOLANA_MAINNET: InternalAccount = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about removing the _MAINNET suffix here? This would match the "Bitcoin mainnet" account that has no prefix.

We should probably add it to the MOCK_ACCOUNTS map too?

Copy link
Copy Markdown
Member Author

@gantunesr gantunesr Feb 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the name here 8a4f878. I haven't checked but some tests may break if I add it to MOCK_ACCOUNTS

@gantunesr
Copy link
Copy Markdown
Member Author

@metamaskbot update-policies

@metamaskbot
Copy link
Copy Markdown
Collaborator

Policies updated.
👀 Please review the diff for suspicious new powers.

🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [bfbaeeb]
Page Load Metrics (1852 ± 106 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint41223261779382183
domContentLoaded149822561829213102
load153122611852221106
domInteractive16170433115
backgroundConnect88023199
firstReactRender1576442412
getState55612115
initialActions01000
loadScripts10831829135519191
setupStore876192010
uiStartup172324692103231111
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 229.62 KiB (3.85%)
  • ui: 0 Bytes (0.00%)
  • common: 496 Bytes (0.01%)

@gantunesr
Copy link
Copy Markdown
Member Author

@gantunesr gantunesr closed this Feb 19, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Feb 19, 2025
@HowardBraham HowardBraham deleted the chore/add-mc-network-controller branch January 19, 2026 18:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants