$ forge compile
- Create a
.env
file in the root directory of this project, and fill in required environment variables. See.env.example
for an example. - Configure constructor parameters in
scripts/Deploy.s.sol
- Run the following command to deploy contracts:
# deploy on Sepolia testnet
forge script script/Deploy.s.sol:DeploySepolia --rpc-url sepolia --broadcast --verify
# deploy on mainnet
forge script script/Deploy.s.sol:DeployMainnet --rpc-url mainnet --broadcast --verify