@cowprotocol/cow-sdk 5.5.1 → 5.6.0
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/dist/composable/generated/ComposableCoW.d.ts +340 -0
- package/dist/composable/generated/ExtensibleFallbackHandler.d.ts +282 -0
- package/dist/composable/generated/TWAP.d.ts +141 -0
- package/dist/composable/generated/common.d.ts +21 -0
- package/dist/composable/generated/factories/ComposableCoW__factory.d.ts +475 -0
- package/dist/composable/generated/factories/ExtensibleFallbackHandler__factory.d.ts +389 -0
- package/dist/composable/generated/factories/TWAP__factory.d.ts +260 -0
- package/dist/composable/generated/factories/index.d.ts +3 -0
- package/dist/composable/generated/index.d.ts +7 -0
- package/dist/order-book/generated/index.d.ts +1 -0
- package/dist/order-book/generated/models/ExecutedProtocolFee.d.ts +14 -0
- package/dist/order-book/generated/models/SolverSettlement.d.ts +0 -15
- package/dist/order-book/generated/models/Trade.d.ts +3 -3
- package/dist/package.json +2 -2
- package/package.json +2 -2
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { BigUint } from './BigUint';
|
|
2
|
-
import type { CallData } from './CallData';
|
|
3
2
|
import type { UID } from './UID';
|
|
4
3
|
export type SolverSettlement = {
|
|
5
4
|
/**
|
|
@@ -40,18 +39,4 @@ export type SolverSettlement = {
|
|
|
40
39
|
id?: UID;
|
|
41
40
|
executedAmount?: BigUint;
|
|
42
41
|
}>;
|
|
43
|
-
/**
|
|
44
|
-
* Transaction `calldata` that is executed on-chain if the settlement is executed.
|
|
45
|
-
*/
|
|
46
|
-
callData?: CallData;
|
|
47
|
-
/**
|
|
48
|
-
* Full `calldata` as generated from the original solver output.
|
|
49
|
-
*
|
|
50
|
-
* It can be different from the executed transaction if part of the settlements are internalised
|
|
51
|
-
* (use internal liquidity in lieu of trading against on-chain liquidity).
|
|
52
|
-
*
|
|
53
|
-
* This field is omitted in case it coincides with `callData`.
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
56
|
-
uninternalizedCallData?: CallData;
|
|
57
42
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address } from './Address';
|
|
2
2
|
import type { BigUint } from './BigUint';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ExecutedProtocolFee } from './ExecutedProtocolFee';
|
|
4
4
|
import type { TokenAmount } from './TokenAmount';
|
|
5
5
|
import type { TransactionHash } from './TransactionHash';
|
|
6
6
|
import type { UID } from './UID';
|
|
@@ -50,8 +50,8 @@ export type Trade = {
|
|
|
50
50
|
*/
|
|
51
51
|
txHash: TransactionHash | null;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Executed protocol fees for this trade, together with the fee policies used. Listed in the order they got applied.
|
|
54
54
|
*
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
executedProtocolFees?: Array<ExecutedProtocolFee>;
|
|
57
57
|
};
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cowprotocol/cow-sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"files": [
|
|
6
6
|
"/dist"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"prepare": "npm run build",
|
|
28
28
|
"prepublishOnly": "npm test && npm run lint",
|
|
29
29
|
"graphql:codegen": "graphql-codegen --config graphql-codegen.yml",
|
|
30
|
-
"swagger:codegen": " openapi --input https://raw.githubusercontent.com/cowprotocol/services/v2.
|
|
30
|
+
"swagger:codegen": " openapi --input https://raw.githubusercontent.com/cowprotocol/services/v2.281.0/crates/orderbook/openapi.yml --output src/order-book/generated --exportServices false --exportCore false",
|
|
31
31
|
"typechain:codegen": "typechain --target ethers-v5 --out-dir ./src/common/generated './abi/*.json'"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cowprotocol/cow-sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"files": [
|
|
6
6
|
"/dist"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"prepare": "npm run build",
|
|
28
28
|
"prepublishOnly": "npm test && npm run lint",
|
|
29
29
|
"graphql:codegen": "graphql-codegen --config graphql-codegen.yml",
|
|
30
|
-
"swagger:codegen": " openapi --input https://raw.githubusercontent.com/cowprotocol/services/v2.
|
|
30
|
+
"swagger:codegen": " openapi --input https://raw.githubusercontent.com/cowprotocol/services/v2.281.0/crates/orderbook/openapi.yml --output src/order-book/generated --exportServices false --exportCore false",
|
|
31
31
|
"typechain:codegen": "typechain --target ethers-v5 --out-dir ./src/common/generated './abi/*.json'"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|