Skip to content

Commit d7af002

Browse files
author
Wixzi
committed
Merge branch 'develop' into feature/new-user-profile
2 parents bbab94c + 5d8fb20 commit d7af002

File tree

88 files changed

+2485
-1377
lines changed

Some content is hidden

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

88 files changed

+2485
-1377
lines changed

.github/workflows/chromatic.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010
if: (!github.event.pull_request.draft && github.actor != 'dependabot[bot]')
1111
steps:
12-
- uses: actions/checkout@v1
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
1315
- name: Install dependencies
1416
run: yarn
1517

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
- name: Generate open-api
4141
run: yarn codegen:socket
4242

43+
- name: Generate graphql
44+
run: yarn codegen:graphql
45+
4346
- name: Compress workspace artifact
4447
run: tar --create --use-compress-program='zstd -T0' --file=/tmp/workspace.tar.zst .
4548

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
steps:
4444
- name: Checkout repository
45-
uses: actions/checkout@v2
45+
uses: actions/checkout@v3
4646

4747
# Initializes the CodeQL tools for scanning.
4848
- name: Initialize CodeQL

.github/workflows/ct.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
node_version: [16]
2323

2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2626
- uses: actions/setup-node@v2
2727
with:
2828
node-version: '16'

graphql-codegen.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
overwrite: true
2+
schema: 'https://api.thegraph.com/subgraphs/name/dxgraphs/swapr-mainnet-v2'
3+
documents: 'src/**/*.{gql,graphql}'
4+
generates:
5+
src/graphql/generated/schema.ts:
6+
plugins:
7+
- 'typescript'
8+
- 'typescript-operations'
9+
- 'typescript-react-apollo'

