IPollFactory
PollFactory interface
deploy
function deploy(uint256 _duration, uint256 _maxVoteOptions, struct Params.TreeDepths _treeDepths, uint8 _messageBatchSize, struct DomainObjs.PubKey _coordinatorPubKey, address _maci) external returns (address)
Deploy a new Poll contract
Parameters
Name | Type | Description |
---|---|---|
_duration | uint256 | The duration of the poll |
_maxVoteOptions | uint256 | The max vote options for the poll |
_treeDepths | struct Params.TreeDepths | The depths of the merkle trees |
_messageBatchSize | uint8 | The size of message batch |
_coordinatorPubKey | struct DomainObjs.PubKey | The coordinator's public key |
_maci | address | The MACI contract interface reference |
Return Values
Name | Type | Description |
---|---|---|
[0] | address | The deployed Poll contract |