Skip to content

ITS-131 Promote monad integration to mainnet#713

Merged
joaoazevedo merged 1 commit into
env/mainnetfrom
main
Nov 24, 2025
Merged

ITS-131 Promote monad integration to mainnet#713
joaoazevedo merged 1 commit into
env/mainnetfrom
main

Conversation

@joaoazevedo

@joaoazevedo joaoazevedo commented Nov 24, 2025

Copy link
Copy Markdown
Contributor

Note

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.

@linear

linear Bot commented Nov 24, 2025

Copy link
Copy Markdown

ITS-131

@changeset-bot

changeset-bot Bot commented Nov 24, 2025

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c235db1

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

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Nov 24, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
axelar-maestro-mainnet (staging) Ready Ready Preview Comment Nov 24, 2025 2:42pm
axelar-registry Ready Ready Preview Comment Nov 24, 2025 2:42pm
axelar-ui Ready Ready Preview Comment Nov 24, 2025 2:42pm
axelarjs-maestro-testnet Ready Ready Preview Comment Nov 24, 2025 2:42pm

@greptile-apps

greptile-apps Bot commented Nov 24, 2025

Copy link
Copy Markdown

Greptile Overview

Greptile Summary

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
Loading

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

5 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

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