feat(thegraph): auto-generate graphql types (#1926)
* auto-generate graphql types * remove introspection * generated .ts and add to prettierignore * updated graph url
Showing
.prettierignore
0 → 100644
codegen.yml
0 → 100644
... | @@ -5,6 +5,10 @@ | ... | @@ -5,6 +5,10 @@ |
"private": true, | "private": true, | ||
"devDependencies": { | "devDependencies": { | ||
"@ethersproject/experimental": "^5.2.0", | "@ethersproject/experimental": "^5.2.0", | ||
"@graphql-codegen/cli": "1.21.5", | |||
"@graphql-codegen/typescript": "1.22.3", | |||
"@graphql-codegen/typescript-operations": "^1.18.2", | |||
"@graphql-codegen/typescript-rtk-query": "^1.1.1", | |||
"@lingui/cli": "^3.9.0", | "@lingui/cli": "^3.9.0", | ||
"@lingui/loader": "^3.9.0", | "@lingui/loader": "^3.9.0", | ||
"@lingui/macro": "^3.9.0", | "@lingui/macro": "^3.9.0", | ||
... | @@ -15,6 +19,7 @@ | ... | @@ -15,6 +19,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.0", | "@reduxjs/toolkit": "^1.6.0", | ||
"@rtk-query/graphql-request-base-query": "^1.0.3", | |||
"@typechain/ethers-v5": "^7.0.0", | "@typechain/ethers-v5": "^7.0.0", | ||
"@types/jest": "^25.2.1", | "@types/jest": "^25.2.1", | ||
"@types/lingui__core": "^2.7.1", | "@types/lingui__core": "^2.7.1", | ||
... | @@ -122,6 +127,7 @@ | ... | @@ -122,6 +127,7 @@ |
"i18n:extract": "lingui extract --locale en-US", | "i18n:extract": "lingui extract --locale en-US", | ||
"i18n:compile": "lingui compile", | "i18n:compile": "lingui compile", | ||
"integration-test": "start-server-and-test 'serve build -l 3000' http://localhost:3000 'cypress run --record'", | "integration-test": "start-server-and-test 'serve build -l 3000' http://localhost:3000 'cypress run --record'", | ||
"graphql:generate": "graphql-codegen --config codegen.yml", | |||
"postinstall": "yarn compile-contract-types", | "postinstall": "yarn compile-contract-types", | ||
"start": "yarn compile-contract-types && react-scripts start", | "start": "yarn compile-contract-types && react-scripts start", | ||
"test": "react-scripts test --env=jsdom" | "test": "react-scripts test --env=jsdom" | ||
... | ... |
src/state/data/generated.ts
0 → 100644
This source diff could not be displayed because it is too large. You can view the blob instead.
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