From b5aa4747c829a04d3f4cbaacb106ddb811842c69 Mon Sep 17 00:00:00 2001 From: Bruno Eidam Guerios Date: Wed, 12 Jun 2024 10:20:35 -0300 Subject: [PATCH 1/4] Update subgraph urls (moving away from hosted service) --- balancer-js/src/lib/constants/config.ts | 30 ++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/balancer-js/src/lib/constants/config.ts b/balancer-js/src/lib/constants/config.ts index 739f8c42e..eb2d8a8e0 100644 --- a/balancer-js/src/lib/constants/config.ts +++ b/balancer-js/src/lib/constants/config.ts @@ -54,11 +54,11 @@ export const BALANCER_NETWORK_CONFIG: Record = { }, urls: { subgraph: - 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-v2', + 'https://api.studio.thegraph.com/query/75376/balancer-v2/version/latest', gaugesSubgraph: - 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges', + 'https://api.studio.thegraph.com/query/75376/balancer-gauges/version/latest', blockNumberSubgraph: - 'https://api.thegraph.com/subgraphs/name/blocklytics/ethereum-blocks', + 'https://api.thegraph.com/subgraphs/name/blocklytics/ethereum-blocks', // TODO: check if this is still being used and if we have a new endpoint for those }, thirdParty: { coingecko: { @@ -138,11 +138,11 @@ export const BALANCER_NETWORK_CONFIG: Record = { }, urls: { subgraph: - 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-polygon-prune-v2', + 'https://api.studio.thegraph.com/query/75376/balancer-polygon-v2/version/latest', gaugesSubgraph: - 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges-polygon', + 'https://api.studio.thegraph.com/query/75376/balancer-gauges-polygon/version/latest', blockNumberSubgraph: - 'https://api.thegraph.com/subgraphs/name/ianlapham/polygon-blocks', + 'https://api.thegraph.com/subgraphs/name/ianlapham/polygon-blocks', // TODO: same }, thirdParty: { coingecko: { @@ -199,9 +199,9 @@ export const BALANCER_NETWORK_CONFIG: Record = { }, urls: { subgraph: - 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-arbitrum-v2', + 'https://api.studio.thegraph.com/query/75376/balancer-arbitrum-v2/version/latest', gaugesSubgraph: - 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges-arbitrum', + 'https://api.studio.thegraph.com/query/75376/balancer-gauges-arbitrum/version/latest', blockNumberSubgraph: 'https://api.thegraph.com/subgraphs/name/ianlapham/arbitrum-one-blocks', }, @@ -254,7 +254,7 @@ export const BALANCER_NETWORK_CONFIG: Record = { }, urls: { subgraph: - 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-goerli-v2', + 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-goerli-v2', // TODO: there's no new subgraph for Goerli - should we drop support and remove it entirely? gaugesSubgraph: 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges-goerli', blockNumberSubgraph: @@ -312,9 +312,9 @@ export const BALANCER_NETWORK_CONFIG: Record = { }, urls: { subgraph: - 'https://api.thegraph.com/subgraphs/name/beethovenxfi/beethovenx-optimism', + 'https://api.studio.thegraph.com/query/75376/balancer-optimism-v2/version/latest', gaugesSubgraph: - 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges-optimism', + 'https://api.studio.thegraph.com/query/75376/balancer-gauges-optimism/version/latest', blockNumberSubgraph: 'https://api.thegraph.com/subgraphs/name/lyra-finance/optimism-mainnet-blocks', }, @@ -352,9 +352,9 @@ export const BALANCER_NETWORK_CONFIG: Record = { }, urls: { subgraph: - 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gnosis-chain-v2', + 'https://api.studio.thegraph.com/query/75376/balancer-gnosis-chain-v2/version/latest', gaugesSubgraph: - 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges-gnosis-chain', + 'https://api.studio.thegraph.com/query/75376/balancer-gauges-gnosis-chain/version/latest', }, thirdParty: { coingecko: { @@ -543,9 +543,9 @@ export const BALANCER_NETWORK_CONFIG: Record = { }, urls: { subgraph: - 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-avalanche-v2', + 'https://api.studio.thegraph.com/query/75376/balancer-avalanche-v2/version/latest', gaugesSubgraph: - 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges-avalanche', + 'https://api.studio.thegraph.com/query/75376/balancer-gauges-avalanche/version/latest', blockNumberSubgraph: 'https://api.thegraph.com/subgraphs/name/iliaazhel/avalanche-blocks', }, From 773fd31034dbc58c363b4e20fafd9285e10f4972 Mon Sep 17 00:00:00 2001 From: Bruno Eidam Guerios Date: Wed, 12 Jun 2024 10:49:01 -0300 Subject: [PATCH 2/4] Update Fantom subgraph url --- balancer-js/src/lib/constants/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/balancer-js/src/lib/constants/config.ts b/balancer-js/src/lib/constants/config.ts index eb2d8a8e0..d6efef513 100644 --- a/balancer-js/src/lib/constants/config.ts +++ b/balancer-js/src/lib/constants/config.ts @@ -407,7 +407,7 @@ export const BALANCER_NETWORK_CONFIG: Record = { }, urls: { subgraph: - 'https://api.thegraph.com/subgraphs/name/beethovenxfi/beethovenx-v2-fantom', + 'https://api.studio.thegraph.com/query/73674/beethovenx-v2-fantom/version/latest', gaugesSubgraph: '', // no guages on fantom blockNumberSubgraph: 'https://api.thegraph.com/subgraphs/name/beethovenxfi/fantom-blocks', From 0eea6c9786afb567ced7823521dae2b39e51d8ba Mon Sep 17 00:00:00 2001 From: Bruno Eidam Guerios Date: Wed, 12 Jun 2024 11:46:59 -0300 Subject: [PATCH 3/4] Update blockNumbers subgraph config --- balancer-js/src/lib/constants/config.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/balancer-js/src/lib/constants/config.ts b/balancer-js/src/lib/constants/config.ts index d6efef513..614dcf05c 100644 --- a/balancer-js/src/lib/constants/config.ts +++ b/balancer-js/src/lib/constants/config.ts @@ -58,7 +58,7 @@ export const BALANCER_NETWORK_CONFIG: Record = { gaugesSubgraph: 'https://api.studio.thegraph.com/query/75376/balancer-gauges/version/latest', blockNumberSubgraph: - 'https://api.thegraph.com/subgraphs/name/blocklytics/ethereum-blocks', // TODO: check if this is still being used and if we have a new endpoint for those + 'https://api.studio.thegraph.com/query/48427/ethereum-blocks/version/latestā ', }, thirdParty: { coingecko: { @@ -142,7 +142,7 @@ export const BALANCER_NETWORK_CONFIG: Record = { gaugesSubgraph: 'https://api.studio.thegraph.com/query/75376/balancer-gauges-polygon/version/latest', blockNumberSubgraph: - 'https://api.thegraph.com/subgraphs/name/ianlapham/polygon-blocks', // TODO: same + 'https://api.studio.thegraph.com/query/48427/polygon-blocks/version/latest', }, thirdParty: { coingecko: { @@ -203,7 +203,7 @@ export const BALANCER_NETWORK_CONFIG: Record = { gaugesSubgraph: 'https://api.studio.thegraph.com/query/75376/balancer-gauges-arbitrum/version/latest', blockNumberSubgraph: - 'https://api.thegraph.com/subgraphs/name/ianlapham/arbitrum-one-blocks', + 'https://api.studio.thegraph.com/query/48427/arbitrum-blocks/version/latest', }, thirdParty: { coingecko: { @@ -316,7 +316,7 @@ export const BALANCER_NETWORK_CONFIG: Record = { gaugesSubgraph: 'https://api.studio.thegraph.com/query/75376/balancer-gauges-optimism/version/latest', blockNumberSubgraph: - 'https://api.thegraph.com/subgraphs/name/lyra-finance/optimism-mainnet-blocks', + 'https://api.studio.thegraph.com/query/48427/optimism-blocks/version/latest', }, pools: {}, sorConnectingTokens: [ @@ -355,6 +355,8 @@ export const BALANCER_NETWORK_CONFIG: Record = { 'https://api.studio.thegraph.com/query/75376/balancer-gnosis-chain-v2/version/latest', gaugesSubgraph: 'https://api.studio.thegraph.com/query/75376/balancer-gauges-gnosis-chain/version/latest', + blockNumberSubgraph: + 'https://api.studio.thegraph.com/query/48427/gnosis-blocks/version/latest', }, thirdParty: { coingecko: { @@ -547,7 +549,7 @@ export const BALANCER_NETWORK_CONFIG: Record = { gaugesSubgraph: 'https://api.studio.thegraph.com/query/75376/balancer-gauges-avalanche/version/latest', blockNumberSubgraph: - 'https://api.thegraph.com/subgraphs/name/iliaazhel/avalanche-blocks', + 'https://api.studio.thegraph.com/query/48427/avalanche-blocks/version/latest', }, thirdParty: { coingecko: { From 800b4f9d1a1cb327cecf315cf1a09616769f7a85 Mon Sep 17 00:00:00 2001 From: Bruno Eidam Guerios Date: Wed, 12 Jun 2024 13:34:09 -0300 Subject: [PATCH 4/4] Update Fantom blockNumbers subgraph url --- balancer-js/src/lib/constants/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/balancer-js/src/lib/constants/config.ts b/balancer-js/src/lib/constants/config.ts index 614dcf05c..4655a6992 100644 --- a/balancer-js/src/lib/constants/config.ts +++ b/balancer-js/src/lib/constants/config.ts @@ -412,7 +412,7 @@ export const BALANCER_NETWORK_CONFIG: Record = { 'https://api.studio.thegraph.com/query/73674/beethovenx-v2-fantom/version/latest', gaugesSubgraph: '', // no guages on fantom blockNumberSubgraph: - 'https://api.thegraph.com/subgraphs/name/beethovenxfi/fantom-blocks', + 'https://api.studio.thegraph.com/query/48427/fantom-blocks/version/latest', }, thirdParty: { coingecko: {