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

[WIP]: include versioning in subgraph metadata. #250

Merged
merged 10 commits into from
May 5, 2022
Merged

Conversation

kamikazebr
Copy link
Member

@kamikazebr kamikazebr commented Apr 28, 2022

When we create new features or fix bugs in contracts the Subgraph get wiped, to avoid that we need keep the old's contracts there to be fetched.

Keeping it manually its hard, so in that PR i made tooling-cli to automate more 80% of process.

It create the files, avoid override old contracts, setup some config/{network}.json and process the yaml subgraph and datasources using Mustache templating.

Peek.2022-05-02.19-10.mp4

Features

  • It check if exist some ABI deployed in hardhat folders, if not exist it ask to run hardhat deploy
  • It check if you select the correct network and version number you want create.

Future Improvements

  • Instead check number files inside the ABI folder to generate next version, use RegExp to ensure the future correct number
    image

@vercel
Copy link

vercel bot commented Apr 28, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
quests ✅ Ready (Inspect) Visit Preview May 2, 2022 at 9:58AM (UTC)

@codecov
Copy link

codecov bot commented Apr 28, 2022

Codecov Report

Merging #250 (6c43199) into main (bd87a8f) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main      #250   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           25        25           
  Branches         5         5           
=========================================
  Hits            25        25           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bd87a8f...6c43199. Read the comment docs.

@vercel vercel bot temporarily deployed to Preview April 28, 2022 15:42 Inactive
@vercel vercel bot temporarily deployed to Preview April 28, 2022 16:49 Inactive
@vercel vercel bot temporarily deployed to Preview April 29, 2022 00:00 Inactive
@kamikazebr kamikazebr marked this pull request as draft April 29, 2022 01:51
@kamikazebr kamikazebr changed the title {WIP]: include versioning in subgraph metadata. [WIP]: include versioning in subgraph metadata. Apr 29, 2022
@vercel vercel bot temporarily deployed to Preview April 29, 2022 01:54 Inactive
@vercel vercel bot temporarily deployed to Preview May 2, 2022 02:25 Inactive
@vercel vercel bot temporarily deployed to Preview May 2, 2022 07:27 Inactive
@vercel vercel bot temporarily deployed to Preview May 2, 2022 08:54 Inactive
@vercel vercel bot temporarily deployed to Preview May 2, 2022 09:58 Inactive
@kamikazebr kamikazebr self-assigned this May 4, 2022
@Corantin Corantin merged commit 7efda3a into main May 5, 2022
@Corantin Corantin deleted the feat/subgraph branch May 5, 2022 23:42
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

2 participants