Documentation Index
Fetch the complete documentation index at: https://cowswap-mintlify-docs-audit-1774430481.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Building the Project
The CoW Protocol contracts project uses a hybrid build system compiling both Solidity smart contracts and TypeScript bindings.Prerequisites
- Node.js v18 or higher
- Yarn package manager
- Git
Installation
Build Commands
Full Build
Compiles Solidity contracts and generates TypeScript bindings:Solidity Only
Runs Hardhat compiler with force flag:TypeScript Only
Compiles in ESM, CommonJS, and default formats:Compiler Settings
The project is configured for gas-efficient contract execution:| Setting | Value |
|---|---|
| Optimizer | Enabled |
| Optimizer Runs | 1,000,000 |
| EVM Version | Cancun |
Output Structure
Successful builds generate:| Directory | Contents |
|---|---|
out/ | Compiled Solidity contracts and artifacts |
lib/esm/ | TypeScript ESM modules |
lib/commonjs/ | TypeScript CommonJS modules |
Linting and Formatting
Solidity
TypeScript
Troubleshooting
If you encounter build issues:-
Clear build artifacts:
-
Reinstall dependencies:
-
Force rebuild: