Skip to content

feat: polygon & base mainnet NTT configs#69

Merged
nvtaveras merged 7 commits into
mainfrom
feat/polygonBaseNtts
May 7, 2026
Merged

feat: polygon & base mainnet NTT configs#69
nvtaveras merged 7 commits into
mainfrom
feat/polygonBaseNtts

Conversation

@nvtaveras
Copy link
Copy Markdown
Contributor

@nvtaveras nvtaveras commented May 7, 2026

Summary

  • Adds polygon and base mainnet NTT bridge configuration for USDm and EURm
  • Adds wormholeCoreBridge addresses required by the new chains.
  • Reworks ConfigureNTT logging so each peer block clearly shows direction (local -> remote), uses [+]/[=] markers to distinguish writes from skips, and prints rate-limit values with token-name units (e.g. 500000 USDm).

Note

Medium Risk
Updates cross-chain NTT topology and deployment/config scripts for additional mainnet chains, which can affect bridge peer/rate-limit setup if misconfigured. Mostly configuration/logging changes, but they touch production chain IDs and on-chain permission/ownership operations.

Overview
Extends Wormhole NTT topology to include Polygon and Base mainnet: adds chain ID constants and expands USDm (adds Polygon) and EURm (adds Polygon + Base) chain/inbound-limit arrays in NTTConfig.sol.

Updates .treb/addressbook.json with WormholeCoreBridge entries for chain 137 (Polygon) and 8453 (Base), and reorders the existing 143 (Monad) section.

Hardens deployment scripts: DeployMockCollaterals now mints 1_000_000 * 10**decimals instead of assuming 18 decimals, and ConfigureNTT logging is reworked to clearly show per-peer direction, idempotent skips vs writes, and rate-limit units.

Adjusts Trunk lint config to also ignore checkov findings for .treb/*.json and broadcast/**/*.json.

Reviewed by Cursor Bugbot for commit cc26878. Bugbot is set up for automated code reviews on this repo. Configure here.

@nvtaveras nvtaveras changed the title feat: polygon & base mainnet NTT for USDm feat: polygon & base mainnet NTT configs May 7, 2026
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit cc26878. Configure here.

Comment thread script/config/wormhole/NTTConfig.sol
@nvtaveras nvtaveras merged commit 85c8cc2 into main May 7, 2026
5 checks passed
@nvtaveras nvtaveras deleted the feat/polygonBaseNtts branch May 7, 2026 12:40
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