Subgraph of the brokerbot/market data
authenticate to the graph studio
graph auth --studio <authkey>
The authkey (or the full command to copy) you find on the right side when you visit https://thegraph.com/studio/subgraph/ and connect with the owner wallet.
If the the schema is updated the generated files needs to be updated
yarn codegen
The networks mainnet and optimism are supported, to use the right yaml file to deploy you need to prepare the subgraph with the right template.
Mainnet
yarn prepare:mainnet
Optimism
yarn prepare:optimism
Polygon
yarn prepare:polygon
Authenticate to the graph (https://thegraph.com/docs/en/deploying/deploying-a-subgraph-to-studio/#graph-auth)
After the preparation of the subgraph and linking your access token, you can deploy with
Mainnet
yarn deploy
Optimism
yarn deploy-op
Polygon
yarn deploy-polygon