ModuleSDK
Modules
getAddHookAction

getAddHookAction

Get the action to add a hook to the multi-plexer.

Usage

const action = getAddHookAction({
  hook: "0x123...",
  hookType: HookType.GLOBAL,
});

Parameters

hook

The address of the hook to add.

hookType

The type of the hook to add.

sig (optional)

The function signature in the case that the hookType is HookType.SIG or HookType.TARGET.

Returns