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
Input | Type | Description |
---|---|---|
_dao | contract IDAO | The 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)
Input | Type | Description |
---|---|---|
_interfaceId | bytes4 | The ID of the interface. |
Output | ||
0 | bool | Returns true if the interface is supported. |