Version: 0.31.0

info measure-contract


ligo info measure-contract SOURCE_FILE [OPTION]...


This sub-command compiles a source file and measures the contract's compiled size in bytes.



SOURCE_FILE is the path to the smart contract file.


-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).


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


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.

--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