-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: add Monad Testnet
#14963
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
base: main
Are you sure you want to change the base?
feat: add Monad Testnet
#14963
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
…ls` (#5724) ## Explanation <!-- Thanks for your contribution! Take a moment to answer these questions so that reviewers have the information they need to properly understand your changes: * What is the current state of things and why does it need to change? * What is the solution your changes offer and how does it work? * Are there any changes whose purpose might not obvious to those unfamiliar with the domain? * If your primary goal was to update one package but you found you had to update another one along the way, why did you do so? * If you had to upgrade a dependency, why did you do so? --> This PR is to add Monad Testnet as default network on `network-controller` default state - `networkConfigurationsByChainId` with the constants and type from the latest `controller-utils` ### Changes: - Refactor `network-controller` methods`getDefaultCustomNetworkConfigurationsByChainId` to build the configuration from `CustomNetworkType` instead of hardcode network 1 by 1 - Add `Monad Testnet` info into `controller-utils` - Include `Monad Testnet` into `network-controller` method `getDefaultCustomNetworkConfigurationsByChainId` Integration PR in mobile: MetaMask/metamask-mobile#14963 <img width="300" alt="image" src="https://github.com/user-attachments/assets/5f4b5bd7-d4f2-4edb-9e03-43b08206276a" /> ## References <!-- Are there any issues that this pull request is tied to? Are there other links that reviewers should consult to understand these changes better? Are there client or consumer pull requests to adopt any breaking changes? For example: * Fixes #12345 * Related to #67890 --> ## Changelog <!-- THIS SECTION IS NO LONGER NEEDED. The process for updating changelogs has changed. Please consult the "Updating changelogs" section of the Contributing doc for more. --> ## Checklist - [ ] I've updated the test suite for new or updated code as appropriate - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [ ] I've communicated my changes to consumers by [updating changelogs for packages I've changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs), highlighting breaking changes as necessary - [ ] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
|
Description
This PR is to add Monad Testnet as default network
It also include a migration script to add/replace the Monad testnet network for existing user
Change:
controller-utils
from 11.7.0 to 11.8.0network-controller
from 23.2.0 to 23.4.0additionalDefaultNetworks
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist