IERC7579AccountConfig
ERC-7579 Account Config. Accounts should implement this interface to expose information that identifies the account, supported modules and capabilities.
Functions
accountId
Returns the account id of the smart account
function accountId() external view returns (string memory accountImplementationId);
Returns
| Name | Type | Description |
|---|---|---|
accountImplementationId | string | the account id of the smart account MUST return a non-empty string The accountId SHOULD be structured like so: "vendorname.accountname.semver" The id SHOULD be unique across all smart accounts |
supportsExecutionMode
Function to check if the account supports a certain execution mode (see above)
function supportsExecutionMode(bytes32 encodedMode) external view returns (bool);
Parameters
| Name | Type | Description |
|---|---|---|
encodedMode | bytes32 | the encoded mode MUST return true if the account supports the mode and false otherwise |
supportsModule
Function to check if the account supports a certain module typeId
function supportsModule(uint256 moduleTypeId) external view returns (bool);
Parameters
| Name | Type | Description |
|---|---|---|
moduleTypeId | uint256 | the module type ID according to the ERC-7579 spec MUST return true if the account supports the module type and false otherwise |