#IGovernorFactory
Matt Stam (@mattstam)
IGovernorFactory
Clone factory for deploying token clones (minimal proxies of IGovernor).
https://blog.openzeppelin.com/workshop-recap-cheap-contract-deployment-through-clones/ Only CREATE2 / deterministic creation is supported, since in the Git Consensus Protocol onboarding, the addresses will always need to be be predicted ahead of time. The usual flow is: 1. Predict the address of the governor using GovernorFactory.predictAddress() 2. Deploy the token using TokenFactory.createToken(..., govAddr, ...) 3. Deploy the governor using GovernorFactory.createGovernor(..., tokenAddr, ...)
#Methods
#createGovernor
Creates an IGovernor with an optional initial distribution. Uses CREATE2 so that the governor's address can be computed deterministically using predictAddress().
#Parameters
#Returns
#predictAddress
Predicts the address of an IGovernor deployed using CREATE2 + salt value.