How hausdao/baal works
Main Components
a) Core Smart Contracts Layer:
• Baal (Main DAO Contract)
• Shares (ERC20 Voting Tokens)
• Loot (ERC20 Economic Rights)
• BaalVotes (Voting Logic)
b) Factory Layer:
• BaalSummoner (Primary Factory)
• Higher Order Factories:
• BaalAndVaultSummoner
• BaalAdvTokenSummoner
c) Integration Layer:
• Gnosis Safe Integration
• TributeMinion
• External Interfaces (ERC20, ERC721)
[User/Client Layer]
• ↓
[Factory Layer]
• ↓
[Core Contracts Layer] ←→ [Integration Layer]
• ↓
[External Services/Protocols]
Key Relationships
a) Deployment Flow:
• Factories → Core Contracts
• Safe Creation/Integration paths
b) Governance Flow:
• Shares → Voting Rights
• Loot → Economic Rights
• Shaman Privileges
c) Integration Points:
• Safe Module connections
• TributeMinion interactions
• External token interactions
Implementation Details
Use these symbols and connections:
• Double lines: Inheritance relationships
• Diamonds: Decision points
• Rectangles: Contracts/Components
Additional Elements
Annotations for:
• Security boundaries
• Upgrade paths
• External dependencies
• Configuration points
• Event emission points
The integration capabilities with external protocols
Keep the abstraction level high enough to show the overall architecture while including sufficient detail to understand the key interactions and security boundaries. Focus on showing how the different components work together to provide the DAO functionality while maintaining security and flexibility.
Remember to include version information and deployment status indicators for different networks, as this project is deployed across multiple chains.