HooksLibrary
Library to be used when building custom operation hooks
Functions
isCallBeforeHook
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
isCallAfterHook
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
isBeforeHook
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
isAfterHook
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
isBeforeAndAfterHook
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
Errors
HookNotBefore
error HookNotBefore();
HookNotAfter
error HookNotAfter();
HookNotBeforeAndAfter
error HookNotBeforeAndAfter();
Last updated