Skip to main content
Version: v1.3_alpha

IPollFactory

PollFactory interface

deploy

function deploy(uint256 _duration, struct Params.MaxValues _maxValues, struct Params.TreeDepths _treeDepths, struct DomainObjs.PubKey _coordinatorPubKey, address _maci, contract TopupCredit _topupCredit, address _pollOwner) external returns (address)

Deploy a new Poll contract and AccQueue contract for messages.

Parameters

NameTypeDescription
_durationuint256The duration of the poll
_maxValuesstruct Params.MaxValuesThe max values for the poll
_treeDepthsstruct Params.TreeDepthsThe depths of the merkle trees
_coordinatorPubKeystruct DomainObjs.PubKeyThe coordinator's public key
_maciaddressThe MACI contract interface reference
_topupCreditcontract TopupCreditThe TopupCredit contract
_pollOwneraddressThe owner of the poll

Return Values

NameTypeDescription
[0]addressThe deployed Poll contract