Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update subgraph url #68

Merged
merged 5 commits into from
Mar 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore: update subgraph url to new alfajores subgraph
chapati23 committed Mar 5, 2024
commit 2694e650966f77d260864f2e13872040670263e5
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -2,4 +2,4 @@ NEXT_PUBLIC_CELO_EXPLORER_API_URL=https://explorer.celo.org/mainnet/graphiql
NEXT_PUBLIC_CELO_EXPLORER_API_URL_ALFAJORES=https://explorer.celo.org/alfajores/graphiql
NEXT_PUBLIC_CELO_EXPLORER_API_URL_BAKLAVA=https://explorer.celo.org/baklava/graphiql
NEXT_PUBLIC_WALLET_CONNECT_ID=3f6f578ca4a77fd09bc984689c9d095f
NEXT_PUBLIC_SUBGRAPH_URL=https://api.studio.thegraph.com/query/63311/mento/version/latest
NEXT_PUBLIC_SUBGRAPH_URL_ALFAJORES=https://api.studio.thegraph.com/query/67235/mento-alfajores/version/latest
3 changes: 2 additions & 1 deletion app/graphql/apollo.client.ts
Original file line number Diff line number Diff line change
@@ -20,7 +20,8 @@ const CELO_EXPLORER_API_URL_ALFAJORES = loadEnvVar(
const CELO_EXPLORER_API_URL_BAKLAVA = loadEnvVar(
process.env.NEXT_PUBLIC_CELO_EXPLORER_API_URL_BAKLAVA,
);
const SUBGRAPH_URL = loadEnvVar(process.env.NEXT_PUBLIC_SUBGRAPH_URL);
// TODO: Make this dependent on the current network
const SUBGRAPH_URL = loadEnvVar(process.env.NEXT_PUBLIC_SUBGRAPH_URL_ALFAJORES);
chapati23 marked this conversation as resolved.
Show resolved Hide resolved

// have a function to create a client for you
export function newApolloClient() {
chapati23 marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 2 additions & 1 deletion codegen.ts
Original file line number Diff line number Diff line change
@@ -5,7 +5,8 @@ import loadEnvVar from "./app/helpers/load-env-var";
const CELO_EXPLORER_API_URL = loadEnvVar(
process.env.NEXT_PUBLIC_CELO_EXPLORER_API_URL,
);
const SUBGRAPH_URL = loadEnvVar(process.env.NEXT_PUBLIC_SUBGRAPH_URL);
// TODO: Make this dependent on the current network
const SUBGRAPH_URL = loadEnvVar(process.env.NEXT_PUBLIC_SUBGRAPH_URL_ALFAJORES);

const config: CodegenConfig = {
generates: {