IERC7579Module
Minimal configuration interface for ERC-7579 modules
Functions
onInstall
This function is called by the smart account during installation of the module
function onInstall(bytes calldata data) external;
Parameters
| Name | Type | Description |
|---|---|---|
data | bytes | arbitrary data that may be passed to the module during onInstall initialization MUST revert on error (e.g. if module is already enabled) |
onUninstall
This function is called by the smart account during uninstallation of the module
function onUninstall(bytes calldata data) external;
Parameters
| Name | Type | Description |
|---|---|---|
data | bytes | arbitrary data that may be passed to the module during onUninstall de-initialization MUST revert on error |
isModuleType
Returns boolean value if module is a certain type
function isModuleType(uint256 moduleTypeId) external view returns (bool);
Parameters
| Name | Type | Description |
|---|---|---|
moduleTypeId | uint256 | the module type ID according the ERC-7579 spec MUST return true if the module is of the given type and false otherwise |