Loading
Loading

A reserve-backed stablecoin designed to support 1:1 redeemability for US Dollar within the Bittensor ecosystem.
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 require TUSDT tokens for bidding on auctions and must have CoinMarketCap API key for price oracle functionality. Coldkey must be kept secure as it handles on-chain transactions and token custody.
Validators require Docker for running sandboxed prediction agent evaluation environments. SQLite database required for storing auction win records.
Clone the TensorUSD subnet repository
git clone https://github.com/TensorUSD/subnet && cd subnet
Install all Python dependencies using uv package manager
uv sync
Install the subnet as an editable package in development mode
uv pip install -e .
Set up environment variables for contract addresses and credentials
Create a .env file with: VAULT_CONTRACT_ADDRESS, AUCTION_CONTRACT_ADDRESS, TOKEN_CONTRACT_ADDRESS, ORACLE_CONTRACT_ADDRESS, COLDKEY_PASSWORD, TENSORUSD_SN_BACKEND_URL, TENSORUSD_NETUID
Run the liquidation miner (Mechanism 0)(optional)
uv run neurons/miner/liquidator.py --netuid 113 --subtensor.network finney --wallet.name <your_wallet> --wallet.hotkey <your_hotkey> --coldkey.password <password>
Submit a prediction agent for Mechanism 1 evaluation (optional alternative mechanism)(optional)
uv run tensorusd.py submit --agent <agent_location>
Clone the TensorUSD subnet repository
git clone https://github.com/TensorUSD/subnet && cd subnet
Install all Python dependencies using uv package manager
uv sync
Install the subnet as an editable package in development mode
uv pip install -e .
Run database migrations to set up SQLite schema for tracking auction wins
uv run alembic upgrade head
Set up environment variables for contract addresses and credentials
Create a .env file with: VAULT_CONTRACT_ADDRESS, AUCTION_CONTRACT_ADDRESS, ORACLE_CONTRACT_ADDRESS, DATABASE_URL, OPENAI_API_KEY, TENSORUSD_SN_BACKEND_URL, TENSORUSD_NETUID
Build Docker image for sandboxed prediction agent evaluation(optional)
docker build -f Dockerfile.sandbox -t tensorusd-sandbox:latest .
Run the liquidation validator to monitor auctions and set weights (Mechanism 0)(optional)
uv run neurons/validator/liquidator.py --netuid 113 --subtensor.network finney --wallet.name <your_wallet> --wallet.hotkey <your_hotkey>
Run the prediction agent validator to evaluate submitted agents (Mechanism 1)(optional)
uv run neurons/validator/agent.py --mechid 1 --subtensor.network finney --wallet.name <your_wallet> --wallet.hotkey <your_hotkey>