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: add protocol contracts export helper #771

Merged
merged 2 commits into from
Aug 23, 2023

Conversation

rndquu
Copy link
Member

@rndquu rndquu commented Aug 23, 2023

Resolves #731

We migrated to the diamond proxy pattern some time ago and right now the UI is broken because we need to refactor all "get contract" hooks (along with pages and components) accordingly.

This PR creates a helper file that exports:

  • separately deployed contracts (Dollar, Credit, etc...)
  • diamond facets

The next step would be to take this file and refactor all of the frontend pages to use contracts from that file (to make sure that everything works fine at least on a local anvil instance):

@rndquu rndquu marked this pull request as draft August 23, 2023 20:02
@molecula451
Copy link
Member

so I see this was your initial vision, make it pass build so I may appropiately test it

@rndquu rndquu marked this pull request as ready for review August 23, 2023 20:34
@ubiquibot
Copy link

ubiquibot bot commented Aug 23, 2023

@molecula451
Copy link
Member

Working and fetching the diamond

use

but judging by this. The ultimate decision it's get rid of the hook?

@rndquu
Copy link
Member Author

rndquu commented Aug 23, 2023

The ultimate decision it's get rid of the hook?

You mean this one? This hook is pretty much outdated so I think it is simpler to eventually remove it and create a new one which aligns with the new diamond architecture. So this is an initial attempt to make UI live again.

@rndquu rndquu merged commit 9c4157f into ubiquity:development Aug 23, 2023
9 checks passed
@rndquu rndquu deleted the feat/ui-get-contracts branch August 23, 2023 21: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.

Add UI diamond hook
2 participants