TallyFactory
A factory contract which deploys Tally contracts.
deploy
function deploy(address _verifier, address _vkRegistry, address _poll, address _messageProcessor, address _owner, enum DomainObjs.Mode _mode) public virtual returns (address tallyAddr)
Deploy a new Tally contract and return the address.
Parameters
Name | Type | Description |
---|---|---|
_verifier | address | Verifier contract |
_vkRegistry | address | VkRegistry contract |
_poll | address | Poll contract |
_messageProcessor | address | MessageProcessor contract |
_owner | address | Owner of the contract |
_mode | enum DomainObjs.Mode | Voting mode |
Return Values
Name | Type | Description |
---|---|---|
tallyAddr | address | The deployed contract |