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
Name | Type | Description |
---|---|---|
|
| The address of the Vote Token contract. |
|
| The address of the Zero Governor contract. |
|
| The address of the Registrar contract. |
|
| The address of the StandardGovernor contract. |
|
| The initial threshold ratio. |
setThresholdRatio
Sets the threshold ratio to use going forward for newly created proposals.
Parameters
Name | Type | Description |
---|---|---|
|
|
addToList
One of the valid proposals. Adds account
to list
at the Registrar.
Parameters
Name | Type | Description |
---|---|---|
|
| |
|
|
removeFromList
One of the valid proposals. Removes account
to list
at the Registrar.
Parameters
Name | Type | Description |
---|---|---|
|
| |
|
|
removeFromAndAddToList
One of the valid proposals. Removes accountToRemove
and adds accountToAdd
to list
at the Registrar.
Parameters
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
|
setKey
One of the valid proposals. Sets key
to value
at the Registrar.
Parameters
Name | Type | Description |
---|---|---|
|
| |
|
|
setStandardProposalFee
One of the valid proposals. Sets the proposal fee of the Standard Governor.
Parameters
Name | Type | Description |
---|---|---|
|
|
_addToList
Adds account_
to list_
at the Registrar.
Parameters
Name | Type | Description |
---|---|---|
|
| The key for some list. |
|
| The address of some account to be added. |
_removeFromList
Removes account_
from list_
at the Registrar.
Parameters
Name | Type | Description |
---|---|---|
|
| The key for some list. |
|
| 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
Name | Type | Description |
---|---|---|
|
| The call data to check. |