[GoodBounty] Finalize fetchAndTestRpcs fix PR
Summary
Pick up the existing AI-generated PR #638 for fetchAndTestRpcs RPC parsing hardening, run it locally, fix implementation gaps, update tests/evidence, and prepare it for human review.
Contributor role reference:
https://docs.gooddollar.org/for-developers/contributing/open-source-contributors/contributor-role
Contributor task
- Claim the bounty with an ETA.
- Check out the PR branch (
copilot/fix-fetch-and-test-rpcs-failure) and run it locally.
- Compare the implementation against parent issue #637 and verify the parsing fix is robust.
- Fix concrete gaps in behavior, tests, and code quality.
- Leave a handoff comment with what changed, what was tested, and remaining risks.
Scope checks
Breakdown specific to the fetchAndTestRpcs parsing bug and PR #638
Required commands
pnpm install
pnpm build
pnpm lint
pnpm test
If a command cannot be run, document why.
[GoodBounty] Finalize fetchAndTestRpcs fix PR
Summary
Pick up the existing AI-generated PR #638 for
fetchAndTestRpcsRPC parsing hardening, run it locally, fix implementation gaps, update tests/evidence, and prepare it for human review.Contributor role reference:
https://docs.gooddollar.org/for-developers/contributing/open-source-contributors/contributor-role
Contributor task
copilot/fix-fetch-and-test-rpcs-failure) and run it locally.Scope checks
Breakdown specific to the
fetchAndTestRpcsparsing bug and PR #638fetchAndTestRpcsno longer useseval()or fragile regex on the DefiLlama JS source file.FALLBACK_RPCS_BY_CHAINis used as fallback when fetch, parse, or test fails for any chain.rpcInitializationPromiseis reset tonullon failure so the app can retry without a full page reload.rpcParsing.tscorrectly extracts HTTP(S) RPC URLs for all required chains:1,122,42220,50.rpcParsing.test.tslive-fetch test passes against the current DefiLlama chainlist source.src/hooks/useWeb3.tsxare respected (no unrelated changes).Required commands
pnpm install pnpm build pnpm lint pnpm testIf a command cannot be run, document why.