Skip to content

feat(tempo): add Tempo chain support (chain ID 4217)#537

Merged
remiroyc merged 5 commits intomainfrom
add-tempo-chain-support
Apr 2, 2026
Merged

feat(tempo): add Tempo chain support (chain ID 4217)#537
remiroyc merged 5 commits intomainfrom
add-tempo-chain-support

Conversation

@remiroyc
Copy link
Copy Markdown
Contributor

@remiroyc remiroyc commented Apr 2, 2026

Summary

Add full Tempo chain support (chain ID 4217) to @morpho-org/blue-sdk and @morpho-org/liquidation-sdk-viem.

  • Add TempoMainnet = 4217 to ChainId enum with chain metadata (USD-denominated native currency, no gas token)
  • Add all deployed contract addresses from morpho-org/deployments#191: Morpho, AdaptiveCurveIrm, Bundler3, GeneralAdapter1, ChainlinkOracleFactory, PreLiquidationFactory, VaultV2Factory, MorphoMarketV1AdapterV2Factory, RegistryList
  • Add canonical Permit2 address and Bridged USDC (Stargate) with EIP-2612 permit support via TIP-1004
  • Add deployment block numbers for all contracts
  • Update liquidation SDK: empty Midas config + PreLiquidation factory config

Notable: Tempo has no native gas token and no wNative — fees are paid in USD-denominated stablecoins.

Test plan

  • @morpho-org/blue-sdk builds successfully
  • @morpho-org/liquidation-sdk-viem builds successfully
  • All contract addresses verified checksummed (EIP-55)
  • Deployment blocks verified via RPC binary search
  • USDC permit support verified on-chain (DOMAIN_SEPARATOR, nonces, permit all functional)

🤖 Generated with Claude Code

Add Tempo mainnet chain ID, metadata, and placeholder addresses/deployments.
Contract addresses and block numbers are placeholder (0x0.../0n) pending
deployment info from Milan.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 084911194f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

remiroyc and others added 3 commits April 2, 2026 11:58
Replace placeholder addresses with actual deployed contracts from
morpho-org/deployments#191. Add preLiquidationFactoryConfigs entry.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add canonical Permit2 contract address (predeployed on Tempo) to enable
transactional flows via Permit2.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Bridged USDC (Stargate) supports EIP-2612 permit via TIP-1004,
enabling Permit2 signature flows.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@remiroyc remiroyc self-assigned this Apr 2, 2026
@remiroyc remiroyc changed the title feat: add Tempo chain support (chain ID 4217) feat(tempo): add Tempo chain support (chain ID 4217) Apr 2, 2026
@remiroyc remiroyc requested a review from Foulks-Plb April 2, 2026 10:12
remiroyc

This comment was marked as resolved.

@remiroyc remiroyc requested a review from Foulks-Plb April 2, 2026 11:13
Not an official USDC token, just a bridged Stargate token.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@remiroyc remiroyc requested a review from 0xbulma April 2, 2026 12:18
Copy link
Copy Markdown
Contributor

@0xbulma 0xbulma left a comment

Choose a reason for hiding this comment

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

check wrap native

@remiroyc remiroyc merged commit 33fad35 into main Apr 2, 2026
16 checks passed
@remiroyc remiroyc deleted the add-tempo-chain-support branch April 2, 2026 12:39
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