EmergencyGovernor
Inherits: IEmergencyGovernor, ThresholdGovernor
Author: M^0 Labs
State Variables
registrar
Returns the address of the Registrar.
standardGovernor
Returns the address of the Standard Governor.
zeroGovernor
Returns the address of the Zero Governor.
Functions
onlyZeroGovernor
Throws if called by any account other than the Zero Governor.
constructor
Constructs a new Emergency Governor contract.
Parameters
voteToken_
address
The address of the Vote Token contract.
zeroGovernor_
address
The address of the Zero Governor contract.
registrar_
address
The address of the Registrar contract.
standardGovernor_
address
The address of the StandardGovernor contract.
thresholdRatio_
uint16
The initial threshold ratio.
setThresholdRatio
Sets the threshold ratio to use going forward for newly created proposals.
Parameters
newThresholdRatio_
uint16
addToList
One of the valid proposals. Adds account
to list
at the Registrar.
Parameters
list_
bytes32
account_
address
removeFromList
One of the valid proposals. Removes account
to list
at the Registrar.
Parameters
list_
bytes32
account_
address
removeFromAndAddToList
One of the valid proposals. Removes accountToRemove
and adds accountToAdd
to list
at the Registrar.
Parameters
list_
bytes32
accountToRemove_
address
accountToAdd_
address
setKey
One of the valid proposals. Sets key
to value
at the Registrar.
Parameters
key_
bytes32
value_
bytes32
setStandardProposalFee
One of the valid proposals. Sets the proposal fee of the Standard Governor.
Parameters
newProposalFee_
uint256
_addToList
Adds account_
to list_
at the Registrar.
Parameters
list_
bytes32
The key for some list.
account_
address
The address of some account to be added.
_removeFromList
Removes account_
from list_
at the Registrar.
Parameters
list_
bytes32
The key for some list.
account_
address
The address of some account to be removed.
_revertIfInvalidCalldata
All proposals target this contract itself, and must call one of the listed functions to be valid.
Parameters
callData_
bytes
The call data to check.