Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subgraph #375

Merged
merged 22 commits into from
Sep 24, 2024
Merged

Subgraph #375

merged 22 commits into from
Sep 24, 2024

Conversation

bpierre
Copy link
Contributor

@bpierre bpierre commented Aug 27, 2024

Builds on #373 and #374, which should be merged before (done)

See subgraph/README.md for instructions on how to deploy the subgraph locally.

  • Add subgraph/ to the workspaces.
  • A script, ./deploy-subgraph, can be used to deploy the subgraph in a
    convenient way. See --help for details.

Some context:

  • The subgraph uses data source templates for the collateral contracts.
  • The script can update the collateral registry address in the
    subgraph.yaml if it doesn’t match the one found in the latest
    deployment context.
  • In ./deploy-subgraph, only the local preset is implemented for now.

See subgraph/README.md for instructions on how to deploy the subgraph locally.

- Add subgraph/ to the workspaces.
- A script, ./deploy-subgraph, can be used to deploy the subgraph in a
  convenient way. See --help for details.

Some context:

- The subgraph uses subgraph templates for the collateral contracts.
- The script can update the collateral registry address in the
  subgraph.yaml if it doesn’t match the one found in the latest
  deployment context.
- In ./deploy-subgraph, only the local preset is implemented.
This allows to initiate things when `CollateralRegistryAddressChanged`
gets emitted on BoldToken, which happens at the very end of the
deployment process.

Also:

- Use troveNFT.ownerOf() to determinate the trove owner.
- Update README instructions.
- Add ./start-graph
- Remove ./docker-cleanup.sh (replaced by ./start-graph --reset)
- Rename ./deploy to ./deploy-subgraph for clarity
- Update README with new instructions
@bpierre bpierre merged commit 4fcc30f into main Sep 24, 2024
6 of 7 checks passed
@bpierre bpierre deleted the subgraph branch September 24, 2024 11:16
@bpierre bpierre restored the subgraph branch September 24, 2024 11:16
@bpierre bpierre deleted the subgraph branch September 24, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants