Skip to main content

PluginCloneable

Description

An abstract, non-upgradeable contract to inherit from when creating a plugin being deployed via the minimal clones pattern (see ERC-1167).

Implementation

internal function constructor

Disables the initializers on the implementation contract to prevent it from being left uninitialized.

constructor() internal

internal function __PluginCloneable_init

Initializes the plugin by storing the associated DAO.

function __PluginCloneable_init(contract IDAO _dao) internal virtual
InputTypeDescription
_daocontract IDAOThe DAO contract.

public function pluginType

Returns the plugin's type

function pluginType() public pure returns (enum IPlugin.PluginType)

public function supportsInterface

Checks if this or the parent contract supports an interface by its ID.

function supportsInterface(bytes4 _interfaceId) public view virtual returns (bool)
InputTypeDescription
_interfaceIdbytes4The ID of the interface.
Output
0boolReturns true if the interface is supported.
© 2024