Hooks
Hooks enable BORGs to run custom logic after key lifecycle events such as Safe recovery.
baseRecoveryHook.sol– ERC‑165 compliant base contract that defines theafterRecoveryhook.exampleRecoveryHook.sol– minimal implementation emitting aRecoveryHookTriggeredevent when invoked.exampleRecoveryHookRevert.sol– sample hook that deliberately reverts, illustrating how hooks can halt the recovery process.
Developers can extend these contracts to integrate their own post-recovery behavior.