Skip to Content
Stacks Market

DAO Traits

Purpose: Interface definitions for DAO system contracts. Defines traits for upgradable contracts and proposal scripts.

Traits Defined

upgradable

Interface for upgradable contracts. Used by dao-executor.

Functions:

get-impl : () -> (response (optional principal) uint) - Get current implementation set-impl : (principal) -> (response bool uint) - Set new implementation init : (principal) -> (response bool uint) - Initialize with implementation

proposal-script

Interface for DAO proposal contracts. All proposals must implement this trait.

Functions:

execute : () -> (response bool uint) - Execute proposal logic

Usage

Contracts implementing these traits can interact with the DAO system:

  • upgradable: Implemented by dao-executor for implementation management
  • proposal-script: Implemented by all proposal contracts for execution by dao-executor
Last updated on