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

examples: add contract tracking substreams example #1371

Merged
merged 11 commits into from Jun 13, 2023

Conversation

azf20
Copy link
Contributor

@azf20 azf20 commented Jun 9, 2023

Hat tip to @MercuricChloride

@changeset-bot
Copy link

changeset-bot bot commented Jun 9, 2023

⚠️ No Changeset found

Latest commit: 90e5d03

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cloudflare-pages
Copy link

cloudflare-pages bot commented Jun 9, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 90e5d03
Status: ✅  Deploy successful!
Preview URL: https://3c03fc79.graph-tooling.pages.dev
Branch Preview URL: https://azf20-substreams-powered-sub.graph-tooling.pages.dev

View logs

azf20 and others added 4 commits June 9, 2023 23:52
This reverts commit 950d311.
- Only record calls that were successful
- Use more move operations reducing clone and copying along the way
- Compare using enum
npm install -g @graphprotocol/graph-cli
```

## Quickstart
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also add a way for someone to run this via Substreams GUI?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what you mean?

@@ -0,0 +1,14 @@
syntax = "proto3";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should link some intro protobuf docs here? https://protobuf.dev/programming-guides/proto3/#simple

as well as Graph CLI >=0.51.1:

```
npm install -g @graphprotocol/graph-cli
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should create a simple package.json file and add CLI as a dependency in it. I think we can even call the make scripts from the package.json then we can just have one build script that in postbuild calls Substreams CLI to build and package

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this, done, I think that makes for a cleaner experience

@azf20 azf20 merged commit dcc2463 into main Jun 13, 2023
9 checks passed
@azf20 azf20 deleted the azf20/substreams-powered-subgraph-example branch June 13, 2023 11:03
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.

None yet

4 participants