Skip to content

Conversation

stanleyyconsensys
Copy link
Contributor

@stanleyyconsensys stanleyyconsensys commented Oct 14, 2025

Explanation

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

Change

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

API:

V4 MultiAccount - URL

V1 Account relationship - URL

V1 Account tx history - URL

Jira

https://consensyssoftware.atlassian.net/browse/BENE-7

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, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

Note

Adds Monad (chainId 0x8f) across preferences and transactions, enabling incoming transactions, relationship API, and swaps default token.

  • Preferences Controller:
    • Add MONAD (0x8f) to ETHERSCAN_SUPPORTED_CHAIN_IDS and enable by default in showIncomingTransactions.
    • Update tests to include 0x8f.
    • Update changelog under Unreleased.
  • Transaction Controller:
    • Add MONAD (0x8f) to CHAIN_IDS.
    • Enable Accounts API support: add chain ID 143 to relationship API and include MONAD in incoming transactions SUPPORTED_CHAIN_IDS.
    • Add swaps default token config for MONAD in SWAPS_CHAINID_DEFAULT_TOKEN_MAP.
    • Update changelog under Unreleased.

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

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

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

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

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/transaction-controller/src/constants.ts Adds MONAD chain ID constant
packages/transaction-controller/src/utils/swaps.ts Adds Monad swaps token object and chain mapping
packages/transaction-controller/src/helpers/AccountsApiRemoteTransactionSource.ts Includes Monad in supported chain IDs for remote transactions
packages/transaction-controller/src/api/accounts-api.ts Adds Monad decimal chain ID for relationship API
packages/transaction-controller/CHANGELOG.md Documents Monad network support addition
packages/preferences-controller/src/constants.ts Adds Monad to Etherscan supported chain IDs
packages/preferences-controller/src/PreferencesController.ts Enables Monad in default incoming transactions preferences
packages/preferences-controller/CHANGELOG.md Documents Monad support in preferences

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@stanleyyconsensys stanleyyconsensys marked this pull request as ready for review October 16, 2025 02:26
@stanleyyconsensys stanleyyconsensys requested review from a team as code owners October 16, 2025 02:26
@stanleyyconsensys stanleyyconsensys enabled auto-merge (squash) October 16, 2025 02:29
Copy link
Contributor

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

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

LGTM!

@stanleyyconsensys stanleyyconsensys merged commit 1ae6e74 into main Oct 16, 2025
245 checks passed
@stanleyyconsensys stanleyyconsensys deleted the feat/add-monad-to-tx-preference branch October 16, 2025 08:08
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.

3 participants