Skip to main content
Version: v3.x

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

NameTypeDescription
_argsstruct IPollFactory.DeployPollArgsThe arguments for the poll deployment

Return Values

NameTypeDescription
[0]addressThe deployed Poll contract