Skip to main content

DaoAuthorizable

Description

An abstract contract providing a meta-transaction compatible modifier for non-upgradeable contracts instantiated via the new keyword to authorize function calls through an associated DAO.

Implementation

internal function constructor

Constructs the contract by setting the associated DAO.

constructor(contract IDAO _dao) internal
InputTypeDescription
_daocontract IDAOThe associated DAO address.

public function dao

Returns the DAO contract.

function dao() public view returns (contract IDAO)
OutputTypeDescription
0contract IDAOThe DAO contract.

internal modifier auth

A modifier to make functions on inheriting contracts authorized. Permissions to call the function are checked through the associated DAO's permission manager.

modifier auth(bytes32 _permissionId)
InputTypeDescription
_permissionIdbytes32The permission identifier required to call the method this modifier is applied to.
© 2024