Building with SettleMint/SettleMint CLI/Commands/Smart contract set

Foundry

Usage: settlemint smart-contract-set foundry|f [options] [command]

Foundry commands for building and testing smart contracts

Options:
-h, --help display help for command

Commands:
build [options] Build the smart contracts using Foundry/forge
format [options] Format the smart contracts using Foundry/forge
network [options] Start a development network Foundry/anvil
test [options] Test the smart contracts using Foundry/forge
help [command] display help for command

Build

Usage: settlemint smart-contract-set foundry build 
Examples:

# Build the smart contracts using Foundry
$ settlemint scs foundry build

# Get list of possible Forge build options
$ settlemint scs foundry build --help

# Build the smart contracts with additional Forge options
$ settlemint scs foundry build --optimize --force

Build the smart contracts using Foundry/forge

Options:
-h, --help Get list of possible forge options

Format

Usage: settlemint smart-contract-set foundry format 
Examples:

# Format the smart contracts using Foundry
$ settlemint scs foundry format

# Get list of possible Forge format options
$ settlemint scs foundry format --help

# Format the smart contracts with additional Forge options
$ settlemint scs foundry format --check

Format the smart contracts using Foundry/forge

Options:
-h, --help Get list of possible forge options

Network

Usage: settlemint smart-contract-set foundry network 
Examples:

# Start a development network using Foundry
$ settlemint scs foundry network

# Get list of possible Anvil options
$ settlemint scs foundry network --help

# Start a development network using Foundry with a specific port
$ settlemint scs foundry network --port 3000

Start a development network Foundry/anvil

Options:
-h, --help Get list of possible anvil options

Test

Usage: settlemint smart-contract-set foundry test 
Examples:

# Run tests using Foundry
$ settlemint scs foundry test

# Get list of possible Forge test options
$ settlemint scs foundry test --help

# Run a specific test function
$ settlemint scs foundry test --match-test testToken

Test the smart contracts using Foundry/forge

Options:
-h, --help Get list of possible forge options

On this page