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

Change Govern subgraph to work with GovernQueue only + Add a task to … #266

Merged
merged 30 commits into from
May 14, 2022

Conversation

Corantin
Copy link
Collaborator

…deploy GovernQueue

@vercel
Copy link

vercel bot commented May 11, 2022

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

Name Status Preview Updated
quests ✅ Ready (Inspect) Visit Preview May 14, 2022 at 8:07PM (UTC)

@vercel vercel bot temporarily deployed to Preview May 11, 2022 21:57 Inactive
@vercel vercel bot temporarily deployed to Preview May 12, 2022 04:40 Inactive
@vercel vercel bot temporarily deployed to Preview May 12, 2022 11:24 Inactive
@vercel vercel bot temporarily deployed to Preview May 12, 2022 11:30 Inactive
@codecov
Copy link

codecov bot commented May 12, 2022

Codecov Report

Merging #266 (458b1e5) into main (b71a7a6) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #266   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           54        56    +2     
  Branches        12        13    +1     
=========================================
+ Hits            54        56    +2     
Impacted Files Coverage Δ
packages/hardhat/contracts/QuestFactory.sol 100.00% <100.00%> (ø)

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 b71a7a6...458b1e5. Read the comment docs.

@vercel vercel bot temporarily deployed to Preview May 12, 2022 11:41 Inactive
@vercel vercel bot temporarily deployed to Preview May 12, 2022 12:49 Inactive
@vercel vercel bot temporarily deployed to Preview May 12, 2022 13:00 Inactive
Comment on lines 17 to 20
// questsSubgraph: 'https://api.thegraph.com/subgraphs/name/corantin/quests-subgraph',
questsSubgraph: 'https://api.thegraph.com/subgraphs/name/corantin/quests-subgraph-staging',
// governSubgraph: 'https://api.thegraph.com/subgraphs/name/corantin/govern-1hive-rinkeby',
governSubgraph: 'https://api.thegraph.com/subgraphs/name/corantin/govern-1hive-rinkeby-staging',
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we could put it array in the future to easily change beetween subgraphs dependen of network, wdyt?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Its handled like this right now
image
image

Comment on lines -1 to -12
{
"network": "rinkeby",
"dataSources": {
"GovernRegistry": [
{
"name": "GovernRegistry",
"address": "0x7a044ff5148220866B9c21E9C6537C7c960eed40",
"startBlock": 9932541
}
]
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Why you removed that? btw its look almost exactly what i did in quest subgraph, if i knew here it already was there, i could just copy and paste. You ran in some problems to change that?

Copy link
Collaborator Author

@Corantin Corantin May 13, 2022

Choose a reason for hiding this comment

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

rinkeby-staging should be the same as rinkeby in my opinion so only one is needed
The only think that should change is the deploy target (corantin/govern-subgraph-rinkeby-staging)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

And further more, I dont need Registry I am now only listening on one GovernQueue. Maybe we might want support multiple in the future but right now there is no good reason to drag a GovernRegistry

@Corantin
Copy link
Collaborator Author

Corantin commented May 13, 2022 via email

@Corantin
Copy link
Collaborator Author

Corantin commented May 13, 2022 via email

@Corantin
Copy link
Collaborator Author

Corantin commented May 13, 2022 via email

@Corantin
Copy link
Collaborator Author

Corantin commented May 13, 2022 via email

@vercel vercel bot temporarily deployed to Preview May 13, 2022 16:39 Inactive
@vercel vercel bot temporarily deployed to Preview May 13, 2022 17:24 Inactive
@vercel vercel bot temporarily deployed to Preview May 14, 2022 05:28 Inactive
@vercel vercel bot temporarily deployed to Preview May 14, 2022 05:35 Inactive
@vercel vercel bot temporarily deployed to Preview May 14, 2022 05:54 Inactive
@vercel vercel bot temporarily deployed to Preview May 14, 2022 06:05 Inactive
@vercel vercel bot temporarily deployed to Preview May 14, 2022 06:29 Inactive
@vercel vercel bot temporarily deployed to Preview May 14, 2022 15:11 Inactive
@vercel vercel bot temporarily deployed to Preview May 14, 2022 15:17 Inactive
@vercel vercel bot temporarily deployed to Preview May 14, 2022 16:23 Inactive
@@ -124,6 +124,7 @@
"start": "cross-env HTTPS=true npm run sync-assets && react-app-rewired start",
"start:local": "cross-env REACT_APP_CHAIN_ID=1337 yarn start",
"start:rinkeby": "cross-env REACT_APP_CHAIN_ID=4 yarn start",
"start:rinkeby-staging": "cross-env REACT_APP_CHAIN_ID=4 REACT_APP_STAGING=true yarn start",
Copy link
Member

Choose a reason for hiding this comment

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

To who want test it in vercel staging need run that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nope vercel always run yarn start and rely on defaultChain and staging variables to decide wich network and environment

Comment on lines +73 to +78
useEffect(
() => () => {
mounted = false;
},
[],
);
Copy link
Member

Choose a reason for hiding this comment

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

Mayeb we can open PR to create some hook for it, i saw we have multiples those on the code base.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was thinking the same but wasnt able to have something cleaner

Copy link
Member

@kamikazebr kamikazebr left a comment

Choose a reason for hiding this comment

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

Awesome work!

@vercel vercel bot temporarily deployed to Preview May 14, 2022 18:17 Inactive
@vercel vercel bot temporarily deployed to Preview May 14, 2022 19:12 Inactive
@vercel vercel bot temporarily deployed to Preview May 14, 2022 20:07 Inactive
@Corantin Corantin merged commit be57767 into main May 14, 2022
@Corantin Corantin deleted the govern-deployment-task branch May 14, 2022 20:21
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