2019-11-22 00:06:34 +04:00
|
|
|
open Cli_expect
|
|
|
|
|
|
|
|
let%expect_test _ =
|
|
|
|
(* TODO good? *)
|
|
|
|
run_ligo_good [] ;
|
2019-11-21 21:43:34 +04:00
|
|
|
[%expect {|
|
|
|
|
NAME
|
|
|
|
ligo
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
ligo COMMAND ...
|
|
|
|
|
2019-11-21 21:44:27 +04:00
|
|
|
MORE HELP
|
|
|
|
Use `ligo COMMAND --help' for help on a single command.
|
|
|
|
|
2019-11-21 21:43:34 +04:00
|
|
|
COMMANDS
|
2020-01-08 14:54:21 +04:00
|
|
|
changelog
|
|
|
|
Dump the LIGO changelog to stdout.
|
|
|
|
|
2019-11-21 21:43:34 +04:00
|
|
|
compile-contract
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Compile a contract.
|
2019-11-21 21:43:34 +04:00
|
|
|
|
|
|
|
compile-expression
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Compile to a michelson value.
|
2019-11-21 21:43:34 +04:00
|
|
|
|
|
|
|
compile-parameter
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Compile parameters to a Michelson expression. The
|
|
|
|
resulting Michelson expression can be passed as an argument in a
|
2019-11-21 21:44:27 +04:00
|
|
|
transaction which calls a contract.
|
2019-11-21 21:43:34 +04:00
|
|
|
|
|
|
|
compile-storage
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Compile an initial storage in ligo syntax to a
|
|
|
|
Michelson expression. The resulting Michelson expression can be
|
2019-11-21 21:43:34 +04:00
|
|
|
passed as an argument in a transaction which originates a
|
2019-11-21 21:44:27 +04:00
|
|
|
contract.
|
2019-11-21 21:43:34 +04:00
|
|
|
|
|
|
|
dry-run
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Run a smart-contract with the given storage and input.
|
2019-11-21 21:43:34 +04:00
|
|
|
|
|
|
|
evaluate-value
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Evaluate a given definition.
|
2019-11-21 21:43:34 +04:00
|
|
|
|
2019-12-11 23:42:52 +04:00
|
|
|
interpret
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Interpret the expression in the context initialized by
|
2019-12-11 23:42:52 +04:00
|
|
|
the provided source file.
|
|
|
|
|
2020-02-07 16:07:57 +04:00
|
|
|
ligo-interpret
|
|
|
|
Subcommand: (temporary / dev only) uses LIGO interpret.
|
|
|
|
|
2019-12-20 18:52:49 +04:00
|
|
|
list-declarations
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: List all the top-level declarations.
|
2019-12-20 18:52:49 +04:00
|
|
|
|
2019-11-29 20:00:54 +04:00
|
|
|
measure-contract
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Measure a contract's compiled size in bytes.
|
2019-11-29 20:00:54 +04:00
|
|
|
|
2020-01-21 16:24:51 +04:00
|
|
|
print-ast
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Print the AST. Warning: Intended for development of
|
2020-01-21 16:24:51 +04:00
|
|
|
LIGO and can break at any time.
|
|
|
|
|
|
|
|
print-cst
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Print the CST. Warning: Intended for development of
|
2020-01-21 16:24:51 +04:00
|
|
|
LIGO and can break at any time.
|
|
|
|
|
|
|
|
print-mini-c
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Print Mini-C. Warning: Intended for development of
|
2020-01-21 16:24:51 +04:00
|
|
|
LIGO and can break at any time.
|
|
|
|
|
|
|
|
print-typed-ast
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Print the typed AST. Warning: Intended for development
|
2020-01-21 16:24:51 +04:00
|
|
|
of LIGO and can break at any time.
|
|
|
|
|
2019-11-21 21:43:34 +04:00
|
|
|
run-function
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Run a function with the given parameter.
|
2019-11-21 21:43:34 +04:00
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
--help[=FMT] (default=auto)
|
|
|
|
Show this help in format FMT. The value FMT must be one of `auto',
|
|
|
|
`pager', `groff' or `plain'. With `auto', the format is `pager` or
|
2019-12-13 13:11:18 +04:00
|
|
|
`plain' whenever the TERM env var is `dumb' or undefined.
|
|
|
|
|
|
|
|
--version
|
|
|
|
Show version information. |} ] ;
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
run_ligo_good [ "--help" ] ;
|
|
|
|
[%expect {|
|
|
|
|
NAME
|
|
|
|
ligo
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
ligo COMMAND ...
|
|
|
|
|
2019-11-21 21:44:27 +04:00
|
|
|
MORE HELP
|
|
|
|
Use `ligo COMMAND --help' for help on a single command.
|
|
|
|
|
2019-11-21 21:06:25 +04:00
|
|
|
COMMANDS
|
2020-01-08 14:54:21 +04:00
|
|
|
changelog
|
|
|
|
Dump the LIGO changelog to stdout.
|
|
|
|
|
2019-11-22 00:06:34 +04:00
|
|
|
compile-contract
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Compile a contract.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
2019-11-21 21:06:25 +04:00
|
|
|
compile-expression
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Compile to a michelson value.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
compile-parameter
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Compile parameters to a Michelson expression. The
|
|
|
|
resulting Michelson expression can be passed as an argument in a
|
2019-11-21 21:44:27 +04:00
|
|
|
transaction which calls a contract.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
2019-11-21 21:06:25 +04:00
|
|
|
compile-storage
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Compile an initial storage in ligo syntax to a
|
|
|
|
Michelson expression. The resulting Michelson expression can be
|
2019-11-21 21:06:25 +04:00
|
|
|
passed as an argument in a transaction which originates a
|
2019-11-21 21:44:27 +04:00
|
|
|
contract.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
2019-11-21 21:06:25 +04:00
|
|
|
dry-run
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Run a smart-contract with the given storage and input.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
evaluate-value
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Evaluate a given definition.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
2019-12-11 23:42:52 +04:00
|
|
|
interpret
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Interpret the expression in the context initialized by
|
2019-12-11 23:42:52 +04:00
|
|
|
the provided source file.
|
|
|
|
|
2020-02-07 16:07:57 +04:00
|
|
|
ligo-interpret
|
|
|
|
Subcommand: (temporary / dev only) uses LIGO interpret.
|
|
|
|
|
2019-12-20 18:52:49 +04:00
|
|
|
list-declarations
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: List all the top-level declarations.
|
2019-12-20 18:52:49 +04:00
|
|
|
|
2019-11-26 03:30:12 +04:00
|
|
|
measure-contract
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Measure a contract's compiled size in bytes.
|
2019-11-26 03:30:12 +04:00
|
|
|
|
2020-01-21 16:24:51 +04:00
|
|
|
print-ast
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Print the AST. Warning: Intended for development of
|
2020-01-21 16:24:51 +04:00
|
|
|
LIGO and can break at any time.
|
|
|
|
|
|
|
|
print-cst
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Print the CST. Warning: Intended for development of
|
2020-01-21 16:24:51 +04:00
|
|
|
LIGO and can break at any time.
|
|
|
|
|
|
|
|
print-mini-c
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Print Mini-C. Warning: Intended for development of
|
2020-01-21 16:24:51 +04:00
|
|
|
LIGO and can break at any time.
|
|
|
|
|
|
|
|
print-typed-ast
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Print the typed AST. Warning: Intended for development
|
2020-01-21 16:24:51 +04:00
|
|
|
of LIGO and can break at any time.
|
|
|
|
|
2019-11-29 20:00:54 +04:00
|
|
|
run-function
|
2020-01-27 20:28:31 +04:00
|
|
|
Subcommand: Run a function with the given parameter.
|
2019-11-29 20:00:54 +04:00
|
|
|
|
2019-11-22 00:06:34 +04:00
|
|
|
OPTIONS
|
|
|
|
--help[=FMT] (default=auto)
|
|
|
|
Show this help in format FMT. The value FMT must be one of `auto',
|
|
|
|
`pager', `groff' or `plain'. With `auto', the format is `pager` or
|
2019-12-13 13:11:18 +04:00
|
|
|
`plain' whenever the TERM env var is `dumb' or undefined.
|
|
|
|
|
|
|
|
--version
|
|
|
|
Show version information. |} ] ;
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
run_ligo_good [ "compile-contract" ; "--help" ] ;
|
|
|
|
[%expect {|
|
|
|
|
NAME
|
2020-01-27 20:28:31 +04:00
|
|
|
ligo-compile-contract - Subcommand: Compile a contract.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
ligo compile-contract [OPTION]... SOURCE_FILE ENTRY_POINT
|
|
|
|
|
|
|
|
ARGUMENTS
|
|
|
|
ENTRY_POINT (required)
|
|
|
|
ENTRY_POINT is entry-point that will be compiled.
|
|
|
|
|
|
|
|
SOURCE_FILE (required)
|
2020-01-27 20:28:31 +04:00
|
|
|
SOURCE_FILE is the path to the smart contract file.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
--format=DISPLAY_FORMAT, --display-format=DISPLAY_FORMAT
|
|
|
|
(absent=human-readable)
|
|
|
|
DISPLAY_FORMAT is 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.
|
|
|
|
|
|
|
|
--help[=FMT] (default=auto)
|
|
|
|
Show this help in format FMT. The value FMT must be one of `auto',
|
|
|
|
`pager', `groff' or `plain'. With `auto', the format is `pager` or
|
|
|
|
`plain' whenever the TERM env var is `dumb' or undefined.
|
|
|
|
|
|
|
|
--michelson-format=MICHELSON_FORMAT (absent=text)
|
|
|
|
MICHELSON_FORMAT is the format that will be used by
|
|
|
|
compile-contract for the resulting Michelson. Available formats
|
|
|
|
are 'text' (default), 'json' and 'hex'.
|
|
|
|
|
|
|
|
-s SYNTAX, --syntax=SYNTAX (absent=auto)
|
|
|
|
SYNTAX is the syntax that will be used. Currently supported
|
2020-01-27 20:28:31 +04:00
|
|
|
syntaxes are "pascaligo", "cameligo" and "reasonligo". By default,
|
|
|
|
the syntax is guessed from the extension (.ligo, .mligo, .religo
|
|
|
|
respectively).
|
2019-12-13 13:11:18 +04:00
|
|
|
|
|
|
|
--version
|
|
|
|
Show version information. |} ] ;
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
run_ligo_good [ "compile-parameter" ; "--help" ] ;
|
|
|
|
[%expect {|
|
|
|
|
NAME
|
2020-01-27 20:28:31 +04:00
|
|
|
ligo-compile-parameter - Subcommand: Compile parameters to a Michelson
|
|
|
|
expression. The resulting Michelson expression can be passed as an
|
2019-11-21 21:44:27 +04:00
|
|
|
argument in a transaction which calls a contract.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
ligo compile-parameter [OPTION]... SOURCE_FILE ENTRY_POINT
|
|
|
|
PARAMETER_EXPRESSION
|
|
|
|
|
|
|
|
ARGUMENTS
|
|
|
|
ENTRY_POINT (required)
|
|
|
|
ENTRY_POINT is entry-point that will be compiled.
|
|
|
|
|
|
|
|
PARAMETER_EXPRESSION (required)
|
|
|
|
PARAMETER_EXPRESSION is the expression that will be compiled.
|
|
|
|
|
|
|
|
SOURCE_FILE (required)
|
2020-01-27 20:28:31 +04:00
|
|
|
SOURCE_FILE is the path to the smart contract file.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
OPTIONS
|
2020-01-03 21:09:16 +04:00
|
|
|
--amount=AMOUNT (absent=0)
|
2020-01-27 20:28:31 +04:00
|
|
|
AMOUNT is the amount the Michelson interpreter will use.
|
2020-01-03 21:09:16 +04:00
|
|
|
|
2019-11-22 00:06:34 +04:00
|
|
|
--format=DISPLAY_FORMAT, --display-format=DISPLAY_FORMAT
|
|
|
|
(absent=human-readable)
|
|
|
|
DISPLAY_FORMAT is 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.
|
|
|
|
|
|
|
|
--help[=FMT] (default=auto)
|
|
|
|
Show this help in format FMT. The value FMT must be one of `auto',
|
|
|
|
`pager', `groff' or `plain'. With `auto', the format is `pager` or
|
|
|
|
`plain' whenever the TERM env var is `dumb' or undefined.
|
|
|
|
|
|
|
|
--michelson-format=MICHELSON_FORMAT (absent=text)
|
|
|
|
MICHELSON_FORMAT is the format that will be used by
|
|
|
|
compile-contract for the resulting Michelson. Available formats
|
|
|
|
are 'text' (default), 'json' and 'hex'.
|
|
|
|
|
2020-01-03 21:09:16 +04:00
|
|
|
--predecessor-timestamp=PREDECESSOR_TIMESTAMP
|
2020-01-27 20:28:31 +04:00
|
|
|
PREDECESSOR_TIMESTAMP is the predecessor_timestamp (now value
|
|
|
|
minus one minute) the Michelson interpreter will use (e.g.
|
2020-01-04 02:01:46 +04:00
|
|
|
'2000-01-01T10:10:10Z')
|
2020-01-03 21:09:16 +04:00
|
|
|
|
2019-11-22 00:06:34 +04:00
|
|
|
-s SYNTAX, --syntax=SYNTAX (absent=auto)
|
|
|
|
SYNTAX is the syntax that will be used. Currently supported
|
2020-01-27 20:28:31 +04:00
|
|
|
syntaxes are "pascaligo", "cameligo" and "reasonligo". By default,
|
|
|
|
the syntax is guessed from the extension (.ligo, .mligo, .religo
|
|
|
|
respectively).
|
2019-12-13 13:11:18 +04:00
|
|
|
|
2020-01-03 21:09:16 +04:00
|
|
|
--sender=SENDER
|
2020-01-27 20:28:31 +04:00
|
|
|
SENDER is the sender the Michelson interpreter transaction will
|
2020-01-03 21:09:16 +04:00
|
|
|
use.
|
|
|
|
|
|
|
|
--source=SOURCE
|
2020-01-27 20:28:31 +04:00
|
|
|
SOURCE is the source the Michelson interpreter transaction will
|
2020-01-03 21:09:16 +04:00
|
|
|
use.
|
|
|
|
|
2019-12-13 13:11:18 +04:00
|
|
|
--version
|
|
|
|
Show version information. |} ] ;
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
run_ligo_good [ "compile-storage" ; "--help" ] ;
|
|
|
|
[%expect {|
|
|
|
|
NAME
|
2020-01-27 20:28:31 +04:00
|
|
|
ligo-compile-storage - Subcommand: Compile an initial storage in ligo
|
|
|
|
syntax to a Michelson expression. The resulting Michelson expression
|
2019-11-21 21:06:25 +04:00
|
|
|
can be passed as an argument in a transaction which originates a
|
2019-11-21 21:44:27 +04:00
|
|
|
contract.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
ligo compile-storage [OPTION]... SOURCE_FILE ENTRY_POINT
|
|
|
|
STORAGE_EXPRESSION
|
|
|
|
|
|
|
|
ARGUMENTS
|
|
|
|
ENTRY_POINT (required)
|
|
|
|
ENTRY_POINT is entry-point that will be compiled.
|
|
|
|
|
|
|
|
SOURCE_FILE (required)
|
2020-01-27 20:28:31 +04:00
|
|
|
SOURCE_FILE is the path to the smart contract file.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
STORAGE_EXPRESSION (required)
|
|
|
|
STORAGE_EXPRESSION is the expression that will be compiled.
|
|
|
|
|
|
|
|
OPTIONS
|
2020-01-03 21:09:16 +04:00
|
|
|
--amount=AMOUNT (absent=0)
|
2020-01-27 20:28:31 +04:00
|
|
|
AMOUNT is the amount the Michelson interpreter will use.
|
2020-01-03 21:09:16 +04:00
|
|
|
|
2019-11-22 00:06:34 +04:00
|
|
|
--format=DISPLAY_FORMAT, --display-format=DISPLAY_FORMAT
|
|
|
|
(absent=human-readable)
|
|
|
|
DISPLAY_FORMAT is 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.
|
|
|
|
|
|
|
|
--help[=FMT] (default=auto)
|
|
|
|
Show this help in format FMT. The value FMT must be one of `auto',
|
|
|
|
`pager', `groff' or `plain'. With `auto', the format is `pager` or
|
|
|
|
`plain' whenever the TERM env var is `dumb' or undefined.
|
|
|
|
|
|
|
|
--michelson-format=MICHELSON_FORMAT (absent=text)
|
|
|
|
MICHELSON_FORMAT is the format that will be used by
|
|
|
|
compile-contract for the resulting Michelson. Available formats
|
|
|
|
are 'text' (default), 'json' and 'hex'.
|
|
|
|
|
2020-01-03 21:09:16 +04:00
|
|
|
--predecessor-timestamp=PREDECESSOR_TIMESTAMP
|
2020-01-27 20:28:31 +04:00
|
|
|
PREDECESSOR_TIMESTAMP is the predecessor_timestamp (now value
|
|
|
|
minus one minute) the Michelson interpreter will use (e.g.
|
2020-01-04 02:01:46 +04:00
|
|
|
'2000-01-01T10:10:10Z')
|
2020-01-03 21:09:16 +04:00
|
|
|
|
2019-11-22 00:06:34 +04:00
|
|
|
-s SYNTAX, --syntax=SYNTAX (absent=auto)
|
|
|
|
SYNTAX is the syntax that will be used. Currently supported
|
2020-01-27 20:28:31 +04:00
|
|
|
syntaxes are "pascaligo", "cameligo" and "reasonligo". By default,
|
|
|
|
the syntax is guessed from the extension (.ligo, .mligo, .religo
|
|
|
|
respectively).
|
2019-12-13 13:11:18 +04:00
|
|
|
|
2020-01-03 21:09:16 +04:00
|
|
|
--sender=SENDER
|
2020-01-27 20:28:31 +04:00
|
|
|
SENDER is the sender the Michelson interpreter transaction will
|
2020-01-03 21:09:16 +04:00
|
|
|
use.
|
|
|
|
|
|
|
|
--source=SOURCE
|
2020-01-27 20:28:31 +04:00
|
|
|
SOURCE is the source the Michelson interpreter transaction will
|
2020-01-03 21:09:16 +04:00
|
|
|
use.
|
|
|
|
|
2019-12-13 13:11:18 +04:00
|
|
|
--version
|
|
|
|
Show version information. |} ] ;
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
run_ligo_good [ "dry-run" ; "--help" ] ;
|
|
|
|
[%expect {|
|
|
|
|
NAME
|
2020-01-27 20:28:31 +04:00
|
|
|
ligo-dry-run - Subcommand: Run a smart-contract with the given storage
|
2019-11-21 21:06:25 +04:00
|
|
|
and input.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
ligo dry-run [OPTION]... SOURCE_FILE ENTRY_POINT PARAMETER_EXPRESSION
|
|
|
|
STORAGE_EXPRESSION
|
|
|
|
|
|
|
|
ARGUMENTS
|
|
|
|
ENTRY_POINT (required)
|
|
|
|
ENTRY_POINT is entry-point that will be compiled.
|
|
|
|
|
|
|
|
PARAMETER_EXPRESSION (required)
|
|
|
|
PARAMETER_EXPRESSION is the expression that will be compiled.
|
|
|
|
|
|
|
|
SOURCE_FILE (required)
|
2020-01-27 20:28:31 +04:00
|
|
|
SOURCE_FILE is the path to the smart contract file.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
STORAGE_EXPRESSION (required)
|
|
|
|
STORAGE_EXPRESSION is the expression that will be compiled.
|
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
--amount=AMOUNT (absent=0)
|
2020-01-27 20:28:31 +04:00
|
|
|
AMOUNT is the amount the Michelson interpreter will use.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
--format=DISPLAY_FORMAT, --display-format=DISPLAY_FORMAT
|
|
|
|
(absent=human-readable)
|
|
|
|
DISPLAY_FORMAT is 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.
|
|
|
|
|
|
|
|
--help[=FMT] (default=auto)
|
|
|
|
Show this help in format FMT. The value FMT must be one of `auto',
|
|
|
|
`pager', `groff' or `plain'. With `auto', the format is `pager` or
|
|
|
|
`plain' whenever the TERM env var is `dumb' or undefined.
|
|
|
|
|
2019-12-19 21:59:27 +04:00
|
|
|
--predecessor-timestamp=PREDECESSOR_TIMESTAMP
|
2020-01-27 20:28:31 +04:00
|
|
|
PREDECESSOR_TIMESTAMP is the predecessor_timestamp (now value
|
|
|
|
minus one minute) the Michelson interpreter will use (e.g.
|
2020-01-04 02:01:46 +04:00
|
|
|
'2000-01-01T10:10:10Z')
|
2019-12-19 21:59:27 +04:00
|
|
|
|
2019-11-22 00:06:34 +04:00
|
|
|
-s SYNTAX, --syntax=SYNTAX (absent=auto)
|
|
|
|
SYNTAX is the syntax that will be used. Currently supported
|
2020-01-27 20:28:31 +04:00
|
|
|
syntaxes are "pascaligo", "cameligo" and "reasonligo". By default,
|
|
|
|
the syntax is guessed from the extension (.ligo, .mligo, .religo
|
|
|
|
respectively).
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
--sender=SENDER
|
2020-01-27 20:28:31 +04:00
|
|
|
SENDER is the sender the Michelson interpreter transaction will
|
2019-12-19 21:59:27 +04:00
|
|
|
use.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
--source=SOURCE
|
2020-01-27 20:28:31 +04:00
|
|
|
SOURCE is the source the Michelson interpreter transaction will
|
2019-12-19 21:59:27 +04:00
|
|
|
use.
|
2019-12-13 13:11:18 +04:00
|
|
|
|
|
|
|
--version
|
|
|
|
Show version information. |} ] ;
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
run_ligo_good [ "run-function" ; "--help" ] ;
|
|
|
|
[%expect {|
|
|
|
|
NAME
|
2020-01-27 20:28:31 +04:00
|
|
|
ligo-run-function - Subcommand: Run a function with the given
|
2019-11-21 21:06:25 +04:00
|
|
|
parameter.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
ligo run-function [OPTION]... SOURCE_FILE ENTRY_POINT
|
|
|
|
PARAMETER_EXPRESSION
|
|
|
|
|
|
|
|
ARGUMENTS
|
|
|
|
ENTRY_POINT (required)
|
|
|
|
ENTRY_POINT is entry-point that will be compiled.
|
|
|
|
|
|
|
|
PARAMETER_EXPRESSION (required)
|
|
|
|
PARAMETER_EXPRESSION is the expression that will be compiled.
|
|
|
|
|
|
|
|
SOURCE_FILE (required)
|
2020-01-27 20:28:31 +04:00
|
|
|
SOURCE_FILE is the path to the smart contract file.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
--amount=AMOUNT (absent=0)
|
2020-01-27 20:28:31 +04:00
|
|
|
AMOUNT is the amount the Michelson interpreter will use.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
--format=DISPLAY_FORMAT, --display-format=DISPLAY_FORMAT
|
|
|
|
(absent=human-readable)
|
|
|
|
DISPLAY_FORMAT is 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.
|
|
|
|
|
|
|
|
--help[=FMT] (default=auto)
|
|
|
|
Show this help in format FMT. The value FMT must be one of `auto',
|
|
|
|
`pager', `groff' or `plain'. With `auto', the format is `pager` or
|
|
|
|
`plain' whenever the TERM env var is `dumb' or undefined.
|
|
|
|
|
2019-12-19 21:59:27 +04:00
|
|
|
--predecessor-timestamp=PREDECESSOR_TIMESTAMP
|
2020-01-27 20:28:31 +04:00
|
|
|
PREDECESSOR_TIMESTAMP is the predecessor_timestamp (now value
|
|
|
|
minus one minute) the Michelson interpreter will use (e.g.
|
2020-01-04 02:01:46 +04:00
|
|
|
'2000-01-01T10:10:10Z')
|
2019-12-19 21:59:27 +04:00
|
|
|
|
2019-11-22 00:06:34 +04:00
|
|
|
-s SYNTAX, --syntax=SYNTAX (absent=auto)
|
|
|
|
SYNTAX is the syntax that will be used. Currently supported
|
2020-01-27 20:28:31 +04:00
|
|
|
syntaxes are "pascaligo", "cameligo" and "reasonligo". By default,
|
|
|
|
the syntax is guessed from the extension (.ligo, .mligo, .religo
|
|
|
|
respectively).
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
--sender=SENDER
|
2020-01-27 20:28:31 +04:00
|
|
|
SENDER is the sender the Michelson interpreter transaction will
|
2019-12-19 21:59:27 +04:00
|
|
|
use.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
--source=SOURCE
|
2020-01-27 20:28:31 +04:00
|
|
|
SOURCE is the source the Michelson interpreter transaction will
|
2019-12-19 21:59:27 +04:00
|
|
|
use.
|
2019-12-13 13:11:18 +04:00
|
|
|
|
|
|
|
--version
|
|
|
|
Show version information. |} ] ;
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
run_ligo_good [ "evaluate-value" ; "--help" ] ;
|
|
|
|
[%expect {|
|
|
|
|
NAME
|
2020-01-27 20:28:31 +04:00
|
|
|
ligo-evaluate-value - Subcommand: Evaluate a given definition.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
ligo evaluate-value [OPTION]... SOURCE_FILE ENTRY_POINT
|
|
|
|
|
|
|
|
ARGUMENTS
|
|
|
|
ENTRY_POINT (required)
|
|
|
|
ENTRY_POINT is entry-point that will be compiled.
|
|
|
|
|
|
|
|
SOURCE_FILE (required)
|
2020-01-27 20:28:31 +04:00
|
|
|
SOURCE_FILE is the path to the smart contract file.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
--amount=AMOUNT (absent=0)
|
2020-01-27 20:28:31 +04:00
|
|
|
AMOUNT is the amount the Michelson interpreter will use.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
--format=DISPLAY_FORMAT, --display-format=DISPLAY_FORMAT
|
|
|
|
(absent=human-readable)
|
|
|
|
DISPLAY_FORMAT is 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.
|
|
|
|
|
|
|
|
--help[=FMT] (default=auto)
|
|
|
|
Show this help in format FMT. The value FMT must be one of `auto',
|
|
|
|
`pager', `groff' or `plain'. With `auto', the format is `pager` or
|
|
|
|
`plain' whenever the TERM env var is `dumb' or undefined.
|
|
|
|
|
2019-12-19 21:59:27 +04:00
|
|
|
--predecessor-timestamp=PREDECESSOR_TIMESTAMP
|
2020-01-27 20:28:31 +04:00
|
|
|
PREDECESSOR_TIMESTAMP is the predecessor_timestamp (now value
|
|
|
|
minus one minute) the Michelson interpreter will use (e.g.
|
2020-01-04 02:01:46 +04:00
|
|
|
'2000-01-01T10:10:10Z')
|
2019-12-19 21:59:27 +04:00
|
|
|
|
2019-11-22 00:06:34 +04:00
|
|
|
-s SYNTAX, --syntax=SYNTAX (absent=auto)
|
|
|
|
SYNTAX is the syntax that will be used. Currently supported
|
2020-01-27 20:28:31 +04:00
|
|
|
syntaxes are "pascaligo", "cameligo" and "reasonligo". By default,
|
|
|
|
the syntax is guessed from the extension (.ligo, .mligo, .religo
|
|
|
|
respectively).
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
--sender=SENDER
|
2020-01-27 20:28:31 +04:00
|
|
|
SENDER is the sender the Michelson interpreter transaction will
|
2019-12-19 21:59:27 +04:00
|
|
|
use.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
--source=SOURCE
|
2020-01-27 20:28:31 +04:00
|
|
|
SOURCE is the source the Michelson interpreter transaction will
|
2019-12-19 21:59:27 +04:00
|
|
|
use.
|
2019-12-13 13:11:18 +04:00
|
|
|
|
|
|
|
--version
|
|
|
|
Show version information. |} ] ;
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
run_ligo_good [ "compile-expression" ; "--help" ] ;
|
|
|
|
[%expect {|
|
|
|
|
NAME
|
2020-01-27 20:28:31 +04:00
|
|
|
ligo-compile-expression - Subcommand: Compile to a michelson value.
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
SYNOPSIS
|
2019-11-30 01:22:56 +04:00
|
|
|
ligo compile-expression [OPTION]... SYNTAX _EXPRESSION
|
2019-11-22 00:06:34 +04:00
|
|
|
|
|
|
|
ARGUMENTS
|
|
|
|
_EXPRESSION (required)
|
|
|
|
_EXPRESSION is the expression that will be compiled.
|
|
|
|
|
2019-11-30 01:22:56 +04:00
|
|
|
SYNTAX (required)
|
|
|
|
SYNTAX is the syntax that will be used. Currently supported
|
2020-01-29 22:01:05 +04:00
|
|
|
syntaxes are "pascaligo", "cameligo" and "reasonligo". By default,
|
|
|
|
the syntax is guessed from the extension (.ligo, .mligo, .religo
|
|
|
|
respectively).
|
2019-11-30 01:22:56 +04:00
|
|
|
|
2019-11-22 00:06:34 +04:00
|
|
|
OPTIONS
|
|
|
|
--format=DISPLAY_FORMAT, --display-format=DISPLAY_FORMAT
|
|
|
|
(absent=human-readable)
|
|
|
|
DISPLAY_FORMAT is 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.
|
|
|
|
|
|
|
|
--help[=FMT] (default=auto)
|
|
|
|
Show this help in format FMT. The value FMT must be one of `auto',
|
|
|
|
`pager', `groff' or `plain'. With `auto', the format is `pager` or
|
|
|
|
`plain' whenever the TERM env var is `dumb' or undefined.
|
|
|
|
|
|
|
|
--michelson-format=MICHELSON_FORMAT (absent=text)
|
|
|
|
MICHELSON_FORMAT is the format that will be used by
|
|
|
|
compile-contract for the resulting Michelson. Available formats
|
2019-12-13 13:11:18 +04:00
|
|
|
are 'text' (default), 'json' and 'hex'.
|
|
|
|
|
|
|
|
--version
|
|
|
|
Show version information. |} ] ;
|