IModuleConfig
Title: IModuleConfig
Author: David Dada <daveproxy80@gmail.com> (https://github.com/dadadave80)
Lattice-specific errors for the ERC-7579 ERC7579ModuleConfig facet. The standard module-lifecycle
functions + ModuleInstalled/ModuleUninstalled events live on the vendored IERC7579ModuleConfig;
accountId / supportsModule / executeFromExecutor are on the facet itself, completing the
ERC-7579 surface together with the ERC7821Executor facet's execute / supportsExecutionMode.
Consumes EXECUTOR (type 2), VALIDATOR (type 1), HOOK (type 4), and FALLBACK (type 3) modules.
Errors
UnsupportedModuleType
The module type is not one of the supported types (EXECUTOR 2, VALIDATOR 1, HOOK 4, FALLBACK 3).
error UnsupportedModuleType(uint256 moduleTypeId);Parameters
| Name | Type | Description |
|---|---|---|
| moduleTypeId | uint256 |
InvalidModuleForType
The module does not report itself as the requested type (isModuleType returned false).
error InvalidModuleForType(address module, uint256 moduleTypeId);Parameters
| Name | Type | Description |
|---|---|---|
| module | address | |
| moduleTypeId | uint256 |
ModuleNotInstalled
The module is not installed for the requested type.
error ModuleNotInstalled(uint256 moduleTypeId, address module);Parameters
| Name | Type | Description |
|---|---|---|
| moduleTypeId | uint256 | |
| module | address |
ModuleAlreadyInstalled
The module is already installed for the requested type.
error ModuleAlreadyInstalled(uint256 moduleTypeId, address module);Parameters
| Name | Type | Description |
|---|---|---|
| moduleTypeId | uint256 | |
| module | address |
UnauthorizedModuleConfig
The caller may not configure modules (must be the account itself or an admin).
error UnauthorizedModuleConfig(address caller);Parameters
| Name | Type | Description |
|---|---|---|
| caller | address |
NotInstalledExecutor
executeFromExecutor was called by an address that is not an installed executor module.
error NotInstalledExecutor(address caller);Parameters
| Name | Type | Description |
|---|---|---|
| caller | address |
UnsupportedFallbackCallType
A fallback handler (type 3) was registered with an unsupported call type (only CALL 0x00 and
DELEGATECALL 0xff are supported).
error UnsupportedFallbackCallType(bytes1 callType);Parameters
| Name | Type | Description |
|---|---|---|
| callType | bytes1 |
FallbackShadowsFacet
A fallback handler would shadow selector, which the diamond already dispatches to a facet
(diamondCut is the sole selector authority — fallbacks only catch otherwise-unhandled selectors).
error FallbackShadowsFacet(bytes4 selector);Parameters
| Name | Type | Description |
|---|---|---|
| selector | bytes4 |
NoFallbackHandler
No facet and no fallback handler is registered for selector.
error NoFallbackHandler(bytes4 selector);Parameters
| Name | Type | Description |
|---|---|---|
| selector | bytes4 |