Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jackgoh/pnc-subgraph
https://github.com/jackgoh/pnc-subgraph
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jackgoh/pnc-subgraph
- Owner: jackgoh
- License: gpl-3.0
- Created: 2024-06-13T09:48:24.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-01T06:02:55.000Z (4 months ago)
- Last Synced: 2024-10-12T14:39:25.956Z (25 days ago)
- Language: TypeScript
- Size: 224 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# PNC Subgraph
TheGraph exposes a GraphQL endpoint to query the events and entities within the Binance Smart Chain and PancakeSwap ecosystem.
Currently, there are multiple subgraphs, but additional subgraphs can be added to this repository, following the current architecture.
## Subgraphs
- link - https://developer.pancakeswap.finance/apis/subgraph
## Dependencies
- [Graph CLI](https://github.com/graphprotocol/graph-cli)
- Required to generate and build local GraphQL dependencies.```shell
yarn global add @graphprotocol/graph-cli
```## Deployment
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/\*).
3. Run the `yarn build` command to build the subgraph, and check compilation errors before deploying.
4. Deploy via `yarn deploy:local`.