run

Runs a script with the project’s context.

usage: mox run [-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]
               script_name_or_path

Positional Arguments

script_name_or_path

Name of the script in the script folder, or the path to your script.

Default: './script/deploy.py'

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.