IPermissionExecutor

Git Source

Author: Flydexo - @Flydex0

The core contract in change or executing the userOperation after paying the FeeManager and transforming the AllowanceCalldata to ABI

Functions

execute

Execute a permissioned userOperation

function execute(
    address dest,
    uint256 value,
    bytes calldata func,
    Permission calldata permission,
    bytes32[] calldata proof,
    uint256 gasFee
) external;

Parameters

NameTypeDescription
destaddressThe called contract
valueuint256The msg.value
funcbytesThe AllowanceCalldata used to call the contract
permissionPermissionThe permission object
proofbytes32[]
gasFeeuint256The fee for the userOperation (used to compute the Permissive fee)

Events

PermissionUsed

PermissionUsed - When a permissioned userOperation passed with success

event PermissionUsed(
    bytes32 indexed permHash, address dest, uint256 value, bytes func, Permission permission, uint256 gasFee
);