Skip to main content

Plugin

Description

An abstract, non-upgradeable contract to inherit from when creating a plugin being deployed via the new keyword.

Implementation

internal function constructor

Constructs the plugin by storing the associated DAO.

constructor(contract IDAO _dao) internal
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