IEmergencyGovernorDeployer

Git Source

Inherits: IDeployer

Author: M^0 Labs

Functions

deploy

Deploys a new instance of an Emergency Governor.

function deploy(address powerToken, address standardGovernor, uint16 thresholdRatio) external returns (address);

Parameters

NameTypeDescription

powerToken

address

The address of some Power Token that will be used by voters.

standardGovernor

address

The address of some Standard Governor.

thresholdRatio

uint16

The threshold ratio to use for proposals.

Returns

NameTypeDescription

<none>

address

The address of the deployed Emergency Governor.

registrar

Returns the address of the Registrar.

function registrar() external view returns (address);

zeroGovernor

Returns the address of the Zero Governor.

function zeroGovernor() external view returns (address);

Errors

InvalidRegistrarAddress

Revert message when the Registrar specified in the constructor is address(0).

error InvalidRegistrarAddress();

InvalidZeroGovernorAddress

Revert message when the Zero Governor specified in the constructor is address(0).

error InvalidZeroGovernorAddress();

NotZeroGovernor

Revert message when the caller is not the Zero Governor.

error NotZeroGovernor();

Copyright 2024 M^0 Foundation