IRegistrar
Inherits: IERC6372
Author: M^0 Labs
Functions
addToList
Adds account
to list
.
Parameters
Name | Type | Description |
---|---|---|
|
| The key for some list. |
|
| The address of some account to be added. |
removeFromList
Removes account
from list
.
Parameters
Name | Type | Description |
---|---|---|
|
| The key for some list. |
|
| The address of some account to be removed. |
setKey
Sets key
to value
.
Parameters
Name | Type | Description |
---|---|---|
|
| Some key. |
|
| 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
Name | Type | Description |
---|---|---|
|
| Some key. |
Returns
Name | Type | Description |
---|---|---|
|
| Some value. |
get
Returns the values of keys
respectively.
Parameters
Name | Type | Description |
---|---|---|
|
| Some keys. |
Returns
Name | Type | Description |
---|---|---|
|
| Some values. |
listContains
Returns whether list
contains account
.
Parameters
Name | Type | Description |
---|---|---|
|
| The key for some list. |
|
| The address of some account. |
Returns
Name | Type | Description |
---|---|---|
|
| Whether |
listContains
Returns whether list
contains all specified accounts.
Parameters
Name | Type | Description |
---|---|---|
|
| The key for some list. |
|
| An array of addressed of some accounts. |
Returns
Name | Type | Description |
---|---|---|
|
| Whether |
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
Name | Type | Description |
---|---|---|
|
| The key for the list. |
|
| The address of the added account. |
AddressRemovedFromList
Emitted when account
is removed from list
.
Parameters
Name | Type | Description |
---|---|---|
|
| The key for the list. |
|
| The address of the removed account. |
KeySet
Emitted when key
is set to value
.
Parameters
Name | Type | Description |
---|---|---|
|
| The key. |
|
| 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.