Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

NameTypeDescription
databytesarbitrary 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

NameTypeDescription
databytesarbitrary 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

NameTypeDescription
moduleTypeIduint256the module type ID according the ERC-7579 spec MUST return true if the module is of the given type and false otherwise