Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: add scaffold subgraph #11

Merged
merged 2 commits into from
Aug 9, 2023
Merged

feat: add scaffold subgraph #11

merged 2 commits into from
Aug 9, 2023

Conversation

gosuto-inzasheru
Copy link
Contributor

we cant publish yet, infrastructure on optimism goerli is a bit thin (no mock $grt and indexer keeps running behind ~400 blocks).

i did manage to deploy it, dev endpoint is https://api.studio.thegraph.com/query/50162/smartgarden/version/latest

Copy link
Collaborator

@petrovska-petro petrovska-petro left a comment

Choose a reason for hiding this comment

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

beauty, managed to test whole flow locally 🚀

deployed at: https://api.studio.thegraph.com/query/50910/probinea/v0.0.1

Screenshot 2023-08-08 at 23 44 06

only issue at my end i needed to edit the lfg cmd to:

"graph codegen && graph build && graph auth --studio {your_deployment_key} && graph deploy --studio probinea"

maybe we can pass that deployment key from .env file?

@gosuto-inzasheru
Copy link
Contributor Author

gosuto-inzasheru commented Aug 9, 2023

you can auth once by running graph auth --studio xxx and then you should be fine running npm run lfg going forward

edit: or graph deploy --studio x -t xxx

@gosuto-inzasheru gosuto-inzasheru merged commit 68f8e26 into main Aug 9, 2023
@gosuto-inzasheru gosuto-inzasheru deleted the feat/subgraph branch August 9, 2023 07:37
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants