Skip to content

Commit

Permalink
chore: Polygon zkevm subgraph migration (#9838)
Browse files Browse the repository at this point in the history
<!--
Before opening a pull request, please read the [contributing
guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md)
first
-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates subgraph URLs for Polygon ZK-EVM on PancakeSwap's chains
package.

### Detailed summary
- Updated Polygon ZK-EVM subgraph URLs for v3 and v2 to PancakeSwap's
new URLs
- Migrated Polygon ZK-EVM subgraphs to PancakeSwap's domain

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
  • Loading branch information
chefjackson committed May 20, 2024
1 parent 3dbddb9 commit 0f4281c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-oranges-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@pancakeswap/chains': patch
---

Migrate polygon zkevm subgraphs
4 changes: 2 additions & 2 deletions packages/chains/src/subgraphs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function getV3Subgraphs({ noderealApiKey }: SubgraphParams) {
[ChainId.BSC_TESTNET]: 'https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-chapel',
[ChainId.ARBITRUM_ONE]: 'https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-arb',
[ChainId.ARBITRUM_GOERLI]: 'https://api.thegraph.com/subgraphs/name/chef-jojo/exhange-v3-arb-goerli',
[ChainId.POLYGON_ZKEVM]: 'https://api.studio.thegraph.com/query/45376/exchange-v3-polygon-zkevm/version/latest',
[ChainId.POLYGON_ZKEVM]: 'https://thegraph.pancakeswap.com/exchange-v3-polygon-zkevm',
[ChainId.POLYGON_ZKEVM_TESTNET]: null,
[ChainId.ZKSYNC]: 'https://api.studio.thegraph.com/query/45376/exchange-v3-zksync/version/latest',
[ChainId.ZKSYNC_TESTNET]: 'https://api.studio.thegraph.com/query/45376/exchange-v3-zksync-testnet/version/latest',
Expand All @@ -50,7 +50,7 @@ export function getV2Subgraphs({ noderealApiKey }: SubgraphParams) {
return {
[ChainId.BSC]: 'https://proxy-worker-api.pancakeswap.com/bsc-exchange',
[ChainId.ETHEREUM]: 'https://api.thegraph.com/subgraphs/name/pancakeswap/exhange-eth',
[ChainId.POLYGON_ZKEVM]: 'https://api.studio.thegraph.com/query/45376/exchange-v2-polygon-zkevm/version/latest',
[ChainId.POLYGON_ZKEVM]: 'https://thegraph.pancakeswap.com/exchange-v2-polygon-zkevm',
[ChainId.ZKSYNC_TESTNET]: 'https://api.studio.thegraph.com/query/45376/exchange-v2-zksync-testnet/version/latest',
[ChainId.ZKSYNC]: ' https://api.studio.thegraph.com/query/45376/exchange-v2-zksync/version/latest',
[ChainId.LINEA_TESTNET]: 'https://thegraph.goerli.zkevm.consensys.net/subgraphs/name/pancakeswap/exhange-eth/',
Expand Down

0 comments on commit 0f4281c

Please sign in to comment.