mixer deploy WIP

This commit is contained in:
Alexey 2019-07-12 18:04:45 +03:00
parent 19f916e6fd
commit fb3f2425d2
10 changed files with 2143 additions and 40 deletions

View file

@ -19,7 +19,12 @@ contract Mixer is MerkleTreeWithHistory {
@param _verifier the address of SNARK verifier for this contract
@param _transferValue the value for all deposits in this contract in wei
*/
constructor(address _verifier, uint256 _transferValue) MerkleTreeWithHistory(16, 0) public {
constructor(
address _verifier,
uint256 _transferValue,
uint8 _merkleTreeHeight,
uint256 _emptyElement
) MerkleTreeWithHistory(_merkleTreeHeight, _emptyElement) public {
verifier = IVerifier(_verifier);
transferValue = _transferValue;
}

1
contracts/Verifier.sol Symbolic link
View file

@ -0,0 +1 @@
../build/circuits/Verifier.sol