Stellar Governance
Stellar governance functionalities
Overview
This package provides governance modules for Soroban smart contracts:
- Timelock: Time-delayed execution of operations
Modules
Timelock
The timelock module provides functionality for time-delayed execution of operations, enabling governance mechanisms where actions must wait for a minimum delay before execution.
Core Concepts
- Operations: Actions to be executed on target contracts
- Scheduling: Proposing an operation with a delay period
- Execution: Running the operation after the delay has passed
- Cancellation: Removing a scheduled operation before execution
- Predecessors: Dependencies between operations (operation B requires operation A to be done first)
Usage Example
use ;
use ;
;
Installation
Add this to your Cargo.toml:
[]
# We recommend pinning to a specific version, because rapid iterations are expected as the library is in an active development phase.
= "=0.6.0"
Examples
See the following examples in the repository:
examples/timelock-controller/- Timelock controller with role-based access control