feat: add Circle Arc testnet chain (PAR-40)#112
Draft
MSevey wants to merge 1 commit into
Draft
Conversation
Adds the Circle Arc testnet (chain ID 5042002) definition:
- Native gas token USDC (18-decimal native accounting; ERC-20 USDC is 6 decimals)
- Alchemy RPC with ${ALCHEMY_API_KEY} templating plus public Arc RPCs
(arc.network, QuickNode, Blockdaemon, dRPC)
- ArcScan block explorer with Etherscan-compatible API
- Canonical multicall3, USDC stable at 0x3600...0000 (6 decimals)
Arc mainnet (5042) is intentionally not included: Circle's public mainnet
RPC/USDC/CCTP details are unpublished (private mainnet only, pending PAR-26),
and shipping a mainnet chain without working RPCs would break consumers that
enumerate getMainnetChains() (e.g. balances-service).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds Circle Arc Testnet (chain ID 5042002) to
@eco-foundation/chains(PAR-40). New definitionsrc/definitions/arc.tsexportingarcTestnet, registered inEcoRoutesChains/EcoRouteChainMap, with a dedicated test suite.Chain facts
https://arc-testnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}(+wss), key injected viaEcoChains/api)0xcA11bde05977b3631167028862bE2a173976CA11(blockCreated 0)0x3600000000000000000000000000000000000000(6 decimals)truefalseArc mainnet (5042) intentionally excluded
Circle's public mainnet RPC/USDC/CCTP details are not yet published (private mainnet only; pending PAR-26 / Circle private docs). Shipping a mainnet definition with no working RPCs would break downstream consumers that enumerate
getMainnetChains()— notably balances-service, which auto-tracks every mainnet chain. A TODO insrc/definitions/arc.tsdocuments this.Downstream
feat:commit → semantic-release will cut a minor release (2.3.3 → 2.4.0) on merge; CHANGELOG is generated automatically.Testing
pnpm test— 50/50 pass (newsrc/tests/arc.spec.ts: stables lookup, getChain by id, Alchemy key substitution/filtering, testnet classification, mainnet-absent guard)pnpm lint,pnpm prettier,pnpm build— clean🤖 Generated with Claude Code