Skip to content

feat: add HyperEVM support in PreferenceController and TransactionController#7770

Merged
maxime-oe merged 1 commit intomainfrom
feat/add-hyperevm-to-tx-preference
Feb 2, 2026
Merged

feat: add HyperEVM support in PreferenceController and TransactionController#7770
maxime-oe merged 1 commit intomainfrom
feat/add-hyperevm-to-tx-preference

Conversation

@maxime-oe
Copy link
Copy Markdown
Contributor

@maxime-oe maxime-oe commented Jan 29, 2026

Explanation

This PR adds support for the HyperEVM blockchain network across the PreferencesController and TransactionController packages. The changes enable HyperEVM network integration by adding chain ID definitions, API support, and default configurations.

Change

  • Add HyperEVM chain ID constant (0x3e7) and swaps token configuration
  • Enable incoming transactions and account relationship API support for HyperEVM
  • Configure default preferences to show incoming transactions for HyperEVM network

API:

V4 MultiAccount - URL

V1 Account relationship - URL

V1 Account tx history - URL

Jira

https://consensyssoftware.atlassian.net/browse/NEB-331

References

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
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

Medium Risk
Adds a new supported chain across preferences defaults and transaction-related Accounts API/swaps logic; incorrect chain ID mapping or API assumptions could affect transaction history/relationship queries and swaps defaults on that network.

Overview
Adds HyperEVM (0x3e7 / 999) as a supported chain across preferences-controller and transaction-controller.

PreferencesController now includes HYPEREVM in ETHERSCAN_SUPPORTED_CHAIN_IDS and enables it by default in showIncomingTransactions (tests updated accordingly). transaction-controller adds HyperEVM to Accounts API supported chain lists (relationship + incoming transactions), introduces CHAIN_IDS.HYPEREVM, and maps a default swaps token for HyperEVM. Changelogs are updated to reflect the new network support.

Written by Cursor Bugbot for commit 5b9fbdf. This will update automatically on new commits. Configure here.

@maxime-oe maxime-oe force-pushed the feat/add-hyperevm-to-tx-preference branch 2 times, most recently from c863186 to 194255c Compare January 29, 2026 08:20
@maxime-oe maxime-oe marked this pull request as ready for review January 29, 2026 08:20
@maxime-oe maxime-oe requested review from a team as code owners January 29, 2026 08:20
@maxime-oe maxime-oe force-pushed the feat/add-hyperevm-to-tx-preference branch 2 times, most recently from 245aa34 to 4abe5bf Compare January 29, 2026 08:30
@stanleyyconsensys stanleyyconsensys changed the title feat: add HyperEVM preferences and transactions feat: add HyperEVM support in PreferenceController and TransactionController Jan 30, 2026
Copy link
Copy Markdown
Contributor

@stanleyyconsensys stanleyyconsensys left a comment

Choose a reason for hiding this comment

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

2 nit comment on the change log

OGPoyraz
OGPoyraz previously approved these changes Jan 30, 2026
@maxime-oe maxime-oe force-pushed the feat/add-hyperevm-to-tx-preference branch 2 times, most recently from b1e8ea6 to d03e4b0 Compare January 30, 2026 08:23
@maxime-oe maxime-oe force-pushed the feat/add-hyperevm-to-tx-preference branch from d03e4b0 to 5b9fbdf Compare January 30, 2026 08:24
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Copy link
Copy Markdown
Contributor

@stanleyyconsensys stanleyyconsensys left a comment

Choose a reason for hiding this comment

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

LGTM

@maxime-oe maxime-oe requested a review from OGPoyraz January 30, 2026 11:31
@maxime-oe
Copy link
Copy Markdown
Contributor Author

@OGPoyraz I had to force-push a CHANGELOG edit, is it possible to reapprove ? 🙏

@maxime-oe maxime-oe added this pull request to the merge queue Feb 2, 2026
Merged via the queue into main with commit 794e9dd Feb 2, 2026
306 checks passed
@maxime-oe maxime-oe deleted the feat/add-hyperevm-to-tx-preference branch February 2, 2026 08:30
@maxime-oe maxime-oe mentioned this pull request Feb 2, 2026
4 tasks
github-merge-queue bot pushed a commit that referenced this pull request Feb 2, 2026
## 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?
-->
Updates `bridge-controller`, `preferences-controller`,
`transactions-controller` and `assets-controllers` for enabling HyperEVM
support in those controllers.
Main PRs:
- Preference and Transaction controller:
#7770
- Assets Controllers : #7790
- Bridge Controller: #7787

## 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
-->

## 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/processes/updating-changelogs.md)
- [ ] I've introduced [breaking
changes](https://github.com/MetaMask/core/tree/main/docs/processes/breaking-changes.md)
in this PR and have prepared draft pull requests for clients and
consumer packages to resolve them


<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Primarily a release/version and dependency bump across multiple
controller packages; functional risk is low, but updating
`@metamask/transaction-controller` across many consumers can surface
integration/behavior changes at runtime.
> 
> **Overview**
> Bumps the monorepo version to `781.0.0` and cuts new releases for
`@metamask/transaction-controller@62.13.0`,
`@metamask/preferences-controller@22.1.0`,
`@metamask/assets-controllers@99.2.0`, and
`@metamask/bridge-controller@65.2.0` (with changelog entries updated
accordingly).
> 
> Updates downstream packages to consume the new controller
versions—most notably raising `@metamask/transaction-controller` to
`^62.13.0` across bridge, status, earn, middleware, phishing, shield,
subscription, and user-operation controllers—and refreshes `yarn.lock`
to match.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
ccf4fe5. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants