Skip to content

[hackathon] refactor: preparatory generics for host context adapter#104

Open
prestwich wants to merge 6 commits intodevelopfrom
refactor/preparatory-generics
Open

[hackathon] refactor: preparatory generics for host context adapter#104
prestwich wants to merge 6 commits intodevelopfrom
refactor/preparatory-generics

Conversation

@prestwich
Copy link
Member

@prestwich prestwich commented Mar 13, 2026

Summary

  • Bump SDK deps to 0.16.0-rc.14 with cargo patch overrides for signet-sdk (feat/extractable-metadata) and storage (james/eng-1978)
  • Make blobber CacheHandle methods generic over receipt type and adapt to BlockAndReceipts struct
  • Simplify ReorgNotification in signet-rpc: remove RemovedBlock, flatten to removed_hashes/removed_logs; stub reorg subscription handling (ENG-1968)
  • Make AliasOracle::should_alias async via RPITIT
  • Make block processor process_block/run_evm generic over Extractable

PR 1 of 5 in the host context adapter refactor. No precursors.

Test plan

  • cargo clippy -p signet-blobber --all-features --all-targets
  • cargo clippy -p signet-blobber --no-default-features --all-targets
  • cargo clippy -p signet-rpc --all-features --all-targets
  • cargo clippy -p signet-block-processor --all-features --all-targets
  • cargo clippy -p signet-node --all-features --all-targets
  • cargo t -p signet-rpc
  • cargo +nightly fmt

🤖 Generated with Claude Code

- Bump SDK deps to 0.16.0-rc.14 and add cargo patch overrides for
  signet-sdk and storage repos
- Make blobber CacheHandle methods generic over receipt type
- Adapt blobber shim to BlockAndReceipts struct from SDK
- Re-export RecoveredBlockShim from signet-blobber
- Simplify ReorgNotification in signet-rpc (remove RemovedBlock,
  use flat removed_hashes/removed_logs)
- Remove filter_reorg_for_sub and stub reorg handling (ENG-1968)
- Make AliasOracle::should_alias async via RPITIT
- Make block processor process_block/run_evm generic over Extractable

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@prestwich prestwich requested a review from a team as a code owner March 13, 2026 19:49
@prestwich prestwich changed the title refactor: preparatory generics for host context adapter [hackathon] refactor: preparatory generics for host context adapter Mar 13, 2026
prestwich and others added 4 commits March 13, 2026 16:02
- Remove `should_alias` helper that recreated the oracle per address,
  restoring the fix from #102 (create oracle once per block)
- Revert unrelated rpc/interest changes back to develop

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove cargo patch overrides for signet-storage crates and restore
versions to 0.6.5 — these patches are not needed in this PR.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Explicitly reference the `#[repr(transparent)]` attribute and
single-field layout guarantee that makes the reference transmute sound.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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