Aims to deliver analytics & historical data for SushiSwap. Still a work in progress. Feel free to contribute!
The Graph exposes a GraphQL endpoint to query the events and entities within the Exofi ecosytem.
For any of the subgraphs follow below steps
- Update all addresses in config/[network_name].json with deployed contract addresses.
- CD in to the subgraph directory
subgraphs:[subgraphName] - Run the
yarn run codegen:[network]command to prepare the TypeScript sources for the GraphQL (generated/schema) and the ABIs (generated/[ABI]/*) - [Optional] run the
yarn run buildcommand to build the subgraph. Can be used to check compile errors before deploying. - To deploy on local. do the following
- At project root, run
docker-compose up -d - Once container is up, run
yarn run create-localin subgraph directorysubgraphs:[subgraphName] - A new subgraph will be created. Once done, run
yarn run deploy-local. - Monitor docker logs for data syncing with blockchain.
- At project root, run
- To deploy on live, do the following
- Run graph auth https://api.thegraph.com/deploy/ <ACCESS_TOKEN>
- Deploy via
yarn run deploy.