// SPDX-License-Identifier: LGPL-3.0-only pragma solidity >=0.7.0 <0.9.0; interface ISafe { /** * @dev Allows a Module to execute a Safe transaction without any further confirmations. * @param to Destination address of module transaction. * @param value Ether value of module transaction. * @param data Data payload of module transaction. * @param operation Operation type of module transaction. */ function execTransactionFromModule(address to, uint256 value, bytes memory data, uint8 operation) external returns (bool success); /** * @notice Execute `operation` (0: Call, 1: DelegateCall) to `to` with `value` (Native Token) and return data * @param to Destination address of module transaction. * @param value Ether value of module transaction. * @param data Data payload of module transaction. * @param operation Operation type of module transaction. * @return success Boolean flag indicating if the call succeeded. * @return returnData Data returned by the call. */ function execTransactionFromModuleReturnData( address to, uint256 value, bytes memory data, uint8 operation ) external returns (bool success, bytes memory returnData); /** * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise. * @param dataHash Hash of the data (could be either a message hash or transaction hash) * @param data That should be signed (this is passed to an external validator contract) * @param signatures Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash. */ function checkSignatures(bytes32 dataHash, bytes memory data, bytes memory signatures) external view; /** * @dev Returns the domain separator for this contract, as defined in the EIP-712 standard. * @return bytes32 The domain separator hash. */ function domainSeparator() external view returns (bytes32); /** * @dev Returns array of modules. * @param start Start of the page. * @param pageSize Maximum number of modules that should be returned. * @return array Array of modules. * @return next Start of the next page. */ function getModulesPaginated(address start, uint256 pageSize) external view returns (address[] memory array, address next); /** * @notice Enables the module `module` for the Safe. * @dev This can only be done via a Safe transaction. * @param module Module to be enabled. */ function enableModule(address module) external; }