Loading
Loading

This information was auto-extracted from the GitHub repository and may be incomplete or out of date. Always refer to the subnet's GitHub repository for the latest instructions.
Miners primarily need an EVM wallet and access to TaoFi platform. Hardware requirements are minimal as the subnet focuses on liquidity provision rather than computation.
Validators are recommended to run a local subtensor instance for better performance and reliability rather than connecting to remote endpoints.
Clone the Swap subnet repository
git clone https://github.com/Swap-Subnet/swap-subnet/ && cd swap-subnet
Install uv package manager for fast Python dependency management
curl -LsSf https://astral.sh/uv/install.sh | sh
Install Python dependencies and activate virtual environment
uv sync && source ~/.venv/bin/activate && uv pip install -e .
Configure environment with EVM wallet private key for TaoFi liquidity provision
Edit .env file to include EVM_KEY="your_private_key_here"
Commit miner type and associate EVM address with hotkey on the network
python3 scripts/commit.py --netuid NETUID --subtensor.network NETWORK --wallet.name NAME --wallet.hotkey HOTKEY --miner-type UNISWAP_V3_LP
Provide liquidity to TaoFi pool using MetaMask or compatible EVM wallet
Navigate to https://www.taofi.com/pool and add liquidity to TAO<>USDC pool
Clone the Swap subnet repository
git clone https://github.com/Swap-Subnet/swap-subnet/ && cd swap-subnet
Install uv package manager
curl -LsSf https://astral.sh/uv/install.sh | sh
Install Python dependencies
uv sync && source ~/.venv/bin/activate && uv pip install -e .
Install Node.js and PM2 for process management
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs && npm install -g pm2
Copy example environment file and configure with subtensor provider URLs
cp .env.example .env
Set up Weights & Biases logging (highly recommended)(optional)
wandb login
Start validator process (without PM2)
python neurons/validator.py --netuid NETUID --subtensor.network local --wallet.name NAME --wallet.hotkey HOTKEY --logging.debug
Start validator with PM2 for daemon management(optional)
pm2 start --name PROC_NAME --interpreter=python3 neurons/validator.py -- --netuid NETUID --subtensor.network local --wallet.name NAME --wallet.hotkey HOTKEY --logging.debug