-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
237 lines (237 loc) · 9.45 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
{
"name": "friktion-frontend",
"version": "0.0.1",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/Friktion-Labs/frontend"
},
"homepage": "/",
"scripts": {
"theme:build": "gulp less",
"skip": "echo 'Skipping Cypress check on CI. Commit this on master directly with no other commits ahead.' && node ./scripts/generate-cupressus-message.js && git commit --allow-empty -F ./scripts/cupressus-message && rm ./scripts/cupressus-message && echo '\n\n🙏 Please run git push with this latest commit at HEAD, or include the commit message in the pull request title'",
"start": "yarn theme:build && if ls -l node_modules/@friktion-labs | grep ^l | grep friktion-sdk; then yarn craco-and-volt; else yarn craco; fi",
"craco-and-volt": "echo 'typescript and idl generation for ~/volt running in the background' && concurrently -r --kill-others 'craco start' './scripts/link-volt-start.sh' './scripts/link-volt-idl-watch.sh'",
"amilinked": "if ls -l node_modules/@friktion-labs | grep ^l | grep friktion-sdk; then echo YES; else echo NO; fi",
"cypress": "cypress open",
"e2e-ci": "concurrently -r --kill-others 'yarn e2e-server' 'yarn e2e'",
"e2e": "cypress run --headed --spec 'cypress/integration/3-friktion/*.spec.ts'",
"e2e-server": "http-server ./build/ -p 3000 -P 'http://localhost:3000?'",
"craco": "craco start",
"build": "yarn theme:build && GENERATE_SOURCEMAP=true craco build | grep -v 'babel/preset-env' && cp _redirects ./build/",
"delete-sourcemaps": "find ./build -name '*.map' -delete",
"build-nocheck": "CI=false GENERATE_SOURCEMAP=true DISABLE_ESLINT_PLUGIN=true craco build",
"test": "craco test",
"eject": "react-scripts eject",
"predeploy": "git pull --ff-only && yarn && yarn build",
"snapshot-1-capture": "rm friktionSnapshot.json || node ./puppets/snapshot-deposits.js",
"snapshot-2-postprocess": "./scripts/process-snapshots.sh",
"snapshot-2-clone": "git clone [email protected]:Friktion-Labs/mainnet-tvl-snapshots.git || true",
"snapshot-3-danger-copy": "mv friktionSnapshot.json mainnet-tvl-snapshots/",
"snapshot-3-push": "cd mainnet-tvl-snapshots && git add friktionSnapshot.json && git commit --author=\"Friktion Bot <[email protected]>\" --date=\"$(date -u)\" -m \"Friktion TVL $(date -u) $(node ../scripts/read-tvl.js)\"",
"perform-snapshot": "yarn snapshot-1-capture && yarn snapshot-2-clone && yarn snapshot-2-postprocess && yarn snapshot-3-danger-copy && yarn snapshot-3-push && cd mainnet-tvl-snapshots && git push origin HEAD",
"dry-run-snapshot": "touch DRY_RUN_SNAPSHOT && yarn snapshot-1-capture && yarn snapshot-2-clone && yarn snapshot-2-postprocess && yarn snapshot-3-danger-copy && yarn snapshot-3-push && cd mainnet-tvl-snapshots",
"ci-check-snapshot": "yarn snapshot-2-clone && yarn assert-daily-liveness-snapshot",
"assert-daily-liveness-snapshot": "./scripts/check-mainnet-tvl.sh",
"deploy": "gh-pages -d build",
"deploy:ar": "arweave deploy-dir build --key-file ",
"format:fix": "prettier --write \"**/*.+(js|jsx|ts|tsx|json|css|md)\"",
"lint": "eslint src/ --max-warnings=0",
"lint:fix": "eslint src/ --fix",
"prettier:check": "prettier 'src/**/*.{ts,tsx}' --check",
"prettier:fix": "prettier 'src/**/*.{ts,tsx}' --write"
},
"dependencies": {
"@ant-design/icons": "^4.6.4",
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
"@babel/plugin-syntax-jsx": "^7.14.5",
"@babel/plugin-transform-classes": "^7.16.7",
"@babel/plugin-transform-spread": "^7.16.7",
"@babel/preset-env": "^7.16.7",
"@certusone/wormhole-sdk": "^0.6.2",
"@craco/craco": "^6.4.1",
"@dialectlabs/react": "^0.5.2",
"@dialectlabs/react-ui": "^0.8.4",
"@emotion/babel-plugin": "^11.9.2",
"@emotion/babel-preset-css-prop": "^11.2.0",
"@emotion/core": "^11.0.0",
"@emotion/css": "^11.9.0",
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@friktion-labs/friktion-sdk": "2.3.3",
"@jup-ag/core": "1.0.0-beta.23",
"@jup-ag/math": "1.0.0-beta.23",
"@jup-ag/react-hook": "1.0.0-beta.23",
"@ledgerhq/hw-transport": "^6.7.0",
"@ledgerhq/hw-transport-webusb": "^6.7.0",
"@lidofinance/solido-sdk": "^0.4.0",
"@material-ui/core": "^4.12.3",
"@material-ui/icons": "^4.11.2",
"@mercurial-finance/stable-swap-n-pool": "^0.2.0",
"@mui/icons-material": "^5.2.5",
"@mui/material": "^5.2.6",
"@nivo/bar": "^0.79.1",
"@nivo/core": "^0.79.0",
"@nivo/line": "^0.79.1",
"@nivo/pie": "^0.79.1",
"@project-serum/anchor": "0.25.0",
"@project-serum/common": "^0.0.1-beta.3",
"@project-serum/serum": "^0.13.61",
"@project-serum/swap-ui": "^0.2.5",
"@project-serum/tokens": "^0.0.7",
"@quarryprotocol/quarry-sdk": "^5.0.2",
"@quarryprotocol/react-quarry": "^0.18.6",
"@reach/visually-hidden": "^0.16.0",
"@saberhq/anchor-contrib": "^1.13.8",
"@saberhq/sail": "^4.0.1",
"@saberhq/solana-contrib": "^1.13.8",
"@saberhq/token-utils": "^1.13.8",
"@sentre/connector": "^0.1.0",
"@snowflake-so/safe-apps-provider": "^1.0.15",
"@solana/buffer-layout": "4.0.0",
"@solana/spl-token": "^0.1.6",
"@solana/spl-token-registry": "^0.2.1449",
"@solana/spl-token-swap": "^0.1.2",
"@solana/wallet-adapter-react": "^0.15.15",
"@solana/wallet-adapter-wallets": "^0.18.10",
"@solana/web3.js": "^1.42.0",
"@szhsin/react-menu": "^3.1.1",
"@testing-library/jest-dom": "^5.15.1",
"@testing-library/react": "^12.1.2",
"@types/react-router": "^5.1.17",
"@types/react-router-dom": "^5.3.2",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"@web3-react/coinbase-wallet": "8.0.31-beta.0",
"@web3-react/core": "8.0.30-beta.0",
"@web3-react/metamask": "8.0.24-beta.0",
"@web3-react/types": "8.0.17-beta.0",
"@web3-react/walletconnect": "8.0.31-beta.0",
"antd": "^4.20.2",
"babel-eslint": "^10.1.0",
"bn.js": "^5.1.3",
"bs58": "^4.0.1",
"buffer": "^6.0.3",
"buffer-layout": "^1.2.2",
"classnames": "^2.3.1",
"craco-less": "2.0.0",
"cross-fetch": "3.1.4",
"crypto-browserify": "^3.12.0",
"decimal.js": "^10.3.1",
"eslint": "8.16.0",
"eslint-config-react-app": "7",
"eslint-plugin-flowtype": "8.0.3",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jest": "26.2.2",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-react": "7.30.0",
"eslint-plugin-react-hooks": "4.5.0",
"eslint-plugin-testing-library": "5.5.1",
"eslint-webpack-plugin": "3.1.1",
"ethers": "^5.6.4",
"eventemitter3": "^4.0.7",
"fast-deep-equal": "^3.1.3",
"focus-visible": "^5.2.0",
"gsap": "^3.10.4",
"jsbi": "^4.1.0",
"lodash-es": "^4.17.21",
"lodash.debounce": "^4.0.8",
"moment": "^2.29.1",
"promise-retry": "~2.0.1",
"react": "^18.1.0",
"react-app-polyfill": "^3.0.0",
"react-async-hook": "^4.0.0",
"react-calendar": "^3.7.0",
"react-copy-to-clipboard": "^5.1.0",
"react-countdown": "^2.3.2",
"react-csv": "^2.2.2",
"react-date-picker": "^8.4.0",
"react-dom": "^18.1.0",
"react-ga4": "^1.4.1",
"react-intersection-observer": "^9.4.0",
"react-number-format": "^4.7.3",
"react-query": "^3.38.1",
"react-router": "^6.0.2",
"react-router-dom": "^6.0.2",
"react-scripts": "^5.0.0",
"react-select": "^5.2.2",
"react-slick": "^0.29.0",
"react-toastify": "^8.1.0",
"react-use": "^17.3.1",
"react-youtube": "^7.14.0",
"recharts": "^2.1.13",
"setimmediate": "^1.0.5",
"slick-carousel": "^1.8.1",
"stream-browserify": "^3.0.0",
"styled-components": "^5.3.5",
"tiny-invariant": "^1.2.0",
"ts-node": "^10.4.0",
"typescript": "^4.4.3",
"usehooks-ts": "^2.3.0",
"yargs": "^17.2.1"
},
"devDependencies": {
"@coinbase/wallet-sdk": "^3.0.4",
"@types/bn.js": "^4.11.6",
"@types/bs58": "^4.0.1",
"@types/jest": "^27.0.2",
"@types/lodash-es": "^4.17.5",
"@types/lodash.debounce": "^4.0.6",
"@types/node": "^17.0.23",
"@types/puppeteer": "^5.4.4",
"@types/react": "^18",
"@types/react-calendar": "^3.5.1",
"@types/react-copy-to-clipboard": "^5.0.3",
"@types/react-csv": "^1.1.3",
"@types/react-dom": "^18.0.3",
"@types/react-slick": "^0.23.10",
"@types/youtube-player": "^5.5.6",
"@walletconnect/ethereum-provider": "^1.7.5",
"@welldone-software/why-did-you-render": "^6.2.3",
"arweave-deploy": "^1.9.1",
"autoprefixer": "^10.4.7",
"concurrently": "^6.4.0",
"cypress": "^9.1.1",
"gh-pages": "^3.1.0",
"gulp": "^4.0.2",
"gulp-csso": "^4.0.1",
"gulp-less": "^5.0.0",
"gulp-postcss": "^9.0.1",
"http-server": "^14.0.0",
"less-plugin-npm-import": "^2.1.0",
"prettier": "^2.5.0",
"puppeteer": "^13.0.1"
},
"resolutions": {
"@saberhq/solana-contrib": "^1.13.8",
"@saberhq/token-utils": "^1.13.8",
"@solana/buffer-layout": "4.0.0",
"@solana/web3.js": "^1.42.0",
"@saberhq/stableswap-sdk": "1.13.8",
"@types/react-dom": "^18",
"@types/react": "^18",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-spring": "^9.4.5-beta.2"
},
"eslintConfig": {
"extends": "react-app",
"rules": {
"eqeqeq": [
"error",
"always"
]
}
},
"browserslist": [
">0.5%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"jest": {
"transformIgnorePatterns": [
"/node_modules/(?!@project-serum/sol-wallet-adapter)"
]
}
}