MachinePeriphery
Inherits: Initializable, MakinaPeripheryContext, IMachinePeriphery
Constants
MachinePeripheryStorageLocation
bytes32 private constant MachinePeripheryStorageLocation =
0xf8e170f38959918ab7e583dba012d1b8610047e073c7ca874900b1e0c133c900;Functions
_getMachinePeripheryStorage
function _getMachinePeripheryStorage() internal pure returns (MachinePeripheryStorage storage $);Returns
| Name | Type | Description |
|---|---|---|
| $ | MachinePeripheryStorage |
constructor
constructor(address _peripheryRegistry) MakinaPeripheryContext(_peripheryRegistry);Parameters
| Name | Type | Description |
|---|---|---|
| _peripheryRegistry | address |
onlyFactory
modifier onlyFactory();onlyMechanic
modifier onlyMechanic();onlySecurityCouncil
modifier onlySecurityCouncil();onlyRiskManager
modifier onlyRiskManager();onlyRiskManagerTimelock
modifier onlyRiskManagerTimelock();machine
Address of the associated machine.
function machine() public view virtual returns (address);Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
setMachine
Sets the machine address.
function setMachine(address _machine) external onlyFactory;Parameters
| Name | Type | Description |
|---|---|---|
| _machine | address |
_setMachine
Sets the machine this contract is associated with.
function _setMachine(address _machine) internal virtual;Parameters
| Name | Type | Description |
|---|---|---|
| _machine | address |
Structs
MachinePeripheryStorage
Note:
- storage-location: erc7201:makina.storage.MachinePeriphery
struct MachinePeripheryStorage {
address _machine;
}Properties
| Name | Type | Description |
|---|---|---|
| _machine | address |