Skip to content

feat: migrate to Lattice selector exports - #26

Merged
dadadave80 merged 2 commits into
mainfrom
dev
Aug 27, 2026
Merged

feat: migrate to Lattice selector exports#26
dadadave80 merged 2 commits into
mainfrom
dev

Conversation

@dadadave80

Copy link
Copy Markdown
Member

Summary

  • Swap the Diamond base for Lattice, and GetSelectors for BaseDeploy in the deploy helper — facet cuts now build via _cut(...) instead of hand-rolled FacetCut structs with _getSelectors("Name") string lookups.
  • Each facet (CheckInFacet, FactoryFacet, MarketplaceFacet) implements IFacet.exportSelectors(), so selectors come from the compiler rather than artifact parsing.
  • Remove the receive() override that reverted with DirectETHTransferNotAllowed().
  • Bump lib/lattice and foundry.lock.

Test plan

  • forge test — includes new test/ExportSelectors.t.sol, which asserts each facet's exported selectors match its ABI
  • Dry-run the deploy script to confirm the 7 facet cuts still resolve

Commits: 47bc58d, e224ba3

@dadadave80
dadadave80 merged commit 3557cad into main Aug 27, 2026
2 checks passed
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