Skip to main content

compute_hook_dispatch_plan

Function compute_hook_dispatch_plan 

Source
pub fn compute_hook_dispatch_plan(
    inputs: &HookPlanInputs<'_>,
) -> Result<HookDispatchPlan, HookPlanError>
Expand description

What: Compute the dispatch plan of one transaction from the real repository. Why: The incumbent’s computeHookDispatchPlan: the hooks path, the event switches (only the exact value false disables an event), the combined config parameters, the lock path and whether the lock is skipped.

In TS you’d write (pseudocode):

async function computeHookDispatchPlan(inputs): Promise<HookDispatchPlan>;