Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Production-grade DAO budget execution system on Base L2. Define role-based spending policies, approve payouts with full context, and auto-execute from treasury smart wallets — integrated with Base Pay, upgradeable, fully indexed

License

Notifications You must be signed in to change notification settings

gromozpavel/DAOFlow

Repository files navigation

DAOFlow

Large-scale upgradeable on-chain governance and treasury automation system for Base network.

Overview

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.

Architecture

Core Modules

  1. RolesModule - Multi-role access control system with voting power delegation
  2. GovernanceModule - Full proposal lifecycle management with configurable parameters
  3. TreasuryModule - USDC vault with safety limits and Base Pay integration
  4. RegistryModule - Centralized event registry for Subgraph indexing
  5. DAOFlow - Main coordinator contract with upgrade support

Features

  • 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

Setup

git clone https://github.com/gromozpavel/DAOFlow
cd DAOFlow
forge install

Testing

forge test
forge coverage

Deployment

Using GitHub Actions (Recommended)

See WORKFLOW_GUIDE.md for complete instructions.

Quick start:

  1. Add secrets to GitHub repository
  2. Go to Actions → Deploy → Run workflow
  3. Select network and deploy
  4. Use On-chain Interaction workflow for governance

Manual Deployment

forge script script/Deploy.s.sol --rpc-url base-sepolia --broadcast

See ONCHAIN.md for manual interaction guide.

Upgrade

forge script script/Upgrade.s.sol --rpc-url base-sepolia --broadcast

Configuration

Governance 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

License

MIT

About

Production-grade DAO budget execution system on Base L2. Define role-based spending policies, approve payouts with full context, and auto-execute from treasury smart wallets — integrated with Base Pay, upgradeable, fully indexed

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published