StandardGovernorDeployer

Git Source

Inherits: IStandardGovernorDeployer

Author: M^0 Labs

State Variables

registrar

Returns the address of the Registrar.

address public immutable registrar;

vault

Returns the address of the Vault.

address public immutable vault;

zeroGovernor

Returns the address of the Zero Governor.

address public immutable zeroGovernor;

zeroToken

Returns the address of the Zero Token.

address public immutable zeroToken;

lastDeploy

Returns the address of the last contract deployed by this contract.

address public lastDeploy;

nonce

Returns the nonce used to pre deterministically compute the address of the next deployed contract.

uint256 public nonce;

Functions

onlyZeroGovernor

Throws if called by any contract other than the Zero Governor.

modifier onlyZeroGovernor();

constructor

Constructs a new StandardGovernorDeployer contract.

constructor(address zeroGovernor_, address registrar_, address vault_, address zeroToken_);

Parameters

deploy

Deploys a new instance of a Standard Governor.

function deploy(
    address powerToken_,
    address emergencyGovernor_,
    address cashToken_,
    uint256 proposalFee_,
    uint256 maxTotalZeroRewardPerActiveEpoch_
) external onlyZeroGovernor returns (address);

Parameters

Returns

nextDeploy

Returns the address of the next contract this contract will deploy.

function nextDeploy() external view returns (address);

Copyright 2024 M^0 Foundation