MakinaGovernable
Inherits: AccessManagedUpgradeable, IMakinaGovernable
State Variables
MakinaGovernableStorageLocation
bytes32 private constant MakinaGovernableStorageLocation =
0x7e702089668346e906996be6de3dfc0cb2b0c125fc09b3c0391871825913e000;
Functions
_getMakinaGovernableStorage
function _getMakinaGovernableStorage() internal pure returns (MakinaGovernableStorage storage $);
constructor
constructor();
__MakinaGovernable_init
function __MakinaGovernable_init(MakinaGovernableInitParams calldata params) internal onlyInitializing;
onlyOperator
modifier onlyOperator();
onlyMechanic
modifier onlyMechanic();
onlySecurityCouncil
modifier onlySecurityCouncil();
onlyRiskManager
modifier onlyRiskManager();
onlyRiskManagerTimelock
modifier onlyRiskManagerTimelock();
notRecoveryMode
modifier notRecoveryMode();
mechanic
Address of the mechanic.
function mechanic() public view override returns (address);
securityCouncil
Address of the security council.
function securityCouncil() public view override returns (address);
riskManager
Address of the risk manager.
function riskManager() public view override returns (address);
riskManagerTimelock
Address of the risk manager timelock.
function riskManagerTimelock() public view override returns (address);
recoveryMode
True if the contract is in recovery mode, false otherwise.
function recoveryMode() public view returns (bool);
setMechanic
Sets a new mechanic.
function setMechanic(address newMechanic) external override restricted;
Parameters
Name | Type | Description |
---|---|---|
newMechanic | address | The address of new mechanic. |
setSecurityCouncil
Sets a new security council.
function setSecurityCouncil(address newSecurityCouncil) external override restricted;
Parameters
Name | Type | Description |
---|---|---|
newSecurityCouncil | address | The address of the new security council. |
setRiskManager
Sets a new risk manager.
function setRiskManager(address newRiskManager) external override restricted;
Parameters
Name | Type | Description |
---|---|---|
newRiskManager | address | The address of the new risk manager. |
setRiskManagerTimelock
Sets a new risk manager timelock.
function setRiskManagerTimelock(address newRiskManagerTimelock) external override restricted;
Parameters
Name | Type | Description |
---|---|---|
newRiskManagerTimelock | address | The address of the new risk manager timelock. |
setRecoveryMode
Sets the recovery mode.
function setRecoveryMode(bool enabled) external onlySecurityCouncil;
Parameters
Name | Type | Description |
---|---|---|
enabled | bool | True to enable recovery mode, false to disable it. |
Structs
MakinaGovernableStorage
Note: storage-location: erc7201:makina.storage.MakinaGovernable
struct MakinaGovernableStorage {
address _mechanic;
address _securityCouncil;
address _riskManager;
address _riskManagerTimelock;
bool _recoveryMode;
}