IPollFactory
PollFactory interface
DeployPollArgs
A struct holding the arguments for poll deployment
struct DeployPollArgs {
uint256 startDate;
uint256 endDate;
struct Params.TreeDepths treeDepths;
uint8 messageBatchSize;
struct DomainObjs.PubKey coordinatorPubKey;
struct Params.ExtContracts extContracts;
uint256 emptyBallotRoot;
uint256 pollId;
address[] relayers;
uint256 voteOptions;
}
deploy
function deploy(struct IPollFactory.DeployPollArgs _args) external returns (address)
Deploy a new Poll contract
Parameters
Name | Type | Description |
---|---|---|
_args | struct IPollFactory.DeployPollArgs | The arguments for the poll deployment |
Return Values
Name | Type | Description |
---|---|---|
[0] | address | The deployed Poll contract |