Repository navigation
Add Arc and Arc Testnet support to Splits Lite - #166
Merged
Merged
Conversation
|
Contributor
Author
|
Mainnet transaction hash: https://explorer.arc.io/tx/0x8ef1eee4a8dc0a13687aedb47ea32eccf5478d94ccf10e62be35599191b0a2a4 Testnet transaction hash: |
splits-kit 2.6.0-alpha.0 (splits-sdk 6.7.0-alpha.0) adds Arc and Arc Testnet to the SDK's supported v2 chains; 2.5.0 rejects their chain IDs. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
viem 2.56.5 defines Arc mainnet with no default RPC URL, so the wagmi config can't create a client for chain 5042 and RainbowKit crashes when a wallet switches to Arc. viem 2.56.6+ ships https://rpc.mainnet.arc.io. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
mihoward21
approved these changes
Oct 2, 2026
mihoward21
marked this pull request as ready for review
October 2, 2026 18:54
mihoward21
requested review from
juliogarciag
and removed request for
a team and
juliogarciag
October 2, 2026 18:54
juliogarciag
approved these changes
Oct 2, 2026
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.
Adds Arc (chain 5042) and Arc Testnet (chain 5042002) to Splits Lite, with USDC and EURC in the token list. It follows the README process for new tokens and chains.
Before merging: Splits v2 needs to be deployed on Arc, and
@0xsplits/splits-kitneeds a release that includes Arc. Until then the SDK rejects actions on Arc; other chains are unaffected. After that release, this PR only needs the splits-kit bump, plus Arc enabled on thesplits-liteAlchemy app for mainnet.Changes
src/constants/chains.ts: addsarcandarcTestnet.arc-mainnet.g.alchemy.com), like the other chains. Arc's docs list Alchemy for mainnet only, so Arc Testnet uses Circle's public RPC (rpc.testnet.arc.io), the same way Plume uses a public RPC.0xcA11bde05977b3631167028862bE2a173976CA11, deployed on Arc) the same way Tempo does, because viem 2.56.5 in the lockfile shipsarcwithout it. viem 2.56.6 and later include it.src/constants/erc20.ts: USDC and EURC on both networks.public/chain-icons/arc.svg: the Arc mark from Arc's official logo.Chain details
README chain requirements, checked on both networks:
0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed, bytecode identical to Ethereum's. The CREATE2 deployer at0x4e59b44847b379578588920cA78FbF26c0B4956Cis also present.eth_call. Differences from Ethereum are listed in Arc's EVM differences.arcandarcTestnet.0x60C65c9a8674DA22e89C7d09e839908B9f0ecC3aon both networks will be added here.Tokens
0x36000000000000000000000000000000000000000x36000000000000000000000000000000000000000xbEf5f6d51CB62b58e6A8f77868681825C6fe21c10x89B50855Aa3bE2F677cD6303Cec089B5F319D72aArc-specific notes
0x3600…0000uses 6 decimals over the same balance. Arc's docs recommend that apps "rely solely on the standard ERC-20 interface for reading balances and sending transfers", so USDC is listed here. Since the SDK always shows the native balance first, a split on Arc will currently show USDC twice for the same funds, and distributing either row pays out the same balance. Hiding the native row on Arc would fix that; happy to adjust this PR however you prefer.maxFeePerGasof at least 20 gwei; transactions below that may stay pending.Related
Checked locally
prettier,bun run lintandbun run buildpass. Token name, symbol and decimals were read on-chain on both networks.