When to Use This Pattern
Ensures timelocks are correctly triggered for governance actions, enforcing delays between proposal and execution to allow community review. Critical for DeFi lending protocols, DEX protocols, yield aggregators, cross-chain bridges, and DAOs that use timelocks to prevent flash loan attacks, allow security review periods, and protect against governance attacks. Timelocks provide a buffer against malicious governance actions - without proper enforcement, changes could be executed immediately.What This Pattern Checks
Verifies timelock integrity by comparing timelock state and parameters before and after transactions:forkPreTx()/forkPostTx(): Compare timelock state before and after transactionregisterStorageChangeTrigger(): Monitor changes to timelock storage slot- Ensures timelock delay is within acceptable bounds (1 day to 2 weeks)
- Confirms timelock activation follows proper procedures
Assertion Pattern
Full examples with tests available in the Phylax Assertion Examples Repository.

