liquidity-client init-storageΒΆ

LIQUIDITY-CLIENT-INIT-STORAGE

LIQUIDITY-CLIENT-INIT-STORAGE

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
COMMON OPTIONS
MORE HELP
EXIT STATUS
ENVIRONMENT
BUGS

NAME

liquidity-client-init-storage - Generate input storage

SYNOPSIS

liquidity-client init-storage [OPTION]... [INPUTS]...

DESCRIPTION

Generate input storage with initialization function

OPTIONS

-n ADDR:PORT, --node=ADDR:PORT

Set the address and port to ADDR:PORT of a node to run or deploy contracts (default: 127.0.0.1:8733)

-s dn1..., --source=dn1...

Set the source to dn1... for manager operations (default: derived from public key)

INPUTS

Inputs to initializtion function

EXAMPLES

Failing example:
liquidity-client init-storage --files tests/others/multisig.liq --node http://testnet-node.dunscan.io 'Set [dn1HieGdCFcT8Lg9jDANfEGbJyt6arqEuSJb]' 2p

tests/others/multisig.liq:25.4-25.74: Failed at runtime: in /chains/main/blocks/head/helpers/scripts/run_code
Failed with "Number of owners must be greater or equal to quorum"

Working example:
./liquidity-client init-storage --files tests/others/multisig.liq --node http://testnet-node.dunscan.io 'Set [dn1HieGdCFcT8Lg9jDANfEGbJyt6arqEuSJb]' 1p

Constant initial storage generated in "tests/others/multisig.liq.init.tz"

COMMON OPTIONS

These options are common to all commands.
-c
, --compact

Produce compact Michelson

--files=FILE1,FILE2,...

Filenames to compile (comma separated)

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

-m ContractName, --main=ContractName

Produce code for contract named ContractName

-N NETWORK, --network=NETWORK (absent LIQUID_NETWORK env)

Set the network to use (possible values: Dune, Tezos).

--no-annot

Don't produce any annotations when compiling

--no-ignore-annots

Don't ignore annotations of failure when decompiling

--no-inline

Disable inlining

--no-love-typecheck

Don't typecheck resulting Love output

--no-peephole

Disable peephole optimizations

--no-simplify

Disable simplifications

--no-uncurry

Don't uncurry non partially applied lambdas

--reason, --re

Use ReasonML syntax

-t LANG, --target=LANG

Set the target language (possible values: michelson, love).

-v, --verbose

Increment verbosity

-V level

Verbosity level

--version

Show version and exit

MORE HELP

Use ’liquidity-client COMMAND --help' for help on a single command.

EXIT STATUS

init-storage exits with the following status:

0

on success.

124

on command line parsing errors.

125

on unexpected internal errors (bugs).

ENVIRONMENT

These environment variables affect the execution of init-storage:
LIQUID_NETWORK

Network to use, possible values: Dune, Tezos.

BUGS

Report bugs at https://github.com/OCamlPro/liquidity/issues.