SafeModule

Git Source

State Variables

safe

ISafe public safe;

entryPoint

IEntryPoint immutable entryPoint;

permissionVerifier

PermissionVerifier immutable permissionVerifier;

permissionExecutor

PermissionExecutor immutable permissionExecutor;

Functions

constructor

constructor(IEntryPoint _entryPoint, PermissionVerifier _verifier, PermissionExecutor _executor);

setSafe

function setSafe(address _safe) external;

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;

executeAsModule

function executeAsModule(address dest, uint256 value, bytes memory data) external;

_requireFromEntryPointOrOwner

function _requireFromEntryPointOrOwner() internal view;

_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);