This repository is organized as a monorepo and contains multiple related projects:
- CoW Trader: A Silverback CoW Swap trading bot that uses PydanticAI as the agent framework.
- Smart Contract Infra: Provides the smart contract development,deployment and configuration scripts for:
- The token allowlist governance mechanism.
- Setting up a new Safe or bringing your own.
- Deploying a trading module proxy enabled on the Safe.
- Configuring the module on the Safe with the guard and enable the agent to trade via the module.
Each project is maintained in its own subdirectory and may have additional project-specific configuration and dependencies. However, they all share a centralized .env file located at the repository root.
While a centralized .env file is used for common environment variables, each project in this monorepo may have additional settings and build steps:
-
CoW Trader:
This project might require extra, project-specific configuration. Please refer to the CoW Trader README for full setup instructions. -
Smart Contract Infra:
Building and deploying the contract components is handled separately. Detailed instructions are available in the Smart Contract Infra README.
Each variable is explained in the .env.example file. Be sure to copy .env.example to .env and fill in the required values:
-
PydanticAI Variables:
ANTHROPIC_API_KEYENCOURAGE_TRADE
-
Bot Variables:
START_BLOCK
-
Web3 Variables:
PRIVATE_KEYWEB3_ALCHEMY_PROJECT_IDETHERSCAN_API_KEYCHAIN_IDSAFE_ADDRESS(optional)TRADING_MODULE_ADDRESS(optional)
This setup allows you to configure both individual projects while sharing common environment variables.
This project is licensed under the MIT License. See the LICENSE file for details.