Skip to content

Refactor security pool forker and harden shared artifact freshness checks#311

Merged
KillariDev merged 1 commit into
mainfrom
t3code/e34df38d
Jun 12, 2026
Merged

Refactor security pool forker and harden shared artifact freshness checks#311
KillariDev merged 1 commit into
mainfrom
t3code/e34df38d

Conversation

@KillariDev

Copy link
Copy Markdown
Collaborator

Summary

  • Refactored SecurityPoolForker by extracting shared migration logic into SecurityPoolForkerVaultMigrationBase and storage layout into SecurityPoolForkerStorage, reducing duplication and consolidating migration behavior.
  • Added a new storage-aware fork data contract split via SecurityPoolForkerStorage.sol and SecurityPoolForkerForkData.
  • Updated SecurityPoolForker inheritance to use the new base contract and switched internal state/event handling to the shared base/storage structures.
  • Improved artifact freshness detection in scripts/ensure-contract-artifacts.mts by replacing mtime-based checks with deterministic SHA-256 content hashing, plus explicit stale-detection and optional sync modes.
  • Added scripts/ensure-shared-package-fresh.mjs and integrated shared-package freshness/refresh checks into root scripts for solidity and UI flows.
  • Removed local @zoltar/shared workspace-style dependency from root package.json/bun.lock, and added new scripted workflows for shared dependency checks and synchronized refresh (check:shared-dependencies, refresh:shared-dependencies, ensure-shared-build).
  • Added solidity tests covering storage layout compatibility for forker refactor (solidity/tests/securityPoolForkerStorageLayout.test.ts).

Testing

  • Not run (not requested in prompt).
  • Suggested checks to run on this branch:
    1. bun run tsc
    2. bun run test
    3. bun run format
    4. bun run check
    5. bun run knip

- Remove direct workspace dependency on `@zoltar/shared` and add explicit shared-build/version freshness checks
- Introduce hash-based freshness cache for shared outputs and contract artifacts
- Add shared package freshness verification/refresh script and hook it into tsc/test workflows
- Split `SecurityPoolForker` into storage and vault-migration base contracts and add migration/storage layout test
@KillariDev KillariDev merged commit 362439d into main Jun 12, 2026
0 of 6 checks passed
@KillariDev KillariDev deleted the t3code/e34df38d branch June 12, 2026 11:16
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