feat: integrate relay (#4320)
* setup relay compiler * refactored to use polling interval, fixed PR comments * fixes, readded uninitialized state for liquidity chart * updated cypress test * reorganized graphql files into src/graphql
Showing
| ... | @@ -8,7 +8,8 @@ | ... | @@ -8,7 +8,8 @@ |
| "contracts:compile:abi": "typechain --target ethers-v5 --out-dir src/abis/types \"./src/abis/**/*.json\"", | "contracts:compile:abi": "typechain --target ethers-v5 --out-dir src/abis/types \"./src/abis/**/*.json\"", | ||
| "contracts:compile:v3": "typechain --target ethers-v5 --out-dir src/types/v3 \"./node_modules/@uniswap/**/artifacts/contracts/**/*[!dbg].json\"", | "contracts:compile:v3": "typechain --target ethers-v5 --out-dir src/types/v3 \"./node_modules/@uniswap/**/artifacts/contracts/**/*[!dbg].json\"", | ||
| "contracts:compile": "yarn contracts:compile:abi && yarn contracts:compile:v3", | "contracts:compile": "yarn contracts:compile:abi && yarn contracts:compile:v3", | ||
| "graphql:generate": "graphql-codegen --config codegen.yml", | "relay": "relay-compiler", | ||
| "graphql:generate": "graphql-codegen --config codegen.yml && yarn relay", | |||
| "prei18n:extract": "node prei18n-extract.js", | "prei18n:extract": "node prei18n-extract.js", | ||
| "i18n:extract": "lingui extract --locale en-US", | "i18n:extract": "lingui extract --locale en-US", | ||
| "i18n:compile": "yarn i18n:extract && lingui compile", | "i18n:compile": "yarn i18n:extract && lingui compile", | ||
| ... | @@ -22,6 +23,11 @@ | ... | @@ -22,6 +23,11 @@ |
| "cypress:open": "cypress open --browser chrome --e2e", | "cypress:open": "cypress open --browser chrome --e2e", | ||
| "cypress:run": "cypress run --browser chrome --e2e" | "cypress:run": "cypress run --browser chrome --e2e" | ||
| }, | }, | ||
| "relay": { | |||
| "src": "./src", | |||
| "language": "typescript", | |||
| "schema": "./src/graphql/schema/schema.graphql" | |||
| }, | |||
| "jest": { | "jest": { | ||
| "collectCoverageFrom": [ | "collectCoverageFrom": [ | ||
| "src/components/**/*.ts*", | "src/components/**/*.ts*", | ||
| ... | @@ -58,8 +64,7 @@ | ... | @@ -58,8 +64,7 @@ |
| "@craco/craco": "6.4.3", | "@craco/craco": "6.4.3", | ||
| "@ethersproject/experimental": "^5.4.0", | "@ethersproject/experimental": "^5.4.0", | ||
| "@graphql-codegen/cli": "1.21.5", | "@graphql-codegen/cli": "1.21.5", | ||
| "@graphql-codegen/typescript": "1.22.3", | "@graphql-codegen/schema-ast": "^2.5.1", | ||
| "@graphql-codegen/typescript-operations": "^1.18.2", | |||
| "@graphql-codegen/typescript-rtk-query": "^1.1.1", | "@graphql-codegen/typescript-rtk-query": "^1.1.1", | ||
| "@lingui/cli": "^3.9.0", | "@lingui/cli": "^3.9.0", | ||
| "@testing-library/jest-dom": "^5.16.4", | "@testing-library/jest-dom": "^5.16.4", | ||
| ... | @@ -90,6 +95,7 @@ | ... | @@ -90,6 +95,7 @@ |
| "@types/wcag-contrast": "^3.0.0", | "@types/wcag-contrast": "^3.0.0", | ||
| "@typescript-eslint/eslint-plugin": "^4", | "@typescript-eslint/eslint-plugin": "^4", | ||
| "@typescript-eslint/parser": "^4", | "@typescript-eslint/parser": "^4", | ||
| "babel-plugin-relay": "^14.1.0", | |||
| "@vanilla-extract/babel-plugin": "^1.1.7", | "@vanilla-extract/babel-plugin": "^1.1.7", | ||
| "@vanilla-extract/webpack-plugin": "^2.1.11", | "@vanilla-extract/webpack-plugin": "^2.1.11", | ||
| "cypress": "^10.3.1", | "cypress": "^10.3.1", | ||
| ... | @@ -106,6 +112,7 @@ | ... | @@ -106,6 +112,7 @@ |
| "ms.macro": "^2.0.0", | "ms.macro": "^2.0.0", | ||
| "prettier": "^2.7.1", | "prettier": "^2.7.1", | ||
| "react-scripts": "^4.0.3", | "react-scripts": "^4.0.3", | ||
| "relay-compiler": "^14.1.0", | |||
| "serve": "^11.3.2", | "serve": "^11.3.2", | ||
| "typechain": "^5.0.0", | "typechain": "^5.0.0", | ||
| "typescript": "^4.4.3" | "typescript": "^4.4.3" | ||
| ... | @@ -126,6 +133,7 @@ | ... | @@ -126,6 +133,7 @@ |
| "@reach/portal": "^0.10.3", | "@reach/portal": "^0.10.3", | ||
| "@react-hook/window-scroll": "^1.3.0", | "@react-hook/window-scroll": "^1.3.0", | ||
| "@reduxjs/toolkit": "^1.6.1", | "@reduxjs/toolkit": "^1.6.1", | ||
| "@types/react-relay": "^13.0.2", | |||
| "@uniswap/governance": "^1.0.2", | "@uniswap/governance": "^1.0.2", | ||
| "@uniswap/liquidity-staker": "^1.0.2", | "@uniswap/liquidity-staker": "^1.0.2", | ||
| "@uniswap/merkle-distributor": "1.0.1", | "@uniswap/merkle-distributor": "1.0.1", | ||
| ... | @@ -174,7 +182,7 @@ | ... | @@ -174,7 +182,7 @@ |
| "firebase": "^9.1.3", | "firebase": "^9.1.3", | ||
| "focus-visible": "^5.2.0", | "focus-visible": "^5.2.0", | ||
| "fortmatic": "^2.4.0", | "fortmatic": "^2.4.0", | ||
| "graphql": "^15.5.0", | "graphql": "^16.5.0", | ||
| "graphql-request": "^3.4.0", | "graphql-request": "^3.4.0", | ||
| "immer": "^9.0.6", | "immer": "^9.0.6", | ||
| "inter-ui": "^3.13.1", | "inter-ui": "^3.13.1", | ||
| ... | @@ -199,6 +207,7 @@ | ... | @@ -199,6 +207,7 @@ |
| "react-popper": "^2.2.3", | "react-popper": "^2.2.3", | ||
| "react-query": "^3.39.1", | "react-query": "^3.39.1", | ||
| "react-redux": "^8.0.2", | "react-redux": "^8.0.2", | ||
| "react-relay": "^14.1.0", | |||
| "react-router-dom": "^6.3.0", | "react-router-dom": "^6.3.0", | ||
| "react-spring": "^8.0.27", | "react-spring": "^8.0.27", | ||
| "react-table": "^7.8.0", | "react-table": "^7.8.0", | ||
| ... | @@ -208,6 +217,7 @@ | ... | @@ -208,6 +217,7 @@ |
| "rebass": "^4.0.7", | "rebass": "^4.0.7", | ||
| "redux": "^4.1.2", | "redux": "^4.1.2", | ||
| "redux-localstorage-simple": "^2.3.1", | "redux-localstorage-simple": "^2.3.1", | ||
| "relay-hooks": "^7.1.0", | |||
| "setimmediate": "^1.0.5", | "setimmediate": "^1.0.5", | ||
| "styled-components": "^5.3.5", | "styled-components": "^5.3.5", | ||
| "tiny-invariant": "^1.2.0", | "tiny-invariant": "^1.2.0", | ||
| ... | ... |
src/graphql/fetchGraphQL.ts
0 → 100644
This diff is collapsed.
Please register or sign in to comment