This is the official subgraph repo for Mesh Finance.
For more information see the docs on https://thegraph.com/docs/
- Install dependencies
yarn
- Deploy
Get the access token from your graph profile. Add it to your local machine.
graph auth https://api.thegraph.com/deploy/ <ACCESS_TOKEN>
For Local Deployment:
See the docs at https://thegraph.com/docs/quick-start#local-development
For ropsten:
yarn prepare:ropsten && yarn codegen
yarn prepare:ropsten && yarn deploy:ropsten
For mainnet:
yarn prepare:mainnet && yarn codegen
yarn prepare:mainnet && yarn deploy:mainnet
For polygon mainnet:
yarn prepare:polygon && yarn codegen
yarn prepare:polygon && yarn deploy:polygon