feat: add rpc_compat test data generation script#357
Open
ameya-deshmukh wants to merge 1 commit intoseismicfrom
Open
feat: add rpc_compat test data generation script#357ameya-deshmukh wants to merge 1 commit intoseismicfrom
ameya-deshmukh wants to merge 1 commit intoseismicfrom
Conversation
TypeScript script that generates test data for the rpc_compat e2e test from a running Summit testnet. Deploys an EventEmitter contract, runs transactions, captures RPC responses as .io files, and exports chain.rlp via debug_getRawBlock. Usage: cd testing/generate-rpc-compat-data bun install && bun run generate
Contributor
|
Adds TypeScript script to generate RPC compatibility test data from a running Seismic testnet. Phase 2
Phase 3
LGTM - the script correctly uses dynamic chain ID detection (avoiding hardcoded Ethereum chain IDs), properly tests CSTORE operations for confidential storage, and generates comprehensive test data for RPC compatibility validation. The contract bytecode is compiled with ssolc for Seismic's confidential features, which is appropriate. |
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
testing/generate-rpc-compat-data/that regenerates the rpc_compat e2e test data from a running Summit testnet.iofiles, and exportschain.rlpviadebug_getRawBlocktesting/viem-tests/patternUsage
cd testing/generate-rpc-compat-data bun install bun run generateSee the script header for full prerequisites (building reth, syncing genesis with Summit, etc).
Context
Extracted from the test data regeneration work in #356. This script is needed whenever
dev.jsongenesis changes, since the chain.rlp blocks contain baked-in state roots.