deployments

View deployments of the project from your DB.

The –format-level will determine how much information you want to print based on your deployment.

Format levels: - 0: Contract Address - 1: Contract Address and Name - 2: Contract Address, Name, and Source Code - 3: Everything - 4: Raw JSON

usage: mox deployments [-h] [-d] [-q] [--format-level FORMAT_LEVEL]
                       [--checked] [--limit LIMIT] [--fork [FORK]]
                       [--network NETWORK | --url URL |
                       --prompt-live [PROMPT_LIVE]] [--db-path DB_PATH]
                       [--save-to-db [SAVE_TO_DB]]
                       contract_name

Positional Arguments

contract_name

Name of the contract to get, or “all”.

Named Arguments

-d, --debug

Run in debug mode

Default: False

-q, --quiet

Suppress all output except errors

Default: False

--format-level, -f

Format level of how much information you want to print based on your deployment.

Default: 1

--checked

Only return contracts that match the current edition of the code by comparing integrity hashes.

Default: False

--limit

Limit the number of deployments to get.

--fork
--network

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

--url, --rpc

RPC URL to run the script on.

--prompt-live

Prompt the user to make sure they want to run this script.

--db-path

The location of your database, defaults to your working project’s database in your {CONFIG_NAME}.

--save-to-db

Save the deployment to the database.