-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
194 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: CC0-1.0 | ||
pragma solidity ^0.8.25; | ||
|
||
import {PackedUserOperation} from "@eth-infinitism/account-abstraction/interfaces/PackedUserOperation.sol"; | ||
import {IExecutionHook} from "./IExecutionHook.sol"; | ||
|
||
interface IPermissionHook is IExecutionHook { | ||
/// @notice Run the pre execution permission hook specified by the `functionId`, passing in the whole user | ||
/// operation. | ||
/// @dev To indicate the entire call should revert, the function MUST revert. | ||
/// @param functionId An identifier that routes the call to different internal implementations, should there be | ||
/// more than one. | ||
/// @param uo The packed user operation | ||
/// @return Context to pass to a post execution hook, if present. An empty bytes array MAY be returned. | ||
function preUserOpExecutionHook(uint8 functionId, PackedUserOperation calldata uo) | ||
external | ||
returns (bytes memory); | ||
} |
Oops, something went wrong.