Version: 0.42.1

compile constant

SYNOPSIS#

ligo compile constant SYNTAX _EXPRESSION

DESCRIPTION#

This sub-command compiles a LIGO expression to a Michelson value and its hash as a global constant. It works by compiling the LIGO expression to a Michelson expression and then interpreting it using Michelson's interpreter.

FLAGS#

--display-format FORMAT the format that will be used by the CLI. Available formats are 'dev', 'json', and 'human-readable' (default). When human-readable lacks details (we are still tweaking it), please contact us and use another format in the meanwhile. (alias: --format)

--init-file FILENAME the path to the smart contract file to be used for context initialization.

--no-warn disable warning messages

--project-root PATH The path to root of the project.

--warn-unused-rec disable warning messages

--werror treat warnings as errors

--without-run disable running of compiled expression.

-p PROTOCOL choose protocol's types/values pre-loaded into the LIGO environment (hangzhou , ithaca). By default, the current protocol (hangzhou) will be used (alias: --protocol)

-help print this help text and exit (alias: -?)