-
Notifications
You must be signed in to change notification settings - Fork 153
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
feat(contracts): add hats gatekeeper contracts #1191
feat(contracts): add hats gatekeeper contracts #1191
Conversation
✅ Deploy Preview for maci-typedoc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spengrah thanks, just few comments.
f1b0188
to
1dece7e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slither found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
Collabs in public FTW! Thanks for this @spengrah 🤝🏆 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spengrah thanks!
@spengrah could you rebase the branch please? |
7945cb9
to
87ef9bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, it looks awesome!
Head branch was pushed to by a user without write access
87ef9bc
to
88bb16c
Compare
abc8b53
to
65eaaae
Compare
Adds two flavors of Hats Protocol-powered gatekeeper contracts: - `*Single` gates registration to wearers of a single hat - `*Multiple` gates registration to wearers of multiple hats.
Adds new lines in tests per @0xmad suggestion
…suggestion Breaks HatsGatekeepers.sol into multiple files to conform to solhint style guide. Also: - Adds IHats interface - Adds HatsGatekeeperBase abstract contract for common elements
Adds natspec to IHats.sol
Prevents MACI address from being set to the zero address
Applies the following changes as suggested: - MockHatsProtocol inherits from IHats - fixed several natspec typos
Correctly deploy contracts in tests
65eaaae
to
81880b3
Compare
Adds `tx.wait()` to each test call that doesn't return a value
Congrats, your important contribution to this open-source project has earned you a GitPOAP! GitPOAP: 2024 MACI Contributor: Head to gitpoap.io & connect your GitHub account to mint! Learn more about GitPOAPs here. |
Description
Adds two flavors of Hats Protocol-powered gatekeeper contracts:
HatsGatekeeperSingle
gates registration to wearers of a single configured hatHatsGatekeeperMultiple
gates registration to wearers of multiple configured hatsAdditional Notes
Inspired by this twitter conversation: https://twitter.com/zkMACI/status/1756077090800050674
Related issue(s)
n/a
Confirmation