feat: Add RPC metadata and restructure data by network type#3
Open
feat: Add RPC metadata and restructure data by network type#3
Conversation
2af7b1f to
cc1e714
Compare
cc1e714 to
d9bab95
Compare
Add RPC endpoint metadata from chainlist.org for community contributions. - Create RPC schema with tracking, provider, isOpenSource fields - Add RPC data for 7 networks: Ethereum (1), Optimism (10), Base (8453), Arbitrum (42161), BNB Chain (56), BNB Testnet (97), Sepolia (11155111) - Update validation script to validate RPC files - Update build script to generate dist/rpcs/ output - Add import-rpcs script to sync from chainlist.org
Add networkId (CAIP-2 string, e.g. "eip155:1") to RPC schema, data files, and build output. Replace hardcoded SUPPORTED_CHAINS in import script with dynamic derivation from data/networks.json. Add networkId consistency validation for EVM chains.
d9bab95 to
18bd799
Compare
Organize per-network data under network type subdirectories to support multi-chain architecture. EVM networks use chain IDs, Bitcoin networks use slugs. Add Bitcoin Testnet4 network and RPC endpoint.
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.
Summary
evm/,btc/) to support multi-chain architectureChanges
RPC metadata
import-rpcsscript to sync EVM RPCs from chainlist.orgDirectory restructure
data/{tokens,addresses,events}/{chainId}/→data/{tokens,addresses,events}/evm/{chainId}/data/rpcs/{chainId}.json→data/rpcs/evm/{chainId}.jsondata/rpcs/btc/{slug}.jsonfor Bitcoin networksNew network data
bip122:00000000da84f2bafbbc53dee25a72ae) to networks.jsonScript updates
build.ts: All 4 build functions iterate over network type subdirsvalidate.ts: Network-type-aware validation (EVM chainId checks, BTC bip122 checks)import-rpcs.ts: Scoped todata/rpcs/evm/Test plan
npm run validate— 427 files validnpm run build— dist has correctevm//btc/structurenpm run lint— no errors