Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
luizakp committed Aug 27, 2024
1 parent e51402b commit 9dd9d2b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 30 deletions.
36 changes: 22 additions & 14 deletions packages/gql/codegen.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { capitalize, Network } from "@bleu/utils";
import { CodegenConfig } from "@graphql-codegen/cli";
import dotenv from 'dotenv';
import dotenv from "dotenv";

dotenv.config();

Expand Down Expand Up @@ -50,18 +50,27 @@ export const SUBGRAPHS = {
[Subgraph.BalancerGauges]: {
name: Subgraph.BalancerGauges,
endpoints() {

return {
[Network.Ethereum]: "https://api.studio.thegraph.com/query/75376/balancer-gauges/version/latest",
[Network.Sepolia]: "https://api.studio.thegraph.com/query/24660/balancer-gauges-sepolia/version/latest",
[Network.Goerli]: "https://api.studio.thegraph.com/query/24660/balancer-gauges-sepolia/version/latest",
[Network.Polygon]: "https://api.studio.thegraph.com/query/75376/balancer-gauges-polygon/version/latest",
[Network.PolygonZKEVM]:"https://api.studio.thegraph.com/query/24660/balancer-gauges-polygon-zk/version/latest" ,
[Network.Arbitrum]: "https://api.studio.thegraph.com/query/75376/balancer-gauges-arbitrum/version/latest",
[Network.Gnosis]: "https://api.studio.thegraph.com/query/75376/balancer-gauges-gnosis-chain/version/latest",
[Network.Optimism]: "https://api.studio.thegraph.com/query/75376/balancer-gauges-optimism/version/latest",
[Network.Base]: "https://api.studio.thegraph.com/query/24660/balancer-gauges-base/version/latest",
[Network.Avalanche]: "https://api.studio.thegraph.com/query/75376/balancer-gauges-avalanche/version/latest",
[Network.Ethereum]:
"https://api.studio.thegraph.com/query/75376/balancer-gauges/version/latest",
[Network.Sepolia]:
"https://api.studio.thegraph.com/query/24660/balancer-gauges-sepolia/version/latest",
[Network.Goerli]:
"https://api.studio.thegraph.com/query/24660/balancer-gauges-sepolia/version/latest",
[Network.Polygon]:
"https://api.studio.thegraph.com/query/75376/balancer-gauges-polygon/version/latest",
[Network.PolygonZKEVM]:
"https://api.studio.thegraph.com/query/24660/balancer-gauges-polygon-zk/version/latest",
[Network.Arbitrum]:
"https://api.studio.thegraph.com/query/75376/balancer-gauges-arbitrum/version/latest",
[Network.Gnosis]:
"https://api.studio.thegraph.com/query/75376/balancer-gauges-gnosis-chain/version/latest",
[Network.Optimism]:
"https://api.studio.thegraph.com/query/75376/balancer-gauges-optimism/version/latest",
[Network.Base]:
"https://api.studio.thegraph.com/query/24660/balancer-gauges-base/version/latest",
[Network.Avalanche]:
"https://api.studio.thegraph.com/query/75376/balancer-gauges-avalanche/version/latest",
};
},
endpointFor(network: Network) {
Expand Down Expand Up @@ -123,8 +132,7 @@ export const SUBGRAPHS = {
[Subgraph.UniswapV2]: {
name: Subgraph.UniswapV2,
endpoints() {
const baseEndpoint =
`https://gateway.thegraph.com/api/${process.env.THE_GRAPH_API_KEY}/subgraphs/id/EYCKATKGBKLWvSfwvBjzfCBmGwYNdVkduYXVivCsLRFu`;
const baseEndpoint = `https://gateway.thegraph.com/api/${process.env.THE_GRAPH_API_KEY}/subgraphs/id/EYCKATKGBKLWvSfwvBjzfCBmGwYNdVkduYXVivCsLRFu`;
return {
[Network.Ethereum]: `${baseEndpoint}`,
};
Expand Down
8 changes: 0 additions & 8 deletions packages/gql/src/uniswap-v2/__generated__/Ethereum.server.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions packages/gql/src/uniswap-v2/__generated__/Ethereum.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9dd9d2b

Please sign in to comment.