Timelocks and Execution Delays: Developer Reference
1. Smart Contract Architecture
2. The Transaction Lifecycle State Machine
┌──────────────┐
│ Unset │
└──────┬───────┘
│ schedule() called
▼
┌──────────────┐
│ Pending │ ◄─── block.timestamp < scheduledTime
└──────┬───────┘
│ block.timestamp >= scheduledTime
▼
┌──────────────┐
│ Ready │ ─── cancel() called ──► [ Unset ]
└──────┬───────┘
│ execute() called
▼
┌──────────────┐
│ Executed │ (Removed from state / closed)
└──────────────┘
3. Operation Hashing & Identification
4. Programmatic Administration: Set, Edit, and Remove
A. Setting or Editing an Individual Delay
B. Removing an Individual Timelock
C. Restricting Bypasses via Minimal Role Delays
5. Technical API Reference
A. Scheduling an Operation
B. Executing a Scheduled Operation
C. Cancelling an Operation
D. Enforcing Safety Floors
6. Security Architecture Notes
Self-Referential Timelocks (Admin Constraint)
Reentrancy & Context Preservation
7. Code Examples & Scripts
Scenario: Programmatic Scheduling and Execution of a Performance Fee Update
Last updated
Was this helpful?