Skip to content
LogoLogo

MachinePeriphery

Git Source

Inherits: Initializable, MakinaPeripheryContext, IMachinePeriphery

Constants

MachinePeripheryStorageLocation

bytes32 private constant MachinePeripheryStorageLocation =
        0xf8e170f38959918ab7e583dba012d1b8610047e073c7ca874900b1e0c133c900;

Functions

_getMachinePeripheryStorage

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

Returns

NameTypeDescription
$MachinePeripheryStorage

constructor

constructor(address _peripheryRegistry) MakinaPeripheryContext(_peripheryRegistry);

Parameters

NameTypeDescription
_peripheryRegistryaddress

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

NameTypeDescription
<none>address

setMachine

Sets the machine address.

function setMachine(address _machine) external onlyFactory;

Parameters

NameTypeDescription
_machineaddress

_setMachine

Sets the machine this contract is associated with.

function _setMachine(address _machine) internal virtual;

Parameters

NameTypeDescription
_machineaddress

Structs

MachinePeripheryStorage

Note:

  • storage-location: erc7201:makina.storage.MachinePeriphery
struct MachinePeripheryStorage {
        address _machine;
    }

Properties

NameTypeDescription
_machineaddress