DAO Traits
Last updated
Purpose: Interface definitions for DAO system contracts. Defines traits for upgradable contracts and proposal scripts.
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 implementationInterface for DAO proposal contracts. All proposals must implement this trait.
Functions:
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
execute : () -> (response bool uint)
- Execute proposal logic