Skip to content

feat: ctrl utils add info chains no native token#8336

Merged
maxime-oe merged 1 commit intomainfrom
feat/ctrl-utils-add-chains-no-native
Mar 30, 2026
Merged

feat: ctrl utils add info chains no native token#8336
maxime-oe merged 1 commit intomainfrom
feat/ctrl-utils-add-chains-no-native

Conversation

@maxime-oe
Copy link
Copy Markdown
Contributor

@maxime-oe maxime-oe commented Mar 30, 2026

Explanation

Tempo asset-controller PR uses as CHAIN_IDS_TO_SKIP_NATIVE_TOKEN constant in two different controllers.
This PR would allow to not have to maintain CHAIN_IDS_TO_SKIP_NATIVE_TOKEN in both controllers and use a common CHAIN_IDS_WITH_NO_NATIVE_TOKEN instead, for easier maintenance.

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

Low Risk
Low risk: adds a new exported constant and updates the export surface/tests, with no behavioral changes unless consumers opt in to using it.

Overview
Adds CHAIN_IDS_WITH_NO_NATIVE_TOKEN to @metamask/controller-utils, initially listing Tempo mainnet/testnet CAIP-2 chain IDs for consumers to treat as no-native-token chains.

Updates the package public exports and snapshot test to include the new constant, and documents it in the controller-utils changelog.

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

@maxime-oe maxime-oe marked this pull request as ready for review March 30, 2026 15:58
@maxime-oe maxime-oe requested a review from a team as a code owner March 30, 2026 15:58
Comment thread packages/controller-utils/src/constants.ts
@maxime-oe maxime-oe force-pushed the feat/ctrl-utils-add-chains-no-native branch 2 times, most recently from f8a0636 to ea040d7 Compare March 30, 2026 16:00
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.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Comment thread packages/controller-utils/src/index.ts
@maxime-oe maxime-oe force-pushed the feat/ctrl-utils-add-chains-no-native branch from ea040d7 to 51571fe Compare March 30, 2026 16:07
@maxime-oe
Copy link
Copy Markdown
Contributor Author

@metamaskbot publish-preview

@github-actions
Copy link
Copy Markdown
Contributor

Preview builds have been published. Learn how to use preview builds in other projects.

