AIBTC Working Group
  • AIBTC
  • Prompt2DAO
  • AIBTC Contracts
    • DAO Base Layer
    • DAO Extensions
      • Action Proposal Voting
      • DAO Charter
      • DAO Epoch
      • DAO Users
      • Onchain Messaging
      • Rewards Account
      • Token Owner
      • Treasury
    • DAO Proposals
      • Action Proposals
    • Agent Account
  • Agent Tools
    • Overview
    • Available Tools
      • Agent Account Tools
      • Agent Wallet Tools
      • DAO Tools
      • Database Tools
      • Faktory Tools
  • AIBTC Cache
    • Overview
    • Contract Calls
      • API Design
      • Endpoints
        • Decode Clarity Value
        • Read-Only Function Calls
        • Contract ABI
        • Known ABI Contracts
      • Clarity Value Types
      • Integration Examples
    • Cache Services
    • Error Handling
    • Utilities
  • Prompting
    • Action Proposal Prompts
    • Agent Account Prompts
  • Links
    • Common Terms
    • Our App
    • Discord
    • GitHub
    • Prompt2DAO on X
    • AIBTC on X
  • Templates
    • Template Style Guide
  • Documentation Templates
    • Smart Contract Documentation
    • Cache Service Documentation
    • Cache Endpoint Documentation
    • Agent Tool Documentation
    • Prompting Documentation
  • Example Implementations
    • Agent Account Example
    • Cache Service Example
    • Cache Endpoint Example
    • Agent Tool Example
Powered by GitBook
On this page
  • How Extensions Work
  • Extension Architecture
  • Available Extensions
  • Adding New Extensions
  • Extension Security
  1. AIBTC Contracts

DAO Extensions

Overview of the DAO extension system

Extensions are modular components that provide specific functionality to the DAO. They allow the DAO to be customized and expanded without modifying the core contract.

How Extensions Work

Each extension:

  • Implements the extension trait

  • Can be enabled or disabled by the DAO

  • Has specific permissions and capabilities

  • Interacts with the DAO through a standardized interface

Extension Architecture

Extensions follow a consistent pattern:

  1. Trait Implementation: Each extension implements both the base extension trait and its own specialized trait

  2. Callback Function: All extensions have a standard callback function for DAO communication

  3. Permission Checks: Extensions verify that calls come from authorized sources

  4. Event Logging: Extensions emit events for important actions

  5. Error Handling: Extensions use standardized error codes

Available Extensions

Extension
Purpose
Key Features

On-chain governance

Predefined actions, faster voting, veto, rewards

Mission and values

On-chain organizational constitution

Time tracking

Bitcoin block-based epochs, configurable length

User management

User registration, reputation tracking

Communication

Verified DAO/user messages, permanent records via print events

Reward disbursement

Securely holds and transfers SIP-010 token rewards

Token management

DAO Token URI updates, ownership controls

FT Asset management

Fungible token (SIP-010) support, controlled access

Adding New Extensions

The first cohort of AIBTC DAOs will not have the ability to add new extensions or modify the operation of the DAO. This scope is intentional to refine the voting and reward mechanisms.

Future iterations of AIBTC DAOs can implement an extension that allows for this and other features.

Extension Security

Extensions follow these security principles:

  • Only the DAO can enable/disable extensions

  • Extensions verify caller permissions

  • Critical operations require DAO approval

  • Extensions use standardized error handling

  • Extensions emit events for all important actions

For detailed documentation on each extension, see the individual extension pages.

PreviousDAO Base LayerNextAction Proposal Voting

Last updated 4 days ago

Action Proposals
DAO Charter
DAO Epoch
DAO Users
Onchain Messaging
Rewards Account
Token Owner
Treasury