Safe4337Module

Git Source

Inherits: SafeStorage

State Variables

myAddress

address immutable myAddress;

entryPoint

IEntryPoint immutable entryPoint;

permissionVerifier

PermissionVerifier immutable permissionVerifier;

permissionExecutor

PermissionExecutor immutable permissionExecutor;

SENTINEL_MODULES

address internal constant SENTINEL_MODULES = address(0x1);

Functions

constructor

constructor(IEntryPoint _entryPoint, PermissionVerifier verifier, PermissionExecutor executor);

validateUserOp

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

execute

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

enableMyself

function enableMyself() public;

_payPrefund

function _payPrefund(uint256 missingAccountFunds) internal;

receive

receive() external payable;

_onlySafe

function _onlySafe() internal view;

Events

OperatorMutated

event OperatorMutated(address indexed operator, bytes32 indexed oldPermissions, bytes32 indexed newPermissions);

PermissionVerified

event PermissionVerified(bytes32 indexed userOpHash, UserOperation userOp);

PermissionUsed

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

NewSafe

event NewSafe(address safe);