Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1017 Bytes

README.md

File metadata and controls

57 lines (42 loc) · 1017 Bytes

Subgraph

Subgraph of the brokerbot/market data

Prequesits

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.

Upgrade schema

If the the schema is updated the generated files needs to be updated

yarn codegen

Prepare Subgraph

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

Deploy Subgraph

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