Co-authored-by: Arr00 <13561405+arr00@users.noreply.github.com> Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
@ -21,7 +21,7 @@ pragma solidity ^0.8.20;
|
||||
* - `paymasterData` (`bytes`): Data for paymaster (only if paymaster exists)
|
||||
* - `signature` (`bytes`): Data passed into the account to verify authorization
|
||||
*
|
||||
* When passed to on-chain contacts, the following packed version is used.
|
||||
* When passed to on-chain contracts, the following packed version is used.
|
||||
* - `sender` (`address`)
|
||||
* - `nonce` (`uint256`)
|
||||
* - `initCode` (`bytes`): concatenation of factory address and factoryData (or empty)
|
||||
@ -164,13 +164,13 @@ interface IEntryPoint is IEntryPointNonces, IEntryPointStake {
|
||||
|
||||
/**
|
||||
* @dev Executes a batch of user operations.
|
||||
* @param beneficiary Address to which gas is refunded up completing the execution.
|
||||
* @param beneficiary Address to which gas is refunded upon completing the execution.
|
||||
*/
|
||||
function handleOps(PackedUserOperation[] calldata ops, address payable beneficiary) external;
|
||||
|
||||
/**
|
||||
* @dev Executes a batch of aggregated user operations per aggregator.
|
||||
* @param beneficiary Address to which gas is refunded up completing the execution.
|
||||
* @param beneficiary Address to which gas is refunded upon completing the execution.
|
||||
*/
|
||||
function handleAggregatedOps(
|
||||
UserOpsPerAggregator[] calldata opsPerAggregator,
|
||||
|
||||
@ -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