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

feat: Improve useChainState and standardize contract loading #50

Merged
merged 11 commits into from
Feb 2, 2024

Conversation

bowd
Copy link
Contributor

@bowd bowd commented Jan 31, 2024

Description

It improves the chain state helper definition and loading and exposes a useContracts hook used throughout the app.
The problem with this PR right now is that the addresses in the SDK are not the ones that are indexed in The Graph that is a separate deployment. I will migrate the indexers to this deployment as well.

After I do that, however, we will have no test proposals because the ones that I created are on the other deployment.
We need a small script to seed the deployment with some test proposals that have votes.

Other changes

  • None

Tested

  • Verified correct contract addresses were being used with logs on chain switch :)

Related issues

Copy link

vercel bot commented Jan 31, 2024

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

Name Status Preview Comments Updated (UTC)
governance-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 2, 2024 5:54pm

@bayological bayological changed the title Improve useChainState and standardize contract loading feat: Improve useChainState and standardize contract loading Jan 31, 2024
@bayological
Copy link
Member

@bowd made some slight changes to incorporate all contract addresses.

@bayological bayological requested review from a team, chapati23, baroooo and denviljclarke and removed request for a team and chapati23 January 31, 2024 18:11
Copy link
Contributor

@denviljclarke denviljclarke left a comment

Choose a reason for hiding this comment

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

LGTM 👍

I noticed contracts will be available in chain state store as well, but I guess it doesn't hurt

Copy link
Contributor

@denviljclarke denviljclarke left a comment

Choose a reason for hiding this comment

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

LGTM

@bayological bayological merged commit c1ef9ab into main Feb 2, 2024
3 checks passed
@bayological bayological deleted the feat/improve-chain-state branch April 17, 2024 16:39
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.

Refactor UI to Utilize useChainState Hook for Contract Address Retrieval
4 participants