feat: data api connection (#4396)
* split relay into two environments, refactored schema grabbing, implemented api call for token price graph
Showing
fetch-schema.js
0 → 100644
... | ... | @@ -8,8 +8,10 @@ |
"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": "yarn contracts:compile:abi && yarn contracts:compile:v3", | ||
"relay": "relay-compiler", | ||
"graphql:generate": "graphql-codegen --config codegen.yml && yarn relay", | ||
"relay": "relay-compiler relay.config.js", | ||
"relay-thegraph": "relay-compiler relay_thegraph.config.js", | ||
"graphql:fetch": "node fetch-schema.js", | ||
"graphql:generate": "yarn relay && yarn relay-thegraph", | ||
"prei18n:extract": "node prei18n-extract.js", | ||
"i18n:extract": "lingui extract --locale en-US", | ||
"i18n:compile": "yarn i18n:extract && lingui compile", | ||
... | ... | @@ -23,11 +25,6 @@ |
"cypress:open": "cypress open --browser chrome --e2e", | ||
"cypress:run": "cypress run --browser chrome --e2e" | ||
}, | ||
"relay": { | ||
"src": "./src", | ||
"language": "typescript", | ||
"schema": "./src/graphql/schema/schema.graphql" | ||
}, | ||
"jest": { | ||
"collectCoverageFrom": [ | ||
"src/components/**/*.ts*", | ||
... | ... | @@ -63,9 +60,6 @@ |
"devDependencies": { | ||
"@craco/craco": "6.4.3", | ||
"@ethersproject/experimental": "^5.4.0", | ||
"@graphql-codegen/cli": "1.21.5", | ||
"@graphql-codegen/schema-ast": "^2.5.1", | ||
"@graphql-codegen/typescript-rtk-query": "^1.1.1", | ||
"@lingui/cli": "^3.9.0", | ||
"@testing-library/jest-dom": "^5.16.4", | ||
"@testing-library/react": "^13.1", | ||
... | ... | @@ -95,9 +89,9 @@ |
"@types/wcag-contrast": "^3.0.0", | ||
"@typescript-eslint/eslint-plugin": "^4", | ||
"@typescript-eslint/parser": "^4", | ||
"babel-plugin-relay": "^14.1.0", | ||
"@vanilla-extract/babel-plugin": "^1.1.7", | ||
"@vanilla-extract/webpack-plugin": "^2.1.11", | ||
"babel-plugin-relay": "^14.1.0", | ||
"cypress": "^10.3.1", | ||
"env-cmd": "^10.1.0", | ||
"eslint": "^7.11.0", | ||
... | ... | @@ -173,6 +167,7 @@ |
"ajv": "^6.12.3", | ||
"array.prototype.flat": "^1.2.4", | ||
"array.prototype.flatmap": "^1.2.4", | ||
"aws4fetch": "^1.0.13", | ||
"cids": "^1.0.0", | ||
"clsx": "^1.1.1", | ||
"copy-to-clipboard": "^3.2.0", | ||
... | ... | @@ -181,6 +176,7 @@ |
"ethers": "^5.1.4", | ||
"firebase": "^9.1.3", | ||
"focus-visible": "^5.2.0", | ||
"get-graphql-schema": "^2.1.2", | ||
"graphql": "^16.5.0", | ||
"graphql-request": "^3.4.0", | ||
"immer": "^9.0.6", | ||
... | ... | @@ -216,7 +212,6 @@ |
"rebass": "^4.0.7", | ||
"redux": "^4.1.2", | ||
"redux-localstorage-simple": "^2.3.1", | ||
"relay-hooks": "^7.1.0", | ||
"setimmediate": "^1.0.5", | ||
"styled-components": "^5.3.5", | ||
"tiny-invariant": "^1.2.0", | ||
... | ... |
relay.config.js
0 → 100644
relay_thegraph.config.js
0 → 100644
File moved
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
Please register or sign in to comment