Large-scale upgradeable on-chain governance and treasury automation system for Base network.
DAOFlow is a foundational DAO infrastructure module enabling proposals, voting, quorum management, execution, role-based permissions, automated payout flows, and Base Pay integrations for USDC treasury management.
- RolesModule - Multi-role access control system with voting power delegation
- GovernanceModule - Full proposal lifecycle management with configurable parameters
- TreasuryModule - USDC vault with safety limits and Base Pay integration
- RegistryModule - Centralized event registry for Subgraph indexing
- DAOFlow - Main coordinator contract with upgrade support
- UUPS upgradeable pattern for all contracts
- Flexible governance models (quorum, thresholds, weighted voting)
- Time-locked execution with configurable delays
- Role-based access control with delegation
- Treasury safety limits and daily payout caps
- Complete event suite for analytics
- Demonstrated v1 → v2 upgrade path
git clone https://github.com/gromozpavel/DAOFlow
cd DAOFlow
forge installforge test
forge coverageSee WORKFLOW_GUIDE.md for complete instructions.
Quick start:
- Add secrets to GitHub repository
- Go to Actions → Deploy → Run workflow
- Select network and deploy
- Use On-chain Interaction workflow for governance
forge script script/Deploy.s.sol --rpc-url base-sepolia --broadcastSee ONCHAIN.md for manual interaction guide.
forge script script/Upgrade.s.sol --rpc-url base-sepolia --broadcastGovernance parameters:
- Voting delay: 7200 blocks (~24 hours)
- Voting period: 50400 blocks (~7 days)
- Execution delay: 86400 seconds (24 hours)
- Proposal threshold: 100000 tokens
- Quorum: 40%
Treasury limits:
- Max single payout: 1M USDC
- Daily limit: 5M USDC
MIT