-
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(eas-gatekeeper): implement an EAS gatekeeper for MACI #1109
Conversation
✅ Deploy Preview for maci-typedoc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -33,7 +33,7 @@ | |||
|
|||
/// @notice Adds an uninitialised MACI instance to allow for token signups | |||
/// @param _maci The MACI contract interface to be stored | |||
function setMaciInstance(MACI _maci) public override onlyOwner { | |||
function setMaciInstance(address _maci) public override onlyOwner { |
Check warning
Code scanning / Slither
Conformance to Solidity naming conventions Warning
a6c86d4
to
5465cde
Compare
5465cde
to
da346ec
Compare
48989c0
to
bf238bc
Compare
@@ -0,0 +1,85 @@ | |||
// SPDX-License-Identifier: MIT | |||
pragma solidity ^0.8.10; |
Check warning
Code scanning / Slither
Incorrect versions of Solidity Warning
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.
@ctrlc03 thanks, just some comments
7a1b625
to
302f3c1
Compare
* @param _user The user's Ethereum address. | ||
* @param _data The ABI-encoded schemaId as a uint256. | ||
*/ | ||
function register(address _user, bytes memory _data) public override { |
Check warning
Code scanning / Slither
Conformance to Solidity naming conventions Warning
|
||
/// @notice Adds an uninitialised MACI instance to allow for token signups | ||
/// @param _maci The MACI contract interface to be stored | ||
function setMaciInstance(address _maci) public override onlyOwner { |
Check warning
Code scanning / Slither
Conformance to Solidity naming conventions Warning
* @param _user The user's Ethereum address. | ||
* @param _data The ABI-encoded schemaId as a uint256. | ||
*/ | ||
function register(address _user, bytes memory _data) public override { |
Check warning
Code scanning / Slither
Conformance to Solidity naming conventions Warning
302f3c1
to
e430237
Compare
@@ -0,0 +1,35 @@ | |||
// SPDX-License-Identifier: MIT | |||
pragma solidity ^0.8.10; |
Check warning
Code scanning / Slither
Incorrect versions of Solidity Warning
e430237
to
e33dc60
Compare
e33dc60
to
dfeff26
Compare
dfeff26
to
2d3e25a
Compare
2d3e25a
to
91b74a7
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.
@ctrlc03 thanks, just one suggestion for tests.
91b74a7
to
b694dc5
Compare
b694dc5
to
8b25d94
Compare
Description
Implement a MACI gatekeeper which allows signups only to users which have an attestation from a certain schema.
Additional Notes
The schema must be specified in the contract's constructor and it is immutable.
Related issue(s)
fix #1090
Confirmation