Skip to main content

MachinePeriphery

Git Source

Inherits: Initializable, MakinaPeripheryContext, IMachinePeriphery

State Variables

MachinePeripheryStorageLocation

bytes32 private constant MachinePeripheryStorageLocation =
0xf8e170f38959918ab7e583dba012d1b8610047e073c7ca874900b1e0c133c900;

Functions

_getMachinePeripheryStorage

function _getMachinePeripheryStorage() internal pure returns (MachinePeripheryStorage storage $);

constructor

constructor(address _peripheryRegistry) MakinaPeripheryContext(_peripheryRegistry);

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);

setMachine

Sets the machine address.

function setMachine(address _machine) external onlyFactory;

_setMachine

Sets the machine this contract is associated with.

function _setMachine(address _machine) internal virtual;

Structs

MachinePeripheryStorage

Note: storage-location: erc7201:makina.storage.MachinePeriphery

struct MachinePeripheryStorage {
address _machine;
}