Skip to content

Commit

Permalink
decentralised-graph
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonmanRolls committed May 31, 2024
1 parent 4a1aa6b commit 8e751d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apollo.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,14 @@ const typePolicies = {
},
};

const ENS_GRAPH_API_KEY = '13ef776c0372f7c14eb7c019a0f80272'

const getGraphqlUri = (operation) => {
const { operationName } = operation;
if (operationName === "Votes") {
return "https://hub.snapshot.org/graphql";
}
return "https://api.thegraph.com/subgraphs/name/ensdomains/ens";
return `https://gateway-arbitrum.network.thegraph.com/api/${ENS_GRAPH_API_KEY}/subgraphs/id/5XqPmWe6gjyrJtFn9cLy237i4cWw2j9HcUJEXsP5qGtH`;
};

export const initApolloClient = () => {
Expand Down

0 comments on commit 8e751d4

Please sign in to comment.