Skip to content

SafeOwnerCondition ​

Contract · src/SafeOwnerCondition.sol

Explained in: SafeOwnerCondition

Author: AragonX 2025

Inherits: ERC165, IPermissionCondition

A permission that only allows Safe owners to make use of a granted permission.

Constructor ​

constructor ​

solidity
constructor(IOwnerManager _safe)
ParameterTypeDescription
_safeIOwnerManager

Functions ​

isGranted ​

solidity
function isGranted(
    address _where,
    address _who,
    bytes32 _permissionId,
    bytes _data
) external view returns (bool)

Selector: 0x2675fdd0

Checks if a call is permitted.

ParameterTypeDescription
_whereaddressThe address of the target contract.
_whoaddressThe address (EOA or contract) for which the permissions are checked.
_permissionIdbytes32The permission identifier.
_databytesOptional data passed to the PermissionCondition implementation.
ReturnsTypeDescription
[0]boolReturns true if the call is permitted.

safe ​

solidity
function safe() external view returns (IOwnerManager)

Selector: 0x186f0354

ReturnsTypeDescription
[0]IOwnerManager

supportsInterface ​

solidity
function supportsInterface(bytes4 _interfaceId) external view returns (bool)

Selector: 0x01ffc9a7

Checks if an interface is supported by this or its parent contract.

ParameterTypeDescription
_interfaceIdbytes4The ID of the interface.

Errors ​

InvalidSafe ​

solidity
error InvalidSafe(address invalidAddress)

Thrown when given address is not a compatible Safe.

ParameterTypeDescription
invalidAddressaddressThe address received.