AccessControlContract

circle-info

📋 Contract Overview

Property
Value

📁 File

src/AccessControlContract.sol

🔧 Type

Upgradeable UUPS Proxy

⚙️ Solidity

0.8.33

📜 License

MIT

circle-info

🎯 Purpose: Centralized role management for the entire Built By DAO contract ecosystem—defining permissions, managing role hierarchies, and coordinating access control.


⚙️ Technical Specifications

Property
Value

🔄 Upgradeable

✅ Yes (UUPS Proxy)

⏱️ Default Timelock

48 hours

Inherits From

  • Initializable

  • AccessControlEnumerableUpgradeable

  • UUPSUpgradeable


🏛️ Role Hierarchy

circle-info

🎖️ Role Definitions

🏛️ GOVERNANCE_ROLE

Permissions:

  • Execute approved governance proposals

  • Call restricted functions on target contracts

  • Emergency governance actions

Holders:

  • Governance contract

  • Multi-sig for emergencies


🔧 Functions

🔐 Role Management

Grant Role

Revoke Role

Request Timelocked Change

Execute Change


📜 Events & Errors


🔒 Security Patterns

🔀 Role Separation

circle-exclamation
Role Conflict
Blocked

TREASURY + GOVERNANCE

MINTER + TREASURY


🔗 Contract Interactions

Contract
Interaction

📋 All contracts

Query role permissions

⚖️ Governance

Executes role changes via proposals

🔐 Multi-sig

Approves sensitive changes


chevron-right💻 Integration Exampleshashtag

Checking Permissions

Granting Role (Timelocked)

Listing Role Members


Governancechevron-rightTreasurychevron-rightSecuritychevron-right

Last updated