IPermissionVerifier

Git Source

Author: Flydexo - @Flydex0

Contract only callable with delegatecall by the account itself or it's module or plugin

Functions

verify

verify - Function that make all the Permissive related checks on the userOperation.

For validationData specs see see https://eips.ethereum.org/EIPS/eip-4337#definitions

function verify(UserOperation calldata userOp, bytes32 userOpHash, uint256 missingAccountFunds)
    external
    returns (uint256 validationData);

Parameters

NameTypeDescription
userOpUserOperationThe userOperation
userOpHashbytes32The userOperation hash
missingAccountFundsuint256The funds the sender needs to pay to the EntryPoint

Returns

NameTypeDescription
validationDatauint256The validation data that signals are valid / invalid signature and the timespan of the permission

computeGasFee

computeGasFee - Function called to compute the gasFee of the userOperation depending on all the gas parameters of the operation.

Use this function to determine the fee in the execute function

function computeGasFee(UserOperation memory userOp) external pure returns (uint256 fee);

Parameters

NameTypeDescription
userOpUserOperationThe userOperation

Events

PermissionVerified

PermissionVerified - Emitted when a permission is successfully verified

event PermissionVerified(bytes32 indexed userOpHash, UserOperation userOp);