Version: 0.28.0

compile parameter

SYNOPSIS#

ligo compile parameter SOURCE_FILE PARAMETER_EXPRESSION [OPTION]...

DESCRIPTION#

This sub-command compiles a parameter for a given contract to a Michelson expression. The resulting Michelson expression can be passed as an argument in a transaction which calls a contract.

ARGUMENTS#

SOURCE_FILE

SOURCE_FILE is the path to the smart contract file.

PARAMETER_EXPRESSION

The expression that will be compiled.

OPTIONS#

-e --entry-point <ENTRY_POINT>

The entry-point that will be compiled.

-s --syntax <SYNTAX>

The syntax that will be used. Currently supported syntaxes are "pascaligo", "cameligo", "reasonligo" and "jsligo". By default, the syntax is guessed from the extension (.ligo, .mligo, .religo, and .jsligo respectively).

--infer

Enable type inference

-p --protocol <PROTOCOL_VERSION>

Choose protocol's types/values pre-loaded into the LIGO environment (edo). By default, the current protocol (edo) will be used

--amount <AMOUNT>

The tezos amount the Michelson interpreter will use for the transaction.

--balance <BALANCE>

The balance the Michelson interpreter will use for the contract balance.

--sender <SENDER>

The sender the Michelson interpreter transaction will use.

--source <SOURCE>

The source the Michelson interpreter transaction will use.

--now <NOW>

The NOW value the Michelson interpreter will use (e.g. '2000-01-01T10

--format <DISPLAY-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.

--michelson-format <MICHELSON_FORMAT>

Is the format that will be used by compile contract for the resulting Michelson. Available formats are 'text' (default), 'json' and 'hex'.

-o --output-file <OUTPUT_FILE>

If used, prints the output into the specified file instead of stdout

--warn <BOOL>

Indicates whether warning messages should be printed in stderr or not

--werror <BOOL>

Indicates whether warning messages should be treated as errors or not