Skip to content

Latest commit

 

History

History
75 lines (48 loc) · 1.02 KB

basic-usage.md

File metadata and controls

75 lines (48 loc) · 1.02 KB

Basic Usage

Build

You can either use Forge:

bunx settlemint scs foundry build

or Hardhat:

bunx settlemint scs hardhat build

Test

With Forge:

bunx settlemint scs foundry test

or Hardhat:

bunx settlemint scs hardhat test

Format

To format your contracts, run

bunx settlemint scs foundry format

Deploy to local network

You can deploy your contracts to a local network. First, run

bunx settlemint scs hardhat network

then:

bunx settlemint scs hardhat deploy local -m ignition/modules/main.ts

Deploy to platform network

To deploy your contracts to the platform network, first log in using the SDK:

bunx settlemint login

You only need to run this login command once.

Then, you can deploy your contracts using the following command:

bunx settlemint scs hardhat deploy remote -m ignition/modules/main.ts

Help

To get info about the tasks, run:

bunx settlemint scs --help