Expand for full list of packages and versions.
@metamask-previews/account-tree-controller@7.0.0-preview-51571fe
@metamask-previews/accounts-controller@37.1.1-preview-51571fe
@metamask-previews/address-book-controller@7.1.1-preview-51571fe
@metamask-previews/ai-controllers@0.6.3-preview-51571fe
@metamask-previews/analytics-controller@1.0.1-preview-51571fe
@metamask-previews/analytics-data-regulation-controller@0.0.0-preview-51571fe
@metamask-previews/announcement-controller@8.1.0-preview-51571fe
@metamask-previews/app-metadata-controller@2.0.1-preview-51571fe
@metamask-previews/approval-controller@9.0.1-preview-51571fe
@metamask-previews/assets-controller@3.2.1-preview-51571fe
@metamask-previews/assets-controllers@103.0.0-preview-51571fe
@metamask-previews/base-controller@9.0.1-preview-51571fe
@metamask-previews/base-data-service@0.1.1-preview-51571fe
@metamask-previews/bridge-controller@69.2.3-preview-51571fe
@metamask-previews/bridge-status-controller@70.0.3-preview-51571fe
@metamask-previews/build-utils@3.0.4-preview-51571fe
@metamask-previews/chain-agnostic-permission@1.5.0-preview-51571fe
@metamask-previews/claims-controller@0.5.0-preview-51571fe
@metamask-previews/client-controller@1.0.1-preview-51571fe
@metamask-previews/compliance-controller@1.0.2-preview-51571fe
@metamask-previews/composable-controller@12.0.1-preview-51571fe
@metamask-previews/config-registry-controller@0.2.0-preview-51571fe
@metamask-previews/connectivity-controller@0.2.0-preview-51571fe
@metamask-previews/controller-utils@11.19.0-preview-51571fe
@metamask-previews/core-backend@6.2.1-preview-51571fe
@metamask-previews/delegation-controller@2.1.0-preview-51571fe
@metamask-previews/earn-controller@11.2.1-preview-51571fe
@metamask-previews/eip-5792-middleware@3.0.2-preview-51571fe
@metamask-previews/eip-7702-internal-rpc-middleware@0.1.0-preview-51571fe
@metamask-previews/eip1193-permission-middleware@1.0.3-preview-51571fe
@metamask-previews/ens-controller@19.1.1-preview-51571fe
@metamask-previews/eth-block-tracker@15.0.1-preview-51571fe
@metamask-previews/eth-json-rpc-middleware@23.1.1-preview-51571fe
@metamask-previews/eth-json-rpc-provider@6.0.1-preview-51571fe
@metamask-previews/foundryup@1.0.1-preview-51571fe
@metamask-previews/gas-fee-controller@26.1.1-preview-51571fe
@metamask-previews/gator-permissions-controller@3.0.0-preview-51571fe
@metamask-previews/geolocation-controller@0.1.2-preview-51571fe
@metamask-previews/json-rpc-engine@10.2.4-preview-51571fe
@metamask-previews/json-rpc-middleware-stream@8.0.8-preview-51571fe
@metamask-previews/keyring-controller@25.1.1-preview-51571fe
@metamask-previews/logging-controller@8.0.1-preview-51571fe
@metamask-previews/message-manager@14.1.1-preview-51571fe
@metamask-previews/messenger@1.0.0-preview-51571fe
@metamask-previews/multichain-account-service@8.0.1-preview-51571fe
@metamask-previews/multichain-api-middleware@2.0.0-preview-51571fe
@metamask-previews/multichain-network-controller@3.0.6-preview-51571fe
@metamask-previews/multichain-transactions-controller@7.0.4-preview-51571fe
@metamask-previews/name-controller@9.1.1-preview-51571fe
@metamask-previews/network-controller@30.0.1-preview-51571fe
@metamask-previews/network-enablement-controller@5.0.1-preview-51571fe
@metamask-previews/notification-services-controller@23.0.1-preview-51571fe
@metamask-previews/permission-controller@12.3.0-preview-51571fe
@metamask-previews/permission-log-controller@5.1.0-preview-51571fe
@metamask-previews/perps-controller@2.0.0-preview-51571fe
@metamask-previews/phishing-controller@17.1.0-preview-51571fe
@metamask-previews/polling-controller@16.0.4-preview-51571fe
@metamask-previews/preferences-controller@23.1.0-preview-51571fe
@metamask-previews/profile-metrics-controller@3.1.2-preview-51571fe
@metamask-previews/profile-sync-controller@28.0.2-preview-51571fe
@metamask-previews/ramps-controller@12.1.0-preview-51571fe
@metamask-previews/rate-limit-controller@7.0.1-preview-51571fe
@metamask-previews/react-data-query@0.2.0-preview-51571fe
@metamask-previews/remote-feature-flag-controller@4.2.0-preview-51571fe
@metamask-previews/sample-controllers@4.0.4-preview-51571fe
@metamask-previews/seedless-onboarding-controller@9.1.0-preview-51571fe
@metamask-previews/selected-network-controller@26.1.0-preview-51571fe
@metamask-previews/shield-controller@5.1.0-preview-51571fe
@metamask-previews/signature-controller@39.1.2-preview-51571fe
@metamask-previews/social-controllers@0.0.0-preview-51571fe
@metamask-previews/storage-service@1.0.1-preview-51571fe
@metamask-previews/subscription-controller@6.1.1-preview-51571fe
@metamask-previews/transaction-controller@63.3.1-preview-51571fe
@metamask-previews/transaction-pay-controller@19.0.0-preview-51571fe
@metamask-previews/user-operation-controller@41.1.1-preview-51571fe

Copy link
Copy Markdown
Contributor

@mcmire mcmire 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 added this pull request to the merge queue Mar 30, 2026
Merged via the queue into main with commit 8d763bd Mar 30, 2026
332 checks passed
@maxime-oe maxime-oe deleted the feat/ctrl-utils-add-chains-no-native branch March 30, 2026 18:16
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.

2 participants