Contract Details
Tech Stack
TypeScript Python ethers.js httpx eth-account
Chains
Ethereum Gnosis Arbitrum
Description
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.
Features
- ✓ Full CoW Protocol API client (TypeScript + Python)
- ✓ EIP-712 order signing with domain separation
- ✓ Surplus tracking and savings calculation
- ✓ Order lifecycle: create, quote, track, cancel
- ✓ Multi-chain support (Mainnet, Gnosis, Arbitrum)
- ✓ Rate-limited HTTP client with exponential backoff
- ✓ Comprehensive type definitions and NatSpec
- ✓ Async Python client with httpx
// 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 }