-
-
Notifications
You must be signed in to change notification settings - Fork 252
feat: add Monad
support in PreferenceController
and TransactionController
#6827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
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
API:
V4 MultiAccount - URL
V1 Account relationship - URL
V1 Account tx history - URL
Jira
https://consensyssoftware.atlassian.net/browse/BENE-7
References
Checklist
Note
Adds Monad (chainId 0x8f) across preferences and transactions, enabling incoming transactions, relationship API, and swaps default token.
MONAD
(0x8f
) toETHERSCAN_SUPPORTED_CHAIN_IDS
and enable by default inshowIncomingTransactions
.0x8f
.MONAD
(0x8f
) toCHAIN_IDS
.143
to relationship API and includeMONAD
in incoming transactionsSUPPORTED_CHAIN_IDS
.MONAD
inSWAPS_CHAINID_DEFAULT_TOKEN_MAP
.Written by Cursor Bugbot for commit d583546. This will update automatically on new commits. Configure here.