You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds Monad mainnet/testnet support across chain configs and clients, and upgrades viem to 2.40.0.
Chains:
Add monad (mainnet) and monadTestnet (testnet) to apps/maestro/src/config/chains/evm-chains.ts with RPC configs, Axelar IDs, and environments.
Register monad in MAINNET_CHAINS and monad (testnet) in TESTNET_CHAINS within packages/evm clients.
Dependencies:
Upgrade viem to ^2.40.0 in apps/maestro/package.json and packages/evm/package.json with corresponding lockfile and peer updates (e.g., wagmi, web3 modal connectors).
Written by Cursor Bugbot for commit c235db1. This will update automatically on new commits. Configure here.
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
This PR promotes monad blockchain integration from testnet to mainnet by adding monad chain configurations across the codebase.
Key Changes:
Upgraded viem from ^2.30.1 to ^2.40.0 in both apps/maestro and packages/evm to gain access to monad chain definitions
Added monad and monadTestnet imports from viem/chains
Configured monad mainnet and testnet chains in evm-chains.ts with proper RPC URLs, Axelar chain IDs, and environment settings
Exported monad in MAINNET_CHAINS and monadTestnet (as 'monad') in TESTNET_CHAINS for client creation support
The implementation follows the established pattern for adding new chain support, with consistent configuration across mainnet and testnet environments.
Confidence Score: 5/5
This PR is safe to merge with minimal risk
The changes are straightforward and follow established patterns for adding new chain support. The viem version bump is necessary to access monad chain definitions, and all configurations are consistent across mainnet/testnet environments. No logic changes or custom implementations - purely additive configuration.
No files require special attention
Important Files Changed
File Analysis
Filename
Score
Overview
apps/maestro/package.json
5/5
Bumped viem from ^2.30.1 to ^2.40.0 to support monad chain definitions
packages/evm/package.json
5/5
Bumped viem from ^2.30.1 to ^2.40.0 to support monad chain definitions
apps/maestro/src/config/chains/evm-chains.ts
5/5
Added monad and monadTestnet chain configurations with proper imports, RPC configs, and Axelar chain IDs for both mainnet and testnet environments
packages/evm/src/clients/mainnet-client.ts
5/5
Added monad chain import and exported it in MAINNET_CHAINS object for client creation support
packages/evm/src/clients/testnet-client.ts
5/5
Added monadTestnet chain import and exported it as 'monad' in TESTNET_CHAINS object for testnet client creation support
Sequence Diagram
sequenceDiagram
participant App as Application
participant Config as evm-chains.ts
participant Viem as viem/chains
participant Client as EVM Clients
participant Monad as Monad Network
App->>Config: Request monad chain config
Config->>Viem: Import monad & monadTestnet
Viem-->>Config: Chain definitions (v2.40.0+)
Config->>Config: Apply createRpcUrlConfig()
Config->>Config: Set axelarChainId: "monad"
Config-->>App: Extended chain config
App->>Client: Create mainnet/testnet client
Client->>Client: Select monad from MAINNET_CHAINS<br/>or monadTestnet from TESTNET_CHAINS
Client->>Monad: Connect via RPC
Monad-->>Client: Connection established
Client-->>App: PublicClient ready
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
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.
Note
Adds Monad mainnet/testnet support across chain configs and clients, and upgrades viem to 2.40.0.
monad(mainnet) andmonadTestnet(testnet) toapps/maestro/src/config/chains/evm-chains.tswith RPC configs, Axelar IDs, and environments.monadinMAINNET_CHAINSandmonad(testnet) inTESTNET_CHAINSwithinpackages/evmclients.viemto^2.40.0inapps/maestro/package.jsonandpackages/evm/package.jsonwith corresponding lockfile and peer updates (e.g.,wagmi, web3 modal connectors).Written by Cursor Bugbot for commit c235db1. This will update automatically on new commits. Configure here.