Skip to main content
Version: v2.0_alpha

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

NameTypeDescription
_verifieraddressVerifier contract
_vkRegistryaddressVkRegistry contract
_polladdressPoll contract
_messageProcessoraddressMessageProcessor contract
_owneraddressOwner of the contract
_modeenum DomainObjs.ModeVoting mode

Return Values

NameTypeDescription
tallyAddraddressThe deployed contract