feat(assets-controllers): enable token detection for DeFi Oracle Meta (138) - #9297
Open
defiQUG wants to merge 2 commits into
Open
feat(assets-controllers): enable token detection for DeFi Oracle Meta (138)#9297defiQUG wants to merge 2 commits into
defiQUG wants to merge 2 commits into
Conversation
Author
|
Operator note (2026-06-28): Companion to MetaMask/core #9118 (Price API client fallback).
Hosted |
defiQUG
force-pushed
the
feat/chain138-token-detection-0x8a
branch
from
July 6, 2026 08:50
3d5276b to
3dcec72
Compare
Author
|
Rebased onto current MetaMask/core main and force-pushed head 3dcec72. Review fixes in this update:
Local validation:
|
Author
|
Follow-up pass (2026-07-07): CI/validation is green on our side where applicable. Requesting maintainer review when convenient. Chain 138 (ID 138) — DeFi Oracle Meta Mainnet
Happy to rebase or adjust per review feedback. |
defiQUG
force-pushed
the
feat/chain138-token-detection-0x8a
branch
3 times, most recently
from
July 12, 2026 07:44
57005bc to
02c17f4
Compare
… (138) Add chain 0x8a to SupportedTokenDetectionNetworks and SUPPORTED_NETWORKS_ACCOUNTS_API_V4 so MetaMask extension and mobile can autodetect tokens on DeFi Oracle Meta Mainnet. Mirrors recent ARC and HyperEVM network additions. Co-authored-by: Cursor <cursoragent@cursor.com>
defiQUG
force-pushed
the
feat/chain138-token-detection-0x8a
branch
from
July 25, 2026 04:30
02c17f4 to
d43c279
Compare
defiQUG
commented
Jul 27, 2026
defiQUG
left a comment
Author
There was a problem hiding this comment.
Reviewed the allowlist/test change. I did not find a blocking code issue in the diff. Remaining blocker is required review approval.
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.
Summary
Add DeFi Oracle Meta Mainnet (chain 138 /
0x8a) to MetaMask token detection allowlists so mobile and extension users can use Autodetect tokens on Chain 138.Mirrors recent network additions such as ARC (#9006) and HyperEVM (#7790): enum entry + Accounts API v4 list. Does not replace hosted Tokens API registration (
token.api.cx.metamask.io).Chain metadata is already on Chainlist: https://github.com/ethereum-lists/chains/blob/master/_data/chains/eip155-138.json
Changes
1.
packages/assets-controllers/src/assetsUtil.tsAdd to
SupportedTokenDetectionNetworks:2.
packages/assets-controllers/src/constants.tsAdd to
SUPPORTED_NETWORKS_ACCOUNTS_API_V4:3.
packages/assets-controllers/src/assetsUtil.test.ts4.
packages\/assets-controllers\/CHANGELOG.mdAdd an unreleased changelog entry for the Chain 138 token autodetection allowlist change.
Not in scope for v1:
SINGLE_CALL_BALANCES_ADDRESS_BY_CHAINID— modern chains (e.g. Monad) rely on Accounts API v4; ARC/HyperEVM PRs did not require a balance-checker deploy.Token list (for MetaMask Tokens API ops)
https://tokens.d-bis.org/lists/dbis-138.tokenlist.jsonhttps://explorer.d-bis.org/token-aggregation/api/v1/report/token-list?chainId=138&wallet=1https://explorer.d-bis.org/token-aggregation/api/v1/config/metamask?chainId=138tokenDetectionmetadataWhy
https://rpc-http-pub.d-bis.org, explorerhttps://explorer.d-bis.org).Relationship to other DBIS PRs
eip155:138ontoken.api.cx.metamask.io.Test plan
yarn test packages/assets-controllers/src/assetsUtil.test.tsisTokenDetectionSupportedForNetwork('0x8a')→trueisTokenListSupportedForNetwork('0x8a')→trueSUPPORTED_NETWORKS_ACCOUNTS_API_V4includes'0x8a'References
eip155-138.jsonMonad Mainnetsupport to@metamask/assets-controllers#6618 (Monad)Made with Cursor