Skip to main content

IHookRegistry

Git Source

Functions

updateHook

This function is restricted to the owner of the contract.

Updates the allowed status of a hook.

Emits no events.

function updateHook(address hook, bool allowed) external;

Parameters

NameTypeDescription
hookaddressThe address of the hook to be updated.
allowedboolA boolean value indicating whether the hook should be allowed (true) or disallowed (false).

isHookAllowed

Checks if a hook is allowed.

This function is a view function and does not alter state.

function isHookAllowed(
address hook
) external view returns (bool);

Parameters

NameTypeDescription
hookaddressThe address of the hook to check.

Returns

NameTypeDescription
<none>boolA boolean value indicating whether the hook is allowed (true) or disallowed (false).