-
Notifications
You must be signed in to change notification settings - Fork 3
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/v4 contracts #14
Feat/v4 contracts #14
Conversation
This PR implements extension contracts using version 4 re semaphore-protocol/semaphore#353
… and README Removed the need of merkletreesize whcih came with v3
switch @semaphore-protocol/contracts from a dev dependecy to a dependency
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Hey @Dozie2001, thanks for this PR!
First round of review. I haven't seen the code yet but let's start with this config stuff and documentation.
A sym link of contracts/contracts/README.md to contracts/README.md
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.
A few comments on config stuff and review on Voting contract.
… am using the interface re n
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.
There are still some issues with config files but we'll fix them after merging. I think the PR is ready.
Thanks a lot @Dozie2001 🙏🏽
fa9a0da
into
semaphore-protocol:chore/contract-extensions
* Feat/v4 contracts (#14) * feat(contracts)!: introduces Semaphore extension contracts with v4 This PR implements extension contracts using version 4 re semaphore-protocol/semaphore#353 * refactor(contracts): fixing the voters contracts * docs(contracts): updated instructions on setting up contracts * ci(contracts): scripts that deploy contracts and gets addresses * test(contracts): added test for both whistleblowing and voting * refactor(contracts): refactored contracts to use v4 and added license and README Removed the need of merkletreesize whcih came with v3 * build(contracts): added dependencies and deploye contracts N * chore(contracts): corrected dependency switch @semaphore-protocol/contracts from a dev dependecy to a dependency * docs(contracts): refactored the docs * chore(contracts): fixed documentation and configuration files * docs(contracts): created a sym link to README A sym link of contracts/contracts/README.md to contracts/README.md * ci(contracts): added scripts to test and compile * ci(contracts): fixed config files and solhint script * docs(contracts): made README docs more general * fix(contracts): fixed event errors * refactor(contracts): changed the groups variable to semaphore since I am using the interface re n * refactor(contracts): removed unsused argument * fix(contracts): refactored the contracts and removed unuses parameters * docs(contracts): updated Documentation by removing groupId re N * refactor(contracts): removed inheritance from SemaphoreGroups * refactor(contracts): removed SemaphoreGroups import * fix(contracts): added proof Validation and fixed contracts deploy * refactor(contracts): refactored code and removed bool value in saved nullifier * refactor(contracts): removed nullifiers redudant mapping * chore: include contracts in scripts * fix(contracts): fix contract extensions (#16) * chore: update dependencies * docs: add contracts package to readme * refactor(contracts): update visibility of some functions (#17) --------- Co-authored-by: Chidozie DAVID <[email protected]> Co-authored-by: Vivian Plasencia <[email protected]>
Description
This PR refactors the semaphore extension contracts to use the v4
@semaphore-protocol/contracts
and moves them to the extensions repoIt removes the need for tree depth in Groups
Related Issue(s)
Closes #353
Other information
Checklist
yarn style
without getting any errors