Skip to main content
Version: v1.x

SubsidyFactory

A factory contract which deploys Subsidy contracts.

deploy

function deploy(address _verifier, address _vkRegistry, address _poll, address _messageProcessor, address _owner, bool _isQv) public returns (address subsidyAddr)

Deploy a new Tally or Subsidy contract and return the address.

Parameters

NameTypeDescription
_verifieraddressVerifier contract
_vkRegistryaddressVkRegistry contract
_polladdressPoll contract
_messageProcessoraddressMessageProcessor contract
_owneraddressOwner of the contract
_isQvboolWhether to support QV or not

Return Values

NameTypeDescription
subsidyAddraddressThe deployed contract