EmergencyGovernorDeployer

Git Source

Inherits: IEmergencyGovernorDeployer

Author: M^0 Labs

State Variables

registrar

Returns the address of the Registrar.

address public immutable registrar;

zeroGovernor

Returns the address of the Zero Governor.

address public immutable zeroGovernor;

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 EmergencyGovernorDeployer contract.

constructor(address zeroGovernor_, address registrar_);

Parameters

NameTypeDescription

zeroGovernor_

address

The address of the ZeroGovernor contract.

registrar_

address

The address of the Registrar contract.

deploy

Deploys a new instance of an Emergency Governor.

function deploy(address powerToken_, address standardGovernor_, uint16 thresholdRatio_)
    external
    onlyZeroGovernor
    returns (address);

Parameters

NameTypeDescription

powerToken_

address

standardGovernor_

address

thresholdRatio_

uint16

Returns

NameTypeDescription

<none>

address

The address of the deployed Emergency Governor.

nextDeploy

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

function nextDeploy() external view returns (address);

Copyright 2024 M^0 Foundation