Skip to main content

compileSilverScript

@hardkas/core


@hardkas/core / compileSilverScript

Function: compileSilverScript()

compileSilverScript(request): Promise<SilverCompileResult>

Defined in: packages/core/src/silverscript.ts:477

Compiles SilverScript source with the managed silverc and validates the result.

The source and constructor arguments are written to a private temporary directory, so the bytes digested are exactly the bytes compiled. Any compiler failure or unexpected output is an error; nothing is substituted.

Parameters​

request​

SilverCompileRequest

Returns​

Promise<SilverCompileResult>