@cowprotocol/cow-sdk 7.3.8 → 7.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/CHANGELOG.md +35 -0
- package/dist/README.md +17 -0
- package/dist/package.json +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -278,6 +278,23 @@ await sdk.getQuote(parameters, {
|
|
|
278
278
|
> **Tip:** Use `utmContent` for graffiti without affecting your `appCode`. The `appCode` parameter tracks your integration on [CoW Protocol's Dune dashboards](https://dune.com/cowprotocol/cowswap), while `utmContent` is available for custom identifiers or experimentation - all while attributing your volume to SDK integrators' collective impact.
|
|
279
279
|
|
|
280
280
|
|
|
281
|
+
## Partner API
|
|
282
|
+
|
|
283
|
+
Partners can use authenticated API access with higher rate limits via the Partner API gateway. Pass your API key when creating an `OrderBookApi` instance:
|
|
284
|
+
|
|
285
|
+
```typescript
|
|
286
|
+
import { OrderBookApi, SupportedChainId } from '@cowprotocol/cow-sdk'
|
|
287
|
+
|
|
288
|
+
const orderBookApi = new OrderBookApi({
|
|
289
|
+
chainId: SupportedChainId.MAINNET,
|
|
290
|
+
apiKey: 'your-partner-api-key',
|
|
291
|
+
})
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
By default, the SDK routes requests through `partners.cow.fi` (prod) or `partners.barn.cow.fi` (staging) and includes the `X-API-Key` header. If you provide custom `baseUrls`, those take precedence over the default partner hosts, but the `X-API-Key` header is still sent with every request.
|
|
295
|
+
|
|
296
|
+
See the [OrderBookApi documentation](https://github.com/cowprotocol/cow-sdk/tree/main/packages/order-book/README.md#partner-api-authenticated-access) for more details, including usage with the Trading SDK.
|
|
297
|
+
|
|
281
298
|
## Adapters
|
|
282
299
|
|
|
283
300
|
The CoW SDK supports multiple blockchain adapters to work with different Web3 libraries. You need to install and configure one of the following adapters:
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [7.4.1](https://github.com/cowprotocol/cow-sdk/compare/cow-sdk-v7.4.0...cow-sdk-v7.4.1) (2026-03-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* The following workspace dependencies were updated
|
|
9
|
+
* dependencies
|
|
10
|
+
* @cowprotocol/sdk-app-data bumped to 4.6.7
|
|
11
|
+
* @cowprotocol/sdk-common bumped to 0.7.0
|
|
12
|
+
* @cowprotocol/sdk-config bumped to 0.10.0
|
|
13
|
+
* @cowprotocol/sdk-contracts-ts bumped to 1.8.0
|
|
14
|
+
* @cowprotocol/sdk-order-book bumped to 1.1.1
|
|
15
|
+
* @cowprotocol/sdk-order-signing bumped to 0.1.36
|
|
16
|
+
* @cowprotocol/sdk-trading bumped to 1.0.2
|
|
17
|
+
|
|
18
|
+
## [7.4.0](https://github.com/cowprotocol/cow-sdk/compare/cow-sdk-v7.3.8...cow-sdk-v7.4.0) (2026-03-04)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### ✨ Features
|
|
22
|
+
|
|
23
|
+
* add API endpoints for partners ([#809](https://github.com/cowprotocol/cow-sdk/issues/809)) ([59900e8](https://github.com/cowprotocol/cow-sdk/commit/59900e854a336e294ec881bd70bb13e579ff48ec))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
* The following workspace dependencies were updated
|
|
29
|
+
* dependencies
|
|
30
|
+
* @cowprotocol/sdk-app-data bumped to 4.6.6
|
|
31
|
+
* @cowprotocol/sdk-common bumped to 0.6.3
|
|
32
|
+
* @cowprotocol/sdk-config bumped to 0.9.0
|
|
33
|
+
* @cowprotocol/sdk-contracts-ts bumped to 1.7.0
|
|
34
|
+
* @cowprotocol/sdk-order-book bumped to 1.1.0
|
|
35
|
+
* @cowprotocol/sdk-order-signing bumped to 0.1.35
|
|
36
|
+
* @cowprotocol/sdk-trading bumped to 1.0.1
|
|
37
|
+
|
|
3
38
|
## [7.3.8](https://github.com/cowprotocol/cow-sdk/compare/cow-sdk-v7.3.7...cow-sdk-v7.3.8) (2026-02-26)
|
|
4
39
|
|
|
5
40
|
|
package/dist/README.md
CHANGED
|
@@ -278,6 +278,23 @@ await sdk.getQuote(parameters, {
|
|
|
278
278
|
> **Tip:** Use `utmContent` for graffiti without affecting your `appCode`. The `appCode` parameter tracks your integration on [CoW Protocol's Dune dashboards](https://dune.com/cowprotocol/cowswap), while `utmContent` is available for custom identifiers or experimentation - all while attributing your volume to SDK integrators' collective impact.
|
|
279
279
|
|
|
280
280
|
|
|
281
|
+
## Partner API
|
|
282
|
+
|
|
283
|
+
Partners can use authenticated API access with higher rate limits via the Partner API gateway. Pass your API key when creating an `OrderBookApi` instance:
|
|
284
|
+
|
|
285
|
+
```typescript
|
|
286
|
+
import { OrderBookApi, SupportedChainId } from '@cowprotocol/cow-sdk'
|
|
287
|
+
|
|
288
|
+
const orderBookApi = new OrderBookApi({
|
|
289
|
+
chainId: SupportedChainId.MAINNET,
|
|
290
|
+
apiKey: 'your-partner-api-key',
|
|
291
|
+
})
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
By default, the SDK routes requests through `partners.cow.fi` (prod) or `partners.barn.cow.fi` (staging) and includes the `X-API-Key` header. If you provide custom `baseUrls`, those take precedence over the default partner hosts, but the `X-API-Key` header is still sent with every request.
|
|
295
|
+
|
|
296
|
+
See the [OrderBookApi documentation](https://github.com/cowprotocol/cow-sdk/tree/main/packages/order-book/README.md#partner-api-authenticated-access) for more details, including usage with the Trading SDK.
|
|
297
|
+
|
|
281
298
|
## Adapters
|
|
282
299
|
|
|
283
300
|
The CoW SDK supports multiple blockchain adapters to work with different Web3 libraries. You need to install and configure one of the following adapters:
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cowprotocol/cow-sdk",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.1",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"description": "CoW Protocol SDK - get quote, configure your order, and trade",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"@cow-sdk/typescript-config": "0.0.0-beta.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@cowprotocol/sdk-app-data": "4.6.
|
|
34
|
-
"@cowprotocol/sdk-common": "0.
|
|
35
|
-
"@cowprotocol/sdk-config": "0.
|
|
36
|
-
"@cowprotocol/sdk-
|
|
37
|
-
"@cowprotocol/sdk-
|
|
38
|
-
"@cowprotocol/sdk-trading": "1.0.
|
|
39
|
-
"@cowprotocol/sdk-order-
|
|
33
|
+
"@cowprotocol/sdk-app-data": "4.6.7",
|
|
34
|
+
"@cowprotocol/sdk-common": "0.7.0",
|
|
35
|
+
"@cowprotocol/sdk-config": "0.10.0",
|
|
36
|
+
"@cowprotocol/sdk-contracts-ts": "1.8.0",
|
|
37
|
+
"@cowprotocol/sdk-order-book": "1.1.1",
|
|
38
|
+
"@cowprotocol/sdk-trading": "1.0.2",
|
|
39
|
+
"@cowprotocol/sdk-order-signing": "0.1.36"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@openzeppelin/merkle-tree": "^1.x",
|