Skip to content

Commit 0b1f891

Browse files
committed
added contract types
1 parent 19b538e commit 0b1f891

File tree

163 files changed

+28804
-277
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+28804
-277
lines changed

package.json

+24-12
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"license": "GPL-3.0",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",
7-
"files": ["dist", "src"],
7+
"files": [
8+
"dist",
9+
"src"
10+
],
811
"engines": {
912
"node": ">=10"
1013
},
@@ -13,6 +16,7 @@
1316
"build": "tsdx build",
1417
"test": "tsdx test",
1518
"lint": "tsdx lint",
19+
"typecheck": "tsc",
1620
"prepare": "yarn generate && tsdx build",
1721
"size": "size-limit",
1822
"analyze": "size-limit --why",
@@ -21,21 +25,24 @@
2125
},
2226
"husky": {
2327
"hooks": {
24-
"pre-commit": "tsdx lint"
28+
"pre-commit": "yarn format && yarn lint",
29+
"pre-push": "yarn typecheck"
2530
}
2631
},
2732
"repository": {
2833
"type": "git",
2934
"url": "https://github.com/quest-chains/sdk.git"
3035
},
3136
"homepage": "https://github.com/quest-chains/sdk",
32-
33-
"keywords": ["ethereum", "quest-chains"],
37+
"keywords": [
38+
"ethereum",
39+
"quest-chains"
40+
],
3441
"prettier": {
3542
"semi": true,
3643
"trailingComma": "all",
3744
"singleQuote": true,
38-
"printWidth": 80,
45+
"printWidth": 120,
3946
"tabWidth": 2,
4047
"arrowParens": "avoid"
4148
},
@@ -53,24 +60,29 @@
5360
],
5461
"devDependencies": {
5562
"@graphql-codegen/add": "^3.2.0",
56-
"@graphql-codegen/cli": "^2.7.0",
63+
"@graphql-codegen/cli": "^2.12.0",
5764
"@graphql-codegen/typescript": "^2.6.0",
5865
"@graphql-codegen/typescript-operations": "^2.4.3",
59-
"@graphql-codegen/typescript-urql": "^3.5.13",
66+
"@graphql-codegen/typescript-urql": "^3.7.0",
6067
"@size-limit/preset-small-lib": "^8.0.1",
6168
"husky": "^8.0.1",
6269
"size-limit": "^8.0.1",
63-
"tsdx": "^0.14.1",
64-
"tslib": "^2.4.0",
65-
"typescript": "^4.8.2"
70+
"tsdx": "^0.14.1"
6671
},
6772
"dependencies": {
6873
"ajv": "^8.11.0",
6974
"axios": "^0.27.2",
7075
"ethers": "^5.6.9",
7176
"fast-memoize": "^2.5.2",
7277
"graphql": "^16.5.0",
73-
"graphql-request": "^4.3.0",
74-
"urql": "^2.2.2"
78+
"graphql-request": "^5.0.0",
79+
"urql": "^3.0.3"
80+
},
81+
"resolutions": {
82+
"**/tslib": "^2.4.0",
83+
"**/typescript": "^4.8.2",
84+
"**/prettier": "^2.7.1",
85+
"**/@typescript-eslint/eslint-plugin": "^5.36.2",
86+
"**/@typescript-eslint/parser": "^5.36.2"
7587
}
7688
}

src/contracts/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import * as V0 from './v0';
2+
import * as V1 from './v1';
3+
4+
export { V0, V1 };

0 commit comments

Comments
 (0)