docs(use-arc): add Common Pitfalls section with empirical gotchas#24
Open
Ccheh wants to merge 1 commit into
Open
docs(use-arc): add Common Pitfalls section with empirical gotchas#24Ccheh wants to merge 1 commit into
Ccheh wants to merge 1 commit into
Conversation
From production experience building on Arc Testnet: native vs ERC-20 decimal mixing, eth_getLogs 10k cap, receipt-timeout pattern, and Foundry keystore vs --private-key.
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 a new "Common Pitfalls" section to the `use-arc` skill capturing four real gotchas hit while building production-grade contracts and clients against Arc Testnet:
Why this matters
The `use-arc` skill is the single piece of documentation an AI agent reads when generating Arc code. Currently it correctly states the rule "use 18 decimals for native gas amounts and 6 decimals for ERC-20 USDC amounts" — but doesn't give code examples showing what the wrong pattern looks like, or what symptoms it produces. Agents that read the rule still consistently produce `parseUnits(amount, 6)` because the prior "USDC is 6 decimals everywhere" is reinforced by ~8 chains of correct-elsewhere training data. Showing the wrong code → right code transition makes the skill behaviorally effective, not just descriptively correct.
The other three pitfalls (`eth_getLogs` cap, receipt timeout pattern, keystore over CLI flag) are operational realities of Arc Testnet that aren't documented anywhere agent-readable but bite every team building real applications.
Source of these pitfalls
Encountered while building Plinth — a capital layer for AI trading agents on Arc — over the Agora Agents Hackathon (May 2026). All four patterns were debugged against the live testnet RPC; the code examples come from the working production codebase.
Diff size
+4,382 chars added in a single new section between "Implementation Patterns" and "Next Steps". No existing content modified.
Happy to iterate on placement, depth, or wording. If maintainers prefer this as a separate `arc-pitfalls` skill rather than an inline section, I'm equally happy to split it.