Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/platocrat/rubicon-subgraph

Subgraph for Rubicon Finance's RubiconMarket contract on The Graph's Legacy Explorer
https://github.com/platocrat/rubicon-subgraph

Last synced: 10 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://thegraph.com/legacy-explorer).

> See [The Graph's documentation](https://thegraph.com/docs/developer/create-subgraph-hosted)) on how what the difference is between a subgraph on a Legacy Explorer and a subgraph on [Subgraph Studio](https://thegraph.com/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
```

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.