PowerTokenDeployer
Inherits: IPowerTokenDeployer
Author: M^0 Labs
State Variables
vault
Returns the address of the Vault.
zeroGovernor
Returns the address of the Zero Governor.
lastDeploy
Returns the address of the last contract deployed by this contract.
nonce
Returns the nonce used to pre deterministically compute the address of the next deployed contract.
Functions
constructor
Constructs a new PowerTokenDeployer contract.
Parameters
Name
Type
Description
zeroGovernor_
address
The address of the ZeroGovernor contract.
vault_
address
The address of the Vault contract.
deploy
Deploys a new instance of a Power Token.
Callable only by the Zero Governor.
Parameters
Name
Type
Description
bootstrapToken_
address
standardGovernor_
address
cashToken_
address
Returns
Name
Type
Description
<none>
address
The address of the deployed Emergency Governor.
nextDeploy
Returns the address of the next contract this contract will deploy.