The Integral subgraph (SG) aims to provide a similar dataset and schema as the Uniswap subgraph.
yarn
yarn prepare:<mainnet|arbitrum>
yarn codegen
yarn build
Build the project (see above). Then, log in to The Graph with your GitHub account and go to your hosted service dashboard here:
https://thegraph.com/hosted-service/dashboard
Your access token will be shown on the page. Store it on your machine (you'll only have to do it once):
graph auth --product hosted-service <ACCESS_TOKEN>
If the subgraph hasn't been created, you can create it from your dashboard.
Make sure that the "deploy" command in package.json
has the correct SG name:
"deploy": "graph deploy --node https://api.thegraph.com/deploy/ <GITHUB_USERNAME>/<SUBGRAPH_NAME>"
For example:
"deploy": "graph deploy --node https://api.thegraph.com/deploy/ IntegralHQ/integral-size"
yarn deploy:<mainnet|arbitrum>