Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.2 KB

File metadata and controls

58 lines (38 loc) · 1.2 KB

Setup Guide

Installation

Step 1: Clone the Repository

Start by cloning the project repository to your local machine:

git clone https://github.com/breederdao/tactics-war-sc.git

Step 2: Checkout the Develop Branch

Navigate to the cloned project directory and switch to the develop branch:

git fetch origin develop
git checkout develop

Step 3: Install Dependencies

Go to the project root directory and install the necessary dependencies using pnpm:

pnpm install

Environment Configuration

Step 1: Create and Populate the .env File

Under 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_address

Example for Sovrun Testnet:

RPC_URL=https://sovruntest.rpc.caldera.xyz/http
CHAIN_ID=8202496

Make sure to replace the placeholder values (your_rpc_url, your_private_key, etc.) with actual data for your specific environment.