Skip to content

Commit

Permalink
Merge pull request #5854 from balancer/studio-subgraphs
Browse files Browse the repository at this point in the history
update subgraphs to studio
  • Loading branch information
mendesfabio authored Jun 13, 2024
2 parents 882e250 + d2b7480 commit d1e8c66
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 45 deletions.
11 changes: 4 additions & 7 deletions src/lib/config/arbitrum/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,16 @@ const config: Config = {
publicRpc: 'https://arb1.arbitrum.io/rpc',
explorer: 'https://arbiscan.io',
explorerName: 'Arbiscan',
subgraph:
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-arbitrum-v2',
subgraph: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/98cQDy6tufTJtshDCuhh9z2kWXsQWBHVh2bqnLHsGAeS`,
balancerApi: 'https://api.balancer.fi',
poolsUrlV2: '',
subgraphs: {
main: [
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-arbitrum-v2',
`https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/98cQDy6tufTJtshDCuhh9z2kWXsQWBHVh2bqnLHsGAeS`,
],
aave: '',
gauge:
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges-arbitrum',
blocks:
'https://api.thegraph.com/subgraphs/name/ianlapham/arbitrum-one-blocks',
gauge: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/Bb1hVjJZ52kL23chZyyGWJKrGEg3S6euuNa1YA6XRU4J`,
blocks: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/5jebsN6RBioFWQX7LP2N8r55nL4QPAyeKc6GzDA1Pt5H`,
},
bridgeUrl: 'https://bridge.arbitrum.io/',
supportsEIP1559: false,
Expand Down
1 change: 1 addition & 0 deletions src/lib/config/arbitrum/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Keys } from '../types';
const keys: Keys = {
infura: 'daaa68ec242643719749dd1caba2fc66',
alchemy: '',
graph: 'a84caa9e5c322a2faec24ad89ccb9d28',
};

export default keys;
13 changes: 5 additions & 8 deletions src/lib/config/avalanche/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,16 @@ const config: Config = {
publicRpc: 'https://avalanche.public-rpc.com',
explorer: 'https://snowtrace.io',
explorerName: 'Snowtrace',
subgraph:
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-avalanche-v2',
subgraph: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/7asfmtQA1KYu6CP7YVm5kv4bGxVyfAHEiptt2HMFgkHu`,
balancerApi: 'https://api.balancer.fi',
poolsUrlV2: '',
subgraphs: {
main: [
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-avalanche-v2',
`https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/7asfmtQA1KYu6CP7YVm5kv4bGxVyfAHEiptt2HMFgkHu`,
],
aave: 'https://api.thegraph.com/subgraphs/name/aave/protocol-v2-avalanche',
gauge:
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges-avalanche',
blocks:
'https://api.thegraph.com/subgraphs/name/iliaazhel/avalanche-blocks',
aave: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/EZvK18pMhwiCjxwesRLTg81fP33WnR6BnZe5Cvma3H1C`,
gauge: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/GzGBUh1X4Cq9RBdyKoCrPLhYW1saBYHwFBgcTsARPYUG`,
blocks: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/97YH6dMhGcXoTvVwDAML6GxYm9hBh7PCz6WPscUkrFhv`,
},
bridgeUrl: 'https://core.app/bridge/',
supportsEIP1559: false,
Expand Down
1 change: 1 addition & 0 deletions src/lib/config/avalanche/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const keys: Keys = {
infura: 'daaa68ec242643719749dd1caba2fc66',
alchemy: 'UrVAqAyukeLVl8hhc29tLtegSoWL9Iuy',
balancerApi: 'da2-7a3ukmnw7bexndpx5x522uafui',
graph: 'a84caa9e5c322a2faec24ad89ccb9d28',
};

export default keys;
9 changes: 4 additions & 5 deletions src/lib/config/gnosis-chain/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Config } from '../types';
import keys from './keys';
import contracts from './contracts';
import pools from './pools';
import tokenlists from './tokenlists';
Expand Down Expand Up @@ -26,16 +27,14 @@ const config: Config = {
explorer: 'https://gnosisscan.io',
explorerName: 'Gnosisscan',
balancerApi: 'https://api.balancer.fi',
subgraph:
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gnosis-chain-v2',
subgraph: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/EJezH1Cp31QkKPaBDerhVPRWsKVZLrDfzjrLqpmv6cGg`,
poolsUrlV2: '',
subgraphs: {
main: [
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gnosis-chain-v2',
`https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/EJezH1Cp31QkKPaBDerhVPRWsKVZLrDfzjrLqpmv6cGg`,
],
aave: '',
gauge:
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges-gnosis-chain',
gauge: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/HW5XpZBi2iYDLBqqEEMiRJFx8ZJAQak9uu5TzyH9BBxy`,
blocks: '',
},
bridgeUrl: 'https://bridge.gnosischain.com/',
Expand Down
7 changes: 7 additions & 0 deletions src/lib/config/gnosis-chain/keys.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Keys } from '../types';

const keys: Keys = {
graph: 'a84caa9e5c322a2faec24ad89ccb9d28',
};

export default keys;
13 changes: 5 additions & 8 deletions src/lib/config/mainnet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,17 @@ const config: Config = {
ws: ``,
explorer: 'https://etherscan.io',
explorerName: 'Etherscan',
subgraph: 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-v2',
subgraph: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/C4ayEZP2yTXRAB8vSaTrgN4m9anTe9Mdm2ViyiAuV9TV`,
balancerApi: 'https://api.balancer.fi',
poolsUrlV2:
'https://storageapi.fleek.co/johngrantuk-team-bucket/poolsV2.json',
subgraphs: {
main: [
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-v2',
`https://gateway.thegraph.com/api/${keys.graph}/subgraphs/id/GAWNgiGrA9eRce5gha9tWc7q5DPvN3fs5rSJ6tEULFNM`,
`https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/C4ayEZP2yTXRAB8vSaTrgN4m9anTe9Mdm2ViyiAuV9TV`,
],
aave: 'https://api.thegraph.com/subgraphs/name/aave/protocol-v2',
gauge:
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges',
blocks:
'https://api.thegraph.com/subgraphs/name/blocklytics/ethereum-blocks',
aave: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/8wR23o1zkS4gpLqLNU4kG3JHYVucqGyopL5utGxP2q1N`,
gauge: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/4sESujoqmztX6pbichs4wZ1XXyYrkooMuHA8sKkYxpTn`,
blocks: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/236pc6mnPH2EdGJxR5wunibyGsagq1JsSx5e2hx5tdoE`,
},
bridgeUrl: '',
supportsEIP1559: true,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/config/mainnet/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Keys } from '../types';
const keys: Keys = {
infura: 'daaa68ec242643719749dd1caba2fc66',
alchemy: '',
graph: '7c7b4c36244b0b86171a3931eaf9bb23',
graph: 'a84caa9e5c322a2faec24ad89ccb9d28',
balancerApi: 'da2-7a3ukmnw7bexndpx5x522uafui',
};

Expand Down
12 changes: 5 additions & 7 deletions src/lib/config/optimism/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Config } from '../types';
import keys from './keys';
import contracts from './contracts';
import pools from './pools';
import tokenlists from './tokenlists';
Expand All @@ -24,19 +25,16 @@ const config: Config = {
blockTime: 13,
explorer: 'https://optimistic.etherscan.io/',
explorerName: 'The Optimism Explorer',
subgraph:
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-optimism-v2',
subgraph: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/FsmdxmvBJLGjUQPxKMRtcWKzuCNpomKuMTbSbtRtggZ7`,
balancerApi: 'https://api.balancer.fi',
poolsUrlV2: '',
subgraphs: {
main: [
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-optimism-v2',
`https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/FsmdxmvBJLGjUQPxKMRtcWKzuCNpomKuMTbSbtRtggZ7`,
],
aave: '',
gauge:
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges-optimism',
blocks:
'https://api.thegraph.com/subgraphs/name/iliaazhel/optimism-blocklytics',
gauge: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/CbLt7GqU7sypjRaCfwissEBkFeCw3dUz2emrvBNJ7dZu`,
blocks: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/HsWM1oAXHGWdkH8bK98UrW38PvyPx6Q4waRow2LT8mcp`,
},
bridgeUrl: '',
supportsEIP1559: false,
Expand Down
7 changes: 7 additions & 0 deletions src/lib/config/optimism/keys.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Keys } from '../types';

const keys: Keys = {
graph: 'a84caa9e5c322a2faec24ad89ccb9d28',
};

export default keys;
12 changes: 5 additions & 7 deletions src/lib/config/polygon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,16 @@ const config: Config = {
publicRpc: 'https://polygon-rpc.com',
explorer: 'https://polygonscan.com',
explorerName: 'Polygonscan',
subgraph:
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-polygon-prune-v2',
subgraph: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/H9oPAbXnobBRq1cB3HDmbZ1E8MWQyJYQjT1QDJMrdbNp`,
balancerApi: 'https://api.balancer.fi',
poolsUrlV2: '',
subgraphs: {
main: [
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-polygon-prune-v2',
`https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/H9oPAbXnobBRq1cB3HDmbZ1E8MWQyJYQjT1QDJMrdbNp`,
],
aave: 'https://api.thegraph.com/subgraphs/name/aave/aave-v2-matic',
gauge:
'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-gauges-polygon',
blocks: 'https://api.thegraph.com/subgraphs/name/ianlapham/polygon-blocks',
aave: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/H1Et77RZh3XEf27vkAmJyzgCME2RSFLtDS2f4PPW6CGp`,
gauge: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/FxSLKXiieSqBCjDGPbqayhqbxyNtwaEC5M3rxr6hUa8h`,
blocks: `https://gateway-arbitrum.network.thegraph.com/api/${keys.graph}/subgraphs/id/HHpzhtyGrTNSbhtjgZyYG4aG538fKpV21dsCBshLnKDg`,
},
bridgeUrl: 'https://wallet.polygon.technology/polygon/bridge',
supportsEIP1559: true,
Expand Down
1 change: 1 addition & 0 deletions src/lib/config/polygon/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Keys } from '../types';
const keys: Keys = {
infura: 'daaa68ec242643719749dd1caba2fc66',
alchemy: '',
graph: 'a84caa9e5c322a2faec24ad89ccb9d28',
};

export default keys;
4 changes: 2 additions & 2 deletions src/providers/cross-chain-sync.provider.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ describe('Returns correct Sync state by network', () => {

expect(networksBySyncState.value).toMatchInlineSnapshot(`
{
"synced": [],
"syncing": [
"synced": [
42161,
],
"syncing": [],
"unsynced": [
10,
100,
Expand Down

0 comments on commit d1e8c66

Please sign in to comment.