Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/platocrat/rubicon-subgraph
- Owner: platocrat
- Created: 2021-08-18T23:09:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-14T23:28:16.000Z (about 3 years ago)
- Last Synced: 2024-05-01T15:10:27.511Z (7 months ago)
- Language: TypeScript
- Homepage:
- Size: 79.1 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.