HooksLibrary
Last updated
Last updated
Library to be used when building custom operation hooks
Check if the current hook call is a before hook call
function isCallBeforeHook() internal view returns (bool);
Returns
<none>
bool
True if the current hook call is a before hook call, false otherwise
Check if the current hook call is an after hook call
function isCallAfterHook() internal view returns (bool);
Returns
<none>
bool
True if the current hook call is an after hook call, false otherwise
Check if the provided hook is a before hook
function isBeforeHook(address hook) internal pure returns (bool);
Parameters
hook
address
The address of the hook to check
Returns
<none>
bool
True if the provided hook is a before hook, false otherwise
Check if the provided hook is an after hook
function isAfterHook(address hook) internal pure returns (bool);
Parameters
hook
address
The address of the hook to check
Returns
<none>
bool
True if the provided hook is an after hook, false otherwise
Check if the provided hook is a before and after hook
function isBeforeAndAfterHook(address hook) internal pure returns (bool);
Parameters
hook
address
The address of the hook to check
Returns
<none>
bool
True if the provided hook is a before and after hook, false otherwise
error HookNotBefore();
error HookNotAfter();
error HookNotBeforeAndAfter();