Prerequisites
- Foundry installed
- A CoW Protocol settlement contract address for deployment
Installation
Compile contracts
Deployment
Forge Script
The constructor accepts one parameter: the settlement contract address.--etherscan-api-key and --verify flags.
Cannon
Cannon provides predictable addresses and multi-chain support through configuration files. The system automatically retrieves settlement addresses from thecow-settlement package, reducing manual configuration.
Publishing requires 0.0025 ETH + gas fees on Optimism Mainnet.
Verification
After deployment, verify the contract usingcast to check the settlement address:
Resources
- Production addresses are available at the cowprotocol/deployments repository
- Next step: Review the Usage Guide for integration details