From 6fbb815543c5eac834c8730fb23bc22dbec89db4 Mon Sep 17 00:00:00 2001 From: chefjackson <116779127+chefjackson@users.noreply.github.com> Date: Mon, 25 Sep 2023 11:11:26 +0800 Subject: [PATCH] chore: Deploy opbnb blocks --- README.md | 51 +++++++++++++++++++--------------- subgraphs/blocks/package.json | 3 +- subgraphs/blocks/subgraph.yaml | 2 +- 3 files changed, 31 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index bb2ddf6a..faa2cefa 100644 --- a/README.md +++ b/README.md @@ -7,26 +7,30 @@ Currently, there are multiple subgraphs, but additional subgraphs can be added t ## Subgraphs 1. **[Blocks](https://thegraph.com/legacy-explorer/subgraph/pancakeswap/blocks)**: Tracks all blocks on Binance Smart Chain. - - BSC https://thegraph.com/legacy-explorer/subgraph/pancakeswap/blocks - - zkSync https://api.studio.thegraph.com/query/45376/blocks-zksync/version/latest - - zkSync testnet https://api.studio.thegraph.com/query/45376/blocks-zksync-testnet/version/latest - - Polygon zkEVM https://api.studio.thegraph.com/query/45376/polygon-zkevm-block/version/latest + + - BSC https://thegraph.com/legacy-explorer/subgraph/pancakeswap/blocks + - zkSync https://api.studio.thegraph.com/query/45376/blocks-zksync/version/latest + - zkSync testnet https://api.studio.thegraph.com/query/45376/blocks-zksync-testnet/version/latest + - Polygon zkEVM https://api.studio.thegraph.com/query/45376/polygon-zkevm-block/version/latest + - opBNB https://opbnb-mainnet-graph.nodereal.io/subgraphs/name/pancakeswap/blocks 2. **[Exchange V2](https://nodereal.io/meganode/api-marketplace/pancakeswap-graphql)**: Tracks all PancakeSwap V2 Exchange data with price, volume, liquidity, ... - - BSC https://nodereal.io/meganode/api-marketplace/pancakeswap-graphql - - ETH https://api.thegraph.com/subgraphs/name/pancakeswap/exhange-eth - - ARB - - Hosted https://thegraph.com/hosted-service/subgraph/pancakeswap/exchange-v2-arb - - Studio https://api.studio.thegraph.com/query/45376/exchange-v2-arbitrum/version/latest - - ARB GRO https://api.thegraph.com/subgraphs/name/chef-jojo/exchange-v2-arb-goerli - - Polygon zkEVM https://api.studio.thegraph.com/query/45376/exchange-v2-polygon-zkevm/version/latest - - Polygon zkEVM testnet https://api.studio.thegraph.com/query/45376/exchange-v2-polygon-zkevm-test/version/latest - - zkSync https://api.studio.thegraph.com/query/45376/exchange-v2-zksync/version/latest - - zkSync testnet https://api.studio.thegraph.com/query/45376/exchange-v2-zksync-testnet/version/latest - - Linea https://graph-query.linea.build/subgraphs/name/pancakeswap/exhange-v2 - - Base https://api.studio.thegraph.com/query/45376/exchange-v2-base/version/latest - - Base testnet https://api.studio.thegraph.com/query/45376/exchange-v2-base-testnet/version/latest - - Scroll Sepolia https://api.studio.thegraph.com/query/45376/exchange-v2-scroll-sepolia/version/latest + + - BSC https://nodereal.io/meganode/api-marketplace/pancakeswap-graphql + - ETH https://api.thegraph.com/subgraphs/name/pancakeswap/exhange-eth + - ARB + - Hosted https://thegraph.com/hosted-service/subgraph/pancakeswap/exchange-v2-arb + - Studio https://api.studio.thegraph.com/query/45376/exchange-v2-arbitrum/version/latest + - ARB GRO https://api.thegraph.com/subgraphs/name/chef-jojo/exchange-v2-arb-goerli + - Polygon zkEVM https://api.studio.thegraph.com/query/45376/exchange-v2-polygon-zkevm/version/latest + - Polygon zkEVM testnet https://api.studio.thegraph.com/query/45376/exchange-v2-polygon-zkevm-test/version/latest + - zkSync https://api.studio.thegraph.com/query/45376/exchange-v2-zksync/version/latest + - zkSync testnet https://api.studio.thegraph.com/query/45376/exchange-v2-zksync-testnet/version/latest + - Linea https://graph-query.linea.build/subgraphs/name/pancakeswap/exhange-v2 + - Base https://api.studio.thegraph.com/query/45376/exchange-v2-base/version/latest + - Base testnet https://api.studio.thegraph.com/query/45376/exchange-v2-base-testnet/version/latest + - Scroll Sepolia https://api.studio.thegraph.com/query/45376/exchange-v2-scroll-sepolia/version/latest + - opBNB https://opbnb-mainnet-graph.nodereal.io/subgraphs/name/pancakeswap/exchange-v2 3. **[Farm Auctions](https://thegraph.com/legacy-explorer/subgraph/pancakeswap/farm-auctions)**: Tracks all PancakeSwap Farm Auctions with auctions and bids. @@ -53,6 +57,7 @@ Currently, there are multiple subgraphs, but additional subgraphs can be added t 14. **[MasterChef (v2)](https://thegraph.com/hosted-service/subgraph/pancakeswap/masterchef-v2)**: Tracks data for MasterChefV2. 15. **MasterChef (v3)**: Tracks data for MasterChefV3. + - BSC https://thegraph.com/hosted-service/subgraph/pancakeswap/masterchef-v3-bsc - BSC testnet https://thegraph.com/hosted-service/subgraph/pancakeswap/masterchef-v3-chapel - ETH https://thegraph.com/hosted-service/subgraph/pancakeswap/masterchef-v3-eth @@ -69,8 +74,8 @@ Currently, there are multiple subgraphs, but additional subgraphs can be added t - ETH https://thegraph.com/hosted-service/subgraph/pancakeswap/exchange-v3-eth - GOR https://thegraph.com/hosted-service/subgraph/pancakeswap/exchange-v3-goerli - ARB - - Hosted https://thegraph.com/hosted-service/subgraph/pancakeswap/exchange-v3-arb - - Studio https://api.studio.thegraph.com/query/45376/exchange-v3-arbitrum/version/latest + - Hosted https://thegraph.com/hosted-service/subgraph/pancakeswap/exchange-v3-arb + - Studio https://api.studio.thegraph.com/query/45376/exchange-v3-arbitrum/version/latest - ARB GOR https://api.thegraph.com/subgraphs/name/chef-jojo/exhange-v3-arb-goerli - Polygon zkEVM https://api.studio.thegraph.com/query/45376/exchange-v3-polygon-zkevm/version/latest - Polygon zkEVM testnet https://api.studio.thegraph.com/query/45376/exchange-v3-polygon-zkevm-test/version/latest @@ -80,12 +85,12 @@ Currently, there are multiple subgraphs, but additional subgraphs can be added t - Base https://api.studio.thegraph.com/query/45376/exchange-v3-base/version/latest - Base testnet https://api.studio.thegraph.com/query/45376/exchange-v3-base-testnet/version/latest - Scroll Sepolia https://api.studio.thegraph.com/query/45376/exchange-v3-scroll-sepolia/version/latest - + - opBNB https://opbnb-mainnet-graph.nodereal.io/subgraphs/name/pancakeswap/exchange-v3 ## Dependencies - [Graph CLI](https://github.com/graphprotocol/graph-cli) - - Required to generate and build local GraphQL dependencies. + - Required to generate and build local GraphQL dependencies. ```shell yarn global add @graphprotocol/graph-cli @@ -97,7 +102,7 @@ For any of the subgraph: `blocks` as `[subgraph]` 1. Run the `cd subgraphs/[subgraph]` command to move to the subgraph directory. -2. Run the `yarn codegen` command to prepare the TypeScript sources for the GraphQL (generated/*). +2. Run the `yarn codegen` command to prepare the TypeScript sources for the GraphQL (generated/\*). 3. Run the `yarn build` command to build the subgraph, and check compilation errors before deploying. diff --git a/subgraphs/blocks/package.json b/subgraphs/blocks/package.json index a11d0151..606ebbe6 100644 --- a/subgraphs/blocks/package.json +++ b/subgraphs/blocks/package.json @@ -8,6 +8,7 @@ "scripts": { "codegen": "graph codegen subgraph.yaml", "build": "graph build subgraph.yaml", - "deploy": "graph deploy --product hosted-service --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ pancakeswap/blocks subgraph.yaml" + "deploy": "graph deploy --product hosted-service --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ pancakeswap/blocks subgraph.yaml", + "deploy:opbnb": "graph deploy --node https://open-platform-ap.nodereal.io/$API_KEY/opbnb-mainnet-graph-indexer/ --ipfs https://api.thegraph.com/ipfs/ pancakeswap/blocks" } } diff --git a/subgraphs/blocks/subgraph.yaml b/subgraphs/blocks/subgraph.yaml index 09d03c5d..7765af2e 100644 --- a/subgraphs/blocks/subgraph.yaml +++ b/subgraphs/blocks/subgraph.yaml @@ -8,7 +8,7 @@ dataSources: name: BSCValidatorSet network: bsc source: - address: '0x0000000000000000000000000000000000001000' + address: "0x0000000000000000000000000000000000001000" abi: BSCValidatorSet mapping: kind: ethereum/events