Skip to content

Expand EVM chain normalization and bootstrap asset support#2

Merged
ggonzalez94 merged 4 commits intomainfrom
feat/evm-chain-support-wave1
Feb 22, 2026
Merged

Expand EVM chain normalization and bootstrap asset support#2
ggonzalez94 merged 4 commits intomainfrom
feat/evm-chain-support-wave1

Conversation

@ggonzalez94
Copy link
Owner

@ggonzalez94 ggonzalez94 commented Feb 22, 2026

Summary

  • Add chain normalization aliases/IDs for: Mantle, Ink, Scroll, Berachain, Gnosis (xdai), Linea, Sonic, Blast, Fraxtal, World Chain, Celo, and zkSync Era.
  • Add op mainnet / op-mainnet alias normalization for Optimism.
  • Add bootstrap token registry entries (USDC/USDT/WETH where verified) for: Gnosis, Sonic, zkSync Era, Mantle, Celo, Ink, Linea, and Scroll.
  • Keep Berachain, Blast, Fraxtal, and World Chain address/CAIP-19-first for asset parsing (no speculative symbol mapping).
  • Add expanded table-driven parsing tests and symbol/address behavior tests.
  • Update docs/changelog for new chain alias coverage and address-first behavior.
  • Include .gitignore update to ignore local TODO.md.

Validation

  • go test ./...
  • go test -race ./...
  • go vet ./...
  • Smoke checks:
    • assets resolve for all added chains via address path
    • symbol resolution checks on registry-backed new chains
    • expected symbol-failure checks on address-only chains
    • lend markets --protocol aave --chain scroll --asset USDC
    • yield opportunities --providers defillama on mantle and op mainnet

Note

Medium Risk
Touches shared chain/asset parsing used across lending/yield/bridge/swap flows; incorrect IDs or token-address mappings could cause misrouting or wrong asset resolution on newly added chains.

Overview
Expands EVM --chain normalization to recognize additional aliases and numeric IDs (including op mainnet/op-mainnet, gnosis/xdai, and new chains like Mantle, Scroll, Linea, Sonic, Blast, Fraxtal, World Chain, Celo, and zkSync Era), so chain parsing is consistent across commands that rely on ParseChain.

Extends the bootstrap token registry used by ParseAsset to support deterministic symbol resolution (USDC/USDT/WETH where applicable) on several newly supported chains, while leaving some chains effectively address/CAIP-19-first (tested by asserting symbol lookup fails on blast). Adds table-driven tests covering the new chain variants and registry-backed symbol parsing, updates docs/CHANGELOG to document the expanded chain support, and ignores local TODO.md via .gitignore.

Written by Cursor Bugbot for commit d3ff2c5. This will update automatically on new commits. Configure here.

@ggonzalez94 ggonzalez94 self-assigned this Feb 22, 2026
@ggonzalez94
Copy link
Owner Author

@codex please review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Delightful!

ℹ️ 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".

…t-wave1

# Conflicts:
#	CHANGELOG.md
#	README.md
@ggonzalez94 ggonzalez94 merged commit 66b8754 into main Feb 22, 2026
13 checks passed
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.

1 participant