templates
templates copied to clipboard
CoW Swap Plugin
User description
Implements API for order quoting and creation.
This project is really just a minimal wrapper for https://api.cow.fi/docs/#/default/post_api_v1_quote
Test Plan
yarn && yarn dev
curl -X 'POST' \
'http://localhost:3000/api/quote' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"network": "mainnet"
"sellToken": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"buyToken": "0x6810e776880c02933d47db1b9fc05908e5386b96",
"receiver": "0x6810e776880c02933d47db1b9fc05908e5386b96",
"from": "0x6810e776880c02933d47db1b9fc05908e5386b96",
"kind": "sell",
"sellAmountBeforeFee": "1234567890"
}'
Dune Query for CoW Traded Tokens with volume > 10k USD: https://dune.com/queries/4055949
PR Type
Enhancement, Documentation, Configuration changes
Description
- Added a health check endpoint that returns a JSON response with a status message.
- Implemented POST endpoint for order quoting, validating network parameter and forwarding request to CoW Swap API.
- Added API reference configuration for the CoW Swap AI Plugin.
- Configured TailwindCSS and PostCSS for the project.
- Added ESLint configuration extending Next.js core web vitals.
- Added README with project description, setup, and deployment instructions.
- Configured Next.js headers for API routes.
- Added project dependencies and scripts.
- Added OpenAPI specification for CoW Swap Assistant API.
- Added TypeScript configuration for the project.
Changes walkthrough 📝
Relevant files | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Enhancement | 3 files
| ||||||||||||
Configuration changes | 6 files
| ||||||||||||
Documentation | 2 files
|
💡 PR-Agent usage: Comment
/help
on the PR to get a list of all available PR-Agent tools and their descriptions
- To see the specific tasks where the Asana app for GitHub is being used, see below:
- https://app.asana.com/0/0/1208105509044769