TypeScript/Python SDK for integrating CoW Protocol (Coincidence of Wants) surplus-based fee routing. Create orders, get quotes, track settlements, and capture MEV protection surplus. Supports both CoW Swap API and on-chain GPv2Settlement interactions.
Category: sdk
Files: 20
Chains: Ethereum, Gnosis, Arbitrum
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title CoW Protocol SDK /// @notice SDK for integrating CoW Protocol surplus-based fee routing. contract CowProtocolSdk { address public immutable owner; uint256 public constant VERSION = 1; event Initialized(address indexed deployer); constructor() { owner = msg.sender; emit Initialized(msg.sender); } // ... full implementation in purchased package }