platocrat / rubicon-subgraph

Subgraph for Rubicon Finance's RubiconMarket contract on The Graph's Legacy Explorer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rubicon Subgraph (Optimistic Mainnet)

(Legacy) Subgraph for Rubicon Finance's RubiconMarket contract on Optimistic Mainnet.

Subgraph for Rubicon Finance's RubiconMarket contract on The Graph's Legacy Explorer.

See The Graph's documentation) on how what the difference is between a subgraph on a Legacy Explorer and a subgraph on Subgraph Studio.

Using the access token to deploy the subgraph

When you create a subgraph on the Legacy Explorer, you must use the access token provided by on your dashboard.

For the Rubicon Subgraph, you must use @platocrat's access token since the subgraph was created on his account.

The first step get the access token and store it on your computer with the following command:

graph auth --product hosted-service <ACCESS_TOKEN>

You only need to do this once.

After that, you should be able to deploy the subgraph by running:

yarn deploy

Editing schema.graphql

When editing entities the schema.graphql file, always make sure to regenerate the static typings for them by running:

yarn codegen

This will automatically generate the static types for you.

About

Subgraph for Rubicon Finance's RubiconMarket contract on The Graph's Legacy Explorer


Languages

Language:TypeScript 100.0%