deploy

Deploys a contract named in the config with a deploy script.

usage: mox deploy [-h] [-d] [-q] [--fork [FORK]] [--network NETWORK |
                  --url URL | --prompt-live [PROMPT_LIVE]] [--db-path DB_PATH]
                  [--save-to-db [SAVE_TO_DB]] [--account ACCOUNT |
                  --private-key PRIVATE_KEY] [--password PASSWORD |
                  --password-file-path PASSWORD_FILE_PATH]
                  contract_name

Positional Arguments

contract_name

Name of your named contract in your moccasin.toml to deploy.

Named Arguments

-d, --debug

Run in debug mode

Default: False

-q, --quiet

Suppress all output except errors

Default: False

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

--account

Keystore account you want to use.

--private-key

Private key you want to use to get an unlocked account.

--password

Password for the keystore account.

--password-file-path

Path to the file containing the password for the keystore account.