-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
137 lines (137 loc) · 6.14 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"name": "otto-app",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"start": "next start",
"build": "yarn check-trans && yarn codegen:cn && next build",
"check-types": "tsc --noemit",
"download-schema:otto": "apollo service:download --endpoint=https://api.thegraph.com/subgraphs/name/otterclam/otto otto-graphql-schema.json",
"download-schema:otter": "apollo service:download --endpoint=https://api.thegraph.com/subgraphs/name/otterclam/otterclam otter-graphql-schema.json",
"download-schema:avax": "apollo service:download --endpoint=https://api.thegraph.com/subgraphs/name/abtheo/otter-avax avax-graphql-schema.json",
"download-schema:bsc": "apollo service:download --endpoint=https://api.thegraph.com/subgraphs/name/abtheo/otter-bsc bsc-graphql-schema.json",
"download-schema:snapshot": "apollo service:download --endpoint=https://hub.snapshot.org/graphql? snapshot-graphql-schema.json",
"codegen:contract": "typechain --target ethers-v5 --out-dir=src/contracts/__generated__ 'src/contracts/abis/*.json'",
"codegen:otto-graph": "yarn download-schema:otto && apollo codegen:generate --includes=src/graphs/otto.ts --localSchemaFile=otto-graphql-schema.json --target=typescript --tagName=gql --globalTypesFile=./src/__generated__/otto/global-types.ts",
"codegen:otter-graph": "yarn download-schema:otter && apollo codegen:generate --includes=src/graphs/otter.ts --localSchemaFile=otter-graphql-schema.json --target=typescript --tagName=gql --globalTypesFile=./src/__generated__/otter/global-types.ts && rm ./src/__generated__/otter/global-types.ts",
"codegen:otter-avax": "yarn download-schema:avax && apollo codegen:generate --includes=src/graphs/avax.ts --localSchemaFile=avax-graphql-schema.json --target=typescript --tagName=gql --globalTypesFile=./src/__generated__/avax/global-types.ts && rm ./src/__generated__/avax/global-types.ts",
"codegen:otter-bsc": "yarn download-schema:bsc && apollo codegen:generate --includes=src/graphs/bsc.ts --localSchemaFile=bsc-graphql-schema.json --target=typescript --tagName=gql --globalTypesFile=./src/__generated__/bsc/global-types.ts && rm ./src/__generated__/bsc/global-types.ts",
"codegen:snapshot-graph": "yarn download-schema:snapshot && apollo codegen:generate --includes=src/graphs/snapshot.ts --localSchemaFile=snapshot-graphql-schema.json --target=typescript --tagName=gql --globalTypesFile=./src/__generated__/snapshot/global-types.ts && rm ./src/__generated__/snapshot/global-types.ts",
"codegen": "yarn codegen:contract && yarn codegen:otto-graph && yarn codegen:otter-graph && yarn codegen:otter-avax && yarn codegen:otter-bsc && yarn codegen:snapshot-graph",
"prepare": "husky install",
"codegen:cn": "node ./scripts/gen-cn.mjs ./public/locales/zh-tw/common.json",
"check-trans": "node ./scripts/validate-translation-files.mjs"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"lint-staged": {
"*.{png,jpeg,jpg,gif,svg}": [
"node ./scripts/imagemin.mjs"
]
},
"dependencies": {
"@apollo/client": "^3.5.10",
"@netlify/functions": "^1.0.0",
"@react-hook/resize-observer": "^1.2.5",
"@reduxjs/toolkit": "^1.8.1",
"@typechain/ethers-v5": "^10.0.0",
"@types/retry": "^0.12.2",
"@usedapp/core": "^1.2.10",
"@usedapp/wallet-connect-v2-connector": "^1.0.3",
"@web3-react/walletconnect-connector": "^6.2.10",
"@web3-react/walletlink-connector": "^6.2.13",
"abortcontroller-polyfill": "^1.7.5",
"axios": "^0.26.1",
"date-fns": "^2.28.0",
"ethers": "^5.6.8",
"graphql": "^15.0.0",
"ioredis": "^5.0.6",
"localforage": "^1.10.0",
"lodash": "^4.17.21",
"md5": "^2.3.0",
"next": "^12.2.5",
"next-i18next": "^11.0.0",
"next-pwa": "^5.6.0",
"next-transpile-modules": "^9.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-loading-skeleton": "^3.1.0",
"react-markdown": "^8.0.2",
"react-redux": "^7.2.0",
"react-responsive": "^9.0.0-beta.10",
"react-responsive-carousel": "^3.2.23",
"react-swipeable": "^7.0.0",
"react-tooltip": "^4.2.21",
"react-transition-group": "^4.4.5",
"recharts": "^2.1.12",
"recharts-scale": "^0.4.5",
"rehype-raw": "^6.1.1",
"retry": "^0.13.1",
"styled-components": "^5.3.3",
"twitter-api-sdk": "^1.0.7",
"twitter-lite": "^1.1.0",
"typechain": "^8.0.0",
"webpack-manifest-plugin": "^5.0.0",
"webpack-sources": "^3.2.3",
"workbox-core": "^6.5.3",
"workbox-routing": "^6.5.3",
"workbox-strategies": "^6.5.3",
"workbox-window": "^6.5.3"
},
"devDependencies": {
"@netlify/plugin-nextjs": "^4.26.0",
"@next/bundle-analyzer": "^13.1.6",
"@types/graphql": "14.5.0",
"@types/lodash": "^4.14.180",
"@types/md5": "^2.3.2",
"@types/node": "^17.0.13",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@types/react-redux": "^7.1.7",
"@types/react-transition-group": "^4.4.5",
"@types/serviceworker": "^0.0.48",
"@types/styled-components": "^5.1.15",
"@types/workbox-window": "^4.3.4",
"@typescript-eslint/eslint-plugin": "^5.8.0",
"@typescript-eslint/parser": "^5.8.0",
"apollo": "2.34.0",
"babel-plugin-macros": "^3.1.0",
"babel-plugin-styled-components": "^2.1.1",
"eslint": "^8.17.0",
"eslint-config-airbnb": "^19.0.2",
"eslint-config-next": "^12.2.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.27.1",
"file-loader": "^6.2.0",
"husky": "^8.0.3",
"imagemin": "^8.0.1",
"imagemin-gifsicle": "^7.0.0",
"imagemin-jpegtran": "^7.0.0",
"imagemin-optipng": "^8.0.0",
"imagemin-svgo": "^10.0.1",
"lint-staged": "^13.0.3",
"opencc-js": "^1.0.4",
"prettier": "^2.5.1",
"react-error-overlay": "6.0.9",
"sass": "^1.54.1",
"typescript": "^4.6.3"
},
"resolutions": {
"react-error-overlay": "6.0.9",
"graphql": "^15.0.0"
}
}