Skip to content

feat: add access-list read-set prewarm primitive#17

Closed
KaiCode2 wants to merge 1 commit into
mainfrom
feat/access-list-read-set-prewarm
Closed

feat: add access-list read-set prewarm primitive#17
KaiCode2 wants to merge 1 commit into
mainfrom
feat/access-list-read-set-prewarm

Conversation

@KaiCode2

@KaiCode2 KaiCode2 commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a generic cache-owned eth_createAccessList read-set primitive so downstream crates can warm a call's storage footprint through EvmCache without carrying a second provider/RPC handle.

Change

  • Add AccessListCall plus create_access_list_read_set(...) with pinned-block baseFee gas pricing and null-tolerant storageKeys decoding.
  • Add AccessListFetchFn, EvmCache::access_list_fetcher, set_access_list_fetcher, and prewarm_access_list_call.
  • Route the second shot through EvmCache::prewarm_slots, so callers reuse the cache's configured bulk/point-read storage fetcher.
  • Add an offline unit test proving the cache-owned fetcher path warms storage through injected cache fetchers.

Verification

  • cargo fmt --check
  • cargo check --lib
  • cargo test --lib prewarm_access_list_call_uses_cache_owned_fetchers

@KaiCode2 KaiCode2 closed this Jul 7, 2026
@KaiCode2
KaiCode2 deleted the feat/access-list-read-set-prewarm branch July 7, 2026 16:21
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.

1 participant