Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal proxy pattern for Checker / Policy contracts #21

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

0xjei
Copy link
Member

@0xjei 0xjei commented Jan 21, 2025

Right now, Excubiae lets you deploy your specific Checker with specific parameters (like a set of external addresses for verifiers - used to verify the attributes / criteria). Same for Policy contracts—you tie them to one Checker. If you want different parameters for different contracts, you have to redeploy everything from scratch every time. This is gas-consuming and not dev friendly.

This PR aims to implement a Minimal Proxy Pattern (Clones with immutable args) using the Solady LibClone library. This would be a huge pro at just some contract writing overhead for byte per byte variable decomposition for immutability.

--

TODO

  • remove double mapping feat (outdated - you can reproduce by just deploying the same clone with same params).
  • implement factories & clones for Policy
  • implement factories & clones for Checker
  • update tests

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