Generate the bytecode for the given script and compilation data.
Generate the bytecode for the given script and compilation data.
The compilation data required to compile this script
Optional debug?: DebugEnable compilation debugging information (default: false)
The identifier of the script to compile
Generate a scenario given this compiler's configuration.
If no scenarioId is specified, the default scenario is used. If no
unlockingScriptId is used, an empty script is used for all ["slot"] and
["copy"] locations in the generated transaction (useful for testing
isolated scripts, i.e. scripts without either tests or any corresponding
unlocking scripts).
Generate a scenario given this compiler's configuration.
If no scenarioId is specified, the default scenario is used. If no
unlockingScriptId is used, an empty script is used for all ["slot"] and
["copy"] locations in the generated transaction (useful for testing
isolated scripts, i.e. scripts without either tests or any corresponding
unlocking scripts).
Optional debug?: DebugEnable compilation debugging information (default: false)
Optional lockingIf no unlocking script is used in the scenario, the identifier of the
locking script to use in the source output slot. (Note: lockingScriptId
should only be defined if unlockingScriptId is undefined.)
Optional scenarioThe identifier of the scenario to generate
Optional unlockingThe identifier of the unlocking script to use in the scenario's input slot (the matching locking script will be used in the source output slot)
Generated using TypeDoc
A Compiler is a wrapper around a specific CompilerConfiguration that exposes a purely-functional interface and allows for stronger type checking.