Skip to content

Commit

Permalink
Merge Algebra Farming
Browse files Browse the repository at this point in the history
Feature/farming
  • Loading branch information
lilchizh authored Mar 14, 2024
2 parents f1bace5 + 93cb411 commit bf99d70
Show file tree
Hide file tree
Showing 39 changed files with 4,600 additions and 1,239 deletions.
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
VITE_INFO_GRAPH=https://api.thegraph.com/subgraphs/name/iliaazhel/integral-core
VITE_LIMIT_ORDERS_GRAPH=https://api.thegraph.com/subgraphs/name/iliaazhel/integral-limit-order
VITE_BLOCKS_GRAPH=https://api.thegraph.com/subgraphs/name/iliaazhel/goerli-blocks
VITE_INFURA_RPC=https://1rpc.io/holesky
VITE_FARMING_GRAPH=https://api.thegraph.com/subgraphs/name/iliaazhel/farming-test
VITE_INFURA_RPC=https://ethereum-holesky-rpc.publicnode.com
VITE_WALLETCONNECT_PROJECT_ID=79c313a96c99edbc26d06cd97bff1126
36 changes: 20 additions & 16 deletions codegen.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@

import type { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
overwrite: true,
schema: [
"https://api.thegraph.com/subgraphs/name/iliaazhel/integral-core",
"https://api.thegraph.com/subgraphs/name/iliaazhel/goerli-blocks"
],
documents: "src/graphql/queries/!(*.d).{ts,tsx}",
generates: {
"src/graphql/generated/graphql.tsx": {
plugins: ['typescript', 'typescript-operations', 'typescript-react-apollo'],
config: {
withHooks: true,
withResultType: true
}
}
}
overwrite: true,
schema: [
'https://api.thegraph.com/subgraphs/name/iliaazhel/integral-core',
'https://api.thegraph.com/subgraphs/name/iliaazhel/goerli-blocks',
'https://api.thegraph.com/subgraphs/name/iliaazhel/farming-test',
],
documents: 'src/graphql/queries/!(*.d).{ts,tsx}',
generates: {
'src/graphql/generated/graphql.tsx': {
plugins: [
'typescript',
'typescript-operations',
'typescript-react-apollo',
],
config: {
withHooks: true,
withResultType: true,
},
},
},
};

export default config;
Loading

0 comments on commit bf99d70

Please sign in to comment.