IRegistrar
Inherits: IERC6372
Author: M^0 Labs
Functions
addToList
Adds account
to list
.
Parameters
list
bytes32
The key for some list.
account
address
The address of some account to be added.
removeFromList
Removes account
from list
.
Parameters
list
bytes32
The key for some list.
account
address
The address of some account to be removed.
setKey
Sets key
to value
.
Parameters
key
bytes32
Some key.
value
bytes32
Some value.
clockStartingTimestamp
Returns the starting timestamp of Epoch 1.
clockPeriod
Returns the period/duration, in seconds, of an epoch.
get
Returns the value of key
.
Parameters
key
bytes32
Some key.
Returns
<none>
bytes32
Some value.
get
Returns the values of keys
respectively.
Parameters
keys
bytes32[]
Some keys.
Returns
<none>
bytes32[]
Some values.
listContains
Returns whether list
contains account
.
Parameters
list
bytes32
The key for some list.
account
address
The address of some account.
Returns
<none>
bool
Whether list
contains account
.
listContains
Returns whether list
contains all specified accounts.
Parameters
list
bytes32
The key for some list.
accounts
address[]
An array of addressed of some accounts.
Returns
<none>
bool
Whether list
contains all specified accounts.
emergencyGovernor
Returns the address of the Emergency Governor.
emergencyGovernorDeployer
Returns the address of the Emergency Governor Deployer.
powerToken
Returns the address of the Power Token.
powerTokenDeployer
Returns the address of the Power Token Deployer.
standardGovernor
Returns the address of the Standard Governor.
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.
Events
AddressAddedToList
Emitted when account
is added to list
.
Parameters
list
bytes32
The key for the list.
account
address
The address of the added account.
AddressRemovedFromList
Emitted when account
is removed from list
.
Parameters
list
bytes32
The key for the list.
account
address
The address of the removed account.
KeySet
Emitted when key
is set to value
.
Parameters
key
bytes32
The key.
value
bytes32
The value.
Errors
InvalidEmergencyGovernorDeployerAddress
Revert message when the Emergency Governor Deployer retrieved in the constructor is address(0).
InvalidPowerTokenDeployerAddress
Revert message when the Power Token Deployer retrieved in the constructor is address(0).
InvalidStandardGovernorDeployerAddress
Revert message when the Standard Governor Deployer retrieved in the constructor is address(0).
InvalidVaultAddress
Revert message when the Vault retrieved in the constructor is address(0).
InvalidVoteTokenAddress
Revert message when the Vote Token retrieved in the constructor is address(0).
InvalidZeroGovernorAddress
Revert message when the Zero Governor specified in the constructor is address(0).
NotStandardOrEmergencyGovernor
Revert message when the caller is not the Standard Governor nor the Emergency Governor.