feat: create money account utils package - #9397
Merged
Merged
Conversation
Jwhiles
force-pushed
the
feat/money-account-utils-package
branch
2 times, most recently
from
July 6, 2026 15:42
a13012d to
5918519
Compare
Contributor
Author
|
@metamaskbot publish-preview |
Contributor
|
Preview builds have been published. Learn how to use preview builds in other projects. Expand for full list of packages and versions. |
Contributor
Author
|
@metamaskbot publish-preview |
Jwhiles
force-pushed
the
feat/money-account-utils-package
branch
from
July 9, 2026 08:54
83d856e to
8b3c65a
Compare
Contributor
Author
|
@metamaskbot publish-preview |
Jwhiles
force-pushed
the
feat/money-account-utils-package
branch
from
July 10, 2026 08:34
b3fa326 to
6f1b873
Compare
Contributor
Author
|
@metamaskbot publish-preview |
Jwhiles
force-pushed
the
feat/money-account-utils-package
branch
from
July 10, 2026 08:40
6f1b873 to
75843dc
Compare
|
No dependency changes detected. Learn more about Socket for GitHub. 👍 No dependency changes detected in pull request |
Contributor
Author
|
@metamaskbot publish-preview |
Contributor
|
Preview builds have been published. Learn how to use preview builds in other projects. Expand for full list of packages and versions. |
Contributor
|
Preview builds have been published. Learn how to use preview builds in other projects. Expand for full list of packages and versions. |
Jwhiles
force-pushed
the
feat/money-account-utils-package
branch
2 times, most recently
from
July 27, 2026 10:16
701409f to
651b20a
Compare
Contributor
Author
|
@metamaskbot publish-preview |
Contributor
|
Preview builds have been published. Learn how to use preview builds in other projects. Expand for full list of packages and versions. |
Jwhiles
force-pushed
the
feat/money-account-utils-package
branch
from
July 27, 2026 10:40
651b20a to
9eed894
Compare
Contributor
Author
|
@metamaskbot publish-preview |
Contributor
|
Preview builds have been published. Learn how to use preview builds in other projects. Expand for full list of packages and versions. |
Jwhiles
force-pushed
the
feat/money-account-utils-package
branch
4 times, most recently
from
July 27, 2026 12:49
3b096ed to
be71915
Compare
Jwhiles
marked this pull request as ready for review
July 27, 2026 13:47
Kureev
previously approved these changes
Jul 27, 2026
Jwhiles
enabled auto-merge
July 28, 2026 12:20
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jul 30, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jul 30, 2026
Jwhiles
force-pushed
the
feat/money-account-utils-package
branch
from
July 30, 2026 12:51
bc4b92b to
d90583a
Compare
cryptodev-2s
previously approved these changes
Jul 30, 2026
Kureev
previously approved these changes
Jul 30, 2026
Jwhiles
force-pushed
the
feat/money-account-utils-package
branch
from
July 30, 2026 12:59
2872832 to
3081e9c
Compare
Kureev
previously approved these changes
Jul 30, 2026
Jwhiles
enabled auto-merge
July 30, 2026 13:02
cryptodev-2s
previously approved these changes
Jul 30, 2026
Jwhiles
force-pushed
the
feat/money-account-utils-package
branch
from
July 30, 2026 13:31
a90ea98 to
1c82229
Compare
Kureev
approved these changes
Jul 30, 2026
cryptodev-2s
approved these changes
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation
Create a new package to extract various pieces of code related to the money account.
The intention of this is to capture as much of non-platform specific code as possible, such that we can more easily share code between mobile and extension.
References
Checklist
Note
Low Risk
New additive package with no in-repo consumers yet; behavior is covered by tests and only affects clients once they adopt the dependency.
Overview
Introduces
@metamask/money-account-utilsas a new Earn-owned workspace package so money-account logic can be shared across Extension and Mobile instead of living only in clients.The initial export is mUSD support ported from MetaMask Mobile: token metadata and per-chain address/CAIP asset maps,
getTokenDisplaySymbol(registryMUSD→ brandedmUSD), and guardsisMusdToken,isMusdTokenOnChain, andisMusdOnMoneyAccountChain(Money Account activity limited to Monad while mUSD is also on Mainnet/Linea/BSC). Unit tests target full coverage.Monorepo wiring adds the package to CODEOWNERS,
teams.json, roottsconfig, README package list/dependency graph, andyarn.lock. Rootlint:eslintNode heap is raised from 8192MB to 10240MB.Reviewed by Cursor Bugbot for commit 1c82229. Bugbot is set up for automated code reviews on this repo. Configure here.