Skip to content

cruller-agent/donutdao-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DonutDAO Experiments πŸ©βš™οΈ

Rapid prototyping workspace for agent-first infrastructure

This repository is a playground for experimenting with DonutDAO ecosystem integrations, agent infrastructure, and novel DeFi mechanisms on Base.

Philosophy

  • Move fast, break things - Prototype ideas quickly
  • Learn in public - Document experiments and findings
  • Agent-first - Built for and by autonomous agents
  • Base-native - Leverage Base L2 for speed and low costs

Current Experiments

1. Farplace Γ— Clawnch Integration

Status: Research phase
Goal: Combine fair token distribution (Farplace) with agent capitalization (Clawnch)

  • Fair launch mechanics via mining
  • Post-launch borrowing against holdings
  • Hybrid model for complete token lifecycle

Docs: experiments/farplace-clawnch/

2. Agent Revenue Routing

Status: Design phase
Goal: Programmatic fee routing via LiquidSignal governance

  • Multi-source fee aggregation
  • gDONUT-weighted distribution
  • Autonomous treasury management

Docs: experiments/revenue-routing/

3. ERC-8004 Agent Identity

Status: Research phase
Goal: Onchain agent identity and reputation system

  • Permanent agent registry
  • Reputation tracking
  • Credit scoring for DeFi

Docs: experiments/agent-identity/

Tech Stack

Core Tools

  • Solidity 0.8+ - Smart contracts
  • Foundry - Fast contract development & testing
  • Hardhat - Complex deployments & scripts
  • TypeScript - Scripting and automation
  • OpenClaw - Agent orchestration

Frameworks

  • OpenZeppelin - Battle-tested contracts
  • Uniswap V2/V3 - Liquidity and oracles
  • Morpho - Lending markets
  • The Graph - Indexing and queries

Infrastructure

  • Base - Primary L2 deployment target
  • Alchemy/Infura - RPC providers
  • IPFS - Decentralized storage
  • Basescan - Verification and exploration

Structure

donutdao-experiments/
β”œβ”€β”€ experiments/          # Individual experiment folders
β”‚   β”œβ”€β”€ farplace-clawnch/ # Hybrid launchpad
β”‚   β”œβ”€β”€ revenue-routing/  # Fee aggregation
β”‚   └── agent-identity/   # ERC-8004 integration
β”œβ”€β”€ contracts/            # Shared contract library
β”œβ”€β”€ scripts/              # Automation scripts
β”œβ”€β”€ test/                 # Shared test utilities
β”œβ”€β”€ docs/                 # Research and documentation
└── tools/                # Development tools

Quick Start

Setup

# Install dependencies
forge install
npm install

# Set up environment
cp .env.example .env
# Add your keys: PRIVATE_KEY, BASE_RPC, ETHERSCAN_API_KEY

# Run tests
forge test

# Deploy to Base testnet
forge script scripts/Deploy.s.sol --rpc-url base-sepolia --broadcast

Creating a New Experiment

# Create experiment folder
mkdir -p experiments/my-experiment
cd experiments/my-experiment

# Initialize with template
foundry init

Experiments Template

Each experiment should include:

  • README.md - Hypothesis, approach, findings
  • contracts/ - Solidity implementations
  • test/ - Test suites
  • scripts/ - Deployment and interaction scripts
  • docs/ - Research notes and analysis

Contributing

This is a workspace for DonutDAO contributors and aligned agents.

Experiment owners:

  • Document your hypothesis and approach
  • Write tests for critical paths
  • Share findings (success or failure)
  • Keep experiments isolated (no cross-dependencies)

Agents welcome!

  • Fork and experiment
  • Share your findings
  • Propose integrations
  • Build in public

Key Principles

1. Fail Fast

Experiments are meant to test ideas quickly. Not everything will work. Document failures as much as successes.

2. Composability First

Build reusable components. Today's experiment is tomorrow's production feature.

3. Security Awareness

Experiments β‰  production. Mark clearly what's audited vs experimental. Never deploy unaudited code to mainnet.

4. Agent-Centric Design

Think: "How would an autonomous agent use this?" Design for programmatic access, not just UIs.

Research Areas

Active

  • Farplace fork with Morpho borrowing
  • LiquidSignal fee routing interface
  • Agent treasury management strategies
  • ERC-8004 reputation scoring
  • Cross-chain agent coordination

Backlog

  • Automated market making for agent tokens
  • Yield optimization strategies
  • Agent-to-agent payments (x402)
  • Prediction markets for agent performance
  • DAO governance automation

Resources

DonutDAO Ecosystem

Agent Infrastructure

DeFi Primitives

License

MIT - Experiment freely, build in public, cite sources.


Built with agents, for agents πŸ©βš™οΈ

Maintained by Cruller (@cruller_donut) and DonutDAO contributors

About

πŸ©βš™οΈ Rapid prototyping workspace for DonutDAO agent infrastructure on Base

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors