-
Notifications
You must be signed in to change notification settings - Fork 14
Add support for all Reth methods #117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for all Reth methods #117
Conversation
WalkthroughUpdated the reth client version in clients.json and massively expanded methods.json: added many new RPC method entries and added "reth" to numerous existing methods across namespaces (anvil, engine, ots, hardhat, mev, miner, eth, trace, debug, platform, opp2p), plus a few endpoint renames/swaps. Changes
Sequence Diagram(s)Omitted (data-only changes) Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
chainbench/tools/discovery/methods.json (1)
2287-2300: Deduplicate clients in eth_maxPriorityFeePerGas."avalanchego/ext/bc/C/rpc" appears twice.
"bor", - "avalanchego/ext/bc/C/rpc", - "avalanchego/ext/bc/C/rpc", + "avalanchego/ext/bc/C/rpc", "optimism",
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
chainbench/tools/discovery/clients.json(1 hunks)chainbench/tools/discovery/methods.json(85 hunks)
🔇 Additional comments (4)
chainbench/tools/discovery/methods.json (3)
3135-3146: Confirm opp2p_peers ↔ opp2p_peerStats swap intent.If only ordering changed, OK. If semantics changed, ensure downstream expects new mapping.
275-279: Request validation of newly introduced or uncommon RPC names.Please confirm these are intentional and documented:
- anvil_mine_detailed
- eth_cancelBundle
- engine_getPayloadV5
If experimental/private, consider marking or gating accordingly.
Also applies to: 1769-1775, 1609-1618
1-4209: Update verification script
Use this to re-check JSON validity, case-insensitive top-level key sort, and duplicate clients per method:#!/usr/bin/env bash set -euo pipefail FILE="chainbench/tools/discovery/methods.json" # Validate JSON jq empty "$FILE" && echo "JSON OK" # Check case-insensitive sort of top-level keys python3 - << 'PY' import json d = json.load(open("chainbench/tools/discovery/methods.json")) keys = list(d.keys()) sorted_ci = sorted(keys, key=str.casefold) if keys != sorted_ci: print("Top-level keys not case-insensitive sorted.") for i, (a, b) in enumerate(zip(keys, sorted_ci)): if a != b: print(f"{i}: file='{a}' vs sorted='{b}'") if i >= 20: break exit(1) print("Top-level keys are case-insensitive sorted.") PY # Detect duplicate clients per method python3 - << 'PY' import json d = json.load(open("chainbench/tools/discovery/methods.json")) dups = [k for k, v in d.items() if len(v.get("clients", [])) != len(set(v.get("clients", [])))] if dups: print("Methods with duplicate clients:") for k in dups: print("-", k) exit(1) print("No duplicate clients found.") PYchainbench/tools/discovery/clients.json (1)
47-47: Confirm reth version bump. Version 1.8.2 matches the latest upstream release (v1.8.2) and the RPC mapping inmethods.jsonremains unchanged.
Summary
Testing
https://chatgpt.com/codex/tasks/task_b_68ec70a92e388324a9d60fe79c899469
Summary by CodeRabbit
New Features
Refactor
Chores