Skip to content

Update rpc structure#664

Merged
rossgalloway merged 2 commits into
masterfrom
update-RPC-structure
Apr 19, 2026
Merged

Update rpc structure#664
rossgalloway merged 2 commits into
masterfrom
update-RPC-structure

Conversation

@rossgalloway
Copy link
Copy Markdown
Collaborator

@rossgalloway rossgalloway commented Apr 19, 2026

Summary

  • replace the single mainnet Alchemy assumption with shared chain-aware RPC resolution
  • route docs contract reads through per-chain PublicClient instances based on frontmatter rpcCalls[].chain
  • switch env/docs/workflows to the VITE_RPC_URI_FOR_<chainId> pattern with Yearn RPC defaults
  • include the follow-up address check refresh committed on this branch (scripts/fetchedAddressData.json and the two natspec/lib/* submodule pointer updates)

Why

The docs repo previously hardcoded mainnet Alchemy in both runtime and address-check paths even though docs frontmatter already carries chain metadata. This change makes the RPC layer match the chain-based setup used in yearn.fi and leaves mainnet-only behavior only where that is still actually true today.

@rossgalloway rossgalloway requested a review from engn33r April 19, 2026 17:45
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
yearn-docs Ready Ready Preview, Comment Apr 19, 2026 5:45pm

Request Review

Copy link
Copy Markdown
Collaborator

@engn33r engn33r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rossgalloway rossgalloway merged commit a7643a8 into master Apr 19, 2026
7 checks passed
@rossgalloway rossgalloway deleted the update-RPC-structure branch April 19, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants