feat(assets-controllers): enable token detection for DeFi Oracle Meta (138)#9297
Open
defiQUG wants to merge 1 commit into
Open
feat(assets-controllers): enable token detection for DeFi Oracle Meta (138)#9297defiQUG wants to merge 1 commit into
defiQUG wants to merge 1 commit into
Conversation
… (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>
Author
|
Operator note (2026-06-28): Companion to MetaMask/core #9118 (Price API client fallback).
Hosted |
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.tsNot 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