package.json

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "@swapr/frontend",
3-
"version": "1.0.0-beta.14.2",
3+
"version": "1.0.0-beta.15",
44
"private": true,
55
"description": "DXswap Decentralized Application",
66
"license": "GPL-3.0-or-later",
77
"scripts": {
8-
"start": "yarn codegen:socket && react-app-rewired start",
9-
"build": "yarn codegen:socket && cross-env GENERATE_SOURCEMAP=false react-app-rewired build",
8+
"start": "yarn codegen:socket && yarn codegen:graphql && react-app-rewired start",
9+
"build": "yarn codegen:socket && yarn codegen:graphql && cross-env GENERATE_SOURCEMAP=false react-app-rewired build",
1010
"build:serve": "yarn build && serve -s ./build -l 5000",
1111
"ipfs-build": "cross-env PUBLIC_URL=\".\" GENERATE_SOURCEMAP=false react-app-rewired build",
1212
"lint": "eslint src --ext js,jsx,ts,tsx",
@@ -25,7 +25,8 @@
2525
"prepare": "husky install",
2626
"storybook": "start-storybook -p 6006 -s public",
2727
"build-storybook": "build-storybook -s public",
28-
"chromatic": "chromatic --exit-zero-on-changes"
28+
"chromatic": "chromatic --exit-zero-on-changes",
29+
"codegen:graphql": "graphql-codegen --config graphql-codegen.yml"
2930
},
3031
"resolutions": {
3132
"@uniswap/smart-order-router": "2.5.26"
@@ -38,9 +39,9 @@
3839
"@reach/portal": "^0.17.0",
3940
"@react-spring/web": "^9.2.4",
4041
"@reduxjs/toolkit": "^1.8.3",
41-
"@swapr/core": "^0.3.18",
42-
"@swapr/periphery": "^0.3.20",
43-
"@swapr/sdk": "1.5.1",
42+
"@swapr/core": "^0.3.19",
43+
"@swapr/periphery": "^0.3.22",
44+
"@swapr/sdk": "1.6.0-rc.3",
4445
"@uniswap/token-lists": "^1.0.0-beta.27",
4546
"@web3-react/core": "^6.1.9",
4647
"@web3-react/injected-connector": "^6.0.7",
@@ -57,15 +58,15 @@
5758
"date-fns": "^2.28.0",
5859
"decimal.js-light": "^2.5.1",
5960
"ethers": "^5.4.4",
60-
"etherscan-api": "10.1.0",
61+
"etherscan-api": "10.2.0",
6162
"git-revision-webpack-plugin": "^3.0.6",
6263
"graphql": "^16.5.0",
6364
"graphql-request": "^4.3.0",
6465
"i18next": "^21.8.16",
6566
"i18next-browser-languagedetector": "^6.1.4",
6667
"i18next-http-backend": "^1.4.1",
6768
"lodash": "^4.17.21",
68-
"luxon": "^2.4.0",
69+
"luxon": "^3.0.1",
6970
"merkletreejs": "^0.2.32",
7071
"multicodec": "^3.2.1",
7172
"multiformats": "^9.7.1",
@@ -77,29 +78,34 @@
7778
"rc-texty": "^0.2.0",
7879
"react": "^18.2.0",
7980
"react-app-rewired": "^2.2.1",
80-
"react-datepicker": "^3.4.1",
81+
"react-datepicker": "^4.8.0",
8182
"react-device-detect": "^2.2.2",
8283
"react-dom": "^18.2.0",
8384
"react-fast-marquee": "^1.3.4",
8485
"react-feather": "^2.0.8",
85-
"react-i18next": "^11.17.3",
86+
"react-i18next": "^11.18.3",
8687
"react-loading-skeleton": "3.1.0",
8788
"react-popper": "^2.2.5",
8889
"react-redux": "^8.0.2",
8990
"react-router-dom": "^6.3.0",
90-
"react-toastify": "9.0.3",
91+
"react-toastify": "9.0.7",
9192
"react-use": "^17.4.0",
9293
"react-virtualized-auto-sizer": "^1.0.6",
9394
"react-window": "^1.8.5",
9495
"rebass": "^4.0.7",
9596
"redux-localstorage-simple": "^2.4.1",
9697
"start-server-and-test": "^1.14.0",
97-
"styled-components": "5.3.3",
98+
"styled-components": "5.3.5",
9899
"toformat": "^2.0.0",
99100
"wcag-contrast": "^3.0.0"
100101
},
101102
"devDependencies": {
102103
"@connext/nxtp-sdk": "^0.1.36",
104+
"@graphql-codegen/cli": "2.11.3",
105+
"@graphql-codegen/introspection": "2.2.0",
106+
"@graphql-codegen/typescript": "2.7.2",
107+
"@graphql-codegen/typescript-operations": "^2.5.2",
108+
"@graphql-codegen/typescript-react-apollo": "^3.3.2",
103109
"@openapitools/openapi-generator-cli": "^2.5.1",
104110
"@react-theming/storybook-addon": "^1.1.6",
105111
"@simbathesailor/use-what-changed": "^2.0.0",
@@ -117,14 +123,14 @@
117123
"@synthetixio/synpress": "^1.1.1",
118124
"@testing-library/cypress": "^8.0.2",
119125
"@types/aos": "^3.0.4",
120-
"@types/jest": "^25.2.1",
126+
"@types/jest": "^28.1.6",
121127
"@types/lodash": "^4.14.182",
122-
"@types/luxon": "^2.3.2",
123-
"@types/multicodec": "^1.0.0",
128+
"@types/luxon": "^3.0.0",
129+
"@types/multicodec": "^2.1.0",
124130
"@types/node": "^18.0.1",
125131
"@types/numeral": "^2.0.2",
126132
"@types/react": "^18.0.15",
127-
"@types/react-datepicker": "^3.1.8",
133+
"@types/react-datepicker": "^4.4.2",
128134
"@types/react-dom": "^18.0.6",
129135
"@types/react-router-dom": "^5.1.8",
130136
"@types/react-virtualized-auto-sizer": "^1.0.1",
@@ -138,13 +144,13 @@
138144
"assert": "^2.0.0",
139145
"browserslist": "^4.21.1",
140146
"buffer": "^6.0.3",
141-
"chromatic": "^6.6.3",
147+
"chromatic": "^6.7.2",
142148
"cross-env": "^7.0.2",
143149
"crypto-browserify": "^3.12.0",
144-
"cypress": "^10.2.0",
150+
"cypress": "^10.3.1",
145151
"cypress-localstorage-commands": "^2.1.0",
146152
"cypress-mochawesome-reporter": "^3.1.0",
147-
"eslint": "^7.32.0",
153+
"eslint": "^8.21.0",
148154
"eslint-config-prettier": "^8.5.0",
149155
"eslint-config-react-app": "^7.0.1",
150156
"eslint-plugin-import": "^2.26.0",
@@ -162,7 +168,7 @@
162168
"os-browserify": "^0.3.0",
163169
"path-browserify": "^1.0.1",
164170
"prettier": "^2.7.1",
165-
"react-error-overlay": "6.0.9",
171+
"react-error-overlay": "6.0.11",
166172
"react-scripts": "5.0.1",
167173
"serve": "^14.0.1",
168174
"stream-browserify": "^3.0.0",

public/locales/de/pool.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"userLiquidity.yourLiquidity": "Your liquidity",
1515
"userLiquidity.pooledToken": "Pooled {{ token }}",
1616
"userLiquidity.poolShare": "Pool share",
17-
"userLiquidity.poolTokens": "Pool Tokens",
17+
"userLiquidity.lpTokens": "LP Tokens",
1818
"addLiquidity": "Add Liquidity",
1919
"userLiquidity.removeLiquidity": "Remove Liquidity",
2020
"pairsList.pair": "Pair",

public/locales/en-US/pool.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"userLiquidity.yourLiquidity": "Your liquidity",
1515
"userLiquidity.pooledToken": "Pooled {{ token }}",
1616
"userLiquidity.poolShare": "Pool share",
17-
"userLiquidity.poolTokens": "Pool Tokens",
17+
"userLiquidity.lpTokens": "LP Tokens",
1818
"addLiquidity": "Add Liquidity",
1919
"userLiquidity.removeLiquidity": "Remove Liquidity",
2020
"pairsList.pair": "Pair",

public/locales/en/pool.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"userLiquidity.yourLiquidity": "Your liquidity",
1515
"userLiquidity.pooledToken": "Pooled {{ token }}",
1616
"userLiquidity.poolShare": "Pool share",
17-
"userLiquidity.poolTokens": "Pool Tokens",
17+
"userLiquidity.lpTokens": "LP Tokens",
1818
"addLiquidity": "Add Liquidity",
1919
"userLiquidity.removeLiquidity": "Remove Liquidity",
2020
"pairsList.pair": "Pair",

public/locales/es-AR/pool.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"userLiquidity.yourLiquidity": "Your liquidity",
1515
"userLiquidity.pooledToken": "Pooled {{ token }}",
1616
"userLiquidity.poolShare": "Pool share",
17-
"userLiquidity.poolTokens": "Pool Tokens",
17+
"userLiquidity.lpTokens": "LP Tokens",
1818
"addLiquidity": "Add Liquidity",
1919
"userLiquidity.removeLiquidity": "Remove Liquidity",
2020
"pairsList.pair": "Pair",

0 commit comments

Comments
 (0)