Add support for Arc Testnet (chainId: 5042002) #1037
NetWalker108
started this conversation in
Ideas
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Add Arc Testnet (chainId: 5042002) to Porto's supported Chains so apps, connectors, viem/wagmi integrations, and docs can use the Arc test network. Arc uses USDC as the native gas token (18 decimals).
Network details
Wallet setup (MetaMask)
Tip: If the wallet supports custom gas tokens, ensure display/decimals for USDC (18 decimals) and clearly label fees as USDC.
Suggested code changes
Add a new Chain entry in the repo's Chains list (where other chains are declared). Example viem-compatible Chain object in TypeScript:
Where your repo centralizes chains (e.g.
src/core/chains.ts,src/viem/chains.ts, or a chains registry), registerarcTestnetand export it to be available to connectors, wagmi/viem helpers, and CLI/dev tooling.If there is a central
Chainsenum/list, add an entry:Additional places to update:
src/wagmi/connector.tsor similar) so clients can select Arc Testnet.Tests
Example test ideas:
Docs
apps/docsordocs/:Checklist
arcTestnet) and export it in chains registryAcceptance criteria
Notes / Considerations
Beta Was this translation helpful? Give feedback.
All reactions