-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(contracts): tally qv and non-qv optimisations
- [x] Remove TallyNonQv and TallyNonQvFactory - [x] Add non-qv logic to Tally - [x] Compatibility fixes
- Loading branch information
Showing
36 changed files
with
167 additions
and
441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -199,13 +199,15 @@ contract MACI is IMACI, Params, Utilities, Ownable { | |
/// @param _coordinatorPubKey The coordinator's public key | ||
/// @param _verifier The Verifier Contract | ||
/// @param _vkRegistry The VkRegistry Contract | ||
/// @param _isQv Whether to support QV or not | ||
/// @return pollAddr a new Poll contract address | ||
function deployPoll( | ||
uint256 _duration, | ||
TreeDepths memory _treeDepths, | ||
PubKey memory _coordinatorPubKey, | ||
address _verifier, | ||
address _vkRegistry | ||
address _vkRegistry, | ||
Check warning Code scanning / Slither Conformance to Solidity naming conventions Warning
Parameter MACI.deployPoll(uint256,Params.TreeDepths,DomainObjs.PubKey,address,address,bool)._vkRegistry is not in mixedCase
|
||
bool _isQv | ||
) public virtual onlyOwner returns (PollContracts memory pollAddr) { | ||
// cache the poll to a local variable so we can increment it | ||
uint256 pollId = nextPollId; | ||
|
@@ -238,7 +240,7 @@ contract MACI is IMACI, Params, Utilities, Ownable { | |
); | ||
|
||
address mp = messageProcessorFactory.deploy(_verifier, _vkRegistry, p, _owner); | ||
address tally = tallyFactory.deploy(_verifier, _vkRegistry, p, mp, _owner); | ||
address tally = tallyFactory.deploy(_verifier, _vkRegistry, p, mp, _owner, _isQv); | ||
|
||
polls[pollId] = p; | ||
|
||
|
Oops, something went wrong.