Skip to main content

encode_hook_dispatch_plan

Function encode_hook_dispatch_plan 

Source
pub fn encode_hook_dispatch_plan(plan: &HookDispatchPlan) -> String
Expand description

What: Spell a plan as JSON.stringify writes it, without the trailing newline. Why: The incumbent writes JSON.stringify(plan) followed by one newline, and both dispatchers and the lease validator read the same bytes.

In TS you’d write (pseudocode):

JSON.stringify(plan)