Skip to content

Commit

Permalink
feat: update to latest subsquid, env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
toniocodo committed Sep 5, 2023
1 parent 267fe3c commit 255aeeb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
VITE_SUBSQUID_URL="https://squid.subsquid.io/origin-squid/v/v4/graphql"
VITE_WALLET_CONNECT_PROJECT_ID=
VITE_INFURA_ID=
2 changes: 1 addition & 1 deletion .graphqlconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "Subsquid GraphQL Schema",
"schemaPath": "https://squid.subsquid.io/origin-squid/v/v2/graphql"
"schemaPath": "https://squid.subsquid.io/origin-squid/v/v4/graphql"
}
4 changes: 2 additions & 2 deletions libs/shared/data-access/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import type { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
generates: {
'libs/shared/data-access/src/generated/graphql.ts': {
schema: 'https://squid.subsquid.io/origin-squid/v/v2/graphql',
schema: process.env.VITE_SUBSQUID_URL,
documents: ['**/src/**/*.graphql'],
plugins: ['typescript'],
},
'.': {
schema: 'https://squid.subsquid.io/origin-squid/v/v2/graphql',
schema: process.env.VITE_SUBSQUID_URL,
documents: ['**/src/**/*.graphql'],
preset: 'near-operation-file',
presetConfig: {
Expand Down
2 changes: 1 addition & 1 deletion libs/shared/data-access/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import axios from 'axios';

export const axiosInstance = axios.create({
baseURL: 'https://squid.subsquid.io/origin-squid/v/v2',
baseURL: 'https://squid.subsquid.io/origin-squid/v/v4',
});

export const graphqlClient =
Expand Down

0 comments on commit 255aeeb

Please sign in to comment.