From 824cfb4518af74e3c54afa5aad084aec803acec6 Mon Sep 17 00:00:00 2001 From: samepant Date: Fri, 5 Jul 2024 16:27:36 -0400 Subject: [PATCH] replace goerli with sepolia in subgraph --- packages/app/src/services/subgraph.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/app/src/services/subgraph.ts b/packages/app/src/services/subgraph.ts index ca705968e..04cd432a5 100644 --- a/packages/app/src/services/subgraph.ts +++ b/packages/app/src/services/subgraph.ts @@ -26,8 +26,8 @@ if (!process.env.REACT_APP_SUBGRAPH_GNOSIS_CHAIN) { if (!process.env.REACT_APP_SUBGRAPH_MAINNET) { throw new Error("REACT_APP_SUBGRAPH_MAINNET is not set") } -if (!process.env.REACT_APP_SUBGRAPH_GOERLI) { - throw new Error("REACT_APP_SUBGRAPH_GOERLI is not set") +if (!process.env.REACT_APP_SUBGRAPH_SEPOLIA) { + throw new Error("REACT_APP_SUBGRAPH_SEPOLIA is not set") } if (!process.env.REACT_APP_SUBGRAPH_POLYGON) { throw new Error("REACT_APP_SUBGRAPH_POLYGON is not set") @@ -44,7 +44,7 @@ if (!process.env.REACT_APP_SUBGRAPH_OPTIMISM) { const BASE_SUBGRAPH_URL = process.env.REACT_APP_SUBGRAPH_BASE_URL const SUBGRAPH_GNOSIS_CHAIN = process.env.REACT_APP_SUBGRAPH_GNOSIS_CHAIN -const SUBGRAPH_GOERLI = process.env.REACT_APP_SUBGRAPH_GOERLI +const SUBGRAPH_SEPOLIA = process.env.REACT_APP_SUBGRAPH_SEPOLIA const SUBGRAPH_MAINNET = process.env.REACT_APP_SUBGRAPH_MAINNET const SUBGRAPH_POLYGON = process.env.REACT_APP_SUBGRAPH_POLYGON const SUBGRAPH_ARBITRUM = process.env.REACT_APP_SUBGRAPH_ARBITRUM @@ -57,8 +57,8 @@ const getUrl = (network?: Network) => { return BASE_SUBGRAPH_URL + SUBGRAPH_MAINNET case Network.GNOSIS: return BASE_SUBGRAPH_URL + SUBGRAPH_GNOSIS_CHAIN - case Network.GOERLI: - return BASE_SUBGRAPH_URL + SUBGRAPH_GOERLI + case Network.SEPOLIA: + return BASE_SUBGRAPH_URL + SUBGRAPH_SEPOLIA case Network.POLYGON: return BASE_SUBGRAPH_URL + SUBGRAPH_POLYGON case Network.OPTIMISM: @@ -68,7 +68,7 @@ const getUrl = (network?: Network) => { // case Network.OPTIMISM_ON_GNOSIS: // return BASE_SUBGRAPH_URL + SUBGRAPH_OPTIMISM_ON_GNOSIS_CHAIN default: - return BASE_SUBGRAPH_URL + SUBGRAPH_GOERLI + return BASE_SUBGRAPH_URL + SUBGRAPH_SEPOLIA } }