From 470110894e443c476c742e01666911f0eaf2e721 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 28 Jun 2022 14:53:11 +0100 Subject: [PATCH] switch subgraph URL for typings generation --- apollo.config.js | 2 +- codegen.yml | 2 +- src/utils/ocean.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apollo.config.js b/apollo.config.js index 3ca33ccad..5ad08570c 100644 --- a/apollo.config.js +++ b/apollo.config.js @@ -2,7 +2,7 @@ module.exports = { client: { service: { name: 'ocean', - url: 'https://subgraph.rinkeby.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph', + url: 'https://subgraph.polygon.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph', // optional disable SSL validation check skipSSLValidation: true } diff --git a/codegen.yml b/codegen.yml index a3035ff2c..efcf93760 100644 --- a/codegen.yml +++ b/codegen.yml @@ -1,5 +1,5 @@ overwrite: true -schema: 'https://subgraph.rinkeby.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph' +schema: 'https://subgraph.polygon.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph' documents: - './src/utils/subgraph.ts' - './src/components/pages/History/PoolShares.tsx' diff --git a/src/utils/ocean.ts b/src/utils/ocean.ts index f10174c34..c5a436b95 100644 --- a/src/utils/ocean.ts +++ b/src/utils/ocean.ts @@ -26,8 +26,8 @@ export function getDevelopmentConfig(): Partial { fixedRateExchangeAddress: contractAddresses.development?.FixedRateExchange, metadataContractAddress: contractAddresses.development?.Metadata, oceanTokenAddress: contractAddresses.development?.Ocean, - // There is no subgraph in barge so we hardcode the Rinkeby one for now - subgraphUri: 'https://subgraph.rinkeby.oceanprotocol.com' + // There is no subgraph in barge so we hardcode the Polygon one for now + subgraphUri: 'https://subgraph.polygon.oceanprotocol.com' } }