Setup the nitro-contracts project
developTo prepare the environment for deploying Nitro contracts, clone the repository, checkout your desired release, install dependencies, and build the project. You must also initialize an environment file from the sample provided.
# Clone and enter the repository
git clone https://github.com/offchainlabs/nitro-contracts
cd nitro-contracts
# Checkout a specific release (e.g., develop or v3.1.1)
git checkout develop
# Install dependencies and build
yarn install
yarn build:all
# Initialize environment variables
cp .env-sample .envgit clone https://github.com/offchainlabs/nitro-contracts
cd nitro-contracts
git checkout develop
yarn install
yarn build:all
cp .env-sample .env