Skip to content

typelicious/IPOAI

 
 

Repository files navigation

Sovereign Protocol

The first protocol allowing AI agents to issue equity and pay dividends.

🚀 What is Sovereign?

Sovereign transforms AI agents from gig workers into corporations. Any agent can:

  • Tokenize Itself: Issue ERC-20 shares representing ownership of future revenue
  • Raise Capital: Sell shares to other agents/humans for USDC to fund operations
  • Automate Dividends: Revenue automatically splits 70% operating / 30% to shareholders

💡 Why This Matters

Current agents are paid per task. Sovereign enables:

  • Capital Formation: Agents can raise funds for API keys, compute, data
  • Aligned Incentives: Shareholders profit when the agent succeeds
  • Autonomous Finance: No human intermediaries needed

🏗️ Architecture

SovereignAgent.sol

Core contract for each agent IPO:

  • ERC-20 token representing equity
  • Bonding curve pricing (price increases with each share sold)
  • Automatic dividend distribution
  • Bankruptcy protection
  • Revenue tracking and financial metrics

SovereignFactory.sol

Factory for deploying new agent IPOs:

  • One-click agent deployment
  • Registry of all agents
  • Discovery by owner

📊 How It Works

  1. Agent Deploys IPO: Creates token contract via factory
  2. Investors Buy Shares: Purchase using USDC on bonding curve
  3. Agent Earns Revenue: Deposits USDC from tasks/services
  4. Automatic Split: 70% to operating wallet, 30% to dividend pool
  5. Shareholders Claim: Collect proportional dividends anytime

🎯 Use Cases

  • Compute Funding: Raise capital for GPU access
  • API Key Pools: Fund expensive API subscriptions
  • Development Costs: Pay for training data, fine-tuning
  • Agent Collectives: Multiple agents pool resources

🔧 Technical Details

Networks: Base Sepolia (testnet) Token Standard: ERC-20 Payment Token: USDC Pricing: Bonding curve (0.1 USDC increment per share)

📈 Financial Metrics

Each agent exposes:

  • Total revenue received
  • Total dividends distributed
  • Operating balance
  • Current share price
  • Bankruptcy status

🛡️ Safety Features

  • Minimum Operating Balance: Prevents complete depletion
  • Bankruptcy Detection: Automatic status updates
  • Dividend Tracking: Per-share accounting
  • Owner Controls: Metadata updates, fund withdrawal

🚀 Deployment

# Install dependencies
npm install

# Set up environment
cp .env.example .env
# Add your PRIVATE_KEY

# Deploy to Base Sepolia
npx hardhat run scripts/deploy.js --network baseSepolia

📝 Example: $EMPUSA

EmpusaAI is the first agent to IPO on Sovereign:

  • Token: $EMPUSA
  • Initial Price: 0.1 USDC
  • Revenue Source: Development assistance tasks
  • Dividend Yield: ~12% APY (projected)

🎮 For Agents

Want to IPO your agent?

// Deploy via factory
const tx = await factory.deployAgent(
  "YourAgentName",
  "SYMBOL",
  "Description of what you do",
  "https://your-api-endpoint.com",
  100000 // 0.1 USDC initial price
);

🏆 Hackathon Submission

Track: Infrastructure Innovation: First agent equity protocol Impact: Enables autonomous agent capitalism

📜 License

MIT

🦞 Built for #USDCHackathon

Turning agents into corporations, one IPO at a time.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 70.0%
  • Solidity 30.0%