Skip to content

w3vm: store all testdata/w3vm in workspace root#262

Merged
lmittmann merged 18 commits intomainfrom
feat/improve-w3vm-testdata
Jul 5, 2025
Merged

w3vm: store all testdata/w3vm in workspace root#262
lmittmann merged 18 commits intomainfrom
feat/improve-w3vm-testdata

Conversation

@lmittmann
Copy link
Owner

@lmittmann lmittmann commented Jul 1, 2025

This PR changes the storage location and format of cached storage data produced by w3vm.NewTestingRPCFetcher. The new storage format can safe up to 50% of storage, while still using human readable, diffable, uncompressed JSON.

All cached state will be stored in {workspace}/testdata/w3vm from now on. The file structure was improved o make storage more efficient.

  • contract codes are now stored in a chain-agnostic contracts.json, which maps code-hashes to code
  • header hashes are now stored in a separate {chain_id}_header_hashes.json

resolves #217
resolves #158

@lmittmann lmittmann self-assigned this Jul 1, 2025
@lmittmann lmittmann added the enhancement New feature or request label Jul 1, 2025
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 3, 2025

Deploying w3 with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0434950
Status: ✅  Deploy successful!
Preview URL: https://a66baa2b.w3-7ji.pages.dev
Branch Preview URL: https://feat-improve-w3vm-testdata.w3-7ji.pages.dev

View logs

@lmittmann lmittmann marked this pull request as ready for review July 5, 2025 13:05
@lmittmann lmittmann merged commit f0666d6 into main Jul 5, 2025
3 checks passed
@lmittmann lmittmann deleted the feat/improve-w3vm-testdata branch July 5, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

w3vm: fix usage of w3vm.NewTestingRPCFetcher in subtests w3vm: Improve testdata layout

1 participant