compile

Compiles a specific Vyper contract or all vyper contracts in the project.

If no contract or contract path is given, this command will: 1. Find all .vy files in the src/ directory 2. Compile each file using the Vyper compiler 3. Output the compiled artifacts to the out/ directory

Use this command to prepare your contracts for deployment or testing.

usage: mox compile [-h] [-d] [-q] [--network NETWORK |
                   --is_zksync [IS_ZKSYNC]]
                   [contract_or_contract_path]

Positional Arguments

contract_or_contract_path

Optional argument to compile a specific contract.

Named Arguments

-d, --debug

Run in debug mode

Default: False

-q, --quiet

Suppress all output except errors

Default: False

--network

Alias of the network (from the moccasin.toml).

--is_zksync