Start by cloning the project repository to your local machine:
git clone https://github.com/breederdao/tactics-war-sc.gitNavigate to the cloned project directory and switch to the develop branch:
git fetch origin develop
git checkout developGo to the project root directory and install the necessary dependencies using pnpm:
pnpm installUnder the packages/contracts directory, create a .env file and populate it with the following variables:
DEBUG=mud:*
# Required for contract deployment
PRIVATE_KEY=change_with_your_private_key
# Required to run `packages/contracts/script` files
RPC_URL=your_rpc_url
CHAIN_ID=your_chain_id
PLAYER_KEY=your_player_private_key
WORLD_ADDRESS=your_deployed_world_addressExample for Sovrun Testnet:
RPC_URL=https://sovruntest.rpc.caldera.xyz/http
CHAIN_ID=8202496Make sure to replace the placeholder values (your_rpc_url, your_private_key, etc.) with actual data for your specific environment.