Co-authored-by: Arr00 <13561405+arr00@users.noreply.github.com> Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
@ -15,7 +15,7 @@ uint256 constant MODULE_TYPE_HOOK = 4;
|
||||
interface IERC7579Module {
|
||||
/**
|
||||
* @dev This function is called by the smart account during installation of the module
|
||||
* @param data arbitrary data that may be required on the module during `onInstall` initialization
|
||||
* @param data arbitrary data that may be passed to the module during `onInstall` initialization
|
||||
*
|
||||
* MUST revert on error (e.g. if module is already enabled)
|
||||
*/
|
||||
@ -23,7 +23,7 @@ interface IERC7579Module {
|
||||
|
||||
/**
|
||||
* @dev This function is called by the smart account during uninstallation of the module
|
||||
* @param data arbitrary data that may be required on the module during `onUninstall` de-initialization
|
||||
* @param data arbitrary data that may be passed to the module during `onUninstall` de-initialization
|
||||
*
|
||||
* MUST revert on error
|
||||
*/
|
||||
@ -186,7 +186,7 @@ interface IERC7579ModuleConfig {
|
||||
* @dev Installs a Module of a certain type on the smart account
|
||||
* @param moduleTypeId the module type ID according to the ERC-7579 spec
|
||||
* @param module the module address
|
||||
* @param initData arbitrary data that may be required on the module during `onInstall`
|
||||
* @param initData arbitrary data that may be passed to the module during `onInstall`
|
||||
* initialization.
|
||||
*
|
||||
* MUST implement authorization control
|
||||
@ -200,8 +200,8 @@ interface IERC7579ModuleConfig {
|
||||
* @dev Uninstalls a Module of a certain type on the smart account
|
||||
* @param moduleTypeId the module type ID according the ERC-7579 spec
|
||||
* @param module the module address
|
||||
* @param deInitData arbitrary data that may be required on the module during `onInstall`
|
||||
* initialization.
|
||||
* @param deInitData arbitrary data that may be passed to the module during `onUninstall`
|
||||
* deinitialization.
|
||||
*
|
||||
* MUST implement authorization control
|
||||
* MUST call `onUninstall` on the module with the `deInitData` parameter if provided
|
||||
@ -214,7 +214,7 @@ interface IERC7579ModuleConfig {
|
||||
* @dev Returns whether a module is installed on the smart account
|
||||
* @param moduleTypeId the module type ID according the ERC-7579 spec
|
||||
* @param module the module address
|
||||
* @param additionalContext arbitrary data that may be required to determine if the module is installed
|
||||
* @param additionalContext arbitrary data that may be passed to determine if the module is installed
|
||||
*
|
||||
* MUST return true if the module is installed and false otherwise
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user