@cowprotocol/sdk-cow-shed 0.1.0-monorepo.3 → 0.2.1-beta.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/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +19 -21
package/dist/index.d.mts
CHANGED
|
@@ -51,7 +51,7 @@ declare class CowShedHooks {
|
|
|
51
51
|
encodeExecuteHooksForFactory(calls: ICoWShedCall[], nonce: string, deadline: bigint, ownerAddress: string, signature: string): string;
|
|
52
52
|
signCalls(calls: ICoWShedCall[], nonce: string, deadline: bigint, signingScheme: ContractsEcdsaSigningScheme, owner?: SignerLike): Promise<string>;
|
|
53
53
|
infoToSign(calls: ICoWShedCall[], nonce: string, deadline: bigint, proxy: string): {
|
|
54
|
-
domain:
|
|
54
|
+
domain: TypedDataDomain;
|
|
55
55
|
types: {
|
|
56
56
|
ExecuteHooks: {
|
|
57
57
|
type: string;
|
|
@@ -65,7 +65,7 @@ declare class CowShedHooks {
|
|
|
65
65
|
message: {
|
|
66
66
|
calls: ICoWShedCall[];
|
|
67
67
|
nonce: string;
|
|
68
|
-
deadline:
|
|
68
|
+
deadline: string;
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
getDomain(proxy: string): TypedDataDomain;
|
|
@@ -97,7 +97,7 @@ interface SignAndEncodeTxArgs {
|
|
|
97
97
|
/**
|
|
98
98
|
* Deadline to use for the transaction. If not provided, the maximum uint256 will be used.
|
|
99
99
|
*/
|
|
100
|
-
deadline
|
|
100
|
+
deadline?: bigint;
|
|
101
101
|
/**
|
|
102
102
|
* If value is provided, gas won't be estimated and will use the value
|
|
103
103
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ declare class CowShedHooks {
|
|
|
51
51
|
encodeExecuteHooksForFactory(calls: ICoWShedCall[], nonce: string, deadline: bigint, ownerAddress: string, signature: string): string;
|
|
52
52
|
signCalls(calls: ICoWShedCall[], nonce: string, deadline: bigint, signingScheme: ContractsEcdsaSigningScheme, owner?: SignerLike): Promise<string>;
|
|
53
53
|
infoToSign(calls: ICoWShedCall[], nonce: string, deadline: bigint, proxy: string): {
|
|
54
|
-
domain:
|
|
54
|
+
domain: TypedDataDomain;
|
|
55
55
|
types: {
|
|
56
56
|
ExecuteHooks: {
|
|
57
57
|
type: string;
|
|
@@ -65,7 +65,7 @@ declare class CowShedHooks {
|
|
|
65
65
|
message: {
|
|
66
66
|
calls: ICoWShedCall[];
|
|
67
67
|
nonce: string;
|
|
68
|
-
deadline:
|
|
68
|
+
deadline: string;
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
getDomain(proxy: string): TypedDataDomain;
|
|
@@ -97,7 +97,7 @@ interface SignAndEncodeTxArgs {
|
|
|
97
97
|
/**
|
|
98
98
|
* Deadline to use for the transaction. If not provided, the maximum uint256 will be used.
|
|
99
99
|
*/
|
|
100
|
-
deadline
|
|
100
|
+
deadline?: bigint;
|
|
101
101
|
/**
|
|
102
102
|
* If value is provided, gas won't be estimated and will use the value
|
|
103
103
|
*/
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cowprotocol/sdk-cow-shed",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.2.1-beta.0",
|
|
4
4
|
"description": "CowProtocol Cow Shed package",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -13,27 +13,12 @@
|
|
|
13
13
|
"publishConfig": {
|
|
14
14
|
"access": "public"
|
|
15
15
|
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
18
|
-
"lint": "eslint src/**/*.ts --quiet",
|
|
19
|
-
"test": "jest",
|
|
20
|
-
"test:coverage": "jest --coverage --json --outputFile=jest.results.json && npx coveralls < ./coverage/lcov.info",
|
|
21
|
-
"test:coverage:html": "jest --silent=false --coverage --coverageReporters html",
|
|
22
|
-
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
23
|
-
"typecheck": "tsc --noEmit",
|
|
24
|
-
"publish": "npm publish --access public",
|
|
25
|
-
"prepublishOnly": "npm run build"
|
|
26
|
-
},
|
|
27
16
|
"dependencies": {
|
|
28
|
-
"@cowprotocol/sdk-config": "
|
|
29
|
-
"@cowprotocol/sdk-common": "
|
|
30
|
-
"@cowprotocol/sdk-contracts-ts": "
|
|
17
|
+
"@cowprotocol/sdk-config": "0.3.0-beta.0",
|
|
18
|
+
"@cowprotocol/sdk-common": "0.2.1-beta.0",
|
|
19
|
+
"@cowprotocol/sdk-contracts-ts": "2.1.3-beta.0"
|
|
31
20
|
},
|
|
32
21
|
"devDependencies": {
|
|
33
|
-
"@cow-sdk/typescript-config": "workspace:*",
|
|
34
|
-
"@cowprotocol/sdk-ethers-v5-adapter": "workspace:*",
|
|
35
|
-
"@cowprotocol/sdk-ethers-v6-adapter": "workspace:*",
|
|
36
|
-
"@cowprotocol/sdk-viem-adapter": "workspace:*",
|
|
37
22
|
"@types/jest": "^29.4.0",
|
|
38
23
|
"@types/node": "^20.17.31",
|
|
39
24
|
"@types/semver-sort": "^0.0.1",
|
|
@@ -47,6 +32,19 @@
|
|
|
47
32
|
"ts-jest": "^29.0.0",
|
|
48
33
|
"tsup": "^7.2.0",
|
|
49
34
|
"tsx": "^4.19.4",
|
|
50
|
-
"typescript": "^5.2.2"
|
|
35
|
+
"typescript": "^5.2.2",
|
|
36
|
+
"@cow-sdk/typescript-config": "0.0.0-beta.0",
|
|
37
|
+
"@cowprotocol/sdk-ethers-v6-adapter": "0.2.1-beta.0",
|
|
38
|
+
"@cowprotocol/sdk-ethers-v5-adapter": "0.2.1-beta.0",
|
|
39
|
+
"@cowprotocol/sdk-viem-adapter": "0.2.1-beta.0"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
43
|
+
"lint": "eslint src/**/*.ts --quiet",
|
|
44
|
+
"test": "jest",
|
|
45
|
+
"test:coverage": "jest --coverage --json --outputFile=jest.results.json && npx coveralls < ./coverage/lcov.info",
|
|
46
|
+
"test:coverage:html": "jest --silent=false --coverage --coverageReporters html",
|
|
47
|
+
"typecheck": "tsc --noEmit",
|
|
48
|
+
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
|
51
49
|
}
|
|
52
|
-
}
|
|
50
|
+
}
|