Documentation Index
Fetch the complete documentation index at: https://cowswap-mintlify-seo-audit-1777280932.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Development Setup
Instructions for setting up the CoW Protocol Watch Tower development environment with Node.js, Yarn, and configuration guidelines.Requirements
To develop the CoW Protocol Watch Tower, you’ll need:node(>= v16.18.0)yarnnpm
Installation
Install project dependencies:Local Development Workflow
Testing against the Goerli or Sepolia testnet is recommended during development. To run the watch-tower locally:Using the CLI
The watch-tower provides a CLI interface with multiple commands:Available CLI Options
--config-path <path>- Path to chain configuration file (default:./config.json)--database-path <path>- Path to the database (default:./database)--log-level <level>- Log level (default:INFO)--dry-run- Do not publish orders to the OrderBook API--one-shot- Run the watch-tower once and exit--disable-api- Disable the REST API--api-port <port>- Port for the REST API (default:8080)--silent- Disable notifications (local logging only)--slack-webhook <url>- Slack webhook URL--only-owner <address...>- Monitor specific contract/safe addresses only
Testing Against Testnets
When developing, test against Goerli or Sepolia testnet by following these steps:- Configure your RPC endpoint in the config file
- Set the appropriate deployment block for the testnet
- Run the watch-tower with your test configuration
Environment Variables
All CLI options can be configured via environment variables:LOG_LEVEL- Log levelCONFIG_PATH- Path to configuration fileDATABASE_PATH- Path to databaseDRY_RUN- Dry run modeONE_SHOT- One-shot modeDISABLE_API- Disable API serverAPI_PORT- API server portDISABLE_NOTIFICATIONS- Disable notificationsSLACK_WEBHOOK- Slack webhook URL