@cowprotocol/cow-sdk 7.1.6 → 7.2.2
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 +40 -0
- package/dist/CHANGELOG.md +43 -0
- package/dist/README.md +40 -0
- package/dist/package.json +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -236,6 +236,46 @@ This example demonstrates the simplest way to trade on CoW Protocol.
|
|
|
236
236
|
For more advanced use cases, you can use additional parameters such as `receiver`, `partiallyFillable`, `validTo`, and others.
|
|
237
237
|
Refer to the [Trading SDK documentation](https://github.com/cowprotocol/cow-sdk/tree/main/packages/trading/README.md) for comprehensive details.
|
|
238
238
|
|
|
239
|
+
## Developer Attribution (UTM Tracking)
|
|
240
|
+
|
|
241
|
+
The SDK automatically includes UTM tracking in all orders to attribute trading volume to developers. Default parameters:
|
|
242
|
+
|
|
243
|
+
```typescript
|
|
244
|
+
{
|
|
245
|
+
utmSource: 'cowmunity',
|
|
246
|
+
utmMedium: 'cow-sdk@7.1.6', // SDK version
|
|
247
|
+
utmCampaign: 'developer-cohort',
|
|
248
|
+
utmContent: '',
|
|
249
|
+
utmTerm: 'js'
|
|
250
|
+
}
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
**Customize or disable** via `advancedSettings.appData.metadata.utm`:
|
|
254
|
+
|
|
255
|
+
```typescript
|
|
256
|
+
// Custom UTM
|
|
257
|
+
await sdk.getQuote(parameters, {
|
|
258
|
+
appData: {
|
|
259
|
+
metadata: {
|
|
260
|
+
utm: { utmContent: 'my-integration-v2' }
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
})
|
|
264
|
+
|
|
265
|
+
// Disable UTM
|
|
266
|
+
await sdk.getQuote(parameters, {
|
|
267
|
+
appData: {
|
|
268
|
+
metadata: {
|
|
269
|
+
utm: {}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
})
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
> **Note:** Providing any `utm` field gives you full control - the SDK will not add defaults.
|
|
276
|
+
|
|
277
|
+
> **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.
|
|
278
|
+
|
|
239
279
|
|
|
240
280
|
## Adapters
|
|
241
281
|
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [7.2.2](https://github.com/cowprotocol/cow-sdk/compare/cow-sdk-v7.2.1...cow-sdk-v7.2.2) (2025-12-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* The following workspace dependencies were updated
|
|
9
|
+
* dependencies
|
|
10
|
+
* @cowprotocol/sdk-app-data bumped to 4.3.4
|
|
11
|
+
* @cowprotocol/sdk-config bumped to 0.6.0
|
|
12
|
+
* @cowprotocol/sdk-contracts-ts bumped to 0.7.3
|
|
13
|
+
* @cowprotocol/sdk-order-book bumped to 0.4.2
|
|
14
|
+
* @cowprotocol/sdk-order-signing bumped to 0.1.18
|
|
15
|
+
* @cowprotocol/sdk-trading bumped to 0.6.2
|
|
16
|
+
|
|
17
|
+
## [7.2.1](https://github.com/cowprotocol/cow-sdk/compare/cow-sdk-v7.2.0...cow-sdk-v7.2.1) (2025-12-03)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Dependencies
|
|
21
|
+
|
|
22
|
+
* The following workspace dependencies were updated
|
|
23
|
+
* dependencies
|
|
24
|
+
* @cowprotocol/sdk-app-data bumped to 4.3.3
|
|
25
|
+
* @cowprotocol/sdk-config bumped to 0.5.0
|
|
26
|
+
* @cowprotocol/sdk-contracts-ts bumped to 0.7.2
|
|
27
|
+
* @cowprotocol/sdk-order-book bumped to 0.4.1
|
|
28
|
+
* @cowprotocol/sdk-order-signing bumped to 0.1.17
|
|
29
|
+
* @cowprotocol/sdk-trading bumped to 0.6.1
|
|
30
|
+
|
|
31
|
+
## [7.2.0](https://github.com/cowprotocol/cow-sdk/compare/cow-sdk-v7.1.6...cow-sdk-v7.2.0) (2025-12-03)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### ✨ Features
|
|
35
|
+
|
|
36
|
+
* **app-data:** add UTM Tracking for Developer Attribution ([#722](https://github.com/cowprotocol/cow-sdk/issues/722)) ([0cd79d1](https://github.com/cowprotocol/cow-sdk/commit/0cd79d185630cc44b111979e873e30c760904976))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Dependencies
|
|
40
|
+
|
|
41
|
+
* The following workspace dependencies were updated
|
|
42
|
+
* dependencies
|
|
43
|
+
* @cowprotocol/sdk-app-data bumped to 4.3.2
|
|
44
|
+
* @cowprotocol/sdk-trading bumped to 0.6.0
|
|
45
|
+
|
|
3
46
|
## [7.1.6](https://github.com/cowprotocol/cow-sdk/compare/cow-sdk-v7.1.5...cow-sdk-v7.1.6) (2025-12-01)
|
|
4
47
|
|
|
5
48
|
|
package/dist/README.md
CHANGED
|
@@ -236,6 +236,46 @@ This example demonstrates the simplest way to trade on CoW Protocol.
|
|
|
236
236
|
For more advanced use cases, you can use additional parameters such as `receiver`, `partiallyFillable`, `validTo`, and others.
|
|
237
237
|
Refer to the [Trading SDK documentation](https://github.com/cowprotocol/cow-sdk/tree/main/packages/trading/README.md) for comprehensive details.
|
|
238
238
|
|
|
239
|
+
## Developer Attribution (UTM Tracking)
|
|
240
|
+
|
|
241
|
+
The SDK automatically includes UTM tracking in all orders to attribute trading volume to developers. Default parameters:
|
|
242
|
+
|
|
243
|
+
```typescript
|
|
244
|
+
{
|
|
245
|
+
utmSource: 'cowmunity',
|
|
246
|
+
utmMedium: 'cow-sdk@7.1.6', // SDK version
|
|
247
|
+
utmCampaign: 'developer-cohort',
|
|
248
|
+
utmContent: '',
|
|
249
|
+
utmTerm: 'js'
|
|
250
|
+
}
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
**Customize or disable** via `advancedSettings.appData.metadata.utm`:
|
|
254
|
+
|
|
255
|
+
```typescript
|
|
256
|
+
// Custom UTM
|
|
257
|
+
await sdk.getQuote(parameters, {
|
|
258
|
+
appData: {
|
|
259
|
+
metadata: {
|
|
260
|
+
utm: { utmContent: 'my-integration-v2' }
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
})
|
|
264
|
+
|
|
265
|
+
// Disable UTM
|
|
266
|
+
await sdk.getQuote(parameters, {
|
|
267
|
+
appData: {
|
|
268
|
+
metadata: {
|
|
269
|
+
utm: {}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
})
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
> **Note:** Providing any `utm` field gives you full control - the SDK will not add defaults.
|
|
276
|
+
|
|
277
|
+
> **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.
|
|
278
|
+
|
|
239
279
|
|
|
240
280
|
## Adapters
|
|
241
281
|
|
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.2.2",
|
|
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.3.
|
|
33
|
+
"@cowprotocol/sdk-app-data": "4.3.4",
|
|
34
34
|
"@cowprotocol/sdk-common": "0.4.0",
|
|
35
|
-
"@cowprotocol/sdk-
|
|
36
|
-
"@cowprotocol/sdk-contracts-ts": "0.7.
|
|
37
|
-
"@cowprotocol/sdk-
|
|
38
|
-
"@cowprotocol/sdk-order-
|
|
39
|
-
"@cowprotocol/sdk-trading": "0.
|
|
35
|
+
"@cowprotocol/sdk-config": "0.6.0",
|
|
36
|
+
"@cowprotocol/sdk-contracts-ts": "0.7.3",
|
|
37
|
+
"@cowprotocol/sdk-order-signing": "0.1.18",
|
|
38
|
+
"@cowprotocol/sdk-order-book": "0.4.2",
|
|
39
|
+
"@cowprotocol/sdk-trading": "0.6.2"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@openzeppelin/merkle-tree": "^1.x",
|