External Hook¶
ITTHook¶
The interface is unchanged between npm package 2.7.0 and version 2.7.7.
If a hook is set with setHook, the Unlocker calls didCall with its full calldata and caller at the end of these functions:
createPresets,createActuals,withdrawDeposit,claim,delegateClaimandcancelsetHook,disableCreate,disableCancelanddisableWithdrawdisableHook, which calls the hook once before removing it
setClaimingDelegate, setCurrentChainSupportsExternalDelegateRegistry and setEmergencyWithdrawRequestStatus do not call the hook.
didCall¶
Forwards the call context from the hooked contract.
A revert in the hook also reverts the call to the hooked contract.
Parameters¶
| Name | Type | Description |
|---|---|---|
| originalMsgData | bytes | Forwarded calldata from the called function. |
| originalMsgSender | address | Forwarded sender from the called function. |