Registrar
Inherits: IRegistrar
Author: M^0 Labs
State Variables
emergencyGovernorDeployer
Returns the address of the Emergency Governor Deployer.
powerTokenDeployer
Returns the address of the Power Token Deployer.
standardGovernorDeployer
Returns the address of the Standard Governor Deployer.
vault
Returns the address of the Vault.
zeroGovernor
Returns the address of the Zero Governor.
zeroToken
Returns the address of the Zero Token.
_valueAt
A mapping of keys to values.
Functions
onlyStandardOrEmergencyGovernor
Revert if the caller is not the Standard Governor nor the Emergency Governor.
constructor
Constructs a new Registrar contract.
Parameters
addToList
Adds account
to list
.
Parameters
removeFromList
Removes account
from list
.
Parameters
setKey
Sets key
to value
.
Parameters
clock
Returns the current timepoint according to the mode the contract is operating on.
get
Returns the value of key
.
Parameters
Returns
get
Returns the value of key
.
Parameters
Returns
listContains
Returns whether list
contains account
.
Parameters
Returns
listContains
Returns whether list
contains account
.
Parameters
Returns
powerToken
Returns the address of the Power Token.
CLOCK_MODE
Returns a machine-readable string description of the clock the contract is operating on.
clockStartingTimestamp
Returns the starting timestamp of Epoch 1.
clockPeriod
Returns the period/duration, in seconds, of an epoch.
emergencyGovernor
Returns the address of the Emergency Governor.
standardGovernor
Returns the address of the Standard Governor.
_revertIfNotStandardOrEmergencyGovernor
Reverts if the caller is not the Standard Governor nor the Emergency Governor.
_getValueKey
Returns the key used to store the value of key_
.
Parameters
Returns
_getIsInListKey
Returns the key used to store whether account_
is in list_
.
Parameters
Returns